@opencloud-eu/web-client 7.0.0 → 7.0.1

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.
@@ -1,5 +1,5 @@
1
- import { t as e } from "./dist-CSYfvE5O.js";
2
- import { a as t, n, s as r, t as i, u as a } from "./toString-9BJo4tor.js";
1
+ import { t as e } from "./dist-D0YulRs6.js";
2
+ import { a as t, n, s as r, t as i, u as a } from "./toString-DkamdJp-.js";
3
3
  //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_isKey.js
4
4
  var o = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, s = /^\w*$/;
5
5
  function c(e, n) {
@@ -419,13 +419,13 @@ function Fe(e, t) {
419
419
  }
420
420
  return n;
421
421
  }
422
- var I = function(e) {
422
+ var Ie = function(e) {
423
423
  return Pe.exec(e) != null;
424
424
  };
425
- function Ie(e) {
425
+ function Le(e) {
426
426
  return e !== void 0;
427
427
  }
428
- var L = [
428
+ var I = [
429
429
  "hasOwnProperty",
430
430
  "toString",
431
431
  "valueOf",
@@ -433,94 +433,94 @@ var L = [
433
433
  "__defineSetter__",
434
434
  "__lookupGetter__",
435
435
  "__lookupSetter__"
436
- ], Le = [
436
+ ], Re = [
437
437
  "__proto__",
438
438
  "constructor",
439
439
  "prototype"
440
- ], Re = {
440
+ ], ze = {
441
441
  allowBooleanAttributes: !1,
442
442
  unpairedTags: []
443
443
  };
444
- function ze(e, t) {
445
- t = Object.assign({}, Re, t);
444
+ function Be(e, t) {
445
+ t = Object.assign({}, ze, t);
446
446
  let n = [], r = !1, i = !1;
447
447
  e[0] === "" && (e = e.substr(1));
448
448
  for (let a = 0; a < e.length; a++) if (e[a] === "<" && e[a + 1] === "?") {
449
- if (a += 2, a = Ve(e, a), a.err) return a;
449
+ if (a += 2, a = He(e, a), a.err) return a;
450
450
  } else if (e[a] === "<") {
451
451
  let o = a;
452
452
  if (a++, e[a] === "!") {
453
- a = He(e, a);
453
+ a = Ue(e, a);
454
454
  continue;
455
455
  } else {
456
456
  let s = !1;
457
457
  e[a] === "/" && (s = !0, a++);
458
458
  let c = "";
459
459
  for (; a < e.length && e[a] !== ">" && e[a] !== " " && e[a] !== " " && e[a] !== "\n" && e[a] !== "\r"; a++) c += e[a];
460
- if (c = c.trim(), c[c.length - 1] === "/" && (c = c.substring(0, c.length - 1), a--), !Ze(c)) {
460
+ if (c = c.trim(), c[c.length - 1] === "/" && (c = c.substring(0, c.length - 1), a--), !Qe(c)) {
461
461
  let t;
462
- return t = c.trim().length === 0 ? "Invalid space after '<'." : "Tag '" + c + "' is an invalid name.", R("InvalidTag", t, z(e, a));
462
+ return t = c.trim().length === 0 ? "Invalid space after '<'." : "Tag '" + c + "' is an invalid name.", L("InvalidTag", t, R(e, a));
463
463
  }
464
- let l = Ge(e, a);
465
- if (l === !1) return R("InvalidAttr", "Attributes for '" + c + "' have open quote.", z(e, a));
464
+ let l = Ke(e, a);
465
+ if (l === !1) return L("InvalidAttr", "Attributes for '" + c + "' have open quote.", R(e, a));
466
466
  let u = l.value;
467
467
  if (a = l.index, u[u.length - 1] === "/") {
468
468
  let n = a - u.length;
469
469
  u = u.substring(0, u.length - 1);
470
- let i = qe(u, t);
470
+ let i = Je(u, t);
471
471
  if (i === !0) r = !0;
472
- else return R(i.err.code, i.err.msg, z(e, n + i.err.line));
472
+ else return L(i.err.code, i.err.msg, R(e, n + i.err.line));
473
473
  } else if (s) {
474
- if (!l.tagClosed) return R("InvalidTag", "Closing tag '" + c + "' doesn't have proper closing.", z(e, a));
475
- if (u.trim().length > 0) return R("InvalidTag", "Closing tag '" + c + "' can't have attributes or invalid starting.", z(e, o));
476
- if (n.length === 0) return R("InvalidTag", "Closing tag '" + c + "' has not been opened.", z(e, o));
474
+ if (!l.tagClosed) return L("InvalidTag", "Closing tag '" + c + "' doesn't have proper closing.", R(e, a));
475
+ if (u.trim().length > 0) return L("InvalidTag", "Closing tag '" + c + "' can't have attributes or invalid starting.", R(e, o));
476
+ if (n.length === 0) return L("InvalidTag", "Closing tag '" + c + "' has not been opened.", R(e, o));
477
477
  {
478
478
  let t = n.pop();
479
479
  if (c !== t.tagName) {
480
- let n = z(e, t.tagStartPos);
481
- return R("InvalidTag", "Expected closing tag '" + t.tagName + "' (opened in line " + n.line + ", col " + n.col + ") instead of closing tag '" + c + "'.", z(e, o));
480
+ let n = R(e, t.tagStartPos);
481
+ return L("InvalidTag", "Expected closing tag '" + t.tagName + "' (opened in line " + n.line + ", col " + n.col + ") instead of closing tag '" + c + "'.", R(e, o));
482
482
  }
483
483
  n.length == 0 && (i = !0);
484
484
  }
485
485
  } else {
486
- let s = qe(u, t);
487
- if (s !== !0) return R(s.err.code, s.err.msg, z(e, a - u.length + s.err.line));
488
- if (i === !0) return R("InvalidXml", "Multiple possible root nodes found.", z(e, a));
486
+ let s = Je(u, t);
487
+ if (s !== !0) return L(s.err.code, s.err.msg, R(e, a - u.length + s.err.line));
488
+ if (i === !0) return L("InvalidXml", "Multiple possible root nodes found.", R(e, a));
489
489
  t.unpairedTags.indexOf(c) !== -1 || n.push({
490
490
  tagName: c,
491
491
  tagStartPos: o
492
492
  }), r = !0;
493
493
  }
494
494
  for (a++; a < e.length; a++) if (e[a] === "<") if (e[a + 1] === "!") {
495
- a++, a = He(e, a);
495
+ a++, a = Ue(e, a);
496
496
  continue;
497
497
  } else if (e[a + 1] === "?") {
498
- if (a = Ve(e, ++a), a.err) return a;
498
+ if (a = He(e, ++a), a.err) return a;
499
499
  } else break;
500
500
  else if (e[a] === "&") {
501
- let t = Ye(e, a);
502
- if (t == -1) return R("InvalidChar", "char '&' is not expected.", z(e, a));
501
+ let t = Xe(e, a);
502
+ if (t == -1) return L("InvalidChar", "char '&' is not expected.", R(e, a));
503
503
  a = t;
504
- } else if (i === !0 && !Be(e[a])) return R("InvalidXml", "Extra text at the end", z(e, a));
504
+ } else if (i === !0 && !Ve(e[a])) return L("InvalidXml", "Extra text at the end", R(e, a));
505
505
  e[a] === "<" && a--;
506
506
  }
507
507
  } else {
508
- if (Be(e[a])) continue;
509
- return R("InvalidChar", "char '" + e[a] + "' is not expected.", z(e, a));
508
+ if (Ve(e[a])) continue;
509
+ return L("InvalidChar", "char '" + e[a] + "' is not expected.", R(e, a));
510
510
  }
511
- return r ? n.length == 1 ? R("InvalidTag", "Unclosed tag '" + n[0].tagName + "'.", z(e, n[0].tagStartPos)) : n.length > 0 ? R("InvalidXml", "Invalid '" + JSON.stringify(n.map((e) => e.tagName), null, 4).replace(/\r?\n/g, "") + "' found.", {
511
+ return r ? n.length == 1 ? L("InvalidTag", "Unclosed tag '" + n[0].tagName + "'.", R(e, n[0].tagStartPos)) : n.length > 0 ? L("InvalidXml", "Invalid '" + JSON.stringify(n.map((e) => e.tagName), null, 4).replace(/\r?\n/g, "") + "' found.", {
512
512
  line: 1,
513
513
  col: 1
514
- }) : !0 : R("InvalidXml", "Start tag expected.", 1);
514
+ }) : !0 : L("InvalidXml", "Start tag expected.", 1);
515
515
  }
516
- function Be(e) {
516
+ function Ve(e) {
517
517
  return e === " " || e === " " || e === "\n" || e === "\r";
518
518
  }
519
- function Ve(e, t) {
519
+ function He(e, t) {
520
520
  let n = t;
521
521
  for (; t < e.length; t++) if (e[t] == "?" || e[t] == " ") {
522
522
  let r = e.substr(n, t - n);
523
- if (t > 5 && r === "xml") return R("InvalidXml", "XML declaration allowed only at the start of the document.", z(e, t));
523
+ if (t > 5 && r === "xml") return L("InvalidXml", "XML declaration allowed only at the start of the document.", R(e, t));
524
524
  if (e[t] == "?" && e[t + 1] == ">") {
525
525
  t++;
526
526
  break;
@@ -528,7 +528,7 @@ function Ve(e, t) {
528
528
  }
529
529
  return t;
530
530
  }
531
- function He(e, t) {
531
+ function Ue(e, t) {
532
532
  if (e.length > t + 5 && e[t + 1] === "-" && e[t + 2] === "-") {
533
533
  for (t += 3; t < e.length; t++) if (e[t] === "-" && e[t + 1] === "-" && e[t + 2] === ">") {
534
534
  t += 2;
@@ -546,11 +546,11 @@ function He(e, t) {
546
546
  }
547
547
  return t;
548
548
  }
549
- var Ue = "\"", We = "'";
550
- function Ge(e, t) {
549
+ var We = "\"", Ge = "'";
550
+ function Ke(e, t) {
551
551
  let n = "", r = "", i = !1;
552
552
  for (; t < e.length; t++) {
553
- if (e[t] === Ue || e[t] === We) r === "" ? r = e[t] : r !== e[t] || (r = "");
553
+ if (e[t] === We || e[t] === Ge) r === "" ? r = e[t] : r !== e[t] || (r = "");
554
554
  else if (e[t] === ">" && r === "") {
555
555
  i = !0;
556
556
  break;
@@ -563,21 +563,21 @@ function Ge(e, t) {
563
563
  tagClosed: i
564
564
  } : !1;
565
565
  }
566
- var Ke = /* @__PURE__ */ RegExp("(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['\"])(([\\s\\S])*?)\\5)?", "g");
567
- function qe(e, t) {
568
- let n = Fe(e, Ke), r = {};
566
+ var qe = /* @__PURE__ */ RegExp("(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['\"])(([\\s\\S])*?)\\5)?", "g");
567
+ function Je(e, t) {
568
+ let n = Fe(e, qe), r = {};
569
569
  for (let e = 0; e < n.length; e++) {
570
- if (n[e][1].length === 0) return R("InvalidAttr", "Attribute '" + n[e][2] + "' has no space in starting.", B(n[e]));
571
- if (n[e][3] !== void 0 && n[e][4] === void 0) return R("InvalidAttr", "Attribute '" + n[e][2] + "' is without value.", B(n[e]));
572
- if (n[e][3] === void 0 && !t.allowBooleanAttributes) return R("InvalidAttr", "boolean attribute '" + n[e][2] + "' is not allowed.", B(n[e]));
570
+ if (n[e][1].length === 0) return L("InvalidAttr", "Attribute '" + n[e][2] + "' has no space in starting.", z(n[e]));
571
+ if (n[e][3] !== void 0 && n[e][4] === void 0) return L("InvalidAttr", "Attribute '" + n[e][2] + "' is without value.", z(n[e]));
572
+ if (n[e][3] === void 0 && !t.allowBooleanAttributes) return L("InvalidAttr", "boolean attribute '" + n[e][2] + "' is not allowed.", z(n[e]));
573
573
  let i = n[e][2];
574
- if (!Xe(i)) return R("InvalidAttr", "Attribute '" + i + "' is an invalid name.", B(n[e]));
574
+ if (!Ze(i)) return L("InvalidAttr", "Attribute '" + i + "' is an invalid name.", z(n[e]));
575
575
  if (!Object.prototype.hasOwnProperty.call(r, i)) r[i] = 1;
576
- else return R("InvalidAttr", "Attribute '" + i + "' is repeated.", B(n[e]));
576
+ else return L("InvalidAttr", "Attribute '" + i + "' is repeated.", z(n[e]));
577
577
  }
578
578
  return !0;
579
579
  }
580
- function Je(e, t) {
580
+ function Ye(e, t) {
581
581
  let n = /\d/;
582
582
  for (e[t] === "x" && (t++, n = /[\da-fA-F]/); t < e.length; t++) {
583
583
  if (e[t] === ";") return t;
@@ -585,9 +585,9 @@ function Je(e, t) {
585
585
  }
586
586
  return -1;
587
587
  }
588
- function Ye(e, t) {
588
+ function Xe(e, t) {
589
589
  if (t++, e[t] === ";") return -1;
590
- if (e[t] === "#") return t++, Je(e, t);
590
+ if (e[t] === "#") return t++, Ye(e, t);
591
591
  let n = 0;
592
592
  for (; t < e.length; t++, n++) if (!(e[t].match(/\w/) && n < 20)) {
593
593
  if (e[t] === ";") break;
@@ -595,7 +595,7 @@ function Ye(e, t) {
595
595
  }
596
596
  return t;
597
597
  }
598
- function R(e, t, n) {
598
+ function L(e, t, n) {
599
599
  return { err: {
600
600
  code: e,
601
601
  msg: t,
@@ -603,25 +603,25 @@ function R(e, t, n) {
603
603
  col: n.col
604
604
  } };
605
605
  }
606
- function Xe(e) {
607
- return I(e);
608
- }
609
606
  function Ze(e) {
610
- return I(e);
607
+ return Ie(e);
608
+ }
609
+ function Qe(e) {
610
+ return Ie(e);
611
611
  }
612
- function z(e, t) {
612
+ function R(e, t) {
613
613
  let n = e.substring(0, t).split(/\r?\n/);
614
614
  return {
615
615
  line: n.length,
616
616
  col: n[n.length - 1].length + 1
617
617
  };
618
618
  }
619
- function B(e) {
619
+ function z(e) {
620
620
  return e.startIndex + e[1].length;
621
621
  }
622
622
  //#endregion
623
623
  //#region ../../node_modules/.pnpm/@nodable+entities@2.1.0/node_modules/@nodable/entities/src/entities.js
624
- var Qe = {
624
+ var $e = {
625
625
  amp: "&",
626
626
  AMP: "&",
627
627
  lt: "<",
@@ -700,7 +700,7 @@ var Qe = {
700
700
  times: "×",
701
701
  div: "÷",
702
702
  divide: "÷"
703
- }, $e = {
703
+ }, et = {
704
704
  Agrave: "À",
705
705
  agrave: "à",
706
706
  Aacute: "Á",
@@ -764,7 +764,7 @@ var Qe = {
764
764
  szlig: "ß",
765
765
  yuml: "ÿ",
766
766
  Yuml: "Ÿ"
767
- }, et = {
767
+ }, tt = {
768
768
  Amacr: "Ā",
769
769
  amacr: "ā",
770
770
  Abreve: "Ă",
@@ -882,7 +882,7 @@ var Qe = {
882
882
  zdot: "ż",
883
883
  Zcaron: "Ž",
884
884
  zcaron: "ž"
885
- }, tt = {
885
+ }, nt = {
886
886
  Alpha: "Α",
887
887
  alpha: "α",
888
888
  Beta: "Β",
@@ -953,7 +953,7 @@ var Qe = {
953
953
  Gammad: "Ϝ",
954
954
  gammad: "ϝ",
955
955
  digamma: "ϝ"
956
- }, nt = {
956
+ }, rt = {
957
957
  Afr: "𝔄",
958
958
  afr: "𝔞",
959
959
  Acy: "А",
@@ -1048,7 +1048,7 @@ var Qe = {
1048
1048
  ubrcy: "ў",
1049
1049
  DZcy: "Џ",
1050
1050
  dzcy: "џ"
1051
- }, rt = {
1051
+ }, it = {
1052
1052
  plus: "+",
1053
1053
  minus: "−",
1054
1054
  mnplus: "∓",
@@ -1137,7 +1137,7 @@ var Qe = {
1137
1137
  lesseqqgtr: "⪋",
1138
1138
  greater: ">",
1139
1139
  less: "<"
1140
- }, it = {
1140
+ }, at = {
1141
1141
  alefsym: "ℵ",
1142
1142
  aleph: "ℵ",
1143
1143
  beth: "ℶ",
@@ -1259,7 +1259,7 @@ var Qe = {
1259
1259
  npr: "⊀",
1260
1260
  nsucc: "⊁",
1261
1261
  nsc: "⊁"
1262
- }, at = {
1262
+ }, ot = {
1263
1263
  larr: "←",
1264
1264
  leftarrow: "←",
1265
1265
  LeftArrow: "←",
@@ -1416,7 +1416,7 @@ var Qe = {
1416
1416
  LeftArrowBar: "⇤",
1417
1417
  rarrb: "⇥",
1418
1418
  RightArrowBar: "⇥"
1419
- }, ot = {
1419
+ }, st = {
1420
1420
  square: "□",
1421
1421
  Square: "□",
1422
1422
  squ: "□",
@@ -1509,7 +1509,7 @@ var Qe = {
1509
1509
  boxvH: "╪",
1510
1510
  boxVh: "╫",
1511
1511
  boxVH: "╬"
1512
- }, st = {
1512
+ }, ct = {
1513
1513
  excl: "!",
1514
1514
  iexcl: "¡",
1515
1515
  brvbar: "¦",
@@ -1561,7 +1561,7 @@ var Qe = {
1561
1561
  DiacriticalDoubleAcute: "˝",
1562
1562
  grave: "`",
1563
1563
  acute: "´"
1564
- }, ct = {
1564
+ }, lt = {
1565
1565
  cent: "¢",
1566
1566
  pound: "£",
1567
1567
  curren: "¤",
@@ -1578,7 +1578,7 @@ var Qe = {
1578
1578
  won: "₩",
1579
1579
  yuan: "¥",
1580
1580
  cedil: "¸"
1581
- }, lt = {
1581
+ }, ut = {
1582
1582
  frac12: "½",
1583
1583
  half: "½",
1584
1584
  frac13: "⅓",
@@ -1596,7 +1596,7 @@ var Qe = {
1596
1596
  frac58: "⅝",
1597
1597
  frac78: "⅞",
1598
1598
  frasl: "⁄"
1599
- }, ut = {
1599
+ }, dt = {
1600
1600
  trade: "™",
1601
1601
  TRADE: "™",
1602
1602
  telrec: "⌕",
@@ -1664,7 +1664,6 @@ var Qe = {
1664
1664
  nVDash: "⊯"
1665
1665
  };
1666
1666
  ({
1667
- ...Qe,
1668
1667
  ...$e,
1669
1668
  ...et,
1670
1669
  ...tt,
@@ -1676,15 +1675,16 @@ var Qe = {
1676
1675
  ...st,
1677
1676
  ...ct,
1678
1677
  ...lt,
1679
- ...ut
1678
+ ...ut,
1679
+ ...dt
1680
1680
  });
1681
- var dt = {
1681
+ var ft = {
1682
1682
  amp: "&",
1683
1683
  apos: "'",
1684
1684
  gt: ">",
1685
1685
  lt: "<",
1686
1686
  quot: "\""
1687
- }, ft = {
1687
+ }, pt = {
1688
1688
  nbsp: "\xA0",
1689
1689
  copy: "©",
1690
1690
  reg: "®",
@@ -1705,13 +1705,13 @@ var dt = {
1705
1705
  frac12: "½",
1706
1706
  frac14: "¼",
1707
1707
  frac34: "¾"
1708
- }, pt = /* @__PURE__ */ new Set("!?\\\\/[]$%{}^&*()<>|+");
1709
- function mt(e) {
1708
+ }, mt = /* @__PURE__ */ new Set("!?\\\\/[]$%{}^&*()<>|+");
1709
+ function ht(e) {
1710
1710
  if (e[0] === "#") throw Error(`[EntityReplacer] Invalid character '#' in entity name: "${e}"`);
1711
- for (let t of e) if (pt.has(t)) throw Error(`[EntityReplacer] Invalid character '${t}' in entity name: "${e}"`);
1711
+ for (let t of e) if (mt.has(t)) throw Error(`[EntityReplacer] Invalid character '${t}' in entity name: "${e}"`);
1712
1712
  return e;
1713
1713
  }
1714
- function V(...e) {
1714
+ function B(...e) {
1715
1715
  let t = Object.create(null);
1716
1716
  for (let n of e) if (n) for (let e of Object.keys(n)) {
1717
1717
  let r = n[e];
@@ -1723,48 +1723,48 @@ function V(...e) {
1723
1723
  }
1724
1724
  return t;
1725
1725
  }
1726
- var H = "external", U = "base", W = "all";
1727
- function ht(e) {
1728
- return !e || e === H ? new Set([H]) : e === W ? new Set([W]) : e === U ? new Set([U]) : Array.isArray(e) ? new Set(e) : new Set([H]);
1726
+ var V = "external", H = "base", U = "all";
1727
+ function gt(e) {
1728
+ return !e || e === V ? new Set([V]) : e === U ? new Set([U]) : e === H ? new Set([H]) : Array.isArray(e) ? new Set(e) : new Set([V]);
1729
1729
  }
1730
- var G = Object.freeze({
1730
+ var W = Object.freeze({
1731
1731
  allow: 0,
1732
1732
  leave: 1,
1733
1733
  remove: 2,
1734
1734
  throw: 3
1735
- }), gt = new Set([
1735
+ }), _t = new Set([
1736
1736
  9,
1737
1737
  10,
1738
1738
  13
1739
1739
  ]);
1740
- function _t(e) {
1740
+ function vt(e) {
1741
1741
  if (!e) return {
1742
1742
  xmlVersion: 1,
1743
- onLevel: G.allow,
1744
- nullLevel: G.remove
1743
+ onLevel: W.allow,
1744
+ nullLevel: W.remove
1745
1745
  };
1746
- let t = e.xmlVersion === 1.1 ? 1.1 : 1, n = G[e.onNCR] ?? G.allow, r = G[e.nullNCR] ?? G.remove;
1746
+ let t = e.xmlVersion === 1.1 ? 1.1 : 1, n = W[e.onNCR] ?? W.allow, r = W[e.nullNCR] ?? W.remove;
1747
1747
  return {
1748
1748
  xmlVersion: t,
1749
1749
  onLevel: n,
1750
- nullLevel: Math.max(r, G.remove)
1750
+ nullLevel: Math.max(r, W.remove)
1751
1751
  };
1752
1752
  }
1753
- var vt = class {
1753
+ var yt = class {
1754
1754
  constructor(e = {}) {
1755
- this._limit = e.limit || {}, this._maxTotalExpansions = this._limit.maxTotalExpansions || 0, this._maxExpandedLength = this._limit.maxExpandedLength || 0, this._postCheck = typeof e.postCheck == "function" ? e.postCheck : (e) => e, this._limitTiers = ht(this._limit.applyLimitsTo ?? H), this._numericAllowed = e.numericAllowed ?? !0, this._baseMap = V(dt, e.namedEntities || null), this._externalMap = Object.create(null), this._inputMap = Object.create(null), this._totalExpansions = 0, this._expandedLength = 0, this._removeSet = new Set(e.remove && Array.isArray(e.remove) ? e.remove : []), this._leaveSet = new Set(e.leave && Array.isArray(e.leave) ? e.leave : []);
1756
- let t = _t(e.ncr);
1755
+ this._limit = e.limit || {}, this._maxTotalExpansions = this._limit.maxTotalExpansions || 0, this._maxExpandedLength = this._limit.maxExpandedLength || 0, this._postCheck = typeof e.postCheck == "function" ? e.postCheck : (e) => e, this._limitTiers = gt(this._limit.applyLimitsTo ?? V), this._numericAllowed = e.numericAllowed ?? !0, this._baseMap = B(ft, e.namedEntities || null), this._externalMap = Object.create(null), this._inputMap = Object.create(null), this._totalExpansions = 0, this._expandedLength = 0, this._removeSet = new Set(e.remove && Array.isArray(e.remove) ? e.remove : []), this._leaveSet = new Set(e.leave && Array.isArray(e.leave) ? e.leave : []);
1756
+ let t = vt(e.ncr);
1757
1757
  this._ncrXmlVersion = t.xmlVersion, this._ncrOnLevel = t.onLevel, this._ncrNullLevel = t.nullLevel;
1758
1758
  }
1759
1759
  setExternalEntities(e) {
1760
- if (e) for (let t of Object.keys(e)) mt(t);
1761
- this._externalMap = V(e);
1760
+ if (e) for (let t of Object.keys(e)) ht(t);
1761
+ this._externalMap = B(e);
1762
1762
  }
1763
1763
  addExternalEntity(e, t) {
1764
- mt(e), typeof t == "string" && t.indexOf("&") === -1 && (this._externalMap[e] = t);
1764
+ ht(e), typeof t == "string" && t.indexOf("&") === -1 && (this._externalMap[e] = t);
1765
1765
  }
1766
1766
  addInputEntities(e) {
1767
- this._totalExpansions = 0, this._expandedLength = 0, this._inputMap = V(e);
1767
+ this._totalExpansions = 0, this._expandedLength = 0, this._inputMap = B(e);
1768
1768
  }
1769
1769
  reset() {
1770
1770
  return this._inputMap = Object.create(null), this._totalExpansions = 0, this._expandedLength = 0, this;
@@ -1792,7 +1792,7 @@ var vt = class {
1792
1792
  continue;
1793
1793
  }
1794
1794
  let u, d;
1795
- if (this._removeSet.has(l)) u = "", d === void 0 && (d = H);
1795
+ if (this._removeSet.has(l)) u = "", d === void 0 && (d = V);
1796
1796
  else if (this._leaveSet.has(l)) {
1797
1797
  a++;
1798
1798
  continue;
@@ -1802,7 +1802,7 @@ var vt = class {
1802
1802
  a++;
1803
1803
  continue;
1804
1804
  }
1805
- u = e, d = U;
1805
+ u = e, d = H;
1806
1806
  } else {
1807
1807
  let e = this._resolveName(l);
1808
1808
  u = e?.value, d = e?.tier;
@@ -1824,31 +1824,31 @@ var vt = class {
1824
1824
  return this._postCheck(l, t);
1825
1825
  }
1826
1826
  _tierCounts(e) {
1827
- return this._limitTiers.has(W) ? !0 : this._limitTiers.has(e);
1827
+ return this._limitTiers.has(U) ? !0 : this._limitTiers.has(e);
1828
1828
  }
1829
1829
  _resolveName(e) {
1830
1830
  if (e in this._inputMap) return {
1831
1831
  value: this._inputMap[e],
1832
- tier: H
1832
+ tier: V
1833
1833
  };
1834
1834
  if (e in this._externalMap) return {
1835
1835
  value: this._externalMap[e],
1836
- tier: H
1836
+ tier: V
1837
1837
  };
1838
1838
  if (e in this._baseMap) return {
1839
1839
  value: this._baseMap[e],
1840
- tier: U
1840
+ tier: H
1841
1841
  };
1842
1842
  }
1843
1843
  _classifyNCR(e) {
1844
- return e === 0 ? this._ncrNullLevel : e >= 55296 && e <= 57343 || this._ncrXmlVersion === 1 && e >= 1 && e <= 31 && !gt.has(e) ? G.remove : -1;
1844
+ return e === 0 ? this._ncrNullLevel : e >= 55296 && e <= 57343 || this._ncrXmlVersion === 1 && e >= 1 && e <= 31 && !_t.has(e) ? W.remove : -1;
1845
1845
  }
1846
1846
  _applyNCRAction(e, t, n) {
1847
1847
  switch (e) {
1848
- case G.allow: return String.fromCodePoint(n);
1849
- case G.remove: return "";
1850
- case G.leave: return;
1851
- case G.throw: throw Error(`[EntityDecoder] Prohibited numeric character reference &${t}; (U+${n.toString(16).toUpperCase().padStart(4, "0")})`);
1848
+ case W.allow: return String.fromCodePoint(n);
1849
+ case W.remove: return "";
1850
+ case W.leave: return;
1851
+ case W.throw: throw Error(`[EntityDecoder] Prohibited numeric character reference &${t}; (U+${n.toString(16).toUpperCase().padStart(4, "0")})`);
1852
1852
  default: return String.fromCodePoint(n);
1853
1853
  }
1854
1854
  }
@@ -1856,11 +1856,11 @@ var vt = class {
1856
1856
  let t = e.charCodeAt(1), n;
1857
1857
  if (n = t === 120 || t === 88 ? parseInt(e.slice(2), 16) : parseInt(e.slice(1), 10), Number.isNaN(n) || n < 0 || n > 1114111) return;
1858
1858
  let r = this._classifyNCR(n);
1859
- if (!this._numericAllowed && r < G.remove) return;
1859
+ if (!this._numericAllowed && r < W.remove) return;
1860
1860
  let i = r === -1 ? this._ncrOnLevel : Math.max(this._ncrOnLevel, r);
1861
1861
  return this._applyNCRAction(i, e, n);
1862
1862
  }
1863
- }, yt = (e) => L.includes(e) ? "__" + e : e, bt = {
1863
+ }, bt = (e) => I.includes(e) ? "__" + e : e, xt = {
1864
1864
  preserveOrder: !1,
1865
1865
  attributeNamePrefix: "@_",
1866
1866
  attributesGroupName: !1,
@@ -1902,14 +1902,14 @@ var vt = class {
1902
1902
  maxNestedTags: 100,
1903
1903
  strictReservedNames: !0,
1904
1904
  jPath: !0,
1905
- onDangerousProperty: yt
1905
+ onDangerousProperty: bt
1906
1906
  };
1907
- function xt(e, t) {
1907
+ function St(e, t) {
1908
1908
  if (typeof e != "string") return;
1909
1909
  let n = e.toLowerCase();
1910
- if (L.some((e) => n === e.toLowerCase()) || Le.some((e) => n === e.toLowerCase())) throw Error(`[SECURITY] Invalid ${t}: "${e}" is a reserved JavaScript keyword that could cause prototype pollution`);
1910
+ if (I.some((e) => n === e.toLowerCase()) || Re.some((e) => n === e.toLowerCase())) throw Error(`[SECURITY] Invalid ${t}: "${e}" is a reserved JavaScript keyword that could cause prototype pollution`);
1911
1911
  }
1912
- function St(e, t) {
1912
+ function Ct(e, t) {
1913
1913
  return typeof e == "boolean" ? {
1914
1914
  enabled: e,
1915
1915
  maxEntitySize: 1e4,
@@ -1930,10 +1930,10 @@ function St(e, t) {
1930
1930
  allowedTags: e.allowedTags ?? null,
1931
1931
  tagFilter: e.tagFilter ?? null,
1932
1932
  appliesTo: e.appliesTo ?? "all"
1933
- } : St(!0);
1933
+ } : Ct(!0);
1934
1934
  }
1935
- var Ct = function(e) {
1936
- let t = Object.assign({}, bt, e), n = [
1935
+ var wt = function(e) {
1936
+ let t = Object.assign({}, xt, e), n = [
1937
1937
  {
1938
1938
  value: t.attributeNamePrefix,
1939
1939
  name: "attributeNamePrefix"
@@ -1955,9 +1955,9 @@ var Ct = function(e) {
1955
1955
  name: "commentPropName"
1956
1956
  }
1957
1957
  ];
1958
- for (let { value: e, name: t } of n) e && xt(e, t);
1959
- return t.onDangerousProperty === null && (t.onDangerousProperty = yt), t.processEntities = St(t.processEntities, t.htmlEntities), t.unpairedTagsSet = new Set(t.unpairedTags), t.stopNodes && Array.isArray(t.stopNodes) && (t.stopNodes = t.stopNodes.map((e) => typeof e == "string" && e.startsWith("*.") ? ".." + e.substring(2) : e)), t;
1960
- }, wt = typeof Symbol == "function" ? Symbol("XML Node Metadata") : "@@xmlMetadata", K = class {
1958
+ for (let { value: e, name: t } of n) e && St(e, t);
1959
+ return t.onDangerousProperty === null && (t.onDangerousProperty = bt), t.processEntities = Ct(t.processEntities, t.htmlEntities), t.unpairedTagsSet = new Set(t.unpairedTags), t.stopNodes && Array.isArray(t.stopNodes) && (t.stopNodes = t.stopNodes.map((e) => typeof e == "string" && e.startsWith("*.") ? ".." + e.substring(2) : e)), t;
1960
+ }, Tt = typeof Symbol == "function" ? Symbol("XML Node Metadata") : "@@xmlMetadata", G = class {
1961
1961
  constructor(e) {
1962
1962
  this.tagname = e, this.child = [], this[":@"] = Object.create(null);
1963
1963
  }
@@ -1968,14 +1968,26 @@ var Ct = function(e) {
1968
1968
  e.tagname === "__proto__" && (e.tagname = "#__proto__"), e[":@"] && Object.keys(e[":@"]).length > 0 ? this.child.push({
1969
1969
  [e.tagname]: e.child,
1970
1970
  ":@": e[":@"]
1971
- }) : this.child.push({ [e.tagname]: e.child }), t !== void 0 && (this.child[this.child.length - 1][wt] = { startIndex: t });
1971
+ }) : this.child.push({ [e.tagname]: e.child }), t !== void 0 && (this.child[this.child.length - 1][Tt] = { startIndex: t });
1972
1972
  }
1973
1973
  static getMetaDataSymbol() {
1974
- return wt;
1974
+ return Tt;
1975
1975
  }
1976
- }, Tt = class {
1977
- constructor(e) {
1978
- this.suppressValidationErr = !e, this.options = e;
1976
+ }, Et = ":A-Za-z_À-ÖØ-öø-˿Ͱ-ͽͿ-҆҈-῿‌-‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�", Dt = Et + "\\-\\.\\d·̀-ͯ‿-⁀", Ot = ":A-Za-z_À-˿Ͱ-ͽͿ-҆҈-῿‌-‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�𐀀-󯿿", kt = Ot + "\\-\\.\\d·̀-ͯ҇‿-⁀", At = (e, t, n = "") => {
1977
+ let r = `[${e.replace(":", "")}][${t.replace(":", "")}]*`;
1978
+ return {
1979
+ name: RegExp(`^[${e}][${t}]*$`, n),
1980
+ ncName: RegExp(`^${r}$`, n),
1981
+ qName: RegExp(`^${r}(?::${r})?$`, n),
1982
+ nmToken: RegExp(`^[${t}]+$`, n),
1983
+ nmTokens: RegExp(`^[${t}]+(?:\\s+[${t}]+)*$`, n)
1984
+ };
1985
+ }, jt = At(Et, Dt), Mt = At(Ot, kt, "u"), Nt = (e = "1.0") => e === "1.1" ? Mt : jt, K = (e, { xmlVersion: t = "1.0" } = {}) => Nt(t).qName.test(e), Pt = class {
1986
+ constructor(e, t) {
1987
+ this.suppressValidationErr = !e, this.options = e, this.xmlVersion = t || 1;
1988
+ }
1989
+ setXmlVersion(e = 1) {
1990
+ this.xmlVersion = e;
1979
1991
  }
1980
1992
  readDocType(e, t) {
1981
1993
  let n = Object.create(null), r = 0;
@@ -2017,7 +2029,7 @@ var Ct = function(e) {
2017
2029
  let n = t;
2018
2030
  for (; t < e.length && !/\s/.test(e[t]) && e[t] !== "\"" && e[t] !== "'";) t++;
2019
2031
  let r = e.substring(n, t);
2020
- if (Y(r), t = q(e, t), !this.suppressValidationErr) {
2032
+ if (Y(r, { xmlVersion: this.xmlVersion }), t = q(e, t), !this.suppressValidationErr) {
2021
2033
  if (e.substring(t, t + 6).toUpperCase() === "SYSTEM") throw Error("External entities are not supported");
2022
2034
  if (e[t] === "%") throw Error("Parameter entities are not supported");
2023
2035
  }
@@ -2034,7 +2046,7 @@ var Ct = function(e) {
2034
2046
  let n = t;
2035
2047
  for (; t < e.length && !/\s/.test(e[t]);) t++;
2036
2048
  let r = e.substring(n, t);
2037
- !this.suppressValidationErr && Y(r), t = q(e, t);
2049
+ !this.suppressValidationErr && Y(r, { xmlVersion: this.xmlVersion }), t = q(e, t);
2038
2050
  let i = e.substring(t, t + 6).toUpperCase();
2039
2051
  if (!this.suppressValidationErr && i !== "SYSTEM" && i !== "PUBLIC") throw Error(`Expected SYSTEM or PUBLIC, found "${i}"`);
2040
2052
  t += i.length, t = q(e, t);
@@ -2062,7 +2074,7 @@ var Ct = function(e) {
2062
2074
  let n = t;
2063
2075
  for (; t < e.length && !/\s/.test(e[t]);) t++;
2064
2076
  let r = e.substring(n, t);
2065
- if (!this.suppressValidationErr && !I(r)) throw Error(`Invalid element name: "${r}"`);
2077
+ if (!this.suppressValidationErr && !K(r, { xmlVersion: this.xmlVersion })) throw Error(`Invalid element name: "${r}"`);
2066
2078
  t = q(e, t);
2067
2079
  let i = "";
2068
2080
  if (e[t] === "E" && J(e, "MPTY", t)) t += 4;
@@ -2084,9 +2096,9 @@ var Ct = function(e) {
2084
2096
  let n = t;
2085
2097
  for (; t < e.length && !/\s/.test(e[t]);) t++;
2086
2098
  let r = e.substring(n, t);
2087
- for (Y(r), t = q(e, t), n = t; t < e.length && !/\s/.test(e[t]);) t++;
2099
+ for (Y(r, { xmlVersion: this.xmlVersion }), t = q(e, t), n = t; t < e.length && !/\s/.test(e[t]);) t++;
2088
2100
  let i = e.substring(n, t);
2089
- if (!Y(i)) throw Error(`Invalid attribute name: "${i}"`);
2101
+ if (!Y(i, { xmlVersion: this.xmlVersion })) throw Error(`Invalid attribute name: "${i}"`);
2090
2102
  t = q(e, t);
2091
2103
  let a = "";
2092
2104
  if (e.substring(t, t + 8).toUpperCase() === "NOTATION") {
@@ -2097,7 +2109,7 @@ var Ct = function(e) {
2097
2109
  let r = t;
2098
2110
  for (; t < e.length && e[t] !== "|" && e[t] !== ")";) t++;
2099
2111
  let i = e.substring(r, t);
2100
- if (i = i.trim(), !Y(i)) throw Error(`Invalid notation name: "${i}"`);
2112
+ if (i = i.trim(), !Y(i, { xmlVersion: this.xmlVersion })) throw Error(`Invalid notation name: "${i}"`);
2101
2113
  n.push(i), e[t] === "|" && (t++, t = q(e, t));
2102
2114
  }
2103
2115
  if (e[t] !== ")") throw Error("Unterminated list of notations");
@@ -2134,31 +2146,35 @@ function J(e, t, n) {
2134
2146
  for (let r = 0; r < t.length; r++) if (t[r] !== e[n + r + 1]) return !1;
2135
2147
  return !0;
2136
2148
  }
2137
- function Y(e) {
2138
- if (I(e)) return e;
2149
+ function Y(e, t) {
2150
+ if (K(e, { xmlVersion: t })) return e;
2139
2151
  throw Error(`Invalid entity name ${e}`);
2140
2152
  }
2141
2153
  //#endregion
2142
- //#region ../../node_modules/.pnpm/strnum@2.2.3/node_modules/strnum/strnum.js
2143
- var Et = /^[-+]?0x[a-fA-F0-9]+$/, Dt = /^([\-\+])?(0*)([0-9]*(\.[0-9]*)?)$/, Ot = {
2154
+ //#region ../../node_modules/.pnpm/strnum@2.3.0/node_modules/strnum/strnum.js
2155
+ var Ft = /^[-+]?0x[a-fA-F0-9]+$/, It = /^0b[01]+$/, Lt = /^0o[0-7]+$/, Rt = /^([\-\+])?(0*)([0-9]*(\.[0-9]*)?)$/, zt = {
2144
2156
  hex: !0,
2157
+ binary: !1,
2158
+ octal: !1,
2145
2159
  leadingZeros: !0,
2146
2160
  decimalPoint: ".",
2147
2161
  eNotation: !0,
2148
2162
  infinity: "original"
2149
2163
  };
2150
- function kt(e, t = {}) {
2151
- if (t = Object.assign({}, Ot, t), !e || typeof e != "string") return e;
2164
+ function Bt(e, t = {}) {
2165
+ if (t = Object.assign({}, zt, t), !e || typeof e != "string") return e;
2152
2166
  let n = e.trim();
2153
2167
  if (n.length === 0 || t.skipLike !== void 0 && t.skipLike.test(n)) return e;
2154
2168
  if (n === "0") return 0;
2155
- if (t.hex && Et.test(n)) return Nt(n, 16);
2156
- if (!isFinite(n)) return Pt(e, Number(n), t);
2157
- if (n.includes("e") || n.includes("E")) return jt(e, n, t);
2169
+ if (t.hex && Ft.test(n)) return X(n, 16);
2170
+ if (t.binary && It.test(n)) return X(n, 2);
2171
+ if (t.octal && Lt.test(n)) return X(n, 8);
2172
+ if (!isFinite(n)) return Wt(e, Number(n), t);
2173
+ if (n.includes("e") || n.includes("E")) return Ht(e, n, t);
2158
2174
  {
2159
- let r = Dt.exec(n);
2175
+ let r = Rt.exec(n);
2160
2176
  if (r) {
2161
- let i = r[1] || "", a = r[2], o = Mt(r[3]), s = i ? e[a.length + 1] === "." : e[a.length] === ".";
2177
+ let i = r[1] || "", a = r[2], o = Ut(r[3]), s = i ? e[a.length + 1] === "." : e[a.length] === ".";
2162
2178
  if (!t.leadingZeros && (a.length > 1 || a.length === 1 && !s)) return e;
2163
2179
  {
2164
2180
  let r = Number(n), s = String(r);
@@ -2171,25 +2187,26 @@ function kt(e, t = {}) {
2171
2187
  } else return e;
2172
2188
  }
2173
2189
  }
2174
- var At = /^([-+])?(0*)(\d*(\.\d*)?[eE][-\+]?\d+)$/;
2175
- function jt(e, t, n) {
2190
+ var Vt = /^([-+])?(0*)(\d*(\.\d*)?[eE][-\+]?\d+)$/;
2191
+ function Ht(e, t, n) {
2176
2192
  if (!n.eNotation) return e;
2177
- let r = t.match(At);
2193
+ let r = t.match(Vt);
2178
2194
  if (r) {
2179
2195
  let i = r[1] || "", a = r[3].indexOf("e") === -1 ? "E" : "e", o = r[2], s = i ? e[o.length + 1] === a : e[o.length] === a;
2180
2196
  return o.length > 1 && s ? e : o.length === 1 && (r[3].startsWith(`.${a}`) || r[3][0] === a) ? Number(t) : o.length > 0 ? n.leadingZeros && !s ? (t = (r[1] || "") + r[3], Number(t)) : e : Number(t);
2181
2197
  } else return e;
2182
2198
  }
2183
- function Mt(e) {
2199
+ function Ut(e) {
2184
2200
  return e && e.indexOf(".") !== -1 ? (e = e.replace(/0+$/, ""), e === "." ? e = "0" : e[0] === "." ? e = "0" + e : e[e.length - 1] === "." && (e = e.substring(0, e.length - 1)), e) : e;
2185
2201
  }
2186
- function Nt(e, t) {
2187
- if (parseInt) return parseInt(e, t);
2202
+ function X(e, t) {
2203
+ let n = e.trim();
2204
+ if ((t === 2 || t === 8) && (e = n.substring(2)), parseInt) return parseInt(e, t);
2188
2205
  if (Number.parseInt) return Number.parseInt(e, t);
2189
2206
  if (window && window.parseInt) return window.parseInt(e, t);
2190
2207
  throw Error("parseInt, Number.parseInt, window.parseInt are not supported");
2191
2208
  }
2192
- function Pt(e, t, n) {
2209
+ function Wt(e, t, n) {
2193
2210
  let r = t === Infinity;
2194
2211
  switch (n.infinity.toLowerCase()) {
2195
2212
  case "null": return null;
@@ -2199,15 +2216,15 @@ function Pt(e, t, n) {
2199
2216
  }
2200
2217
  }
2201
2218
  //#endregion
2202
- //#region ../../node_modules/.pnpm/fast-xml-parser@5.7.2/node_modules/fast-xml-parser/src/ignoreAttributes.js
2203
- function Ft(e) {
2219
+ //#region ../../node_modules/.pnpm/fast-xml-parser@5.8.0/node_modules/fast-xml-parser/src/ignoreAttributes.js
2220
+ function Gt(e) {
2204
2221
  return typeof e == "function" ? e : Array.isArray(e) ? (t) => {
2205
2222
  for (let n of e) if (typeof n == "string" && t === n || n instanceof RegExp && n.test(t)) return !0;
2206
2223
  } : () => !1;
2207
2224
  }
2208
2225
  //#endregion
2209
2226
  //#region ../../node_modules/.pnpm/path-expression-matcher@1.5.0/node_modules/path-expression-matcher/src/Expression.js
2210
- var X = class {
2227
+ var Z = class {
2211
2228
  constructor(e, t = {}, n) {
2212
2229
  this.pattern = e, this.separator = t.separator || ".", this.segments = this._parse(e), this.data = n, this._hasDeepWildcard = this.segments.some((e) => e.type === "deep-wildcard"), this._hasAttributeCondition = this.segments.some((e) => e.attrName !== void 0), this._hasPositionSelector = this.segments.some((e) => e.position !== void 0);
2213
2230
  }
@@ -2263,7 +2280,7 @@ var X = class {
2263
2280
  toString() {
2264
2281
  return this.pattern;
2265
2282
  }
2266
- }, It = class {
2283
+ }, Kt = class {
2267
2284
  constructor() {
2268
2285
  this._byDepthAndTag = /* @__PURE__ */ new Map(), this._wildcardByDepth = /* @__PURE__ */ new Map(), this._deepWildcards = [], this._patterns = /* @__PURE__ */ new Set(), this._sealed = !1;
2269
2286
  }
@@ -2310,7 +2327,7 @@ var X = class {
2310
2327
  for (let t = 0; t < this._deepWildcards.length; t++) if (e.matches(this._deepWildcards[t])) return this._deepWildcards[t];
2311
2328
  return null;
2312
2329
  }
2313
- }, Lt = class {
2330
+ }, qt = class {
2314
2331
  constructor(e) {
2315
2332
  this._matcher = e;
2316
2333
  }
@@ -2361,9 +2378,9 @@ var X = class {
2361
2378
  matchesAny(e) {
2362
2379
  return e.matchesAny(this._matcher);
2363
2380
  }
2364
- }, Rt = class {
2381
+ }, Jt = class {
2365
2382
  constructor(e = {}) {
2366
- this.separator = e.separator || ".", this.path = [], this.siblingStacks = [], this._pathStringCache = null, this._view = new Lt(this);
2383
+ this.separator = e.separator || ".", this.path = [], this.siblingStacks = [], this._pathStringCache = null, this._view = new qt(this);
2367
2384
  }
2368
2385
  push(e, t = null, n = null) {
2369
2386
  this._pathStringCache = null, this.path.length > 0 && (this.path[this.path.length - 1].values = void 0);
@@ -2486,8 +2503,8 @@ var X = class {
2486
2503
  }
2487
2504
  };
2488
2505
  //#endregion
2489
- //#region ../../node_modules/.pnpm/fast-xml-parser@5.7.2/node_modules/fast-xml-parser/src/xmlparser/OrderedObjParser.js
2490
- function zt(e, t) {
2506
+ //#region ../../node_modules/.pnpm/fast-xml-parser@5.8.0/node_modules/fast-xml-parser/src/xmlparser/OrderedObjParser.js
2507
+ function Yt(e, t) {
2491
2508
  if (!e) return {};
2492
2509
  let n = t.attributesGroupName ? e[t.attributesGroupName] : e;
2493
2510
  if (!n) return {};
@@ -2498,7 +2515,7 @@ function zt(e, t) {
2498
2515
  } else r[e] = n[e];
2499
2516
  return r;
2500
2517
  }
2501
- function Bt(e) {
2518
+ function Xt(e) {
2502
2519
  if (!e || typeof e != "string") return;
2503
2520
  let t = e.indexOf(":");
2504
2521
  if (t !== -1 && t > 0) {
@@ -2506,14 +2523,14 @@ function Bt(e) {
2506
2523
  if (n !== "xmlns") return n;
2507
2524
  }
2508
2525
  }
2509
- var Vt = class {
2526
+ var Zt = class {
2510
2527
  constructor(e, t) {
2511
- this.options = e, this.currentNode = null, this.tagsNodeStack = [], this.parseXml = Kt, this.parseTextData = Ht, this.resolveNameSpace = Ut, this.buildAttributesMap = Gt, this.isItStopNode = Xt, this.replaceEntitiesValue = Jt, this.readStopNodeData = $t, this.saveTextToParentTag = Yt, this.addChild = qt, this.ignoreAttributesFn = Ft(this.options.ignoreAttributes), this.entityExpansionCount = 0, this.currentExpandedLength = 0;
2512
- let n = { ...dt };
2528
+ this.options = e, this.currentNode = null, this.tagsNodeStack = [], this.parseXml = nn, this.parseTextData = Qt, this.resolveNameSpace = $t, this.buildAttributesMap = tn, this.isItStopNode = sn, this.replaceEntitiesValue = an, this.readStopNodeData = un, this.saveTextToParentTag = on, this.addChild = rn, this.ignoreAttributesFn = Gt(this.options.ignoreAttributes), this.entityExpansionCount = 0, this.currentExpandedLength = 0;
2529
+ let n = { ...ft };
2513
2530
  this.options.entityDecoder ? this.entityDecoder = this.options.entityDecoder : (typeof this.options.htmlEntities == "object" ? n = this.options.htmlEntities : this.options.htmlEntities === !0 && (n = {
2514
- ...ft,
2515
- ...ct
2516
- }), this.entityDecoder = new vt({
2531
+ ...pt,
2532
+ ...lt
2533
+ }), this.entityDecoder = new yt({
2517
2534
  namedEntities: {
2518
2535
  ...n,
2519
2536
  ...t
@@ -2524,26 +2541,26 @@ var Vt = class {
2524
2541
  maxExpandedLength: this.options.processEntities.maxExpandedLength,
2525
2542
  applyLimitsTo: this.options.processEntities.appliesTo
2526
2543
  }
2527
- })), this.matcher = new Rt(), this.readonlyMatcher = this.matcher.readOnly(), this.isCurrentNodeStopNode = !1, this.stopNodeExpressionsSet = new It();
2544
+ })), this.matcher = new Jt(), this.readonlyMatcher = this.matcher.readOnly(), this.isCurrentNodeStopNode = !1, this.stopNodeExpressionsSet = new Kt();
2528
2545
  let r = this.options.stopNodes;
2529
2546
  if (r && r.length > 0) {
2530
2547
  for (let e = 0; e < r.length; e++) {
2531
2548
  let t = r[e];
2532
- typeof t == "string" ? this.stopNodeExpressionsSet.add(new X(t)) : t instanceof X && this.stopNodeExpressionsSet.add(t);
2549
+ typeof t == "string" ? this.stopNodeExpressionsSet.add(new Z(t)) : t instanceof Z && this.stopNodeExpressionsSet.add(t);
2533
2550
  }
2534
2551
  this.stopNodeExpressionsSet.seal();
2535
2552
  }
2536
2553
  }
2537
2554
  };
2538
- function Ht(e, t, n, r, i, a, o) {
2555
+ function Qt(e, t, n, r, i, a, o) {
2539
2556
  let s = this.options;
2540
2557
  if (e !== void 0 && (s.trimValues && !r && (e = e.trim()), e.length > 0)) {
2541
2558
  o || (e = this.replaceEntitiesValue(e, t, n));
2542
2559
  let r = s.jPath ? n.toString() : n, c = s.tagValueProcessor(t, e, r, i, a);
2543
- return c == null ? e : typeof c != typeof e || c !== e ? c : s.trimValues || e.trim() === e ? en(e, s.parseTagValue, s.numberParseOptions) : e;
2560
+ return c == null ? e : typeof c != typeof e || c !== e ? c : s.trimValues || e.trim() === e ? dn(e, s.parseTagValue, s.numberParseOptions) : e;
2544
2561
  }
2545
2562
  }
2546
- function Ut(e) {
2563
+ function $t(e) {
2547
2564
  if (this.options.removeNSPrefix) {
2548
2565
  let t = e.split(":"), n = e.charAt(0) === "/" ? "/" : "";
2549
2566
  if (t[0] === "xmlns") return "";
@@ -2551,11 +2568,11 @@ function Ut(e) {
2551
2568
  }
2552
2569
  return e;
2553
2570
  }
2554
- var Wt = /* @__PURE__ */ RegExp("([^\\s=]+)\\s*(=\\s*(['\"])([\\s\\S]*?)\\3)?", "gm");
2555
- function Gt(e, t, n, r = !1) {
2571
+ var en = /* @__PURE__ */ RegExp("([^\\s=]+)\\s*(=\\s*(['\"])([\\s\\S]*?)\\3)?", "gm");
2572
+ function tn(e, t, n, r = !1) {
2556
2573
  let i = this.options;
2557
2574
  if (r === !0 || i.ignoreAttributes !== !0 && typeof e == "string") {
2558
- let r = Fe(e, Wt), a = r.length, o = {}, s = Array(a), c = !1, l = {};
2575
+ let r = Fe(e, en), a = r.length, o = {}, s = Array(a), c = !1, l = {};
2559
2576
  for (let e = 0; e < a; e++) {
2560
2577
  let t = this.resolveNameSpace(r[e][1]), a = r[e][4];
2561
2578
  if (t.length && a !== void 0) {
@@ -2569,9 +2586,9 @@ function Gt(e, t, n, r = !1) {
2569
2586
  let t = this.resolveNameSpace(r[e][1]);
2570
2587
  if (this.ignoreAttributesFn(t, u)) continue;
2571
2588
  let n = i.attributeNamePrefix + t;
2572
- if (t.length) if (i.transformAttributeName && (n = i.transformAttributeName(n)), n = tn(n, i), r[e][4] !== void 0) {
2589
+ if (t.length) if (i.transformAttributeName && (n = i.transformAttributeName(n)), n = pn(n, i), r[e][4] !== void 0) {
2573
2590
  let r = s[e], a = i.attributeValueProcessor(t, r, u);
2574
- a == null ? o[n] = r : typeof a != typeof r || a !== r ? o[n] = a : o[n] = en(r, i.parseAttributeValue, i.numberParseOptions), d = !0;
2591
+ a == null ? o[n] = r : typeof a != typeof r || a !== r ? o[n] = a : o[n] = dn(r, i.parseAttributeValue, i.numberParseOptions), d = !0;
2575
2592
  } else i.allowBooleanAttributes && (o[n] = !0, d = !0);
2576
2593
  }
2577
2594
  if (!d) return;
@@ -2582,39 +2599,39 @@ function Gt(e, t, n, r = !1) {
2582
2599
  return o;
2583
2600
  }
2584
2601
  }
2585
- var Kt = function(e) {
2602
+ var nn = function(e) {
2586
2603
  e = e.replace(/\r\n?/g, "\n");
2587
- let t = new K("!xml"), n = t, r = "";
2604
+ let t = new G("!xml"), n = t, r = "";
2588
2605
  this.matcher.reset(), this.entityDecoder.reset(), this.entityExpansionCount = 0, this.currentExpandedLength = 0;
2589
- let i = this.options, a = new Tt(i.processEntities), o = e.length;
2606
+ let i = this.options, a = new Pt(i.processEntities), o = e.length;
2590
2607
  for (let s = 0; s < o; s++) if (e[s] === "<") {
2591
2608
  let c = e.charCodeAt(s + 1);
2592
2609
  if (c === 47) {
2593
- let t = Z(e, ">", s, "Closing Tag is not closed."), a = e.substring(s + 2, t).trim();
2610
+ let t = Q(e, ">", s, "Closing Tag is not closed."), a = e.substring(s + 2, t).trim();
2594
2611
  if (i.removeNSPrefix) {
2595
2612
  let e = a.indexOf(":");
2596
2613
  e !== -1 && (a = a.substr(e + 1));
2597
2614
  }
2598
- a = $(i.transformTagName, a, "", i).tagName, n && (r = this.saveTextToParentTag(r, n, this.readonlyMatcher));
2615
+ a = fn(i.transformTagName, a, "", i).tagName, n && (r = this.saveTextToParentTag(r, n, this.readonlyMatcher));
2599
2616
  let o = this.matcher.getCurrentTag();
2600
2617
  if (a && i.unpairedTagsSet.has(a)) throw Error(`Unpaired tag can not be used as closing tag: </${a}>`);
2601
2618
  o && i.unpairedTagsSet.has(o) && (this.matcher.pop(), this.tagsNodeStack.pop()), this.matcher.pop(), this.isCurrentNodeStopNode = !1, n = this.tagsNodeStack.pop(), r = "", s = t;
2602
2619
  } else if (c === 63) {
2603
- let t = Q(e, s, !1, "?>");
2620
+ let t = $(e, s, !1, "?>");
2604
2621
  if (!t) throw Error("Pi Tag is not closed.");
2605
2622
  r = this.saveTextToParentTag(r, n, this.readonlyMatcher);
2606
- let a = this.buildAttributesMap(t.tagExp, this.matcher, t.tagName, !0);
2607
- if (a) {
2608
- let e = a[this.options.attributeNamePrefix + "version"];
2609
- this.entityDecoder.setXmlVersion(Number(e) || 1);
2623
+ let o = this.buildAttributesMap(t.tagExp, this.matcher, t.tagName, !0);
2624
+ if (o) {
2625
+ let e = o[this.options.attributeNamePrefix + "version"];
2626
+ this.entityDecoder.setXmlVersion(Number(e) || 1), a.setXmlVersion(Number(e) || 1);
2610
2627
  }
2611
2628
  if (!(i.ignoreDeclaration && t.tagName === "?xml" || i.ignorePiTags)) {
2612
- let e = new K(t.tagName);
2613
- e.add(i.textNodeName, ""), t.tagName !== t.tagExp && t.attrExpPresent && i.ignoreAttributes !== !0 && (e[":@"] = a), this.addChild(n, e, this.readonlyMatcher, s);
2629
+ let e = new G(t.tagName);
2630
+ e.add(i.textNodeName, ""), t.tagName !== t.tagExp && t.attrExpPresent && i.ignoreAttributes !== !0 && (e[":@"] = o), this.addChild(n, e, this.readonlyMatcher, s);
2614
2631
  }
2615
2632
  s = t.closeIndex + 1;
2616
2633
  } else if (c === 33 && e.charCodeAt(s + 2) === 45 && e.charCodeAt(s + 3) === 45) {
2617
- let t = Z(e, "-->", s + 4, "Comment is not closed.");
2634
+ let t = Q(e, "-->", s + 4, "Comment is not closed.");
2618
2635
  if (i.commentPropName) {
2619
2636
  let a = e.substring(s + 4, t - 2);
2620
2637
  r = this.saveTextToParentTag(r, n, this.readonlyMatcher), n.add(i.commentPropName, [{ [i.textNodeName]: a }]);
@@ -2624,25 +2641,25 @@ var Kt = function(e) {
2624
2641
  let t = a.readDocType(e, s);
2625
2642
  this.entityDecoder.addInputEntities(t.entities), s = t.i;
2626
2643
  } else if (c === 33 && e.charCodeAt(s + 2) === 91) {
2627
- let t = Z(e, "]]>", s, "CDATA is not closed.") - 2, a = e.substring(s + 9, t);
2644
+ let t = Q(e, "]]>", s, "CDATA is not closed.") - 2, a = e.substring(s + 9, t);
2628
2645
  r = this.saveTextToParentTag(r, n, this.readonlyMatcher);
2629
2646
  let o = this.parseTextData(a, n.tagname, this.readonlyMatcher, !0, !1, !0, !0);
2630
2647
  o ??= "", i.cdataPropName ? n.add(i.cdataPropName, [{ [i.textNodeName]: a }]) : n.add(i.textNodeName, o), s = t + 2;
2631
2648
  } else {
2632
- let a = Q(e, s, i.removeNSPrefix);
2649
+ let a = $(e, s, i.removeNSPrefix);
2633
2650
  if (!a) {
2634
2651
  let t = e.substring(Math.max(0, s - 50), Math.min(o, s + 50));
2635
2652
  throw Error(`readTagExp returned undefined at position ${s}. Context: "${t}"`);
2636
2653
  }
2637
2654
  let c = a.tagName, l = a.rawTagName, u = a.tagExp, d = a.attrExpPresent, f = a.closeIndex;
2638
- if ({tagName: c, tagExp: u} = $(i.transformTagName, c, u, i), i.strictReservedNames && (c === i.commentPropName || c === i.cdataPropName || c === i.textNodeName || c === i.attributesGroupName)) throw Error(`Invalid tag name: ${c}`);
2655
+ if ({tagName: c, tagExp: u} = fn(i.transformTagName, c, u, i), i.strictReservedNames && (c === i.commentPropName || c === i.cdataPropName || c === i.textNodeName || c === i.attributesGroupName)) throw Error(`Invalid tag name: ${c}`);
2639
2656
  n && r && n.tagname !== "!xml" && (r = this.saveTextToParentTag(r, n, this.readonlyMatcher, !1));
2640
2657
  let p = n;
2641
2658
  p && i.unpairedTagsSet.has(p.tagname) && (n = this.tagsNodeStack.pop(), this.matcher.pop());
2642
2659
  let m = !1;
2643
2660
  u.length > 0 && u.lastIndexOf("/") === u.length - 1 && (m = !0, c[c.length - 1] === "/" ? (c = c.substr(0, c.length - 1), u = c) : u = u.substr(0, u.length - 1), d = c !== u);
2644
2661
  let h = null, g;
2645
- g = Bt(l), c !== t.tagname && this.matcher.push(c, {}, g), c !== u && d && (h = this.buildAttributesMap(u, this.matcher, c), h && zt(h, i)), c !== t.tagname && (this.isCurrentNodeStopNode = this.isItStopNode());
2662
+ g = Xt(l), c !== t.tagname && this.matcher.push(c, {}, g), c !== u && d && (h = this.buildAttributesMap(u, this.matcher, c), h && Yt(h, i)), c !== t.tagname && (this.isCurrentNodeStopNode = this.isItStopNode());
2646
2663
  let _ = s;
2647
2664
  if (this.isCurrentNodeStopNode) {
2648
2665
  let t = "";
@@ -2653,19 +2670,19 @@ var Kt = function(e) {
2653
2670
  if (!n) throw Error(`Unexpected end of ${l}`);
2654
2671
  s = n.i, t = n.tagContent;
2655
2672
  }
2656
- let r = new K(c);
2673
+ let r = new G(c);
2657
2674
  h && (r[":@"] = h), r.add(i.textNodeName, t), this.matcher.pop(), this.isCurrentNodeStopNode = !1, this.addChild(n, r, this.readonlyMatcher, _);
2658
2675
  } else {
2659
2676
  if (m) {
2660
- ({tagName: c, tagExp: u} = $(i.transformTagName, c, u, i));
2661
- let e = new K(c);
2677
+ ({tagName: c, tagExp: u} = fn(i.transformTagName, c, u, i));
2678
+ let e = new G(c);
2662
2679
  h && (e[":@"] = h), this.addChild(n, e, this.readonlyMatcher, _), this.matcher.pop(), this.isCurrentNodeStopNode = !1;
2663
2680
  } else if (i.unpairedTagsSet.has(c)) {
2664
- let e = new K(c);
2681
+ let e = new G(c);
2665
2682
  h && (e[":@"] = h), this.addChild(n, e, this.readonlyMatcher, _), this.matcher.pop(), this.isCurrentNodeStopNode = !1, s = a.closeIndex;
2666
2683
  continue;
2667
2684
  } else {
2668
- let e = new K(c);
2685
+ let e = new G(c);
2669
2686
  if (this.tagsNodeStack.length > i.maxNestedTags) throw Error("Maximum nested tags exceeded");
2670
2687
  this.tagsNodeStack.push(n), h && (e[":@"] = h), this.addChild(n, e, this.readonlyMatcher, _), n = e;
2671
2688
  }
@@ -2675,12 +2692,12 @@ var Kt = function(e) {
2675
2692
  } else r += e[s];
2676
2693
  return t.child;
2677
2694
  };
2678
- function qt(e, t, n, r) {
2695
+ function rn(e, t, n, r) {
2679
2696
  this.options.captureMetaData || (r = void 0);
2680
2697
  let i = this.options.jPath ? n.toString() : n, a = this.options.updateTag(t.tagname, i, t[":@"]);
2681
2698
  a === !1 || (typeof a == "string" && (t.tagname = a), e.addChild(t, r));
2682
2699
  }
2683
- function Jt(e, t, n) {
2700
+ function an(e, t, n) {
2684
2701
  let r = this.options.processEntities;
2685
2702
  if (!r || !r.enabled) return e;
2686
2703
  if (r.allowedTags) {
@@ -2693,13 +2710,13 @@ function Jt(e, t, n) {
2693
2710
  }
2694
2711
  return this.entityDecoder.decode(e);
2695
2712
  }
2696
- function Yt(e, t, n, r) {
2713
+ function on(e, t, n, r) {
2697
2714
  return e &&= (r === void 0 && (r = t.child.length === 0), e = this.parseTextData(e, t.tagname, n, !1, t[":@"] ? Object.keys(t[":@"]).length !== 0 : !1, r), e !== void 0 && e !== "" && t.add(this.options.textNodeName, e), ""), e;
2698
2715
  }
2699
- function Xt() {
2716
+ function sn() {
2700
2717
  return this.stopNodeExpressionsSet.size === 0 ? !1 : this.matcher.matchesAny(this.stopNodeExpressionsSet);
2701
2718
  }
2702
- function Zt(e, t, n = ">") {
2719
+ function cn(e, t, n = ">") {
2703
2720
  let r = 0, i = e.length, a = n.charCodeAt(0), o = n.length > 1 ? n.charCodeAt(1) : -1, s = "", c = t;
2704
2721
  for (let n = t; n < i; n++) {
2705
2722
  let t = e.charCodeAt(n);
@@ -2717,18 +2734,18 @@ function Zt(e, t, n = ">") {
2717
2734
  else t === 9 && !r && (s += e.substring(c, n) + " ", c = n + 1);
2718
2735
  }
2719
2736
  }
2720
- function Z(e, t, n, r) {
2737
+ function Q(e, t, n, r) {
2721
2738
  let i = e.indexOf(t, n);
2722
2739
  if (i === -1) throw Error(r);
2723
2740
  return i + t.length - 1;
2724
2741
  }
2725
- function Qt(e, t, n, r) {
2742
+ function ln(e, t, n, r) {
2726
2743
  let i = e.indexOf(t, n);
2727
2744
  if (i === -1) throw Error(r);
2728
2745
  return i;
2729
2746
  }
2730
- function Q(e, t, n, r = ">") {
2731
- let i = Zt(e, t + 1, r);
2747
+ function $(e, t, n, r = ">") {
2748
+ let i = cn(e, t + 1, r);
2732
2749
  if (!i) return;
2733
2750
  let a = i.data, o = i.index, s = a.search(/\s/), c = a, l = !0;
2734
2751
  s !== -1 && (c = a.substring(0, s), a = a.substring(s + 1).trimStart());
@@ -2745,51 +2762,51 @@ function Q(e, t, n, r = ">") {
2745
2762
  rawTagName: u
2746
2763
  };
2747
2764
  }
2748
- function $t(e, t, n) {
2765
+ function un(e, t, n) {
2749
2766
  let r = n, i = 1, a = e.length;
2750
2767
  for (; n < a; n++) if (e[n] === "<") {
2751
2768
  let a = e.charCodeAt(n + 1);
2752
2769
  if (a === 47) {
2753
- let a = Qt(e, ">", n, `${t} is not closed`);
2770
+ let a = ln(e, ">", n, `${t} is not closed`);
2754
2771
  if (e.substring(n + 2, a).trim() === t && (i--, i === 0)) return {
2755
2772
  tagContent: e.substring(r, n),
2756
2773
  i: a
2757
2774
  };
2758
2775
  n = a;
2759
- } else if (a === 63) n = Z(e, "?>", n + 1, "StopNode is not closed.");
2760
- else if (a === 33 && e.charCodeAt(n + 2) === 45 && e.charCodeAt(n + 3) === 45) n = Z(e, "-->", n + 3, "StopNode is not closed.");
2761
- else if (a === 33 && e.charCodeAt(n + 2) === 91) n = Z(e, "]]>", n, "StopNode is not closed.") - 2;
2776
+ } else if (a === 63) n = Q(e, "?>", n + 1, "StopNode is not closed.");
2777
+ else if (a === 33 && e.charCodeAt(n + 2) === 45 && e.charCodeAt(n + 3) === 45) n = Q(e, "-->", n + 3, "StopNode is not closed.");
2778
+ else if (a === 33 && e.charCodeAt(n + 2) === 91) n = Q(e, "]]>", n, "StopNode is not closed.") - 2;
2762
2779
  else {
2763
- let r = Q(e, n, ">");
2780
+ let r = $(e, n, !1);
2764
2781
  r && ((r && r.tagName) === t && r.tagExp[r.tagExp.length - 1] !== "/" && i++, n = r.closeIndex);
2765
2782
  }
2766
2783
  }
2767
2784
  }
2768
- function en(e, t, n) {
2785
+ function dn(e, t, n) {
2769
2786
  if (t && typeof e == "string") {
2770
2787
  let t = e.trim();
2771
- return t === "true" ? !0 : t === "false" ? !1 : kt(e, n);
2772
- } else if (Ie(e)) return e;
2788
+ return t === "true" ? !0 : t === "false" ? !1 : Bt(e, n);
2789
+ } else if (Le(e)) return e;
2773
2790
  else return "";
2774
2791
  }
2775
- function $(e, t, n, r) {
2792
+ function fn(e, t, n, r) {
2776
2793
  if (e) {
2777
2794
  let r = e(t);
2778
2795
  n === t && (n = r), t = r;
2779
2796
  }
2780
- return t = tn(t, r), {
2797
+ return t = pn(t, r), {
2781
2798
  tagName: t,
2782
2799
  tagExp: n
2783
2800
  };
2784
2801
  }
2785
- function tn(e, t) {
2786
- if (Le.includes(e)) throw Error(`[SECURITY] Invalid name: "${e}" is a reserved JavaScript keyword that could cause prototype pollution`);
2787
- return L.includes(e) ? t.onDangerousProperty(e) : e;
2802
+ function pn(e, t) {
2803
+ if (Re.includes(e)) throw Error(`[SECURITY] Invalid name: "${e}" is a reserved JavaScript keyword that could cause prototype pollution`);
2804
+ return I.includes(e) ? t.onDangerousProperty(e) : e;
2788
2805
  }
2789
2806
  //#endregion
2790
- //#region ../../node_modules/.pnpm/fast-xml-parser@5.7.2/node_modules/fast-xml-parser/src/xmlparser/node2json.js
2791
- var nn = K.getMetaDataSymbol();
2792
- function rn(e, t) {
2807
+ //#region ../../node_modules/.pnpm/fast-xml-parser@5.8.0/node_modules/fast-xml-parser/src/xmlparser/node2json.js
2808
+ var mn = G.getMetaDataSymbol();
2809
+ function hn(e, t) {
2793
2810
  if (!e || typeof e != "object") return {};
2794
2811
  if (!t) return e;
2795
2812
  let n = {};
@@ -2799,22 +2816,22 @@ function rn(e, t) {
2799
2816
  } else n[r] = e[r];
2800
2817
  return n;
2801
2818
  }
2802
- function an(e, t, n, r) {
2803
- return on(e, t, n, r);
2819
+ function gn(e, t, n, r) {
2820
+ return _n(e, t, n, r);
2804
2821
  }
2805
- function on(e, t, n, r) {
2822
+ function _n(e, t, n, r) {
2806
2823
  let i, a = {};
2807
2824
  for (let o = 0; o < e.length; o++) {
2808
- let s = e[o], c = sn(s);
2825
+ let s = e[o], c = vn(s);
2809
2826
  if (c !== void 0 && c !== t.textNodeName) {
2810
- let e = rn(s[":@"] || {}, t.attributeNamePrefix);
2827
+ let e = hn(s[":@"] || {}, t.attributeNamePrefix);
2811
2828
  n.push(c, e);
2812
2829
  }
2813
2830
  if (c === t.textNodeName) i === void 0 ? i = s[c] : i += "" + s[c];
2814
2831
  else if (c === void 0) continue;
2815
2832
  else if (s[c]) {
2816
- let e = on(s[c], t, n, r), i = ln(e, t);
2817
- if (s[":@"] ? cn(e, s[":@"], r, t) : Object.keys(e).length === 1 && e[t.textNodeName] !== void 0 && !t.alwaysCreateTextNode ? e = e[t.textNodeName] : Object.keys(e).length === 0 && (t.alwaysCreateTextNode ? e[t.textNodeName] = "" : e = ""), s[nn] !== void 0 && typeof e == "object" && e && (e[nn] = s[nn]), a[c] !== void 0 && Object.prototype.hasOwnProperty.call(a, c)) Array.isArray(a[c]) || (a[c] = [a[c]]), a[c].push(e);
2833
+ let e = _n(s[c], t, n, r), i = bn(e, t);
2834
+ if (Object.keys(e).length === 0 && t.alwaysCreateTextNode && (e[t.textNodeName] = ""), s[":@"] ? yn(e, s[":@"], r, t) : Object.keys(e).length === 1 && e[t.textNodeName] !== void 0 && !t.alwaysCreateTextNode ? e = e[t.textNodeName] : Object.keys(e).length === 0 && (t.alwaysCreateTextNode ? e[t.textNodeName] = "" : e = ""), s[mn] !== void 0 && typeof e == "object" && e && (e[mn] = s[mn]), a[c] !== void 0 && Object.prototype.hasOwnProperty.call(a, c)) Array.isArray(a[c]) || (a[c] = [a[c]]), a[c].push(e);
2818
2835
  else {
2819
2836
  let n = t.jPath ? r.toString() : r;
2820
2837
  t.isArray(c, n, i) ? a[c] = [e] : a[c] = e;
@@ -2824,14 +2841,14 @@ function on(e, t, n, r) {
2824
2841
  }
2825
2842
  return typeof i == "string" ? i.length > 0 && (a[t.textNodeName] = i) : i !== void 0 && (a[t.textNodeName] = i), a;
2826
2843
  }
2827
- function sn(e) {
2844
+ function vn(e) {
2828
2845
  let t = Object.keys(e);
2829
2846
  for (let e = 0; e < t.length; e++) {
2830
2847
  let n = t[e];
2831
2848
  if (n !== ":@") return n;
2832
2849
  }
2833
2850
  }
2834
- function cn(e, t, n, r) {
2851
+ function yn(e, t, n, r) {
2835
2852
  if (t) {
2836
2853
  let i = Object.keys(t), a = i.length;
2837
2854
  for (let o = 0; o < a; o++) {
@@ -2840,26 +2857,26 @@ function cn(e, t, n, r) {
2840
2857
  }
2841
2858
  }
2842
2859
  }
2843
- function ln(e, t) {
2860
+ function bn(e, t) {
2844
2861
  let { textNodeName: n } = t, r = Object.keys(e).length;
2845
2862
  return !!(r === 0 || r === 1 && (e[n] || typeof e[n] == "boolean" || e[n] === 0));
2846
2863
  }
2847
2864
  //#endregion
2848
- //#region ../../node_modules/.pnpm/fast-xml-parser@5.7.2/node_modules/fast-xml-parser/src/xmlparser/XMLParser.js
2849
- var un = class {
2865
+ //#region ../../node_modules/.pnpm/fast-xml-parser@5.8.0/node_modules/fast-xml-parser/src/xmlparser/XMLParser.js
2866
+ var xn = class {
2850
2867
  constructor(e) {
2851
- this.externalEntities = {}, this.options = Ct(e);
2868
+ this.externalEntities = {}, this.options = wt(e);
2852
2869
  }
2853
2870
  parse(e, t) {
2854
2871
  if (typeof e != "string" && e.toString) e = e.toString();
2855
2872
  else if (typeof e != "string") throw Error("XML data is accepted in String or Bytes[] form.");
2856
2873
  if (t) {
2857
2874
  t === !0 && (t = {});
2858
- let n = ze(e, t);
2875
+ let n = Be(e, t);
2859
2876
  if (n !== !0) throw Error(`${n.err.msg}:${n.err.line}:${n.err.col}`);
2860
2877
  }
2861
- let n = new Vt(this.options, this.externalEntities), r = n.parseXml(e);
2862
- return this.options.preserveOrder || r === void 0 ? r : an(r, this.options, n.matcher, n.readonlyMatcher);
2878
+ let n = new Zt(this.options, this.externalEntities), r = n.parseXml(e);
2879
+ return this.options.preserveOrder || r === void 0 ? r : gn(r, this.options, n.matcher, n.readonlyMatcher);
2863
2880
  }
2864
2881
  addEntity(e, t) {
2865
2882
  if (t.indexOf("&") !== -1) throw Error("Entity value can't have '&'");
@@ -2868,9 +2885,9 @@ var un = class {
2868
2885
  this.externalEntities[e] = t;
2869
2886
  }
2870
2887
  static getMetaDataSymbol() {
2871
- return K.getMetaDataSymbol();
2888
+ return G.getMetaDataSymbol();
2872
2889
  }
2873
- }, dn = class {
2890
+ }, Sn = class {
2874
2891
  axiosClient;
2875
2892
  baseURI;
2876
2893
  xmlParser;
@@ -2880,7 +2897,7 @@ var un = class {
2880
2897
  HASH_LENGTH = 32;
2881
2898
  ITERATION_COUNT = 1e4;
2882
2899
  constructor({ axiosClient: e, baseURI: t }) {
2883
- this.axiosClient = e, this.baseURI = t, this.xmlParser = new un();
2900
+ this.axiosClient = e, this.baseURI = t, this.xmlParser = new xn();
2884
2901
  }
2885
2902
  async signUrl(e, t) {
2886
2903
  let n = new URL(e);
@@ -2896,14 +2913,14 @@ var un = class {
2896
2913
  async createHashedKey(e) {
2897
2914
  return je(e, await this.getSignKey(), this.ITERATION_COUNT, this.HASH_LENGTH, this.ALGORITHM).toString("hex");
2898
2915
  }
2899
- }, fn = (e, t) => {
2916
+ }, Cn = (e, t) => {
2900
2917
  let n = new URL(e);
2901
2918
  n.pathname = [
2902
2919
  ...n.pathname.split("/"),
2903
2920
  "ocs",
2904
2921
  "v1.php"
2905
2922
  ].filter(Boolean).join("/");
2906
- let r = n.href, i = v(r, t), a = new dn({
2923
+ let r = n.href, i = v(r, t), a = new Sn({
2907
2924
  baseURI: e,
2908
2925
  axiosClient: t
2909
2926
  });
@@ -2913,4 +2930,4 @@ var un = class {
2913
2930
  };
2914
2931
  };
2915
2932
  //#endregion
2916
- export { v as a, X as i, un as n, Rt as r, fn as t };
2933
+ export { K as a, Z as i, xn as n, v as o, Jt as r, Cn as t };