xmlui 0.7.23 → 0.7.24

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.
@@ -7,7 +7,7 @@ var U = (e, t, r) => Lr(e, typeof t != "symbol" ? t + "" : t, r), ve = (e, t, r)
7
7
  var Q = (e, t, r) => (ve(e, t, "read from private field"), r ? r.call(e) : t.get(e)), we = (e, t, r) => t.has(e) ? Be("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, r), Ve = (e, t, r, s) => (ve(e, t, "write to private field"), s ? s.call(e, r) : t.set(e, r), r), ie = (e, t, r) => (ve(e, t, "access private method"), r);
8
8
  import { delay as Sr, HttpResponse as K, http as Dr } from "msw";
9
9
  import { isArray as It, isObject as Nt, mapValues as Cr } from "lodash-es";
10
- import { r as Mr, d as qr, m as $r, a as Ur, g as jr, o as Ee, T as Fr } from "./index-C9zkAour.mjs";
10
+ import { r as Mr, g as qr, d as $r, m as Ur, a as jr, o as Ee, T as Fr } from "./index-BcnKqeXb.mjs";
11
11
  import We from "dexie";
12
12
  var Br = /(%?)(%([sdijo]))/g;
13
13
  function Vr(e, t) {
@@ -2776,13 +2776,20 @@ function gi(e) {
2776
2776
  return yi(e, or);
2777
2777
  }
2778
2778
  function vi(e, t) {
2779
- return new wi(e, t).parseDocument();
2779
+ const r = new wi(e, t), s = r.parseDocument();
2780
+ return Object.defineProperty(s, "tokenCount", {
2781
+ enumerable: !1,
2782
+ value: r.tokenCount
2783
+ }), s;
2780
2784
  }
2781
2785
  class wi {
2782
2786
  constructor(t, r = {}) {
2783
2787
  const s = gi(t) ? t : new or(t);
2784
2788
  this._lexer = new Ks(s), this._options = r, this._tokenCounter = 0;
2785
2789
  }
2790
+ get tokenCount() {
2791
+ return this._tokenCounter;
2792
+ }
2786
2793
  /**
2787
2794
  * Converts a name lex token into a name parse node.
2788
2795
  */
@@ -3871,7 +3878,7 @@ class wi {
3871
3878
  }
3872
3879
  advanceLexer() {
3873
3880
  const { maxTokens: t } = this._options, r = this._lexer.advance();
3874
- if (t !== void 0 && r.kind !== f.EOF && (++this._tokenCounter, this._tokenCounter > t))
3881
+ if (r.kind !== f.EOF && (++this._tokenCounter, t !== void 0 && this._tokenCounter > t))
3875
3882
  throw k(
3876
3883
  this._lexer.source,
3877
3884
  r.start,
@@ -5984,12 +5991,12 @@ class ta {
5984
5991
  localContext: s,
5985
5992
  eventArgs: r,
5986
5993
  appContext: {
5987
- ...qr,
5988
- ...$r,
5989
- delay: Ur,
5994
+ ...jr,
5995
+ ...Ur,
5996
+ delay: $r,
5990
5997
  Errors: Qo,
5991
5998
  createFile: (...d) => new File(d[0], d[1], d[2]),
5992
- getDate: jr
5999
+ getDate: qr
5993
6000
  }
5994
6001
  });
5995
6002
  return await Mr(t, n), (h = (u = n.mainThread) == null ? void 0 : u.blocks) != null && h.length ? n.mainThread.blocks[n.mainThread.blocks.length - 1].returnValue : void 0;