camstack 1.2.183 → 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-TTEJZCJA.js → launcher-6Q2JLZCB.js} +2072 -732
- package/package.json +4 -2
- package/dist/chunk-RBYTYOMU.js +0 -62653
- package/dist/discover-YKSDGTPX.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_CrznXkOZ = __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_CrznXkOZ = __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_CrznXkOZ = __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({
|
|
@@ -39066,14 +39085,14 @@ var require_dist_CrznXkOZ = __commonJS({
|
|
|
39066
39085
|
*/
|
|
39067
39086
|
appleFoundation: zod.z.object({ nodeId: zod.z.string() }).optional()
|
|
39068
39087
|
});
|
|
39069
|
-
var ConfigSchemaPassthrough$
|
|
39088
|
+
var ConfigSchemaPassthrough$3 = zod.z.unknown();
|
|
39070
39089
|
var LlmProfileKindDescriptorSchema = zod.z.object({
|
|
39071
39090
|
kind: LlmProfileKindSchema,
|
|
39072
39091
|
label: zod.z.string(),
|
|
39073
39092
|
icon: zod.z.string(),
|
|
39074
39093
|
/** Stamped by each provider so the concat-fanned catalog stays routable. */
|
|
39075
39094
|
addonId: zod.z.string(),
|
|
39076
|
-
configSchema: ConfigSchemaPassthrough$
|
|
39095
|
+
configSchema: ConfigSchemaPassthrough$3
|
|
39077
39096
|
});
|
|
39078
39097
|
var LlmDefaultSelectorSchema = zod.z.union([zod.z.object({ consumer: zod.z.string() }), zod.z.object({ purpose: zod.z.enum(["text", "vision"]) })]);
|
|
39079
39098
|
var LlmDefaultSchema = zod.z.object({
|
|
@@ -40171,7 +40190,7 @@ var require_dist_CrznXkOZ = __commonJS({
|
|
|
40171
40190
|
ttl: zod.z.boolean(),
|
|
40172
40191
|
bodyMaxLen: zod.z.number().int().positive()
|
|
40173
40192
|
});
|
|
40174
|
-
var ConfigSchemaPassthrough$
|
|
40193
|
+
var ConfigSchemaPassthrough$2 = zod.z.unknown();
|
|
40175
40194
|
var TargetKindSchema = zod.z.object({
|
|
40176
40195
|
kind: zod.z.string(),
|
|
40177
40196
|
label: zod.z.string(),
|
|
@@ -40208,7 +40227,7 @@ var require_dist_CrznXkOZ = __commonJS({
|
|
|
40208
40227
|
* its raster path, which is the safe default for an unknown image.
|
|
40209
40228
|
*/
|
|
40210
40229
|
iconMediaType: zod.z.string().optional(),
|
|
40211
|
-
configSchema: ConfigSchemaPassthrough$
|
|
40230
|
+
configSchema: ConfigSchemaPassthrough$2,
|
|
40212
40231
|
/**
|
|
40213
40232
|
* The config keys that decide WHERE this kind's secrets are sent (server,
|
|
40214
40233
|
* base URL, instance, chat, recipient). A save that changes any of them
|
|
@@ -41038,6 +41057,12 @@ var require_dist_CrznXkOZ = __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",
|
|
@@ -42961,6 +42986,65 @@ var require_dist_CrznXkOZ = __commonJS({
|
|
|
42961
42986
|
getDescriptor: method(zod.z.void(), OauthIntegrationDescriptorSchema, { auth: "admin" })
|
|
42962
42987
|
}
|
|
42963
42988
|
};
|
|
42989
|
+
var ConfigSchemaPassthrough$1 = zod.z.unknown();
|
|
42990
|
+
var OidcConnectionSchema = zod.z.object({
|
|
42991
|
+
id: zod.z.string().min(1),
|
|
42992
|
+
displayName: zod.z.string(),
|
|
42993
|
+
icon: zod.z.string(),
|
|
42994
|
+
issuerUrl: zod.z.string(),
|
|
42995
|
+
clientId: zod.z.string(),
|
|
42996
|
+
/** Client id + secret present — never the secret value. */
|
|
42997
|
+
configured: zod.z.boolean(),
|
|
42998
|
+
/**
|
|
42999
|
+
* Values for the connection form schema. `clientSecret` is a keychain
|
|
43000
|
+
* {@link SecretFieldView} or `null` / `''`, never plaintext (D789).
|
|
43001
|
+
*/
|
|
43002
|
+
formValues: zod.z.record(zod.z.string(), zod.z.unknown()).optional()
|
|
43003
|
+
});
|
|
43004
|
+
var OidcConnectionUpdateInputSchema = zod.z.object({
|
|
43005
|
+
id: zod.z.string().min(1),
|
|
43006
|
+
displayName: zod.z.string().min(1),
|
|
43007
|
+
icon: zod.z.string().optional(),
|
|
43008
|
+
issuerUrl: zod.z.string().optional(),
|
|
43009
|
+
clientId: zod.z.string().optional(),
|
|
43010
|
+
clientSecret: zod.z.union([zod.z.string(), zod.z.object({ $secretClear: zod.z.literal(true) })]).optional(),
|
|
43011
|
+
redirectUri: zod.z.string().optional(),
|
|
43012
|
+
scopes: zod.z.string().optional(),
|
|
43013
|
+
usernameClaim: zod.z.enum([
|
|
43014
|
+
"preferred_username",
|
|
43015
|
+
"email",
|
|
43016
|
+
"sub"
|
|
43017
|
+
]).optional()
|
|
43018
|
+
});
|
|
43019
|
+
var oidcConnectionsCapability = {
|
|
43020
|
+
name: "oidc-connections",
|
|
43021
|
+
scope: "system",
|
|
43022
|
+
mode: "singleton",
|
|
43023
|
+
methods: {
|
|
43024
|
+
/** Form fields for Add/Edit (ConfigFormBuilder). */
|
|
43025
|
+
connectionFormSchema: method(zod.z.object({}), ConfigSchemaPassthrough$1, { auth: "admin" }),
|
|
43026
|
+
listConnections: method(zod.z.object({}), zod.z.array(OidcConnectionSchema).readonly(), { auth: "admin" }),
|
|
43027
|
+
/**
|
|
43028
|
+
* Create a row with the operator-chosen URL slug. Credentials follow via
|
|
43029
|
+
* `updateConnection` (same Save path as Training Providers).
|
|
43030
|
+
*/
|
|
43031
|
+
createConnection: method(zod.z.object({
|
|
43032
|
+
id: zod.z.string().min(1).regex(/^[a-z0-9][a-z0-9-]{0,63}$/, "id must be a lowercase slug"),
|
|
43033
|
+
displayName: zod.z.string().min(1)
|
|
43034
|
+
}), zod.z.object({ id: zod.z.string() }), {
|
|
43035
|
+
kind: "mutation",
|
|
43036
|
+
auth: "admin"
|
|
43037
|
+
}),
|
|
43038
|
+
updateConnection: method(OidcConnectionUpdateInputSchema, zod.z.object({ ok: zod.z.literal(true) }), {
|
|
43039
|
+
kind: "mutation",
|
|
43040
|
+
auth: "admin"
|
|
43041
|
+
}),
|
|
43042
|
+
deleteConnection: method(zod.z.object({ id: zod.z.string().min(1) }), zod.z.object({ ok: zod.z.literal(true) }), {
|
|
43043
|
+
kind: "mutation",
|
|
43044
|
+
auth: "admin"
|
|
43045
|
+
})
|
|
43046
|
+
}
|
|
43047
|
+
};
|
|
42964
43048
|
var MotionTriggeredBySchema = zod.z.discriminatedUnion("kind", [zod.z.object({ kind: zod.z.literal("camera") }), zod.z.object({
|
|
42965
43049
|
kind: zod.z.literal("sensor"),
|
|
42966
43050
|
deviceId: zod.z.number().int().positive()
|
|
@@ -68460,6 +68544,36 @@ var require_dist_CrznXkOZ = __commonJS({
|
|
|
68460
68544
|
addonId: null,
|
|
68461
68545
|
access: "view"
|
|
68462
68546
|
},
|
|
68547
|
+
"oidcConnections.connectionFormSchema": {
|
|
68548
|
+
capName: "oidc-connections",
|
|
68549
|
+
capScope: "system",
|
|
68550
|
+
addonId: null,
|
|
68551
|
+
access: "view"
|
|
68552
|
+
},
|
|
68553
|
+
"oidcConnections.createConnection": {
|
|
68554
|
+
capName: "oidc-connections",
|
|
68555
|
+
capScope: "system",
|
|
68556
|
+
addonId: null,
|
|
68557
|
+
access: "create"
|
|
68558
|
+
},
|
|
68559
|
+
"oidcConnections.deleteConnection": {
|
|
68560
|
+
capName: "oidc-connections",
|
|
68561
|
+
capScope: "system",
|
|
68562
|
+
addonId: null,
|
|
68563
|
+
access: "delete"
|
|
68564
|
+
},
|
|
68565
|
+
"oidcConnections.listConnections": {
|
|
68566
|
+
capName: "oidc-connections",
|
|
68567
|
+
capScope: "system",
|
|
68568
|
+
addonId: null,
|
|
68569
|
+
access: "view"
|
|
68570
|
+
},
|
|
68571
|
+
"oidcConnections.updateConnection": {
|
|
68572
|
+
capName: "oidc-connections",
|
|
68573
|
+
capScope: "system",
|
|
68574
|
+
addonId: null,
|
|
68575
|
+
access: "create"
|
|
68576
|
+
},
|
|
68463
68577
|
"osd.getStatus": {
|
|
68464
68578
|
capName: "osd",
|
|
68465
68579
|
capScope: "device",
|
|
@@ -73753,6 +73867,7 @@ var require_dist_CrznXkOZ = __commonJS({
|
|
|
73753
73867
|
notifierCapability,
|
|
73754
73868
|
numericSensorCapability,
|
|
73755
73869
|
oauthIntegrationCapability,
|
|
73870
|
+
oidcConnectionsCapability,
|
|
73756
73871
|
osdCapability,
|
|
73757
73872
|
osdManagerCapability,
|
|
73758
73873
|
petFeederCapability,
|
|
@@ -76762,6 +76877,9 @@ var require_dist_CrznXkOZ = __commonJS({
|
|
|
76762
76877
|
"stream-online": "device-events",
|
|
76763
76878
|
"stream-offline": "device-events",
|
|
76764
76879
|
"detection-blind": "device-events",
|
|
76880
|
+
"recording-stalled": "device-events",
|
|
76881
|
+
"recording-healthy": "device-events",
|
|
76882
|
+
"recording-degraded": "device-events",
|
|
76765
76883
|
"node-online": "system",
|
|
76766
76884
|
"node-offline": "system",
|
|
76767
76885
|
"node-restarting": "system",
|
|
@@ -76775,6 +76893,9 @@ var require_dist_CrznXkOZ = __commonJS({
|
|
|
76775
76893
|
"wrapper-update-available": "system",
|
|
76776
76894
|
"backup-completed": "system",
|
|
76777
76895
|
"export-completed": "system",
|
|
76896
|
+
"storage-location-low": "system",
|
|
76897
|
+
"storage-location-critical": "system",
|
|
76898
|
+
"storage-location-ok": "system",
|
|
76778
76899
|
"alarm-triggered": "alarm",
|
|
76779
76900
|
"alarm-armed": "alarm",
|
|
76780
76901
|
"alarm-disarmed": "alarm",
|
|
@@ -76836,6 +76957,16 @@ var require_dist_CrznXkOZ = __commonJS({
|
|
|
76836
76957
|
label: "Detecting nothing",
|
|
76837
76958
|
kinds: ["detection-blind"]
|
|
76838
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
|
+
},
|
|
76839
76970
|
{
|
|
76840
76971
|
id: "nodes",
|
|
76841
76972
|
family: "system",
|
|
@@ -76876,6 +77007,16 @@ var require_dist_CrznXkOZ = __commonJS({
|
|
|
76876
77007
|
label: "Backups & exports",
|
|
76877
77008
|
kinds: ["backup-completed", "export-completed"]
|
|
76878
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
|
+
},
|
|
76879
77020
|
{
|
|
76880
77021
|
id: "alarm",
|
|
76881
77022
|
family: "alarm",
|
|
@@ -76931,6 +77072,9 @@ var require_dist_CrznXkOZ = __commonJS({
|
|
|
76931
77072
|
"stream-online",
|
|
76932
77073
|
"stream-offline",
|
|
76933
77074
|
"detection-blind",
|
|
77075
|
+
"recording-stalled",
|
|
77076
|
+
"recording-healthy",
|
|
77077
|
+
"recording-degraded",
|
|
76934
77078
|
...ALARM
|
|
76935
77079
|
];
|
|
76936
77080
|
var SUMMARISABLE = [...systemEventKindsOfFamily("device-events"), ...systemEventKindsOfFamily("system")];
|
|
@@ -77095,6 +77239,11 @@ var require_dist_CrznXkOZ = __commonJS({
|
|
|
77095
77239
|
[...RULE_TEXT],
|
|
77096
77240
|
[...RULE_TEXT],
|
|
77097
77241
|
[...RULE_TEXT],
|
|
77242
|
+
[...RULE_TEXT],
|
|
77243
|
+
[...RULE_TEXT],
|
|
77244
|
+
[...RULE_TEXT],
|
|
77245
|
+
[...RULE_TEXT],
|
|
77246
|
+
[...RULE_TEXT],
|
|
77098
77247
|
([...RULE_TEXT], [...UPDATES]),
|
|
77099
77248
|
([...RULE_TEXT], [...PACKAGE_UPDATES]),
|
|
77100
77249
|
([...RULE_TEXT], [...PACKAGE_UPDATES]),
|
|
@@ -77857,6 +78006,18 @@ var require_dist_CrznXkOZ = __commonJS({
|
|
|
77857
78006
|
return HF_REPO;
|
|
77858
78007
|
}
|
|
77859
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
|
+
});
|
|
77860
78021
|
Object.defineProperty(exports, "KEYCHAIN_RESET_TRIGGER_ACTOR", {
|
|
77861
78022
|
enumerable: true,
|
|
77862
78023
|
get: function() {
|
|
@@ -78970,11 +79131,11 @@ var require_dist_CrznXkOZ = __commonJS({
|
|
|
78970
79131
|
}
|
|
78971
79132
|
});
|
|
78972
79133
|
|
|
78973
|
-
// ../system/dist/jwt-signing-key-
|
|
78974
|
-
var
|
|
78975
|
-
"../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) {
|
|
78976
79137
|
"use strict";
|
|
78977
|
-
var require_dist10 =
|
|
79138
|
+
var require_dist10 = require_dist_DxiDI8hZ();
|
|
78978
79139
|
var node_crypto = __require("crypto");
|
|
78979
79140
|
var SYSTEM_SECRET_OWNER = "system";
|
|
78980
79141
|
var JWT_SIGNING_KEY_REF = require_dist10.buildSecretRef({
|
|
@@ -79126,7 +79287,7 @@ var require_alerts_addon = __commonJS({
|
|
|
79126
79287
|
[Symbol.toStringTag]: { value: "Module" }
|
|
79127
79288
|
});
|
|
79128
79289
|
require_chunk_Cek0wNdY();
|
|
79129
|
-
var require_dist10 =
|
|
79290
|
+
var require_dist10 = require_dist_DxiDI8hZ();
|
|
79130
79291
|
function deviceLabelFromEventData(data) {
|
|
79131
79292
|
const name = stringNonEmpty(data["name"]) ?? stringNonEmpty(data["deviceName"]);
|
|
79132
79293
|
if (name !== void 0) return name;
|
|
@@ -79950,7 +80111,7 @@ var require_calendars_addon = __commonJS({
|
|
|
79950
80111
|
[Symbol.toStringTag]: { value: "Module" }
|
|
79951
80112
|
});
|
|
79952
80113
|
require_chunk_Cek0wNdY();
|
|
79953
|
-
var require_dist10 =
|
|
80114
|
+
var require_dist10 = require_dist_DxiDI8hZ();
|
|
79954
80115
|
var require_settle_sources = require_settle_sources_Bhsy57y();
|
|
79955
80116
|
var zod = require_zod();
|
|
79956
80117
|
var CALENDAR_COLOR_PALETTE = [
|
|
@@ -80164,11 +80325,11 @@ var require_calendars = __commonJS({
|
|
|
80164
80325
|
}
|
|
80165
80326
|
});
|
|
80166
80327
|
|
|
80167
|
-
// ../system/dist/composition-sources-
|
|
80168
|
-
var
|
|
80169
|
-
"../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) {
|
|
80170
80331
|
"use strict";
|
|
80171
|
-
var require_dist10 =
|
|
80332
|
+
var require_dist10 = require_dist_DxiDI8hZ();
|
|
80172
80333
|
function normalizedNativeOwner(owner) {
|
|
80173
80334
|
const trimmed = owner?.trim();
|
|
80174
80335
|
return trimmed ? trimmed : null;
|
|
@@ -80283,8 +80444,8 @@ var require_composer_addon = __commonJS({
|
|
|
80283
80444
|
[Symbol.toStringTag]: { value: "Module" }
|
|
80284
80445
|
});
|
|
80285
80446
|
require_chunk_Cek0wNdY();
|
|
80286
|
-
var require_dist10 =
|
|
80287
|
-
var require_composition_sources =
|
|
80447
|
+
var require_dist10 = require_dist_DxiDI8hZ();
|
|
80448
|
+
var require_composition_sources = require_composition_sources_DBcOVpGn();
|
|
80288
80449
|
var zod = require_zod();
|
|
80289
80450
|
function isRecord$2(value) {
|
|
80290
80451
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
@@ -84094,7 +84255,7 @@ var require_console_logging = __commonJS({
|
|
|
84094
84255
|
[Symbol.toStringTag]: { value: "Module" }
|
|
84095
84256
|
});
|
|
84096
84257
|
require_chunk_Cek0wNdY();
|
|
84097
|
-
var require_dist10 =
|
|
84258
|
+
var require_dist10 = require_dist_DxiDI8hZ();
|
|
84098
84259
|
var require_formatter = require_formatter_DqAKDlvN();
|
|
84099
84260
|
var LEVEL_RANK = {
|
|
84100
84261
|
debug: 0,
|
|
@@ -88163,8 +88324,8 @@ var require_core_blocks_addon = __commonJS({
|
|
|
88163
88324
|
"use strict";
|
|
88164
88325
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
88165
88326
|
var require_chunk = require_chunk_Cek0wNdY();
|
|
88166
|
-
var require_dist10 =
|
|
88167
|
-
var require_composition_sources =
|
|
88327
|
+
var require_dist10 = require_dist_DxiDI8hZ();
|
|
88328
|
+
var require_composition_sources = require_composition_sources_DBcOVpGn();
|
|
88168
88329
|
var node_crypto = __require("crypto");
|
|
88169
88330
|
var _camstack_types_node = require_node();
|
|
88170
88331
|
var node_fs_promises = __require("fs/promises");
|
|
@@ -90036,11 +90197,11 @@ var require_core_blocks = __commonJS({
|
|
|
90036
90197
|
}
|
|
90037
90198
|
});
|
|
90038
90199
|
|
|
90039
|
-
// ../system/dist/retired-settings-keys-
|
|
90040
|
-
var
|
|
90041
|
-
"../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) {
|
|
90042
90203
|
"use strict";
|
|
90043
|
-
var require_dist10 =
|
|
90204
|
+
var require_dist10 = require_dist_DxiDI8hZ();
|
|
90044
90205
|
function settingsStoreIsAuthoritativeHere(env) {
|
|
90045
90206
|
const raw = (env["CAMSTACK_ROLE"] ?? "").trim().toLowerCase();
|
|
90046
90207
|
return raw === "" || raw === "hub";
|
|
@@ -90329,8 +90490,8 @@ var require_device_manager_addon = __commonJS({
|
|
|
90329
90490
|
[Symbol.toStringTag]: { value: "Module" }
|
|
90330
90491
|
});
|
|
90331
90492
|
require_chunk_Cek0wNdY();
|
|
90332
|
-
var require_dist10 =
|
|
90333
|
-
var require_retired_settings_keys =
|
|
90493
|
+
var require_dist10 = require_dist_DxiDI8hZ();
|
|
90494
|
+
var require_retired_settings_keys = require_retired_settings_keys_Cl1tnkmq();
|
|
90334
90495
|
var zod = require_zod();
|
|
90335
90496
|
var node_crypto = __require("crypto");
|
|
90336
90497
|
var _camstack_types_node = require_node();
|
|
@@ -98704,7 +98865,7 @@ var require_hub_forwarder = __commonJS({
|
|
|
98704
98865
|
[Symbol.toStringTag]: { value: "Module" }
|
|
98705
98866
|
});
|
|
98706
98867
|
require_chunk_Cek0wNdY();
|
|
98707
|
-
var require_dist10 =
|
|
98868
|
+
var require_dist10 = require_dist_DxiDI8hZ();
|
|
98708
98869
|
var require_formatter = require_formatter_DqAKDlvN();
|
|
98709
98870
|
var DEFAULT_OUTBOUND_BUFFER_SIZE = 500;
|
|
98710
98871
|
var HubForwarderDestination = class {
|
|
@@ -98841,7 +99002,7 @@ var require_liveness_monitor_addon = __commonJS({
|
|
|
98841
99002
|
"use strict";
|
|
98842
99003
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
98843
99004
|
require_chunk_Cek0wNdY();
|
|
98844
|
-
var require_dist10 =
|
|
99005
|
+
var require_dist10 = require_dist_DxiDI8hZ();
|
|
98845
99006
|
var NO_DEVICES = "liveness:no-devices";
|
|
98846
99007
|
var ALL_OFFLINE = "liveness:all-devices-offline";
|
|
98847
99008
|
var NO_FOOTAGE_PREFIX = "liveness:no-footage:";
|
|
@@ -99048,12 +99209,11 @@ var require_liveness_monitor = __commonJS({
|
|
|
99048
99209
|
}
|
|
99049
99210
|
});
|
|
99050
99211
|
|
|
99051
|
-
// ../system/dist/
|
|
99052
|
-
var
|
|
99053
|
-
"../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) {
|
|
99054
99215
|
"use strict";
|
|
99055
|
-
var
|
|
99056
|
-
var require_safe_buffer4 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports2, module2) => {
|
|
99216
|
+
var require_safe_buffer4 = /* @__PURE__ */ require_chunk_Cek0wNdY().__commonJSMin(((exports2, module2) => {
|
|
99057
99217
|
var buffer = __require("buffer");
|
|
99058
99218
|
var Buffer2 = buffer.Buffer;
|
|
99059
99219
|
function copyProps(src, dst) {
|
|
@@ -99090,7 +99250,20 @@ var require_ms_t68_FaqE = __commonJS({
|
|
|
99090
99250
|
return buffer.SlowBuffer(size);
|
|
99091
99251
|
};
|
|
99092
99252
|
}));
|
|
99093
|
-
|
|
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) => {
|
|
99094
99267
|
var s = 1e3;
|
|
99095
99268
|
var m = s * 60;
|
|
99096
99269
|
var h = m * 60;
|
|
@@ -99180,12 +99353,6 @@ var require_ms_t68_FaqE = __commonJS({
|
|
|
99180
99353
|
return require_ms4;
|
|
99181
99354
|
}
|
|
99182
99355
|
});
|
|
99183
|
-
Object.defineProperty(exports, "require_safe_buffer", {
|
|
99184
|
-
enumerable: true,
|
|
99185
|
-
get: function() {
|
|
99186
|
-
return require_safe_buffer4;
|
|
99187
|
-
}
|
|
99188
|
-
});
|
|
99189
99356
|
}
|
|
99190
99357
|
});
|
|
99191
99358
|
|
|
@@ -99198,9 +99365,10 @@ var require_local_auth_addon = __commonJS({
|
|
|
99198
99365
|
[Symbol.toStringTag]: { value: "Module" }
|
|
99199
99366
|
});
|
|
99200
99367
|
var require_chunk = require_chunk_Cek0wNdY();
|
|
99201
|
-
var require_dist10 =
|
|
99202
|
-
var
|
|
99203
|
-
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();
|
|
99204
99372
|
var node_crypto = __require("crypto");
|
|
99205
99373
|
node_crypto = require_chunk.__toESM(node_crypto);
|
|
99206
99374
|
var crypto$1 = __require("crypto");
|
|
@@ -100861,7 +101029,7 @@ var require_local_auth_addon = __commonJS({
|
|
|
100861
101029
|
}, progressCallback);
|
|
100862
101030
|
}
|
|
100863
101031
|
var require_data_stream = /* @__PURE__ */ require_chunk.__commonJSMin(((exports2, module2) => {
|
|
100864
|
-
var Buffer2 =
|
|
101032
|
+
var Buffer2 = require_safe_buffer$1.require_safe_buffer().Buffer;
|
|
100865
101033
|
var Stream$2 = __require("stream");
|
|
100866
101034
|
var util$3 = __require("util");
|
|
100867
101035
|
function DataStream(data) {
|
|
@@ -100920,7 +101088,7 @@ var require_local_auth_addon = __commonJS({
|
|
|
100920
101088
|
module2.exports = getParamBytesForAlg;
|
|
100921
101089
|
}));
|
|
100922
101090
|
var require_ecdsa_sig_formatter = /* @__PURE__ */ require_chunk.__commonJSMin(((exports2, module2) => {
|
|
100923
|
-
var Buffer2 =
|
|
101091
|
+
var Buffer2 = require_safe_buffer$1.require_safe_buffer().Buffer;
|
|
100924
101092
|
var getParamBytesForAlg = require_param_bytes_for_alg();
|
|
100925
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;
|
|
100926
101094
|
function base64Url(base64) {
|
|
@@ -101033,7 +101201,7 @@ var require_local_auth_addon = __commonJS({
|
|
|
101033
101201
|
};
|
|
101034
101202
|
}));
|
|
101035
101203
|
var require_jwa = /* @__PURE__ */ require_chunk.__commonJSMin(((exports2, module2) => {
|
|
101036
|
-
var Buffer2 =
|
|
101204
|
+
var Buffer2 = require_safe_buffer$1.require_safe_buffer().Buffer;
|
|
101037
101205
|
var crypto$2 = __require("crypto");
|
|
101038
101206
|
var formatEcdsa = require_ecdsa_sig_formatter();
|
|
101039
101207
|
var util$2 = __require("util");
|
|
@@ -101215,7 +101383,7 @@ var require_local_auth_addon = __commonJS({
|
|
|
101215
101383
|
};
|
|
101216
101384
|
}));
|
|
101217
101385
|
var require_sign_stream = /* @__PURE__ */ require_chunk.__commonJSMin(((exports2, module2) => {
|
|
101218
|
-
var Buffer2 =
|
|
101386
|
+
var Buffer2 = require_safe_buffer$1.require_safe_buffer().Buffer;
|
|
101219
101387
|
var DataStream = require_data_stream();
|
|
101220
101388
|
var jwa = require_jwa();
|
|
101221
101389
|
var Stream$1 = __require("stream");
|
|
@@ -101282,7 +101450,7 @@ var require_local_auth_addon = __commonJS({
|
|
|
101282
101450
|
module2.exports = SignStream;
|
|
101283
101451
|
}));
|
|
101284
101452
|
var require_verify_stream = /* @__PURE__ */ require_chunk.__commonJSMin(((exports2, module2) => {
|
|
101285
|
-
var Buffer2 =
|
|
101453
|
+
var Buffer2 = require_safe_buffer$1.require_safe_buffer().Buffer;
|
|
101286
101454
|
var DataStream = require_data_stream();
|
|
101287
101455
|
var jwa = require_jwa();
|
|
101288
101456
|
var Stream = __require("stream");
|
|
@@ -103996,11 +104164,20 @@ var require_local_auth_addon = __commonJS({
|
|
|
103996
104164
|
}
|
|
103997
104165
|
return false;
|
|
103998
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
|
+
*/
|
|
103999
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;
|
|
104000
104176
|
await this.store.delete.mutate({
|
|
104001
104177
|
collection: TOKENS_COLLECTION,
|
|
104002
104178
|
key: tokenId
|
|
104003
104179
|
});
|
|
104180
|
+
return true;
|
|
104004
104181
|
}
|
|
104005
104182
|
async listForUser(userId) {
|
|
104006
104183
|
return (await this.store.query.query({
|
|
@@ -104692,10 +104869,11 @@ var require_local_auth_addon = __commonJS({
|
|
|
104692
104869
|
var MAX_LIST = 500;
|
|
104693
104870
|
function parseRecord(data) {
|
|
104694
104871
|
const id = data["id"];
|
|
104695
|
-
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;
|
|
104696
104874
|
const action = data["action"];
|
|
104697
104875
|
const known = AUTH_AUDIT_ACTIONS.find((a2) => a2 === action);
|
|
104698
|
-
if (typeof id !== "string" ||
|
|
104876
|
+
if (typeof id !== "string" || at === null || known === void 0) return null;
|
|
104699
104877
|
let detail;
|
|
104700
104878
|
if (typeof data["detail"] === "string") try {
|
|
104701
104879
|
const parsed = JSON.parse(data["detail"]);
|
|
@@ -107565,6 +107743,19 @@ var require_local_auth_addon = __commonJS({
|
|
|
107565
107743
|
return true;
|
|
107566
107744
|
}
|
|
107567
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
|
+
/**
|
|
107568
107759
|
* Delete sessions revoked longer ago than `horizonMs`.
|
|
107569
107760
|
*
|
|
107570
107761
|
* Safe because an ABSENT session already fails closed exactly like a revoked
|
|
@@ -107795,7 +107986,7 @@ var require_local_auth_addon = __commonJS({
|
|
|
107795
107986
|
},
|
|
107796
107987
|
revokeScopedToken: async (input) => {
|
|
107797
107988
|
if (!this.scopedTokenManager) throw new Error("Scoped token management not available");
|
|
107798
|
-
await this.scopedTokenManager.revoke(input.id);
|
|
107989
|
+
if (!await this.scopedTokenManager.revoke(input.id)) throw new Error(`Scoped token not found: ${input.id}`);
|
|
107799
107990
|
return { success: true };
|
|
107800
107991
|
},
|
|
107801
107992
|
validateScopedToken: async (input) => {
|
|
@@ -107927,6 +108118,14 @@ var require_local_auth_addon = __commonJS({
|
|
|
107927
108118
|
list: async () => this.adminTokens === null ? [] : this.adminTokens.list(),
|
|
107928
108119
|
revoke: async (id) => this.adminTokens === null ? false : this.adminTokens.revoke(id)
|
|
107929
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
|
+
} },
|
|
107930
108129
|
audit: {
|
|
107931
108130
|
record: async (event) => {
|
|
107932
108131
|
await this.auditLog?.record(event);
|
|
@@ -108065,7 +108264,7 @@ var require_loki_logging = __commonJS({
|
|
|
108065
108264
|
[Symbol.toStringTag]: { value: "Module" }
|
|
108066
108265
|
});
|
|
108067
108266
|
require_chunk_Cek0wNdY();
|
|
108068
|
-
var require_dist10 =
|
|
108267
|
+
var require_dist10 = require_dist_DxiDI8hZ();
|
|
108069
108268
|
function sanitizeLabelName(raw) {
|
|
108070
108269
|
const replaced = raw.replaceAll(/[^a-zA-Z0-9_]/g, "_");
|
|
108071
108270
|
return /^[a-zA-Z_]/.test(replaced) ? replaced : `_${replaced}`;
|
|
@@ -108830,7 +109029,7 @@ var require_native_metrics_addon = __commonJS({
|
|
|
108830
109029
|
[Symbol.toStringTag]: { value: "Module" }
|
|
108831
109030
|
});
|
|
108832
109031
|
var require_chunk = require_chunk_Cek0wNdY();
|
|
108833
|
-
var require_dist10 =
|
|
109032
|
+
var require_dist10 = require_dist_DxiDI8hZ();
|
|
108834
109033
|
var require_proc_stat = require_proc_stat_DL_WUOhl();
|
|
108835
109034
|
var node_fs_promises = __require("fs/promises");
|
|
108836
109035
|
var node_os = __require("os");
|
|
@@ -111708,7 +111907,7 @@ var require_filesystem_storage_addon = __commonJS({
|
|
|
111708
111907
|
[Symbol.toStringTag]: { value: "Module" }
|
|
111709
111908
|
});
|
|
111710
111909
|
var require_chunk = require_chunk_Cek0wNdY();
|
|
111711
|
-
var require_dist10 =
|
|
111910
|
+
var require_dist10 = require_dist_DxiDI8hZ();
|
|
111712
111911
|
var node_crypto = __require("crypto");
|
|
111713
111912
|
var node_fs_promises = __require("fs/promises");
|
|
111714
111913
|
var node_path = __require("path");
|
|
@@ -112990,8 +113189,8 @@ var require_sqlite_settings_addon = __commonJS({
|
|
|
112990
113189
|
[Symbol.toStringTag]: { value: "Module" }
|
|
112991
113190
|
});
|
|
112992
113191
|
var require_chunk = require_chunk_Cek0wNdY();
|
|
112993
|
-
var require_dist10 =
|
|
112994
|
-
var require_retired_settings_keys =
|
|
113192
|
+
var require_dist10 = require_dist_DxiDI8hZ();
|
|
113193
|
+
var require_retired_settings_keys = require_retired_settings_keys_Cl1tnkmq();
|
|
112995
113194
|
var require_sqlite_snapshot_protocol = require_sqlite_snapshot_protocol_B9OndqZv();
|
|
112996
113195
|
var require_wal_checkpoint_policy = require_wal_checkpoint_policy_d2z2qPqx();
|
|
112997
113196
|
var node_crypto = __require("crypto");
|
|
@@ -116204,7 +116403,7 @@ var require_storage_orchestrator_addon = __commonJS({
|
|
|
116204
116403
|
[Symbol.toStringTag]: { value: "Module" }
|
|
116205
116404
|
});
|
|
116206
116405
|
var require_chunk = require_chunk_Cek0wNdY();
|
|
116207
|
-
var require_dist10 =
|
|
116406
|
+
var require_dist10 = require_dist_DxiDI8hZ();
|
|
116208
116407
|
var require_hub_cap_forward = require_hub_cap_forward_W8oEm4ME();
|
|
116209
116408
|
var zod = require_zod();
|
|
116210
116409
|
var node_crypto = __require("crypto");
|
|
@@ -118928,6 +119127,62 @@ var require_storage_orchestrator_addon = __commonJS({
|
|
|
118928
119127
|
return reclaimedAny;
|
|
118929
119128
|
}
|
|
118930
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
|
+
};
|
|
118931
119186
|
var STORAGE_PROVIDER_CAP_NAME = "storage-provider";
|
|
118932
119187
|
var DATA_STORE_PROVIDER_CAP_NAME = "data-store-provider";
|
|
118933
119188
|
var STORAGE_EVICTABLE_CAP_NAME = "storage-evictable";
|
|
@@ -118938,6 +119193,7 @@ var require_storage_orchestrator_addon = __commonJS({
|
|
|
118938
119193
|
var StorageOrchestratorAddon = class extends require_dist10.BaseAddon {
|
|
118939
119194
|
service = null;
|
|
118940
119195
|
pressureManager = null;
|
|
119196
|
+
locationBandMonitor = new StorageLocationBandMonitor();
|
|
118941
119197
|
/**
|
|
118942
119198
|
* How much of each location CamStack itself holds (D388).
|
|
118943
119199
|
*
|
|
@@ -119441,6 +119697,7 @@ var require_storage_orchestrator_addon = __commonJS({
|
|
|
119441
119697
|
this.pressureSweepInFlight = true;
|
|
119442
119698
|
try {
|
|
119443
119699
|
await this.pressureManager.sweep();
|
|
119700
|
+
await this.emitLocationBandEvents();
|
|
119444
119701
|
} catch (err) {
|
|
119445
119702
|
this.ctxIfReady?.logger.warn("storage pressure sweep failed", { meta: { error: err instanceof Error ? err.message : String(err) } });
|
|
119446
119703
|
} finally {
|
|
@@ -119448,6 +119705,57 @@ var require_storage_orchestrator_addon = __commonJS({
|
|
|
119448
119705
|
}
|
|
119449
119706
|
}
|
|
119450
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
|
+
/**
|
|
119451
119759
|
* locationId → resolved `minFreePercent`. The policy is intrinsic to the
|
|
119452
119760
|
* location's provider (`shouldSaveDiskSpace` gates the guard, `minFreePercent`
|
|
119453
119761
|
* is the default), overridable per-location via `config.minFreePercent`.
|
|
@@ -119982,11 +120290,11 @@ var require_storage_orchestrator = __commonJS({
|
|
|
119982
120290
|
}
|
|
119983
120291
|
});
|
|
119984
120292
|
|
|
119985
|
-
// ../system/dist/constants-
|
|
119986
|
-
var
|
|
119987
|
-
"../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) {
|
|
119988
120296
|
"use strict";
|
|
119989
|
-
var require_dist10 =
|
|
120297
|
+
var require_dist10 = require_dist_DxiDI8hZ();
|
|
119990
120298
|
var node_crypto = __require("crypto");
|
|
119991
120299
|
var CLUSTER_SECRET_REF = require_dist10.buildSecretRef({
|
|
119992
120300
|
owner: "system",
|
|
@@ -120175,9 +120483,9 @@ var require_constants_C9RU0W0k = __commonJS({
|
|
|
120175
120483
|
}
|
|
120176
120484
|
});
|
|
120177
120485
|
|
|
120178
|
-
// ../system/dist/x509.es-
|
|
120179
|
-
var
|
|
120180
|
-
"../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) {
|
|
120181
120489
|
"use strict";
|
|
120182
120490
|
var require_chunk = require_chunk_Cek0wNdY();
|
|
120183
120491
|
(/* @__PURE__ */ require_chunk.__commonJSMin((() => {
|
|
@@ -120371,15 +120679,15 @@ var require_x509_es_BhTzcFhZ = __commonJS({
|
|
|
120371
120679
|
GetMetadataProvider(O, P, true).OrdinaryDefineOwnMetadata(MetadataKey, MetadataValue, O, P);
|
|
120372
120680
|
}
|
|
120373
120681
|
function OrdinaryMetadataKeys(O, P) {
|
|
120374
|
-
var
|
|
120682
|
+
var ownKeys2 = OrdinaryOwnMetadataKeys(O, P);
|
|
120375
120683
|
var parent = OrdinaryGetPrototypeOf(O);
|
|
120376
|
-
if (parent === null) return
|
|
120684
|
+
if (parent === null) return ownKeys2;
|
|
120377
120685
|
var parentKeys = OrdinaryMetadataKeys(parent, P);
|
|
120378
|
-
if (parentKeys.length <= 0) return
|
|
120379
|
-
if (
|
|
120686
|
+
if (parentKeys.length <= 0) return ownKeys2;
|
|
120687
|
+
if (ownKeys2.length <= 0) return parentKeys;
|
|
120380
120688
|
var set = new _Set();
|
|
120381
120689
|
var keys = [];
|
|
120382
|
-
for (var _i = 0, ownKeys_1 =
|
|
120690
|
+
for (var _i = 0, ownKeys_1 = ownKeys2; _i < ownKeys_1.length; _i++) {
|
|
120383
120691
|
var key = ownKeys_1[_i];
|
|
120384
120692
|
var hasKey = set.has(key);
|
|
120385
120693
|
if (!hasKey) {
|
|
@@ -124942,12 +125250,380 @@ ${values.join("\n")}` : `${blockName} :`;
|
|
|
124942
125250
|
return asn.result.toString();
|
|
124943
125251
|
}
|
|
124944
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
|
+
}
|
|
124945
125304
|
function __decorate(decorators, target, key, desc) {
|
|
124946
125305
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
124947
125306
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
124948
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;
|
|
124949
125308
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
124950
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
|
+
}
|
|
124951
125627
|
function __classPrivateFieldGet(receiver, state, kind, f) {
|
|
124952
125628
|
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
124953
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");
|
|
@@ -124959,6 +125635,165 @@ ${values.join("\n")}` : `${blockName} :`;
|
|
|
124959
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");
|
|
124960
125636
|
return kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value), value;
|
|
124961
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();
|
|
124962
125797
|
function groupPairs(pairs, group) {
|
|
124963
125798
|
if (!group) return pairs.join("");
|
|
124964
125799
|
if (!Number.isInteger(group.size) || group.size < 1) throw new RangeError("Hex group size must be a positive integer");
|
|
@@ -125191,6 +126026,7 @@ ${values.join("\n")}` : `${blockName} :`;
|
|
|
125191
126026
|
}
|
|
125192
126027
|
};
|
|
125193
126028
|
Name$1 = Name_1 = __decorate([AsnType({ type: AsnTypeTypes.Sequence })], Name$1);
|
|
126029
|
+
init_tslib_es6();
|
|
125194
126030
|
var AsnIpConverter = {
|
|
125195
126031
|
fromASN: (value) => IpConverter.toString(AsnOctetStringConverter.fromASN(value)),
|
|
125196
126032
|
toASN: (value) => AsnOctetStringConverter.toASN(IpConverter.fromString(value))
|
|
@@ -125297,6 +126133,7 @@ ${values.join("\n")}` : `${blockName} :`;
|
|
|
125297
126133
|
var id_ad_timeStamping = `${id_ad}.3`;
|
|
125298
126134
|
var id_ad_caRepository = `${id_ad}.5`;
|
|
125299
126135
|
var id_ce = "2.5.29";
|
|
126136
|
+
init_tslib_es6();
|
|
125300
126137
|
var AuthorityInfoAccessSyntax_1;
|
|
125301
126138
|
var id_pe_authorityInfoAccess = `${id_pe}.1`;
|
|
125302
126139
|
var AccessDescription = class {
|
|
@@ -125318,6 +126155,7 @@ ${values.join("\n")}` : `${blockName} :`;
|
|
|
125318
126155
|
type: AsnTypeTypes.Sequence,
|
|
125319
126156
|
itemType: AccessDescription
|
|
125320
126157
|
})], AuthorityInfoAccessSyntax);
|
|
126158
|
+
init_tslib_es6();
|
|
125321
126159
|
var id_ce_authorityKeyIdentifier = `${id_ce}.35`;
|
|
125322
126160
|
var KeyIdentifier = class extends OctetString {
|
|
125323
126161
|
};
|
|
@@ -125349,6 +126187,7 @@ ${values.join("\n")}` : `${blockName} :`;
|
|
|
125349
126187
|
implicit: true,
|
|
125350
126188
|
converter: AsnIntegerArrayBufferConverter
|
|
125351
126189
|
})], AuthorityKeyIdentifier.prototype, "authorityCertSerialNumber", void 0);
|
|
126190
|
+
init_tslib_es6();
|
|
125352
126191
|
var id_ce_basicConstraints = `${id_ce}.19`;
|
|
125353
126192
|
var BasicConstraints = class {
|
|
125354
126193
|
cA = false;
|
|
@@ -125365,6 +126204,7 @@ ${values.join("\n")}` : `${blockName} :`;
|
|
|
125365
126204
|
type: AsnPropTypes.Integer,
|
|
125366
126205
|
optional: true
|
|
125367
126206
|
})], BasicConstraints.prototype, "pathLenConstraint", void 0);
|
|
126207
|
+
init_tslib_es6();
|
|
125368
126208
|
var GeneralNames_1;
|
|
125369
126209
|
var GeneralNames$1 = GeneralNames_1 = class GeneralNames extends AsnArray {
|
|
125370
126210
|
constructor(items) {
|
|
@@ -125376,6 +126216,7 @@ ${values.join("\n")}` : `${blockName} :`;
|
|
|
125376
126216
|
type: AsnTypeTypes.Sequence,
|
|
125377
126217
|
itemType: GeneralName$1
|
|
125378
126218
|
})], GeneralNames$1);
|
|
126219
|
+
init_tslib_es6();
|
|
125379
126220
|
var CertificateIssuer_1;
|
|
125380
126221
|
`${id_ce}`;
|
|
125381
126222
|
var CertificateIssuer = CertificateIssuer_1 = class CertificateIssuer extends GeneralNames$1 {
|
|
@@ -125385,6 +126226,7 @@ ${values.join("\n")}` : `${blockName} :`;
|
|
|
125385
126226
|
}
|
|
125386
126227
|
};
|
|
125387
126228
|
CertificateIssuer = CertificateIssuer_1 = __decorate([AsnType({ type: AsnTypeTypes.Sequence })], CertificateIssuer);
|
|
126229
|
+
init_tslib_es6();
|
|
125388
126230
|
var CertificatePolicies_1;
|
|
125389
126231
|
var id_ce_certificatePolicies = `${id_ce}.32`;
|
|
125390
126232
|
`${id_ce_certificatePolicies}`;
|
|
@@ -125474,6 +126316,7 @@ ${values.join("\n")}` : `${blockName} :`;
|
|
|
125474
126316
|
type: AsnTypeTypes.Sequence,
|
|
125475
126317
|
itemType: PolicyInformation
|
|
125476
126318
|
})], CertificatePolicies);
|
|
126319
|
+
init_tslib_es6();
|
|
125477
126320
|
`${id_ce}`;
|
|
125478
126321
|
var CRLNumber = class CRLNumber {
|
|
125479
126322
|
value;
|
|
@@ -125483,10 +126326,12 @@ ${values.join("\n")}` : `${blockName} :`;
|
|
|
125483
126326
|
};
|
|
125484
126327
|
__decorate([AsnProp({ type: AsnPropTypes.Integer })], CRLNumber.prototype, "value", void 0);
|
|
125485
126328
|
CRLNumber = __decorate([AsnType({ type: AsnTypeTypes.Choice })], CRLNumber);
|
|
126329
|
+
init_tslib_es6();
|
|
125486
126330
|
`${id_ce}`;
|
|
125487
126331
|
var BaseCRLNumber = class BaseCRLNumber extends CRLNumber {
|
|
125488
126332
|
};
|
|
125489
126333
|
BaseCRLNumber = __decorate([AsnType({ type: AsnTypeTypes.Choice })], BaseCRLNumber);
|
|
126334
|
+
init_tslib_es6();
|
|
125490
126335
|
var CRLDistributionPoints_1;
|
|
125491
126336
|
var id_ce_cRLDistributionPoints = `${id_ce}.31`;
|
|
125492
126337
|
var ReasonFlags;
|
|
@@ -125575,6 +126420,7 @@ ${values.join("\n")}` : `${blockName} :`;
|
|
|
125575
126420
|
type: AsnTypeTypes.Sequence,
|
|
125576
126421
|
itemType: DistributionPoint
|
|
125577
126422
|
})], CRLDistributionPoints);
|
|
126423
|
+
init_tslib_es6();
|
|
125578
126424
|
var FreshestCRL_1;
|
|
125579
126425
|
`${id_ce}`;
|
|
125580
126426
|
var FreshestCRL = FreshestCRL_1 = class FreshestCRL extends CRLDistributionPoints {
|
|
@@ -125587,6 +126433,7 @@ ${values.join("\n")}` : `${blockName} :`;
|
|
|
125587
126433
|
type: AsnTypeTypes.Sequence,
|
|
125588
126434
|
itemType: DistributionPoint
|
|
125589
126435
|
})], FreshestCRL);
|
|
126436
|
+
init_tslib_es6();
|
|
125590
126437
|
`${id_ce}`;
|
|
125591
126438
|
var IssuingDistributionPoint = class IssuingDistributionPoint2 {
|
|
125592
126439
|
static ONLY = false;
|
|
@@ -125635,6 +126482,7 @@ ${values.join("\n")}` : `${blockName} :`;
|
|
|
125635
126482
|
defaultValue: IssuingDistributionPoint.ONLY,
|
|
125636
126483
|
implicit: true
|
|
125637
126484
|
})], IssuingDistributionPoint.prototype, "onlyContainsAttributeCerts", void 0);
|
|
126485
|
+
init_tslib_es6();
|
|
125638
126486
|
`${id_ce}`;
|
|
125639
126487
|
var CRLReasons;
|
|
125640
126488
|
(function(CRLReasons2) {
|
|
@@ -125663,6 +126511,7 @@ ${values.join("\n")}` : `${blockName} :`;
|
|
|
125663
126511
|
};
|
|
125664
126512
|
__decorate([AsnProp({ type: AsnPropTypes.Enumerated })], CRLReason.prototype, "reason", void 0);
|
|
125665
126513
|
CRLReason = __decorate([AsnType({ type: AsnTypeTypes.Choice })], CRLReason);
|
|
126514
|
+
init_tslib_es6();
|
|
125666
126515
|
var ExtendedKeyUsage_1;
|
|
125667
126516
|
var id_ce_extKeyUsage = `${id_ce}.37`;
|
|
125668
126517
|
var ExtendedKeyUsage$1 = ExtendedKeyUsage_1 = class ExtendedKeyUsage extends AsnArray {
|
|
@@ -125682,6 +126531,7 @@ ${values.join("\n")}` : `${blockName} :`;
|
|
|
125682
126531
|
var id_kp_emailProtection = `${id_kp}.4`;
|
|
125683
126532
|
var id_kp_timeStamping = `${id_kp}.8`;
|
|
125684
126533
|
var id_kp_OCSPSigning = `${id_kp}.9`;
|
|
126534
|
+
init_tslib_es6();
|
|
125685
126535
|
`${id_ce}`;
|
|
125686
126536
|
var InhibitAnyPolicy = class InhibitAnyPolicy {
|
|
125687
126537
|
value;
|
|
@@ -125694,6 +126544,7 @@ ${values.join("\n")}` : `${blockName} :`;
|
|
|
125694
126544
|
converter: AsnIntegerArrayBufferConverter
|
|
125695
126545
|
})], InhibitAnyPolicy.prototype, "value", void 0);
|
|
125696
126546
|
InhibitAnyPolicy = __decorate([AsnType({ type: AsnTypeTypes.Choice })], InhibitAnyPolicy);
|
|
126547
|
+
init_tslib_es6();
|
|
125697
126548
|
`${id_ce}`;
|
|
125698
126549
|
var InvalidityDate = class InvalidityDate {
|
|
125699
126550
|
value = /* @__PURE__ */ new Date();
|
|
@@ -125703,6 +126554,7 @@ ${values.join("\n")}` : `${blockName} :`;
|
|
|
125703
126554
|
};
|
|
125704
126555
|
__decorate([AsnProp({ type: AsnPropTypes.GeneralizedTime })], InvalidityDate.prototype, "value", void 0);
|
|
125705
126556
|
InvalidityDate = __decorate([AsnType({ type: AsnTypeTypes.Choice })], InvalidityDate);
|
|
126557
|
+
init_tslib_es6();
|
|
125706
126558
|
var IssueAlternativeName_1;
|
|
125707
126559
|
var id_ce_issuerAltName = `${id_ce}.18`;
|
|
125708
126560
|
var IssueAlternativeName = IssueAlternativeName_1 = class IssueAlternativeName extends GeneralNames$1 {
|
|
@@ -125744,6 +126596,7 @@ ${values.join("\n")}` : `${blockName} :`;
|
|
|
125744
126596
|
return `[${this.toJSON().join(", ")}]`;
|
|
125745
126597
|
}
|
|
125746
126598
|
};
|
|
126599
|
+
init_tslib_es6();
|
|
125747
126600
|
var GeneralSubtrees_1;
|
|
125748
126601
|
`${id_ce}`;
|
|
125749
126602
|
var GeneralSubtree = class {
|
|
@@ -125796,6 +126649,7 @@ ${values.join("\n")}` : `${blockName} :`;
|
|
|
125796
126649
|
optional: true,
|
|
125797
126650
|
implicit: true
|
|
125798
126651
|
})], NameConstraints.prototype, "excludedSubtrees", void 0);
|
|
126652
|
+
init_tslib_es6();
|
|
125799
126653
|
`${id_ce}`;
|
|
125800
126654
|
var PolicyConstraints = class {
|
|
125801
126655
|
requireExplicitPolicy;
|
|
@@ -125818,6 +126672,7 @@ ${values.join("\n")}` : `${blockName} :`;
|
|
|
125818
126672
|
optional: true,
|
|
125819
126673
|
converter: AsnIntegerArrayBufferConverter
|
|
125820
126674
|
})], PolicyConstraints.prototype, "inhibitPolicyMapping", void 0);
|
|
126675
|
+
init_tslib_es6();
|
|
125821
126676
|
var PolicyMappings_1;
|
|
125822
126677
|
`${id_ce}`;
|
|
125823
126678
|
var PolicyMapping = class {
|
|
@@ -125839,6 +126694,7 @@ ${values.join("\n")}` : `${blockName} :`;
|
|
|
125839
126694
|
type: AsnTypeTypes.Sequence,
|
|
125840
126695
|
itemType: PolicyMapping
|
|
125841
126696
|
})], PolicyMappings);
|
|
126697
|
+
init_tslib_es6();
|
|
125842
126698
|
var SubjectAlternativeName_1;
|
|
125843
126699
|
var id_ce_subjectAltName = `${id_ce}.17`;
|
|
125844
126700
|
var SubjectAlternativeName = SubjectAlternativeName_1 = class SubjectAlternativeName extends GeneralNames$1 {
|
|
@@ -125848,6 +126704,7 @@ ${values.join("\n")}` : `${blockName} :`;
|
|
|
125848
126704
|
}
|
|
125849
126705
|
};
|
|
125850
126706
|
SubjectAlternativeName = SubjectAlternativeName_1 = __decorate([AsnType({ type: AsnTypeTypes.Sequence })], SubjectAlternativeName);
|
|
126707
|
+
init_tslib_es6();
|
|
125851
126708
|
var Attribute$2 = class {
|
|
125852
126709
|
type = "";
|
|
125853
126710
|
values = [];
|
|
@@ -125860,6 +126717,7 @@ ${values.join("\n")}` : `${blockName} :`;
|
|
|
125860
126717
|
type: AsnPropTypes.Any,
|
|
125861
126718
|
repeated: "set"
|
|
125862
126719
|
})], Attribute$2.prototype, "values", void 0);
|
|
126720
|
+
init_tslib_es6();
|
|
125863
126721
|
var SubjectDirectoryAttributes_1;
|
|
125864
126722
|
`${id_ce}`;
|
|
125865
126723
|
var SubjectDirectoryAttributes = SubjectDirectoryAttributes_1 = class SubjectDirectoryAttributes extends AsnArray {
|
|
@@ -125875,6 +126733,7 @@ ${values.join("\n")}` : `${blockName} :`;
|
|
|
125875
126733
|
var id_ce_subjectKeyIdentifier = `${id_ce}.14`;
|
|
125876
126734
|
var SubjectKeyIdentifier = class extends KeyIdentifier {
|
|
125877
126735
|
};
|
|
126736
|
+
init_tslib_es6();
|
|
125878
126737
|
`${id_ce}`;
|
|
125879
126738
|
var PrivateKeyUsagePeriod = class {
|
|
125880
126739
|
notBefore;
|
|
@@ -125895,6 +126754,7 @@ ${values.join("\n")}` : `${blockName} :`;
|
|
|
125895
126754
|
implicit: true,
|
|
125896
126755
|
optional: true
|
|
125897
126756
|
})], PrivateKeyUsagePeriod.prototype, "notAfter", void 0);
|
|
126757
|
+
init_tslib_es6();
|
|
125898
126758
|
var EntrustInfoFlags;
|
|
125899
126759
|
(function(EntrustInfoFlags2) {
|
|
125900
126760
|
EntrustInfoFlags2[EntrustInfoFlags2["keyUpdateAllowed"] = 1] = "keyUpdateAllowed";
|
|
@@ -125923,6 +126783,7 @@ ${values.join("\n")}` : `${blockName} :`;
|
|
|
125923
126783
|
};
|
|
125924
126784
|
__decorate([AsnProp({ type: AsnPropTypes.GeneralString })], EntrustVersionInfo.prototype, "entrustVers", void 0);
|
|
125925
126785
|
__decorate([AsnProp({ type: EntrustInfo })], EntrustVersionInfo.prototype, "entrustInfoFlags", void 0);
|
|
126786
|
+
init_tslib_es6();
|
|
125926
126787
|
var SubjectInfoAccessSyntax_1;
|
|
125927
126788
|
`${id_pe}`;
|
|
125928
126789
|
var SubjectInfoAccessSyntax = SubjectInfoAccessSyntax_1 = class SubjectInfoAccessSyntax extends AsnArray {
|
|
@@ -125935,6 +126796,7 @@ ${values.join("\n")}` : `${blockName} :`;
|
|
|
125935
126796
|
type: AsnTypeTypes.Sequence,
|
|
125936
126797
|
itemType: AccessDescription
|
|
125937
126798
|
})], SubjectInfoAccessSyntax);
|
|
126799
|
+
init_tslib_es6();
|
|
125938
126800
|
var AlgorithmIdentifier = class AlgorithmIdentifier2 {
|
|
125939
126801
|
algorithm = "";
|
|
125940
126802
|
parameters;
|
|
@@ -125950,6 +126812,7 @@ ${values.join("\n")}` : `${blockName} :`;
|
|
|
125950
126812
|
type: AsnPropTypes.Any,
|
|
125951
126813
|
optional: true
|
|
125952
126814
|
})], AlgorithmIdentifier.prototype, "parameters", void 0);
|
|
126815
|
+
init_tslib_es6();
|
|
125953
126816
|
var SubjectPublicKeyInfo = class {
|
|
125954
126817
|
algorithm = new AlgorithmIdentifier();
|
|
125955
126818
|
subjectPublicKey = /* @__PURE__ */ new ArrayBuffer(0);
|
|
@@ -125959,6 +126822,7 @@ ${values.join("\n")}` : `${blockName} :`;
|
|
|
125959
126822
|
};
|
|
125960
126823
|
__decorate([AsnProp({ type: AlgorithmIdentifier })], SubjectPublicKeyInfo.prototype, "algorithm", void 0);
|
|
125961
126824
|
__decorate([AsnProp({ type: AsnPropTypes.BitString })], SubjectPublicKeyInfo.prototype, "subjectPublicKey", void 0);
|
|
126825
|
+
init_tslib_es6();
|
|
125962
126826
|
var Time = class Time {
|
|
125963
126827
|
utcTime;
|
|
125964
126828
|
generalTime;
|
|
@@ -125979,6 +126843,7 @@ ${values.join("\n")}` : `${blockName} :`;
|
|
|
125979
126843
|
__decorate([AsnProp({ type: AsnPropTypes.UTCTime })], Time.prototype, "utcTime", void 0);
|
|
125980
126844
|
__decorate([AsnProp({ type: AsnPropTypes.GeneralizedTime })], Time.prototype, "generalTime", void 0);
|
|
125981
126845
|
Time = __decorate([AsnType({ type: AsnTypeTypes.Choice })], Time);
|
|
126846
|
+
init_tslib_es6();
|
|
125982
126847
|
var Validity = class {
|
|
125983
126848
|
notBefore = new Time(/* @__PURE__ */ new Date());
|
|
125984
126849
|
notAfter = new Time(/* @__PURE__ */ new Date());
|
|
@@ -125991,6 +126856,7 @@ ${values.join("\n")}` : `${blockName} :`;
|
|
|
125991
126856
|
};
|
|
125992
126857
|
__decorate([AsnProp({ type: Time })], Validity.prototype, "notBefore", void 0);
|
|
125993
126858
|
__decorate([AsnProp({ type: Time })], Validity.prototype, "notAfter", void 0);
|
|
126859
|
+
init_tslib_es6();
|
|
125994
126860
|
var Extensions_1;
|
|
125995
126861
|
var Extension$1 = class Extension$12 {
|
|
125996
126862
|
static CRITICAL = false;
|
|
@@ -126023,6 +126889,7 @@ ${values.join("\n")}` : `${blockName} :`;
|
|
|
126023
126889
|
Version2[Version2["v2"] = 1] = "v2";
|
|
126024
126890
|
Version2[Version2["v3"] = 2] = "v3";
|
|
126025
126891
|
})(Version$1 || (Version$1 = {}));
|
|
126892
|
+
init_tslib_es6();
|
|
126026
126893
|
var TBSCertificate = class {
|
|
126027
126894
|
version = Version$1.v1;
|
|
126028
126895
|
serialNumber = /* @__PURE__ */ new ArrayBuffer(0);
|
|
@@ -126069,6 +126936,7 @@ ${values.join("\n")}` : `${blockName} :`;
|
|
|
126069
126936
|
context: 3,
|
|
126070
126937
|
optional: true
|
|
126071
126938
|
})], TBSCertificate.prototype, "extensions", void 0);
|
|
126939
|
+
init_tslib_es6();
|
|
126072
126940
|
var Certificate = class {
|
|
126073
126941
|
tbsCertificate = new TBSCertificate();
|
|
126074
126942
|
tbsCertificateRaw;
|
|
@@ -126084,6 +126952,7 @@ ${values.join("\n")}` : `${blockName} :`;
|
|
|
126084
126952
|
})], Certificate.prototype, "tbsCertificate", void 0);
|
|
126085
126953
|
__decorate([AsnProp({ type: AlgorithmIdentifier })], Certificate.prototype, "signatureAlgorithm", void 0);
|
|
126086
126954
|
__decorate([AsnProp({ type: AsnPropTypes.BitString })], Certificate.prototype, "signatureValue", void 0);
|
|
126955
|
+
init_tslib_es6();
|
|
126087
126956
|
var RevokedCertificate = class {
|
|
126088
126957
|
userCertificate = /* @__PURE__ */ new ArrayBuffer(0);
|
|
126089
126958
|
revocationDate = new Time();
|
|
@@ -126136,6 +127005,7 @@ ${values.join("\n")}` : `${blockName} :`;
|
|
|
126136
127005
|
context: 0,
|
|
126137
127006
|
repeated: "sequence"
|
|
126138
127007
|
})], TBSCertList.prototype, "crlExtensions", void 0);
|
|
127008
|
+
init_tslib_es6();
|
|
126139
127009
|
var CertificateList = class {
|
|
126140
127010
|
tbsCertList = new TBSCertList();
|
|
126141
127011
|
tbsCertListRaw;
|
|
@@ -126151,6 +127021,7 @@ ${values.join("\n")}` : `${blockName} :`;
|
|
|
126151
127021
|
})], CertificateList.prototype, "tbsCertList", void 0);
|
|
126152
127022
|
__decorate([AsnProp({ type: AlgorithmIdentifier })], CertificateList.prototype, "signatureAlgorithm", void 0);
|
|
126153
127023
|
__decorate([AsnProp({ type: AsnPropTypes.BitString })], CertificateList.prototype, "signature", void 0);
|
|
127024
|
+
init_tslib_es6();
|
|
126154
127025
|
var IssuerAndSerialNumber = class {
|
|
126155
127026
|
issuer = new Name$1();
|
|
126156
127027
|
serialNumber = /* @__PURE__ */ new ArrayBuffer(0);
|
|
@@ -126163,6 +127034,7 @@ ${values.join("\n")}` : `${blockName} :`;
|
|
|
126163
127034
|
type: AsnPropTypes.Integer,
|
|
126164
127035
|
converter: AsnIntegerArrayBufferConverter
|
|
126165
127036
|
})], IssuerAndSerialNumber.prototype, "serialNumber", void 0);
|
|
127037
|
+
init_tslib_es6();
|
|
126166
127038
|
var SignerIdentifier = class SignerIdentifier {
|
|
126167
127039
|
subjectKeyIdentifier;
|
|
126168
127040
|
issuerAndSerialNumber;
|
|
@@ -126177,6 +127049,7 @@ ${values.join("\n")}` : `${blockName} :`;
|
|
|
126177
127049
|
})], SignerIdentifier.prototype, "subjectKeyIdentifier", void 0);
|
|
126178
127050
|
__decorate([AsnProp({ type: IssuerAndSerialNumber })], SignerIdentifier.prototype, "issuerAndSerialNumber", void 0);
|
|
126179
127051
|
SignerIdentifier = __decorate([AsnType({ type: AsnTypeTypes.Choice })], SignerIdentifier);
|
|
127052
|
+
init_tslib_es6();
|
|
126180
127053
|
var CMSVersion;
|
|
126181
127054
|
(function(CMSVersion2) {
|
|
126182
127055
|
CMSVersion2[CMSVersion2["v0"] = 0] = "v0";
|
|
@@ -126204,6 +127077,7 @@ ${values.join("\n")}` : `${blockName} :`;
|
|
|
126204
127077
|
var KeyDerivationAlgorithmIdentifier = class KeyDerivationAlgorithmIdentifier extends AlgorithmIdentifier {
|
|
126205
127078
|
};
|
|
126206
127079
|
KeyDerivationAlgorithmIdentifier = __decorate([AsnType({ type: AsnTypeTypes.Sequence })], KeyDerivationAlgorithmIdentifier);
|
|
127080
|
+
init_tslib_es6();
|
|
126207
127081
|
var Attribute$1 = class {
|
|
126208
127082
|
attrType = "";
|
|
126209
127083
|
attrValues = [];
|
|
@@ -126216,6 +127090,7 @@ ${values.join("\n")}` : `${blockName} :`;
|
|
|
126216
127090
|
type: AsnPropTypes.Any,
|
|
126217
127091
|
repeated: "set"
|
|
126218
127092
|
})], Attribute$1.prototype, "attrValues", void 0);
|
|
127093
|
+
init_tslib_es6();
|
|
126219
127094
|
var SignerInfos_1;
|
|
126220
127095
|
var SignerInfo = class {
|
|
126221
127096
|
version = CMSVersion.v0;
|
|
@@ -126260,12 +127135,15 @@ ${values.join("\n")}` : `${blockName} :`;
|
|
|
126260
127135
|
type: AsnTypeTypes.Set,
|
|
126261
127136
|
itemType: SignerInfo
|
|
126262
127137
|
})], SignerInfos);
|
|
127138
|
+
init_tslib_es6();
|
|
126263
127139
|
var CounterSignature$1 = class CounterSignature extends SignerInfo {
|
|
126264
127140
|
};
|
|
126265
127141
|
CounterSignature$1 = __decorate([AsnType({ type: AsnTypeTypes.Sequence })], CounterSignature$1);
|
|
127142
|
+
init_tslib_es6();
|
|
126266
127143
|
var SigningTime$1 = class SigningTime extends Time {
|
|
126267
127144
|
};
|
|
126268
127145
|
SigningTime$1 = __decorate([AsnType({ type: AsnTypeTypes.Choice })], SigningTime$1);
|
|
127146
|
+
init_tslib_es6();
|
|
126269
127147
|
var ACClearAttrs = class {
|
|
126270
127148
|
acIssuer = new GeneralName$1();
|
|
126271
127149
|
acSerial = 0;
|
|
@@ -126280,6 +127158,7 @@ ${values.join("\n")}` : `${blockName} :`;
|
|
|
126280
127158
|
type: Attribute$2,
|
|
126281
127159
|
repeated: "sequence"
|
|
126282
127160
|
})], ACClearAttrs.prototype, "attrs", void 0);
|
|
127161
|
+
init_tslib_es6();
|
|
126283
127162
|
var AttrSpec_1;
|
|
126284
127163
|
var AttrSpec = AttrSpec_1 = class AttrSpec extends AsnArray {
|
|
126285
127164
|
constructor(items) {
|
|
@@ -126291,6 +127170,7 @@ ${values.join("\n")}` : `${blockName} :`;
|
|
|
126291
127170
|
type: AsnTypeTypes.Sequence,
|
|
126292
127171
|
itemType: AsnPropTypes.ObjectIdentifier
|
|
126293
127172
|
})], AttrSpec);
|
|
127173
|
+
init_tslib_es6();
|
|
126294
127174
|
var AAControls = class {
|
|
126295
127175
|
pathLenConstraint;
|
|
126296
127176
|
permittedAttrs;
|
|
@@ -126320,6 +127200,7 @@ ${values.join("\n")}` : `${blockName} :`;
|
|
|
126320
127200
|
type: AsnPropTypes.Boolean,
|
|
126321
127201
|
defaultValue: true
|
|
126322
127202
|
})], AAControls.prototype, "permitUnSpecified", void 0);
|
|
127203
|
+
init_tslib_es6();
|
|
126323
127204
|
var IssuerSerial = class {
|
|
126324
127205
|
issuer = new GeneralNames$1();
|
|
126325
127206
|
serial = /* @__PURE__ */ new ArrayBuffer(0);
|
|
@@ -126337,6 +127218,7 @@ ${values.join("\n")}` : `${blockName} :`;
|
|
|
126337
127218
|
type: AsnPropTypes.BitString,
|
|
126338
127219
|
optional: true
|
|
126339
127220
|
})], IssuerSerial.prototype, "issuerUID", void 0);
|
|
127221
|
+
init_tslib_es6();
|
|
126340
127222
|
var DigestedObjectType;
|
|
126341
127223
|
(function(DigestedObjectType2) {
|
|
126342
127224
|
DigestedObjectType2[DigestedObjectType2["publicKey"] = 0] = "publicKey";
|
|
@@ -126359,6 +127241,7 @@ ${values.join("\n")}` : `${blockName} :`;
|
|
|
126359
127241
|
})], ObjectDigestInfo.prototype, "otherObjectTypeID", void 0);
|
|
126360
127242
|
__decorate([AsnProp({ type: AlgorithmIdentifier })], ObjectDigestInfo.prototype, "digestAlgorithm", void 0);
|
|
126361
127243
|
__decorate([AsnProp({ type: AsnPropTypes.BitString })], ObjectDigestInfo.prototype, "objectDigest", void 0);
|
|
127244
|
+
init_tslib_es6();
|
|
126362
127245
|
var V2Form = class {
|
|
126363
127246
|
issuerName;
|
|
126364
127247
|
baseCertificateID;
|
|
@@ -126383,6 +127266,7 @@ ${values.join("\n")}` : `${blockName} :`;
|
|
|
126383
127266
|
implicit: true,
|
|
126384
127267
|
optional: true
|
|
126385
127268
|
})], V2Form.prototype, "objectDigestInfo", void 0);
|
|
127269
|
+
init_tslib_es6();
|
|
126386
127270
|
var AttCertIssuer = class AttCertIssuer {
|
|
126387
127271
|
v1Form;
|
|
126388
127272
|
v2Form;
|
|
@@ -126400,6 +127284,7 @@ ${values.join("\n")}` : `${blockName} :`;
|
|
|
126400
127284
|
implicit: true
|
|
126401
127285
|
})], AttCertIssuer.prototype, "v2Form", void 0);
|
|
126402
127286
|
AttCertIssuer = __decorate([AsnType({ type: AsnTypeTypes.Choice })], AttCertIssuer);
|
|
127287
|
+
init_tslib_es6();
|
|
126403
127288
|
var AttCertValidityPeriod = class {
|
|
126404
127289
|
notBeforeTime = /* @__PURE__ */ new Date();
|
|
126405
127290
|
notAfterTime = /* @__PURE__ */ new Date();
|
|
@@ -126409,6 +127294,7 @@ ${values.join("\n")}` : `${blockName} :`;
|
|
|
126409
127294
|
};
|
|
126410
127295
|
__decorate([AsnProp({ type: AsnPropTypes.GeneralizedTime })], AttCertValidityPeriod.prototype, "notBeforeTime", void 0);
|
|
126411
127296
|
__decorate([AsnProp({ type: AsnPropTypes.GeneralizedTime })], AttCertValidityPeriod.prototype, "notAfterTime", void 0);
|
|
127297
|
+
init_tslib_es6();
|
|
126412
127298
|
var Holder = class {
|
|
126413
127299
|
baseCertificateID;
|
|
126414
127300
|
entityName;
|
|
@@ -126435,6 +127321,7 @@ ${values.join("\n")}` : `${blockName} :`;
|
|
|
126435
127321
|
context: 2,
|
|
126436
127322
|
optional: true
|
|
126437
127323
|
})], Holder.prototype, "objectDigestInfo", void 0);
|
|
127324
|
+
init_tslib_es6();
|
|
126438
127325
|
var AttCertVersion;
|
|
126439
127326
|
(function(AttCertVersion2) {
|
|
126440
127327
|
AttCertVersion2[AttCertVersion2["v2"] = 1] = "v2";
|
|
@@ -126474,6 +127361,7 @@ ${values.join("\n")}` : `${blockName} :`;
|
|
|
126474
127361
|
type: Extensions,
|
|
126475
127362
|
optional: true
|
|
126476
127363
|
})], AttributeCertificateInfo.prototype, "extensions", void 0);
|
|
127364
|
+
init_tslib_es6();
|
|
126477
127365
|
var AttributeCertificate = class {
|
|
126478
127366
|
acinfo = new AttributeCertificateInfo();
|
|
126479
127367
|
signatureAlgorithm = new AlgorithmIdentifier();
|
|
@@ -126496,6 +127384,7 @@ ${values.join("\n")}` : `${blockName} :`;
|
|
|
126496
127384
|
})(ClassListFlags || (ClassListFlags = {}));
|
|
126497
127385
|
var ClassList = class extends BitString {
|
|
126498
127386
|
};
|
|
127387
|
+
init_tslib_es6();
|
|
126499
127388
|
var SecurityCategory = class {
|
|
126500
127389
|
type = "";
|
|
126501
127390
|
value = /* @__PURE__ */ new ArrayBuffer(0);
|
|
@@ -126513,6 +127402,7 @@ ${values.join("\n")}` : `${blockName} :`;
|
|
|
126513
127402
|
implicit: true,
|
|
126514
127403
|
context: 1
|
|
126515
127404
|
})], SecurityCategory.prototype, "value", void 0);
|
|
127405
|
+
init_tslib_es6();
|
|
126516
127406
|
var Clearance = class {
|
|
126517
127407
|
policyId = "";
|
|
126518
127408
|
classList = new ClassList(ClassListFlags.unclassified);
|
|
@@ -126530,6 +127420,7 @@ ${values.join("\n")}` : `${blockName} :`;
|
|
|
126530
127420
|
type: SecurityCategory,
|
|
126531
127421
|
repeated: "set"
|
|
126532
127422
|
})], Clearance.prototype, "securityCategories", void 0);
|
|
127423
|
+
init_tslib_es6();
|
|
126533
127424
|
var IetfAttrSyntaxValueChoices = class {
|
|
126534
127425
|
cotets;
|
|
126535
127426
|
oid;
|
|
@@ -126570,6 +127461,7 @@ ${values.join("\n")}` : `${blockName} :`;
|
|
|
126570
127461
|
`${id_aca}`;
|
|
126571
127462
|
var id_at = "2.5.4";
|
|
126572
127463
|
`${id_at}`;
|
|
127464
|
+
init_tslib_es6();
|
|
126573
127465
|
var Targets_1;
|
|
126574
127466
|
var TargetCert = class {
|
|
126575
127467
|
targetCertificate = new IssuerSerial();
|
|
@@ -126622,6 +127514,7 @@ ${values.join("\n")}` : `${blockName} :`;
|
|
|
126622
127514
|
type: AsnTypeTypes.Sequence,
|
|
126623
127515
|
itemType: Target
|
|
126624
127516
|
})], Targets);
|
|
127517
|
+
init_tslib_es6();
|
|
126625
127518
|
var ProxyInfo_1;
|
|
126626
127519
|
var ProxyInfo = ProxyInfo_1 = class ProxyInfo extends AsnArray {
|
|
126627
127520
|
constructor(items) {
|
|
@@ -126633,6 +127526,7 @@ ${values.join("\n")}` : `${blockName} :`;
|
|
|
126633
127526
|
type: AsnTypeTypes.Sequence,
|
|
126634
127527
|
itemType: Targets
|
|
126635
127528
|
})], ProxyInfo);
|
|
127529
|
+
init_tslib_es6();
|
|
126636
127530
|
var RoleSyntax = class {
|
|
126637
127531
|
roleAuthority;
|
|
126638
127532
|
roleName;
|
|
@@ -126651,6 +127545,7 @@ ${values.join("\n")}` : `${blockName} :`;
|
|
|
126651
127545
|
implicit: true,
|
|
126652
127546
|
context: 1
|
|
126653
127547
|
})], RoleSyntax.prototype, "roleName", void 0);
|
|
127548
|
+
init_tslib_es6();
|
|
126654
127549
|
var SvceAuthInfo = class {
|
|
126655
127550
|
service = new GeneralName$1();
|
|
126656
127551
|
ident = new GeneralName$1();
|
|
@@ -126665,6 +127560,7 @@ ${values.join("\n")}` : `${blockName} :`;
|
|
|
126665
127560
|
type: OctetString,
|
|
126666
127561
|
optional: true
|
|
126667
127562
|
})], SvceAuthInfo.prototype, "authInfo", void 0);
|
|
127563
|
+
init_tslib_es6();
|
|
126668
127564
|
var CertificateSet_1;
|
|
126669
127565
|
var OtherCertificateFormat = class {
|
|
126670
127566
|
otherCertFormat = "";
|
|
@@ -126705,6 +127601,7 @@ ${values.join("\n")}` : `${blockName} :`;
|
|
|
126705
127601
|
type: AsnTypeTypes.Set,
|
|
126706
127602
|
itemType: CertificateChoices
|
|
126707
127603
|
})], CertificateSet);
|
|
127604
|
+
init_tslib_es6();
|
|
126708
127605
|
var ContentInfo = class {
|
|
126709
127606
|
contentType = "";
|
|
126710
127607
|
content = /* @__PURE__ */ new ArrayBuffer(0);
|
|
@@ -126717,6 +127614,7 @@ ${values.join("\n")}` : `${blockName} :`;
|
|
|
126717
127614
|
type: AsnPropTypes.Any,
|
|
126718
127615
|
context: 0
|
|
126719
127616
|
})], ContentInfo.prototype, "content", void 0);
|
|
127617
|
+
init_tslib_es6();
|
|
126720
127618
|
var EncapsulatedContent = class EncapsulatedContent {
|
|
126721
127619
|
single;
|
|
126722
127620
|
any;
|
|
@@ -126740,6 +127638,7 @@ ${values.join("\n")}` : `${blockName} :`;
|
|
|
126740
127638
|
context: 0,
|
|
126741
127639
|
optional: true
|
|
126742
127640
|
})], EncapsulatedContentInfo.prototype, "eContent", void 0);
|
|
127641
|
+
init_tslib_es6();
|
|
126743
127642
|
var EncryptedContent = class EncryptedContent {
|
|
126744
127643
|
value;
|
|
126745
127644
|
constructedValue;
|
|
@@ -126776,6 +127675,7 @@ ${values.join("\n")}` : `${blockName} :`;
|
|
|
126776
127675
|
type: EncryptedContent,
|
|
126777
127676
|
optional: true
|
|
126778
127677
|
})], EncryptedContentInfo.prototype, "encryptedContent", void 0);
|
|
127678
|
+
init_tslib_es6();
|
|
126779
127679
|
var OtherKeyAttribute = class {
|
|
126780
127680
|
keyAttrId = "";
|
|
126781
127681
|
keyAttr;
|
|
@@ -126788,6 +127688,7 @@ ${values.join("\n")}` : `${blockName} :`;
|
|
|
126788
127688
|
type: AsnPropTypes.Any,
|
|
126789
127689
|
optional: true
|
|
126790
127690
|
})], OtherKeyAttribute.prototype, "keyAttr", void 0);
|
|
127691
|
+
init_tslib_es6();
|
|
126791
127692
|
var RecipientEncryptedKeys_1;
|
|
126792
127693
|
var RecipientKeyIdentifier = class {
|
|
126793
127694
|
subjectKeyIdentifier = new SubjectKeyIdentifier();
|
|
@@ -126899,6 +127800,7 @@ ${values.join("\n")}` : `${blockName} :`;
|
|
|
126899
127800
|
})], KeyAgreeRecipientInfo.prototype, "ukm", void 0);
|
|
126900
127801
|
__decorate([AsnProp({ type: KeyEncryptionAlgorithmIdentifier })], KeyAgreeRecipientInfo.prototype, "keyEncryptionAlgorithm", void 0);
|
|
126901
127802
|
__decorate([AsnProp({ type: RecipientEncryptedKeys })], KeyAgreeRecipientInfo.prototype, "recipientEncryptedKeys", void 0);
|
|
127803
|
+
init_tslib_es6();
|
|
126902
127804
|
var RecipientIdentifier = class RecipientIdentifier {
|
|
126903
127805
|
subjectKeyIdentifier;
|
|
126904
127806
|
issuerAndSerialNumber;
|
|
@@ -126926,6 +127828,7 @@ ${values.join("\n")}` : `${blockName} :`;
|
|
|
126926
127828
|
__decorate([AsnProp({ type: RecipientIdentifier })], KeyTransRecipientInfo.prototype, "rid", void 0);
|
|
126927
127829
|
__decorate([AsnProp({ type: KeyEncryptionAlgorithmIdentifier })], KeyTransRecipientInfo.prototype, "keyEncryptionAlgorithm", void 0);
|
|
126928
127830
|
__decorate([AsnProp({ type: OctetString })], KeyTransRecipientInfo.prototype, "encryptedKey", void 0);
|
|
127831
|
+
init_tslib_es6();
|
|
126929
127832
|
var KEKIdentifier = class {
|
|
126930
127833
|
keyIdentifier = new OctetString();
|
|
126931
127834
|
date;
|
|
@@ -126956,6 +127859,7 @@ ${values.join("\n")}` : `${blockName} :`;
|
|
|
126956
127859
|
__decorate([AsnProp({ type: KEKIdentifier })], KEKRecipientInfo.prototype, "kekid", void 0);
|
|
126957
127860
|
__decorate([AsnProp({ type: KeyEncryptionAlgorithmIdentifier })], KEKRecipientInfo.prototype, "keyEncryptionAlgorithm", void 0);
|
|
126958
127861
|
__decorate([AsnProp({ type: OctetString })], KEKRecipientInfo.prototype, "encryptedKey", void 0);
|
|
127862
|
+
init_tslib_es6();
|
|
126959
127863
|
var PasswordRecipientInfo = class {
|
|
126960
127864
|
version = CMSVersion.v0;
|
|
126961
127865
|
keyDerivationAlgorithm;
|
|
@@ -126973,6 +127877,7 @@ ${values.join("\n")}` : `${blockName} :`;
|
|
|
126973
127877
|
})], PasswordRecipientInfo.prototype, "keyDerivationAlgorithm", void 0);
|
|
126974
127878
|
__decorate([AsnProp({ type: KeyEncryptionAlgorithmIdentifier })], PasswordRecipientInfo.prototype, "keyEncryptionAlgorithm", void 0);
|
|
126975
127879
|
__decorate([AsnProp({ type: OctetString })], PasswordRecipientInfo.prototype, "encryptedKey", void 0);
|
|
127880
|
+
init_tslib_es6();
|
|
126976
127881
|
var OtherRecipientInfo = class {
|
|
126977
127882
|
oriType = "";
|
|
126978
127883
|
oriValue = /* @__PURE__ */ new ArrayBuffer(0);
|
|
@@ -127021,6 +127926,7 @@ ${values.join("\n")}` : `${blockName} :`;
|
|
|
127021
127926
|
optional: true
|
|
127022
127927
|
})], RecipientInfo.prototype, "ori", void 0);
|
|
127023
127928
|
RecipientInfo = __decorate([AsnType({ type: AsnTypeTypes.Choice })], RecipientInfo);
|
|
127929
|
+
init_tslib_es6();
|
|
127024
127930
|
var RecipientInfos_1;
|
|
127025
127931
|
var RecipientInfos = RecipientInfos_1 = class RecipientInfos extends AsnArray {
|
|
127026
127932
|
constructor(items) {
|
|
@@ -127032,6 +127938,7 @@ ${values.join("\n")}` : `${blockName} :`;
|
|
|
127032
127938
|
type: AsnTypeTypes.Set,
|
|
127033
127939
|
itemType: RecipientInfo
|
|
127034
127940
|
})], RecipientInfos);
|
|
127941
|
+
init_tslib_es6();
|
|
127035
127942
|
var RevocationInfoChoices_1;
|
|
127036
127943
|
var id_ri = `${id_pkix}.16`;
|
|
127037
127944
|
`${id_ri}`;
|
|
@@ -127067,6 +127974,7 @@ ${values.join("\n")}` : `${blockName} :`;
|
|
|
127067
127974
|
type: AsnTypeTypes.Set,
|
|
127068
127975
|
itemType: RevocationInfoChoice
|
|
127069
127976
|
})], RevocationInfoChoices);
|
|
127977
|
+
init_tslib_es6();
|
|
127070
127978
|
var OriginatorInfo = class {
|
|
127071
127979
|
certs;
|
|
127072
127980
|
crls;
|
|
@@ -127086,6 +127994,7 @@ ${values.join("\n")}` : `${blockName} :`;
|
|
|
127086
127994
|
implicit: true,
|
|
127087
127995
|
optional: true
|
|
127088
127996
|
})], OriginatorInfo.prototype, "crls", void 0);
|
|
127997
|
+
init_tslib_es6();
|
|
127089
127998
|
var UnprotectedAttributes_1;
|
|
127090
127999
|
var UnprotectedAttributes = UnprotectedAttributes_1 = class UnprotectedAttributes extends AsnArray {
|
|
127091
128000
|
constructor(items) {
|
|
@@ -127123,6 +128032,7 @@ ${values.join("\n")}` : `${blockName} :`;
|
|
|
127123
128032
|
optional: true
|
|
127124
128033
|
})], EnvelopedData.prototype, "unprotectedAttrs", void 0);
|
|
127125
128034
|
var id_signedData = "1.2.840.113549.1.7.2";
|
|
128035
|
+
init_tslib_es6();
|
|
127126
128036
|
var DigestAlgorithmIdentifiers_1;
|
|
127127
128037
|
var DigestAlgorithmIdentifiers = DigestAlgorithmIdentifiers_1 = class DigestAlgorithmIdentifiers extends AsnArray {
|
|
127128
128038
|
constructor(items) {
|
|
@@ -127178,6 +128088,7 @@ ${values.join("\n")}` : `${blockName} :`;
|
|
|
127178
128088
|
var ecdsaWithSHA256 = create$1(id_ecdsaWithSHA256);
|
|
127179
128089
|
var ecdsaWithSHA384 = create$1(id_ecdsaWithSHA384);
|
|
127180
128090
|
var ecdsaWithSHA512 = create$1(id_ecdsaWithSHA512);
|
|
128091
|
+
init_tslib_es6();
|
|
127181
128092
|
var FieldID = class FieldID {
|
|
127182
128093
|
fieldType;
|
|
127183
128094
|
parameters;
|
|
@@ -127233,6 +128144,7 @@ ${values.join("\n")}` : `${blockName} :`;
|
|
|
127233
128144
|
optional: true
|
|
127234
128145
|
})], SpecifiedECDomain.prototype, "cofactor", void 0);
|
|
127235
128146
|
SpecifiedECDomain = __decorate([AsnType({ type: AsnTypeTypes.Sequence })], SpecifiedECDomain);
|
|
128147
|
+
init_tslib_es6();
|
|
127236
128148
|
var ECParameters = class ECParameters {
|
|
127237
128149
|
namedCurve;
|
|
127238
128150
|
implicitCurve;
|
|
@@ -127245,6 +128157,7 @@ ${values.join("\n")}` : `${blockName} :`;
|
|
|
127245
128157
|
__decorate([AsnProp({ type: AsnPropTypes.Null })], ECParameters.prototype, "implicitCurve", void 0);
|
|
127246
128158
|
__decorate([AsnProp({ type: SpecifiedECDomain })], ECParameters.prototype, "specifiedCurve", void 0);
|
|
127247
128159
|
ECParameters = __decorate([AsnType({ type: AsnTypeTypes.Choice })], ECParameters);
|
|
128160
|
+
init_tslib_es6();
|
|
127248
128161
|
var ECPrivateKey = class {
|
|
127249
128162
|
version = 1;
|
|
127250
128163
|
privateKey = new OctetString();
|
|
@@ -127266,6 +128179,7 @@ ${values.join("\n")}` : `${blockName} :`;
|
|
|
127266
128179
|
context: 1,
|
|
127267
128180
|
optional: true
|
|
127268
128181
|
})], ECPrivateKey.prototype, "publicKey", void 0);
|
|
128182
|
+
init_tslib_es6();
|
|
127269
128183
|
var ECDSASigValue = class {
|
|
127270
128184
|
r = /* @__PURE__ */ new ArrayBuffer(0);
|
|
127271
128185
|
s = /* @__PURE__ */ new ArrayBuffer(0);
|
|
@@ -127359,6 +128273,7 @@ ${values.join("\n")}` : `${blockName} :`;
|
|
|
127359
128273
|
create(id_sha512WithRSAEncryption);
|
|
127360
128274
|
create(id_sha512_224WithRSAEncryption);
|
|
127361
128275
|
create(id_sha512_256WithRSAEncryption);
|
|
128276
|
+
init_tslib_es6();
|
|
127362
128277
|
var RsaEsOaepParams = class {
|
|
127363
128278
|
hashAlgorithm = new AlgorithmIdentifier(sha1);
|
|
127364
128279
|
maskGenAlgorithm = new AlgorithmIdentifier({
|
|
@@ -127389,6 +128304,7 @@ ${values.join("\n")}` : `${blockName} :`;
|
|
|
127389
128304
|
algorithm: id_RSAES_OAEP,
|
|
127390
128305
|
parameters: AsnConvert.serialize(new RsaEsOaepParams())
|
|
127391
128306
|
});
|
|
128307
|
+
init_tslib_es6();
|
|
127392
128308
|
var RsaSaPssParams = class {
|
|
127393
128309
|
hashAlgorithm = new AlgorithmIdentifier(sha1);
|
|
127394
128310
|
maskGenAlgorithm = new AlgorithmIdentifier({
|
|
@@ -127425,6 +128341,7 @@ ${values.join("\n")}` : `${blockName} :`;
|
|
|
127425
128341
|
algorithm: id_RSASSA_PSS,
|
|
127426
128342
|
parameters: AsnConvert.serialize(new RsaSaPssParams())
|
|
127427
128343
|
});
|
|
128344
|
+
init_tslib_es6();
|
|
127428
128345
|
var DigestInfo = class {
|
|
127429
128346
|
digestAlgorithm = new AlgorithmIdentifier();
|
|
127430
128347
|
digest = new OctetString();
|
|
@@ -127434,6 +128351,7 @@ ${values.join("\n")}` : `${blockName} :`;
|
|
|
127434
128351
|
};
|
|
127435
128352
|
__decorate([AsnProp({ type: AlgorithmIdentifier })], DigestInfo.prototype, "digestAlgorithm", void 0);
|
|
127436
128353
|
__decorate([AsnProp({ type: OctetString })], DigestInfo.prototype, "digest", void 0);
|
|
128354
|
+
init_tslib_es6();
|
|
127437
128355
|
var OtherPrimeInfos_1;
|
|
127438
128356
|
var OtherPrimeInfo = class {
|
|
127439
128357
|
prime = /* @__PURE__ */ new ArrayBuffer(0);
|
|
@@ -127465,6 +128383,7 @@ ${values.join("\n")}` : `${blockName} :`;
|
|
|
127465
128383
|
type: AsnTypeTypes.Sequence,
|
|
127466
128384
|
itemType: OtherPrimeInfo
|
|
127467
128385
|
})], OtherPrimeInfos);
|
|
128386
|
+
init_tslib_es6();
|
|
127468
128387
|
var RSAPrivateKey = class {
|
|
127469
128388
|
version = 0;
|
|
127470
128389
|
modulus = /* @__PURE__ */ new ArrayBuffer(0);
|
|
@@ -127517,6 +128436,7 @@ ${values.join("\n")}` : `${blockName} :`;
|
|
|
127517
128436
|
type: OtherPrimeInfos,
|
|
127518
128437
|
optional: true
|
|
127519
128438
|
})], RSAPrivateKey.prototype, "otherPrimeInfos", void 0);
|
|
128439
|
+
init_tslib_es6();
|
|
127520
128440
|
var RSAPublicKey = class {
|
|
127521
128441
|
modulus = /* @__PURE__ */ new ArrayBuffer(0);
|
|
127522
128442
|
publicExponent = /* @__PURE__ */ new ArrayBuffer(0);
|
|
@@ -128177,6 +129097,7 @@ ${values.join("\n")}` : `${blockName} :`;
|
|
|
128177
129097
|
};
|
|
128178
129098
|
}
|
|
128179
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();
|
|
128180
129101
|
var PKCS12AttrSet_1;
|
|
128181
129102
|
var PKCS12Attribute = class {
|
|
128182
129103
|
attrId = "";
|
|
@@ -128200,6 +129121,7 @@ ${values.join("\n")}` : `${blockName} :`;
|
|
|
128200
129121
|
type: AsnTypeTypes.Sequence,
|
|
128201
129122
|
itemType: PKCS12Attribute
|
|
128202
129123
|
})], PKCS12AttrSet);
|
|
129124
|
+
init_tslib_es6();
|
|
128203
129125
|
var AuthenticatedSafe_1;
|
|
128204
129126
|
var AuthenticatedSafe = AuthenticatedSafe_1 = class AuthenticatedSafe extends AsnArray {
|
|
128205
129127
|
constructor(items) {
|
|
@@ -128227,6 +129149,7 @@ ${values.join("\n")}` : `${blockName} :`;
|
|
|
128227
129149
|
`${id_bagtypes}`;
|
|
128228
129150
|
`${id_bagtypes}`;
|
|
128229
129151
|
var id_pkcs_9 = "1.2.840.113549.1.9";
|
|
129152
|
+
init_tslib_es6();
|
|
128230
129153
|
var CertBag = class {
|
|
128231
129154
|
certId = "";
|
|
128232
129155
|
certValue = /* @__PURE__ */ new ArrayBuffer(0);
|
|
@@ -128242,6 +129165,7 @@ ${values.join("\n")}` : `${blockName} :`;
|
|
|
128242
129165
|
var id_certTypes$1 = `${id_pkcs_9}.22`;
|
|
128243
129166
|
`${id_certTypes$1}`;
|
|
128244
129167
|
`${id_certTypes$1}`;
|
|
129168
|
+
init_tslib_es6();
|
|
128245
129169
|
var CRLBag = class {
|
|
128246
129170
|
crlId = "";
|
|
128247
129171
|
crltValue = /* @__PURE__ */ new ArrayBuffer(0);
|
|
@@ -128255,6 +129179,7 @@ ${values.join("\n")}` : `${blockName} :`;
|
|
|
128255
129179
|
context: 0
|
|
128256
129180
|
})], CRLBag.prototype, "crltValue", void 0);
|
|
128257
129181
|
`${id_pkcs_9}`;
|
|
129182
|
+
init_tslib_es6();
|
|
128258
129183
|
var EncryptedData = class extends OctetString {
|
|
128259
129184
|
};
|
|
128260
129185
|
var EncryptedPrivateKeyInfo$1 = class {
|
|
@@ -128266,6 +129191,7 @@ ${values.join("\n")}` : `${blockName} :`;
|
|
|
128266
129191
|
};
|
|
128267
129192
|
__decorate([AsnProp({ type: AlgorithmIdentifier })], EncryptedPrivateKeyInfo$1.prototype, "encryptionAlgorithm", void 0);
|
|
128268
129193
|
__decorate([AsnProp({ type: EncryptedData })], EncryptedPrivateKeyInfo$1.prototype, "encryptedData", void 0);
|
|
129194
|
+
init_tslib_es6();
|
|
128269
129195
|
var Attributes_1$1;
|
|
128270
129196
|
var Version;
|
|
128271
129197
|
(function(Version2) {
|
|
@@ -128301,12 +129227,15 @@ ${values.join("\n")}` : `${blockName} :`;
|
|
|
128301
129227
|
context: 0,
|
|
128302
129228
|
optional: true
|
|
128303
129229
|
})], PrivateKeyInfo.prototype, "attributes", void 0);
|
|
129230
|
+
init_tslib_es6();
|
|
128304
129231
|
var KeyBag = class KeyBag extends PrivateKeyInfo {
|
|
128305
129232
|
};
|
|
128306
129233
|
KeyBag = __decorate([AsnType({ type: AsnTypeTypes.Sequence })], KeyBag);
|
|
129234
|
+
init_tslib_es6();
|
|
128307
129235
|
var PKCS8ShroudedKeyBag = class PKCS8ShroudedKeyBag extends EncryptedPrivateKeyInfo$1 {
|
|
128308
129236
|
};
|
|
128309
129237
|
PKCS8ShroudedKeyBag = __decorate([AsnType({ type: AsnTypeTypes.Sequence })], PKCS8ShroudedKeyBag);
|
|
129238
|
+
init_tslib_es6();
|
|
128310
129239
|
var SecretBag = class {
|
|
128311
129240
|
secretTypeId = "";
|
|
128312
129241
|
secretValue = /* @__PURE__ */ new ArrayBuffer(0);
|
|
@@ -128319,6 +129248,7 @@ ${values.join("\n")}` : `${blockName} :`;
|
|
|
128319
129248
|
type: AsnPropTypes.Any,
|
|
128320
129249
|
context: 0
|
|
128321
129250
|
})], SecretBag.prototype, "secretValue", void 0);
|
|
129251
|
+
init_tslib_es6();
|
|
128322
129252
|
var MacData = class {
|
|
128323
129253
|
mac = new DigestInfo();
|
|
128324
129254
|
macSalt = new OctetString();
|
|
@@ -128333,6 +129263,7 @@ ${values.join("\n")}` : `${blockName} :`;
|
|
|
128333
129263
|
type: AsnPropTypes.Integer,
|
|
128334
129264
|
defaultValue: 1
|
|
128335
129265
|
})], MacData.prototype, "iterations", void 0);
|
|
129266
|
+
init_tslib_es6();
|
|
128336
129267
|
var PFX = class {
|
|
128337
129268
|
version = 3;
|
|
128338
129269
|
authSafe = new ContentInfo();
|
|
@@ -128347,6 +129278,7 @@ ${values.join("\n")}` : `${blockName} :`;
|
|
|
128347
129278
|
type: MacData,
|
|
128348
129279
|
optional: true
|
|
128349
129280
|
})], PFX.prototype, "macData", void 0);
|
|
129281
|
+
init_tslib_es6();
|
|
128350
129282
|
var SafeContents_1;
|
|
128351
129283
|
var SafeBag = class {
|
|
128352
129284
|
bagId = "";
|
|
@@ -128376,6 +129308,7 @@ ${values.join("\n")}` : `${blockName} :`;
|
|
|
128376
129308
|
type: AsnTypeTypes.Sequence,
|
|
128377
129309
|
itemType: SafeBag
|
|
128378
129310
|
})], SafeContents);
|
|
129311
|
+
init_tslib_es6();
|
|
128379
129312
|
var ExtensionRequest_1;
|
|
128380
129313
|
var ExtendedCertificateAttributes_1;
|
|
128381
129314
|
var SMIMECapabilities_1;
|
|
@@ -128569,6 +129502,7 @@ ${values.join("\n")}` : `${blockName} :`;
|
|
|
128569
129502
|
type: AsnTypeTypes.Sequence,
|
|
128570
129503
|
itemType: SMIMECapability
|
|
128571
129504
|
})], SMIMECapabilities);
|
|
129505
|
+
init_tslib_es6();
|
|
128572
129506
|
var Attributes_1;
|
|
128573
129507
|
var Attributes = Attributes_1 = class Attributes extends AsnArray {
|
|
128574
129508
|
constructor(items) {
|
|
@@ -128580,6 +129514,7 @@ ${values.join("\n")}` : `${blockName} :`;
|
|
|
128580
129514
|
type: AsnTypeTypes.Sequence,
|
|
128581
129515
|
itemType: Attribute$2
|
|
128582
129516
|
})], Attributes);
|
|
129517
|
+
init_tslib_es6();
|
|
128583
129518
|
var CertificationRequestInfo = class {
|
|
128584
129519
|
version = 0;
|
|
128585
129520
|
subject = new Name$1();
|
|
@@ -128598,6 +129533,7 @@ ${values.join("\n")}` : `${blockName} :`;
|
|
|
128598
129533
|
context: 0,
|
|
128599
129534
|
optional: true
|
|
128600
129535
|
})], CertificationRequestInfo.prototype, "attributes", void 0);
|
|
129536
|
+
init_tslib_es6();
|
|
128601
129537
|
var CertificationRequest = class {
|
|
128602
129538
|
certificationRequestInfo = new CertificationRequestInfo();
|
|
128603
129539
|
certificationRequestInfoRaw;
|
|
@@ -128613,6 +129549,7 @@ ${values.join("\n")}` : `${blockName} :`;
|
|
|
128613
129549
|
})], CertificationRequest.prototype, "certificationRequestInfo", void 0);
|
|
128614
129550
|
__decorate([AsnProp({ type: AlgorithmIdentifier })], CertificationRequest.prototype, "signatureAlgorithm", void 0);
|
|
128615
129551
|
__decorate([AsnProp({ type: AsnPropTypes.BitString })], CertificationRequest.prototype, "signature", void 0);
|
|
129552
|
+
init_tslib_es6();
|
|
128616
129553
|
var diAlgorithm = "crypto.algorithm";
|
|
128617
129554
|
var AlgorithmProvider = class {
|
|
128618
129555
|
getAlgorithms() {
|
|
@@ -130956,6 +131893,567 @@ ${values.join("\n")}` : `${blockName} :`;
|
|
|
130956
131893
|
return cryptoProvider;
|
|
130957
131894
|
}
|
|
130958
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
|
+
});
|
|
130959
132457
|
}
|
|
130960
132458
|
});
|
|
130961
132459
|
|
|
@@ -147444,10 +148942,11 @@ var require_system_config_addon = __commonJS({
|
|
|
147444
148942
|
[Symbol.toStringTag]: { value: "Module" }
|
|
147445
148943
|
});
|
|
147446
148944
|
var require_chunk = require_chunk_Cek0wNdY();
|
|
147447
|
-
var require_dist10 =
|
|
147448
|
-
var
|
|
147449
|
-
var require_constants$8 =
|
|
147450
|
-
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();
|
|
147451
148950
|
var zod = require_zod();
|
|
147452
148951
|
var node_crypto = __require("crypto");
|
|
147453
148952
|
var node_net = __require("net");
|
|
@@ -158738,7 +160237,7 @@ globstar while`, t, d, e, u, m), this.matchOne(t.slice(d), e.slice(u), s)) retur
|
|
|
158738
160237
|
}));
|
|
158739
160238
|
var require_utils$3 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports2, module2) => {
|
|
158740
160239
|
var kleur = require_kleur2();
|
|
158741
|
-
var os$
|
|
160240
|
+
var os$18 = __require("os");
|
|
158742
160241
|
var path$40 = __require("path");
|
|
158743
160242
|
var fs$20 = __require("fs");
|
|
158744
160243
|
var { TimeoutError } = require_errors$2();
|
|
@@ -158830,7 +160329,7 @@ globstar while`, t, d, e, u, m), this.matchOne(t.slice(d), e.slice(u), s)) retur
|
|
|
158830
160329
|
* @returns
|
|
158831
160330
|
*/
|
|
158832
160331
|
getNodeID() {
|
|
158833
|
-
return os$
|
|
160332
|
+
return os$18.hostname().toLowerCase() + "-" + process.pid;
|
|
158834
160333
|
},
|
|
158835
160334
|
/**
|
|
158836
160335
|
* Get list of local IPs
|
|
@@ -158840,7 +160339,7 @@ globstar while`, t, d, e, u, m), this.matchOne(t.slice(d), e.slice(u), s)) retur
|
|
|
158840
160339
|
getIpList() {
|
|
158841
160340
|
const list = [];
|
|
158842
160341
|
const ilist = [];
|
|
158843
|
-
const interfaces = os$
|
|
160342
|
+
const interfaces = os$18.networkInterfaces();
|
|
158844
160343
|
for (let iface in interfaces) for (let i in interfaces[iface]) {
|
|
158845
160344
|
const f = interfaces[iface]?.[i];
|
|
158846
160345
|
if (f.family === "IPv4") if (f.internal) {
|
|
@@ -160317,7 +161816,7 @@ globstar while`, t, d, e, u, m), this.matchOne(t.slice(d), e.slice(u), s)) retur
|
|
|
160317
161816
|
var require_datadog$2 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports2, module2) => {
|
|
160318
161817
|
var BaseReporter = require_base$8();
|
|
160319
161818
|
var _ = require_lodash2();
|
|
160320
|
-
var os$
|
|
161819
|
+
var os$17 = __require("os");
|
|
160321
161820
|
var { MoleculerError } = require_errors$2();
|
|
160322
161821
|
var METRIC = require_constants$6();
|
|
160323
161822
|
var { isFunction } = require_utils$3();
|
|
@@ -160331,7 +161830,7 @@ globstar while`, t, d, e, u, m), this.matchOne(t.slice(d), e.slice(u), s)) retur
|
|
|
160331
161830
|
constructor(opts) {
|
|
160332
161831
|
super(opts);
|
|
160333
161832
|
this.opts = _.defaultsDeep(this.opts, {
|
|
160334
|
-
host: os$
|
|
161833
|
+
host: os$17.hostname(),
|
|
160335
161834
|
baseUrl: BASE_URL,
|
|
160336
161835
|
apiVersion: "v1",
|
|
160337
161836
|
path: "/series",
|
|
@@ -160927,17 +162426,17 @@ globstar while`, t, d, e, u, m), this.matchOne(t.slice(d), e.slice(u), s)) retur
|
|
|
160927
162426
|
});
|
|
160928
162427
|
}));
|
|
160929
162428
|
var require_cpu_usage$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports2, module2) => {
|
|
160930
|
-
var os$
|
|
162429
|
+
var os$16 = __require("os");
|
|
160931
162430
|
module2.exports = function getCpuUsage(sampleTime = 100) {
|
|
160932
162431
|
return new Promise((resolve, reject) => {
|
|
160933
162432
|
try {
|
|
160934
|
-
const first = os$
|
|
162433
|
+
const first = os$16.cpus().map((cpu) => cpu.times);
|
|
160935
162434
|
setTimeout(() => {
|
|
160936
162435
|
try {
|
|
160937
|
-
const second = os$
|
|
162436
|
+
const second = os$16.cpus().map((cpu) => cpu.times);
|
|
160938
162437
|
setTimeout(() => {
|
|
160939
162438
|
try {
|
|
160940
|
-
const third = os$
|
|
162439
|
+
const third = os$16.cpus().map((cpu) => cpu.times);
|
|
160941
162440
|
const usages = [];
|
|
160942
162441
|
for (let i = 0; i < first.length; i++) {
|
|
160943
162442
|
const first_idle = first[i].idle;
|
|
@@ -160968,7 +162467,7 @@ globstar while`, t, d, e, u, m), this.matchOne(t.slice(d), e.slice(u), s)) retur
|
|
|
160968
162467
|
};
|
|
160969
162468
|
}));
|
|
160970
162469
|
var require_commons2 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports2, module2) => {
|
|
160971
|
-
var os$
|
|
162470
|
+
var os$15 = __require("os");
|
|
160972
162471
|
var METRIC = require_constants$6();
|
|
160973
162472
|
var cpuUsage = require_cpu_usage$1();
|
|
160974
162473
|
var v8;
|
|
@@ -161145,27 +162644,27 @@ globstar while`, t, d, e, u, m), this.matchOne(t.slice(d), e.slice(u), s)) retur
|
|
|
161145
162644
|
name: METRIC.OS_TYPE,
|
|
161146
162645
|
type: METRIC.TYPE_INFO,
|
|
161147
162646
|
description: "OS type"
|
|
161148
|
-
}).set(os$
|
|
162647
|
+
}).set(os$15.type());
|
|
161149
162648
|
this.register({
|
|
161150
162649
|
name: METRIC.OS_RELEASE,
|
|
161151
162650
|
type: METRIC.TYPE_INFO,
|
|
161152
162651
|
description: "OS release"
|
|
161153
|
-
}).set(os$
|
|
162652
|
+
}).set(os$15.release());
|
|
161154
162653
|
this.register({
|
|
161155
162654
|
name: METRIC.OS_HOSTNAME,
|
|
161156
162655
|
type: METRIC.TYPE_INFO,
|
|
161157
162656
|
description: "Hostname"
|
|
161158
|
-
}).set(os$
|
|
162657
|
+
}).set(os$15.hostname());
|
|
161159
162658
|
this.register({
|
|
161160
162659
|
name: METRIC.OS_ARCH,
|
|
161161
162660
|
type: METRIC.TYPE_INFO,
|
|
161162
162661
|
description: "OS architecture"
|
|
161163
|
-
}).set(os$
|
|
162662
|
+
}).set(os$15.arch());
|
|
161164
162663
|
this.register({
|
|
161165
162664
|
name: METRIC.OS_PLATFORM,
|
|
161166
162665
|
type: METRIC.TYPE_INFO,
|
|
161167
162666
|
description: "OS platform"
|
|
161168
|
-
}).set(os$
|
|
162667
|
+
}).set(os$15.platform());
|
|
161169
162668
|
const userInfo = getUserInfo();
|
|
161170
162669
|
this.register({
|
|
161171
162670
|
name: METRIC.OS_USER_UID,
|
|
@@ -161311,22 +162810,22 @@ globstar while`, t, d, e, u, m), this.matchOne(t.slice(d), e.slice(u), s)) retur
|
|
|
161311
162810
|
}
|
|
161312
162811
|
this.set(METRIC.PROCESS_UPTIME, process.uptime());
|
|
161313
162812
|
this.set(METRIC.PROCESS_INTERNAL_ACTIVE_HANDLES, process.getActiveResourcesInfo().length);
|
|
161314
|
-
const freeMem = os$
|
|
161315
|
-
const totalMem = os$
|
|
162813
|
+
const freeMem = os$15.freemem();
|
|
162814
|
+
const totalMem = os$15.totalmem();
|
|
161316
162815
|
const usedMem = totalMem - freeMem;
|
|
161317
162816
|
this.set(METRIC.OS_MEMORY_FREE, freeMem);
|
|
161318
162817
|
this.set(METRIC.OS_MEMORY_USED, usedMem);
|
|
161319
162818
|
this.set(METRIC.OS_MEMORY_TOTAL, totalMem);
|
|
161320
|
-
this.set(METRIC.OS_UPTIME, os$
|
|
161321
|
-
this.set(METRIC.OS_TYPE, os$
|
|
161322
|
-
this.set(METRIC.OS_RELEASE, os$
|
|
161323
|
-
this.set(METRIC.OS_HOSTNAME, os$
|
|
161324
|
-
this.set(METRIC.OS_ARCH, os$
|
|
161325
|
-
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());
|
|
161326
162825
|
const getNetworkInterfaces = () => {
|
|
161327
162826
|
const list = [];
|
|
161328
162827
|
const ilist = [];
|
|
161329
|
-
const interfaces2 = os$
|
|
162828
|
+
const interfaces2 = os$15.networkInterfaces();
|
|
161330
162829
|
for (let iface in interfaces2) for (let i in interfaces2[iface]) {
|
|
161331
162830
|
const f = interfaces2[iface][i];
|
|
161332
162831
|
if (f.internal) ilist.push({
|
|
@@ -161356,7 +162855,7 @@ globstar while`, t, d, e, u, m), this.matchOne(t.slice(d), e.slice(u), s)) retur
|
|
|
161356
162855
|
this.set(METRIC.OS_DATETIME_ISO, d.toISOString());
|
|
161357
162856
|
this.set(METRIC.OS_DATETIME_UTC, d.toUTCString());
|
|
161358
162857
|
this.set(METRIC.OS_DATETIME_TZ_OFFSET, d.getTimezoneOffset());
|
|
161359
|
-
const load3 = os$
|
|
162858
|
+
const load3 = os$15.loadavg();
|
|
161360
162859
|
this.set(METRIC.OS_CPU_LOAD_1, load3[0]);
|
|
161361
162860
|
this.set(METRIC.OS_CPU_LOAD_5, load3[1]);
|
|
161362
162861
|
this.set(METRIC.OS_CPU_LOAD_15, load3[2]);
|
|
@@ -161364,7 +162863,7 @@ globstar while`, t, d, e, u, m), this.matchOne(t.slice(d), e.slice(u), s)) retur
|
|
|
161364
162863
|
return this.broker.Promise.resolve().then(() => cpuUsage().then((res) => {
|
|
161365
162864
|
this.set(METRIC.OS_CPU_UTILIZATION, res.avg);
|
|
161366
162865
|
try {
|
|
161367
|
-
const cpus = os$
|
|
162866
|
+
const cpus = os$15.cpus();
|
|
161368
162867
|
this.set(METRIC.OS_CPU_TOTAL, cpus.length);
|
|
161369
162868
|
this.set(METRIC.OS_CPU_USER, cpus.reduce((a, b) => a + b.times.user, 0));
|
|
161370
162869
|
this.set(METRIC.OS_CPU_SYSTEM, cpus.reduce((a, b) => a + b.times.sys, 0));
|
|
@@ -161383,7 +162882,7 @@ globstar while`, t, d, e, u, m), this.matchOne(t.slice(d), e.slice(u), s)) retur
|
|
|
161383
162882
|
}
|
|
161384
162883
|
function getUserInfo() {
|
|
161385
162884
|
try {
|
|
161386
|
-
return os$
|
|
162885
|
+
return os$15.userInfo();
|
|
161387
162886
|
} catch {
|
|
161388
162887
|
return {};
|
|
161389
162888
|
}
|
|
@@ -164782,14 +166281,14 @@ globstar while`, t, d, e, u, m), this.matchOne(t.slice(d), e.slice(u), s)) retur
|
|
|
164782
166281
|
}));
|
|
164783
166282
|
var require_inherits2 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports2, module2) => {
|
|
164784
166283
|
try {
|
|
164785
|
-
var util$
|
|
164786
|
-
if (typeof util$
|
|
164787
|
-
module2.exports = util$
|
|
166284
|
+
var util$9 = __require("util");
|
|
166285
|
+
if (typeof util$9.inherits !== "function") throw "";
|
|
166286
|
+
module2.exports = util$9.inherits;
|
|
164788
166287
|
} catch (e) {
|
|
164789
166288
|
module2.exports = require_inherits_browser2();
|
|
164790
166289
|
}
|
|
164791
166290
|
}));
|
|
164792
|
-
var require_node$
|
|
166291
|
+
var require_node$2 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports2, module2) => {
|
|
164793
166292
|
module2.exports = __require("util").deprecate;
|
|
164794
166293
|
}));
|
|
164795
166294
|
var require__stream_writable = /* @__PURE__ */ require_chunk.__commonJSMin(((exports2, module2) => {
|
|
@@ -164804,7 +166303,7 @@ globstar while`, t, d, e, u, m), this.matchOne(t.slice(d), e.slice(u), s)) retur
|
|
|
164804
166303
|
}
|
|
164805
166304
|
var Duplex;
|
|
164806
166305
|
Writable.WritableState = WritableState;
|
|
164807
|
-
var internalUtil = { deprecate: require_node$
|
|
166306
|
+
var internalUtil = { deprecate: require_node$2() };
|
|
164808
166307
|
var Stream = require_stream$1();
|
|
164809
166308
|
var Buffer$13 = __require("buffer").Buffer;
|
|
164810
166309
|
var OurUint8Array = (typeof global !== "undefined" ? global : typeof window !== "undefined" ? window : typeof self !== "undefined" ? self : {}).Uint8Array || function() {
|
|
@@ -165275,7 +166774,7 @@ globstar while`, t, d, e, u, m), this.matchOne(t.slice(d), e.slice(u), s)) retur
|
|
|
165275
166774
|
});
|
|
165276
166775
|
}));
|
|
165277
166776
|
var require_string_decoder4 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports2) => {
|
|
165278
|
-
var Buffer2 =
|
|
166777
|
+
var Buffer2 = require_safe_buffer$1.require_safe_buffer().Buffer;
|
|
165279
166778
|
var isEncoding = Buffer2.isEncoding || function(encoding) {
|
|
165280
166779
|
encoding = "" + encoding;
|
|
165281
166780
|
switch (encoding && encoding.toLowerCase()) {
|
|
@@ -167023,7 +168522,7 @@ globstar while`, t, d, e, u, m), this.matchOne(t.slice(d), e.slice(u), s)) retur
|
|
|
167023
168522
|
module2.exports.encoder = Encoder;
|
|
167024
168523
|
}));
|
|
167025
168524
|
var require_helpers$2 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports2) => {
|
|
167026
|
-
var util$
|
|
168525
|
+
var util$8 = __require("util");
|
|
167027
168526
|
exports2.IncompleteBufferError = IncompleteBufferError;
|
|
167028
168527
|
function IncompleteBufferError(message2) {
|
|
167029
168528
|
Error.call(this);
|
|
@@ -167031,7 +168530,7 @@ globstar while`, t, d, e, u, m), this.matchOne(t.slice(d), e.slice(u), s)) retur
|
|
|
167031
168530
|
this.name = this.constructor.name;
|
|
167032
168531
|
this.message = message2 || "unable to decode";
|
|
167033
168532
|
}
|
|
167034
|
-
util$
|
|
168533
|
+
util$8.inherits(IncompleteBufferError, Error);
|
|
167035
168534
|
exports2.isFloat = function isFloat(n) {
|
|
167036
168535
|
return n % 1 !== 0;
|
|
167037
168536
|
};
|
|
@@ -167252,7 +168751,7 @@ globstar while`, t, d, e, u, m), this.matchOne(t.slice(d), e.slice(u), s)) retur
|
|
|
167252
168751
|
}
|
|
167253
168752
|
}));
|
|
167254
168753
|
var require_encoder2 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports2, module2) => {
|
|
167255
|
-
var Buffer2 =
|
|
168754
|
+
var Buffer2 = require_safe_buffer$1.require_safe_buffer().Buffer;
|
|
167256
168755
|
var bl = require_bl$1();
|
|
167257
168756
|
var isFloat = require_helpers$2().isFloat;
|
|
167258
168757
|
module2.exports = function buildEncode(encodingTypes, options) {
|
|
@@ -167573,7 +169072,7 @@ globstar while`, t, d, e, u, m), this.matchOne(t.slice(d), e.slice(u), s)) retur
|
|
|
167573
169072
|
};
|
|
167574
169073
|
}));
|
|
167575
169074
|
var require_msgpack52 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports2, module2) => {
|
|
167576
|
-
var Buffer2 =
|
|
169075
|
+
var Buffer2 = require_safe_buffer$1.require_safe_buffer().Buffer;
|
|
167577
169076
|
var assert$3 = __require("assert");
|
|
167578
169077
|
var bl = require_bl$1();
|
|
167579
169078
|
var streams = require_streams2();
|
|
@@ -168157,7 +169656,7 @@ globstar while`, t, d, e, u, m), this.matchOne(t.slice(d), e.slice(u), s)) retur
|
|
|
168157
169656
|
var require_cbor_extract2 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports2, module2) => {
|
|
168158
169657
|
module2.exports = require_node_gyp_build_optional_packages2()(__dirname);
|
|
168159
169658
|
}));
|
|
168160
|
-
var require_node$
|
|
169659
|
+
var require_node$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports2) => {
|
|
168161
169660
|
var stream$1 = __require("stream");
|
|
168162
169661
|
var module$1$1 = __require("module");
|
|
168163
169662
|
var _documentCurrentScript = typeof document !== "undefined" ? document.currentScript : null;
|
|
@@ -170324,7 +171823,7 @@ globstar while`, t, d, e, u, m), this.matchOne(t.slice(d), e.slice(u), s)) retur
|
|
|
170324
171823
|
init(broker) {
|
|
170325
171824
|
super.init(broker);
|
|
170326
171825
|
try {
|
|
170327
|
-
const Cbor = require_node$
|
|
171826
|
+
const Cbor = require_node$1();
|
|
170328
171827
|
this.encoder = new Cbor.Encoder(this.opts);
|
|
170329
171828
|
} catch (err) {
|
|
170330
171829
|
this.broker.fatal("The 'cbor-x' package is missing! Please install it with 'npm install cbor-x --save' command!", err, true);
|
|
@@ -170997,7 +172496,7 @@ globstar while`, t, d, e, u, m), this.matchOne(t.slice(d), e.slice(u), s)) retur
|
|
|
170997
172496
|
register
|
|
170998
172497
|
});
|
|
170999
172498
|
}));
|
|
171000
|
-
var
|
|
172499
|
+
var require_node7 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports2, module2) => {
|
|
171001
172500
|
var Node = class {
|
|
171002
172501
|
/**
|
|
171003
172502
|
* Creates an instance of Node.
|
|
@@ -171099,8 +172598,8 @@ globstar while`, t, d, e, u, m), this.matchOne(t.slice(d), e.slice(u), s)) retur
|
|
|
171099
172598
|
}));
|
|
171100
172599
|
var require_node_catalog2 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports2, module2) => {
|
|
171101
172600
|
var _ = require_lodash2();
|
|
171102
|
-
var os$
|
|
171103
|
-
var Node =
|
|
172601
|
+
var os$14 = __require("os");
|
|
172602
|
+
var Node = require_node7();
|
|
171104
172603
|
var { getIpList } = require_utils$3();
|
|
171105
172604
|
var NodeCatalog = class {
|
|
171106
172605
|
/**
|
|
@@ -171130,7 +172629,7 @@ globstar while`, t, d, e, u, m), this.matchOne(t.slice(d), e.slice(u), s)) retur
|
|
|
171130
172629
|
node.local = true;
|
|
171131
172630
|
node.ipList = getIpList();
|
|
171132
172631
|
node.instanceID = this.broker.instanceID;
|
|
171133
|
-
node.hostname = os$
|
|
172632
|
+
node.hostname = os$14.hostname();
|
|
171134
172633
|
node.client = {
|
|
171135
172634
|
type: "nodejs",
|
|
171136
172635
|
version: this.broker.MOLECULER_VERSION,
|
|
@@ -172686,7 +174185,7 @@ globstar while`, t, d, e, u, m), this.matchOne(t.slice(d), e.slice(u), s)) retur
|
|
|
172686
174185
|
var BaseLogger = require_base$4();
|
|
172687
174186
|
var _ = require_lodash2();
|
|
172688
174187
|
var kleur = require_kleur2();
|
|
172689
|
-
var util$
|
|
174188
|
+
var util$7 = __require("util");
|
|
172690
174189
|
var { isObject: isObject2, isFunction } = require_utils$3();
|
|
172691
174190
|
function getColor(type2) {
|
|
172692
174191
|
switch (type2) {
|
|
@@ -172724,7 +174223,7 @@ globstar while`, t, d, e, u, m), this.matchOne(t.slice(d), e.slice(u), s)) retur
|
|
|
172724
174223
|
init(loggerFactory) {
|
|
172725
174224
|
super.init(loggerFactory);
|
|
172726
174225
|
if (!this.opts.colors) kleur.enabled = false;
|
|
172727
|
-
this.objectPrinter = this.opts.objectPrinter ? this.opts.objectPrinter : (o) => util$
|
|
174226
|
+
this.objectPrinter = this.opts.objectPrinter ? this.opts.objectPrinter : (o) => util$7.inspect(o, {
|
|
172728
174227
|
showHidden: false,
|
|
172729
174228
|
depth: 2,
|
|
172730
174229
|
colors: kleur.enabled,
|
|
@@ -172954,9 +174453,9 @@ globstar while`, t, d, e, u, m), this.matchOne(t.slice(d), e.slice(u), s)) retur
|
|
|
172954
174453
|
var require_datadog$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports2, module2) => {
|
|
172955
174454
|
var BaseLogger = require_base$4();
|
|
172956
174455
|
var _ = require_lodash2();
|
|
172957
|
-
var os$
|
|
174456
|
+
var os$13 = __require("os");
|
|
172958
174457
|
var { MoleculerError } = require_errors$2();
|
|
172959
|
-
var util$
|
|
174458
|
+
var util$6 = __require("util");
|
|
172960
174459
|
var { isObject: isObject2 } = require_utils$3();
|
|
172961
174460
|
var DatadogLogger = class extends BaseLogger {
|
|
172962
174461
|
/**
|
|
@@ -172971,7 +174470,7 @@ globstar while`, t, d, e, u, m), this.matchOne(t.slice(d), e.slice(u), s)) retur
|
|
|
172971
174470
|
apiKey: process.env.DATADOG_API_KEY,
|
|
172972
174471
|
ddSource: "moleculer",
|
|
172973
174472
|
env: void 0,
|
|
172974
|
-
hostname: os$
|
|
174473
|
+
hostname: os$13.hostname(),
|
|
172975
174474
|
objectPrinter: null,
|
|
172976
174475
|
interval: 10 * 1e3
|
|
172977
174476
|
});
|
|
@@ -172986,7 +174485,7 @@ globstar while`, t, d, e, u, m), this.matchOne(t.slice(d), e.slice(u), s)) retur
|
|
|
172986
174485
|
*/
|
|
172987
174486
|
init(loggerFactory) {
|
|
172988
174487
|
super.init(loggerFactory);
|
|
172989
|
-
this.objectPrinter = this.opts.objectPrinter ? this.opts.objectPrinter : (o) => util$
|
|
174488
|
+
this.objectPrinter = this.opts.objectPrinter ? this.opts.objectPrinter : (o) => util$6.inspect(o, {
|
|
172990
174489
|
showHidden: false,
|
|
172991
174490
|
depth: 2,
|
|
172992
174491
|
colors: false,
|
|
@@ -173093,540 +174592,6 @@ globstar while`, t, d, e, u, m), this.matchOne(t.slice(d), e.slice(u), s)) retur
|
|
|
173093
174592
|
};
|
|
173094
174593
|
module2.exports = DatadogLogger;
|
|
173095
174594
|
}));
|
|
173096
|
-
var require_common$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports2, module2) => {
|
|
173097
|
-
function setup(env) {
|
|
173098
|
-
createDebug.debug = createDebug;
|
|
173099
|
-
createDebug.default = createDebug;
|
|
173100
|
-
createDebug.coerce = coerce;
|
|
173101
|
-
createDebug.disable = disable;
|
|
173102
|
-
createDebug.enable = enable;
|
|
173103
|
-
createDebug.enabled = enabled;
|
|
173104
|
-
createDebug.humanize = require_ms$1.require_ms();
|
|
173105
|
-
createDebug.destroy = destroy;
|
|
173106
|
-
Object.keys(env).forEach((key) => {
|
|
173107
|
-
createDebug[key] = env[key];
|
|
173108
|
-
});
|
|
173109
|
-
createDebug.names = [];
|
|
173110
|
-
createDebug.skips = [];
|
|
173111
|
-
createDebug.formatters = {};
|
|
173112
|
-
function selectColor(namespace) {
|
|
173113
|
-
let hash = 0;
|
|
173114
|
-
for (let i = 0; i < namespace.length; i++) {
|
|
173115
|
-
hash = (hash << 5) - hash + namespace.charCodeAt(i);
|
|
173116
|
-
hash |= 0;
|
|
173117
|
-
}
|
|
173118
|
-
return createDebug.colors[Math.abs(hash) % createDebug.colors.length];
|
|
173119
|
-
}
|
|
173120
|
-
createDebug.selectColor = selectColor;
|
|
173121
|
-
function createDebug(namespace) {
|
|
173122
|
-
let prevTime;
|
|
173123
|
-
let enableOverride = null;
|
|
173124
|
-
let namespacesCache;
|
|
173125
|
-
let enabledCache;
|
|
173126
|
-
function debug(...args) {
|
|
173127
|
-
if (!debug.enabled) return;
|
|
173128
|
-
const self2 = debug;
|
|
173129
|
-
const curr = Number(/* @__PURE__ */ new Date());
|
|
173130
|
-
self2.diff = curr - (prevTime || curr);
|
|
173131
|
-
self2.prev = prevTime;
|
|
173132
|
-
self2.curr = curr;
|
|
173133
|
-
prevTime = curr;
|
|
173134
|
-
args[0] = createDebug.coerce(args[0]);
|
|
173135
|
-
if (typeof args[0] !== "string") args.unshift("%O");
|
|
173136
|
-
let index = 0;
|
|
173137
|
-
args[0] = args[0].replace(/%([a-zA-Z%])/g, (match, format2) => {
|
|
173138
|
-
if (match === "%%") return "%";
|
|
173139
|
-
index++;
|
|
173140
|
-
const formatter = createDebug.formatters[format2];
|
|
173141
|
-
if (typeof formatter === "function") {
|
|
173142
|
-
const val = args[index];
|
|
173143
|
-
match = formatter.call(self2, val);
|
|
173144
|
-
args.splice(index, 1);
|
|
173145
|
-
index--;
|
|
173146
|
-
}
|
|
173147
|
-
return match;
|
|
173148
|
-
});
|
|
173149
|
-
createDebug.formatArgs.call(self2, args);
|
|
173150
|
-
(self2.log || createDebug.log).apply(self2, args);
|
|
173151
|
-
}
|
|
173152
|
-
debug.namespace = namespace;
|
|
173153
|
-
debug.useColors = createDebug.useColors();
|
|
173154
|
-
debug.color = createDebug.selectColor(namespace);
|
|
173155
|
-
debug.extend = extend;
|
|
173156
|
-
debug.destroy = createDebug.destroy;
|
|
173157
|
-
Object.defineProperty(debug, "enabled", {
|
|
173158
|
-
enumerable: true,
|
|
173159
|
-
configurable: false,
|
|
173160
|
-
get: () => {
|
|
173161
|
-
if (enableOverride !== null) return enableOverride;
|
|
173162
|
-
if (namespacesCache !== createDebug.namespaces) {
|
|
173163
|
-
namespacesCache = createDebug.namespaces;
|
|
173164
|
-
enabledCache = createDebug.enabled(namespace);
|
|
173165
|
-
}
|
|
173166
|
-
return enabledCache;
|
|
173167
|
-
},
|
|
173168
|
-
set: (v2) => {
|
|
173169
|
-
enableOverride = v2;
|
|
173170
|
-
}
|
|
173171
|
-
});
|
|
173172
|
-
if (typeof createDebug.init === "function") createDebug.init(debug);
|
|
173173
|
-
return debug;
|
|
173174
|
-
}
|
|
173175
|
-
function extend(namespace, delimiter) {
|
|
173176
|
-
const newDebug = createDebug(this.namespace + (typeof delimiter === "undefined" ? ":" : delimiter) + namespace);
|
|
173177
|
-
newDebug.log = this.log;
|
|
173178
|
-
return newDebug;
|
|
173179
|
-
}
|
|
173180
|
-
function enable(namespaces) {
|
|
173181
|
-
createDebug.save(namespaces);
|
|
173182
|
-
createDebug.namespaces = namespaces;
|
|
173183
|
-
createDebug.names = [];
|
|
173184
|
-
createDebug.skips = [];
|
|
173185
|
-
const split = (typeof namespaces === "string" ? namespaces : "").trim().replace(/\s+/g, ",").split(",").filter(Boolean);
|
|
173186
|
-
for (const ns2 of split) if (ns2[0] === "-") createDebug.skips.push(ns2.slice(1));
|
|
173187
|
-
else createDebug.names.push(ns2);
|
|
173188
|
-
}
|
|
173189
|
-
function matchesTemplate(search, template) {
|
|
173190
|
-
let searchIndex = 0;
|
|
173191
|
-
let templateIndex = 0;
|
|
173192
|
-
let starIndex = -1;
|
|
173193
|
-
let matchIndex = 0;
|
|
173194
|
-
while (searchIndex < search.length) if (templateIndex < template.length && (template[templateIndex] === search[searchIndex] || template[templateIndex] === "*")) if (template[templateIndex] === "*") {
|
|
173195
|
-
starIndex = templateIndex;
|
|
173196
|
-
matchIndex = searchIndex;
|
|
173197
|
-
templateIndex++;
|
|
173198
|
-
} else {
|
|
173199
|
-
searchIndex++;
|
|
173200
|
-
templateIndex++;
|
|
173201
|
-
}
|
|
173202
|
-
else if (starIndex !== -1) {
|
|
173203
|
-
templateIndex = starIndex + 1;
|
|
173204
|
-
matchIndex++;
|
|
173205
|
-
searchIndex = matchIndex;
|
|
173206
|
-
} else return false;
|
|
173207
|
-
while (templateIndex < template.length && template[templateIndex] === "*") templateIndex++;
|
|
173208
|
-
return templateIndex === template.length;
|
|
173209
|
-
}
|
|
173210
|
-
function disable() {
|
|
173211
|
-
const namespaces = [...createDebug.names, ...createDebug.skips.map((namespace) => "-" + namespace)].join(",");
|
|
173212
|
-
createDebug.enable("");
|
|
173213
|
-
return namespaces;
|
|
173214
|
-
}
|
|
173215
|
-
function enabled(name2) {
|
|
173216
|
-
for (const skip of createDebug.skips) if (matchesTemplate(name2, skip)) return false;
|
|
173217
|
-
for (const ns2 of createDebug.names) if (matchesTemplate(name2, ns2)) return true;
|
|
173218
|
-
return false;
|
|
173219
|
-
}
|
|
173220
|
-
function coerce(val) {
|
|
173221
|
-
if (val instanceof Error) return val.stack || val.message;
|
|
173222
|
-
return val;
|
|
173223
|
-
}
|
|
173224
|
-
function destroy() {
|
|
173225
|
-
console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");
|
|
173226
|
-
}
|
|
173227
|
-
createDebug.enable(createDebug.load());
|
|
173228
|
-
return createDebug;
|
|
173229
|
-
}
|
|
173230
|
-
module2.exports = setup;
|
|
173231
|
-
}));
|
|
173232
|
-
var require_browser = /* @__PURE__ */ require_chunk.__commonJSMin(((exports2, module2) => {
|
|
173233
|
-
exports2.formatArgs = formatArgs;
|
|
173234
|
-
exports2.save = save;
|
|
173235
|
-
exports2.load = load3;
|
|
173236
|
-
exports2.useColors = useColors;
|
|
173237
|
-
exports2.storage = localstorage();
|
|
173238
|
-
exports2.destroy = /* @__PURE__ */ (() => {
|
|
173239
|
-
let warned = false;
|
|
173240
|
-
return () => {
|
|
173241
|
-
if (!warned) {
|
|
173242
|
-
warned = true;
|
|
173243
|
-
console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");
|
|
173244
|
-
}
|
|
173245
|
-
};
|
|
173246
|
-
})();
|
|
173247
|
-
exports2.colors = [
|
|
173248
|
-
"#0000CC",
|
|
173249
|
-
"#0000FF",
|
|
173250
|
-
"#0033CC",
|
|
173251
|
-
"#0033FF",
|
|
173252
|
-
"#0066CC",
|
|
173253
|
-
"#0066FF",
|
|
173254
|
-
"#0099CC",
|
|
173255
|
-
"#0099FF",
|
|
173256
|
-
"#00CC00",
|
|
173257
|
-
"#00CC33",
|
|
173258
|
-
"#00CC66",
|
|
173259
|
-
"#00CC99",
|
|
173260
|
-
"#00CCCC",
|
|
173261
|
-
"#00CCFF",
|
|
173262
|
-
"#3300CC",
|
|
173263
|
-
"#3300FF",
|
|
173264
|
-
"#3333CC",
|
|
173265
|
-
"#3333FF",
|
|
173266
|
-
"#3366CC",
|
|
173267
|
-
"#3366FF",
|
|
173268
|
-
"#3399CC",
|
|
173269
|
-
"#3399FF",
|
|
173270
|
-
"#33CC00",
|
|
173271
|
-
"#33CC33",
|
|
173272
|
-
"#33CC66",
|
|
173273
|
-
"#33CC99",
|
|
173274
|
-
"#33CCCC",
|
|
173275
|
-
"#33CCFF",
|
|
173276
|
-
"#6600CC",
|
|
173277
|
-
"#6600FF",
|
|
173278
|
-
"#6633CC",
|
|
173279
|
-
"#6633FF",
|
|
173280
|
-
"#66CC00",
|
|
173281
|
-
"#66CC33",
|
|
173282
|
-
"#9900CC",
|
|
173283
|
-
"#9900FF",
|
|
173284
|
-
"#9933CC",
|
|
173285
|
-
"#9933FF",
|
|
173286
|
-
"#99CC00",
|
|
173287
|
-
"#99CC33",
|
|
173288
|
-
"#CC0000",
|
|
173289
|
-
"#CC0033",
|
|
173290
|
-
"#CC0066",
|
|
173291
|
-
"#CC0099",
|
|
173292
|
-
"#CC00CC",
|
|
173293
|
-
"#CC00FF",
|
|
173294
|
-
"#CC3300",
|
|
173295
|
-
"#CC3333",
|
|
173296
|
-
"#CC3366",
|
|
173297
|
-
"#CC3399",
|
|
173298
|
-
"#CC33CC",
|
|
173299
|
-
"#CC33FF",
|
|
173300
|
-
"#CC6600",
|
|
173301
|
-
"#CC6633",
|
|
173302
|
-
"#CC9900",
|
|
173303
|
-
"#CC9933",
|
|
173304
|
-
"#CCCC00",
|
|
173305
|
-
"#CCCC33",
|
|
173306
|
-
"#FF0000",
|
|
173307
|
-
"#FF0033",
|
|
173308
|
-
"#FF0066",
|
|
173309
|
-
"#FF0099",
|
|
173310
|
-
"#FF00CC",
|
|
173311
|
-
"#FF00FF",
|
|
173312
|
-
"#FF3300",
|
|
173313
|
-
"#FF3333",
|
|
173314
|
-
"#FF3366",
|
|
173315
|
-
"#FF3399",
|
|
173316
|
-
"#FF33CC",
|
|
173317
|
-
"#FF33FF",
|
|
173318
|
-
"#FF6600",
|
|
173319
|
-
"#FF6633",
|
|
173320
|
-
"#FF9900",
|
|
173321
|
-
"#FF9933",
|
|
173322
|
-
"#FFCC00",
|
|
173323
|
-
"#FFCC33"
|
|
173324
|
-
];
|
|
173325
|
-
function useColors() {
|
|
173326
|
-
if (typeof window !== "undefined" && window.process && (window.process.type === "renderer" || window.process.__nwjs)) return true;
|
|
173327
|
-
if (typeof navigator !== "undefined" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)) return false;
|
|
173328
|
-
let m;
|
|
173329
|
-
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+)/);
|
|
173330
|
-
}
|
|
173331
|
-
function formatArgs(args) {
|
|
173332
|
-
args[0] = (this.useColors ? "%c" : "") + this.namespace + (this.useColors ? " %c" : " ") + args[0] + (this.useColors ? "%c " : " ") + "+" + module2.exports.humanize(this.diff);
|
|
173333
|
-
if (!this.useColors) return;
|
|
173334
|
-
const c = "color: " + this.color;
|
|
173335
|
-
args.splice(1, 0, c, "color: inherit");
|
|
173336
|
-
let index = 0;
|
|
173337
|
-
let lastC = 0;
|
|
173338
|
-
args[0].replace(/%[a-zA-Z%]/g, (match) => {
|
|
173339
|
-
if (match === "%%") return;
|
|
173340
|
-
index++;
|
|
173341
|
-
if (match === "%c") lastC = index;
|
|
173342
|
-
});
|
|
173343
|
-
args.splice(lastC, 0, c);
|
|
173344
|
-
}
|
|
173345
|
-
exports2.log = console.debug || console.log || (() => {
|
|
173346
|
-
});
|
|
173347
|
-
function save(namespaces) {
|
|
173348
|
-
try {
|
|
173349
|
-
if (namespaces) exports2.storage.setItem("debug", namespaces);
|
|
173350
|
-
else exports2.storage.removeItem("debug");
|
|
173351
|
-
} catch (error) {
|
|
173352
|
-
}
|
|
173353
|
-
}
|
|
173354
|
-
function load3() {
|
|
173355
|
-
let r;
|
|
173356
|
-
try {
|
|
173357
|
-
r = exports2.storage.getItem("debug") || exports2.storage.getItem("DEBUG");
|
|
173358
|
-
} catch (error) {
|
|
173359
|
-
}
|
|
173360
|
-
if (!r && typeof process !== "undefined" && "env" in process) r = process.env.DEBUG;
|
|
173361
|
-
return r;
|
|
173362
|
-
}
|
|
173363
|
-
function localstorage() {
|
|
173364
|
-
try {
|
|
173365
|
-
return localStorage;
|
|
173366
|
-
} catch (error) {
|
|
173367
|
-
}
|
|
173368
|
-
}
|
|
173369
|
-
module2.exports = require_common$1()(exports2);
|
|
173370
|
-
var { formatters } = module2.exports;
|
|
173371
|
-
formatters.j = function(v2) {
|
|
173372
|
-
try {
|
|
173373
|
-
return JSON.stringify(v2);
|
|
173374
|
-
} catch (error) {
|
|
173375
|
-
return "[UnexpectedJSONParseError]: " + error.message;
|
|
173376
|
-
}
|
|
173377
|
-
};
|
|
173378
|
-
}));
|
|
173379
|
-
var require_has_flag$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports2, module2) => {
|
|
173380
|
-
module2.exports = (flag, argv = process.argv) => {
|
|
173381
|
-
const prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
|
|
173382
|
-
const position = argv.indexOf(prefix + flag);
|
|
173383
|
-
const terminatorPosition = argv.indexOf("--");
|
|
173384
|
-
return position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);
|
|
173385
|
-
};
|
|
173386
|
-
}));
|
|
173387
|
-
var require_supports_color$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports2, module2) => {
|
|
173388
|
-
var os$13 = __require("os");
|
|
173389
|
-
var tty$1 = __require("tty");
|
|
173390
|
-
var hasFlag = require_has_flag$1();
|
|
173391
|
-
var { env } = process;
|
|
173392
|
-
var flagForceColor;
|
|
173393
|
-
if (hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false") || hasFlag("color=never")) flagForceColor = 0;
|
|
173394
|
-
else if (hasFlag("color") || hasFlag("colors") || hasFlag("color=true") || hasFlag("color=always")) flagForceColor = 1;
|
|
173395
|
-
function envForceColor() {
|
|
173396
|
-
if ("FORCE_COLOR" in env) {
|
|
173397
|
-
if (env.FORCE_COLOR === "true") return 1;
|
|
173398
|
-
if (env.FORCE_COLOR === "false") return 0;
|
|
173399
|
-
return env.FORCE_COLOR.length === 0 ? 1 : Math.min(Number.parseInt(env.FORCE_COLOR, 10), 3);
|
|
173400
|
-
}
|
|
173401
|
-
}
|
|
173402
|
-
function translateLevel(level) {
|
|
173403
|
-
if (level === 0) return false;
|
|
173404
|
-
return {
|
|
173405
|
-
level,
|
|
173406
|
-
hasBasic: true,
|
|
173407
|
-
has256: level >= 2,
|
|
173408
|
-
has16m: level >= 3
|
|
173409
|
-
};
|
|
173410
|
-
}
|
|
173411
|
-
function supportsColor(haveStream, { streamIsTTY, sniffFlags = true } = {}) {
|
|
173412
|
-
const noFlagForceColor = envForceColor();
|
|
173413
|
-
if (noFlagForceColor !== void 0) flagForceColor = noFlagForceColor;
|
|
173414
|
-
const forceColor = sniffFlags ? flagForceColor : noFlagForceColor;
|
|
173415
|
-
if (forceColor === 0) return 0;
|
|
173416
|
-
if (sniffFlags) {
|
|
173417
|
-
if (hasFlag("color=16m") || hasFlag("color=full") || hasFlag("color=truecolor")) return 3;
|
|
173418
|
-
if (hasFlag("color=256")) return 2;
|
|
173419
|
-
}
|
|
173420
|
-
if (haveStream && !streamIsTTY && forceColor === void 0) return 0;
|
|
173421
|
-
const min = forceColor || 0;
|
|
173422
|
-
if (env.TERM === "dumb") return min;
|
|
173423
|
-
if (process.platform === "win32") {
|
|
173424
|
-
const osRelease = os$13.release().split(".");
|
|
173425
|
-
if (Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) return Number(osRelease[2]) >= 14931 ? 3 : 2;
|
|
173426
|
-
return 1;
|
|
173427
|
-
}
|
|
173428
|
-
if ("CI" in env) {
|
|
173429
|
-
if ([
|
|
173430
|
-
"TRAVIS",
|
|
173431
|
-
"CIRCLECI",
|
|
173432
|
-
"APPVEYOR",
|
|
173433
|
-
"GITLAB_CI",
|
|
173434
|
-
"GITHUB_ACTIONS",
|
|
173435
|
-
"BUILDKITE",
|
|
173436
|
-
"DRONE"
|
|
173437
|
-
].some((sign2) => sign2 in env) || env.CI_NAME === "codeship") return 1;
|
|
173438
|
-
return min;
|
|
173439
|
-
}
|
|
173440
|
-
if ("TEAMCITY_VERSION" in env) return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;
|
|
173441
|
-
if (env.COLORTERM === "truecolor") return 3;
|
|
173442
|
-
if ("TERM_PROGRAM" in env) {
|
|
173443
|
-
const version2 = Number.parseInt((env.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
|
|
173444
|
-
switch (env.TERM_PROGRAM) {
|
|
173445
|
-
case "iTerm.app":
|
|
173446
|
-
return version2 >= 3 ? 3 : 2;
|
|
173447
|
-
case "Apple_Terminal":
|
|
173448
|
-
return 2;
|
|
173449
|
-
}
|
|
173450
|
-
}
|
|
173451
|
-
if (/-256(color)?$/i.test(env.TERM)) return 2;
|
|
173452
|
-
if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) return 1;
|
|
173453
|
-
if ("COLORTERM" in env) return 1;
|
|
173454
|
-
return min;
|
|
173455
|
-
}
|
|
173456
|
-
function getSupportLevel(stream, options = {}) {
|
|
173457
|
-
return translateLevel(supportsColor(stream, {
|
|
173458
|
-
streamIsTTY: stream && stream.isTTY,
|
|
173459
|
-
...options
|
|
173460
|
-
}));
|
|
173461
|
-
}
|
|
173462
|
-
module2.exports = {
|
|
173463
|
-
supportsColor: getSupportLevel,
|
|
173464
|
-
stdout: getSupportLevel({ isTTY: tty$1.isatty(1) }),
|
|
173465
|
-
stderr: getSupportLevel({ isTTY: tty$1.isatty(2) })
|
|
173466
|
-
};
|
|
173467
|
-
}));
|
|
173468
|
-
var require_node7 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports2, module2) => {
|
|
173469
|
-
var tty = __require("tty");
|
|
173470
|
-
var util$6 = __require("util");
|
|
173471
|
-
exports2.init = init2;
|
|
173472
|
-
exports2.log = log;
|
|
173473
|
-
exports2.formatArgs = formatArgs;
|
|
173474
|
-
exports2.save = save;
|
|
173475
|
-
exports2.load = load3;
|
|
173476
|
-
exports2.useColors = useColors;
|
|
173477
|
-
exports2.destroy = util$6.deprecate(() => {
|
|
173478
|
-
}, "Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");
|
|
173479
|
-
exports2.colors = [
|
|
173480
|
-
6,
|
|
173481
|
-
2,
|
|
173482
|
-
3,
|
|
173483
|
-
4,
|
|
173484
|
-
5,
|
|
173485
|
-
1
|
|
173486
|
-
];
|
|
173487
|
-
try {
|
|
173488
|
-
const supportsColor = require_supports_color$1();
|
|
173489
|
-
if (supportsColor && (supportsColor.stderr || supportsColor).level >= 2) exports2.colors = [
|
|
173490
|
-
20,
|
|
173491
|
-
21,
|
|
173492
|
-
26,
|
|
173493
|
-
27,
|
|
173494
|
-
32,
|
|
173495
|
-
33,
|
|
173496
|
-
38,
|
|
173497
|
-
39,
|
|
173498
|
-
40,
|
|
173499
|
-
41,
|
|
173500
|
-
42,
|
|
173501
|
-
43,
|
|
173502
|
-
44,
|
|
173503
|
-
45,
|
|
173504
|
-
56,
|
|
173505
|
-
57,
|
|
173506
|
-
62,
|
|
173507
|
-
63,
|
|
173508
|
-
68,
|
|
173509
|
-
69,
|
|
173510
|
-
74,
|
|
173511
|
-
75,
|
|
173512
|
-
76,
|
|
173513
|
-
77,
|
|
173514
|
-
78,
|
|
173515
|
-
79,
|
|
173516
|
-
80,
|
|
173517
|
-
81,
|
|
173518
|
-
92,
|
|
173519
|
-
93,
|
|
173520
|
-
98,
|
|
173521
|
-
99,
|
|
173522
|
-
112,
|
|
173523
|
-
113,
|
|
173524
|
-
128,
|
|
173525
|
-
129,
|
|
173526
|
-
134,
|
|
173527
|
-
135,
|
|
173528
|
-
148,
|
|
173529
|
-
149,
|
|
173530
|
-
160,
|
|
173531
|
-
161,
|
|
173532
|
-
162,
|
|
173533
|
-
163,
|
|
173534
|
-
164,
|
|
173535
|
-
165,
|
|
173536
|
-
166,
|
|
173537
|
-
167,
|
|
173538
|
-
168,
|
|
173539
|
-
169,
|
|
173540
|
-
170,
|
|
173541
|
-
171,
|
|
173542
|
-
172,
|
|
173543
|
-
173,
|
|
173544
|
-
178,
|
|
173545
|
-
179,
|
|
173546
|
-
184,
|
|
173547
|
-
185,
|
|
173548
|
-
196,
|
|
173549
|
-
197,
|
|
173550
|
-
198,
|
|
173551
|
-
199,
|
|
173552
|
-
200,
|
|
173553
|
-
201,
|
|
173554
|
-
202,
|
|
173555
|
-
203,
|
|
173556
|
-
204,
|
|
173557
|
-
205,
|
|
173558
|
-
206,
|
|
173559
|
-
207,
|
|
173560
|
-
208,
|
|
173561
|
-
209,
|
|
173562
|
-
214,
|
|
173563
|
-
215,
|
|
173564
|
-
220,
|
|
173565
|
-
221
|
|
173566
|
-
];
|
|
173567
|
-
} catch (error) {
|
|
173568
|
-
}
|
|
173569
|
-
exports2.inspectOpts = Object.keys(process.env).filter((key) => {
|
|
173570
|
-
return /^debug_/i.test(key);
|
|
173571
|
-
}).reduce((obj, key) => {
|
|
173572
|
-
const prop = key.substring(6).toLowerCase().replace(/_([a-z])/g, (_, k2) => {
|
|
173573
|
-
return k2.toUpperCase();
|
|
173574
|
-
});
|
|
173575
|
-
let val = process.env[key];
|
|
173576
|
-
if (/^(yes|on|true|enabled)$/i.test(val)) val = true;
|
|
173577
|
-
else if (/^(no|off|false|disabled)$/i.test(val)) val = false;
|
|
173578
|
-
else if (val === "null") val = null;
|
|
173579
|
-
else val = Number(val);
|
|
173580
|
-
obj[prop] = val;
|
|
173581
|
-
return obj;
|
|
173582
|
-
}, {});
|
|
173583
|
-
function useColors() {
|
|
173584
|
-
return "colors" in exports2.inspectOpts ? Boolean(exports2.inspectOpts.colors) : tty.isatty(process.stderr.fd);
|
|
173585
|
-
}
|
|
173586
|
-
function formatArgs(args) {
|
|
173587
|
-
const { namespace: name2, useColors: useColors2 } = this;
|
|
173588
|
-
if (useColors2) {
|
|
173589
|
-
const c = this.color;
|
|
173590
|
-
const colorCode = "\x1B[3" + (c < 8 ? c : "8;5;" + c);
|
|
173591
|
-
const prefix = ` ${colorCode};1m${name2} \x1B[0m`;
|
|
173592
|
-
args[0] = prefix + args[0].split("\n").join("\n" + prefix);
|
|
173593
|
-
args.push(colorCode + "m+" + module2.exports.humanize(this.diff) + "\x1B[0m");
|
|
173594
|
-
} else args[0] = getDate() + name2 + " " + args[0];
|
|
173595
|
-
}
|
|
173596
|
-
function getDate() {
|
|
173597
|
-
if (exports2.inspectOpts.hideDate) return "";
|
|
173598
|
-
return (/* @__PURE__ */ new Date()).toISOString() + " ";
|
|
173599
|
-
}
|
|
173600
|
-
function log(...args) {
|
|
173601
|
-
return process.stderr.write(util$6.formatWithOptions(exports2.inspectOpts, ...args) + "\n");
|
|
173602
|
-
}
|
|
173603
|
-
function save(namespaces) {
|
|
173604
|
-
if (namespaces) process.env.DEBUG = namespaces;
|
|
173605
|
-
else delete process.env.DEBUG;
|
|
173606
|
-
}
|
|
173607
|
-
function load3() {
|
|
173608
|
-
return process.env.DEBUG;
|
|
173609
|
-
}
|
|
173610
|
-
function init2(debug) {
|
|
173611
|
-
debug.inspectOpts = {};
|
|
173612
|
-
const keys = Object.keys(exports2.inspectOpts);
|
|
173613
|
-
for (let i = 0; i < keys.length; i++) debug.inspectOpts[keys[i]] = exports2.inspectOpts[keys[i]];
|
|
173614
|
-
}
|
|
173615
|
-
module2.exports = require_common$1()(exports2);
|
|
173616
|
-
var { formatters } = module2.exports;
|
|
173617
|
-
formatters.o = function(v2) {
|
|
173618
|
-
this.inspectOpts.colors = this.useColors;
|
|
173619
|
-
return util$6.inspect(v2, this.inspectOpts).split("\n").map((str) => str.trim()).join(" ");
|
|
173620
|
-
};
|
|
173621
|
-
formatters.O = function(v2) {
|
|
173622
|
-
this.inspectOpts.colors = this.useColors;
|
|
173623
|
-
return util$6.inspect(v2, this.inspectOpts);
|
|
173624
|
-
};
|
|
173625
|
-
}));
|
|
173626
|
-
var require_src2 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports2, module2) => {
|
|
173627
|
-
if (typeof process === "undefined" || process.type === "renderer" || process.browser === true || process.__nwjs) module2.exports = require_browser();
|
|
173628
|
-
else module2.exports = require_node7();
|
|
173629
|
-
}));
|
|
173630
174595
|
var require_debug3 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports2, module2) => {
|
|
173631
174596
|
var BaseLogger = require_base$4();
|
|
173632
174597
|
var _ = require_lodash2();
|
|
@@ -173649,7 +174614,7 @@ globstar while`, t, d, e, u, m), this.matchOne(t.slice(d), e.slice(u), s)) retur
|
|
|
173649
174614
|
init(loggerFactory) {
|
|
173650
174615
|
super.init(loggerFactory);
|
|
173651
174616
|
try {
|
|
173652
|
-
this.debug =
|
|
174617
|
+
this.debug = require_src$1.require_src()("moleculer");
|
|
173653
174618
|
} catch (err) {
|
|
173654
174619
|
this.broker.fatal("The 'debug' package is missing! Please install it with 'npm install debug --save' command!", err, true);
|
|
173655
174620
|
}
|
|
@@ -173907,7 +174872,7 @@ globstar while`, t, d, e, u, m), this.matchOne(t.slice(d), e.slice(u), s)) retur
|
|
|
173907
174872
|
}));
|
|
173908
174873
|
var require_configuration2 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports2, module2) => {
|
|
173909
174874
|
var util$5 = __require("util");
|
|
173910
|
-
var debug =
|
|
174875
|
+
var debug = require_src$1.require_src()("log4js:configuration");
|
|
173911
174876
|
var preProcessingListeners = [];
|
|
173912
174877
|
var listeners = [];
|
|
173913
174878
|
var not = (thing) => !thing;
|
|
@@ -174577,7 +175542,7 @@ globstar while`, t, d, e, u, m), this.matchOne(t.slice(d), e.slice(u), s)) retur
|
|
|
174577
175542
|
};
|
|
174578
175543
|
}));
|
|
174579
175544
|
var require_clustering2 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports2, module2) => {
|
|
174580
|
-
var debug =
|
|
175545
|
+
var debug = require_src$1.require_src()("log4js:clustering");
|
|
174581
175546
|
var LoggingEvent = require_LoggingEvent2();
|
|
174582
175547
|
var configuration = require_configuration2();
|
|
174583
175548
|
var disabled = false;
|
|
@@ -174735,7 +175700,7 @@ globstar while`, t, d, e, u, m), this.matchOne(t.slice(d), e.slice(u), s)) retur
|
|
|
174735
175700
|
module2.exports.configure = configure;
|
|
174736
175701
|
}));
|
|
174737
175702
|
var require_categoryFilter2 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports2, module2) => {
|
|
174738
|
-
var debug =
|
|
175703
|
+
var debug = require_src$1.require_src()("log4js:categoryFilter");
|
|
174739
175704
|
function categoryFilter(excludes, appender) {
|
|
174740
175705
|
if (typeof excludes === "string") excludes = [excludes];
|
|
174741
175706
|
return (logEvent) => {
|
|
@@ -174753,7 +175718,7 @@ globstar while`, t, d, e, u, m), this.matchOne(t.slice(d), e.slice(u), s)) retur
|
|
|
174753
175718
|
module2.exports.configure = configure;
|
|
174754
175719
|
}));
|
|
174755
175720
|
var require_noLogFilter2 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports2, module2) => {
|
|
174756
|
-
var debug =
|
|
175721
|
+
var debug = require_src$1.require_src()("log4js:noLogFilter");
|
|
174757
175722
|
function removeNullOrEmptyRegexp(regexp) {
|
|
174758
175723
|
return regexp.filter((el) => el != null && el !== "");
|
|
174759
175724
|
}
|
|
@@ -177130,7 +178095,7 @@ globstar while`, t, d, e, u, m), this.matchOne(t.slice(d), e.slice(u), s)) retur
|
|
|
177130
178095
|
module2.exports.ABSOLUTETIME_FORMAT = "hh:mm:ss.SSS";
|
|
177131
178096
|
}));
|
|
177132
178097
|
var require_fileNameFormatter2 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports2, module2) => {
|
|
177133
|
-
var debug =
|
|
178098
|
+
var debug = require_src$1.require_src()("streamroller:fileNameFormatter");
|
|
177134
178099
|
var path$17 = __require("path");
|
|
177135
178100
|
var FILENAME_SEP = ".";
|
|
177136
178101
|
var ZIP_EXT = ".gz";
|
|
@@ -177160,7 +178125,7 @@ globstar while`, t, d, e, u, m), this.matchOne(t.slice(d), e.slice(u), s)) retur
|
|
|
177160
178125
|
};
|
|
177161
178126
|
}));
|
|
177162
178127
|
var require_fileNameParser2 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports2, module2) => {
|
|
177163
|
-
var debug =
|
|
178128
|
+
var debug = require_src$1.require_src()("streamroller:fileNameParser");
|
|
177164
178129
|
var FILENAME_SEP = ".";
|
|
177165
178130
|
var ZIP_EXT = ".gz";
|
|
177166
178131
|
var format2 = require_lib$3();
|
|
@@ -177237,7 +178202,7 @@ globstar while`, t, d, e, u, m), this.matchOne(t.slice(d), e.slice(u), s)) retur
|
|
|
177237
178202
|
};
|
|
177238
178203
|
}));
|
|
177239
178204
|
var require_moveAndMaybeCompressFile2 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports2, module2) => {
|
|
177240
|
-
var debug =
|
|
178205
|
+
var debug = require_src$1.require_src()("streamroller:moveAndMaybeCompressFile");
|
|
177241
178206
|
var fs2 = require_lib$4();
|
|
177242
178207
|
var zlib$1 = __require("zlib");
|
|
177243
178208
|
var moveAndMaybeCompressFile = async (sourceFilePath, targetFilePath, needCompress) => {
|
|
@@ -177272,7 +178237,7 @@ globstar while`, t, d, e, u, m), this.matchOne(t.slice(d), e.slice(u), s)) retur
|
|
|
177272
178237
|
module2.exports = moveAndMaybeCompressFile;
|
|
177273
178238
|
}));
|
|
177274
178239
|
var require_RollingFileWriteStream2 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports2, module2) => {
|
|
177275
|
-
var debug =
|
|
178240
|
+
var debug = require_src$1.require_src()("streamroller:RollingFileWriteStream");
|
|
177276
178241
|
var fs2 = require_lib$4();
|
|
177277
178242
|
var path$16 = __require("path");
|
|
177278
178243
|
var newNow = require_now2();
|
|
@@ -177504,7 +178469,7 @@ globstar while`, t, d, e, u, m), this.matchOne(t.slice(d), e.slice(u), s)) retur
|
|
|
177504
178469
|
};
|
|
177505
178470
|
}));
|
|
177506
178471
|
var require_file5 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports2, module2) => {
|
|
177507
|
-
var debug =
|
|
178472
|
+
var debug = require_src$1.require_src()("log4js:file");
|
|
177508
178473
|
var path$15 = __require("path");
|
|
177509
178474
|
var streams = require_lib$2();
|
|
177510
178475
|
var eol$2 = __require("os").EOL;
|
|
@@ -177585,7 +178550,7 @@ globstar while`, t, d, e, u, m), this.matchOne(t.slice(d), e.slice(u), s)) retur
|
|
|
177585
178550
|
module2.exports.configure = configure;
|
|
177586
178551
|
}));
|
|
177587
178552
|
var require_fileSync2 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports2, module2) => {
|
|
177588
|
-
var debug =
|
|
178553
|
+
var debug = require_src$1.require_src()("log4js:fileSync");
|
|
177589
178554
|
var path$14 = __require("path");
|
|
177590
178555
|
var fs$13 = __require("fs");
|
|
177591
178556
|
var eol = __require("os").EOL || "\n";
|
|
@@ -177704,7 +178669,7 @@ globstar while`, t, d, e, u, m), this.matchOne(t.slice(d), e.slice(u), s)) retur
|
|
|
177704
178669
|
}));
|
|
177705
178670
|
var require_appenders2 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports2, module2) => {
|
|
177706
178671
|
var path$13 = __require("path");
|
|
177707
|
-
var debug =
|
|
178672
|
+
var debug = require_src$1.require_src()("log4js:appenders");
|
|
177708
178673
|
var configuration = require_configuration2();
|
|
177709
178674
|
var clustering = require_clustering2();
|
|
177710
178675
|
var levels = require_levels$1();
|
|
@@ -177787,7 +178752,7 @@ globstar while`, t, d, e, u, m), this.matchOne(t.slice(d), e.slice(u), s)) retur
|
|
|
177787
178752
|
module2.exports = appenders;
|
|
177788
178753
|
}));
|
|
177789
178754
|
var require_categories2 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports2, module2) => {
|
|
177790
|
-
var debug =
|
|
178755
|
+
var debug = require_src$1.require_src()("log4js:categories");
|
|
177791
178756
|
var configuration = require_configuration2();
|
|
177792
178757
|
var levels = require_levels$1();
|
|
177793
178758
|
var appenders = require_appenders2();
|
|
@@ -177896,7 +178861,7 @@ globstar while`, t, d, e, u, m), this.matchOne(t.slice(d), e.slice(u), s)) retur
|
|
|
177896
178861
|
};
|
|
177897
178862
|
}));
|
|
177898
178863
|
var require_logger3 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports2, module2) => {
|
|
177899
|
-
var debug =
|
|
178864
|
+
var debug = require_src$1.require_src()("log4js:logger");
|
|
177900
178865
|
var LoggingEvent = require_LoggingEvent2();
|
|
177901
178866
|
var levels = require_levels$1();
|
|
177902
178867
|
var clustering = require_clustering2();
|
|
@@ -178121,7 +179086,7 @@ globstar while`, t, d, e, u, m), this.matchOne(t.slice(d), e.slice(u), s)) retur
|
|
|
178121
179086
|
};
|
|
178122
179087
|
}));
|
|
178123
179088
|
var require_log4js$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports2, module2) => {
|
|
178124
|
-
var debug =
|
|
179089
|
+
var debug = require_src$1.require_src()("log4js:main");
|
|
178125
179090
|
var fs$12 = __require("fs");
|
|
178126
179091
|
var deepClone = require_rfdc2()({ proto: true });
|
|
178127
179092
|
var configuration = require_configuration2();
|
|
@@ -191217,7 +192182,7 @@ ${originalIndentation}`;
|
|
|
191217
192182
|
var { EventEmitter: EventEmitter$4 } = __require("events");
|
|
191218
192183
|
var Packet = require_packet2();
|
|
191219
192184
|
var constants = require_constants$4();
|
|
191220
|
-
var debug =
|
|
192185
|
+
var debug = require_src$1.require_src()("mqtt-packet:parser");
|
|
191221
192186
|
module2.exports = class Parser extends EventEmitter$4 {
|
|
191222
192187
|
constructor() {
|
|
191223
192188
|
super();
|
|
@@ -191837,7 +192802,7 @@ ${originalIndentation}`;
|
|
|
191837
192802
|
var zeroBuf = Buffer$2.from([0]);
|
|
191838
192803
|
var numbers = require_numbers2();
|
|
191839
192804
|
var nextTick = require_process_nextick_args2().nextTick;
|
|
191840
|
-
var debug =
|
|
192805
|
+
var debug = require_src$1.require_src()("mqtt-packet:writeToStream");
|
|
191841
192806
|
var numCache = numbers.cache;
|
|
191842
192807
|
var generateNumber = numbers.generateNumber;
|
|
191843
192808
|
var generateCache = numbers.generateCache;
|
|
@@ -197705,8 +198670,8 @@ ${originalIndentation}`;
|
|
|
197705
198670
|
}));
|
|
197706
198671
|
var require_number_allocator$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports2, module2) => {
|
|
197707
198672
|
var SortedSet = (init_esm3(), require_chunk.__toCommonJS(esm_exports3)).OrderedSet;
|
|
197708
|
-
var debugTrace =
|
|
197709
|
-
var debugError =
|
|
198673
|
+
var debugTrace = require_src$1.require_src()("number-allocator:trace");
|
|
198674
|
+
var debugError = require_src$1.require_src()("number-allocator:error");
|
|
197710
198675
|
function Interval(low, high) {
|
|
197711
198676
|
this.low = low;
|
|
197712
198677
|
this.high = high;
|
|
@@ -198598,7 +199563,7 @@ ${originalIndentation}`;
|
|
|
198598
199563
|
var mqtt_packet_1 = __importDefault(require_mqtt$2());
|
|
198599
199564
|
var readable_stream_1 = require_ours2();
|
|
198600
199565
|
var default_1 = __importDefault(require_default3());
|
|
198601
|
-
var debug_1 = __importDefault(
|
|
199566
|
+
var debug_1 = __importDefault(require_src$1.require_src());
|
|
198602
199567
|
var validations = __importStar(require_validations2());
|
|
198603
199568
|
var store_1 = __importDefault(require_store2());
|
|
198604
199569
|
var handlers_1 = __importDefault(require_handlers2());
|
|
@@ -199728,7 +200693,7 @@ ${originalIndentation}`;
|
|
|
199728
200693
|
exports2.streamBuilder = exports2.browserStreamBuilder = void 0;
|
|
199729
200694
|
var buffer_1$3 = __require("buffer");
|
|
199730
200695
|
var ws_1 = __importDefault(require_ws());
|
|
199731
|
-
var debug_1 = __importDefault(
|
|
200696
|
+
var debug_1 = __importDefault(require_src$1.require_src());
|
|
199732
200697
|
var readable_stream_1 = require_ours2();
|
|
199733
200698
|
var is_browser_1 = __importDefault(require_is_browser2());
|
|
199734
200699
|
var BufferedDuplex_1 = require_BufferedDuplex2();
|
|
@@ -203577,7 +204542,7 @@ ${originalIndentation}`;
|
|
|
203577
204542
|
};
|
|
203578
204543
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
203579
204544
|
exports2.default = openSocks;
|
|
203580
|
-
var debug_1 = __importDefault(
|
|
204545
|
+
var debug_1 = __importDefault(require_src$1.require_src());
|
|
203581
204546
|
var stream_1 = __require("stream");
|
|
203582
204547
|
var socks_1 = require_build$1();
|
|
203583
204548
|
var dns = __importStar(__require("dns"));
|
|
@@ -203712,7 +204677,7 @@ ${originalIndentation}`;
|
|
|
203712
204677
|
};
|
|
203713
204678
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
203714
204679
|
var net_1$1 = __importDefault(__require("net"));
|
|
203715
|
-
var debug_1 = __importDefault(
|
|
204680
|
+
var debug_1 = __importDefault(require_src$1.require_src());
|
|
203716
204681
|
var socks_1 = __importDefault(require_socks2());
|
|
203717
204682
|
var debug = (0, debug_1.default)("mqttjs:tcp");
|
|
203718
204683
|
var buildStream = (client, opts) => {
|
|
@@ -203737,7 +204702,7 @@ ${originalIndentation}`;
|
|
|
203737
204702
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
203738
204703
|
var tls_1 = __require("tls");
|
|
203739
204704
|
var net_1 = __importDefault(__require("net"));
|
|
203740
|
-
var debug_1 = __importDefault(
|
|
204705
|
+
var debug_1 = __importDefault(require_src$1.require_src());
|
|
203741
204706
|
var socks_1 = __importDefault(require_socks2());
|
|
203742
204707
|
var debug = (0, debug_1.default)("mqttjs:tls");
|
|
203743
204708
|
function connect(opts) {
|
|
@@ -203959,7 +204924,7 @@ ${originalIndentation}`;
|
|
|
203959
204924
|
};
|
|
203960
204925
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
203961
204926
|
exports2.connectAsync = connectAsync;
|
|
203962
|
-
var debug_1 = __importDefault(
|
|
204927
|
+
var debug_1 = __importDefault(require_src$1.require_src());
|
|
203963
204928
|
var url_1 = __importDefault(__require("url"));
|
|
203964
204929
|
var client_1 = __importDefault(require_client3());
|
|
203965
204930
|
var is_browser_1 = __importDefault(require_is_browser2());
|
|
@@ -207049,7 +208014,7 @@ ${originalIndentation}`;
|
|
|
207049
208014
|
var { isObject: isObject2, isString: isString2 } = require_utils$3();
|
|
207050
208015
|
var fs$10 = __require("fs");
|
|
207051
208016
|
var kleur = require_kleur2();
|
|
207052
|
-
var Node =
|
|
208017
|
+
var Node = require_node7();
|
|
207053
208018
|
var P2 = require_packets2();
|
|
207054
208019
|
var { resolvePacketID } = require_constants15();
|
|
207055
208020
|
var { MoleculerServerError } = require_errors$2();
|
|
@@ -227236,7 +228201,7 @@ var require_winston_logging = __commonJS({
|
|
|
227236
228201
|
[Symbol.toStringTag]: { value: "Module" }
|
|
227237
228202
|
});
|
|
227238
228203
|
var require_chunk = require_chunk_Cek0wNdY();
|
|
227239
|
-
var require_dist10 =
|
|
228204
|
+
var require_dist10 = require_dist_DxiDI8hZ();
|
|
227240
228205
|
var require_formatter = require_formatter_DqAKDlvN();
|
|
227241
228206
|
var node_path = __require("path");
|
|
227242
228207
|
node_path = require_chunk.__toESM(node_path);
|
|
@@ -227373,12 +228338,12 @@ var require_winston_logging = __commonJS({
|
|
|
227373
228338
|
}
|
|
227374
228339
|
});
|
|
227375
228340
|
|
|
227376
|
-
// ../system/dist/event-loop-stall-monitor-
|
|
227377
|
-
var
|
|
227378
|
-
"../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) {
|
|
227379
228344
|
"use strict";
|
|
227380
228345
|
var require_chunk = require_chunk_Cek0wNdY();
|
|
227381
|
-
var require_dist10 =
|
|
228346
|
+
var require_dist10 = require_dist_DxiDI8hZ();
|
|
227382
228347
|
var node_crypto = __require("crypto");
|
|
227383
228348
|
var node_path = __require("path");
|
|
227384
228349
|
node_path = require_chunk.__toESM(node_path);
|
|
@@ -228590,12 +229555,12 @@ var require_event_loop_stall_monitor_CaAcghV2 = __commonJS({
|
|
|
228590
229555
|
}
|
|
228591
229556
|
});
|
|
228592
229557
|
|
|
228593
|
-
// ../system/dist/tls-
|
|
228594
|
-
var
|
|
228595
|
-
"../system/dist/tls-
|
|
229558
|
+
// ../system/dist/tls-C0TRPfqc.js
|
|
229559
|
+
var require_tls_C0TRPfqc = __commonJS({
|
|
229560
|
+
"../system/dist/tls-C0TRPfqc.js"(exports) {
|
|
228596
229561
|
"use strict";
|
|
228597
229562
|
var require_chunk = require_chunk_Cek0wNdY();
|
|
228598
|
-
var require_x509_es =
|
|
229563
|
+
var require_x509_es = require_x509_es_Dzl0BbmG();
|
|
228599
229564
|
var node_crypto = __require("crypto");
|
|
228600
229565
|
var node_net = __require("net");
|
|
228601
229566
|
var node_fs_promises = __require("fs/promises");
|
|
@@ -229544,9 +230509,9 @@ ${ca.certPem.trimEnd()}
|
|
|
229544
230509
|
}
|
|
229545
230510
|
});
|
|
229546
230511
|
|
|
229547
|
-
// ../types/dist/event-category-
|
|
229548
|
-
var
|
|
229549
|
-
"../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) {
|
|
229550
230515
|
"use strict";
|
|
229551
230516
|
var EventCategory = /* @__PURE__ */ (function(EventCategory2) {
|
|
229552
230517
|
EventCategory2["SystemBoot"] = "system.boot";
|
|
@@ -229600,7 +230565,12 @@ var require_event_category_CHduMGvg = __commonJS({
|
|
|
229600
230565
|
EventCategory2["RecordingStopped"] = "recording.stopped";
|
|
229601
230566
|
EventCategory2["RecordingError"] = "recording.error";
|
|
229602
230567
|
EventCategory2["RecordingHealthDegraded"] = "recording.health.degraded";
|
|
230568
|
+
EventCategory2["RecordingHealthStalled"] = "recording.health.stalled";
|
|
230569
|
+
EventCategory2["RecordingHealthOk"] = "recording.health.ok";
|
|
229603
230570
|
EventCategory2["RecordingStorageCritical"] = "recording.storage.critical";
|
|
230571
|
+
EventCategory2["StorageLocationLow"] = "storage.location.low";
|
|
230572
|
+
EventCategory2["StorageLocationCritical"] = "storage.location.critical";
|
|
230573
|
+
EventCategory2["StorageLocationOk"] = "storage.location.ok";
|
|
229604
230574
|
EventCategory2["RecordingSegmentWritten"] = "recording.segment.written";
|
|
229605
230575
|
EventCategory2["RecordingPolicyFallback"] = "recording.policy.fallback";
|
|
229606
230576
|
EventCategory2["RecordingRetentionCompleted"] = "recording.retention.completed";
|
|
@@ -229740,11 +230710,11 @@ var require_event_category_CHduMGvg = __commonJS({
|
|
|
229740
230710
|
}
|
|
229741
230711
|
});
|
|
229742
230712
|
|
|
229743
|
-
// ../types/dist/sleep-
|
|
229744
|
-
var
|
|
229745
|
-
"../types/dist/sleep-
|
|
230713
|
+
// ../types/dist/sleep-SgkKj2bk.js
|
|
230714
|
+
var require_sleep_SgkKj2bk = __commonJS({
|
|
230715
|
+
"../types/dist/sleep-SgkKj2bk.js"(exports) {
|
|
229746
230716
|
"use strict";
|
|
229747
|
-
var require_event_category =
|
|
230717
|
+
var require_event_category = require_event_category_T43rdQWR();
|
|
229748
230718
|
var zod = require_zod();
|
|
229749
230719
|
var AUDIO_CHUNK_FORMATS = [
|
|
229750
230720
|
"f32le",
|
|
@@ -235377,8 +236347,8 @@ var require_addon = __commonJS({
|
|
|
235377
236347
|
"../types/dist/addon.js"(exports) {
|
|
235378
236348
|
"use strict";
|
|
235379
236349
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
235380
|
-
var require_sleep =
|
|
235381
|
-
var require_event_category =
|
|
236350
|
+
var require_sleep = require_sleep_SgkKj2bk();
|
|
236351
|
+
var require_event_category = require_event_category_T43rdQWR();
|
|
235382
236352
|
var require_err_msg = require_err_msg_Dx2Kor0g();
|
|
235383
236353
|
var CAP_INPUT_DEFAULTS = Object.freeze({
|
|
235384
236354
|
"addons": { "getLogs": { "limit": 100 } },
|
|
@@ -242346,12 +243316,12 @@ var require_dist2 = __commonJS({
|
|
|
242346
243316
|
}
|
|
242347
243317
|
});
|
|
242348
243318
|
|
|
242349
|
-
// ../system/dist/child-cap-dispatch-
|
|
242350
|
-
var
|
|
242351
|
-
"../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) {
|
|
242352
243322
|
"use strict";
|
|
242353
243323
|
var require_chunk = require_chunk_Cek0wNdY();
|
|
242354
|
-
var require_dist10 =
|
|
243324
|
+
var require_dist10 = require_dist_DxiDI8hZ();
|
|
242355
243325
|
var require_proc_stat = require_proc_stat_DL_WUOhl();
|
|
242356
243326
|
require_hub_cap_forward_W8oEm4ME();
|
|
242357
243327
|
var node_crypto = __require("crypto");
|
|
@@ -253281,12 +254251,12 @@ var require_custom_action_registry_acBY3mHA = __commonJS({
|
|
|
253281
254251
|
}
|
|
253282
254252
|
});
|
|
253283
254253
|
|
|
253284
|
-
// ../system/dist/restore-archive-
|
|
253285
|
-
var
|
|
253286
|
-
"../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) {
|
|
253287
254257
|
"use strict";
|
|
253288
254258
|
var require_chunk = require_chunk_Cek0wNdY();
|
|
253289
|
-
var require_dist10 =
|
|
254259
|
+
var require_dist10 = require_dist_DxiDI8hZ();
|
|
253290
254260
|
var node_crypto = __require("crypto");
|
|
253291
254261
|
var buffer = __require("buffer");
|
|
253292
254262
|
var node_fs_promises = __require("fs/promises");
|
|
@@ -257655,8 +258625,8 @@ var require_dist3 = __commonJS({
|
|
|
257655
258625
|
"use strict";
|
|
257656
258626
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
257657
258627
|
var require_chunk = require_chunk_Cek0wNdY();
|
|
257658
|
-
var require_dist10 =
|
|
257659
|
-
var require_jwt_signing_key =
|
|
258628
|
+
var require_dist10 = require_dist_DxiDI8hZ();
|
|
258629
|
+
var require_jwt_signing_key = require_jwt_signing_key_CsC_FxSm();
|
|
257660
258630
|
var require_builtins_alerts_alerts_addon = require_alerts_addon();
|
|
257661
258631
|
require_alerts();
|
|
257662
258632
|
var require_builtins_calendars_calendars_addon = require_calendars_addon();
|
|
@@ -257682,17 +258652,17 @@ var require_dist3 = __commonJS({
|
|
|
257682
258652
|
var require_hub_cap_forward = require_hub_cap_forward_W8oEm4ME();
|
|
257683
258653
|
var require_builtins_storage_orchestrator_storage_orchestrator_addon = require_storage_orchestrator_addon();
|
|
257684
258654
|
require_storage_orchestrator();
|
|
257685
|
-
var require_constants15 =
|
|
258655
|
+
var require_constants15 = require_constants_C4jZO_qO();
|
|
257686
258656
|
var require_builtins_system_config_system_config_addon = require_system_config_addon();
|
|
257687
258657
|
require_system_config();
|
|
257688
258658
|
var require_builtins_winston_logging_index = require_winston_logging();
|
|
257689
|
-
var require_event_loop_stall_monitor =
|
|
257690
|
-
var require_tls2 =
|
|
257691
|
-
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();
|
|
257692
258662
|
var require_platform_key_source = require_platform_key_source_Di7HrlGR();
|
|
257693
258663
|
var require_resource_monitor = require_resource_monitor_BgWGRxN5();
|
|
257694
258664
|
var require_custom_action_registry = require_custom_action_registry_acBY3mHA();
|
|
257695
|
-
var require_restore_archive =
|
|
258665
|
+
var require_restore_archive = require_restore_archive_BtKjaVua();
|
|
257696
258666
|
var zod = require_zod();
|
|
257697
258667
|
var node_crypto = __require("crypto");
|
|
257698
258668
|
var _camstack_types_node = require_node();
|
|
@@ -270419,7 +271389,7 @@ var require_enums = __commonJS({
|
|
|
270419
271389
|
"../types/dist/enums.js"(exports) {
|
|
270420
271390
|
"use strict";
|
|
270421
271391
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
270422
|
-
var require_event_category =
|
|
271392
|
+
var require_event_category = require_event_category_T43rdQWR();
|
|
270423
271393
|
var EventSourceType = /* @__PURE__ */ (function(EventSourceType2) {
|
|
270424
271394
|
EventSourceType2["Addon"] = "addon";
|
|
270425
271395
|
EventSourceType2["Core"] = "core";
|
|
@@ -270439,8 +271409,8 @@ var require_dist4 = __commonJS({
|
|
|
270439
271409
|
"../types/dist/index.js"(exports) {
|
|
270440
271410
|
"use strict";
|
|
270441
271411
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
270442
|
-
var require_sleep =
|
|
270443
|
-
var require_event_category =
|
|
271412
|
+
var require_sleep = require_sleep_SgkKj2bk();
|
|
271413
|
+
var require_event_category = require_event_category_T43rdQWR();
|
|
270444
271414
|
var require_composition = require_composition_BLWAivB2();
|
|
270445
271415
|
var require_node_color2 = require_node_color();
|
|
270446
271416
|
var require_err_msg = require_err_msg_Dx2Kor0g();
|
|
@@ -276272,7 +277242,14 @@ ${recipe.triggers.map((t, i) => emitTrigger(t, i)).join("\n\n")}
|
|
|
276272
277242
|
/** Broker kinds this provider can create, with a display label. */
|
|
276273
277243
|
kinds: zod.z.array(zod.z.object({
|
|
276274
277244
|
kind: zod.z.string(),
|
|
276275
|
-
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()
|
|
276276
277253
|
}))
|
|
276277
277254
|
});
|
|
276278
277255
|
var ListInputSchema = zod.z.object({
|
|
@@ -282960,6 +283937,15 @@ ${recipe.triggers.map((t, i) => emitTrigger(t, i)).join("\n\n")}
|
|
|
282960
283937
|
function hubAddressHostname(baseUrl) {
|
|
282961
283938
|
return baseUrl === null ? null : hostnameOf(baseUrl);
|
|
282962
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";
|
|
282963
283949
|
var AI_CAP_TRANSPORT_TIMEOUT_MS = 6e5;
|
|
282964
283950
|
var AI_MODEL_INSTALL_TIMEOUT_MS = 60 * 6e4;
|
|
282965
283951
|
var LlmUsageSchema = zod.z.object({
|
|
@@ -283381,14 +284367,14 @@ ${recipe.triggers.map((t, i) => emitTrigger(t, i)).join("\n\n")}
|
|
|
283381
284367
|
*/
|
|
283382
284368
|
appleFoundation: zod.z.object({ nodeId: zod.z.string() }).optional()
|
|
283383
284369
|
});
|
|
283384
|
-
var ConfigSchemaPassthrough$
|
|
284370
|
+
var ConfigSchemaPassthrough$3 = zod.z.unknown();
|
|
283385
284371
|
var LlmProfileKindDescriptorSchema = zod.z.object({
|
|
283386
284372
|
kind: LlmProfileKindSchema,
|
|
283387
284373
|
label: zod.z.string(),
|
|
283388
284374
|
icon: zod.z.string(),
|
|
283389
284375
|
/** Stamped by each provider so the concat-fanned catalog stays routable. */
|
|
283390
284376
|
addonId: zod.z.string(),
|
|
283391
|
-
configSchema: ConfigSchemaPassthrough$
|
|
284377
|
+
configSchema: ConfigSchemaPassthrough$3
|
|
283392
284378
|
});
|
|
283393
284379
|
var LlmDefaultSelectorSchema = zod.z.union([zod.z.object({ consumer: zod.z.string() }), zod.z.object({ purpose: zod.z.enum(["text", "vision"]) })]);
|
|
283394
284380
|
var LlmDefaultSchema = zod.z.object({
|
|
@@ -284491,7 +285477,7 @@ ${recipe.triggers.map((t, i) => emitTrigger(t, i)).join("\n\n")}
|
|
|
284491
285477
|
ttl: zod.z.boolean(),
|
|
284492
285478
|
bodyMaxLen: zod.z.number().int().positive()
|
|
284493
285479
|
});
|
|
284494
|
-
var ConfigSchemaPassthrough$
|
|
285480
|
+
var ConfigSchemaPassthrough$2 = zod.z.unknown();
|
|
284495
285481
|
var TargetKindSchema = zod.z.object({
|
|
284496
285482
|
kind: zod.z.string(),
|
|
284497
285483
|
label: zod.z.string(),
|
|
@@ -284528,7 +285514,7 @@ ${recipe.triggers.map((t, i) => emitTrigger(t, i)).join("\n\n")}
|
|
|
284528
285514
|
* its raster path, which is the safe default for an unknown image.
|
|
284529
285515
|
*/
|
|
284530
285516
|
iconMediaType: zod.z.string().optional(),
|
|
284531
|
-
configSchema: ConfigSchemaPassthrough$
|
|
285517
|
+
configSchema: ConfigSchemaPassthrough$2,
|
|
284532
285518
|
/**
|
|
284533
285519
|
* The config keys that decide WHERE this kind's secrets are sent (server,
|
|
284534
285520
|
* base URL, instance, chat, recipient). A save that changes any of them
|
|
@@ -285702,6 +286688,12 @@ ${recipe.triggers.map((t, i) => emitTrigger(t, i)).join("\n\n")}
|
|
|
285702
286688
|
"node-updating",
|
|
285703
286689
|
"node-inference-unavailable",
|
|
285704
286690
|
"detection-blind",
|
|
286691
|
+
"recording-stalled",
|
|
286692
|
+
"recording-healthy",
|
|
286693
|
+
"recording-degraded",
|
|
286694
|
+
"storage-location-low",
|
|
286695
|
+
"storage-location-critical",
|
|
286696
|
+
"storage-location-ok",
|
|
285705
286697
|
"addon-crash-loop",
|
|
285706
286698
|
"addon-update-available",
|
|
285707
286699
|
"server-update-available",
|
|
@@ -286773,6 +287765,30 @@ ${recipe.triggers.map((t, i) => emitTrigger(t, i)).join("\n\n")}
|
|
|
286773
287765
|
value: "detection-blind",
|
|
286774
287766
|
label: "Camera detecting nothing"
|
|
286775
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
|
+
},
|
|
286776
287792
|
{
|
|
286777
287793
|
value: "addon-crash-loop",
|
|
286778
287794
|
label: "Addon stopped after repeated crashes"
|
|
@@ -288207,6 +289223,65 @@ ${recipe.triggers.map((t, i) => emitTrigger(t, i)).join("\n\n")}
|
|
|
288207
289223
|
getDescriptor: require_sleep.method(zod.z.void(), OauthIntegrationDescriptorSchema, { auth: "admin" })
|
|
288208
289224
|
}
|
|
288209
289225
|
};
|
|
289226
|
+
var ConfigSchemaPassthrough$1 = zod.z.unknown();
|
|
289227
|
+
var OidcConnectionSchema = zod.z.object({
|
|
289228
|
+
id: zod.z.string().min(1),
|
|
289229
|
+
displayName: zod.z.string(),
|
|
289230
|
+
icon: zod.z.string(),
|
|
289231
|
+
issuerUrl: zod.z.string(),
|
|
289232
|
+
clientId: zod.z.string(),
|
|
289233
|
+
/** Client id + secret present — never the secret value. */
|
|
289234
|
+
configured: zod.z.boolean(),
|
|
289235
|
+
/**
|
|
289236
|
+
* Values for the connection form schema. `clientSecret` is a keychain
|
|
289237
|
+
* {@link SecretFieldView} or `null` / `''`, never plaintext (D789).
|
|
289238
|
+
*/
|
|
289239
|
+
formValues: zod.z.record(zod.z.string(), zod.z.unknown()).optional()
|
|
289240
|
+
});
|
|
289241
|
+
var OidcConnectionUpdateInputSchema = zod.z.object({
|
|
289242
|
+
id: zod.z.string().min(1),
|
|
289243
|
+
displayName: zod.z.string().min(1),
|
|
289244
|
+
icon: zod.z.string().optional(),
|
|
289245
|
+
issuerUrl: zod.z.string().optional(),
|
|
289246
|
+
clientId: zod.z.string().optional(),
|
|
289247
|
+
clientSecret: zod.z.union([zod.z.string(), zod.z.object({ $secretClear: zod.z.literal(true) })]).optional(),
|
|
289248
|
+
redirectUri: zod.z.string().optional(),
|
|
289249
|
+
scopes: zod.z.string().optional(),
|
|
289250
|
+
usernameClaim: zod.z.enum([
|
|
289251
|
+
"preferred_username",
|
|
289252
|
+
"email",
|
|
289253
|
+
"sub"
|
|
289254
|
+
]).optional()
|
|
289255
|
+
});
|
|
289256
|
+
var oidcConnectionsCapability = {
|
|
289257
|
+
name: "oidc-connections",
|
|
289258
|
+
scope: "system",
|
|
289259
|
+
mode: "singleton",
|
|
289260
|
+
methods: {
|
|
289261
|
+
/** Form fields for Add/Edit (ConfigFormBuilder). */
|
|
289262
|
+
connectionFormSchema: require_sleep.method(zod.z.object({}), ConfigSchemaPassthrough$1, { auth: "admin" }),
|
|
289263
|
+
listConnections: require_sleep.method(zod.z.object({}), zod.z.array(OidcConnectionSchema).readonly(), { auth: "admin" }),
|
|
289264
|
+
/**
|
|
289265
|
+
* Create a row with the operator-chosen URL slug. Credentials follow via
|
|
289266
|
+
* `updateConnection` (same Save path as Training Providers).
|
|
289267
|
+
*/
|
|
289268
|
+
createConnection: require_sleep.method(zod.z.object({
|
|
289269
|
+
id: zod.z.string().min(1).regex(/^[a-z0-9][a-z0-9-]{0,63}$/, "id must be a lowercase slug"),
|
|
289270
|
+
displayName: zod.z.string().min(1)
|
|
289271
|
+
}), zod.z.object({ id: zod.z.string() }), {
|
|
289272
|
+
kind: "mutation",
|
|
289273
|
+
auth: "admin"
|
|
289274
|
+
}),
|
|
289275
|
+
updateConnection: require_sleep.method(OidcConnectionUpdateInputSchema, zod.z.object({ ok: zod.z.literal(true) }), {
|
|
289276
|
+
kind: "mutation",
|
|
289277
|
+
auth: "admin"
|
|
289278
|
+
}),
|
|
289279
|
+
deleteConnection: require_sleep.method(zod.z.object({ id: zod.z.string().min(1) }), zod.z.object({ ok: zod.z.literal(true) }), {
|
|
289280
|
+
kind: "mutation",
|
|
289281
|
+
auth: "admin"
|
|
289282
|
+
})
|
|
289283
|
+
}
|
|
289284
|
+
};
|
|
288210
289285
|
var MotionTriggeredBySchema = zod.z.discriminatedUnion("kind", [zod.z.object({ kind: zod.z.literal("camera") }), zod.z.object({
|
|
288211
289286
|
kind: zod.z.literal("sensor"),
|
|
288212
289287
|
deviceId: zod.z.number().int().positive()
|
|
@@ -315802,6 +316877,36 @@ ${recipe.triggers.map((t, i) => emitTrigger(t, i)).join("\n\n")}
|
|
|
315802
316877
|
addonId: null,
|
|
315803
316878
|
access: "view"
|
|
315804
316879
|
},
|
|
316880
|
+
"oidcConnections.connectionFormSchema": {
|
|
316881
|
+
capName: "oidc-connections",
|
|
316882
|
+
capScope: "system",
|
|
316883
|
+
addonId: null,
|
|
316884
|
+
access: "view"
|
|
316885
|
+
},
|
|
316886
|
+
"oidcConnections.createConnection": {
|
|
316887
|
+
capName: "oidc-connections",
|
|
316888
|
+
capScope: "system",
|
|
316889
|
+
addonId: null,
|
|
316890
|
+
access: "create"
|
|
316891
|
+
},
|
|
316892
|
+
"oidcConnections.deleteConnection": {
|
|
316893
|
+
capName: "oidc-connections",
|
|
316894
|
+
capScope: "system",
|
|
316895
|
+
addonId: null,
|
|
316896
|
+
access: "delete"
|
|
316897
|
+
},
|
|
316898
|
+
"oidcConnections.listConnections": {
|
|
316899
|
+
capName: "oidc-connections",
|
|
316900
|
+
capScope: "system",
|
|
316901
|
+
addonId: null,
|
|
316902
|
+
access: "view"
|
|
316903
|
+
},
|
|
316904
|
+
"oidcConnections.updateConnection": {
|
|
316905
|
+
capName: "oidc-connections",
|
|
316906
|
+
capScope: "system",
|
|
316907
|
+
addonId: null,
|
|
316908
|
+
access: "create"
|
|
316909
|
+
},
|
|
315805
316910
|
"osd.getStatus": {
|
|
315806
316911
|
capName: "osd",
|
|
315807
316912
|
capScope: "device",
|
|
@@ -319703,6 +320808,7 @@ ${recipe.triggers.map((t, i) => emitTrigger(t, i)).join("\n\n")}
|
|
|
319703
320808
|
"notifier",
|
|
319704
320809
|
"numeric-sensor",
|
|
319705
320810
|
"oauth-integration",
|
|
320811
|
+
"oidc-connections",
|
|
319706
320812
|
"osd",
|
|
319707
320813
|
"osd-manager",
|
|
319708
320814
|
"pet-feeder",
|
|
@@ -319910,6 +321016,7 @@ ${recipe.triggers.map((t, i) => emitTrigger(t, i)).join("\n\n")}
|
|
|
319910
321016
|
"notification-output",
|
|
319911
321017
|
"notification-rules",
|
|
319912
321018
|
"oauth-integration",
|
|
321019
|
+
"oidc-connections",
|
|
319913
321020
|
"osd-manager",
|
|
319914
321021
|
"pipeline-executor",
|
|
319915
321022
|
"pipeline-orchestrator",
|
|
@@ -323103,6 +324210,7 @@ ${recipe.triggers.map((t, i) => emitTrigger(t, i)).join("\n\n")}
|
|
|
323103
324210
|
notifier: "notifier",
|
|
323104
324211
|
numericSensor: "numeric-sensor",
|
|
323105
324212
|
oauthIntegration: "oauth-integration",
|
|
324213
|
+
oidcConnections: "oidc-connections",
|
|
323106
324214
|
osd: "osd",
|
|
323107
324215
|
osdManager: "osd-manager",
|
|
323108
324216
|
petFeeder: "pet-feeder",
|
|
@@ -323595,6 +324703,10 @@ ${recipe.triggers.map((t, i) => emitTrigger(t, i)).join("\n\n")}
|
|
|
323595
324703
|
key: "oauthIntegration",
|
|
323596
324704
|
name: "oauth-integration"
|
|
323597
324705
|
},
|
|
324706
|
+
{
|
|
324707
|
+
key: "oidcConnections",
|
|
324708
|
+
name: "oidc-connections"
|
|
324709
|
+
},
|
|
323598
324710
|
{
|
|
323599
324711
|
key: "osd",
|
|
323600
324712
|
name: "osd"
|
|
@@ -323952,6 +325064,7 @@ ${recipe.triggers.map((t, i) => emitTrigger(t, i)).join("\n\n")}
|
|
|
323952
325064
|
notifierCapability,
|
|
323953
325065
|
numericSensorCapability,
|
|
323954
325066
|
oauthIntegrationCapability,
|
|
325067
|
+
oidcConnectionsCapability,
|
|
323955
325068
|
osdCapability,
|
|
323956
325069
|
osdManagerCapability,
|
|
323957
325070
|
petFeederCapability,
|
|
@@ -327651,6 +328764,13 @@ ${recipe.triggers.map((t, i) => emitTrigger(t, i)).join("\n\n")}
|
|
|
327651
328764
|
activateAlarmProfile: (input) => dispatch("notificationRules", "activateAlarmProfile", "mutation", input),
|
|
327652
328765
|
getAlarmSensors: (input) => dispatch("notificationRules", "getAlarmSensors", "query", input)
|
|
327653
328766
|
},
|
|
328767
|
+
oidcConnections: {
|
|
328768
|
+
connectionFormSchema: (input) => dispatch("oidcConnections", "connectionFormSchema", "query", input),
|
|
328769
|
+
listConnections: (input) => dispatch("oidcConnections", "listConnections", "query", input),
|
|
328770
|
+
createConnection: (input) => dispatch("oidcConnections", "createConnection", "mutation", input),
|
|
328771
|
+
updateConnection: (input) => dispatch("oidcConnections", "updateConnection", "mutation", input),
|
|
328772
|
+
deleteConnection: (input) => dispatch("oidcConnections", "deleteConnection", "mutation", input)
|
|
328773
|
+
},
|
|
327654
328774
|
osdManager: {
|
|
327655
328775
|
getConditionSupport: (input) => dispatch("osdManager", "getConditionSupport", "query", input),
|
|
327656
328776
|
copyDeviceConfiguration: (input) => dispatch("osdManager", "copyDeviceConfiguration", "mutation", input),
|
|
@@ -328380,11 +329500,11 @@ ${recipe.triggers.map((t, i) => emitTrigger(t, i)).join("\n\n")}
|
|
|
328380
329500
|
function systemEventFilterApplies(kind, filter) {
|
|
328381
329501
|
switch (filter) {
|
|
328382
329502
|
case "deviceIds":
|
|
328383
|
-
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";
|
|
328384
329504
|
case "deviceTypes":
|
|
328385
329505
|
return kind.startsWith("device-") || kind === "detection-blind";
|
|
328386
329506
|
case "nodeIds":
|
|
328387
|
-
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-");
|
|
328388
329508
|
case "packageNames":
|
|
328389
329509
|
return kind.endsWith("update-available") || kind === "addon-updated" || kind === "node-updating" || kind === "server-updated";
|
|
328390
329510
|
case "consumableLowPercent":
|
|
@@ -328417,6 +329537,9 @@ ${recipe.triggers.map((t, i) => emitTrigger(t, i)).join("\n\n")}
|
|
|
328417
329537
|
"stream-online": "device-events",
|
|
328418
329538
|
"stream-offline": "device-events",
|
|
328419
329539
|
"detection-blind": "device-events",
|
|
329540
|
+
"recording-stalled": "device-events",
|
|
329541
|
+
"recording-healthy": "device-events",
|
|
329542
|
+
"recording-degraded": "device-events",
|
|
328420
329543
|
"node-online": "system",
|
|
328421
329544
|
"node-offline": "system",
|
|
328422
329545
|
"node-restarting": "system",
|
|
@@ -328430,6 +329553,9 @@ ${recipe.triggers.map((t, i) => emitTrigger(t, i)).join("\n\n")}
|
|
|
328430
329553
|
"wrapper-update-available": "system",
|
|
328431
329554
|
"backup-completed": "system",
|
|
328432
329555
|
"export-completed": "system",
|
|
329556
|
+
"storage-location-low": "system",
|
|
329557
|
+
"storage-location-critical": "system",
|
|
329558
|
+
"storage-location-ok": "system",
|
|
328433
329559
|
"alarm-triggered": "alarm",
|
|
328434
329560
|
"alarm-armed": "alarm",
|
|
328435
329561
|
"alarm-disarmed": "alarm",
|
|
@@ -328502,6 +329628,16 @@ ${recipe.triggers.map((t, i) => emitTrigger(t, i)).join("\n\n")}
|
|
|
328502
329628
|
label: "Detecting nothing",
|
|
328503
329629
|
kinds: ["detection-blind"]
|
|
328504
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
|
+
},
|
|
328505
329641
|
{
|
|
328506
329642
|
id: "nodes",
|
|
328507
329643
|
family: "system",
|
|
@@ -328542,6 +329678,16 @@ ${recipe.triggers.map((t, i) => emitTrigger(t, i)).join("\n\n")}
|
|
|
328542
329678
|
label: "Backups & exports",
|
|
328543
329679
|
kinds: ["backup-completed", "export-completed"]
|
|
328544
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
|
+
},
|
|
328545
329691
|
{
|
|
328546
329692
|
id: "alarm",
|
|
328547
329693
|
family: "alarm",
|
|
@@ -329652,6 +330798,9 @@ ${recipe.triggers.map((t, i) => emitTrigger(t, i)).join("\n\n")}
|
|
|
329652
330798
|
"stream-online",
|
|
329653
330799
|
"stream-offline",
|
|
329654
330800
|
"detection-blind",
|
|
330801
|
+
"recording-stalled",
|
|
330802
|
+
"recording-healthy",
|
|
330803
|
+
"recording-degraded",
|
|
329655
330804
|
...ALARM
|
|
329656
330805
|
];
|
|
329657
330806
|
var SUMMARISABLE = [...systemEventKindsOfFamily("device-events"), ...systemEventKindsOfFamily("system")];
|
|
@@ -330138,7 +331287,10 @@ ${recipe.triggers.map((t, i) => emitTrigger(t, i)).join("\n\n")}
|
|
|
330138
331287
|
"addon-crash-loop",
|
|
330139
331288
|
...UPDATES,
|
|
330140
331289
|
"addon-updated",
|
|
330141
|
-
"server-updated"
|
|
331290
|
+
"server-updated",
|
|
331291
|
+
"storage-location-low",
|
|
331292
|
+
"storage-location-critical",
|
|
331293
|
+
"storage-location-ok"
|
|
330142
331294
|
]
|
|
330143
331295
|
},
|
|
330144
331296
|
{
|
|
@@ -330157,7 +331309,10 @@ ${recipe.triggers.map((t, i) => emitTrigger(t, i)).join("\n\n")}
|
|
|
330157
331309
|
"node-inference-unavailable",
|
|
330158
331310
|
"addon-crash-loop",
|
|
330159
331311
|
...UPDATES,
|
|
330160
|
-
"server-updated"
|
|
331312
|
+
"server-updated",
|
|
331313
|
+
"storage-location-low",
|
|
331314
|
+
"storage-location-critical",
|
|
331315
|
+
"storage-location-ok"
|
|
330161
331316
|
]
|
|
330162
331317
|
},
|
|
330163
331318
|
{
|
|
@@ -330214,7 +331369,69 @@ ${recipe.triggers.map((t, i) => emitTrigger(t, i)).join("\n\n")}
|
|
|
330214
331369
|
families: ["rule"],
|
|
330215
331370
|
fields: [...RULE_TEXT],
|
|
330216
331371
|
kinds: ["system"],
|
|
330217
|
-
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
|
+
]
|
|
330218
331435
|
},
|
|
330219
331436
|
{
|
|
330220
331437
|
name: "package",
|
|
@@ -335068,6 +336285,10 @@ ${recipe.triggers.map((t, i) => emitTrigger(t, i)).join("\n\n")}
|
|
|
335068
336285
|
exports.HF_REPO = HF_REPO;
|
|
335069
336286
|
exports.HOURS_PER_DAY = HOURS_PER_DAY;
|
|
335070
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;
|
|
335071
336292
|
exports.HUB_VIEWER_MOUNT = HUB_VIEWER_MOUNT;
|
|
335072
336293
|
exports.HWACCEL_OPTIONS = HWACCEL_OPTIONS;
|
|
335073
336294
|
exports.HardwareClassIdSchema = HardwareClassIdSchema;
|
|
@@ -335573,6 +336794,8 @@ ${recipe.triggers.map((t, i) => emitTrigger(t, i)).join("\n\n")}
|
|
|
335573
336794
|
exports.OccupancyLookAnswerSchema = OccupancyLookAnswerSchema;
|
|
335574
336795
|
exports.OccupancyLookRefusalSchema = OccupancyLookRefusalSchema;
|
|
335575
336796
|
exports.OccupancyLookRequestSchema = OccupancyLookRequestSchema;
|
|
336797
|
+
exports.OidcConnectionSchema = OidcConnectionSchema;
|
|
336798
|
+
exports.OidcConnectionUpdateInputSchema = OidcConnectionUpdateInputSchema;
|
|
335576
336799
|
exports.OnboardFieldSupportSchema = OnboardFieldSupportSchema;
|
|
335577
336800
|
exports.OnboardRecordTrackSchema = OnboardRecordTrackSchema;
|
|
335578
336801
|
exports.OnboardScheduleSupportSchema = OnboardScheduleSupportSchema;
|
|
@@ -336647,6 +337870,7 @@ ${recipe.triggers.map((t, i) => emitTrigger(t, i)).join("\n\n")}
|
|
|
336647
337870
|
exports.objectInputDeclaresAddonId = objectInputDeclaresAddonId;
|
|
336648
337871
|
exports.objectInputDeclaresRequiredDeviceId = objectInputDeclaresRequiredDeviceId;
|
|
336649
337872
|
exports.occupancyScope = occupancyScope;
|
|
337873
|
+
exports.oidcConnectionsCapability = oidcConnectionsCapability;
|
|
336650
337874
|
exports.optionalAncestors = optionalAncestors;
|
|
336651
337875
|
exports.optionalMethod = require_sleep.optionalMethod;
|
|
336652
337876
|
exports.osdCapability = osdCapability;
|
|
@@ -502882,6 +504106,56 @@ var require_share_token_service = __commonJS({
|
|
|
502882
504106
|
});
|
|
502883
504107
|
return record;
|
|
502884
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
|
+
}
|
|
502885
504159
|
/**
|
|
502886
504160
|
* Revoke (delete) a share token. Only the minting user or an admin may
|
|
502887
504161
|
* revoke. Returns `false` when the token doesn't exist; throws on a
|
|
@@ -506005,7 +507279,13 @@ var require_auth_revoke_credentials_procedures = __commonJS({
|
|
|
506005
507279
|
var hub_sessions_js_1 = require_hub_sessions();
|
|
506006
507280
|
var trpc_middleware_js_1 = require_trpc_middleware();
|
|
506007
507281
|
exports.REVOKE_CREDENTIALS_MAX = 500;
|
|
506008
|
-
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
|
+
]);
|
|
506009
507289
|
exports.RevokeSkipReasonSchema = zod_1.z.enum(["current-session", "not-active"]);
|
|
506010
507290
|
var RevokeCredentialsInputSchema = zod_1.z.object({
|
|
506011
507291
|
kind: exports.RevocableCredentialKindSchema,
|
|
@@ -506051,6 +507331,12 @@ var require_auth_revoke_credentials_procedures = __commonJS({
|
|
|
506051
507331
|
if (kind === "admin-token") {
|
|
506052
507332
|
return async (id) => await internal.adminTokens.revoke(id) ? null : "not-active";
|
|
506053
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
|
+
}
|
|
506054
507340
|
return async (id) => {
|
|
506055
507341
|
if (id === caller.sessionId)
|
|
506056
507342
|
return "current-session";
|
|
@@ -507002,6 +508288,42 @@ var require_auth_router = __commonJS({
|
|
|
507002
508288
|
});
|
|
507003
508289
|
return { id: record.id, token: token2, expiresAt: record.expiresAt };
|
|
507004
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
|
+
}),
|
|
507005
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 }) => {
|
|
507006
508328
|
assertRealUserSession(ctx.user);
|
|
507007
508329
|
const service = requireShareTokens();
|
|
@@ -507011,6 +508333,24 @@ var require_auth_router = __commonJS({
|
|
|
507011
508333
|
callerUserId: ctx.user.id,
|
|
507012
508334
|
callerIsAdmin: ctx.user.isAdmin
|
|
507013
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
|
+
}
|
|
507014
508354
|
return { success: removed };
|
|
507015
508355
|
} catch (error) {
|
|
507016
508356
|
throw new server_1.TRPCError({
|