@dialecte/core 0.6.0 → 0.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- {"version":3,"file":"standardizing.d.ts","sourceRoot":"","sources":["../../src/helpers/standardizing.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EACX,iBAAiB,EACjB,gBAAgB,EAChB,UAAU,EAEV,SAAS,EACT,uBAAuB,EACvB,gBAAgB,EAChB,MAAM,SAAS,CAAA;AAEhB,wBAAgB,iBAAiB,CAChC,aAAa,SAAS,iBAAiB,EACvC,cAAc,SAAS,UAAU,CAAC,aAAa,CAAC,EAC/C,MAAM,EAAE;IACT,cAAc,EAAE,aAAa,CAAA;IAC7B,KAAK,CAAC,EAAE,gBAAgB,CAAC,aAAa,CAAC,CAAA;IACvC,MAAM,EAAE;QACP,OAAO,EAAE,cAAc,CAAA;QACvB,UAAU,CAAC,EACR,OAAO,CAAC,uBAAuB,CAAC,aAAa,EAAE,cAAc,CAAC,CAAC,GAC/D,gBAAgB,CAAC,aAAa,EAAE,cAAc,CAAC,EAAE,CAAA;KACpD,GAAG,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,aAAa,EAAE,cAAc,CAAC,CAAC,EAAE,YAAY,CAAC,CAAA;CACzE,GAAG,SAAS,CAAC,aAAa,EAAE,cAAc,CAAC,CAwH3C"}
1
+ {"version":3,"file":"standardizing.d.ts","sourceRoot":"","sources":["../../src/helpers/standardizing.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EACX,iBAAiB,EACjB,gBAAgB,EAChB,UAAU,EAEV,SAAS,EACT,uBAAuB,EACvB,gBAAgB,EAChB,MAAM,SAAS,CAAA;AAEhB,wBAAgB,iBAAiB,CAChC,aAAa,SAAS,iBAAiB,EACvC,cAAc,SAAS,UAAU,CAAC,aAAa,CAAC,EAC/C,MAAM,EAAE;IACT,cAAc,EAAE,aAAa,CAAA;IAC7B,KAAK,CAAC,EAAE,gBAAgB,CAAC,aAAa,CAAC,CAAA;IACvC,MAAM,EAAE;QACP,OAAO,EAAE,cAAc,CAAA;QACvB,UAAU,CAAC,EACR,OAAO,CAAC,uBAAuB,CAAC,aAAa,EAAE,cAAc,CAAC,CAAC,GAC/D,gBAAgB,CAAC,aAAa,EAAE,cAAc,CAAC,EAAE,CAAA;KACpD,GAAG,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,aAAa,EAAE,cAAc,CAAC,CAAC,EAAE,YAAY,CAAC,CAAA;CACzE,GAAG,SAAS,CAAC,aAAa,EAAE,cAAc,CAAC,CAsH3C"}
package/dist/helpers.js CHANGED
@@ -1,6 +1,6 @@
1
- import { A as e, C as t, D as n, E as r, I as i, M as a, O as o, S as s, T as c, _ as l, a as u, b as d, c as f, i as p, j as m, k as h, m as g, o as _, p as v, v as y, x as b } from "./utils-CZ12wsuC.js";
1
+ import { A as e, C as t, D as n, E as r, L as i, M as a, N as o, O as s, S as c, a as l, h as u, i as d, j as f, k as p, l as m, m as h, o as g, s as _, v, w as y, x as b, y as x } from "./utils-CTBHUFs9.js";
2
2
  //#region src/helpers/guard.ts
3
- var x = [
3
+ var S = [
4
4
  "id",
5
5
  "tagName",
6
6
  "namespace",
@@ -8,26 +8,23 @@ var x = [
8
8
  "children",
9
9
  "parent",
10
10
  "value"
11
- ], S = [...x, "status"], C = [...S, "tree"];
12
- function w(e, t) {
11
+ ], C = [...S, "status"], w = [...C, "tree"];
12
+ function T(e, t) {
13
13
  if (typeof e != "object" || !e) return !1;
14
14
  let n = Object.keys(e);
15
15
  return t.every((t) => t in e) && n.every((e) => t.includes(e)) && n.length === t.length;
16
16
  }
17
- function T(e) {
18
- return Array.isArray(e);
19
- }
20
17
  function E(e) {
21
- return w(e, x);
18
+ return Array.isArray(e);
22
19
  }
23
20
  function D(e) {
24
- return w(e, S);
21
+ return T(e, S);
25
22
  }
26
23
  function O(e) {
27
- return w(e, C);
24
+ return T(e, C);
28
25
  }
29
- function k(e, t) {
30
- return e.tagName === t;
26
+ function k(e) {
27
+ return T(e, w);
31
28
  }
32
29
  function A(e, t) {
33
30
  return e.tagName === t;
@@ -36,14 +33,17 @@ function j(e, t) {
36
33
  return e.tagName === t;
37
34
  }
38
35
  function M(e, t) {
39
- return t.elements.includes(e);
36
+ return e.tagName === t;
40
37
  }
41
38
  function N(e, t) {
39
+ return t.elements.includes(e);
40
+ }
41
+ function P(e, t) {
42
42
  return e.attributes.some((e) => e.name === t);
43
43
  }
44
44
  //#endregion
45
45
  //#region src/helpers/converter.ts
46
- function P(e) {
46
+ function F(e) {
47
47
  return {
48
48
  id: e.id,
49
49
  tagName: e.tagName,
@@ -54,43 +54,43 @@ function P(e) {
54
54
  children: e.children
55
55
  };
56
56
  }
57
- function F(e) {
57
+ function I(e) {
58
58
  return e;
59
59
  }
60
- function I(e) {
60
+ function L(e) {
61
61
  let { record: t, status: n } = e, r = n ?? ("status" in t ? t.status : "unchanged");
62
62
  return {
63
- ...P(t),
63
+ ...F(t),
64
64
  status: r
65
65
  };
66
66
  }
67
- function L(e) {
67
+ function R(e) {
68
68
  let { record: t, status: n, tree: r } = e, i = r ?? ("tree" in t ? t.tree : []);
69
69
  return {
70
- ...I({
70
+ ...L({
71
71
  record: t,
72
72
  status: n
73
73
  }),
74
74
  tree: i
75
75
  };
76
76
  }
77
- function R(e) {
77
+ function z(e) {
78
78
  let { dialecteConfig: t, tagName: n, attributes: r, stored: i = [] } = e;
79
79
  return (Array.isArray(r) ? r : Object.entries(r).map(([e, r]) => ({
80
80
  name: e,
81
81
  value: r,
82
- namespace: z({
82
+ namespace: B({
83
83
  dialecteConfig: t,
84
84
  tagName: n,
85
85
  name: e
86
86
  }) ?? i.find((t) => t.name === e)?.namespace
87
- }))).map((e) => B({
87
+ }))).map((e) => V({
88
88
  attribute: e,
89
89
  dialecteConfig: t,
90
90
  tagName: n
91
91
  }));
92
92
  }
93
- function z(e) {
93
+ function B(e) {
94
94
  let { dialecteConfig: t, tagName: n, name: r } = e, i = t.definition[n];
95
95
  if (i === void 0) return;
96
96
  let a = Object.values(i.declarations ?? {}), o = [i, ...a].flatMap((e) => e.variants ?? []), s = [
@@ -103,7 +103,7 @@ function z(e) {
103
103
  if (t) return t;
104
104
  }
105
105
  }
106
- function B(e) {
106
+ function V(e) {
107
107
  let { attribute: t, dialecteConfig: n, tagName: r } = e, a;
108
108
  typeof t.namespace == "string" ? (a = _(n, t.namespace), a || i("UNKNOWN_NAMESPACE_PREFIX", {
109
109
  detail: `Unknown namespace '${t.namespace}' on attribute '${t.name}' — use a registered namespace key or pass a full { name, namespace: { prefix, uri } }.`,
@@ -112,47 +112,47 @@ function B(e) {
112
112
  let o = t.name.indexOf(":");
113
113
  if (!a && o !== -1) {
114
114
  let e = t.name.slice(0, o);
115
- e !== "xmlns" && (a = u(n, e), a || i("UNKNOWN_NAMESPACE_PREFIX", {
115
+ e !== "xmlns" && (a = g(n, e), a || i("UNKNOWN_NAMESPACE_PREFIX", {
116
116
  detail: `Unknown namespace prefix '${e}' on attribute '${t.name}' — pass it explicitly as { name, namespace: { prefix, uri } }.`,
117
117
  ref: { tagName: r }
118
118
  }));
119
119
  }
120
- return a && a.prefix && a.uri !== "http://www.w3.org/2000/xmlns/" && (a = V({
120
+ return a && a.prefix && a.uri !== "http://www.w3.org/2000/xmlns/" && (a = H({
121
121
  dialecteConfig: n,
122
122
  uri: a.uri
123
123
  }) ?? a), a && a.prefix && a.prefix !== "xmlns" ? {
124
124
  ...t,
125
- name: `${a.prefix}:${v(t.name)}`,
125
+ name: `${a.prefix}:${h(t.name)}`,
126
126
  namespace: a
127
127
  } : (t.namespace, {
128
128
  ...t,
129
129
  namespace: a
130
130
  });
131
131
  }
132
- function V(e) {
132
+ function H(e) {
133
133
  let { dialecteConfig: t, uri: n } = e;
134
134
  return Object.values(t.namespaces).find((e) => e.uri === n && e.prefix !== "");
135
135
  }
136
- function H(e) {
137
- return f(e, { detail: "The record or ref is undefined" }), {
136
+ function U(e) {
137
+ return m(e, { detail: "The record or ref is undefined" }), {
138
138
  id: e.id,
139
139
  tagName: e.tagName
140
140
  };
141
141
  }
142
142
  //#endregion
143
143
  //#region src/helpers/standardizing.ts
144
- function U(e) {
145
- let { dialecteConfig: t, hooks: n, record: r } = e, { id: i, tagName: a, attributes: o, namespace: s, value: c } = r, l = i ?? crypto.randomUUID(), u = W({
144
+ function W(e) {
145
+ let { dialecteConfig: t, hooks: n, record: r } = e, { id: i, tagName: a, attributes: o, namespace: s, value: c } = r, u = i ?? crypto.randomUUID(), f = G({
146
146
  dialecteConfig: t,
147
- attributes: o ? R({
147
+ attributes: o ? z({
148
148
  tagName: a,
149
149
  attributes: o,
150
150
  dialecteConfig: t
151
151
  }) : []
152
- }), d = {
153
- id: l,
152
+ }), p = {
153
+ id: u,
154
154
  tagName: a,
155
- attributes: u,
155
+ attributes: f,
156
156
  namespace: s ?? {
157
157
  prefix: "prefixNeededForNotSupportedNamespace",
158
158
  uri: "uriNeededForNotSupportedNamespace"
@@ -160,44 +160,47 @@ function U(e) {
160
160
  value: c ?? "",
161
161
  parent: r.parent ?? null,
162
162
  children: r.children ?? []
163
- }, f = Object.values(t.namespaces).map(({ uri: e }) => e), m = s?.uri != null && !f.includes(s.uri);
164
- if (!(t.elements.includes(a) && !m)) return d;
165
- let h = y({
163
+ }, m = Object.values(t.namespaces).map(({ uri: e }) => e), h = s?.uri != null && !m.includes(s.uri);
164
+ if (!(t.elements.includes(a) && !h)) return p;
165
+ let g = x({
166
166
  dialecteConfig: t,
167
167
  record: {
168
- ...d,
168
+ ...p,
169
169
  namespace: s
170
170
  }
171
- }), g = h?.attributes.sequence ?? [], _ = h?.attributes.any, v = _ !== void 0 && (_.namespace === void 0 ? !(_.notNamespace ?? []).includes("") : _.namespace.includes("")), b = u.filter((e) => {
172
- let t = g.includes(e.name), n = "namespace" in e && e.namespace != null;
171
+ }), _ = g?.attributes.sequence ?? [], v = d({
172
+ wildcard: g?.attributes.any,
173
+ namespaceUri: ""
174
+ }), y = f.filter((e) => {
175
+ let t = _.includes(e.name), n = "namespace" in e && e.namespace != null;
173
176
  if (!t && !n && !v) return !1;
174
177
  let r = e.value === void 0 || e.value === null || e.value === "";
175
178
  return !(t && r);
176
- }), x = t.namespaces.default.uri, S = b.map((e) => {
177
- if ("namespace" in e && e.namespace?.uri === x) {
179
+ }), b = t.namespaces.default.uri, S = y.map((e) => {
180
+ if ("namespace" in e && e.namespace?.uri === b) {
178
181
  let { namespace: t, ...n } = e;
179
182
  return n;
180
183
  }
181
184
  return e;
182
- }), C = t.definition[a], w = [h?.namespace ?? C.namespace, ...Object.values(C.declarations ?? {}).map((e) => e.namespace)], T = w.find((e) => e.uri === s?.uri), E = {
183
- ...d,
185
+ }), C = t.definition[a], w = [g?.namespace ?? C.namespace, ...Object.values(C.declarations ?? {}).map((e) => e.namespace)], T = w.find((e) => e.uri === s?.uri), E = {
186
+ ...p,
184
187
  namespace: T ?? s ?? w[0],
185
- attributes: p(S, g)
188
+ attributes: l(S, _)
186
189
  };
187
190
  return n?.afterStandardizedRecord && (E = n.afterStandardizedRecord({ record: E }), E = {
188
191
  ...E,
189
- attributes: p(W({
192
+ attributes: l(G({
190
193
  dialecteConfig: t,
191
194
  attributes: E.attributes
192
- }), g)
195
+ }), _)
193
196
  }), E;
194
197
  }
195
- function W(e) {
198
+ function G(e) {
196
199
  let { dialecteConfig: n, attributes: r } = e;
197
- return t({
200
+ return y({
198
201
  dialecteConfig: n,
199
202
  attributes: r,
200
- namespaceOf: s({
203
+ namespaceOf: t({
201
204
  dialecteConfig: n,
202
205
  attributes: r
203
206
  })
@@ -205,10 +208,10 @@ function W(e) {
205
208
  }
206
209
  //#endregion
207
210
  //#region src/helpers/assert-fixed.ts
208
- function G(e) {
211
+ function K(e) {
209
212
  let { dialecteConfig: t, record: n, attributes: r } = e;
210
213
  for (let e of r) {
211
- let r = g({
214
+ let r = u({
212
215
  dialecteConfig: t,
213
216
  record: n,
214
217
  attributeName: e.name
@@ -221,14 +224,14 @@ function G(e) {
221
224
  }
222
225
  //#endregion
223
226
  //#region src/helpers/assert-xsi-type.ts
224
- function K(e) {
225
- let { dialecteConfig: t, record: n } = e, r = n.attributes.find(d);
227
+ function q(e) {
228
+ let { dialecteConfig: t, record: n } = e, r = n.attributes.find(b);
226
229
  if (r === void 0) {
227
- y({
230
+ x({
228
231
  dialecteConfig: t,
229
232
  record: n
230
233
  })?.abstractType && i("XSI_TYPE_REQUIRED", {
231
- detail: `'${n.tagName}' is declared with an abstract type: name one of its variants with xsi:type (${l({
234
+ detail: `'${n.tagName}' is declared with an abstract type: name one of its variants with xsi:type (${v({
232
235
  dialecteConfig: t,
233
236
  record: n
234
237
  }).join(", ")}).`,
@@ -236,16 +239,16 @@ function K(e) {
236
239
  });
237
240
  return;
238
241
  }
239
- if (y({
242
+ if (x({
240
243
  dialecteConfig: t,
241
244
  record: n
242
245
  }) === void 0) return;
243
- let a = b({
246
+ let a = c({
244
247
  dialecteConfig: t,
245
248
  record: n
246
249
  });
247
250
  if (a?.namespace === "http://www.w3.org/2001/XMLSchema") return;
248
- let o = l({
251
+ let o = v({
249
252
  dialecteConfig: t,
250
253
  record: n
251
254
  });
@@ -258,8 +261,8 @@ function K(e) {
258
261
  }
259
262
  });
260
263
  }
261
- function q(e) {
262
- let { dialecteConfig: t, merged: n, record: r } = e, a = new Set(r.attributes.map((e) => e.name)), o = n.filter((e) => e.value !== "" && !a.has(e.name)).map((e) => e.name), s = y({
264
+ function J(e) {
265
+ let { dialecteConfig: t, merged: n, record: r } = e, a = new Set(r.attributes.map((e) => e.name)), o = n.filter((e) => e.value !== "" && !a.has(e.name)).map((e) => e.name), s = x({
263
266
  dialecteConfig: t,
264
267
  record: r
265
268
  }), c = new Set(s?.children.sequence ?? []), l = s?.children.any ? [] : [...new Set(r.children.map((e) => e.tagName))].filter((e) => !c.has(e));
@@ -274,20 +277,20 @@ function q(e) {
274
277
  }
275
278
  //#endregion
276
279
  //#region src/helpers/merge-extensions.ts
277
- function J(e, t, n, r) {
280
+ function Y(e, t, n, r) {
278
281
  if (!e || !t) return;
279
282
  let i = Object.keys(t).filter((t) => t in e);
280
- f(i.length === 0, {
283
+ m(i.length === 0, {
281
284
  key: "EXTENSION_METHOD_COLLISION",
282
285
  detail: `Module "${n}" has conflicting ${r} method(s): ${i.map((e) => `"${e}"`).join(", ")}`
283
286
  });
284
287
  }
285
- function Y(e) {
288
+ function X(e) {
286
289
  let t = {}, n = {}, r = [...Object.entries(e.base ?? {}), ...Object.entries(e.custom ?? {})];
287
- for (let [e, i] of r) i.query && (J(t[e], i.query, e, "query"), t[e] = {
290
+ for (let [e, i] of r) i.query && (Y(t[e], i.query, e, "query"), t[e] = {
288
291
  ...t[e],
289
292
  ...i.query
290
- }), i.transaction && (J(n[e], i.transaction, e, "transaction"), n[e] = {
293
+ }), i.transaction && (Y(n[e], i.transaction, e, "transaction"), n[e] = {
291
294
  ...n[e],
292
295
  ...i.transaction
293
296
  });
@@ -298,15 +301,15 @@ function Y(e) {
298
301
  }
299
302
  //#endregion
300
303
  //#region src/helpers/strip-attributes.ts
301
- function X(e, t) {
304
+ function Z(e, t) {
302
305
  let n = new Set(t), r = {
303
306
  ...e,
304
307
  attributes: e.attributes.filter((e) => !n.has(e.name))
305
308
  };
306
309
  return "tree" in e ? {
307
310
  ...r,
308
- tree: e.tree.map((e) => X(e, t))
311
+ tree: e.tree.map((e) => Z(e, t))
309
312
  } : r;
310
313
  }
311
314
  //#endregion
312
- export { c as CUSTOM_RECORD_ID_ATTRIBUTE, r as CUSTOM_RECORD_ID_ATTRIBUTE_NAME, n as DIALECTE_DEV_NAMESPACE, o as DIALECTE_NAMESPACES, h as XMLNS_NAMESPACE_URI, e as XMLNS_XSI_NAMESPACE, m as XSD_NAMESPACE_URI, a as XSI_NAMESPACE, G as assertNoFixedViolation, K as assertXsiTypeAdmitted, q as assertXsiTypeChangeLeavesNothing, N as isAttributeOf, A as isChildOf, M as isElementOf, T as isFullAttributeArray, j as isParentOf, E as isRawRecord, k as isRecordOf, D as isTrackedRecord, O as isTreeRecord, Y as mergeExtensions, U as standardizeRecord, X as stripAttributes, R as toFullAttributeArray, P as toRawRecord, H as toRef, I as toTrackedRecord, L as toTreeRecord, F as widen };
315
+ export { r as CUSTOM_RECORD_ID_ATTRIBUTE, n as CUSTOM_RECORD_ID_ATTRIBUTE_NAME, s as DIALECTE_DEV_NAMESPACE, p as DIALECTE_NAMESPACES, e as XMLNS_NAMESPACE_URI, f as XMLNS_XSI_NAMESPACE, a as XSD_NAMESPACE_URI, o as XSI_NAMESPACE, K as assertNoFixedViolation, q as assertXsiTypeAdmitted, J as assertXsiTypeChangeLeavesNothing, P as isAttributeOf, j as isChildOf, N as isElementOf, E as isFullAttributeArray, M as isParentOf, D as isRawRecord, A as isRecordOf, O as isTrackedRecord, k as isTreeRecord, X as mergeExtensions, W as standardizeRecord, Z as stripAttributes, z as toFullAttributeArray, F as toRawRecord, U as toRef, L as toTrackedRecord, R as toTreeRecord, I as widen };
package/dist/index.js CHANGED
@@ -1,3 +1,3 @@
1
- import { $ as e, A as t, B as n, C as r, D as i, E as a, F as o, G as s, H as c, I as l, J as u, K as d, L as f, M as p, N as m, O as h, P as g, Q as _, R as v, S as y, T as b, U as x, W as S, X as C, Y as w, Z as T, _ as E, a as D, at as O, b as k, c as A, ct as j, d as M, dt as N, et as P, f as F, ft as I, g as L, h as R, ht as z, i as B, it as V, j as H, k as U, l as W, lt as G, m as K, n as q, nt as J, o as Y, ot as X, p as Z, pt as Q, q as $, r as ee, rt as te, s as ne, st as re, t as ie, tt as ae, u as oe, ut as se, v as ce, w as le, x as ue, y as de, z as fe } from "./project-DwtNI4J5.js";
2
- import { F as pe, I as me, L as he, N as ge, P as _e, R as ve } from "./utils-CZ12wsuC.js";
3
- export { U as AnyQuery, i as AnyTransaction, M as BLOBS_SCHEMA, F as BLOB_DATA_SCHEMA, Z as CHANGELOG_SCHEMA, K as DOCUMENTS_SCHEMA, oe as DexieStore, le as Document, ve as ERROR_CATALOG, W as InMemoryStore, R as META_SCHEMA, m as NOOP_PERF, g as ParseSession, ie as Project, h as Query, L as TABLE_BLOBS, E as TABLE_BLOB_PREFIX, ce as TABLE_CHANGELOG, de as TABLE_DOCUMENTS, k as TABLE_META, ue as TABLE_RECORD_PREFIX, fe as TEMP_IDB_ID_ATTRIBUTE_NAME, a as Transaction, d as applyOmit, s as applyOrder, C as applyUnwrap, z as bindExtensions, y as blobTableName, B as buildDocumentState, l as buildXmlDocument, x as collectSnapshotRecords, ge as createDialecteError, p as createPerf, Q as createStagedOperations, _e as defineErrors, f as downloadFile, Y as exportBlob, ne as exportDocument, O as findAncestors, te as findByAttributes, J as findDescendants, n as formatXml, P as getAttribute, ae as getAttributeFullObject, _ as getAttributes, e as getAttributesFullObject, re as getChild, X as getChildren, T as getDefinition, se as getRecord, G as getRecords, j as getRecordsByTagName, t as getSnapshot, S as getTree, ee as importDocument, N as indexStagedDeletesByParent, q as initEmptyDocument, o as inspectXml, pe as isKnownDialecteError, $ as isOmitted, b as isTransactionContext, V as matchesAttributeFilter, I as overlayAllStaged, u as parseOmit, H as parseXmlFile, D as reconcileDocumentState, r as recordTableName, c as recordsToTree, A as resolveStore, w as shouldStopTraversal, me as throwDialecteError, he as toDialecteError, v as xmlDocumentToString };
1
+ import { $ as e, A as t, B as n, C as r, D as i, E as a, F as o, G as s, H as c, I as l, J as u, K as d, L as f, M as p, N as m, O as h, P as g, Q as _, R as v, S as y, T as b, U as x, W as S, X as C, Y as w, Z as T, _ as E, a as D, at as O, b as k, c as A, ct as j, d as M, dt as N, et as P, f as F, ft as I, g as L, h as R, ht as z, i as B, it as V, j as H, k as U, l as W, lt as G, m as K, n as q, nt as J, o as Y, ot as X, p as Z, pt as Q, q as $, r as ee, rt as te, s as ne, st as re, t as ie, tt as ae, u as oe, ut as se, v as ce, w as le, x as ue, y as de, z as fe } from "./project-sK-5Xc-5.js";
2
+ import { F as pe, I as me, L as he, P as ge, R as _e, z as ve } from "./utils-CTBHUFs9.js";
3
+ export { U as AnyQuery, i as AnyTransaction, M as BLOBS_SCHEMA, F as BLOB_DATA_SCHEMA, Z as CHANGELOG_SCHEMA, K as DOCUMENTS_SCHEMA, oe as DexieStore, le as Document, ve as ERROR_CATALOG, W as InMemoryStore, R as META_SCHEMA, m as NOOP_PERF, g as ParseSession, ie as Project, h as Query, L as TABLE_BLOBS, E as TABLE_BLOB_PREFIX, ce as TABLE_CHANGELOG, de as TABLE_DOCUMENTS, k as TABLE_META, ue as TABLE_RECORD_PREFIX, fe as TEMP_IDB_ID_ATTRIBUTE_NAME, a as Transaction, d as applyOmit, s as applyOrder, C as applyUnwrap, z as bindExtensions, y as blobTableName, B as buildDocumentState, l as buildXmlDocument, x as collectSnapshotRecords, ge as createDialecteError, p as createPerf, Q as createStagedOperations, pe as defineErrors, f as downloadFile, Y as exportBlob, ne as exportDocument, O as findAncestors, te as findByAttributes, J as findDescendants, n as formatXml, P as getAttribute, ae as getAttributeFullObject, _ as getAttributes, e as getAttributesFullObject, re as getChild, X as getChildren, T as getDefinition, se as getRecord, G as getRecords, j as getRecordsByTagName, t as getSnapshot, S as getTree, ee as importDocument, N as indexStagedDeletesByParent, q as initEmptyDocument, o as inspectXml, me as isKnownDialecteError, $ as isOmitted, b as isTransactionContext, V as matchesAttributeFilter, I as overlayAllStaged, u as parseOmit, H as parseXmlFile, D as reconcileDocumentState, r as recordTableName, c as recordsToTree, A as resolveStore, w as shouldStopTraversal, he as throwDialecteError, _e as toDialecteError, v as xmlDocumentToString };