@septkit/ui 0.0.82 → 0.0.83
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/dialecte/create-document-store.js +4 -4
- package/dist/external/.pnpm/{@dialecte_core@0.9.0/node_modules/@dialecte/core/dist/dialecte-oAXwOG-Q.js → @dialecte_core@0.10.0/node_modules/@dialecte/core/dist/dialecte-CVLWSkgW.js} +1 -1
- package/dist/external/.pnpm/@dialecte_core@0.10.0/node_modules/@dialecte/core/dist/helpers-D8p0KiJu.js +130 -0
- package/dist/external/.pnpm/@dialecte_core@0.10.0/node_modules/@dialecte/core/dist/index.js +6 -0
- package/dist/external/.pnpm/{@dialecte_core@0.9.0 → @dialecte_core@0.10.0}/node_modules/@dialecte/core/dist/project-key-2ccZ-0gu.js +1 -1
- package/dist/external/.pnpm/{@dialecte_core@0.9.0 → @dialecte_core@0.10.0}/node_modules/@dialecte/core/dist/rolldown-runtime-CYdcPHCu.js +1 -1
- package/dist/external/.pnpm/{@dialecte_core@0.9.0 → @dialecte_core@0.10.0}/node_modules/@dialecte/core/dist/running-operations-DCKvzlU7.js +1 -1
- package/dist/external/.pnpm/{@dialecte_core@0.9.0 → @dialecte_core@0.10.0}/node_modules/@dialecte/core/dist/same-json-value-_AChwM_n.js +1 -1
- package/dist/external/.pnpm/{@dialecte_core@0.9.0 → @dialecte_core@0.10.0}/node_modules/@dialecte/core/dist/utils-Cv4oHia0.js +79 -102
- package/dist/external/.pnpm/@dialecte_core@0.10.0/node_modules/@dialecte/core/dist/utils.js +2 -0
- package/dist/external/.pnpm/@vueuse_core@14.3.0_vue@3.5.39_typescript@5.8.3_/node_modules/@vueuse/core/dist/index.js +59 -117
- package/dist/external/.pnpm/@vueuse_shared@14.3.0_vue@3.5.39_typescript@5.8.3_/node_modules/@vueuse/shared/dist/index.js +57 -60
- package/dist/index.d.ts +37 -1951
- package/dist/index.js +19 -27
- package/dist/ui.css +1 -1
- package/package.json +3 -3
- package/dist/external/.pnpm/@dialecte_core@0.9.0/node_modules/@dialecte/core/dist/helpers-D8p0KiJu.js +0 -179
- package/dist/external/.pnpm/@dialecte_core@0.9.0/node_modules/@dialecte/core/dist/helpers.js +0 -3
- package/dist/external/.pnpm/@dialecte_core@0.9.0/node_modules/@dialecte/core/dist/index.js +0 -6
- package/dist/external/.pnpm/@dialecte_core@0.9.0/node_modules/@dialecte/core/dist/utils.js +0 -2
- package/dist/external/.pnpm/@dialecte_scl@0.14.0_libxml2-wasm@0.7.2_vitest@4.1.10/node_modules/@dialecte/scl/dist/declaration.constants-DSLNk1wh.js +0 -45065
- package/dist/external/.pnpm/@dialecte_scl@0.14.0_libxml2-wasm@0.7.2_vitest@4.1.10/node_modules/@dialecte/scl/dist/v2019C1/index.js +0 -3
- package/dist/external/.pnpm/@lucide_vue@1.23.0_vue@3.5.39_typescript@5.8.3_/node_modules/@lucide/vue/dist/esm/icons/arrow-right.js +0 -11
- package/dist/external/.pnpm/@lucide_vue@1.23.0_vue@3.5.39_typescript@5.8.3_/node_modules/@lucide/vue/dist/esm/icons/list-tree.js +0 -26
- package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/Stepper/StepperIndicator.js +0 -27
- package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/Stepper/StepperItem.js +0 -67
- package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/Stepper/StepperRoot.js +0 -136
- package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/Stepper/StepperTitle.js +0 -28
- package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/Stepper/StepperTrigger.js +0 -97
- package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/shared/useArrowNavigation.js +0 -31
- package/dist/merge/check-files/components/merge-preflight.js +0 -5
- package/dist/merge/check-files/components/merge-preflight.vue_vue_type_script_setup_true_lang.js +0 -53
- package/dist/merge/check-files/flags.js +0 -17
- package/dist/merge/check-files/identity-warning.js +0 -19
- package/dist/merge/confirm/components/merge-summary.js +0 -5
- package/dist/merge/confirm/components/merge-summary.vue_vue_type_script_setup_true_lang.js +0 -207
- package/dist/merge/confirm/landings.js +0 -34
- package/dist/merge/confirm/outcome.js +0 -179
- package/dist/merge/confirm/summary.js +0 -57
- package/dist/merge/done/applied-counts.js +0 -16
- package/dist/merge/done/applied-focus.js +0 -15
- package/dist/merge/help.js +0 -76
- package/dist/merge/index.js +0 -8
- package/dist/merge/match/components/merge-map.js +0 -5
- package/dist/merge/match/components/merge-map.vue_vue_type_script_setup_true_lang.js +0 -230
- package/dist/merge/match/match.js +0 -210
- package/dist/merge/review/affix.js +0 -14
- package/dist/merge/review/change-badge.js +0 -10
- package/dist/merge/review/components/decision-toggle.js +0 -5
- package/dist/merge/review/components/decision-toggle.vue_vue_type_script_setup_true_lang.js +0 -80
- package/dist/merge/review/components/element-detail.js +0 -5
- package/dist/merge/review/components/element-detail.vue_vue_type_script_setup_true_lang.js +0 -210
- package/dist/merge/review/components/merge-tree.js +0 -5
- package/dist/merge/review/components/merge-tree.vue_vue_type_script_setup_true_lang.js +0 -192
- package/dist/merge/review/components/type-name-authority.js +0 -5
- package/dist/merge/review/components/type-name-authority.vue_vue_type_script_setup_true_lang.js +0 -47
- package/dist/merge/review/decision.js +0 -12
- package/dist/merge/review/detail.js +0 -63
- package/dist/merge/review/highlight.js +0 -44
- package/dist/merge/review/marks.js +0 -17
- package/dist/merge/review/navigation.js +0 -82
- package/dist/merge/review/title.js +0 -7
- package/dist/merge/review/tree.js +0 -138
- package/dist/merge/session/components/merge-help.js +0 -7
- package/dist/merge/session/components/merge-help.vue_vue_type_script_setup_true_lang.js +0 -109
- package/dist/merge/session/components/merge-progress.js +0 -5
- package/dist/merge/session/components/merge-progress.vue_vue_type_script_setup_true_lang.js +0 -23
- package/dist/merge/session/components/merge-review.js +0 -5
- package/dist/merge/session/components/merge-review.vue_vue_type_script_setup_true_lang.js +0 -895
- package/dist/merge/session/merge.service.js +0 -113
- package/dist/merge/session/shortcuts.js +0 -22
- package/dist/merge/session/staged-writes.js +0 -47
- package/dist/merge/session/steps.js +0 -21
- package/dist/merge/session/use-document-progress.js +0 -26
- package/dist/merge/session/use-merge-session.js +0 -372
- package/dist/merge/wording.js +0 -123
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { f as e } from "../external/.pnpm/@dialecte_core@0.
|
|
2
|
-
import "../external/.pnpm/@dialecte_core@0.
|
|
3
|
-
import { V as t } from "../external/.pnpm/@dialecte_core@0.
|
|
4
|
-
import "../external/.pnpm/@dialecte_core@0.
|
|
1
|
+
import { f as e } from "../external/.pnpm/@dialecte_core@0.10.0/node_modules/@dialecte/core/dist/utils-Cv4oHia0.js";
|
|
2
|
+
import "../external/.pnpm/@dialecte_core@0.10.0/node_modules/@dialecte/core/dist/utils.js";
|
|
3
|
+
import { V as t } from "../external/.pnpm/@dialecte_core@0.10.0/node_modules/@dialecte/core/dist/dialecte-CVLWSkgW.js";
|
|
4
|
+
import "../external/.pnpm/@dialecte_core@0.10.0/node_modules/@dialecte/core/dist/index.js";
|
|
5
5
|
import { computed as n, shallowRef as r } from "vue";
|
|
6
6
|
//#region lib/dialecte/create-document-store.ts
|
|
7
7
|
function i(i) {
|
|
@@ -4,7 +4,7 @@ import { i as r, n as i, r as a, t as o } from "./running-operations-DCKvzlU7.js
|
|
|
4
4
|
import { F as s, G as c, H as l, L as u, M as d, R as f, U as p, W as m, h, j as g, k as _, n as v, t as y, z as b } from "./project-key-2ccZ-0gu.js";
|
|
5
5
|
import "./helpers-D8p0KiJu.js";
|
|
6
6
|
import { T as x, d as S, f as C, i as ee, m as w, n as te, p as ne, r as T, t as re, u as ie } from "./same-json-value-_AChwM_n.js";
|
|
7
|
-
//#region node_modules/.pnpm/@dialecte+core@0.
|
|
7
|
+
//#region node_modules/.pnpm/@dialecte+core@0.10.0/node_modules/@dialecte/core/dist/dialecte-CVLWSkgW.js
|
|
8
8
|
async function ae(e) {
|
|
9
9
|
let { store: t, isRunning: n } = e, r = await t.getDocuments();
|
|
10
10
|
for (let e of r) e.status === "importing" && (await n?.(e) || (await t.getDocument(e.id))?.status === "importing" && await t.removeDocument(e.id));
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
import { O as e, W as t, c as n, k as r, l as i, s as a, u as o, w as s, y as c } from "./utils-Cv4oHia0.js";
|
|
2
|
+
function l(e) {
|
|
3
|
+
let { dialecteConfig: t, tagName: n, attributes: r, stored: i = [] } = e;
|
|
4
|
+
return (Array.isArray(r) ? r : Object.entries(r).map(([e, r]) => ({
|
|
5
|
+
name: e,
|
|
6
|
+
value: r,
|
|
7
|
+
namespace: u({
|
|
8
|
+
dialecteConfig: t,
|
|
9
|
+
tagName: n,
|
|
10
|
+
name: e
|
|
11
|
+
}) ?? i.find((t) => t.name === e)?.namespace
|
|
12
|
+
}))).map((e) => d({
|
|
13
|
+
attribute: e,
|
|
14
|
+
dialecteConfig: t,
|
|
15
|
+
tagName: n
|
|
16
|
+
}));
|
|
17
|
+
}
|
|
18
|
+
function u(e) {
|
|
19
|
+
let { dialecteConfig: t, tagName: n, name: r } = e, i = t.definition[n];
|
|
20
|
+
if (i === void 0) return;
|
|
21
|
+
let a = Object.values(i.declarations ?? {}), o = [i, ...a].flatMap((e) => e.variants ?? []), s = [
|
|
22
|
+
i,
|
|
23
|
+
...a,
|
|
24
|
+
...o.flatMap((e) => t.types[e] ?? [])
|
|
25
|
+
];
|
|
26
|
+
for (let e of s) {
|
|
27
|
+
let t = e.attributes.details[r]?.namespace;
|
|
28
|
+
if (t) return t;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
function d(e) {
|
|
32
|
+
let { attribute: n, dialecteConfig: r, tagName: a } = e, s;
|
|
33
|
+
typeof n.namespace == "string" ? (s = o(r, n.namespace), s || t("UNKNOWN_NAMESPACE_PREFIX", {
|
|
34
|
+
detail: `Unknown namespace '${n.namespace}' on attribute '${n.name}' — use a registered namespace key or pass a full { name, namespace: { prefix, uri } }.`,
|
|
35
|
+
ref: { tagName: a }
|
|
36
|
+
})) : s = n.namespace;
|
|
37
|
+
let l = n.name.indexOf(":");
|
|
38
|
+
if (!s && l !== -1) {
|
|
39
|
+
let e = n.name.slice(0, l);
|
|
40
|
+
e !== "xmlns" && (s = i(r, e), s || t("UNKNOWN_NAMESPACE_PREFIX", {
|
|
41
|
+
detail: `Unknown namespace prefix '${e}' on attribute '${n.name}' — pass it explicitly as { name, namespace: { prefix, uri } }.`,
|
|
42
|
+
ref: { tagName: a }
|
|
43
|
+
}));
|
|
44
|
+
}
|
|
45
|
+
return s && s.prefix && s.uri !== "http://www.w3.org/2000/xmlns/" && (s = f({
|
|
46
|
+
dialecteConfig: r,
|
|
47
|
+
uri: s.uri
|
|
48
|
+
}) ?? s), s && s.prefix && s.prefix !== "xmlns" ? {
|
|
49
|
+
...n,
|
|
50
|
+
name: `${s.prefix}:${c(n.name)}`,
|
|
51
|
+
namespace: s
|
|
52
|
+
} : (n.namespace, {
|
|
53
|
+
...n,
|
|
54
|
+
namespace: s
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
function f(e) {
|
|
58
|
+
let { dialecteConfig: t, uri: n } = e;
|
|
59
|
+
return Object.values(t.namespaces).find((e) => e.uri === n && e.prefix !== "");
|
|
60
|
+
}
|
|
61
|
+
function p(e) {
|
|
62
|
+
let { dialecteConfig: t, hooks: r, record: i } = e, { id: o, tagName: c, attributes: u, namespace: d, value: f } = i, p = o ?? crypto.randomUUID(), h = m({
|
|
63
|
+
dialecteConfig: t,
|
|
64
|
+
attributes: u ? l({
|
|
65
|
+
tagName: c,
|
|
66
|
+
attributes: u,
|
|
67
|
+
dialecteConfig: t
|
|
68
|
+
}) : []
|
|
69
|
+
}), g = {
|
|
70
|
+
id: p,
|
|
71
|
+
tagName: c,
|
|
72
|
+
attributes: h,
|
|
73
|
+
namespace: d ?? {
|
|
74
|
+
prefix: "prefixNeededForNotSupportedNamespace",
|
|
75
|
+
uri: "uriNeededForNotSupportedNamespace"
|
|
76
|
+
},
|
|
77
|
+
value: f ?? "",
|
|
78
|
+
parent: i.parent ?? null,
|
|
79
|
+
children: i.children ?? []
|
|
80
|
+
}, _ = Object.values(t.namespaces).map(({ uri: e }) => e), v = d?.uri != null && !_.includes(d.uri);
|
|
81
|
+
if (!t.elements.includes(c) || v) return g;
|
|
82
|
+
let y = s({
|
|
83
|
+
dialecteConfig: t,
|
|
84
|
+
record: {
|
|
85
|
+
...g,
|
|
86
|
+
namespace: d
|
|
87
|
+
}
|
|
88
|
+
}), b = y?.attributes.sequence ?? [], x = a({
|
|
89
|
+
wildcard: y?.attributes.any,
|
|
90
|
+
namespaceUri: ""
|
|
91
|
+
}), S = h.filter((e) => {
|
|
92
|
+
let t = b.includes(e.name), n = "namespace" in e && e.namespace != null;
|
|
93
|
+
if (!t && !n && !x) return !1;
|
|
94
|
+
if (!t) return !0;
|
|
95
|
+
if (e.value === void 0 || e.value === null) return !1;
|
|
96
|
+
if (e.value !== "") return !0;
|
|
97
|
+
let r = y?.attributes.details[e.name];
|
|
98
|
+
return r?.default !== void 0 || r?.fixed !== void 0;
|
|
99
|
+
}), C = t.namespaces.default.uri, w = S.map((e) => {
|
|
100
|
+
if ("namespace" in e && e.namespace?.uri === C) {
|
|
101
|
+
let { namespace: t, ...n } = e;
|
|
102
|
+
return n;
|
|
103
|
+
}
|
|
104
|
+
return e;
|
|
105
|
+
}), T = t.definition[c], E = [y?.namespace ?? T.namespace, ...Object.values(T.declarations ?? {}).map((e) => e.namespace)], D = E.find((e) => e.uri === d?.uri), O = {
|
|
106
|
+
...g,
|
|
107
|
+
namespace: D ?? d ?? E[0],
|
|
108
|
+
attributes: n(w, b)
|
|
109
|
+
};
|
|
110
|
+
return r?.afterStandardizedRecord && (O = r.afterStandardizedRecord({ record: O }), O = {
|
|
111
|
+
...O,
|
|
112
|
+
attributes: n(m({
|
|
113
|
+
dialecteConfig: t,
|
|
114
|
+
attributes: O.attributes
|
|
115
|
+
}), b)
|
|
116
|
+
}), O;
|
|
117
|
+
}
|
|
118
|
+
function m(t) {
|
|
119
|
+
let { dialecteConfig: n, attributes: i } = t;
|
|
120
|
+
return r({
|
|
121
|
+
dialecteConfig: n,
|
|
122
|
+
attributes: i,
|
|
123
|
+
namespaceOf: e({
|
|
124
|
+
dialecteConfig: n,
|
|
125
|
+
attributes: i
|
|
126
|
+
})
|
|
127
|
+
});
|
|
128
|
+
}
|
|
129
|
+
//#endregion
|
|
130
|
+
export { p as l, l as u };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { A as e, B as t, O as n, R as r, S as i, W as a, a as o, f as s, h as c, w as l, y as u } from "./utils-Cv4oHia0.js";
|
|
2
|
-
//#region node_modules/.pnpm/@dialecte+core@0.
|
|
2
|
+
//#region node_modules/.pnpm/@dialecte+core@0.10.0/node_modules/@dialecte/core/dist/project-key-2ccZ-0gu.js
|
|
3
3
|
var d = {
|
|
4
4
|
bigint: "a BigInt",
|
|
5
5
|
function: "a function",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region node_modules/.pnpm/@dialecte+core@0.
|
|
1
|
+
//#region node_modules/.pnpm/@dialecte+core@0.10.0/node_modules/@dialecte/core/dist/rolldown-runtime-CYdcPHCu.js
|
|
2
2
|
var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescriptor, r = Object.getOwnPropertyNames, i = Object.getPrototypeOf, a = Object.prototype.hasOwnProperty, o = (e, t) => () => (t || (e((t = { exports: {} }).exports, t, t.exports), e = null), t.exports), s = (e, i, o, s) => {
|
|
3
3
|
if (i && typeof i == "object" || typeof i == "function") for (var c = r(i), l = 0, u = c.length, d; l < u; l++) d = c[l], !a.call(e, d) && d !== o && t(e, d, {
|
|
4
4
|
get: ((e) => i[e]).bind(null, d),
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "./utils-Cv4oHia0.js";
|
|
2
|
-
//#region node_modules/.pnpm/@dialecte+core@0.
|
|
2
|
+
//#region node_modules/.pnpm/@dialecte+core@0.10.0/node_modules/@dialecte/core/dist/running-operations-DCKvzlU7.js
|
|
3
3
|
function e() {
|
|
4
4
|
let e = /* @__PURE__ */ new Map();
|
|
5
5
|
return {
|
|
@@ -2,7 +2,7 @@ import { G as e, V as t, W as n, f as r, j as i, k as a, z as o } from "./utils-
|
|
|
2
2
|
import { n as s, t as c } from "./rolldown-runtime-CYdcPHCu.js";
|
|
3
3
|
import { A as l, B as u, K as d, L as f, M as p, P as m, V as h, a as g, c as _, f as v, m as y, o as b, p as x, s as S } from "./project-key-2ccZ-0gu.js";
|
|
4
4
|
import { l as C } from "./helpers-D8p0KiJu.js";
|
|
5
|
-
//#region node_modules/.pnpm/@dialecte+core@0.
|
|
5
|
+
//#region node_modules/.pnpm/@dialecte+core@0.10.0/node_modules/@dialecte/core/dist/same-json-value-_AChwM_n.js
|
|
6
6
|
function w(e) {
|
|
7
7
|
let { documents: t, writeId: n, isRunning: r } = e, i = t.find((e) => e.writeId === n);
|
|
8
8
|
return i ? i.status === "importing" ? r?.({ writeId: n }) === !1 ? "not-applied" : "running" : "applied" : "not-applied";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region node_modules/.pnpm/@dialecte+core@0.
|
|
1
|
+
//#region node_modules/.pnpm/@dialecte+core@0.10.0/node_modules/@dialecte/core/dist/utils-Cv4oHia0.js
|
|
2
2
|
var e = "https://dialecte.github.io/core", t = /* @__PURE__ */ new Set([
|
|
3
3
|
"throwDialecteError",
|
|
4
4
|
"createDialecteError",
|
|
@@ -536,11 +536,12 @@ var e = "https://dialecte.github.io/core", t = /* @__PURE__ */ new Set([
|
|
|
536
536
|
docs: `${e}/api/project#a-document-s-path`
|
|
537
537
|
}
|
|
538
538
|
}
|
|
539
|
-
}
|
|
540
|
-
|
|
541
|
-
|
|
539
|
+
};
|
|
540
|
+
new Set(Object.values(n).map((e) => e.code));
|
|
541
|
+
function r(e, t) {
|
|
542
|
+
throw i(e, t);
|
|
542
543
|
}
|
|
543
|
-
function
|
|
544
|
+
function i(e, t) {
|
|
544
545
|
let r = typeof e == "string" ? {
|
|
545
546
|
key: e,
|
|
546
547
|
...n[e]
|
|
@@ -549,99 +550,84 @@ function a(e, t) {
|
|
|
549
550
|
key: r.key,
|
|
550
551
|
message: t.message ?? r.message,
|
|
551
552
|
detail: t.detail,
|
|
552
|
-
method:
|
|
553
|
+
method: o((/* @__PURE__ */ Error()).stack),
|
|
553
554
|
ref: t.ref,
|
|
554
555
|
meta: t.meta,
|
|
555
556
|
cause: t.cause
|
|
556
557
|
}, a = Error(t.detail);
|
|
557
558
|
return a.cause = i, a;
|
|
558
559
|
}
|
|
559
|
-
function
|
|
560
|
-
let t = {}, a = /* @__PURE__ */ new Map();
|
|
561
|
-
for (let [o, s] of Object.entries(e)) {
|
|
562
|
-
Object.hasOwn(n, o) && i("ASSERTION_FAILED", { detail: `defineErrors: "${o}" is a key of the core catalogue` }), r.has(s.code) && i("ASSERTION_FAILED", { detail: `defineErrors: "${o}" uses "${s.code}", a code of the core catalogue` });
|
|
563
|
-
let e = a.get(s.code);
|
|
564
|
-
e && i("ASSERTION_FAILED", { detail: `defineErrors: "${o}" uses "${s.code}", the code of "${e}"` }), a.set(s.code, o), t[o] = {
|
|
565
|
-
key: o,
|
|
566
|
-
...s
|
|
567
|
-
};
|
|
568
|
-
}
|
|
569
|
-
return t;
|
|
570
|
-
}
|
|
571
|
-
function s(e) {
|
|
560
|
+
function a(e) {
|
|
572
561
|
if (!(e instanceof Error)) return;
|
|
573
562
|
let t = e.cause;
|
|
574
563
|
if (!(!t || t instanceof Error) && typeof t.key == "string" && typeof t.code == "string") return t;
|
|
575
564
|
}
|
|
576
|
-
function
|
|
577
|
-
return Object.hasOwn(n, e.key) ? !0 : t.catalogues.some((t) => Object.hasOwn(t, e.key) && t[e.key]?.code === e.code);
|
|
578
|
-
}
|
|
579
|
-
function l(e) {
|
|
565
|
+
function o(e) {
|
|
580
566
|
if (!e) return "unknown";
|
|
581
|
-
let t = e.split("\n").slice(1).map((e) => e.match(/\bat\s+(?:async\s+)?(\S+)(?:\s+\[as\s+[^\]]+\])?\s+\(([^)]+)\)/)).find((e) => !
|
|
567
|
+
let t = e.split("\n").slice(1).map((e) => e.match(/\bat\s+(?:async\s+)?(\S+)(?:\s+\[as\s+[^\]]+\])?\s+\(([^)]+)\)/)).find((e) => !s(e?.[1])), n = t?.[1]?.replace(/^Object\./, ""), r = t?.[2];
|
|
582
568
|
if (!r || !n) return n ?? "unknown";
|
|
583
569
|
let i = r.match(/(\w[\w-]*\/src\/[^?:]+)/);
|
|
584
570
|
return i ? `${i[1].replace(/\.[^/.]+$/, "")}::${n}` : n;
|
|
585
571
|
}
|
|
586
|
-
function
|
|
572
|
+
function s(e) {
|
|
587
573
|
return e ? t.has(e.slice(e.lastIndexOf(".") + 1)) : !1;
|
|
588
574
|
}
|
|
589
|
-
var
|
|
590
|
-
function
|
|
575
|
+
var c = /[ \t\r\n]+/g;
|
|
576
|
+
function l(e) {
|
|
591
577
|
let { text: t } = e, n = 0, r = t.length;
|
|
592
|
-
for (; n < r &&
|
|
593
|
-
for (; r > n &&
|
|
578
|
+
for (; n < r && f(t.charCodeAt(n));) n++;
|
|
579
|
+
for (; r > n && f(t.charCodeAt(r - 1));) r--;
|
|
594
580
|
return n === 0 && r === t.length ? t : t.slice(n, r);
|
|
595
581
|
}
|
|
596
|
-
function
|
|
597
|
-
return e.text.replace(
|
|
582
|
+
function u(e) {
|
|
583
|
+
return e.text.replace(c, " ");
|
|
598
584
|
}
|
|
599
|
-
function
|
|
600
|
-
let t =
|
|
601
|
-
return t &&
|
|
585
|
+
function d(e) {
|
|
586
|
+
let t = l({ text: e.text });
|
|
587
|
+
return t && u({ text: t });
|
|
602
588
|
}
|
|
603
|
-
function
|
|
589
|
+
function f(e) {
|
|
604
590
|
return e === 32 || e === 10 || e === 9 || e === 13;
|
|
605
591
|
}
|
|
606
|
-
var
|
|
592
|
+
var p = "db-id", m = {
|
|
607
593
|
uri: "http://dialecte.dev/XML/DEV",
|
|
608
594
|
prefix: "dev"
|
|
609
|
-
},
|
|
595
|
+
}, h = `${m.prefix}:${p}`, g = {
|
|
610
596
|
uri: "http://www.w3.org/2001/XMLSchema-instance",
|
|
611
597
|
prefix: "xsi"
|
|
612
|
-
},
|
|
613
|
-
`${
|
|
614
|
-
function
|
|
615
|
-
return e.namespace?.uri ===
|
|
598
|
+
}, _ = "http://www.w3.org/2000/xmlns/";
|
|
599
|
+
`${g.prefix}${g.uri}`;
|
|
600
|
+
function v(e) {
|
|
601
|
+
return e.namespace?.uri === g.uri && e.name.split(":").at(-1) === "type";
|
|
616
602
|
}
|
|
617
|
-
function
|
|
618
|
-
let { namespaceOf: t } = e, n =
|
|
603
|
+
function y(e) {
|
|
604
|
+
let { namespaceOf: t } = e, n = l({ text: e.value });
|
|
619
605
|
if (n.startsWith("{")) {
|
|
620
606
|
let e = n.indexOf("}");
|
|
621
|
-
return e === -1 ? void 0 :
|
|
607
|
+
return e === -1 ? void 0 : w({
|
|
622
608
|
uri: n.slice(1, e),
|
|
623
609
|
local: n.slice(e + 1)
|
|
624
610
|
});
|
|
625
611
|
}
|
|
626
612
|
let r = n.indexOf(":"), i = r === -1 ? "" : n.slice(0, r), a = r === -1 ? n : n.slice(r + 1), o = i ? t(i) : t("") ?? "";
|
|
627
|
-
if (o !== void 0) return
|
|
613
|
+
if (o !== void 0) return w({
|
|
628
614
|
uri: o,
|
|
629
615
|
local: a
|
|
630
616
|
});
|
|
631
617
|
}
|
|
632
|
-
function
|
|
633
|
-
let { dialecteConfig: t, record: n } = e, r = n.attributes.find(
|
|
618
|
+
function b(e) {
|
|
619
|
+
let { dialecteConfig: t, record: n } = e, r = n.attributes.find(v);
|
|
634
620
|
if (r === void 0 || typeof r.value != "string") return;
|
|
635
|
-
let i =
|
|
621
|
+
let i = x({
|
|
636
622
|
dialecteConfig: t,
|
|
637
623
|
attributes: n.attributes
|
|
638
624
|
});
|
|
639
|
-
return
|
|
625
|
+
return y({
|
|
640
626
|
value: r.value,
|
|
641
627
|
namespaceOf: i
|
|
642
628
|
});
|
|
643
629
|
}
|
|
644
|
-
function
|
|
630
|
+
function x(e) {
|
|
645
631
|
let { dialecteConfig: t, attributes: n } = e, r = Object.values(t.namespaces);
|
|
646
632
|
return function(e) {
|
|
647
633
|
if (!e) return t.namespaces.default.uri;
|
|
@@ -651,8 +637,8 @@ function w(e) {
|
|
|
651
637
|
return typeof a?.value == "string" ? a.value : void 0;
|
|
652
638
|
};
|
|
653
639
|
}
|
|
654
|
-
function
|
|
655
|
-
let { dialecteConfig: t, value: n, namespaceOf: r } = e, i =
|
|
640
|
+
function S(e) {
|
|
641
|
+
let { dialecteConfig: t, value: n, namespaceOf: r } = e, i = y({
|
|
656
642
|
value: n,
|
|
657
643
|
namespaceOf: r
|
|
658
644
|
});
|
|
@@ -661,18 +647,18 @@ function T(e) {
|
|
|
661
647
|
let a = Object.values(t.namespaces).find((e) => e.uri === i.namespace && e.prefix !== "");
|
|
662
648
|
return a ? `${a.prefix}:${i.local}` : n;
|
|
663
649
|
}
|
|
664
|
-
function
|
|
650
|
+
function C(e) {
|
|
665
651
|
let { dialecteConfig: t, attributes: n, namespaceOf: r } = e;
|
|
666
|
-
return n.map((e) =>
|
|
652
|
+
return n.map((e) => v(e) && typeof e.value == "string" ? {
|
|
667
653
|
...e,
|
|
668
|
-
value:
|
|
654
|
+
value: S({
|
|
669
655
|
dialecteConfig: t,
|
|
670
656
|
value: e.value,
|
|
671
657
|
namespaceOf: r
|
|
672
658
|
})
|
|
673
659
|
} : e);
|
|
674
660
|
}
|
|
675
|
-
function
|
|
661
|
+
function w(e) {
|
|
676
662
|
let { uri: t, local: n } = e;
|
|
677
663
|
return {
|
|
678
664
|
clark: t ? `{${t}}${n}` : n,
|
|
@@ -680,25 +666,25 @@ function D(e) {
|
|
|
680
666
|
local: n
|
|
681
667
|
};
|
|
682
668
|
}
|
|
683
|
-
function
|
|
669
|
+
function T(e) {
|
|
684
670
|
let { dialecteConfig: t, record: n, parentDefinition: r } = e, i = t.definition[n.tagName];
|
|
685
671
|
if (i === void 0) return;
|
|
686
|
-
let a =
|
|
672
|
+
let a = E({
|
|
687
673
|
dialecteConfig: t,
|
|
688
674
|
record: n,
|
|
689
675
|
tagLevel: i,
|
|
690
676
|
parentDefinition: r
|
|
691
|
-
}), o =
|
|
677
|
+
}), o = D({
|
|
692
678
|
dialecteConfig: t,
|
|
693
679
|
record: n
|
|
694
680
|
}), s = a === i ? Object.values(i.declarations ?? {}).concat(i) : [a], c = o !== void 0 && s.some((e) => e.variants?.includes(o)) ? t.types[o] : void 0;
|
|
695
|
-
return a === i && c === void 0 && i.declarations === void 0 ? i :
|
|
681
|
+
return a === i && c === void 0 && i.declarations === void 0 ? i : O({
|
|
696
682
|
tagLevel: i,
|
|
697
683
|
declaration: a,
|
|
698
684
|
type: c
|
|
699
685
|
});
|
|
700
686
|
}
|
|
701
|
-
function
|
|
687
|
+
function E(e) {
|
|
702
688
|
let { dialecteConfig: t, record: n, tagLevel: r, parentDefinition: i } = e, a = r.declarations;
|
|
703
689
|
if (a === void 0) return r;
|
|
704
690
|
let o = i ?? (n.parent ? t.definition[n.parent.tagName] : void 0), s = o?.children.details[n.tagName]?.declarations;
|
|
@@ -709,12 +695,12 @@ function k(e) {
|
|
|
709
695
|
let c = o === void 0 || o.children.any === !0, l = n.namespace?.uri;
|
|
710
696
|
return !c || l === void 0 ? r : Object.values(a).find((e) => e.global && e.namespace.uri === l) ?? r;
|
|
711
697
|
}
|
|
712
|
-
function
|
|
713
|
-
return
|
|
698
|
+
function D(e) {
|
|
699
|
+
return b(e)?.clark;
|
|
714
700
|
}
|
|
715
|
-
function
|
|
716
|
-
let { tagLevel: t, declaration: n, type: r } = e, i =
|
|
717
|
-
|
|
701
|
+
function O(e) {
|
|
702
|
+
let { tagLevel: t, declaration: n, type: r } = e, i = k.get(n) ?? /* @__PURE__ */ new Map();
|
|
703
|
+
k.set(n, i);
|
|
718
704
|
let a = i.get(r);
|
|
719
705
|
if (a?.tag === t.tag && a.parents === t.parents) return a;
|
|
720
706
|
let { declarations: o, abstractType: s, ...c } = n, l = {
|
|
@@ -736,9 +722,9 @@ function j(e) {
|
|
|
736
722
|
};
|
|
737
723
|
return u.contentModel === void 0 && delete u.contentModel, u.textContent === void 0 && delete u.textContent, i.set(r, u), u;
|
|
738
724
|
}
|
|
739
|
-
var
|
|
740
|
-
function
|
|
741
|
-
let { dialecteConfig: t, record: n, attributeName: r } = e, i = t.elements.includes(n.tagName), a = i ?
|
|
725
|
+
var k = /* @__PURE__ */ new WeakMap();
|
|
726
|
+
function A(e) {
|
|
727
|
+
let { dialecteConfig: t, record: n, attributeName: r } = e, i = t.elements.includes(n.tagName), a = i ? T({
|
|
742
728
|
dialecteConfig: t,
|
|
743
729
|
record: n
|
|
744
730
|
}) : void 0, o = a?.attributes.details[r];
|
|
@@ -752,10 +738,10 @@ function N(e) {
|
|
|
752
738
|
namespace: o?.namespace || void 0
|
|
753
739
|
};
|
|
754
740
|
}
|
|
755
|
-
function
|
|
741
|
+
function j(e) {
|
|
756
742
|
let { dialecteConfig: t, record: n, attributeName: r, defaults: i } = e;
|
|
757
743
|
if (i === "none") return;
|
|
758
|
-
let a =
|
|
744
|
+
let a = A({
|
|
759
745
|
dialecteConfig: t,
|
|
760
746
|
record: n,
|
|
761
747
|
attributeName: r
|
|
@@ -764,48 +750,39 @@ function P(e) {
|
|
|
764
750
|
if (a.fixed !== void 0) return a.fixed;
|
|
765
751
|
if (a.default) return a.default;
|
|
766
752
|
}
|
|
767
|
-
function
|
|
753
|
+
function M(e) {
|
|
768
754
|
let t = e.lastIndexOf(":");
|
|
769
755
|
return t === -1 ? e : e.slice(t + 1);
|
|
770
756
|
}
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
}
|
|
774
|
-
function L(e) {
|
|
775
|
-
return (e?.facets?.pattern ?? []).map((e) => RegExp(`^(?:${e.map((e) => `(?:${e})`).join("|")})$`, "u"));
|
|
776
|
-
}
|
|
777
|
-
var R = /[\u0000-\u0008\u000B\u000C\u000E-\u001F\uFFFE\uFFFF]/;
|
|
778
|
-
function z(e, t) {
|
|
757
|
+
var N = /[\u0000-\u0008\u000B\u000C\u000E-\u001F\uFFFE\uFFFF]/;
|
|
758
|
+
function P(e, t) {
|
|
779
759
|
if (e) return;
|
|
780
|
-
let { detail: n, key:
|
|
781
|
-
i
|
|
760
|
+
let { detail: n, key: i = "ASSERTION_FAILED", ref: a, meta: o } = t;
|
|
761
|
+
r(i, {
|
|
782
762
|
detail: n,
|
|
783
763
|
ref: a,
|
|
784
764
|
meta: o
|
|
785
765
|
});
|
|
786
766
|
}
|
|
787
|
-
function
|
|
767
|
+
function F(e, t) {
|
|
788
768
|
if (t) return Object.values(e.namespaces).find((e) => e.prefix === t);
|
|
789
769
|
}
|
|
790
|
-
function
|
|
791
|
-
return e.namespaces[t] ??
|
|
792
|
-
}
|
|
793
|
-
function H(e, t) {
|
|
794
|
-
return e.namespaces[t]?.prefix ?? t;
|
|
770
|
+
function I(e, t) {
|
|
771
|
+
return e.namespaces[t] ?? F(e, t);
|
|
795
772
|
}
|
|
796
|
-
function
|
|
773
|
+
function L(e, t) {
|
|
797
774
|
let n = e.namespace?.uri ?? "", r = t.namespace?.uri ?? "";
|
|
798
775
|
return n === r ? e.name === t.name ? 0 : e.name < t.name ? -1 : 1 : n < r ? -1 : 1;
|
|
799
776
|
}
|
|
800
|
-
function
|
|
801
|
-
let n = t.flatMap((t) => e.filter((e) => e.name === t)), r = e.filter((e) => !t.includes(e.name)).sort(
|
|
777
|
+
function R(e, t) {
|
|
778
|
+
let n = t.flatMap((t) => e.filter((e) => e.name === t)), r = e.filter((e) => !t.includes(e.name)).sort(L);
|
|
802
779
|
return [...n, ...r];
|
|
803
780
|
}
|
|
804
|
-
function
|
|
781
|
+
function z(e) {
|
|
805
782
|
let { wildcard: t, namespaceUri: n } = e;
|
|
806
783
|
return t === void 0 ? !1 : t.namespace === void 0 ? !(t.notNamespace ?? []).includes(n) : t.namespace.includes(n);
|
|
807
784
|
}
|
|
808
|
-
function
|
|
785
|
+
function B(e) {
|
|
809
786
|
let { parentTagName: t, children: n, childrenConfig: r, definition: i } = e, a = r[t];
|
|
810
787
|
if (!a || a.length === 0) return n;
|
|
811
788
|
let o = new Set(a), s = /* @__PURE__ */ new Map();
|
|
@@ -815,12 +792,12 @@ function K(e) {
|
|
|
815
792
|
let t = s.get(e.tagName);
|
|
816
793
|
t ? t.push(e) : c.push(e);
|
|
817
794
|
}
|
|
818
|
-
let l = i?.[t], u = i && c.length > 0 && l?.children.any === !0 ?
|
|
795
|
+
let l = i?.[t], u = i && c.length > 0 && l?.children.any === !0 ? V({
|
|
819
796
|
contentModel: l.contentModel,
|
|
820
797
|
order: o
|
|
821
798
|
}) : [], d = u.map(() => []), f = u.length > 0 ? [] : c;
|
|
822
799
|
if (i && u.length > 0) for (let e of c) {
|
|
823
|
-
let t =
|
|
800
|
+
let t = H({
|
|
824
801
|
slots: u,
|
|
825
802
|
admitted: d,
|
|
826
803
|
definition: i,
|
|
@@ -830,7 +807,7 @@ function K(e) {
|
|
|
830
807
|
}
|
|
831
808
|
let p = [];
|
|
832
809
|
for (let e of o) {
|
|
833
|
-
u.length > 0 &&
|
|
810
|
+
u.length > 0 && U({
|
|
834
811
|
ordered: p,
|
|
835
812
|
slots: u,
|
|
836
813
|
admitted: d,
|
|
@@ -839,14 +816,14 @@ function K(e) {
|
|
|
839
816
|
let t = s.get(e);
|
|
840
817
|
t && t.length && p.push(...t);
|
|
841
818
|
}
|
|
842
|
-
return u.length > 0 &&
|
|
819
|
+
return u.length > 0 && U({
|
|
843
820
|
ordered: p,
|
|
844
821
|
slots: u,
|
|
845
822
|
admitted: d,
|
|
846
823
|
before: void 0
|
|
847
824
|
}), p.push(...f), p;
|
|
848
825
|
}
|
|
849
|
-
function
|
|
826
|
+
function V(e) {
|
|
850
827
|
let { contentModel: t, order: n } = e, r = [], i = /* @__PURE__ */ new Set(), a = [];
|
|
851
828
|
function o(e, t) {
|
|
852
829
|
let s = t * (e.maxOccurs ?? Infinity);
|
|
@@ -871,18 +848,18 @@ function q(e) {
|
|
|
871
848
|
});
|
|
872
849
|
return r;
|
|
873
850
|
}
|
|
874
|
-
function
|
|
851
|
+
function H(e) {
|
|
875
852
|
let { slots: t, admitted: n, definition: r, tagName: i } = e, a = r[i]?.namespace.uri;
|
|
876
|
-
return a === void 0 ? -1 : t.findIndex((e, t) => n[t].length < e.capacity &&
|
|
853
|
+
return a === void 0 ? -1 : t.findIndex((e, t) => n[t].length < e.capacity && z({
|
|
877
854
|
wildcard: e.wildcard,
|
|
878
855
|
namespaceUri: a
|
|
879
856
|
}));
|
|
880
857
|
}
|
|
881
|
-
function
|
|
858
|
+
function U(e) {
|
|
882
859
|
let { ordered: t, slots: n, admitted: r, before: i } = e;
|
|
883
860
|
n.forEach((e, n) => {
|
|
884
861
|
e.before === i && t.push(...r[n]);
|
|
885
862
|
});
|
|
886
863
|
}
|
|
887
864
|
//#endregion
|
|
888
|
-
export {
|
|
865
|
+
export { y as A, l as B, b as D, v as E, _ as F, a as G, n as K, p as M, m as N, x as O, g as R, j as S, S as T, i as V, r as W, B as a, A as b, R as c, P as f, N as h, h as j, C as k, F as l, L as o, e as q, z as s, I as u, T as w, M as y, d as z };
|