@gisce/ooui 0.19.2 → 0.19.3

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/ooui.es.js CHANGED
@@ -180,12 +180,12 @@ class W extends Te {
180
180
  return this._id === e && (r = this), r;
181
181
  }
182
182
  }
183
- class vr extends Te {
183
+ class Er extends Te {
184
184
  findById(e) {
185
185
  return null;
186
186
  }
187
187
  }
188
- class Er extends W {
188
+ class xr extends W {
189
189
  constructor(e) {
190
190
  super({ ...e, nolabel: !0 }), this._text = "", this._align = "left", this._labelType = "default", this._labelSize = "text", this._fieldForLabel = null, e != null && e.fieldForLabel && (this._fieldForLabel = e.fieldForLabel), e.widget_props && (this.parsedWidgetProps.label_type && (this.labelType = this.parsedWidgetProps.label_type), this.parsedWidgetProps.label_size && (this.labelSize = this.parsedWidgetProps.label_size));
191
191
  }
@@ -263,13 +263,13 @@ class Je {
263
263
  }
264
264
  addWidget(e, r) {
265
265
  const i = [], n = r ? r.addLabel : !0;
266
- if (e instanceof vr) {
266
+ if (e instanceof Er) {
267
267
  this._rows.push([]), this._index++;
268
268
  return;
269
269
  }
270
270
  if (e.colspan > this._columns && (e.colspan = this._columns), e.readOnly = e.readOnly || this.readOnly, n && e instanceof W && !e.nolabel) {
271
271
  e.colspan > 1 && (e.colspan -= 1);
272
- const a = new Er({
272
+ const a = new xr({
273
273
  name: e.id + "_label",
274
274
  string: e.label,
275
275
  invisible: e.invisible,
@@ -365,8 +365,8 @@ const Ve = class extends Ce {
365
365
  return [].concat.apply([], this._container.rows);
366
366
  }
367
367
  };
368
- let xr = Ve;
369
- xr._defaultColspan = 3;
368
+ let Rr = Ve;
369
+ Rr._defaultColspan = 3;
370
370
  class Oi extends Ce {
371
371
  constructor(e) {
372
372
  super(e), this._icon = null, e.icon && (this._icon = e.icon);
@@ -488,7 +488,7 @@ class wt extends W {
488
488
  this._translatable = e;
489
489
  }
490
490
  }
491
- class Rr extends W {
491
+ class Ut extends W {
492
492
  constructor(e) {
493
493
  if (super(e), this._placeholder = "", this._mustExpand = !1, this._translatable = !1, e) {
494
494
  if (e.placeholder && (this._placeholder = $(e.placeholder)), e.colspan || (this._mustExpand = !0), e.height)
@@ -553,17 +553,19 @@ class Pi extends W {
553
553
  this._relation = e;
554
554
  }
555
555
  }
556
+ class Ni extends Ut {
557
+ }
556
558
  class Sr extends W {
557
559
  constructor(e) {
558
560
  super(e);
559
561
  }
560
562
  }
561
- class Ni extends W {
563
+ class Ii extends W {
562
564
  constructor(e) {
563
565
  super(e);
564
566
  }
565
567
  }
566
- class Ut extends W {
568
+ class Wt extends W {
567
569
  constructor(e) {
568
570
  if (super(e), this._integerDigits = 16, this._decimalDigits = 2, e != null && e.digits) {
569
571
  const [r, i] = e.digits;
@@ -583,21 +585,21 @@ class Ut extends W {
583
585
  this._decimalDigits = e;
584
586
  }
585
587
  }
586
- class Ii extends Ut {
588
+ class Bi extends Wt {
587
589
  }
588
- class Bi extends Ut {
590
+ class Li extends Wt {
589
591
  }
590
- class Li extends W {
592
+ class Ui extends W {
591
593
  constructor(e) {
592
594
  super(e);
593
595
  }
594
596
  }
595
- class Ui extends W {
597
+ class Wi extends W {
596
598
  constructor(e) {
597
599
  super(e);
598
600
  }
599
601
  }
600
- class Wi extends W {
602
+ class ji extends W {
601
603
  constructor(e) {
602
604
  super(e), this._size = 150, this._relation = "", this._mustExpand = !1, e && (e.size && (this._size = e.size), e.relation && (this._relation = e.relation), e.colspan || (this._mustExpand = !0));
603
605
  }
@@ -661,7 +663,7 @@ class Tr extends W {
661
663
  this._mustExpand = e;
662
664
  }
663
665
  }
664
- class ji extends Te {
666
+ class Yi extends Te {
665
667
  constructor(e) {
666
668
  super(e), this._label = "", this._icon = null, e && (e.string && (this._label = $(e.string)), e.icon && (this._icon = e.icon));
667
669
  }
@@ -681,9 +683,9 @@ class ji extends Te {
681
683
  return null;
682
684
  }
683
685
  }
684
- class Yi extends Pe {
686
+ class zi extends Pe {
685
687
  }
686
- class zi extends W {
688
+ class qi extends W {
687
689
  constructor(e) {
688
690
  super(e), this._filenameField = "", e && e.filename && (this._filenameField = e.filename);
689
691
  }
@@ -694,14 +696,14 @@ class zi extends W {
694
696
  this._filenameField = e;
695
697
  }
696
698
  }
697
- class qi extends W {
698
- }
699
699
  class Vi extends W {
700
+ }
701
+ class $i extends W {
700
702
  constructor(e) {
701
703
  super(e);
702
704
  }
703
705
  }
704
- class $i extends Tr {
706
+ class Hi extends Tr {
705
707
  constructor(e) {
706
708
  super(e), this._titleField = "", this._summaryField = "", this._parsedWidgetProps && (this._titleField = this._parsedWidgetProps.titleField, this._summaryField = this.parsedWidgetProps.summaryField);
707
709
  }
@@ -718,7 +720,7 @@ class $i extends Tr {
718
720
  this._summaryField = e;
719
721
  }
720
722
  }
721
- class Hi extends Pe {
723
+ class Gi extends Pe {
722
724
  constructor(e) {
723
725
  super(e), this._nolabel = !0, this._card = !1, this._icon = "", this._suffix = "", this._parsedWidgetProps && (this._card = this._parsedWidgetProps.card || !1, this._icon = this._parsedWidgetProps.icon || "", this._suffix = this._parsedWidgetProps.suffix || "");
724
726
  }
@@ -776,14 +778,14 @@ class Cr extends W {
776
778
  this._columns = e;
777
779
  }
778
780
  }
779
- class Gi extends Cr {
781
+ class Ji extends Cr {
780
782
  }
781
- class Ji extends Pe {
783
+ class Ki extends Pe {
782
784
  get colors() {
783
785
  return this._parsedWidgetProps.colors || {};
784
786
  }
785
787
  }
786
- class Ki extends Pe {
788
+ class Xi extends Pe {
787
789
  constructor(e) {
788
790
  super(e), this._direction = "horizontal", e && this.parsedWidgetProps.hasOwnProperty("direction") && (this._direction = this.parsedWidgetProps.direction);
789
791
  }
@@ -794,9 +796,9 @@ class Ki extends Pe {
794
796
  this._direction = e;
795
797
  }
796
798
  }
797
- class Xi extends Sr {
799
+ class Qi extends Sr {
798
800
  }
799
- class Qi extends W {
801
+ class Zi extends W {
800
802
  constructor(e) {
801
803
  super(e), this._relation = "", this._errorField = null, e && (e.relation && (this._relation = e.relation), this.parsedWidgetProps.hasOwnProperty("error_field") && (this._errorField = this.parsedWidgetProps.error_field));
802
804
  }
@@ -813,7 +815,7 @@ class Qi extends W {
813
815
  this._errorField = e;
814
816
  }
815
817
  }
816
- class Zi extends Rr {
818
+ class en extends Ut {
817
819
  constructor(e) {
818
820
  super(e), this._lang = null, e && this.parsedWidgetProps.lang && (this._lang = this.parsedWidgetProps.lang);
819
821
  }
@@ -824,11 +826,11 @@ class Zi extends Rr {
824
826
  this._lang = e;
825
827
  }
826
828
  }
827
- class Wt {
829
+ class jt {
828
830
  setWidgetClass(e) {
829
831
  switch (e) {
830
832
  case "notebook":
831
- this._widgetClass = xr;
833
+ this._widgetClass = Rr;
832
834
  break;
833
835
  case "page":
834
836
  this._widgetClass = Oi;
@@ -837,13 +839,13 @@ class Wt {
837
839
  this._widgetClass = Di;
838
840
  break;
839
841
  case "label":
840
- this._widgetClass = Er;
842
+ this._widgetClass = xr;
841
843
  break;
842
844
  case "char":
843
845
  this._widgetClass = wt;
844
846
  break;
845
847
  case "text":
846
- this._widgetClass = Rr;
848
+ this._widgetClass = Ut;
847
849
  break;
848
850
  case "button":
849
851
  this._widgetClass = Mi;
@@ -861,35 +863,38 @@ class Wt {
861
863
  this._widgetClass = Sr;
862
864
  break;
863
865
  case "integer":
864
- this._widgetClass = Ni;
866
+ this._widgetClass = Ii;
865
867
  break;
866
868
  case "float":
867
- this._widgetClass = Ut;
869
+ this._widgetClass = Wt;
868
870
  break;
869
871
  case "float_time":
870
- this._widgetClass = Ii;
872
+ this._widgetClass = Bi;
871
873
  break;
872
874
  case "date":
873
- this._widgetClass = Li;
875
+ this._widgetClass = Ui;
874
876
  break;
875
877
  case "datetime":
876
- this._widgetClass = Ui;
878
+ this._widgetClass = Wi;
877
879
  break;
878
880
  case "progressbar":
879
- this._widgetClass = Bi;
881
+ this._widgetClass = Li;
880
882
  break;
881
883
  case "many2many":
882
- this._widgetClass = Wi;
884
+ this._widgetClass = ji;
885
+ break;
886
+ case "markdown":
887
+ this._widgetClass = Ni;
883
888
  break;
884
889
  case "one2many":
885
890
  case "one2many_list":
886
891
  this._widgetClass = Tr;
887
892
  break;
888
893
  case "newline":
889
- this._widgetClass = vr;
894
+ this._widgetClass = Er;
890
895
  break;
891
896
  case "separator":
892
- this._widgetClass = ji;
897
+ this._widgetClass = Yi;
893
898
  break;
894
899
  case "url":
895
900
  this._widgetClass = wt;
@@ -898,43 +903,43 @@ class Wt {
898
903
  this._widgetClass = wt;
899
904
  break;
900
905
  case "reference":
901
- this._widgetClass = Yi;
906
+ this._widgetClass = zi;
902
907
  break;
903
908
  case "binary":
904
- this._widgetClass = zi;
909
+ this._widgetClass = qi;
905
910
  break;
906
911
  case "image":
907
- this._widgetClass = qi;
912
+ this._widgetClass = Vi;
908
913
  break;
909
914
  case "fiber_grid":
910
- this._widgetClass = Vi;
915
+ this._widgetClass = $i;
911
916
  break;
912
917
  case "timeline":
913
- this._widgetClass = $i;
918
+ this._widgetClass = Hi;
914
919
  break;
915
920
  case "indicator":
916
- this._widgetClass = Hi;
921
+ this._widgetClass = Gi;
917
922
  break;
918
923
  case "tags":
919
- this._widgetClass = Gi;
924
+ this._widgetClass = Ji;
920
925
  break;
921
926
  case "tag":
922
- this._widgetClass = Ji;
927
+ this._widgetClass = Ki;
923
928
  break;
924
929
  case "radio":
925
- this._widgetClass = Ki;
930
+ this._widgetClass = Xi;
926
931
  break;
927
932
  case "multicheckbox":
928
933
  this._widgetClass = Cr;
929
934
  break;
930
935
  case "switch":
931
- this._widgetClass = Xi;
936
+ this._widgetClass = Qi;
932
937
  break;
933
938
  case "steps":
934
- this._widgetClass = Qi;
939
+ this._widgetClass = Zi;
935
940
  break;
936
941
  case "codeeditor":
937
- this._widgetClass = Zi;
942
+ this._widgetClass = en;
938
943
  break;
939
944
  }
940
945
  }
@@ -956,7 +961,7 @@ class Wt {
956
961
  }
957
962
  }
958
963
  }
959
- const en = ({
964
+ const tn = ({
960
965
  fieldName: t,
961
966
  values: e,
962
967
  fields: r
@@ -981,7 +986,7 @@ const en = ({
981
986
  s[u] = f.some((_) => _ === !0);
982
987
  }
983
988
  return s;
984
- }, tn = ({
989
+ }, rn = ({
985
990
  states: t,
986
991
  values: e
987
992
  }) => {
@@ -990,7 +995,7 @@ const en = ({
990
995
  const r = t.split(",");
991
996
  return r.length === 0 ? {} : r.includes(e.state) ? {} : { invisible: !0 };
992
997
  };
993
- function rn({
998
+ function nn({
994
999
  values: t = {},
995
1000
  fieldName: e,
996
1001
  fields: r = {}
@@ -999,7 +1004,7 @@ function rn({
999
1004
  const n = ((i = r[e]) == null ? void 0 : i.type) || "passthrough";
1000
1005
  return n === "many2one" ? t[e] ? t[e][0] || null : !1 : n === "one2many" || n === "many2many" ? t[e].map((s) => s.id) : t != null && t[e] ? t == null ? void 0 : t[e] : e.indexOf("'") !== -1 ? e : parseInt(e);
1001
1006
  }
1002
- const nn = ({
1007
+ const an = ({
1003
1008
  context: t,
1004
1009
  values: e,
1005
1010
  fields: r
@@ -1007,9 +1012,9 @@ const nn = ({
1007
1012
  try {
1008
1013
  if (!t)
1009
1014
  return;
1010
- if (sn(t) || typeof t != "string")
1015
+ if (on(t) || typeof t != "string")
1011
1016
  return t;
1012
- const s = an(t);
1017
+ const s = sn(t);
1013
1018
  if (s !== null)
1014
1019
  return s;
1015
1020
  if (t.trim().length === 0)
@@ -1019,7 +1024,7 @@ const nn = ({
1019
1024
  return w.forEach((m) => {
1020
1025
  const E = m[1];
1021
1026
  if (m[1].indexOf("'") === -1 && m[1] !== "true" && m[1] !== "false") {
1022
- const S = rn({
1027
+ const S = nn({
1023
1028
  values: e,
1024
1029
  fields: r,
1025
1030
  fieldName: E === "active_id" ? "id" : E
@@ -1035,17 +1040,17 @@ const nn = ({
1035
1040
  return;
1036
1041
  }
1037
1042
  };
1038
- function an(t) {
1043
+ function sn(t) {
1039
1044
  try {
1040
1045
  return JSON.parse(t);
1041
1046
  } catch {
1042
1047
  return null;
1043
1048
  }
1044
1049
  }
1045
- function sn(t) {
1050
+ function on(t) {
1046
1051
  return typeof t == "object" && t !== null && typeof t != "string";
1047
1052
  }
1048
- const on = (t) => {
1053
+ const ln = (t) => {
1049
1054
  const e = t.trim().replace(")", "").split("("), r = e[0], n = e[1].split(",").map((s) => s.trim());
1050
1055
  return {
1051
1056
  method: r,
@@ -1227,7 +1232,7 @@ function Mr(t) {
1227
1232
  }
1228
1233
  }
1229
1234
  }
1230
- function ln(t) {
1235
+ function un(t) {
1231
1236
  if (ue === clearTimeout)
1232
1237
  return clearTimeout(t);
1233
1238
  if ((ue === Dr || !ue) && clearTimeout)
@@ -1243,22 +1248,22 @@ function ln(t) {
1243
1248
  }
1244
1249
  }
1245
1250
  var ae = [], Ee = !1, de, $e = -1;
1246
- function un() {
1251
+ function fn() {
1247
1252
  !Ee || !de || (Ee = !1, de.length ? ae = de.concat(ae) : $e = -1, ae.length && kr());
1248
1253
  }
1249
1254
  function kr() {
1250
1255
  if (!Ee) {
1251
- var t = Mr(un);
1256
+ var t = Mr(fn);
1252
1257
  Ee = !0;
1253
1258
  for (var e = ae.length; e; ) {
1254
1259
  for (de = ae, ae = []; ++$e < e; )
1255
1260
  de && de[$e].run();
1256
1261
  $e = -1, e = ae.length;
1257
1262
  }
1258
- de = null, Ee = !1, ln(t);
1263
+ de = null, Ee = !1, un(t);
1259
1264
  }
1260
1265
  }
1261
- function fn(t) {
1266
+ function cn(t) {
1262
1267
  var e = new Array(arguments.length - 1);
1263
1268
  if (arguments.length > 1)
1264
1269
  for (var r = 1; r < arguments.length; r++)
@@ -1271,60 +1276,60 @@ function Pr(t, e) {
1271
1276
  Pr.prototype.run = function() {
1272
1277
  this.fun.apply(null, this.array);
1273
1278
  };
1274
- var cn = "browser", hn = "browser", dn = !0, _n = {}, gn = [], pn = "", yn = {}, wn = {}, bn = {};
1279
+ var hn = "browser", dn = "browser", _n = !0, gn = {}, pn = [], yn = "", wn = {}, bn = {}, mn = {};
1275
1280
  function ge() {
1276
1281
  }
1277
- var mn = ge, vn = ge, En = ge, xn = ge, Rn = ge, Sn = ge, Tn = ge;
1278
- function Cn(t) {
1282
+ var vn = ge, En = ge, xn = ge, Rn = ge, Sn = ge, Tn = ge, Cn = ge;
1283
+ function An(t) {
1279
1284
  throw new Error("process.binding is not supported");
1280
1285
  }
1281
- function An() {
1286
+ function Fn() {
1282
1287
  return "/";
1283
1288
  }
1284
- function Fn(t) {
1289
+ function On(t) {
1285
1290
  throw new Error("process.chdir is not supported");
1286
1291
  }
1287
- function On() {
1292
+ function Dn() {
1288
1293
  return 0;
1289
1294
  }
1290
- var ve = xe.performance || {}, Dn = ve.now || ve.mozNow || ve.msNow || ve.oNow || ve.webkitNow || function() {
1295
+ var ve = xe.performance || {}, Mn = ve.now || ve.mozNow || ve.msNow || ve.oNow || ve.webkitNow || function() {
1291
1296
  return new Date().getTime();
1292
1297
  };
1293
- function Mn(t) {
1294
- var e = Dn.call(ve) * 1e-3, r = Math.floor(e), i = Math.floor(e % 1 * 1e9);
1298
+ function kn(t) {
1299
+ var e = Mn.call(ve) * 1e-3, r = Math.floor(e), i = Math.floor(e % 1 * 1e9);
1295
1300
  return t && (r = r - t[0], i = i - t[1], i < 0 && (r--, i += 1e9)), [r, i];
1296
1301
  }
1297
- var kn = new Date();
1298
- function Pn() {
1299
- var t = new Date(), e = t - kn;
1302
+ var Pn = new Date();
1303
+ function Nn() {
1304
+ var t = new Date(), e = t - Pn;
1300
1305
  return e / 1e3;
1301
1306
  }
1302
1307
  var N = {
1303
- nextTick: fn,
1304
- title: cn,
1305
- browser: dn,
1306
- env: _n,
1307
- argv: gn,
1308
- version: pn,
1309
- versions: yn,
1310
- on: mn,
1311
- addListener: vn,
1312
- once: En,
1313
- off: xn,
1314
- removeListener: Rn,
1315
- removeAllListeners: Sn,
1316
- emit: Tn,
1317
- binding: Cn,
1318
- cwd: An,
1319
- chdir: Fn,
1320
- umask: On,
1321
- hrtime: Mn,
1322
- platform: hn,
1323
- release: wn,
1324
- config: bn,
1325
- uptime: Pn
1308
+ nextTick: cn,
1309
+ title: hn,
1310
+ browser: _n,
1311
+ env: gn,
1312
+ argv: pn,
1313
+ version: yn,
1314
+ versions: wn,
1315
+ on: vn,
1316
+ addListener: En,
1317
+ once: xn,
1318
+ off: Rn,
1319
+ removeListener: Sn,
1320
+ removeAllListeners: Tn,
1321
+ emit: Cn,
1322
+ binding: An,
1323
+ cwd: Fn,
1324
+ chdir: On,
1325
+ umask: Dn,
1326
+ hrtime: kn,
1327
+ platform: dn,
1328
+ release: bn,
1329
+ config: mn,
1330
+ uptime: Nn
1326
1331
  }, Ke = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
1327
- function jt(t) {
1332
+ function Yt(t) {
1328
1333
  var e = t.default;
1329
1334
  if (typeof e == "function") {
1330
1335
  var r = function() {
@@ -1343,41 +1348,41 @@ function jt(t) {
1343
1348
  });
1344
1349
  }), r;
1345
1350
  }
1346
- var Yt = { exports: {} }, Mt = { exports: {} };
1347
- const Nn = {}, In = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1351
+ var zt = { exports: {} }, Mt = { exports: {} };
1352
+ const In = {}, Bn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1348
1353
  __proto__: null,
1349
- default: Nn
1350
- }, Symbol.toStringTag, { value: "Module" })), Nr = /* @__PURE__ */ jt(In);
1351
- var Ir = Nr.EventEmitter, te = [], K = [], Bn = typeof Uint8Array < "u" ? Uint8Array : Array, zt = !1;
1354
+ default: In
1355
+ }, Symbol.toStringTag, { value: "Module" })), Nr = /* @__PURE__ */ Yt(Bn);
1356
+ var Ir = Nr.EventEmitter, te = [], K = [], Ln = typeof Uint8Array < "u" ? Uint8Array : Array, qt = !1;
1352
1357
  function Br() {
1353
- zt = !0;
1358
+ qt = !0;
1354
1359
  for (var t = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", e = 0, r = t.length; e < r; ++e)
1355
1360
  te[e] = t[e], K[t.charCodeAt(e)] = e;
1356
1361
  K["-".charCodeAt(0)] = 62, K["_".charCodeAt(0)] = 63;
1357
1362
  }
1358
- function Ln(t) {
1359
- zt || Br();
1363
+ function Un(t) {
1364
+ qt || Br();
1360
1365
  var e, r, i, n, s, a, u = t.length;
1361
1366
  if (u % 4 > 0)
1362
1367
  throw new Error("Invalid string. Length must be a multiple of 4");
1363
- s = t[u - 2] === "=" ? 2 : t[u - 1] === "=" ? 1 : 0, a = new Bn(u * 3 / 4 - s), i = s > 0 ? u - 4 : u;
1368
+ s = t[u - 2] === "=" ? 2 : t[u - 1] === "=" ? 1 : 0, a = new Ln(u * 3 / 4 - s), i = s > 0 ? u - 4 : u;
1364
1369
  var f = 0;
1365
1370
  for (e = 0, r = 0; e < i; e += 4, r += 3)
1366
1371
  n = K[t.charCodeAt(e)] << 18 | K[t.charCodeAt(e + 1)] << 12 | K[t.charCodeAt(e + 2)] << 6 | K[t.charCodeAt(e + 3)], a[f++] = n >> 16 & 255, a[f++] = n >> 8 & 255, a[f++] = n & 255;
1367
1372
  return s === 2 ? (n = K[t.charCodeAt(e)] << 2 | K[t.charCodeAt(e + 1)] >> 4, a[f++] = n & 255) : s === 1 && (n = K[t.charCodeAt(e)] << 10 | K[t.charCodeAt(e + 1)] << 4 | K[t.charCodeAt(e + 2)] >> 2, a[f++] = n >> 8 & 255, a[f++] = n & 255), a;
1368
1373
  }
1369
- function Un(t) {
1374
+ function Wn(t) {
1370
1375
  return te[t >> 18 & 63] + te[t >> 12 & 63] + te[t >> 6 & 63] + te[t & 63];
1371
1376
  }
1372
- function Wn(t, e, r) {
1377
+ function jn(t, e, r) {
1373
1378
  for (var i, n = [], s = e; s < r; s += 3)
1374
- i = (t[s] << 16) + (t[s + 1] << 8) + t[s + 2], n.push(Un(i));
1379
+ i = (t[s] << 16) + (t[s + 1] << 8) + t[s + 2], n.push(Wn(i));
1375
1380
  return n.join("");
1376
1381
  }
1377
- function rr(t) {
1378
- zt || Br();
1382
+ function ir(t) {
1383
+ qt || Br();
1379
1384
  for (var e, r = t.length, i = r % 3, n = "", s = [], a = 16383, u = 0, f = r - i; u < f; u += a)
1380
- s.push(Wn(t, u, u + a > f ? f : u + a));
1385
+ s.push(jn(t, u, u + a > f ? f : u + a));
1381
1386
  return i === 1 ? (e = t[r - 1], n += te[e >> 2], n += te[e << 4 & 63], n += "==") : i === 2 && (e = (t[r - 2] << 8) + t[r - 1], n += te[e >> 10], n += te[e >> 4 & 63], n += te[e << 2 & 63], n += "="), s.push(n), s.join("");
1382
1387
  }
1383
1388
  function it(t, e, r, i, n) {
@@ -1403,8 +1408,8 @@ function Lr(t, e, r, i, n, s) {
1403
1408
  ;
1404
1409
  t[r + m - E] |= S * 128;
1405
1410
  }
1406
- var jn = {}.toString, Ur = Array.isArray || function(t) {
1407
- return jn.call(t) == "[object Array]";
1411
+ var Yn = {}.toString, Ur = Array.isArray || function(t) {
1412
+ return Yn.call(t) == "[object Array]";
1408
1413
  };
1409
1414
  /*!
1410
1415
  * The buffer module from node.js, for the browser.
@@ -1414,7 +1419,7 @@ var jn = {}.toString, Ur = Array.isArray || function(t) {
1414
1419
  */
1415
1420
  var Wr = 50;
1416
1421
  y.TYPED_ARRAY_SUPPORT = xe.TYPED_ARRAY_SUPPORT !== void 0 ? xe.TYPED_ARRAY_SUPPORT : !0;
1417
- var Yn = Xe();
1422
+ var zn = Xe();
1418
1423
  function Xe() {
1419
1424
  return y.TYPED_ARRAY_SUPPORT ? 2147483647 : 1073741823;
1420
1425
  }
@@ -1431,7 +1436,7 @@ function y(t, e, r) {
1431
1436
  throw new Error(
1432
1437
  "If encoding is specified then the first argument must be a string"
1433
1438
  );
1434
- return qt(this, t);
1439
+ return Vt(this, t);
1435
1440
  }
1436
1441
  return jr(this, t, e, r);
1437
1442
  }
@@ -1442,7 +1447,7 @@ y._augment = function(t) {
1442
1447
  function jr(t, e, r, i) {
1443
1448
  if (typeof e == "number")
1444
1449
  throw new TypeError('"value" argument must not be a number');
1445
- return typeof ArrayBuffer < "u" && e instanceof ArrayBuffer ? Vn(t, e, r, i) : typeof e == "string" ? qn(t, e, r) : $n(t, e);
1450
+ return typeof ArrayBuffer < "u" && e instanceof ArrayBuffer ? $n(t, e, r, i) : typeof e == "string" ? Vn(t, e, r) : Hn(t, e);
1446
1451
  }
1447
1452
  y.from = function(t, e, r) {
1448
1453
  return jr(null, t, e, r);
@@ -1454,25 +1459,25 @@ function Yr(t) {
1454
1459
  if (t < 0)
1455
1460
  throw new RangeError('"size" argument must not be negative');
1456
1461
  }
1457
- function zn(t, e, r, i) {
1462
+ function qn(t, e, r, i) {
1458
1463
  return Yr(e), e <= 0 ? se(t, e) : r !== void 0 ? typeof i == "string" ? se(t, e).fill(r, i) : se(t, e).fill(r) : se(t, e);
1459
1464
  }
1460
1465
  y.alloc = function(t, e, r) {
1461
- return zn(null, t, e, r);
1466
+ return qn(null, t, e, r);
1462
1467
  };
1463
- function qt(t, e) {
1464
- if (Yr(e), t = se(t, e < 0 ? 0 : Vt(e) | 0), !y.TYPED_ARRAY_SUPPORT)
1468
+ function Vt(t, e) {
1469
+ if (Yr(e), t = se(t, e < 0 ? 0 : $t(e) | 0), !y.TYPED_ARRAY_SUPPORT)
1465
1470
  for (var r = 0; r < e; ++r)
1466
1471
  t[r] = 0;
1467
1472
  return t;
1468
1473
  }
1469
1474
  y.allocUnsafe = function(t) {
1470
- return qt(null, t);
1475
+ return Vt(null, t);
1471
1476
  };
1472
1477
  y.allocUnsafeSlow = function(t) {
1473
- return qt(null, t);
1478
+ return Vt(null, t);
1474
1479
  };
1475
- function qn(t, e, r) {
1480
+ function Vn(t, e, r) {
1476
1481
  if ((typeof r != "string" || r === "") && (r = "utf8"), !y.isEncoding(r))
1477
1482
  throw new TypeError('"encoding" must be a valid string encoding');
1478
1483
  var i = zr(e, r) | 0;
@@ -1481,38 +1486,38 @@ function qn(t, e, r) {
1481
1486
  return n !== i && (t = t.slice(0, n)), t;
1482
1487
  }
1483
1488
  function kt(t, e) {
1484
- var r = e.length < 0 ? 0 : Vt(e.length) | 0;
1489
+ var r = e.length < 0 ? 0 : $t(e.length) | 0;
1485
1490
  t = se(t, r);
1486
1491
  for (var i = 0; i < r; i += 1)
1487
1492
  t[i] = e[i] & 255;
1488
1493
  return t;
1489
1494
  }
1490
- function Vn(t, e, r, i) {
1495
+ function $n(t, e, r, i) {
1491
1496
  if (e.byteLength, r < 0 || e.byteLength < r)
1492
1497
  throw new RangeError("'offset' is out of bounds");
1493
1498
  if (e.byteLength < r + (i || 0))
1494
1499
  throw new RangeError("'length' is out of bounds");
1495
1500
  return r === void 0 && i === void 0 ? e = new Uint8Array(e) : i === void 0 ? e = new Uint8Array(e, r) : e = new Uint8Array(e, r, i), y.TYPED_ARRAY_SUPPORT ? (t = e, t.__proto__ = y.prototype) : t = kt(t, e), t;
1496
1501
  }
1497
- function $n(t, e) {
1502
+ function Hn(t, e) {
1498
1503
  if (ne(e)) {
1499
- var r = Vt(e.length) | 0;
1504
+ var r = $t(e.length) | 0;
1500
1505
  return t = se(t, r), t.length === 0 || e.copy(t, 0, 0, r), t;
1501
1506
  }
1502
1507
  if (e) {
1503
1508
  if (typeof ArrayBuffer < "u" && e.buffer instanceof ArrayBuffer || "length" in e)
1504
- return typeof e.length != "number" || ha(e.length) ? se(t, 0) : kt(t, e);
1509
+ return typeof e.length != "number" || da(e.length) ? se(t, 0) : kt(t, e);
1505
1510
  if (e.type === "Buffer" && Ur(e.data))
1506
1511
  return kt(t, e.data);
1507
1512
  }
1508
1513
  throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.");
1509
1514
  }
1510
- function Vt(t) {
1515
+ function $t(t) {
1511
1516
  if (t >= Xe())
1512
1517
  throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x" + Xe().toString(16) + " bytes");
1513
1518
  return t | 0;
1514
1519
  }
1515
- function Hn(t) {
1520
+ function Gn(t) {
1516
1521
  return +t != t && (t = 0), y.alloc(+t);
1517
1522
  }
1518
1523
  y.isBuffer = Xr;
@@ -1602,29 +1607,29 @@ function zr(t, e) {
1602
1607
  }
1603
1608
  }
1604
1609
  y.byteLength = zr;
1605
- function Gn(t, e, r) {
1610
+ function Jn(t, e, r) {
1606
1611
  var i = !1;
1607
1612
  if ((e === void 0 || e < 0) && (e = 0), e > this.length || ((r === void 0 || r > this.length) && (r = this.length), r <= 0) || (r >>>= 0, e >>>= 0, r <= e))
1608
1613
  return "";
1609
1614
  for (t || (t = "utf8"); ; )
1610
1615
  switch (t) {
1611
1616
  case "hex":
1612
- return na(this, e, r);
1617
+ return aa(this, e, r);
1613
1618
  case "utf8":
1614
1619
  case "utf-8":
1615
1620
  return $r(this, e, r);
1616
1621
  case "ascii":
1617
- return ra(this, e, r);
1622
+ return ia(this, e, r);
1618
1623
  case "latin1":
1619
1624
  case "binary":
1620
- return ia(this, e, r);
1625
+ return na(this, e, r);
1621
1626
  case "base64":
1622
- return ea(this, e, r);
1627
+ return ta(this, e, r);
1623
1628
  case "ucs2":
1624
1629
  case "ucs-2":
1625
1630
  case "utf16le":
1626
1631
  case "utf-16le":
1627
- return aa(this, e, r);
1632
+ return sa(this, e, r);
1628
1633
  default:
1629
1634
  if (i)
1630
1635
  throw new TypeError("Unknown encoding: " + t);
@@ -1662,7 +1667,7 @@ y.prototype.swap64 = function() {
1662
1667
  };
1663
1668
  y.prototype.toString = function() {
1664
1669
  var e = this.length | 0;
1665
- return e === 0 ? "" : arguments.length === 0 ? $r(this, 0, e) : Gn.apply(this, arguments);
1670
+ return e === 0 ? "" : arguments.length === 0 ? $r(this, 0, e) : Jn.apply(this, arguments);
1666
1671
  };
1667
1672
  y.prototype.equals = function(e) {
1668
1673
  if (!ne(e))
@@ -1706,12 +1711,12 @@ function qr(t, e, r, i, n) {
1706
1711
  else
1707
1712
  return -1;
1708
1713
  if (typeof e == "string" && (e = y.from(e, i)), ne(e))
1709
- return e.length === 0 ? -1 : ir(t, e, r, i, n);
1714
+ return e.length === 0 ? -1 : nr(t, e, r, i, n);
1710
1715
  if (typeof e == "number")
1711
- return e = e & 255, y.TYPED_ARRAY_SUPPORT && typeof Uint8Array.prototype.indexOf == "function" ? n ? Uint8Array.prototype.indexOf.call(t, e, r) : Uint8Array.prototype.lastIndexOf.call(t, e, r) : ir(t, [e], r, i, n);
1716
+ return e = e & 255, y.TYPED_ARRAY_SUPPORT && typeof Uint8Array.prototype.indexOf == "function" ? n ? Uint8Array.prototype.indexOf.call(t, e, r) : Uint8Array.prototype.lastIndexOf.call(t, e, r) : nr(t, [e], r, i, n);
1712
1717
  throw new TypeError("val must be string, number or Buffer");
1713
1718
  }
1714
- function ir(t, e, r, i, n) {
1719
+ function nr(t, e, r, i, n) {
1715
1720
  var s = 1, a = t.length, u = e.length;
1716
1721
  if (i !== void 0 && (i = String(i).toLowerCase(), i === "ucs2" || i === "ucs-2" || i === "utf16le" || i === "utf-16le")) {
1717
1722
  if (t.length < 2 || e.length < 2)
@@ -1751,7 +1756,7 @@ y.prototype.indexOf = function(e, r, i) {
1751
1756
  y.prototype.lastIndexOf = function(e, r, i) {
1752
1757
  return qr(this, e, r, i, !1);
1753
1758
  };
1754
- function Jn(t, e, r, i) {
1759
+ function Kn(t, e, r, i) {
1755
1760
  r = Number(r) || 0;
1756
1761
  var n = t.length - r;
1757
1762
  i ? (i = Number(i), i > n && (i = n)) : i = n;
@@ -1767,20 +1772,20 @@ function Jn(t, e, r, i) {
1767
1772
  }
1768
1773
  return a;
1769
1774
  }
1770
- function Kn(t, e, r, i) {
1775
+ function Xn(t, e, r, i) {
1771
1776
  return st(Qe(e, t.length - r), t, r, i);
1772
1777
  }
1773
1778
  function Vr(t, e, r, i) {
1774
- return st(fa(e), t, r, i);
1779
+ return st(ca(e), t, r, i);
1775
1780
  }
1776
- function Xn(t, e, r, i) {
1781
+ function Qn(t, e, r, i) {
1777
1782
  return Vr(t, e, r, i);
1778
1783
  }
1779
- function Qn(t, e, r, i) {
1784
+ function Zn(t, e, r, i) {
1780
1785
  return st(Kr(e), t, r, i);
1781
1786
  }
1782
- function Zn(t, e, r, i) {
1783
- return st(ca(e, t.length - r), t, r, i);
1787
+ function ea(t, e, r, i) {
1788
+ return st(ha(e, t.length - r), t, r, i);
1784
1789
  }
1785
1790
  y.prototype.write = function(e, r, i, n) {
1786
1791
  if (r === void 0)
@@ -1800,22 +1805,22 @@ y.prototype.write = function(e, r, i, n) {
1800
1805
  for (var a = !1; ; )
1801
1806
  switch (n) {
1802
1807
  case "hex":
1803
- return Jn(this, e, r, i);
1808
+ return Kn(this, e, r, i);
1804
1809
  case "utf8":
1805
1810
  case "utf-8":
1806
- return Kn(this, e, r, i);
1811
+ return Xn(this, e, r, i);
1807
1812
  case "ascii":
1808
1813
  return Vr(this, e, r, i);
1809
1814
  case "latin1":
1810
1815
  case "binary":
1811
- return Xn(this, e, r, i);
1812
- case "base64":
1813
1816
  return Qn(this, e, r, i);
1817
+ case "base64":
1818
+ return Zn(this, e, r, i);
1814
1819
  case "ucs2":
1815
1820
  case "ucs-2":
1816
1821
  case "utf16le":
1817
1822
  case "utf-16le":
1818
- return Zn(this, e, r, i);
1823
+ return ea(this, e, r, i);
1819
1824
  default:
1820
1825
  if (a)
1821
1826
  throw new TypeError("Unknown encoding: " + n);
@@ -1828,8 +1833,8 @@ y.prototype.toJSON = function() {
1828
1833
  data: Array.prototype.slice.call(this._arr || this, 0)
1829
1834
  };
1830
1835
  };
1831
- function ea(t, e, r) {
1832
- return e === 0 && r === t.length ? rr(t) : rr(t.slice(e, r));
1836
+ function ta(t, e, r) {
1837
+ return e === 0 && r === t.length ? ir(t) : ir(t.slice(e, r));
1833
1838
  }
1834
1839
  function $r(t, e, r) {
1835
1840
  r = Math.min(t.length, r);
@@ -1853,42 +1858,42 @@ function $r(t, e, r) {
1853
1858
  }
1854
1859
  a === null ? (a = 65533, u = 1) : a > 65535 && (a -= 65536, i.push(a >>> 10 & 1023 | 55296), a = 56320 | a & 1023), i.push(a), n += u;
1855
1860
  }
1856
- return ta(i);
1861
+ return ra(i);
1857
1862
  }
1858
- var nr = 4096;
1859
- function ta(t) {
1863
+ var ar = 4096;
1864
+ function ra(t) {
1860
1865
  var e = t.length;
1861
- if (e <= nr)
1866
+ if (e <= ar)
1862
1867
  return String.fromCharCode.apply(String, t);
1863
1868
  for (var r = "", i = 0; i < e; )
1864
1869
  r += String.fromCharCode.apply(
1865
1870
  String,
1866
- t.slice(i, i += nr)
1871
+ t.slice(i, i += ar)
1867
1872
  );
1868
1873
  return r;
1869
1874
  }
1870
- function ra(t, e, r) {
1875
+ function ia(t, e, r) {
1871
1876
  var i = "";
1872
1877
  r = Math.min(t.length, r);
1873
1878
  for (var n = e; n < r; ++n)
1874
1879
  i += String.fromCharCode(t[n] & 127);
1875
1880
  return i;
1876
1881
  }
1877
- function ia(t, e, r) {
1882
+ function na(t, e, r) {
1878
1883
  var i = "";
1879
1884
  r = Math.min(t.length, r);
1880
1885
  for (var n = e; n < r; ++n)
1881
1886
  i += String.fromCharCode(t[n]);
1882
1887
  return i;
1883
1888
  }
1884
- function na(t, e, r) {
1889
+ function aa(t, e, r) {
1885
1890
  var i = t.length;
1886
1891
  (!e || e < 0) && (e = 0), (!r || r < 0 || r > i) && (r = i);
1887
1892
  for (var n = "", s = e; s < r; ++s)
1888
- n += ua(t[s]);
1893
+ n += fa(t[s]);
1889
1894
  return n;
1890
1895
  }
1891
- function aa(t, e, r) {
1896
+ function sa(t, e, r) {
1892
1897
  for (var i = t.slice(e, r), n = "", s = 0; s < i.length; s += 2)
1893
1898
  n += String.fromCharCode(i[s] + i[s + 1] * 256);
1894
1899
  return n;
@@ -2148,18 +2153,18 @@ y.prototype.fill = function(e, r, i, n) {
2148
2153
  }
2149
2154
  return this;
2150
2155
  };
2151
- var sa = /[^+\/0-9A-Za-z-_]/g;
2152
- function oa(t) {
2153
- if (t = la(t).replace(sa, ""), t.length < 2)
2156
+ var oa = /[^+\/0-9A-Za-z-_]/g;
2157
+ function la(t) {
2158
+ if (t = ua(t).replace(oa, ""), t.length < 2)
2154
2159
  return "";
2155
2160
  for (; t.length % 4 !== 0; )
2156
2161
  t = t + "=";
2157
2162
  return t;
2158
2163
  }
2159
- function la(t) {
2164
+ function ua(t) {
2160
2165
  return t.trim ? t.trim() : t.replace(/^\s+|\s+$/g, "");
2161
2166
  }
2162
- function ua(t) {
2167
+ function fa(t) {
2163
2168
  return t < 16 ? "0" + t.toString(16) : t.toString(16);
2164
2169
  }
2165
2170
  function Qe(t, e) {
@@ -2217,44 +2222,44 @@ function Qe(t, e) {
2217
2222
  }
2218
2223
  return s;
2219
2224
  }
2220
- function fa(t) {
2225
+ function ca(t) {
2221
2226
  for (var e = [], r = 0; r < t.length; ++r)
2222
2227
  e.push(t.charCodeAt(r) & 255);
2223
2228
  return e;
2224
2229
  }
2225
- function ca(t, e) {
2230
+ function ha(t, e) {
2226
2231
  for (var r, i, n, s = [], a = 0; a < t.length && !((e -= 2) < 0); ++a)
2227
2232
  r = t.charCodeAt(a), i = r >> 8, n = r % 256, s.push(n), s.push(i);
2228
2233
  return s;
2229
2234
  }
2230
2235
  function Kr(t) {
2231
- return Ln(oa(t));
2236
+ return Un(la(t));
2232
2237
  }
2233
2238
  function st(t, e, r, i) {
2234
2239
  for (var n = 0; n < i && !(n + r >= e.length || n >= t.length); ++n)
2235
2240
  e[n + r] = t[n];
2236
2241
  return n;
2237
2242
  }
2238
- function ha(t) {
2243
+ function da(t) {
2239
2244
  return t !== t;
2240
2245
  }
2241
2246
  function Xr(t) {
2242
- return t != null && (!!t._isBuffer || Qr(t) || da(t));
2247
+ return t != null && (!!t._isBuffer || Qr(t) || _a(t));
2243
2248
  }
2244
2249
  function Qr(t) {
2245
2250
  return !!t.constructor && typeof t.constructor.isBuffer == "function" && t.constructor.isBuffer(t);
2246
2251
  }
2247
- function da(t) {
2252
+ function _a(t) {
2248
2253
  return typeof t.readFloatLE == "function" && typeof t.slice == "function" && Qr(t.slice(0, 0));
2249
2254
  }
2250
- const _a = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2255
+ const ga = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2251
2256
  __proto__: null,
2252
2257
  Buffer: y,
2253
2258
  INSPECT_MAX_BYTES: Wr,
2254
- SlowBuffer: Hn,
2259
+ SlowBuffer: Gn,
2255
2260
  isBuffer: Xr,
2256
- kMaxLength: Yn
2257
- }, Symbol.toStringTag, { value: "Module" })), ot = /* @__PURE__ */ jt(_a);
2261
+ kMaxLength: zn
2262
+ }, Symbol.toStringTag, { value: "Module" })), ot = /* @__PURE__ */ Yt(ga);
2258
2263
  var Pt;
2259
2264
  typeof Object.create == "function" ? Pt = function(e, r) {
2260
2265
  e.super_ = r, e.prototype = Object.create(r.prototype, {
@@ -2272,14 +2277,14 @@ typeof Object.create == "function" ? Pt = function(e, r) {
2272
2277
  i.prototype = r.prototype, e.prototype = new i(), e.prototype.constructor = e;
2273
2278
  };
2274
2279
  const Zr = Pt;
2275
- var ga = /%[sdj%]/g;
2280
+ var pa = /%[sdj%]/g;
2276
2281
  function lt(t) {
2277
2282
  if (!Ie(t)) {
2278
2283
  for (var e = [], r = 0; r < arguments.length; r++)
2279
2284
  e.push(ie(arguments[r]));
2280
2285
  return e.join(" ");
2281
2286
  }
2282
- for (var r = 1, i = arguments, n = i.length, s = String(t).replace(ga, function(u) {
2287
+ for (var r = 1, i = arguments, n = i.length, s = String(t).replace(pa, function(u) {
2283
2288
  if (u === "%%")
2284
2289
  return "%";
2285
2290
  if (r >= n)
@@ -2302,10 +2307,10 @@ function lt(t) {
2302
2307
  Ne(a) || !pe(a) ? s += " " + a : s += " " + ie(a);
2303
2308
  return s;
2304
2309
  }
2305
- function $t(t, e) {
2310
+ function Ht(t, e) {
2306
2311
  if (re(xe.process))
2307
2312
  return function() {
2308
- return $t(t, e).apply(this, arguments);
2313
+ return Ht(t, e).apply(this, arguments);
2309
2314
  };
2310
2315
  if (N.noDeprecation === !0)
2311
2316
  return t;
@@ -2337,9 +2342,9 @@ function ei(t) {
2337
2342
  function ie(t, e) {
2338
2343
  var r = {
2339
2344
  seen: [],
2340
- stylize: ya
2345
+ stylize: wa
2341
2346
  };
2342
- return arguments.length >= 3 && (r.depth = arguments[2]), arguments.length >= 4 && (r.colors = arguments[3]), ut(e) ? r.showHidden = e : e && Kt(r, e), re(r.showHidden) && (r.showHidden = !1), re(r.depth) && (r.depth = 2), re(r.colors) && (r.colors = !1), re(r.customInspect) && (r.customInspect = !0), r.colors && (r.stylize = pa), Ze(r, t, r.depth);
2347
+ return arguments.length >= 3 && (r.depth = arguments[2]), arguments.length >= 4 && (r.colors = arguments[3]), ut(e) ? r.showHidden = e : e && Xt(r, e), re(r.showHidden) && (r.showHidden = !1), re(r.depth) && (r.depth = 2), re(r.colors) && (r.colors = !1), re(r.customInspect) && (r.customInspect = !0), r.colors && (r.stylize = ya), Ze(r, t, r.depth);
2343
2348
  }
2344
2349
  ie.colors = {
2345
2350
  bold: [1, 22],
@@ -2366,14 +2371,14 @@ ie.styles = {
2366
2371
  date: "magenta",
2367
2372
  regexp: "red"
2368
2373
  };
2369
- function pa(t, e) {
2374
+ function ya(t, e) {
2370
2375
  var r = ie.styles[e];
2371
2376
  return r ? "\x1B[" + ie.colors[r][0] + "m" + t + "\x1B[" + ie.colors[r][1] + "m" : t;
2372
2377
  }
2373
- function ya(t, e) {
2378
+ function wa(t, e) {
2374
2379
  return t;
2375
2380
  }
2376
- function wa(t) {
2381
+ function ba(t) {
2377
2382
  var e = {};
2378
2383
  return t.forEach(function(r, i) {
2379
2384
  e[r] = !0;
@@ -2384,10 +2389,10 @@ function Ze(t, e, r) {
2384
2389
  var i = e.inspect(r, t);
2385
2390
  return Ie(i) || (i = Ze(t, i, r)), i;
2386
2391
  }
2387
- var n = ba(t, e);
2392
+ var n = ma(t, e);
2388
2393
  if (n)
2389
2394
  return n;
2390
- var s = Object.keys(e), a = wa(s);
2395
+ var s = Object.keys(e), a = ba(s);
2391
2396
  if (t.showHidden && (s = Object.getOwnPropertyNames(e)), Oe(e) && (s.indexOf("message") >= 0 || s.indexOf("description") >= 0))
2392
2397
  return mt(e);
2393
2398
  if (s.length === 0) {
@@ -2403,7 +2408,7 @@ function Ze(t, e, r) {
2403
2408
  return mt(e);
2404
2409
  }
2405
2410
  var f = "", _ = !1, b = ["{", "}"];
2406
- if (Ht(e) && (_ = !0, b = ["[", "]"]), De(e)) {
2411
+ if (Gt(e) && (_ = !0, b = ["[", "]"]), De(e)) {
2407
2412
  var w = e.name ? ": " + e.name : "";
2408
2413
  f = " [Function" + w + "]";
2409
2414
  }
@@ -2413,18 +2418,18 @@ function Ze(t, e, r) {
2413
2418
  return Fe(e) ? t.stylize(RegExp.prototype.toString.call(e), "regexp") : t.stylize("[Object]", "special");
2414
2419
  t.seen.push(e);
2415
2420
  var g;
2416
- return _ ? g = ma(t, e, r, a, s) : g = s.map(function(m) {
2421
+ return _ ? g = va(t, e, r, a, s) : g = s.map(function(m) {
2417
2422
  return Nt(t, e, r, a, m, _);
2418
- }), t.seen.pop(), va(g, f, b);
2423
+ }), t.seen.pop(), Ea(g, f, b);
2419
2424
  }
2420
- function ba(t, e) {
2425
+ function ma(t, e) {
2421
2426
  if (re(e))
2422
2427
  return t.stylize("undefined", "undefined");
2423
2428
  if (Ie(e)) {
2424
2429
  var r = "'" + JSON.stringify(e).replace(/^"|"$/g, "").replace(/'/g, "\\'").replace(/\\"/g, '"') + "'";
2425
2430
  return t.stylize(r, "string");
2426
2431
  }
2427
- if (Gt(e))
2432
+ if (Jt(e))
2428
2433
  return t.stylize("" + e, "number");
2429
2434
  if (ut(e))
2430
2435
  return t.stylize("" + e, "boolean");
@@ -2434,7 +2439,7 @@ function ba(t, e) {
2434
2439
  function mt(t) {
2435
2440
  return "[" + Error.prototype.toString.call(t) + "]";
2436
2441
  }
2437
- function ma(t, e, r, i, n) {
2442
+ function va(t, e, r, i, n) {
2438
2443
  for (var s = [], a = 0, u = e.length; a < u; ++a)
2439
2444
  si(e, String(a)) ? s.push(Nt(
2440
2445
  t,
@@ -2474,7 +2479,7 @@ function Nt(t, e, r, i, n, s) {
2474
2479
  }
2475
2480
  return a + ": " + u;
2476
2481
  }
2477
- function va(t, e, r) {
2482
+ function Ea(t, e, r) {
2478
2483
  var i = t.reduce(function(n, s) {
2479
2484
  return s.indexOf(`
2480
2485
  `) >= 0, n + s.replace(/\u001b\[\d\d?m/g, "").length + 1;
@@ -2483,7 +2488,7 @@ function va(t, e, r) {
2483
2488
  `) + " " + t.join(`,
2484
2489
  `) + " " + r[1] : r[0] + e + " " + t.join(", ") + " " + r[1];
2485
2490
  }
2486
- function Ht(t) {
2491
+ function Gt(t) {
2487
2492
  return Array.isArray(t);
2488
2493
  }
2489
2494
  function ut(t) {
@@ -2495,7 +2500,7 @@ function Ne(t) {
2495
2500
  function ti(t) {
2496
2501
  return t == null;
2497
2502
  }
2498
- function Gt(t) {
2503
+ function Jt(t) {
2499
2504
  return typeof t == "number";
2500
2505
  }
2501
2506
  function Ie(t) {
@@ -2508,16 +2513,16 @@ function re(t) {
2508
2513
  return t === void 0;
2509
2514
  }
2510
2515
  function Fe(t) {
2511
- return pe(t) && Jt(t) === "[object RegExp]";
2516
+ return pe(t) && Kt(t) === "[object RegExp]";
2512
2517
  }
2513
2518
  function pe(t) {
2514
2519
  return typeof t == "object" && t !== null;
2515
2520
  }
2516
2521
  function et(t) {
2517
- return pe(t) && Jt(t) === "[object Date]";
2522
+ return pe(t) && Kt(t) === "[object Date]";
2518
2523
  }
2519
2524
  function Oe(t) {
2520
- return pe(t) && (Jt(t) === "[object Error]" || t instanceof Error);
2525
+ return pe(t) && (Kt(t) === "[object Error]" || t instanceof Error);
2521
2526
  }
2522
2527
  function De(t) {
2523
2528
  return typeof t == "function";
@@ -2528,13 +2533,13 @@ function ii(t) {
2528
2533
  function ni(t) {
2529
2534
  return y.isBuffer(t);
2530
2535
  }
2531
- function Jt(t) {
2536
+ function Kt(t) {
2532
2537
  return Object.prototype.toString.call(t);
2533
2538
  }
2534
2539
  function vt(t) {
2535
2540
  return t < 10 ? "0" + t.toString(10) : t.toString(10);
2536
2541
  }
2537
- var Ea = [
2542
+ var xa = [
2538
2543
  "Jan",
2539
2544
  "Feb",
2540
2545
  "Mar",
@@ -2548,18 +2553,18 @@ var Ea = [
2548
2553
  "Nov",
2549
2554
  "Dec"
2550
2555
  ];
2551
- function xa() {
2556
+ function Ra() {
2552
2557
  var t = new Date(), e = [
2553
2558
  vt(t.getHours()),
2554
2559
  vt(t.getMinutes()),
2555
2560
  vt(t.getSeconds())
2556
2561
  ].join(":");
2557
- return [t.getDate(), Ea[t.getMonth()], e].join(" ");
2562
+ return [t.getDate(), xa[t.getMonth()], e].join(" ");
2558
2563
  }
2559
2564
  function ai() {
2560
- console.log("%s - %s", xa(), lt.apply(null, arguments));
2565
+ console.log("%s - %s", Ra(), lt.apply(null, arguments));
2561
2566
  }
2562
- function Kt(t, e) {
2567
+ function Xt(t, e) {
2563
2568
  if (!e || !pe(e))
2564
2569
  return t;
2565
2570
  for (var r = Object.keys(e), i = r.length; i--; )
@@ -2569,9 +2574,9 @@ function Kt(t, e) {
2569
2574
  function si(t, e) {
2570
2575
  return Object.prototype.hasOwnProperty.call(t, e);
2571
2576
  }
2572
- const Ra = {
2577
+ const Sa = {
2573
2578
  inherits: Zr,
2574
- _extend: Kt,
2579
+ _extend: Xt,
2575
2580
  log: ai,
2576
2581
  isBuffer: ni,
2577
2582
  isPrimitive: ii,
@@ -2583,26 +2588,26 @@ const Ra = {
2583
2588
  isUndefined: re,
2584
2589
  isSymbol: ri,
2585
2590
  isString: Ie,
2586
- isNumber: Gt,
2591
+ isNumber: Jt,
2587
2592
  isNullOrUndefined: ti,
2588
2593
  isNull: Ne,
2589
2594
  isBoolean: ut,
2590
- isArray: Ht,
2595
+ isArray: Gt,
2591
2596
  inspect: ie,
2592
- deprecate: $t,
2597
+ deprecate: Ht,
2593
2598
  format: lt,
2594
2599
  debuglog: ei
2595
- }, Sa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2600
+ }, Ta = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2596
2601
  __proto__: null,
2597
2602
  format: lt,
2598
- deprecate: $t,
2603
+ deprecate: Ht,
2599
2604
  debuglog: ei,
2600
2605
  inspect: ie,
2601
- isArray: Ht,
2606
+ isArray: Gt,
2602
2607
  isBoolean: ut,
2603
2608
  isNull: Ne,
2604
2609
  isNullOrUndefined: ti,
2605
- isNumber: Gt,
2610
+ isNumber: Jt,
2606
2611
  isString: Ie,
2607
2612
  isSymbol: ri,
2608
2613
  isUndefined: re,
@@ -2615,14 +2620,14 @@ const Ra = {
2615
2620
  isBuffer: ni,
2616
2621
  log: ai,
2617
2622
  inherits: Zr,
2618
- _extend: Kt,
2619
- default: Ra
2620
- }, Symbol.toStringTag, { value: "Module" })), oi = /* @__PURE__ */ jt(Sa);
2621
- var Et, ar;
2622
- function Ta() {
2623
- if (ar)
2623
+ _extend: Xt,
2624
+ default: Sa
2625
+ }, Symbol.toStringTag, { value: "Module" })), oi = /* @__PURE__ */ Yt(Ta);
2626
+ var Et, sr;
2627
+ function Ca() {
2628
+ if (sr)
2624
2629
  return Et;
2625
- ar = 1;
2630
+ sr = 1;
2626
2631
  function t(g, m) {
2627
2632
  var E = Object.keys(g);
2628
2633
  if (Object.getOwnPropertySymbols) {
@@ -2767,34 +2772,34 @@ function Ta() {
2767
2772
  }]), g;
2768
2773
  }(), Et;
2769
2774
  }
2770
- function Ca(t, e) {
2775
+ function Aa(t, e) {
2771
2776
  var r = this, i = this._readableState && this._readableState.destroyed, n = this._writableState && this._writableState.destroyed;
2772
2777
  return i || n ? (e ? e(t) : t && (this._writableState ? this._writableState.errorEmitted || (this._writableState.errorEmitted = !0, N.nextTick(It, this, t)) : N.nextTick(It, this, t)), this) : (this._readableState && (this._readableState.destroyed = !0), this._writableState && (this._writableState.destroyed = !0), this._destroy(t || null, function(s) {
2773
- !e && s ? r._writableState ? r._writableState.errorEmitted ? N.nextTick(He, r) : (r._writableState.errorEmitted = !0, N.nextTick(sr, r, s)) : N.nextTick(sr, r, s) : e ? (N.nextTick(He, r), e(s)) : N.nextTick(He, r);
2778
+ !e && s ? r._writableState ? r._writableState.errorEmitted ? N.nextTick(He, r) : (r._writableState.errorEmitted = !0, N.nextTick(or, r, s)) : N.nextTick(or, r, s) : e ? (N.nextTick(He, r), e(s)) : N.nextTick(He, r);
2774
2779
  }), this);
2775
2780
  }
2776
- function sr(t, e) {
2781
+ function or(t, e) {
2777
2782
  It(t, e), He(t);
2778
2783
  }
2779
2784
  function He(t) {
2780
2785
  t._writableState && !t._writableState.emitClose || t._readableState && !t._readableState.emitClose || t.emit("close");
2781
2786
  }
2782
- function Aa() {
2787
+ function Fa() {
2783
2788
  this._readableState && (this._readableState.destroyed = !1, this._readableState.reading = !1, this._readableState.ended = !1, this._readableState.endEmitted = !1), this._writableState && (this._writableState.destroyed = !1, this._writableState.ended = !1, this._writableState.ending = !1, this._writableState.finalCalled = !1, this._writableState.prefinished = !1, this._writableState.finished = !1, this._writableState.errorEmitted = !1);
2784
2789
  }
2785
2790
  function It(t, e) {
2786
2791
  t.emit("error", e);
2787
2792
  }
2788
- function Fa(t, e) {
2793
+ function Oa(t, e) {
2789
2794
  var r = t._readableState, i = t._writableState;
2790
2795
  r && r.autoDestroy || i && i.autoDestroy ? t.destroy(e) : t.emit("error", e);
2791
2796
  }
2792
2797
  var li = {
2793
- destroy: Ca,
2794
- undestroy: Aa,
2795
- errorOrDestroy: Fa
2798
+ destroy: Aa,
2799
+ undestroy: Fa,
2800
+ errorOrDestroy: Oa
2796
2801
  }, ye = {};
2797
- function Oa(t, e) {
2802
+ function Da(t, e) {
2798
2803
  t.prototype = Object.create(e.prototype), t.prototype.constructor = t, t.__proto__ = e;
2799
2804
  }
2800
2805
  var ui = {};
@@ -2804,7 +2809,7 @@ function X(t, e, r) {
2804
2809
  return typeof e == "string" ? e : e(s, a, u);
2805
2810
  }
2806
2811
  var n = /* @__PURE__ */ function(s) {
2807
- Oa(a, s);
2812
+ Da(a, s);
2808
2813
  function a(u, f, _) {
2809
2814
  return s.call(this, i(u, f, _)) || this;
2810
2815
  }
@@ -2812,7 +2817,7 @@ function X(t, e, r) {
2812
2817
  }(r);
2813
2818
  n.prototype.name = r.name, n.prototype.code = t, ui[t] = n;
2814
2819
  }
2815
- function or(t, e) {
2820
+ function lr(t, e) {
2816
2821
  if (Array.isArray(t)) {
2817
2822
  var r = t.length;
2818
2823
  return t = t.map(function(i) {
@@ -2821,13 +2826,13 @@ function or(t, e) {
2821
2826
  } else
2822
2827
  return "of ".concat(e, " ").concat(String(t));
2823
2828
  }
2824
- function Da(t, e, r) {
2829
+ function Ma(t, e, r) {
2825
2830
  return t.substr(!r || r < 0 ? 0 : +r, e.length) === e;
2826
2831
  }
2827
- function Ma(t, e, r) {
2832
+ function ka(t, e, r) {
2828
2833
  return (r === void 0 || r > t.length) && (r = t.length), t.substring(r - e.length, r) === e;
2829
2834
  }
2830
- function ka(t, e, r) {
2835
+ function Pa(t, e, r) {
2831
2836
  return typeof r != "number" && (r = 0), r + e.length > t.length ? !1 : t.indexOf(e, r) !== -1;
2832
2837
  }
2833
2838
  X("ERR_INVALID_OPT_VALUE", function(t, e) {
@@ -2835,13 +2840,13 @@ X("ERR_INVALID_OPT_VALUE", function(t, e) {
2835
2840
  }, TypeError);
2836
2841
  X("ERR_INVALID_ARG_TYPE", function(t, e, r) {
2837
2842
  var i;
2838
- typeof e == "string" && Da(e, "not ") ? (i = "must not be", e = e.replace(/^not /, "")) : i = "must be";
2843
+ typeof e == "string" && Ma(e, "not ") ? (i = "must not be", e = e.replace(/^not /, "")) : i = "must be";
2839
2844
  var n;
2840
- if (Ma(t, " argument"))
2841
- n = "The ".concat(t, " ").concat(i, " ").concat(or(e, "type"));
2845
+ if (ka(t, " argument"))
2846
+ n = "The ".concat(t, " ").concat(i, " ").concat(lr(e, "type"));
2842
2847
  else {
2843
- var s = ka(t, ".") ? "property" : "argument";
2844
- n = 'The "'.concat(t, '" ').concat(s, " ").concat(i, " ").concat(or(e, "type"));
2848
+ var s = Pa(t, ".") ? "property" : "argument";
2849
+ n = 'The "'.concat(t, '" ').concat(s, " ").concat(i, " ").concat(lr(e, "type"));
2845
2850
  }
2846
2851
  return n += ". Received type ".concat(typeof r), n;
2847
2852
  }, TypeError);
@@ -2862,23 +2867,23 @@ X("ERR_UNKNOWN_ENCODING", function(t) {
2862
2867
  }, TypeError);
2863
2868
  X("ERR_STREAM_UNSHIFT_AFTER_END_EVENT", "stream.unshift() after end event");
2864
2869
  ye.codes = ui;
2865
- var Pa = ye.codes.ERR_INVALID_OPT_VALUE;
2866
- function Na(t, e, r) {
2870
+ var Na = ye.codes.ERR_INVALID_OPT_VALUE;
2871
+ function Ia(t, e, r) {
2867
2872
  return t.highWaterMark != null ? t.highWaterMark : e ? t[r] : null;
2868
2873
  }
2869
- function Ia(t, e, r, i) {
2870
- var n = Na(e, i, r);
2874
+ function Ba(t, e, r, i) {
2875
+ var n = Ia(e, i, r);
2871
2876
  if (n != null) {
2872
2877
  if (!(isFinite(n) && Math.floor(n) === n) || n < 0) {
2873
2878
  var s = i ? r : "highWaterMark";
2874
- throw new Pa(s, n);
2879
+ throw new Na(s, n);
2875
2880
  }
2876
2881
  return Math.floor(n);
2877
2882
  }
2878
2883
  return t.objectMode ? 16 : 16 * 1024;
2879
2884
  }
2880
2885
  var fi = {
2881
- getHighWaterMark: Ia
2886
+ getHighWaterMark: Ba
2882
2887
  }, fe = { exports: {} };
2883
2888
  typeof Object.create == "function" ? fe.exports = function(e, r) {
2884
2889
  r && (e.super_ = r, e.prototype = Object.create(r.prototype, {
@@ -2897,8 +2902,8 @@ typeof Object.create == "function" ? fe.exports = function(e, r) {
2897
2902
  i.prototype = r.prototype, e.prototype = new i(), e.prototype.constructor = e;
2898
2903
  }
2899
2904
  };
2900
- var Ba = La;
2901
- function La(t, e) {
2905
+ var La = Ua;
2906
+ function Ua(t, e) {
2902
2907
  if (xt("noDeprecation"))
2903
2908
  return t;
2904
2909
  var r = !1;
@@ -2922,11 +2927,11 @@ function xt(t) {
2922
2927
  var e = Ke.localStorage[t];
2923
2928
  return e == null ? !1 : String(e).toLowerCase() === "true";
2924
2929
  }
2925
- var Rt, lr;
2930
+ var Rt, ur;
2926
2931
  function ci() {
2927
- if (lr)
2932
+ if (ur)
2928
2933
  return Rt;
2929
- lr = 1, Rt = M;
2934
+ ur = 1, Rt = M;
2930
2935
  function t(d) {
2931
2936
  var h = this;
2932
2937
  this.next = null, this.entry = null, this.finish = function() {
@@ -2936,7 +2941,7 @@ function ci() {
2936
2941
  var e;
2937
2942
  M.WritableState = U;
2938
2943
  var r = {
2939
- deprecate: Ba
2944
+ deprecate: La
2940
2945
  }, i = Ir, n = ot.Buffer, s = Ke.Uint8Array || function() {
2941
2946
  };
2942
2947
  function a(d) {
@@ -3142,11 +3147,11 @@ function ci() {
3142
3147
  h(d);
3143
3148
  }, Rt;
3144
3149
  }
3145
- var St, ur;
3150
+ var St, fr;
3146
3151
  function Re() {
3147
- if (ur)
3152
+ if (fr)
3148
3153
  return St;
3149
- ur = 1;
3154
+ fr = 1;
3150
3155
  var t = Object.keys || function(_) {
3151
3156
  var b = [];
3152
3157
  for (var w in _)
@@ -3197,9 +3202,9 @@ function Re() {
3197
3202
  }
3198
3203
  }), St;
3199
3204
  }
3200
- var Tt = {}, je = { exports: {} }, fr;
3201
- function Ua() {
3202
- return fr || (fr = 1, function(t, e) {
3205
+ var Tt = {}, je = { exports: {} }, cr;
3206
+ function Wa() {
3207
+ return cr || (cr = 1, function(t, e) {
3203
3208
  var r = ot, i = r.Buffer;
3204
3209
  function n(a, u) {
3205
3210
  for (var f in a)
@@ -3229,12 +3234,12 @@ function Ua() {
3229
3234
  };
3230
3235
  }(je, je.exports)), je.exports;
3231
3236
  }
3232
- var cr;
3233
- function hr() {
3234
- if (cr)
3237
+ var hr;
3238
+ function dr() {
3239
+ if (hr)
3235
3240
  return Tt;
3236
- cr = 1;
3237
- var t = Ua().Buffer, e = t.isEncoding || function(c) {
3241
+ hr = 1;
3242
+ var t = Wa().Buffer, e = t.isEncoding || function(c) {
3238
3243
  switch (c = "" + c, c && c.toLowerCase()) {
3239
3244
  case "hex":
3240
3245
  case "utf8":
@@ -3396,8 +3401,8 @@ function hr() {
3396
3401
  }
3397
3402
  return Tt;
3398
3403
  }
3399
- var dr = ye.codes.ERR_STREAM_PREMATURE_CLOSE;
3400
- function Wa(t) {
3404
+ var _r = ye.codes.ERR_STREAM_PREMATURE_CLOSE;
3405
+ function ja(t) {
3401
3406
  var e = !1;
3402
3407
  return function() {
3403
3408
  if (!e) {
@@ -3408,15 +3413,15 @@ function Wa(t) {
3408
3413
  }
3409
3414
  };
3410
3415
  }
3411
- function ja() {
3416
+ function Ya() {
3412
3417
  }
3413
- function Ya(t) {
3418
+ function za(t) {
3414
3419
  return t.setHeader && typeof t.abort == "function";
3415
3420
  }
3416
3421
  function hi(t, e, r) {
3417
3422
  if (typeof e == "function")
3418
3423
  return hi(t, null, e);
3419
- e || (e = {}), r = Wa(r || ja);
3424
+ e || (e = {}), r = ja(r || Ya);
3420
3425
  var i = e.readable || e.readable !== !1 && t.readable, n = e.writable || e.writable !== !1 && t.writable, s = function() {
3421
3426
  t.writable || u();
3422
3427
  }, a = t._writableState && t._writableState.finished, u = function() {
@@ -3428,26 +3433,26 @@ function hi(t, e, r) {
3428
3433
  }, w = function() {
3429
3434
  var E;
3430
3435
  if (i && !f)
3431
- return (!t._readableState || !t._readableState.ended) && (E = new dr()), r.call(t, E);
3436
+ return (!t._readableState || !t._readableState.ended) && (E = new _r()), r.call(t, E);
3432
3437
  if (n && !a)
3433
- return (!t._writableState || !t._writableState.ended) && (E = new dr()), r.call(t, E);
3438
+ return (!t._writableState || !t._writableState.ended) && (E = new _r()), r.call(t, E);
3434
3439
  }, g = function() {
3435
3440
  t.req.on("finish", u);
3436
3441
  };
3437
- return Ya(t) ? (t.on("complete", u), t.on("abort", w), t.req ? g() : t.on("request", g)) : n && !t._writableState && (t.on("end", s), t.on("close", s)), t.on("end", _), t.on("finish", u), e.error !== !1 && t.on("error", b), t.on("close", w), function() {
3442
+ return za(t) ? (t.on("complete", u), t.on("abort", w), t.req ? g() : t.on("request", g)) : n && !t._writableState && (t.on("end", s), t.on("close", s)), t.on("end", _), t.on("finish", u), e.error !== !1 && t.on("error", b), t.on("close", w), function() {
3438
3443
  t.removeListener("complete", u), t.removeListener("abort", w), t.removeListener("request", g), t.req && t.req.removeListener("finish", u), t.removeListener("end", s), t.removeListener("close", s), t.removeListener("finish", u), t.removeListener("end", _), t.removeListener("error", b), t.removeListener("close", w);
3439
3444
  };
3440
3445
  }
3441
- var Xt = hi, Ct, _r;
3442
- function za() {
3443
- if (_r)
3446
+ var Qt = hi, Ct, gr;
3447
+ function qa() {
3448
+ if (gr)
3444
3449
  return Ct;
3445
- _r = 1;
3450
+ gr = 1;
3446
3451
  var t;
3447
3452
  function e(c, p, R) {
3448
3453
  return p in c ? Object.defineProperty(c, p, { value: R, enumerable: !0, configurable: !0, writable: !0 }) : c[p] = R, c;
3449
3454
  }
3450
- var r = Xt, i = Symbol("lastResolve"), n = Symbol("lastReject"), s = Symbol("error"), a = Symbol("ended"), u = Symbol("lastPromise"), f = Symbol("handlePromise"), _ = Symbol("stream");
3455
+ var r = Qt, i = Symbol("lastResolve"), n = Symbol("lastReject"), s = Symbol("error"), a = Symbol("ended"), u = Symbol("lastPromise"), f = Symbol("handlePromise"), _ = Symbol("stream");
3451
3456
  function b(c, p) {
3452
3457
  return {
3453
3458
  value: c,
@@ -3551,17 +3556,17 @@ function za() {
3551
3556
  };
3552
3557
  return Ct = F, Ct;
3553
3558
  }
3554
- var At, gr;
3555
- function qa() {
3556
- return gr || (gr = 1, At = function() {
3559
+ var At, pr;
3560
+ function Va() {
3561
+ return pr || (pr = 1, At = function() {
3557
3562
  throw new Error("Readable.from is not available in the browser");
3558
3563
  }), At;
3559
3564
  }
3560
- var Ft, pr;
3565
+ var Ft, yr;
3561
3566
  function di() {
3562
- if (pr)
3567
+ if (yr)
3563
3568
  return Ft;
3564
- pr = 1, Ft = A;
3569
+ yr = 1, Ft = A;
3565
3570
  var t;
3566
3571
  A.ReadableState = M, Nr.EventEmitter;
3567
3572
  var e = function(l, v) {
@@ -3577,7 +3582,7 @@ function di() {
3577
3582
  var u = oi, f;
3578
3583
  u && u.debuglog ? f = u.debuglog("stream") : f = function() {
3579
3584
  };
3580
- var _ = Ta(), b = li, w = fi, g = w.getHighWaterMark, m = ye.codes, E = m.ERR_INVALID_ARG_TYPE, S = m.ERR_STREAM_PUSH_AFTER_EOF, F = m.ERR_METHOD_NOT_IMPLEMENTED, c = m.ERR_STREAM_UNSHIFT_AFTER_END_EVENT, p, R, C;
3585
+ var _ = Ca(), b = li, w = fi, g = w.getHighWaterMark, m = ye.codes, E = m.ERR_INVALID_ARG_TYPE, S = m.ERR_STREAM_PUSH_AFTER_EOF, F = m.ERR_METHOD_NOT_IMPLEMENTED, c = m.ERR_STREAM_UNSHIFT_AFTER_END_EVENT, p, R, C;
3581
3586
  fe.exports(A, r);
3582
3587
  var D = b.errorOrDestroy, U = ["error", "close", "destroy", "pause", "resume"];
3583
3588
  function z(o, l, v) {
@@ -3586,7 +3591,7 @@ function di() {
3586
3591
  !o._events || !o._events[l] ? o.on(l, v) : Array.isArray(o._events[l]) ? o._events[l].unshift(v) : o._events[l] = [v, o._events[l]];
3587
3592
  }
3588
3593
  function M(o, l, v) {
3589
- t = t || Re(), o = o || {}, typeof v != "boolean" && (v = l instanceof t), this.objectMode = !!o.objectMode, v && (this.objectMode = this.objectMode || !!o.readableObjectMode), this.highWaterMark = g(this, o, "readableHighWaterMark", v), this.buffer = new _(), this.length = 0, this.pipes = null, this.pipesCount = 0, this.flowing = null, this.ended = !1, this.endEmitted = !1, this.reading = !1, this.sync = !0, this.needReadable = !1, this.emittedReadable = !1, this.readableListening = !1, this.resumeScheduled = !1, this.paused = !0, this.emitClose = o.emitClose !== !1, this.autoDestroy = !!o.autoDestroy, this.destroyed = !1, this.defaultEncoding = o.defaultEncoding || "utf8", this.awaitDrain = 0, this.readingMore = !1, this.decoder = null, this.encoding = null, o.encoding && (p || (p = hr().StringDecoder), this.decoder = new p(o.encoding), this.encoding = o.encoding);
3594
+ t = t || Re(), o = o || {}, typeof v != "boolean" && (v = l instanceof t), this.objectMode = !!o.objectMode, v && (this.objectMode = this.objectMode || !!o.readableObjectMode), this.highWaterMark = g(this, o, "readableHighWaterMark", v), this.buffer = new _(), this.length = 0, this.pipes = null, this.pipesCount = 0, this.flowing = null, this.ended = !1, this.endEmitted = !1, this.reading = !1, this.sync = !0, this.needReadable = !1, this.emittedReadable = !1, this.readableListening = !1, this.resumeScheduled = !1, this.paused = !0, this.emitClose = o.emitClose !== !1, this.autoDestroy = !!o.autoDestroy, this.destroyed = !1, this.defaultEncoding = o.defaultEncoding || "utf8", this.awaitDrain = 0, this.readingMore = !1, this.decoder = null, this.encoding = null, o.encoding && (p || (p = dr().StringDecoder), this.decoder = new p(o.encoding), this.encoding = o.encoding);
3590
3595
  }
3591
3596
  function A(o) {
3592
3597
  if (t = t || Re(), !(this instanceof A))
@@ -3644,7 +3649,7 @@ function di() {
3644
3649
  A.prototype.isPaused = function() {
3645
3650
  return this._readableState.flowing === !1;
3646
3651
  }, A.prototype.setEncoding = function(o) {
3647
- p || (p = hr().StringDecoder);
3652
+ p || (p = dr().StringDecoder);
3648
3653
  var l = new p(o);
3649
3654
  this._readableState.decoder = l, this._readableState.encoding = this._readableState.decoder.encoding;
3650
3655
  for (var v = this._readableState.buffer.head, T = ""; v !== null; )
@@ -3724,15 +3729,15 @@ function di() {
3724
3729
  }
3725
3730
  var Ue = ht(v);
3726
3731
  o.on("drain", Ue);
3727
- var er = !1;
3732
+ var tr = !1;
3728
3733
  function Si() {
3729
- f("cleanup"), o.removeListener("close", pt), o.removeListener("finish", yt), o.removeListener("drain", Ue), o.removeListener("error", gt), o.removeListener("unpipe", I), v.removeListener("end", we), v.removeListener("end", Ae), v.removeListener("data", tr), er = !0, T.awaitDrain && (!o._writableState || o._writableState.needDrain) && Ue();
3734
+ f("cleanup"), o.removeListener("close", pt), o.removeListener("finish", yt), o.removeListener("drain", Ue), o.removeListener("error", gt), o.removeListener("unpipe", I), v.removeListener("end", we), v.removeListener("end", Ae), v.removeListener("data", rr), tr = !0, T.awaitDrain && (!o._writableState || o._writableState.needDrain) && Ue();
3730
3735
  }
3731
- v.on("data", tr);
3732
- function tr(be) {
3736
+ v.on("data", rr);
3737
+ function rr(be) {
3733
3738
  f("ondata");
3734
3739
  var me = o.write(be);
3735
- f("dest.write", me), me === !1 && ((T.pipesCount === 1 && T.pipes === o || T.pipesCount > 1 && P(T.pipes, o) !== -1) && !er && (f("false write response, pause", T.awaitDrain), T.awaitDrain++), v.pause());
3740
+ f("dest.write", me), me === !1 && ((T.pipesCount === 1 && T.pipes === o || T.pipesCount > 1 && P(T.pipes, o) !== -1) && !tr && (f("false write response, pause", T.awaitDrain), T.awaitDrain++), v.pause());
3736
3741
  }
3737
3742
  function gt(be) {
3738
3743
  f("onerror", be), Ae(), o.removeListener("error", gt), e(o, "error") === 0 && D(o, be);
@@ -3837,7 +3842,7 @@ function di() {
3837
3842
  f("wrapped _read", I), T && (T = !1, o.resume());
3838
3843
  }, this;
3839
3844
  }, typeof Symbol == "function" && (A.prototype[Symbol.asyncIterator] = function() {
3840
- return R === void 0 && (R = za()), R(this);
3845
+ return R === void 0 && (R = qa()), R(this);
3841
3846
  }), Object.defineProperty(A.prototype, "readableHighWaterMark", {
3842
3847
  enumerable: !1,
3843
3848
  get: function() {
@@ -3879,7 +3884,7 @@ function di() {
3879
3884
  }
3880
3885
  }
3881
3886
  typeof Symbol == "function" && (A.from = function(o, l) {
3882
- return C === void 0 && (C = qa()), C(A, o, l);
3887
+ return C === void 0 && (C = Va()), C(A, o, l);
3883
3888
  });
3884
3889
  function P(o, l) {
3885
3890
  for (var v = 0, T = o.length; v < T; v++)
@@ -3889,14 +3894,14 @@ function di() {
3889
3894
  }
3890
3895
  return Ft;
3891
3896
  }
3892
- var _i = oe, ft = ye.codes, Va = ft.ERR_METHOD_NOT_IMPLEMENTED, $a = ft.ERR_MULTIPLE_CALLBACK, Ha = ft.ERR_TRANSFORM_ALREADY_TRANSFORMING, Ga = ft.ERR_TRANSFORM_WITH_LENGTH_0, ct = Re();
3897
+ var _i = oe, ft = ye.codes, $a = ft.ERR_METHOD_NOT_IMPLEMENTED, Ha = ft.ERR_MULTIPLE_CALLBACK, Ga = ft.ERR_TRANSFORM_ALREADY_TRANSFORMING, Ja = ft.ERR_TRANSFORM_WITH_LENGTH_0, ct = Re();
3893
3898
  fe.exports(oe, ct);
3894
- function Ja(t, e) {
3899
+ function Ka(t, e) {
3895
3900
  var r = this._transformState;
3896
3901
  r.transforming = !1;
3897
3902
  var i = r.writecb;
3898
3903
  if (i === null)
3899
- return this.emit("error", new $a());
3904
+ return this.emit("error", new Ha());
3900
3905
  r.writechunk = null, r.writecb = null, e != null && this.push(e), i(t);
3901
3906
  var n = this._readableState;
3902
3907
  n.reading = !1, (n.needReadable || n.length < n.highWaterMark) && this._read(n.highWaterMark);
@@ -3905,25 +3910,25 @@ function oe(t) {
3905
3910
  if (!(this instanceof oe))
3906
3911
  return new oe(t);
3907
3912
  ct.call(this, t), this._transformState = {
3908
- afterTransform: Ja.bind(this),
3913
+ afterTransform: Ka.bind(this),
3909
3914
  needTransform: !1,
3910
3915
  transforming: !1,
3911
3916
  writecb: null,
3912
3917
  writechunk: null,
3913
3918
  writeencoding: null
3914
- }, this._readableState.needReadable = !0, this._readableState.sync = !1, t && (typeof t.transform == "function" && (this._transform = t.transform), typeof t.flush == "function" && (this._flush = t.flush)), this.on("prefinish", Ka);
3919
+ }, this._readableState.needReadable = !0, this._readableState.sync = !1, t && (typeof t.transform == "function" && (this._transform = t.transform), typeof t.flush == "function" && (this._flush = t.flush)), this.on("prefinish", Xa);
3915
3920
  }
3916
- function Ka() {
3921
+ function Xa() {
3917
3922
  var t = this;
3918
3923
  typeof this._flush == "function" && !this._readableState.destroyed ? this._flush(function(e, r) {
3919
- yr(t, e, r);
3920
- }) : yr(this, null, null);
3924
+ wr(t, e, r);
3925
+ }) : wr(this, null, null);
3921
3926
  }
3922
3927
  oe.prototype.push = function(t, e) {
3923
3928
  return this._transformState.needTransform = !1, ct.prototype.push.call(this, t, e);
3924
3929
  };
3925
3930
  oe.prototype._transform = function(t, e, r) {
3926
- r(new Va("_transform()"));
3931
+ r(new $a("_transform()"));
3927
3932
  };
3928
3933
  oe.prototype._write = function(t, e, r) {
3929
3934
  var i = this._transformState;
@@ -3941,16 +3946,16 @@ oe.prototype._destroy = function(t, e) {
3941
3946
  e(r);
3942
3947
  });
3943
3948
  };
3944
- function yr(t, e, r) {
3949
+ function wr(t, e, r) {
3945
3950
  if (e)
3946
3951
  return t.emit("error", e);
3947
3952
  if (r != null && t.push(r), t._writableState.length)
3948
- throw new Ga();
3953
+ throw new Ja();
3949
3954
  if (t._transformState.transforming)
3950
- throw new Ha();
3955
+ throw new Ga();
3951
3956
  return t.push(null);
3952
3957
  }
3953
- var Xa = ke, gi = _i;
3958
+ var Qa = ke, gi = _i;
3954
3959
  fe.exports(ke, gi);
3955
3960
  function ke(t) {
3956
3961
  if (!(this instanceof ke))
@@ -3961,26 +3966,26 @@ ke.prototype._transform = function(t, e, r) {
3961
3966
  r(null, t);
3962
3967
  };
3963
3968
  var Ot;
3964
- function Qa(t) {
3969
+ function Za(t) {
3965
3970
  var e = !1;
3966
3971
  return function() {
3967
3972
  e || (e = !0, t.apply(void 0, arguments));
3968
3973
  };
3969
3974
  }
3970
- var pi = ye.codes, Za = pi.ERR_MISSING_ARGS, es = pi.ERR_STREAM_DESTROYED;
3971
- function wr(t) {
3975
+ var pi = ye.codes, es = pi.ERR_MISSING_ARGS, ts = pi.ERR_STREAM_DESTROYED;
3976
+ function br(t) {
3972
3977
  if (t)
3973
3978
  throw t;
3974
3979
  }
3975
- function ts(t) {
3980
+ function rs(t) {
3976
3981
  return t.setHeader && typeof t.abort == "function";
3977
3982
  }
3978
- function rs(t, e, r, i) {
3979
- i = Qa(i);
3983
+ function is(t, e, r, i) {
3984
+ i = Za(i);
3980
3985
  var n = !1;
3981
3986
  t.on("close", function() {
3982
3987
  n = !0;
3983
- }), Ot === void 0 && (Ot = Xt), Ot(t, {
3988
+ }), Ot === void 0 && (Ot = Qt), Ot(t, {
3984
3989
  readable: e,
3985
3990
  writable: r
3986
3991
  }, function(a) {
@@ -3991,40 +3996,40 @@ function rs(t, e, r, i) {
3991
3996
  var s = !1;
3992
3997
  return function(a) {
3993
3998
  if (!n && !s) {
3994
- if (s = !0, ts(t))
3999
+ if (s = !0, rs(t))
3995
4000
  return t.abort();
3996
4001
  if (typeof t.destroy == "function")
3997
4002
  return t.destroy();
3998
- i(a || new es("pipe"));
4003
+ i(a || new ts("pipe"));
3999
4004
  }
4000
4005
  };
4001
4006
  }
4002
- function br(t) {
4007
+ function mr(t) {
4003
4008
  t();
4004
4009
  }
4005
- function is(t, e) {
4010
+ function ns(t, e) {
4006
4011
  return t.pipe(e);
4007
4012
  }
4008
- function ns(t) {
4009
- return !t.length || typeof t[t.length - 1] != "function" ? wr : t.pop();
4013
+ function as(t) {
4014
+ return !t.length || typeof t[t.length - 1] != "function" ? br : t.pop();
4010
4015
  }
4011
- function as() {
4016
+ function ss() {
4012
4017
  for (var t = arguments.length, e = new Array(t), r = 0; r < t; r++)
4013
4018
  e[r] = arguments[r];
4014
- var i = ns(e);
4019
+ var i = as(e);
4015
4020
  if (Array.isArray(e[0]) && (e = e[0]), e.length < 2)
4016
- throw new Za("streams");
4021
+ throw new es("streams");
4017
4022
  var n, s = e.map(function(a, u) {
4018
4023
  var f = u < e.length - 1, _ = u > 0;
4019
- return rs(a, f, _, function(b) {
4020
- n || (n = b), b && s.forEach(br), !f && (s.forEach(br), i(n));
4024
+ return is(a, f, _, function(b) {
4025
+ n || (n = b), b && s.forEach(mr), !f && (s.forEach(mr), i(n));
4021
4026
  });
4022
4027
  });
4023
- return e.reduce(is);
4028
+ return e.reduce(ns);
4024
4029
  }
4025
- var ss = as;
4030
+ var os = ss;
4026
4031
  (function(t, e) {
4027
- e = t.exports = di(), e.Stream = e, e.Readable = e, e.Writable = ci(), e.Duplex = Re(), e.Transform = _i, e.PassThrough = Xa, e.finished = Xt, e.pipeline = ss;
4032
+ e = t.exports = di(), e.Stream = e, e.Readable = e, e.Writable = ci(), e.Duplex = Re(), e.Transform = _i, e.PassThrough = Qa, e.finished = Qt, e.pipeline = os;
4028
4033
  })(Mt, Mt.exports);
4029
4034
  var yi = Mt.exports.Transform, wi = fe.exports;
4030
4035
  function Se(t) {
@@ -4040,19 +4045,19 @@ Se.prototype.destroy = function(t) {
4040
4045
  });
4041
4046
  }
4042
4047
  };
4043
- function os(t, e, r) {
4048
+ function ls(t, e, r) {
4044
4049
  r(null, t);
4045
4050
  }
4046
- function Qt(t) {
4051
+ function Zt(t) {
4047
4052
  return function(e, r, i) {
4048
- return typeof e == "function" && (i = r, r = e, e = {}), typeof r != "function" && (r = os), typeof i != "function" && (i = null), t(e, r, i);
4053
+ return typeof e == "function" && (i = r, r = e, e = {}), typeof r != "function" && (r = ls), typeof i != "function" && (i = null), t(e, r, i);
4049
4054
  };
4050
4055
  }
4051
- Yt.exports = Qt(function(t, e, r) {
4056
+ zt.exports = Zt(function(t, e, r) {
4052
4057
  var i = new Se(t);
4053
4058
  return i._transform = e, r && (i._flush = r), i;
4054
4059
  });
4055
- Yt.exports.ctor = Qt(function(t, e, r) {
4060
+ zt.exports.ctor = Zt(function(t, e, r) {
4056
4061
  function i(n) {
4057
4062
  if (!(this instanceof i))
4058
4063
  return new i(n);
@@ -4060,11 +4065,11 @@ Yt.exports.ctor = Qt(function(t, e, r) {
4060
4065
  }
4061
4066
  return wi(i, Se), i.prototype._transform = e, r && (i.prototype._flush = r), i;
4062
4067
  });
4063
- Yt.exports.obj = Qt(function(t, e, r) {
4068
+ zt.exports.obj = Zt(function(t, e, r) {
4064
4069
  var i = new Se(Object.assign({ objectMode: !0, highWaterMark: 16 }, t));
4065
4070
  return i._transform = e, r && (i._flush = r), i;
4066
4071
  });
4067
- class ls {
4072
+ class us {
4068
4073
  constructor(e, r = 4) {
4069
4074
  this._string = null, this._type = "form", this._readOnly = !1, this._context = {}, this._onChangeFields = {}, this._keyIdx = 0, this._invisibleFields = [], this._fields = e, this._container = new Je(r, 6, !1, "root");
4070
4075
  }
@@ -4124,7 +4129,7 @@ class ls {
4124
4129
  container: r,
4125
4130
  values: i
4126
4131
  }) {
4127
- const n = new Wt();
4132
+ const n = new jt();
4128
4133
  e.filter((s) => typeof s == "object").forEach((s) => {
4129
4134
  var a, u;
4130
4135
  const { tagName: f, attributes: _, children: b } = s;
@@ -4152,24 +4157,24 @@ class ls {
4152
4157
  fields: this._fields
4153
4158
  });
4154
4159
  let E;
4155
- f === "button" && g.states ? E = tn({
4160
+ f === "button" && g.states ? E = rn({
4156
4161
  states: g.states,
4157
4162
  values: i
4158
- }) : E = en({
4163
+ }) : E = tn({
4159
4164
  fieldName: g.name,
4160
4165
  values: i,
4161
4166
  fields: this._fields
4162
4167
  });
4163
- const S = nn({
4168
+ const S = an({
4164
4169
  context: g.context || ((a = this._fields[g.name]) == null ? void 0 : a.context),
4165
4170
  values: i,
4166
4171
  fields: this._fields
4167
4172
  });
4168
- g.on_change && (this._onChangeFields[g.name] = on(
4173
+ g.on_change && (this._onChangeFields[g.name] = ln(
4169
4174
  g.on_change
4170
4175
  ));
4171
4176
  let F;
4172
- mr(g.domain) && (F = g.domain), mr((u = this._fields[g.name]) == null ? void 0 : u.domain) && (F = this._fields[g.name].domain), this._keyIdx = this._keyIdx + 1;
4177
+ vr(g.domain) && (F = g.domain), vr((u = this._fields[g.name]) == null ? void 0 : u.domain) && (F = this._fields[g.name].domain), this._keyIdx = this._keyIdx + 1;
4173
4178
  const c = {
4174
4179
  ...m,
4175
4180
  ...E,
@@ -4188,10 +4193,10 @@ class ls {
4188
4193
  return this.container.findById(e);
4189
4194
  }
4190
4195
  }
4191
- function mr(t) {
4196
+ function vr(t) {
4192
4197
  return t ? Array.isArray(t) && t.length > 0 ? !0 : typeof t == "string" && t !== "" && t !== "[]" : !1;
4193
4198
  }
4194
- class Fs {
4199
+ class Os {
4195
4200
  constructor(e) {
4196
4201
  this._columns = [], this._string = null, this._type = "tree", this._colors = null, this._editable = null, this._fields = e;
4197
4202
  }
@@ -4216,7 +4221,7 @@ class Fs {
4216
4221
  parse(e) {
4217
4222
  const r = rt(e).filter((n) => n.tagName === "tree")[0];
4218
4223
  this._string = r.attributes.string || null, this._string && (this._string = $(this._string)), this._colors = r.attributes.colors || null, this._colors && (this._colors = $(this._colors)), this._editable = r.attributes.editable || null;
4219
- const i = new Wt();
4224
+ const i = new jt();
4220
4225
  r.children.forEach((n) => {
4221
4226
  const { tagName: s, attributes: a } = n;
4222
4227
  let u = null;
@@ -4247,7 +4252,7 @@ class Fs {
4247
4252
  });
4248
4253
  }
4249
4254
  }
4250
- class Os {
4255
+ class Ds {
4251
4256
  get searchFields() {
4252
4257
  return this._searchFields;
4253
4258
  }
@@ -4267,7 +4272,7 @@ class Os {
4267
4272
  this._searchFields = e, this._fields = r, this._formXml = i, this._simpleSearchContainer = new Je(n), this._advancedSearchContainer = new Je(n);
4268
4273
  }
4269
4274
  parse() {
4270
- const e = new Wt(), r = new ls(this.fields);
4275
+ const e = new jt(), r = new us(this.fields);
4271
4276
  r.parse(this.formXml), this.parseFields(
4272
4277
  this.searchFields.primary,
4273
4278
  e,
@@ -4297,7 +4302,7 @@ class Os {
4297
4302
  return this.advancedSearchContainer.findById(e);
4298
4303
  }
4299
4304
  }
4300
- const Ds = ({
4305
+ const Ms = ({
4301
4306
  domain: t,
4302
4307
  widgetFieldName: e
4303
4308
  }) => {
@@ -4313,7 +4318,7 @@ const Ds = ({
4313
4318
  )) : (u = n, f = "id"), u === e && r.push([f, s, a]);
4314
4319
  }), r;
4315
4320
  };
4316
- class us {
4321
+ class fs {
4317
4322
  constructor(e) {
4318
4323
  this._action_id = null, this._position = null, e.action_id && (this._action_id = e.action_id), e.position && (this._position = e.position);
4319
4324
  }
@@ -4324,14 +4329,14 @@ class us {
4324
4329
  return this._position;
4325
4330
  }
4326
4331
  }
4327
- class Ms {
4332
+ class ks {
4328
4333
  constructor(e) {
4329
4334
  this._string = null, this._items = [];
4330
4335
  const r = rt(e).filter((n) => n.tagName === "dashboard")[0];
4331
4336
  this._string = r.attributes.string || null;
4332
4337
  const { children: i } = r;
4333
4338
  i.forEach((n) => {
4334
- n.tagName === "dashboard_item" && this._items.push(new us(n.attributes));
4339
+ n.tagName === "dashboard_item" && this._items.push(new fs(n.attributes));
4335
4340
  });
4336
4341
  }
4337
4342
  get string() {
@@ -4355,10 +4360,10 @@ class bi {
4355
4360
  return this._timerange;
4356
4361
  }
4357
4362
  }
4358
- const fs = (t) => t === 1 || t === "1" || t === !0 || t === "True";
4363
+ const cs = (t) => t === 1 || t === "1" || t === !0 || t === "True";
4359
4364
  class mi extends bi {
4360
4365
  constructor(e, r) {
4361
- super(r), this._color = null, this._icon = null, this._totalDomain = null, this._showPercent = !1, this._suffix = null, this._type = e, this._color = r.attributes.color || null, this._color && (this._color = $(this._color)), this._icon = r.attributes.icon || null, this._icon && (this._icon = $(this._icon)), this._suffix = r.attributes.suffix || null, this._totalDomain = r.attributes.totalDomain || null, this._showPercent = fs(r.attributes.showPercent);
4366
+ super(r), this._color = null, this._icon = null, this._totalDomain = null, this._showPercent = !1, this._suffix = null, this._type = e, this._color = r.attributes.color || null, this._color && (this._color = $(this._color)), this._icon = r.attributes.icon || null, this._icon && (this._icon = $(this._icon)), this._suffix = r.attributes.suffix || null, this._totalDomain = r.attributes.totalDomain || null, this._showPercent = cs(r.attributes.showPercent);
4362
4367
  }
4363
4368
  get color() {
4364
4369
  return this._color;
@@ -4376,7 +4381,7 @@ class mi extends bi {
4376
4381
  return this._suffix;
4377
4382
  }
4378
4383
  }
4379
- class cs extends mi {
4384
+ class hs extends mi {
4380
4385
  constructor(e, r) {
4381
4386
  super(e, r);
4382
4387
  const { children: i } = r;
@@ -4394,7 +4399,7 @@ class cs extends mi {
4394
4399
  return this._operator;
4395
4400
  }
4396
4401
  }
4397
- const hs = (t) => {
4402
+ const ds = (t) => {
4398
4403
  const e = [];
4399
4404
  let r;
4400
4405
  if (t.forEach((i) => {
@@ -4404,10 +4409,10 @@ const hs = (t) => {
4404
4409
  throw new Error(`Field ${a} doesn't have an axis`);
4405
4410
  if (!a)
4406
4411
  throw new Error("Missing name attribute for field");
4407
- n === "x" ? r = new gs({
4412
+ n === "x" ? r = new ps({
4408
4413
  name: a
4409
4414
  }) : n === "y" && e.push(
4410
- new _s({
4415
+ new gs({
4411
4416
  name: a,
4412
4417
  operator: s,
4413
4418
  label: u,
@@ -4427,7 +4432,7 @@ const hs = (t) => {
4427
4432
  class Dt extends bi {
4428
4433
  constructor(e, r) {
4429
4434
  super(r), this._type = e;
4430
- const i = hs(r.children);
4435
+ const i = ds(r.children);
4431
4436
  this._x = i.x, this._y = i.y;
4432
4437
  }
4433
4438
  get x() {
@@ -4437,17 +4442,17 @@ class Dt extends bi {
4437
4442
  return this._y;
4438
4443
  }
4439
4444
  }
4440
- const ds = {
4445
+ const _s = {
4441
4446
  indicator: mi,
4442
- indicatorField: cs,
4447
+ indicatorField: hs,
4443
4448
  line: Dt,
4444
4449
  bar: Dt,
4445
4450
  pie: Dt
4446
- }, ks = (t) => {
4451
+ }, Ps = (t) => {
4447
4452
  const e = rt(t).filter((n) => n.tagName === "graph")[0], r = e.attributes.type;
4448
4453
  if (!r)
4449
4454
  throw new Error(`${r} is not a valid graph`);
4450
- const i = ds[r];
4455
+ const i = _s[r];
4451
4456
  if (!i)
4452
4457
  throw new Error(`${r} not found as a GraphModel`);
4453
4458
  return new i(r, e);
@@ -4463,7 +4468,7 @@ class vi {
4463
4468
  this._name = e, this._axis = r;
4464
4469
  }
4465
4470
  }
4466
- class _s extends vi {
4471
+ class gs extends vi {
4467
4472
  constructor({
4468
4473
  name: e,
4469
4474
  operator: r,
@@ -4482,18 +4487,18 @@ class _s extends vi {
4482
4487
  return this._stacked;
4483
4488
  }
4484
4489
  }
4485
- class gs extends vi {
4490
+ class ps extends vi {
4486
4491
  constructor({ name: e }) {
4487
4492
  super({ name: e, axis: "x" });
4488
4493
  }
4489
4494
  }
4490
- const ps = ({ ooui: t }) => {
4495
+ const ys = ({ ooui: t }) => {
4491
4496
  const r = [t.x.name];
4492
4497
  return t.y ? (t.y.forEach((i) => {
4493
4498
  i.operator !== "count" && !r.includes(i.name) && r.push(i.name), i.label && !r.includes(i.label) && r.push(i.label);
4494
4499
  }), r) : [];
4495
4500
  };
4496
- function Zt({
4501
+ function er({
4497
4502
  fields: t,
4498
4503
  values: e,
4499
4504
  fieldName: r
@@ -4509,25 +4514,25 @@ function Zt({
4509
4514
  }
4510
4515
  return { value: n, label: n };
4511
4516
  }
4512
- const Ps = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4517
+ const Ns = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4513
4518
  __proto__: null,
4514
- getFieldsToRetrieve: ps,
4515
- getValueAndLabelForField: Zt
4519
+ getFieldsToRetrieve: ys,
4520
+ getValueAndLabelForField: er
4516
4521
  }, Symbol.toStringTag, { value: "Module" }));
4517
- function ys({
4522
+ function ws({
4518
4523
  values: t,
4519
4524
  timerange: e
4520
4525
  }) {
4521
- const r = ms({
4526
+ const r = vs({
4522
4527
  values: t,
4523
4528
  timerange: e
4524
4529
  });
4525
- return ws({
4530
+ return bs({
4526
4531
  values: r,
4527
4532
  timerange: e
4528
4533
  });
4529
4534
  }
4530
- function ws({
4535
+ function bs({
4531
4536
  values: t,
4532
4537
  timerange: e
4533
4538
  }) {
@@ -4544,7 +4549,7 @@ function ws({
4544
4549
  return;
4545
4550
  const b = _.x, w = u[f + 1].x;
4546
4551
  if (!Ei([b, w], n)) {
4547
- const g = bs({
4552
+ const g = ms({
4548
4553
  dates: [b, w],
4549
4554
  timerange: e
4550
4555
  });
@@ -4560,7 +4565,7 @@ function ws({
4560
4565
  }
4561
4566
  }), r.sort((a, u) => a.x < u.x ? -1 : a.x > u.x ? 1 : 0);
4562
4567
  }
4563
- function bs({
4568
+ function ms({
4564
4569
  dates: t,
4565
4570
  timerange: e
4566
4571
  }) {
@@ -4578,11 +4583,11 @@ function bs({
4578
4583
  }
4579
4584
  return r;
4580
4585
  }
4581
- function ms({
4586
+ function vs({
4582
4587
  values: t,
4583
4588
  timerange: e
4584
4589
  }) {
4585
- const r = vs({
4590
+ const r = Es({
4586
4591
  values: t,
4587
4592
  timerange: e
4588
4593
  });
@@ -4602,23 +4607,23 @@ function ms({
4602
4607
  });
4603
4608
  }), i;
4604
4609
  }
4605
- function vs({
4610
+ function Es({
4606
4611
  values: t,
4607
4612
  timerange: e
4608
4613
  }) {
4609
4614
  return t.map((r) => ({
4610
4615
  ...r,
4611
- x: Es({
4616
+ x: xs({
4612
4617
  date: r.x,
4613
4618
  timerange: e
4614
4619
  })
4615
4620
  }));
4616
4621
  }
4617
- function Es({
4622
+ function xs({
4618
4623
  date: t,
4619
4624
  timerange: e
4620
4625
  }) {
4621
- let r = xs(t);
4626
+ let r = Rs(t);
4622
4627
  const i = Me(t, r);
4623
4628
  switch (e) {
4624
4629
  case "hour": {
@@ -4644,7 +4649,7 @@ function Es({
4644
4649
  }
4645
4650
  return i.format(r);
4646
4651
  }
4647
- function xs(t) {
4652
+ function Rs(t) {
4648
4653
  return t.indexOf(":") ? "YYYY-MM-DD HH:mm:ss" : "YYYY-MM-DD";
4649
4654
  }
4650
4655
  function Ei(t, e) {
@@ -4685,7 +4690,7 @@ function Ge(t) {
4685
4690
  return "YYYY";
4686
4691
  }
4687
4692
  }
4688
- const Rs = {
4693
+ const Ss = {
4689
4694
  count: "count",
4690
4695
  "+": "sum",
4691
4696
  "-": "subtract",
@@ -4693,7 +4698,7 @@ const Rs = {
4693
4698
  avg: "average",
4694
4699
  min: "min",
4695
4700
  max: "max"
4696
- }, Ss = ({
4701
+ }, Ts = ({
4697
4702
  ooui: t,
4698
4703
  values: e,
4699
4704
  fields: r,
@@ -4760,7 +4765,7 @@ const Rs = {
4760
4765
  (g) => g.x !== !1
4761
4766
  ));
4762
4767
  let w = b;
4763
- return t.timerange ? w = ys({
4768
+ return t.timerange ? w = ws({
4764
4769
  values: w,
4765
4770
  timerange: t.timerange
4766
4771
  }) : t.type == "pie" && (w = b.sort((g, m) => m.value - g.value)), {
@@ -4774,7 +4779,7 @@ function Bt({
4774
4779
  fieldName: e,
4775
4780
  fields: r
4776
4781
  }) {
4777
- return t.map((i) => Zt({
4782
+ return t.map((i) => er({
4778
4783
  fieldName: e,
4779
4784
  values: i,
4780
4785
  fields: r
@@ -4825,7 +4830,7 @@ function Lt({
4825
4830
  }) {
4826
4831
  const i = {};
4827
4832
  return r.forEach((n) => {
4828
- const { value: s, label: a } = Zt({
4833
+ const { value: s, label: a } = er({
4829
4834
  fields: e,
4830
4835
  values: n,
4831
4836
  fieldName: t
@@ -4833,7 +4838,7 @@ function Lt({
4833
4838
  i[s] || (i[s] = { label: a, entries: [] }), i[s].entries.push(n);
4834
4839
  }), i;
4835
4840
  }
4836
- function Ts(t) {
4841
+ function Cs(t) {
4837
4842
  let e = [];
4838
4843
  return Object.keys(t).forEach((r) => {
4839
4844
  const i = t[r];
@@ -4847,70 +4852,71 @@ function Ri({
4847
4852
  const r = e[t.name];
4848
4853
  return r && r.string ? r.string : t.name;
4849
4854
  }
4850
- const Ns = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4855
+ const Is = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4851
4856
  __proto__: null,
4852
- labelsForOperator: Rs,
4853
- processGraphData: Ss,
4857
+ labelsForOperator: Ss,
4858
+ processGraphData: Ts,
4854
4859
  getValuesForYField: Bt,
4855
4860
  getValueForOperator: tt,
4856
4861
  getValuesGroupedByField: Lt,
4857
- getAllObjectsInGroupedValues: Ts,
4862
+ getAllObjectsInGroupedValues: Cs,
4858
4863
  getYAxisFieldname: Ri
4859
4864
  }, Symbol.toStringTag, { value: "Module" }));
4860
4865
  export {
4861
- zi as Binary,
4866
+ qi as Binary,
4862
4867
  Sr as Boolean,
4863
4868
  Mi as Button,
4864
4869
  ki as ButtonGroup,
4865
4870
  wt as Char,
4866
- Zi as CodeEditor,
4871
+ en as CodeEditor,
4867
4872
  Je as Container,
4868
4873
  Ce as ContainerWidget,
4869
- Ms as Dashboard,
4870
- us as DashboardItem,
4871
- Li as Date,
4872
- Ui as DateTime,
4874
+ ks as Dashboard,
4875
+ fs as DashboardItem,
4876
+ Ui as Date,
4877
+ Wi as DateTime,
4873
4878
  W as Field,
4874
- Ut as Float,
4875
- Ii as FloatTime,
4876
- ls as Form,
4879
+ Wt as Float,
4880
+ Bi as FloatTime,
4881
+ us as Form,
4877
4882
  bi as Graph,
4878
4883
  vi as GraphAxis,
4879
4884
  Dt as GraphChart,
4880
4885
  mi as GraphIndicator,
4881
- cs as GraphIndicatorField,
4882
- gs as GraphXAxis,
4883
- _s as GraphYAxis,
4886
+ hs as GraphIndicatorField,
4887
+ ps as GraphXAxis,
4888
+ gs as GraphYAxis,
4884
4889
  Di as Group,
4885
- qi as Image,
4886
- Hi as Indicator,
4887
- Ni as Integer,
4888
- Er as Label,
4889
- Wi as Many2many,
4890
+ Vi as Image,
4891
+ Gi as Indicator,
4892
+ Ii as Integer,
4893
+ xr as Label,
4894
+ ji as Many2many,
4890
4895
  Pi as Many2one,
4896
+ Ni as Markdown,
4891
4897
  Cr as MultiCheckbox,
4892
- vr as NewLine,
4893
- xr as Notebook,
4898
+ Er as NewLine,
4899
+ Rr as Notebook,
4894
4900
  Tr as One2many,
4895
4901
  Oi as Page,
4896
- Bi as ProgressBar,
4897
- Ki as Radio,
4898
- Yi as Reference,
4899
- Os as SearchFilter,
4902
+ Li as ProgressBar,
4903
+ Xi as Radio,
4904
+ zi as Reference,
4905
+ Ds as SearchFilter,
4900
4906
  Pe as Selection,
4901
- ji as Separator,
4902
- Qi as Steps,
4903
- Xi as Switch,
4904
- Ji as Tag,
4905
- Gi as Tags,
4906
- Rr as Text,
4907
- $i as Timeline,
4908
- Fs as Tree,
4907
+ Yi as Separator,
4908
+ Zi as Steps,
4909
+ Qi as Switch,
4910
+ Ki as Tag,
4911
+ Ji as Tags,
4912
+ Ut as Text,
4913
+ Hi as Timeline,
4914
+ Os as Tree,
4909
4915
  Te as Widget,
4910
- Ps as graphFieldUtils,
4911
- Ns as graphProcessor,
4912
- nn as parseContext,
4913
- ks as parseGraph,
4914
- Ds as transformDomainForChildWidget
4916
+ Ns as graphFieldUtils,
4917
+ Is as graphProcessor,
4918
+ an as parseContext,
4919
+ Ps as parseGraph,
4920
+ Ms as transformDomainForChildWidget
4915
4921
  };
4916
4922
  //# sourceMappingURL=ooui.es.js.map