@camstack/addon-provider-hikvision 1.2.164 → 1.2.165

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/addon.js CHANGED
@@ -5449,7 +5449,7 @@ var ZodIssueCode = {
5449
5449
  var ZodFirstPartyTypeKind;
5450
5450
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5451
5451
  //#endregion
5452
- //#region ../types/dist/sleep-CSuN0thG.mjs
5452
+ //#region ../types/dist/sleep-_sV1BE2f.mjs
5453
5453
  /**
5454
5454
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5455
5455
  * window to float samples (D455).
@@ -5566,7 +5566,7 @@ function isKeychainStoredField(field) {
5566
5566
  var SECRET_CLEAR = { $secretClear: true };
5567
5567
  /** The `'***'` token D634 redaction writes for non-admins. */
5568
5568
  var LEGACY_DEVICE_REDACTION = "***";
5569
- function isRecord$5(value) {
5569
+ function isRecord$6(value) {
5570
5570
  return typeof value === "object" && value !== null && !Array.isArray(value);
5571
5571
  }
5572
5572
  function makeSecretMarker(ref) {
@@ -5577,12 +5577,12 @@ function makeSecretMarker(ref) {
5577
5577
  }
5578
5578
  /** A stored marker: an object whose `$secret` is a non-empty string. */
5579
5579
  function isSecretMarker(value) {
5580
- if (!isRecord$5(value)) return false;
5580
+ if (!isRecord$6(value)) return false;
5581
5581
  const ref = value["$secret"];
5582
5582
  return typeof ref === "string" && ref.length > 0;
5583
5583
  }
5584
5584
  function isSecretClear(value) {
5585
- return isRecord$5(value) && value["$secretClear"] === true;
5585
+ return isRecord$6(value) && value["$secretClear"] === true;
5586
5586
  }
5587
5587
  /**
5588
5588
  * The UI view of a stored secret field value: a marker becomes "set", inline
@@ -6192,7 +6192,7 @@ var KeychainWriteRefusedError = class extends Error {
6192
6192
  }
6193
6193
  };
6194
6194
  var KEEP = { kind: "keep" };
6195
- function isRecord$4(value) {
6195
+ function isRecord$5(value) {
6196
6196
  return typeof value === "object" && value !== null && !Array.isArray(value);
6197
6197
  }
6198
6198
  function defaultMintId() {
@@ -6205,7 +6205,7 @@ function collectSecretMarkerRefs(value, out = []) {
6205
6205
  return out;
6206
6206
  }
6207
6207
  if (Array.isArray(value)) for (const item of value) collectSecretMarkerRefs(item, out);
6208
- else if (isRecord$4(value)) for (const child of Object.values(value)) collectSecretMarkerRefs(child, out);
6208
+ else if (isRecord$5(value)) for (const child of Object.values(value)) collectSecretMarkerRefs(child, out);
6209
6209
  return out;
6210
6210
  }
6211
6211
  async function storedValueEquals(secrets, marker, candidate) {
@@ -6260,7 +6260,7 @@ function rowId(row, idKey) {
6260
6260
  return null;
6261
6261
  }
6262
6262
  async function writeArray(ctx, node, incoming, stored, fieldPath) {
6263
- const storedRows = Array.isArray(stored) ? stored.filter(isRecord$4) : [];
6263
+ const storedRows = Array.isArray(stored) ? stored.filter(isRecord$5) : [];
6264
6264
  if (!Array.isArray(incoming)) {
6265
6265
  ctx.deletes.push(...collectSecretMarkerRefs(storedRows));
6266
6266
  return {
@@ -6276,7 +6276,7 @@ async function writeArray(ctx, node, incoming, stored, fieldPath) {
6276
6276
  const kept = /* @__PURE__ */ new Set();
6277
6277
  const rows = [];
6278
6278
  for (const row of incoming) {
6279
- if (!isRecord$4(row)) {
6279
+ if (!isRecord$5(row)) {
6280
6280
  rows.push(row);
6281
6281
  continue;
6282
6282
  }
@@ -6301,7 +6301,7 @@ async function writeNode(ctx, node, incoming, stored, fieldPath) {
6301
6301
  case "leaf": return writeLeaf(ctx, incoming, stored, fieldPath);
6302
6302
  case "array": return writeArray(ctx, node, incoming, stored, fieldPath);
6303
6303
  case "object": {
6304
- if (!isRecord$4(incoming)) {
6304
+ if (!isRecord$5(incoming)) {
6305
6305
  if (incoming === void 0) return KEEP;
6306
6306
  ctx.deletes.push(...collectSecretMarkerRefs(stored));
6307
6307
  return {
@@ -6309,7 +6309,7 @@ async function writeNode(ctx, node, incoming, stored, fieldPath) {
6309
6309
  value: incoming
6310
6310
  };
6311
6311
  }
6312
- const storedObj = isRecord$4(stored) ? stored : {};
6312
+ const storedObj = isRecord$5(stored) ? stored : {};
6313
6313
  return {
6314
6314
  kind: "value",
6315
6315
  value: await writeMembers(ctx, node.children, incoming, storedObj, (m) => `${fieldPath}.${m}`)
@@ -6432,7 +6432,7 @@ async function resolveSecretMarkers(value, secrets, options = {}) {
6432
6432
  value: items
6433
6433
  };
6434
6434
  }
6435
- if (isRecord$4(v)) {
6435
+ if (isRecord$5(v)) {
6436
6436
  const out = {};
6437
6437
  for (const [k, child] of Object.entries(v)) {
6438
6438
  const s = substitute(child);
@@ -6464,7 +6464,7 @@ var SecretOverwriteRefusedError = class extends Error {
6464
6464
  this.name = "SecretOverwriteRefusedError";
6465
6465
  }
6466
6466
  };
6467
- function isRecord$3(value) {
6467
+ function isRecord$4(value) {
6468
6468
  return typeof value === "object" && value !== null && !Array.isArray(value);
6469
6469
  }
6470
6470
  function resolvedValue(pass, marker) {
@@ -6493,7 +6493,7 @@ function inArray(pass, incoming, stored) {
6493
6493
  return incoming.map((item, index) => {
6494
6494
  const twin = stored[index];
6495
6495
  if (isSecretMarker(twin)) return typeof item === "string" && item === resolvedValue(pass, twin) ? twin : item;
6496
- if (isRecord$3(item) && isRecord$3(twin)) return inArrayRow(pass, item, twin);
6496
+ if (isRecord$4(item) && isRecord$4(twin)) return inArrayRow(pass, item, twin);
6497
6497
  if (Array.isArray(item) && Array.isArray(twin)) return inArray(pass, item, twin);
6498
6498
  return item;
6499
6499
  });
@@ -6504,7 +6504,7 @@ function inArrayRow(pass, incoming, stored) {
6504
6504
  const twin = stored[key];
6505
6505
  if (isSecretMarker(twin)) {
6506
6506
  if (typeof value === "string" && value === resolvedValue(pass, twin)) out[key] = twin;
6507
- } else if (isRecord$3(value) && isRecord$3(twin)) out[key] = inArrayRow(pass, value, twin);
6507
+ } else if (isRecord$4(value) && isRecord$4(twin)) out[key] = inArrayRow(pass, value, twin);
6508
6508
  else if (Array.isArray(value) && Array.isArray(twin)) out[key] = inArray(pass, value, twin);
6509
6509
  }
6510
6510
  return out;
@@ -6512,7 +6512,7 @@ function inArrayRow(pass, incoming, stored) {
6512
6512
  async function walk(pass, incoming, stored) {
6513
6513
  if (isSecretMarker(stored)) return atMarker(pass, incoming, stored);
6514
6514
  if (Array.isArray(incoming) && Array.isArray(stored)) return inArray(pass, incoming, stored);
6515
- if (!isRecord$3(incoming) || !isRecord$3(stored)) return incoming;
6515
+ if (!isRecord$4(incoming) || !isRecord$4(stored)) return incoming;
6516
6516
  const out = { ...incoming };
6517
6517
  for (const [key, value] of Object.entries(incoming)) out[key] = await walk(pass, value, stored[key]);
6518
6518
  return out;
@@ -6543,7 +6543,7 @@ async function restoreUnchangedSecrets(input) {
6543
6543
  function isJsonEqual(a, b) {
6544
6544
  if (Object.is(a, b)) return true;
6545
6545
  if (Array.isArray(a)) return Array.isArray(b) && a.length === b.length && a.every((v, i) => isJsonEqual(v, b[i]));
6546
- if (isRecord$3(a) && isRecord$3(b)) {
6546
+ if (isRecord$4(a) && isRecord$4(b)) {
6547
6547
  const keys = Object.keys(a);
6548
6548
  if (keys.length !== Object.keys(b).length) return false;
6549
6549
  return keys.every((k) => Object.prototype.hasOwnProperty.call(b, k) && isJsonEqual(a[k], b[k]));
@@ -6567,7 +6567,7 @@ function markerKeysOf(blob, owner) {
6567
6567
  }
6568
6568
  function nodeFromStored(value, owner) {
6569
6569
  if (isSecretMarker(value)) return isSecretRefOwnedBy(value.$secret, owner) ? { kind: "leaf" } : null;
6570
- if (!isRecord$3(value)) return null;
6570
+ if (!isRecord$4(value)) return null;
6571
6571
  const children = /* @__PURE__ */ new Map();
6572
6572
  for (const [key, child] of Object.entries(value)) {
6573
6573
  const node = nodeFromStored(child, owner);
package/dist/addon.mjs CHANGED
@@ -5428,7 +5428,7 @@ var ZodIssueCode = {
5428
5428
  var ZodFirstPartyTypeKind;
5429
5429
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5430
5430
  //#endregion
5431
- //#region ../types/dist/sleep-CSuN0thG.mjs
5431
+ //#region ../types/dist/sleep-_sV1BE2f.mjs
5432
5432
  /**
5433
5433
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5434
5434
  * window to float samples (D455).
@@ -5545,7 +5545,7 @@ function isKeychainStoredField(field) {
5545
5545
  var SECRET_CLEAR = { $secretClear: true };
5546
5546
  /** The `'***'` token D634 redaction writes for non-admins. */
5547
5547
  var LEGACY_DEVICE_REDACTION = "***";
5548
- function isRecord$5(value) {
5548
+ function isRecord$6(value) {
5549
5549
  return typeof value === "object" && value !== null && !Array.isArray(value);
5550
5550
  }
5551
5551
  function makeSecretMarker(ref) {
@@ -5556,12 +5556,12 @@ function makeSecretMarker(ref) {
5556
5556
  }
5557
5557
  /** A stored marker: an object whose `$secret` is a non-empty string. */
5558
5558
  function isSecretMarker(value) {
5559
- if (!isRecord$5(value)) return false;
5559
+ if (!isRecord$6(value)) return false;
5560
5560
  const ref = value["$secret"];
5561
5561
  return typeof ref === "string" && ref.length > 0;
5562
5562
  }
5563
5563
  function isSecretClear(value) {
5564
- return isRecord$5(value) && value["$secretClear"] === true;
5564
+ return isRecord$6(value) && value["$secretClear"] === true;
5565
5565
  }
5566
5566
  /**
5567
5567
  * The UI view of a stored secret field value: a marker becomes "set", inline
@@ -6171,7 +6171,7 @@ var KeychainWriteRefusedError = class extends Error {
6171
6171
  }
6172
6172
  };
6173
6173
  var KEEP = { kind: "keep" };
6174
- function isRecord$4(value) {
6174
+ function isRecord$5(value) {
6175
6175
  return typeof value === "object" && value !== null && !Array.isArray(value);
6176
6176
  }
6177
6177
  function defaultMintId() {
@@ -6184,7 +6184,7 @@ function collectSecretMarkerRefs(value, out = []) {
6184
6184
  return out;
6185
6185
  }
6186
6186
  if (Array.isArray(value)) for (const item of value) collectSecretMarkerRefs(item, out);
6187
- else if (isRecord$4(value)) for (const child of Object.values(value)) collectSecretMarkerRefs(child, out);
6187
+ else if (isRecord$5(value)) for (const child of Object.values(value)) collectSecretMarkerRefs(child, out);
6188
6188
  return out;
6189
6189
  }
6190
6190
  async function storedValueEquals(secrets, marker, candidate) {
@@ -6239,7 +6239,7 @@ function rowId(row, idKey) {
6239
6239
  return null;
6240
6240
  }
6241
6241
  async function writeArray(ctx, node, incoming, stored, fieldPath) {
6242
- const storedRows = Array.isArray(stored) ? stored.filter(isRecord$4) : [];
6242
+ const storedRows = Array.isArray(stored) ? stored.filter(isRecord$5) : [];
6243
6243
  if (!Array.isArray(incoming)) {
6244
6244
  ctx.deletes.push(...collectSecretMarkerRefs(storedRows));
6245
6245
  return {
@@ -6255,7 +6255,7 @@ async function writeArray(ctx, node, incoming, stored, fieldPath) {
6255
6255
  const kept = /* @__PURE__ */ new Set();
6256
6256
  const rows = [];
6257
6257
  for (const row of incoming) {
6258
- if (!isRecord$4(row)) {
6258
+ if (!isRecord$5(row)) {
6259
6259
  rows.push(row);
6260
6260
  continue;
6261
6261
  }
@@ -6280,7 +6280,7 @@ async function writeNode(ctx, node, incoming, stored, fieldPath) {
6280
6280
  case "leaf": return writeLeaf(ctx, incoming, stored, fieldPath);
6281
6281
  case "array": return writeArray(ctx, node, incoming, stored, fieldPath);
6282
6282
  case "object": {
6283
- if (!isRecord$4(incoming)) {
6283
+ if (!isRecord$5(incoming)) {
6284
6284
  if (incoming === void 0) return KEEP;
6285
6285
  ctx.deletes.push(...collectSecretMarkerRefs(stored));
6286
6286
  return {
@@ -6288,7 +6288,7 @@ async function writeNode(ctx, node, incoming, stored, fieldPath) {
6288
6288
  value: incoming
6289
6289
  };
6290
6290
  }
6291
- const storedObj = isRecord$4(stored) ? stored : {};
6291
+ const storedObj = isRecord$5(stored) ? stored : {};
6292
6292
  return {
6293
6293
  kind: "value",
6294
6294
  value: await writeMembers(ctx, node.children, incoming, storedObj, (m) => `${fieldPath}.${m}`)
@@ -6411,7 +6411,7 @@ async function resolveSecretMarkers(value, secrets, options = {}) {
6411
6411
  value: items
6412
6412
  };
6413
6413
  }
6414
- if (isRecord$4(v)) {
6414
+ if (isRecord$5(v)) {
6415
6415
  const out = {};
6416
6416
  for (const [k, child] of Object.entries(v)) {
6417
6417
  const s = substitute(child);
@@ -6443,7 +6443,7 @@ var SecretOverwriteRefusedError = class extends Error {
6443
6443
  this.name = "SecretOverwriteRefusedError";
6444
6444
  }
6445
6445
  };
6446
- function isRecord$3(value) {
6446
+ function isRecord$4(value) {
6447
6447
  return typeof value === "object" && value !== null && !Array.isArray(value);
6448
6448
  }
6449
6449
  function resolvedValue(pass, marker) {
@@ -6472,7 +6472,7 @@ function inArray(pass, incoming, stored) {
6472
6472
  return incoming.map((item, index) => {
6473
6473
  const twin = stored[index];
6474
6474
  if (isSecretMarker(twin)) return typeof item === "string" && item === resolvedValue(pass, twin) ? twin : item;
6475
- if (isRecord$3(item) && isRecord$3(twin)) return inArrayRow(pass, item, twin);
6475
+ if (isRecord$4(item) && isRecord$4(twin)) return inArrayRow(pass, item, twin);
6476
6476
  if (Array.isArray(item) && Array.isArray(twin)) return inArray(pass, item, twin);
6477
6477
  return item;
6478
6478
  });
@@ -6483,7 +6483,7 @@ function inArrayRow(pass, incoming, stored) {
6483
6483
  const twin = stored[key];
6484
6484
  if (isSecretMarker(twin)) {
6485
6485
  if (typeof value === "string" && value === resolvedValue(pass, twin)) out[key] = twin;
6486
- } else if (isRecord$3(value) && isRecord$3(twin)) out[key] = inArrayRow(pass, value, twin);
6486
+ } else if (isRecord$4(value) && isRecord$4(twin)) out[key] = inArrayRow(pass, value, twin);
6487
6487
  else if (Array.isArray(value) && Array.isArray(twin)) out[key] = inArray(pass, value, twin);
6488
6488
  }
6489
6489
  return out;
@@ -6491,7 +6491,7 @@ function inArrayRow(pass, incoming, stored) {
6491
6491
  async function walk(pass, incoming, stored) {
6492
6492
  if (isSecretMarker(stored)) return atMarker(pass, incoming, stored);
6493
6493
  if (Array.isArray(incoming) && Array.isArray(stored)) return inArray(pass, incoming, stored);
6494
- if (!isRecord$3(incoming) || !isRecord$3(stored)) return incoming;
6494
+ if (!isRecord$4(incoming) || !isRecord$4(stored)) return incoming;
6495
6495
  const out = { ...incoming };
6496
6496
  for (const [key, value] of Object.entries(incoming)) out[key] = await walk(pass, value, stored[key]);
6497
6497
  return out;
@@ -6522,7 +6522,7 @@ async function restoreUnchangedSecrets(input) {
6522
6522
  function isJsonEqual(a, b) {
6523
6523
  if (Object.is(a, b)) return true;
6524
6524
  if (Array.isArray(a)) return Array.isArray(b) && a.length === b.length && a.every((v, i) => isJsonEqual(v, b[i]));
6525
- if (isRecord$3(a) && isRecord$3(b)) {
6525
+ if (isRecord$4(a) && isRecord$4(b)) {
6526
6526
  const keys = Object.keys(a);
6527
6527
  if (keys.length !== Object.keys(b).length) return false;
6528
6528
  return keys.every((k) => Object.prototype.hasOwnProperty.call(b, k) && isJsonEqual(a[k], b[k]));
@@ -6546,7 +6546,7 @@ function markerKeysOf(blob, owner) {
6546
6546
  }
6547
6547
  function nodeFromStored(value, owner) {
6548
6548
  if (isSecretMarker(value)) return isSecretRefOwnedBy(value.$secret, owner) ? { kind: "leaf" } : null;
6549
- if (!isRecord$3(value)) return null;
6549
+ if (!isRecord$4(value)) return null;
6550
6550
  const children = /* @__PURE__ */ new Map();
6551
6551
  for (const [key, child] of Object.entries(value)) {
6552
6552
  const node = nodeFromStored(child, owner);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-provider-hikvision",
3
- "version": "1.2.164",
3
+ "version": "1.2.165",
4
4
  "description": "Hikvision camera device provider addon for CamStack — ISAPI over HTTP(S) with digest auth (snapshot, alarm stream, RTSP discovery)",
5
5
  "keywords": [
6
6
  "camstack",