js-gei 1.1.9 → 1.1.10

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/js-gei.es.js CHANGED
@@ -138,8 +138,8 @@ const Do = class Do {
138
138
  }
139
139
  };
140
140
  Do.operators = ["<=", ">=", "!=", "<>", "==", "<", ">", "="], Do.logicaloperators = ["&&", "||"];
141
- let He = Do;
142
- class Yi extends He {
141
+ let Ge = Do;
142
+ class Yi extends Ge {
143
143
  constructor(e) {
144
144
  super(e, null);
145
145
  }
@@ -147,7 +147,7 @@ class Yi extends He {
147
147
  return this.Expression;
148
148
  }
149
149
  }
150
- class Zn extends He {
150
+ class Zn extends Ge {
151
151
  constructor(e) {
152
152
  super(e, null);
153
153
  }
@@ -163,7 +163,7 @@ class Zn extends He {
163
163
  return this.Expression;
164
164
  }
165
165
  }
166
- class Sn extends He {
166
+ class Sn extends Ge {
167
167
  constructor(e, t) {
168
168
  super(e, null), this.Numeric = !1, this.Numeric = t;
169
169
  }
@@ -181,13 +181,13 @@ class Sn extends He {
181
181
  return i;
182
182
  }
183
183
  }
184
- const Da = class Da extends He {
184
+ const Da = class Da extends Ge {
185
185
  constructor(e) {
186
186
  super(e, null), this.subParse = [];
187
187
  for (var t = [], n = ""; e.length > 0; ) {
188
188
  var a = !1;
189
- for (let f = 0; f < He.operators.length; f++) {
190
- let m = He.operators[f];
189
+ for (let f = 0; f < Ge.operators.length; f++) {
190
+ let m = Ge.operators[f];
191
191
  if (e.startsWith(m)) {
192
192
  t.push(new Yi(e.substring(0, m.length))), e = e.substring(m.length), a = !0;
193
193
  break;
@@ -242,7 +242,7 @@ const Da = class Da extends He {
242
242
  };
243
243
  Da._literalValues = ["(", ")"];
244
244
  let vt = Da;
245
- class _t extends He {
245
+ class _t extends Ge {
246
246
  constructor(e, t) {
247
247
  super(e, t);
248
248
  }
@@ -250,7 +250,7 @@ class _t extends He {
250
250
  return this.Expression;
251
251
  }
252
252
  }
253
- class ss extends He {
253
+ class ss extends Ge {
254
254
  constructor(e) {
255
255
  super(e, null);
256
256
  }
@@ -258,7 +258,7 @@ class ss extends He {
258
258
  return this.Expression;
259
259
  }
260
260
  }
261
- class Bh extends He {
261
+ class Bh extends Ge {
262
262
  constructor(e, t) {
263
263
  super(e, t), this.value = [], this.numOfZeros = [];
264
264
  var n = We.GetExpressions(this.Expression, this);
@@ -284,7 +284,7 @@ class Bh extends He {
284
284
  return u;
285
285
  }
286
286
  }
287
- class Rh extends He {
287
+ class Rh extends Ge {
288
288
  constructor(e, t) {
289
289
  super(e, t), this.FieldName = "";
290
290
  var n = this.Expression.split(".");
@@ -315,7 +315,7 @@ class Rh extends He {
315
315
  return !1;
316
316
  }
317
317
  }
318
- class Ih extends He {
318
+ class Ih extends Ge {
319
319
  constructor(e, t) {
320
320
  super(e, t), this.conditionParse = [], this.conditionTrueParse = [], this.conditionFalseParse = [];
321
321
  var n = We.GetExpressions(this.Expression, this);
@@ -435,11 +435,11 @@ class Ih extends He {
435
435
  return o = this.StringCompare(f, m, l[0].Expression), this.evaluateCondition(o);
436
436
  }
437
437
  if (f instanceof Date && typeof m == "string") {
438
- var d = He.getIsoDateTime(f);
438
+ var d = Ge.getIsoDateTime(f);
439
439
  return o = this.StringCompare(d, m, l[0].Expression), this.evaluateCondition(o);
440
440
  }
441
441
  if (typeof f == "string" && m instanceof Date) {
442
- var y = He.getIsoDateTime(m);
442
+ var y = Ge.getIsoDateTime(m);
443
443
  return o = this.StringCompare(f, y, l[0].Expression), this.evaluateCondition(o);
444
444
  }
445
445
  if (f instanceof Date && m instanceof Date)
@@ -484,7 +484,7 @@ class Ih extends He {
484
484
  }
485
485
  }
486
486
  }
487
- class Ph extends He {
487
+ class Ph extends Ge {
488
488
  constructor(e, t) {
489
489
  super(e, t);
490
490
  }
@@ -492,7 +492,7 @@ class Ph extends He {
492
492
  return e.SumByKey(this.Expression);
493
493
  }
494
494
  }
495
- class $h extends He {
495
+ class $h extends Ge {
496
496
  constructor(e, t) {
497
497
  super(e, t), this.value = "", this.offset = "";
498
498
  var n = this.Expression.split(",");
@@ -504,15 +504,15 @@ class $h extends He {
504
504
  var i = new vt(this.value), o = i.Evaluate(e, t, n, a), l = new vt(this.offset), u = l.Evaluate(e, t, n, a), s = null, c = null;
505
505
  if (o.constructor.name == "Date" ? s = o : typeof o == "string" && (s = new Date(o)), typeof u == "number" ? c = u : typeof u == "string" && (c = parseInt(u)), c != null && s != null) {
506
506
  if (s.setDate(s.getDate() + c), a.TypeDDD == "Date")
507
- return He.getIsoDate(s);
507
+ return Ge.getIsoDate(s);
508
508
  if (a.TypeDDD == "DateTime")
509
- return He.getIsoDateTime(s);
509
+ return Ge.getIsoDateTime(s);
510
510
  } else
511
511
  debugger;
512
512
  return this.Expression;
513
513
  }
514
514
  }
515
- class _u extends He {
515
+ class _u extends Ge {
516
516
  constructor(e, t) {
517
517
  super(e, t), this.lower = !0, t.toLowerCase() == "upper(" && (this.lower = !1);
518
518
  }
@@ -524,7 +524,7 @@ class _u extends He {
524
524
  return o == null ? null : typeof o == "string" ? this.lower ? o.toLowerCase() : o.toUpperCase() : o;
525
525
  }
526
526
  }
527
- class Tu extends He {
527
+ class Tu extends Ge {
528
528
  constructor(e, t) {
529
529
  if (super(e, t), this.Negate = !1, this.FieldSet = "", this.aviableValues = [], this.Expression != null && this.Expression.startsWith("(")) {
530
530
  var n = We.FindEnd(this.Expression), a = this.Expression.substring(1, n);
@@ -539,7 +539,7 @@ class Tu extends He {
539
539
  return this.Negate ? l == -1 : l != -1;
540
540
  }
541
541
  }
542
- class Fu extends He {
542
+ class Fu extends Ge {
543
543
  constructor(e, t) {
544
544
  if (super(e, t), this.Negate = !1, this.TableAndField = "", this.Table = "", this.Field = "", this.aviableValues = [], this.Expression != null && this.Expression.startsWith("(")) {
545
545
  var n = We.FindEnd(this.Expression), a = this.Expression.substring(1, n);
@@ -583,7 +583,7 @@ class Fu extends He {
583
583
  }
584
584
  }
585
585
  }
586
- class qh extends He {
586
+ class qh extends Ge {
587
587
  constructor(e, t) {
588
588
  super(e, t), this.starts = null, this.value = null;
589
589
  var n = this.Expression.split(",");
@@ -598,7 +598,7 @@ class qh extends He {
598
598
  return s;
599
599
  }
600
600
  }
601
- class zh extends He {
601
+ class zh extends Ge {
602
602
  constructor(e, t) {
603
603
  super(e, t), this.starts = [], this.value = [], this.length = [];
604
604
  var n = We.GetExpressions(this.Expression, this), a = [];
@@ -632,7 +632,7 @@ class zh extends He {
632
632
  return t == null || t instanceof _t ? (this.value.length == 0 ? this.value = e : this.starts.length == 0 ? this.starts = e : this.length.length == 0 && (this.length = e), []) : (e.push(t), e);
633
633
  }
634
634
  }
635
- class Lh extends He {
635
+ class Lh extends Ge {
636
636
  constructor(e, t) {
637
637
  super(e, t), this.Table = ";", this.Table = this.Expression;
638
638
  }
@@ -644,7 +644,7 @@ class Lh extends He {
644
644
  return i == null ? -1 : (o = i.Records) == null ? void 0 : o.Records.length;
645
645
  }
646
646
  }
647
- class Ou extends He {
647
+ class Ou extends Ge {
648
648
  constructor(e, t) {
649
649
  var a;
650
650
  super(e, t), this.Table = "", this.FieldName = "", this.Negate = !1, t.toLowerCase() == "notexists(" && (this.Negate = !0);
@@ -674,7 +674,7 @@ class Ou extends He {
674
674
  return this.Negate && (o = !o), o;
675
675
  }
676
676
  }
677
- class Bu extends He {
677
+ class Bu extends Ge {
678
678
  constructor(e, t) {
679
679
  super(e, t), this.valueExp = null, this.Negate = !1, t.toLowerCase() == "nonempty(" && (this.Negate = !0);
680
680
  var n = We.GetExpressions(this.Expression, this);
@@ -700,7 +700,7 @@ class Bu extends He {
700
700
  return this.Negate ? !o : o;
701
701
  }
702
702
  }
703
- class Uh extends He {
703
+ class Uh extends Ge {
704
704
  constructor(e, t) {
705
705
  super(e, t), this.sections = [], this.sections = We.GetExpressions(this.Expression, this) ?? [];
706
706
  }
@@ -715,7 +715,7 @@ class Uh extends He {
715
715
  return i;
716
716
  }
717
717
  }
718
- class kh extends He {
718
+ class kh extends Ge {
719
719
  constructor(e, t) {
720
720
  super(e, t), this.Detail = "", this.Exp = "", this.Parameter = "";
721
721
  var n = this.Expression.split(",");
@@ -752,7 +752,7 @@ class kh extends He {
752
752
  throw "Check prameter isn't valid!Valid:One,All.Provided:" + this.Parameter;
753
753
  }
754
754
  }
755
- class Vh extends He {
755
+ class Vh extends Ge {
756
756
  constructor(e, t) {
757
757
  super(e, t);
758
758
  }
@@ -767,7 +767,7 @@ class Vh extends He {
767
767
  return i.length;
768
768
  }
769
769
  }
770
- class Gh extends He {
770
+ class Gh extends Ge {
771
771
  constructor(e, t) {
772
772
  super(e, null), this.Table = "", this.FieldName = "", this.Position = "";
773
773
  var n = this.Expression.split(","), a = "first";
@@ -796,7 +796,7 @@ class Gh extends He {
796
796
  return u == null ? null : typeof u == "number" ? u : u.ToString();
797
797
  }
798
798
  }
799
- class Hh extends He {
799
+ class Hh extends Ge {
800
800
  constructor(e, t) {
801
801
  super(e, t), this.useFirstExpressions = [];
802
802
  var n = [], a = We.GetExpressions(this.Expression, this);
@@ -817,7 +817,7 @@ class Hh extends He {
817
817
  return null;
818
818
  }
819
819
  }
820
- class Wh extends He {
820
+ class Wh extends Ge {
821
821
  constructor(e, t) {
822
822
  super(e, t), this.Table = "", this.FieldName = "", this.Negate = !1;
823
823
  }
@@ -835,7 +835,7 @@ class Wh extends He {
835
835
  return u != null && u.length > 0 ? u[0].Name : (u = u = a.ValidValuesRegistry.filter((s) => s.Name.toLowerCase().includes(l.toLowerCase())), u != null && u.length > 0 ? u[0].Code : null);
836
836
  }
837
837
  }
838
- class Yh extends He {
838
+ class Yh extends Ge {
839
839
  constructor(e, t) {
840
840
  super(e, t);
841
841
  }
@@ -846,7 +846,7 @@ class Yh extends He {
846
846
  return l.getFullYear();
847
847
  }
848
848
  }
849
- class Zh extends He {
849
+ class Zh extends Ge {
850
850
  constructor(e, t) {
851
851
  super(e, t);
852
852
  }
@@ -860,7 +860,7 @@ class Zh extends He {
860
860
  return e >= 10 ? e.toString() : "0" + e.toString();
861
861
  }
862
862
  }
863
- class Jh extends He {
863
+ class Jh extends Ge {
864
864
  constructor(e, t) {
865
865
  super(e, t), this.valueParse = null, this.regexParse = null;
866
866
  let n = We.GetExpressions(this.Expression, this);
@@ -892,7 +892,7 @@ class Jh extends He {
892
892
  return o == null ? i : (o = o + "/g", i.replace("/" + o + "/g", ""));
893
893
  }
894
894
  }
895
- class jh extends He {
895
+ class jh extends Ge {
896
896
  constructor(e, t) {
897
897
  super(e, t), this.valueParse = null, this.regexParse = null;
898
898
  let n = We.GetExpressions(this.Expression, this);
@@ -2130,7 +2130,7 @@ function n0(r) {
2130
2130
  const e = r.match(Kg);
2131
2131
  return e ? e[1].replace(e0, "'") : r;
2132
2132
  }
2133
- class a0 extends He {
2133
+ class a0 extends Ge {
2134
2134
  constructor(e, t) {
2135
2135
  super(e, t), this.fieldDateTime = null, this.formatDateTime = null;
2136
2136
  let n = We.GetExpressions(this.Expression, this);
@@ -2172,7 +2172,7 @@ class a0 extends He {
2172
2172
  return t0(l, i);
2173
2173
  }
2174
2174
  }
2175
- class i0 extends He {
2175
+ class i0 extends Ge {
2176
2176
  constructor(e, t) {
2177
2177
  super(e, t);
2178
2178
  }
@@ -2205,7 +2205,7 @@ class i0 extends He {
2205
2205
  return !0;
2206
2206
  }
2207
2207
  }
2208
- class o0 extends He {
2208
+ class o0 extends Ge {
2209
2209
  constructor(e, t) {
2210
2210
  super(e, t);
2211
2211
  }
@@ -2213,7 +2213,7 @@ class o0 extends He {
2213
2213
  return this.Expression;
2214
2214
  }
2215
2215
  }
2216
- class s0 extends He {
2216
+ class s0 extends Ge {
2217
2217
  constructor(e, t) {
2218
2218
  super(e, t), this.sourceDateTimeParse = null, this.compareDateTimeParse = null;
2219
2219
  var n = We.GetExpressions(this.Expression, this), a = [];
@@ -2263,7 +2263,7 @@ class s0 extends He {
2263
2263
  }
2264
2264
  }
2265
2265
  }
2266
- class u0 extends He {
2266
+ class u0 extends Ge {
2267
2267
  constructor(e, t) {
2268
2268
  super(e, t), this.valueParse = null, this.formatParse = null;
2269
2269
  var n = We.GetExpressions(this.Expression, this), a = [];
@@ -2293,7 +2293,7 @@ class u0 extends He {
2293
2293
  return o(l, "yyyy-MM-dd HH:mm");
2294
2294
  }
2295
2295
  }
2296
- class l0 extends He {
2296
+ class l0 extends Ge {
2297
2297
  constructor(e, t) {
2298
2298
  super(e, t);
2299
2299
  }
@@ -2312,7 +2312,7 @@ class l0 extends He {
2312
2312
  }
2313
2313
  }
2314
2314
  }
2315
- class c0 extends He {
2315
+ class c0 extends Ge {
2316
2316
  constructor(e, t) {
2317
2317
  super(e, t), this.codeListTableParse = null, this.codeListFieldParse = null, this.objectValueExpresionParse = null, this.codeListDestFieldParse = null;
2318
2318
  var n = We.GetExpressions(this.Expression, this), a = [];
@@ -2368,7 +2368,7 @@ class c0 extends He {
2368
2368
  }
2369
2369
  }
2370
2370
  }
2371
- class f0 extends He {
2371
+ class f0 extends Ge {
2372
2372
  constructor(e, t) {
2373
2373
  super(e, t), this.Table = "", this.Field = "", this.ValueExpress = "";
2374
2374
  var n = this.Expression.split(",");
@@ -6140,11 +6140,11 @@ typeof BigInt > "u" && (BigInt = function(r) {
6140
6140
  if (isNaN(r)) throw new Error("");
6141
6141
  return r;
6142
6142
  });
6143
- const Ge = BigInt(0), vr = BigInt(1), Kr = BigInt(2), ni = BigInt(3), ba = BigInt(5), Nt = BigInt(10);
6143
+ const He = BigInt(0), vr = BigInt(1), Kr = BigInt(2), ni = BigInt(3), ba = BigInt(5), Nt = BigInt(10);
6144
6144
  BigInt(Number.MAX_SAFE_INTEGER);
6145
6145
  const a1 = 2e3, Be = {
6146
6146
  s: vr,
6147
- n: Ge,
6147
+ n: He,
6148
6148
  d: vr
6149
6149
  };
6150
6150
  function un(r, e) {
@@ -6159,10 +6159,10 @@ function Gt(r) {
6159
6159
  return typeof r == "bigint" ? r : Math.floor(r);
6160
6160
  }
6161
6161
  function Rr(r, e) {
6162
- if (e === Ge)
6162
+ if (e === He)
6163
6163
  throw Is();
6164
6164
  const t = Object.create(It.prototype);
6165
- t.s = r < Ge ? -vr : vr, r = r < Ge ? -r : r;
6165
+ t.s = r < He ? -vr : vr, r = r < He ? -r : r;
6166
6166
  const n = Hn(r, e);
6167
6167
  return t.n = r / n, t.d = e / n, t;
6168
6168
  }
@@ -6172,23 +6172,23 @@ function pa(r) {
6172
6172
  if (r <= vr)
6173
6173
  return e[r] = vr, e;
6174
6174
  const t = (n) => {
6175
- e[n] = (e[n] || Ge) + vr;
6175
+ e[n] = (e[n] || He) + vr;
6176
6176
  };
6177
- for (; r % Kr === Ge; )
6177
+ for (; r % Kr === He; )
6178
6178
  t(Kr), r /= Kr;
6179
- for (; r % ni === Ge; )
6179
+ for (; r % ni === He; )
6180
6180
  t(ni), r /= ni;
6181
- for (; r % ba === Ge; )
6181
+ for (; r % ba === He; )
6182
6182
  t(ba), r /= ba;
6183
6183
  for (let n = 0, a = Kr + ba; a * a <= r; ) {
6184
- for (; r % a === Ge; )
6184
+ for (; r % a === He; )
6185
6185
  t(a), r /= a;
6186
6186
  a += i1[n], n = n + 1 & 7;
6187
6187
  }
6188
6188
  return r > vr && t(r), e;
6189
6189
  }
6190
6190
  const Qr = function(r, e) {
6191
- let t = Ge, n = vr, a = vr;
6191
+ let t = He, n = vr, a = vr;
6192
6192
  if (r != null) if (e !== void 0) {
6193
6193
  if (typeof r == "bigint")
6194
6194
  t = r;
@@ -6237,7 +6237,7 @@ const Qr = function(r, e) {
6237
6237
  t = BigInt(t) * BigInt(i), n = BigInt(n);
6238
6238
  }
6239
6239
  } else if (typeof r == "string") {
6240
- let i = 0, o = Ge, l = Ge, u = Ge, s = vr, c = vr, f = r.replace(/_/g, "").match(/\d+|./g);
6240
+ let i = 0, o = He, l = He, u = He, s = vr, c = vr, f = r.replace(/_/g, "").match(/\d+|./g);
6241
6241
  if (f === null)
6242
6242
  throw wn();
6243
6243
  if (f[i] === "-" ? (a = -vr, i++) : f[i] === "+" && i++, f.length === i + 1 ? l = un(f[i++], a) : f[i + 1] === "." || f[i] === "." ? (f[i] !== "." && (o = un(f[i++], a)), i++, (i + 1 === f.length || f[i + 1] === "(" && f[i + 3] === ")" || f[i + 1] === "'" && f[i + 3] === "'") && (l = un(f[i], a), s = Nt ** BigInt(f[i].length), i++), (f[i] === "(" && f[i + 2] === ")" || f[i] === "'" && f[i + 2] === "'") && (u = un(f[i + 1], a), c = Nt ** BigInt(f[i + 1].length) - vr, i += 3)) : f[i + 1] === "/" || f[i + 1] === ":" ? (l = un(f[i], a), s = un(f[i + 2], vr), i += 3) : f[i + 3] === "/" && f[i + 1] === " " && (o = un(f[i], a), l = un(f[i + 2], a), s = un(f[i + 4], vr), i += 5), f.length <= i)
@@ -6249,27 +6249,27 @@ const Qr = function(r, e) {
6249
6249
  t = r, a = r, n = vr;
6250
6250
  else
6251
6251
  throw wn();
6252
- if (n === Ge)
6252
+ if (n === He)
6253
6253
  throw Is();
6254
- Be.s = a < Ge ? -vr : vr, Be.n = t < Ge ? -t : t, Be.d = n < Ge ? -n : n;
6254
+ Be.s = a < He ? -vr : vr, Be.n = t < He ? -t : t, Be.d = n < He ? -n : n;
6255
6255
  };
6256
6256
  function o1(r, e, t) {
6257
6257
  let n = vr;
6258
- for (; e > Ge; r = r * r % t, e >>= vr)
6258
+ for (; e > He; r = r * r % t, e >>= vr)
6259
6259
  e & vr && (n = n * r % t);
6260
6260
  return n;
6261
6261
  }
6262
6262
  function s1(r, e) {
6263
- for (; e % Kr === Ge; e /= Kr)
6263
+ for (; e % Kr === He; e /= Kr)
6264
6264
  ;
6265
- for (; e % ba === Ge; e /= ba)
6265
+ for (; e % ba === He; e /= ba)
6266
6266
  ;
6267
6267
  if (e === vr)
6268
- return Ge;
6268
+ return He;
6269
6269
  let t = Nt % e, n = 1;
6270
6270
  for (; t !== vr; n++)
6271
6271
  if (t = t * Nt % e, n > a1)
6272
- return Ge;
6272
+ return He;
6273
6273
  return BigInt(n);
6274
6274
  }
6275
6275
  function u1(r, e, t) {
@@ -6308,7 +6308,7 @@ const Is = function() {
6308
6308
  };
6309
6309
  It.prototype = {
6310
6310
  s: vr,
6311
- n: Ge,
6311
+ n: He,
6312
6312
  d: vr,
6313
6313
  /**
6314
6314
  * Calculates the absolute value
@@ -6387,7 +6387,7 @@ It.prototype = {
6387
6387
  mod: function(r, e) {
6388
6388
  if (r === void 0)
6389
6389
  return Rr(this.s * this.n % this.d, vr);
6390
- if (Qr(r, e), Ge === Be.n * this.d)
6390
+ if (Qr(r, e), He === Be.n * this.d)
6391
6391
  throw Is();
6392
6392
  return Rr(
6393
6393
  this.s * (Be.d * this.n) % (Be.n * this.d),
@@ -6408,7 +6408,7 @@ It.prototype = {
6408
6408
  * Ex: new Fraction(5,8).lcm(3,7) => 15
6409
6409
  */
6410
6410
  lcm: function(r, e) {
6411
- return Qr(r, e), Be.n === Ge && this.n === Ge ? Rr(Ge, vr) : Rr(Be.n * this.n, Hn(Be.n, this.n) * Hn(Be.d, this.d));
6411
+ return Qr(r, e), Be.n === He && this.n === He ? Rr(He, vr) : Rr(Be.n * this.n, Hn(Be.n, this.n) * Hn(Be.d, this.d));
6412
6412
  },
6413
6413
  /**
6414
6414
  * Gets the inverse of the fraction, means numerator and denominator are exchanged
@@ -6425,28 +6425,28 @@ It.prototype = {
6425
6425
  */
6426
6426
  pow: function(r, e) {
6427
6427
  if (Qr(r, e), Be.d === vr)
6428
- return Be.s < Ge ? Rr((this.s * this.d) ** Be.n, this.n ** Be.n) : Rr((this.s * this.n) ** Be.n, this.d ** Be.n);
6429
- if (this.s < Ge) return null;
6428
+ return Be.s < He ? Rr((this.s * this.d) ** Be.n, this.n ** Be.n) : Rr((this.s * this.n) ** Be.n, this.d ** Be.n);
6429
+ if (this.s < He) return null;
6430
6430
  let t = pa(this.n), n = pa(this.d), a = vr, i = vr;
6431
6431
  for (let o in t)
6432
6432
  if (o !== "1") {
6433
6433
  if (o === "0") {
6434
- a = Ge;
6434
+ a = He;
6435
6435
  break;
6436
6436
  }
6437
- if (t[o] *= Be.n, t[o] % Be.d === Ge)
6437
+ if (t[o] *= Be.n, t[o] % Be.d === He)
6438
6438
  t[o] /= Be.d;
6439
6439
  else return null;
6440
6440
  a *= BigInt(o) ** t[o];
6441
6441
  }
6442
6442
  for (let o in n)
6443
6443
  if (o !== "1") {
6444
- if (n[o] *= Be.n, n[o] % Be.d === Ge)
6444
+ if (n[o] *= Be.n, n[o] % Be.d === He)
6445
6445
  n[o] /= Be.d;
6446
6446
  else return null;
6447
6447
  i *= BigInt(o) ** n[o];
6448
6448
  }
6449
- return Be.s < Ge ? Rr(i, a) : Rr(a, i);
6449
+ return Be.s < He ? Rr(i, a) : Rr(a, i);
6450
6450
  },
6451
6451
  /**
6452
6452
  * Calculates the logarithm of a fraction to a given rational base
@@ -6454,21 +6454,21 @@ It.prototype = {
6454
6454
  * Ex: new Fraction(27, 8).log(9, 4) => 3/2
6455
6455
  */
6456
6456
  log: function(r, e) {
6457
- if (Qr(r, e), this.s <= Ge || Be.s <= Ge) return null;
6457
+ if (Qr(r, e), this.s <= He || Be.s <= He) return null;
6458
6458
  const t = /* @__PURE__ */ Object.create(null), n = pa(Be.n), a = pa(Be.d), i = pa(this.n), o = pa(this.d);
6459
6459
  for (const s in a)
6460
- n[s] = (n[s] || Ge) - a[s];
6460
+ n[s] = (n[s] || He) - a[s];
6461
6461
  for (const s in o)
6462
- i[s] = (i[s] || Ge) - o[s];
6462
+ i[s] = (i[s] || He) - o[s];
6463
6463
  for (const s in n)
6464
6464
  s !== "1" && (t[s] = !0);
6465
6465
  for (const s in i)
6466
6466
  s !== "1" && (t[s] = !0);
6467
6467
  let l = null, u = null;
6468
6468
  for (const s in t) {
6469
- const c = n[s] || Ge, f = i[s] || Ge;
6470
- if (c === Ge) {
6471
- if (f !== Ge)
6469
+ const c = n[s] || He, f = i[s] || He;
6470
+ if (c === He) {
6471
+ if (f !== He)
6472
6472
  return null;
6473
6473
  continue;
6474
6474
  }
@@ -6532,7 +6532,7 @@ It.prototype = {
6532
6532
  compare: function(r, e) {
6533
6533
  Qr(r, e);
6534
6534
  let t = this.s * this.n * Be.d - Be.s * Be.n * this.d;
6535
- return (Ge < t) - (t < Ge);
6535
+ return (He < t) - (t < He);
6536
6536
  },
6537
6537
  /**
6538
6538
  * Calculates the ceil of a rational number
@@ -6541,7 +6541,7 @@ It.prototype = {
6541
6541
  **/
6542
6542
  ceil: function(r) {
6543
6543
  return r = Nt ** BigInt(r || 0), Rr(
6544
- Gt(this.s * r * this.n / this.d) + (r * this.n % this.d > Ge && this.s >= Ge ? vr : Ge),
6544
+ Gt(this.s * r * this.n / this.d) + (r * this.n % this.d > He && this.s >= He ? vr : He),
6545
6545
  r
6546
6546
  );
6547
6547
  },
@@ -6552,7 +6552,7 @@ It.prototype = {
6552
6552
  **/
6553
6553
  floor: function(r) {
6554
6554
  return r = Nt ** BigInt(r || 0), Rr(
6555
- Gt(this.s * r * this.n / this.d) - (r * this.n % this.d > Ge && this.s < Ge ? vr : Ge),
6555
+ Gt(this.s * r * this.n / this.d) - (r * this.n % this.d > He && this.s < He ? vr : He),
6556
6556
  r
6557
6557
  );
6558
6558
  },
@@ -6563,7 +6563,7 @@ It.prototype = {
6563
6563
  **/
6564
6564
  round: function(r) {
6565
6565
  return r = Nt ** BigInt(r || 0), Rr(
6566
- Gt(this.s * r * this.n / this.d) + this.s * ((this.s >= Ge ? vr : Ge) + Kr * (r * this.n % this.d) > this.d ? vr : Ge),
6566
+ Gt(this.s * r * this.n / this.d) + this.s * ((this.s >= He ? vr : He) + Kr * (r * this.n % this.d) > this.d ? vr : He),
6567
6567
  r
6568
6568
  );
6569
6569
  },
@@ -6584,7 +6584,7 @@ It.prototype = {
6584
6584
  * Ex: new Fraction(19.6).divisible(1.5);
6585
6585
  */
6586
6586
  divisible: function(r, e) {
6587
- return Qr(r, e), Be.n === Ge ? !1 : this.n * Be.d % (Be.n * this.d) === Ge;
6587
+ return Qr(r, e), Be.n === He ? !1 : this.n * Be.d % (Be.n * this.d) === He;
6588
6588
  },
6589
6589
  /**
6590
6590
  * Returns a decimal representation of the fraction
@@ -6600,7 +6600,7 @@ It.prototype = {
6600
6600
  * Ex: new Fraction("100.'91823'").toString() => "100.(91823)"
6601
6601
  **/
6602
6602
  toString: function(r = 15) {
6603
- let e = this.n, t = this.d, n = s1(e, t), a = u1(e, t, n), i = this.s < Ge ? "-" : "";
6603
+ let e = this.n, t = this.d, n = s1(e, t), a = u1(e, t, n), i = this.s < He ? "-" : "";
6604
6604
  if (i += Gt(e / t), e %= t, e *= Nt, e && (i += "."), n) {
6605
6605
  for (let o = a; o--; )
6606
6606
  i += Gt(e / t), e %= t, e *= Nt;
@@ -6619,12 +6619,12 @@ It.prototype = {
6619
6619
  * Ex: new Fraction("1.'3'").toFraction() => "4 1/3"
6620
6620
  **/
6621
6621
  toFraction: function(r = !1) {
6622
- let e = this.n, t = this.d, n = this.s < Ge ? "-" : "";
6622
+ let e = this.n, t = this.d, n = this.s < He ? "-" : "";
6623
6623
  if (t === vr)
6624
6624
  n += e;
6625
6625
  else {
6626
6626
  const a = Gt(e / t);
6627
- r && a > Ge && (n += a, n += " ", e %= t), n += e, n += "/", n += t;
6627
+ r && a > He && (n += a, n += " ", e %= t), n += e, n += "/", n += t;
6628
6628
  }
6629
6629
  return n;
6630
6630
  },
@@ -6634,12 +6634,12 @@ It.prototype = {
6634
6634
  * Ex: new Fraction("1.'3'").toLatex() => "\frac{4}{3}"
6635
6635
  **/
6636
6636
  toLatex: function(r = !1) {
6637
- let e = this.n, t = this.d, n = this.s < Ge ? "-" : "";
6637
+ let e = this.n, t = this.d, n = this.s < He ? "-" : "";
6638
6638
  if (t === vr)
6639
6639
  n += e;
6640
6640
  else {
6641
6641
  const a = Gt(e / t);
6642
- r && a > Ge && (n += a, e %= t), n += "\\frac{", n += e, n += "}{", n += t, n += "}";
6642
+ r && a > He && (n += a, e %= t), n += "\\frac{", n += e, n += "}{", n += t, n += "}";
6643
6643
  }
6644
6644
  return n;
6645
6645
  },
@@ -35023,15 +35023,15 @@ const tt = class tt {
35023
35023
  continue;
35024
35024
  }
35025
35025
  var u = !1;
35026
- if (He.operators.forEach((m) => {
35026
+ if (Ge.operators.forEach((m) => {
35027
35027
  if (e.startsWith(m)) {
35028
35028
  i != "" && (n.push(new vt(i)), i = ""), n.push(new Yi(e.substring(0, m.length))), e = e.substring(m.length), u = !0;
35029
35029
  return;
35030
35030
  }
35031
35031
  }), u)
35032
35032
  continue;
35033
- for (let m = 0; m < He.logicaloperators.length; m++) {
35034
- let v = He.logicaloperators[m];
35033
+ for (let m = 0; m < Ge.logicaloperators.length; m++) {
35034
+ let v = Ge.logicaloperators[m];
35035
35035
  if (e.startsWith(v)) {
35036
35036
  i != "" && (n.push(new vt(i)), i = ""), n.push(new ss(e.substring(0, v.length))), e = e.substring(v.length), u = !0;
35037
35037
  break;
@@ -35168,9 +35168,9 @@ const tt = class tt {
35168
35168
  return null;
35169
35169
  if (u instanceof Date) {
35170
35170
  if (n.TypeDDD == "Date")
35171
- return He.getIsoDate(u);
35171
+ return Ge.getIsoDate(u);
35172
35172
  if (n.TypeDDD == "DateTime")
35173
- return He.getIsoDateTime(u);
35173
+ return Ge.getIsoDateTime(u);
35174
35174
  } else if (typeof u == "number")
35175
35175
  return u.toString();
35176
35176
  return u.toString();
@@ -35717,11 +35717,11 @@ class xa {
35717
35717
  const s = a[u];
35718
35718
  switch (n[s].TypeDDD) {
35719
35719
  case "Date": {
35720
- t[s] = He.getIsoDate(this.Record[s]);
35720
+ t[s] = Ge.getIsoDate(this.Record[s]);
35721
35721
  break;
35722
35722
  }
35723
35723
  case "DateTime": {
35724
- t[s] = He.getIsoDateTime(this.Record[s]);
35724
+ t[s] = Ge.getIsoDateTime(this.Record[s]);
35725
35725
  break;
35726
35726
  }
35727
35727
  default: {
@@ -35751,11 +35751,11 @@ class xa {
35751
35751
  const c = i[s];
35752
35752
  switch (a[c].Type) {
35753
35753
  case "Date": {
35754
- t[c] = He.getIsoDate(this.Record[c]);
35754
+ t[c] = Ge.getIsoDate(this.Record[c]);
35755
35755
  break;
35756
35756
  }
35757
35757
  case "DateTime": {
35758
- t[c] = He.getIsoDateTime(this.Record[c]);
35758
+ t[c] = Ge.getIsoDateTime(this.Record[c]);
35759
35759
  break;
35760
35760
  }
35761
35761
  default: {
@@ -35785,11 +35785,11 @@ class xa {
35785
35785
  const c = i[s], f = a[c].Type, m = a[c].Alias ?? c;
35786
35786
  switch (f) {
35787
35787
  case "Date": {
35788
- t[m] = He.getIsoDate(this.Record[c]);
35788
+ t[m] = Ge.getIsoDate(this.Record[c]);
35789
35789
  break;
35790
35790
  }
35791
35791
  case "DateTime": {
35792
- t[m] = He.getIsoDateTime(this.Record[c]);
35792
+ t[m] = Ge.getIsoDateTime(this.Record[c]);
35793
35793
  break;
35794
35794
  }
35795
35795
  default: {
@@ -35801,42 +35801,52 @@ class xa {
35801
35801
  return this.Record.Id != null && (t.Id = this.Record.Id), ((u = this.Parent) == null ? void 0 : u.Tablename) == "EU_Invoices" && (t.InvTotalVatAmountCCInp = this.Record.InvTotalVatAmountCC, t.InvAmountInclVatInp = this.Record.InvAmountInclVat), Object.keys(t).length > 0 ? t : null;
35802
35802
  }
35803
35803
  GetTableForView(e) {
35804
- var o, l, u, s, c;
35804
+ var l, u, s, c, f, m, v;
35805
35805
  const t = {};
35806
35806
  if (this.Details != null) {
35807
- const f = {};
35807
+ const p = {};
35808
35808
  var n = Object.keys(this.Details);
35809
- for (let m = 0; m < n.length; m++) {
35810
- const v = this.Details[n[m]].GetTableForView(e);
35811
- v != null && (f[Dt.GetTableForAlias(this.Details[n[m]].Tablename)] = v);
35809
+ for (let d = 0; d < n.length; d++) {
35810
+ const y = this.Details[n[d]].GetTableForView(e);
35811
+ y != null && (p[Dt.GetTableForAlias(this.Details[n[d]].Tablename)] = y);
35812
35812
  }
35813
- Object.keys(f).length > 0 && (t._details = f);
35813
+ Object.keys(p).length > 0 && (t._details = p);
35814
35814
  }
35815
- if (((o = this.Parent) == null ? void 0 : o.Tablename) == null)
35815
+ if (((l = this.Parent) == null ? void 0 : l.Tablename) == null)
35816
35816
  return null;
35817
- const a = e[(l = this.Parent) == null ? void 0 : l.Tablename], i = Object.keys(a);
35818
- for (let f = 0; f < i.length; f++) {
35819
- const m = i[f], v = a[m].Type, p = a[m].Alias ?? m;
35820
- let d = null;
35821
- switch (v == null ? void 0 : v.toLowerCase()) {
35817
+ const a = e[(u = this.Parent) == null ? void 0 : u.Tablename], i = Object.keys(a);
35818
+ for (let p = 0; p < i.length; p++) {
35819
+ const d = i[p], y = a[d].Type, w = a[d].Alias ?? d;
35820
+ let D = this.Record[d], h = null;
35821
+ switch (y == null ? void 0 : y.toLowerCase()) {
35822
35822
  case "date": {
35823
- d = He.getIsoDate(this.Record[m]), this.Record[m].toLocaleDateString((u = this.Parent.Root) == null ? void 0 : u.Culture);
35823
+ if (D instanceof Date)
35824
+ D = Ge.getIsoDate(this.Record[d]), h = this.Record[d].toLocaleDateString((s = this.Parent.Root) == null ? void 0 : s.Culture);
35825
+ else {
35826
+ var o = new Date(D);
35827
+ D = Ge.getIsoDateTime(o), h = o.toLocaleDateString((c = this.Parent.Root) == null ? void 0 : c.Culture);
35828
+ }
35824
35829
  break;
35825
35830
  }
35826
35831
  case "dateTime": {
35827
- d = He.getIsoDateTime(this.Record[m]), this.Record[m].toLocaleDateString((s = this.Parent.Root) == null ? void 0 : s.Culture);
35832
+ if (D instanceof Date)
35833
+ D = Ge.getIsoDateTime(this.Record[d]), h = this.Record[d].toLocaleDateString((f = this.Parent.Root) == null ? void 0 : f.Culture);
35834
+ else {
35835
+ var o = new Date(D);
35836
+ D = Ge.getIsoDateTime(o), h = o.toLocaleDateString((m = this.Parent.Root) == null ? void 0 : m.Culture);
35837
+ }
35828
35838
  break;
35829
35839
  }
35830
35840
  case "decimal": {
35831
- d = this.Record[m], this.Record[m].toLocaleString((c = this.Parent.Root) == null ? void 0 : c.Culture, { minimumFractionDigits: a[m].RoundTo ?? 2, maximumFractionDigits: 2 });
35841
+ typeof D == "number" ? h = this.Record[d].toLocaleString((v = this.Parent.Root) == null ? void 0 : v.Culture) : h = D;
35832
35842
  break;
35833
35843
  }
35834
35844
  default: {
35835
- d = this.Record[m];
35845
+ D = this.Record[d], h = D;
35836
35846
  break;
35837
35847
  }
35838
35848
  }
35839
- t[p] = d;
35849
+ t[w] = { Value: D, LocalizedValue: h };
35840
35850
  }
35841
35851
  return Object.keys(t).length > 0 ? t : null;
35842
35852
  }
@@ -36026,7 +36036,7 @@ class Th {
36026
36036
  }
36027
36037
  getViewObject() {
36028
36038
  var t;
36029
- return (t = this.rootLevel) == null ? void 0 : t.GetTableForAlias(this.ObjectInfo);
36039
+ return (t = this.rootLevel) == null ? void 0 : t.GetTableForView(this.ObjectInfo);
36030
36040
  }
36031
36041
  ValidateBeforeSave() {
36032
36042
  }