@arach/arc-iso 0.8.0 → 0.9.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.
- package/dist/arc-iso-slim.es.js +824 -811
- package/dist/arc-iso-slim.umd.js +7 -7
- package/dist/arc-iso.es.js +1399 -1386
- package/dist/arc-iso.umd.js +25 -25
- package/dist/index.d.ts +2 -0
- package/package.json +1 -1
package/dist/arc-iso.es.js
CHANGED
|
@@ -1,88 +1,88 @@
|
|
|
1
|
-
import
|
|
2
|
-
const Pn = 30 * (Math.PI / 180),
|
|
3
|
-
function
|
|
1
|
+
import Yr, { useId as nn, forwardRef as Rn, createElement as Ke, useMemo as Br, useState as Le, useEffect as Hr } from "react";
|
|
2
|
+
const Pn = 30 * (Math.PI / 180), Wr = Math.cos(Pn), Ur = Math.sin(Pn);
|
|
3
|
+
function w(e, n, r = 0) {
|
|
4
4
|
return {
|
|
5
|
-
screenX: (e - n) *
|
|
6
|
-
screenY: -(e + n) *
|
|
5
|
+
screenX: (e - n) * Wr,
|
|
6
|
+
screenY: -(e + n) * Ur - r
|
|
7
7
|
// Negated so +X,+Y go UP on screen
|
|
8
8
|
};
|
|
9
9
|
}
|
|
10
|
-
function
|
|
11
|
-
let n = 1, r = 0,
|
|
12
|
-
e === "y" ? (n = 0, r = 1,
|
|
13
|
-
const l =
|
|
10
|
+
function zr(e = "x") {
|
|
11
|
+
let n = 1, r = 0, i = 0, t = -1;
|
|
12
|
+
e === "y" ? (n = 0, r = 1, i = 1, t = 0) : e === "x-" ? (n = -1, r = 0, i = 0, t = 1) : e === "y-" && (n = 0, r = -1, i = -1, t = 0);
|
|
13
|
+
const l = w(n, r, 0), o = w(i, t, 0);
|
|
14
14
|
return `${l.screenX},${l.screenY},${o.screenX},${o.screenY},0,0`;
|
|
15
15
|
}
|
|
16
|
-
function xe(e, n, r,
|
|
16
|
+
function xe(e, n, r, i = 0, t = 0, l = 0) {
|
|
17
17
|
const o = {
|
|
18
18
|
// Bottom face
|
|
19
|
-
frontBottom:
|
|
20
|
-
rightBottom:
|
|
21
|
-
backBottom:
|
|
22
|
-
leftBottom:
|
|
19
|
+
frontBottom: w(e, 0, 0),
|
|
20
|
+
rightBottom: w(e, n, 0),
|
|
21
|
+
backBottom: w(0, n, 0),
|
|
22
|
+
leftBottom: w(0, 0, 0),
|
|
23
23
|
// Top face
|
|
24
|
-
frontTop:
|
|
25
|
-
rightTop:
|
|
26
|
-
backTop:
|
|
27
|
-
leftTop:
|
|
28
|
-
}, a = (
|
|
29
|
-
x:
|
|
30
|
-
y:
|
|
24
|
+
frontTop: w(e, 0, r),
|
|
25
|
+
rightTop: w(e, n, r),
|
|
26
|
+
backTop: w(0, n, r),
|
|
27
|
+
leftTop: w(0, 0, r)
|
|
28
|
+
}, a = (C) => ({
|
|
29
|
+
x: C.screenX + i,
|
|
30
|
+
y: C.screenY + t
|
|
31
31
|
}), c = Object.fromEntries(
|
|
32
|
-
Object.entries(o).map(([
|
|
33
|
-
),
|
|
34
|
-
if (
|
|
35
|
-
const
|
|
36
|
-
return `M ${
|
|
37
|
-
}
|
|
38
|
-
const
|
|
39
|
-
for (let
|
|
40
|
-
const
|
|
41
|
-
|
|
32
|
+
Object.entries(o).map(([C, N]) => [C, a(N)])
|
|
33
|
+
), f = (C, N, I, B) => {
|
|
34
|
+
if (B <= 0) {
|
|
35
|
+
const re = w(0, 0, I), K = w(C, 0, I), H = w(C, N, I), T = w(0, N, I);
|
|
36
|
+
return `M ${re.screenX + i},${re.screenY + t} L ${K.screenX + i},${K.screenY + t} L ${H.screenX + i},${H.screenY + t} L ${T.screenX + i},${T.screenY + t} Z`;
|
|
37
|
+
}
|
|
38
|
+
const j = Math.min(C, N) / 2, R = Math.min(B, j), ee = 8, L = [], D = (re, K, H, T) => {
|
|
39
|
+
for (let U = 0; U <= ee; U++) {
|
|
40
|
+
const oe = H + (T - H) * (U / ee), M = re + R * Math.cos(oe), s = K + R * Math.sin(oe), A = w(M, s, I);
|
|
41
|
+
L.push(`${A.screenX + i},${A.screenY + t}`);
|
|
42
42
|
}
|
|
43
43
|
};
|
|
44
|
-
return
|
|
45
|
-
},
|
|
46
|
-
const
|
|
47
|
-
for (let
|
|
48
|
-
const
|
|
49
|
-
|
|
50
|
-
}
|
|
51
|
-
return
|
|
52
|
-
},
|
|
53
|
-
let m,
|
|
54
|
-
if (
|
|
55
|
-
const
|
|
56
|
-
{ x:
|
|
57
|
-
{ x:
|
|
58
|
-
{ x:
|
|
59
|
-
{ x:
|
|
44
|
+
return D(R, R, Math.PI, Math.PI * 1.5), D(C - R, R, Math.PI * 1.5, Math.PI * 2), D(C - R, N - R, 0, Math.PI * 0.5), D(R, N - R, Math.PI * 0.5, Math.PI), `M ${L[0]} L ${L.slice(1).join(" L ")} Z`;
|
|
45
|
+
}, u = (C) => `M ${C.map((N) => `${N.x},${N.y}`).join(" L ")} Z`, d = (C, N, I, B, j, R) => {
|
|
46
|
+
const L = [];
|
|
47
|
+
for (let H = 0; H < 6; H++) {
|
|
48
|
+
const T = j + (R - j) * (H / 6), U = j + (R - j) * ((H + 1) / 6), oe = (T + U) / 2, M = Math.cos(oe), s = Math.sin(oe), O = M * -0.577 + s * -0.577 + 0 * 0.577, ae = 0.3 + Math.max(0, O + 0.4) * 0.5, se = w(C + I * Math.cos(T), N + I * Math.sin(T), 0), P = w(C + I * Math.cos(U), N + I * Math.sin(U), 0), te = w(C + I * Math.cos(T), N + I * Math.sin(T), B), fe = w(C + I * Math.cos(U), N + I * Math.sin(U), B), ye = `M ${se.screenX + i},${se.screenY + t} L ${P.screenX + i},${P.screenY + t} L ${fe.screenX + i},${fe.screenY + t} L ${te.screenX + i},${te.screenY + t} Z`;
|
|
49
|
+
L.push({ path: ye, intensity: ae });
|
|
50
|
+
}
|
|
51
|
+
return L;
|
|
52
|
+
}, p = Math.min(l, Math.min(e, n) / 2), x = f(e, n, r, p);
|
|
53
|
+
let m, y, v, k, b, Y;
|
|
54
|
+
if (p > 0) {
|
|
55
|
+
const C = [
|
|
56
|
+
{ x: w(0, p, 0).screenX + i, y: w(0, p, 0).screenY + t },
|
|
57
|
+
{ x: w(0, n - p, 0).screenX + i, y: w(0, n - p, 0).screenY + t },
|
|
58
|
+
{ x: w(0, n - p, r).screenX + i, y: w(0, n - p, r).screenY + t },
|
|
59
|
+
{ x: w(0, p, r).screenX + i, y: w(0, p, r).screenY + t }
|
|
60
60
|
];
|
|
61
|
-
m =
|
|
62
|
-
const
|
|
63
|
-
{ x:
|
|
64
|
-
{ x:
|
|
65
|
-
{ x:
|
|
66
|
-
{ x:
|
|
61
|
+
m = u(C);
|
|
62
|
+
const N = [
|
|
63
|
+
{ x: w(p, 0, 0).screenX + i, y: w(p, 0, 0).screenY + t },
|
|
64
|
+
{ x: w(e - p, 0, 0).screenX + i, y: w(e - p, 0, 0).screenY + t },
|
|
65
|
+
{ x: w(e - p, 0, r).screenX + i, y: w(e - p, 0, r).screenY + t },
|
|
66
|
+
{ x: w(p, 0, r).screenX + i, y: w(p, 0, r).screenY + t }
|
|
67
67
|
];
|
|
68
|
-
|
|
68
|
+
y = u(N), v = d(p, p, p, r, Math.PI, Math.PI * 1.5), k = d(e - p, p, p, r, Math.PI * 1.5, Math.PI * 2), b = d(p, n - p, p, r, Math.PI * 0.5, Math.PI), Y = d(e - p, n - p, p, r, 0, Math.PI * 0.5);
|
|
69
69
|
} else {
|
|
70
|
-
const
|
|
71
|
-
m =
|
|
70
|
+
const C = [c.leftBottom, c.backBottom, c.backTop, c.leftTop], N = [c.leftBottom, c.frontBottom, c.frontTop, c.leftTop];
|
|
71
|
+
m = u(C), y = u(N), v = [], k = [], b = [], Y = [];
|
|
72
72
|
}
|
|
73
|
-
const
|
|
73
|
+
const E = `M ${c.leftBottom.x},${c.leftBottom.y} L ${c.frontBottom.x},${c.frontBottom.y} L ${c.rightBottom.x},${c.rightBottom.y} L ${c.backBottom.x},${c.backBottom.y} Z`;
|
|
74
74
|
return {
|
|
75
|
-
top:
|
|
75
|
+
top: x,
|
|
76
76
|
left: m,
|
|
77
|
-
right:
|
|
78
|
-
cornerFrontLeft:
|
|
77
|
+
right: y,
|
|
78
|
+
cornerFrontLeft: v,
|
|
79
79
|
cornerFrontRight: k,
|
|
80
|
-
cornerBackLeft:
|
|
81
|
-
cornerBackRight:
|
|
82
|
-
outline:
|
|
80
|
+
cornerBackLeft: b,
|
|
81
|
+
cornerBackRight: Y,
|
|
82
|
+
outline: E
|
|
83
83
|
};
|
|
84
84
|
}
|
|
85
|
-
function
|
|
85
|
+
function qr(e, n = 60, r = 50) {
|
|
86
86
|
return {
|
|
87
87
|
top: `hsl(${e}, ${n}%, ${Math.min(r + 15, 95)}%)`,
|
|
88
88
|
right: `hsl(${e}, ${n}%, ${r}%)`,
|
|
@@ -99,28 +99,28 @@ const hn = {
|
|
|
99
99
|
slate: { hue: 220, saturation: 15, lightness: 50 },
|
|
100
100
|
zinc: { hue: 240, saturation: 5, lightness: 50 }
|
|
101
101
|
};
|
|
102
|
-
function
|
|
102
|
+
function Ya(e) {
|
|
103
103
|
const n = hn[e] || hn.slate;
|
|
104
|
-
return
|
|
104
|
+
return qr(n.hue, n.saturation, n.lightness);
|
|
105
105
|
}
|
|
106
|
-
var
|
|
106
|
+
var Fe = { exports: {} }, Ce = {};
|
|
107
107
|
var dn;
|
|
108
|
-
function
|
|
108
|
+
function Xr() {
|
|
109
109
|
if (dn) return Ce;
|
|
110
110
|
dn = 1;
|
|
111
111
|
var e = /* @__PURE__ */ Symbol.for("react.transitional.element"), n = /* @__PURE__ */ Symbol.for("react.fragment");
|
|
112
|
-
function r(
|
|
112
|
+
function r(i, t, l) {
|
|
113
113
|
var o = null;
|
|
114
|
-
if (l !== void 0 && (o = "" + l),
|
|
114
|
+
if (l !== void 0 && (o = "" + l), t.key !== void 0 && (o = "" + t.key), "key" in t) {
|
|
115
115
|
l = {};
|
|
116
|
-
for (var a in
|
|
117
|
-
a !== "key" && (l[a] =
|
|
118
|
-
} else l =
|
|
119
|
-
return
|
|
116
|
+
for (var a in t)
|
|
117
|
+
a !== "key" && (l[a] = t[a]);
|
|
118
|
+
} else l = t;
|
|
119
|
+
return t = l.ref, {
|
|
120
120
|
$$typeof: e,
|
|
121
|
-
type:
|
|
121
|
+
type: i,
|
|
122
122
|
key: o,
|
|
123
|
-
ref:
|
|
123
|
+
ref: t !== void 0 ? t : null,
|
|
124
124
|
props: l
|
|
125
125
|
};
|
|
126
126
|
}
|
|
@@ -128,242 +128,254 @@ function Ur() {
|
|
|
128
128
|
}
|
|
129
129
|
var $e = {};
|
|
130
130
|
var xn;
|
|
131
|
-
function
|
|
131
|
+
function Gr() {
|
|
132
132
|
return xn || (xn = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
133
|
-
function e(
|
|
134
|
-
if (
|
|
135
|
-
if (typeof
|
|
136
|
-
return
|
|
137
|
-
if (typeof
|
|
138
|
-
switch (
|
|
139
|
-
case b:
|
|
140
|
-
return "Fragment";
|
|
133
|
+
function e(s) {
|
|
134
|
+
if (s == null) return null;
|
|
135
|
+
if (typeof s == "function")
|
|
136
|
+
return s.$$typeof === ee ? null : s.displayName || s.name || null;
|
|
137
|
+
if (typeof s == "string") return s;
|
|
138
|
+
switch (s) {
|
|
141
139
|
case v:
|
|
140
|
+
return "Fragment";
|
|
141
|
+
case b:
|
|
142
142
|
return "Profiler";
|
|
143
143
|
case k:
|
|
144
144
|
return "StrictMode";
|
|
145
|
-
case
|
|
145
|
+
case N:
|
|
146
146
|
return "Suspense";
|
|
147
147
|
case I:
|
|
148
148
|
return "SuspenseList";
|
|
149
|
-
case
|
|
149
|
+
case R:
|
|
150
150
|
return "Activity";
|
|
151
151
|
}
|
|
152
|
-
if (typeof
|
|
153
|
-
switch (typeof
|
|
152
|
+
if (typeof s == "object")
|
|
153
|
+
switch (typeof s.tag == "number" && console.error(
|
|
154
154
|
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
|
155
|
-
),
|
|
156
|
-
case
|
|
155
|
+
), s.$$typeof) {
|
|
156
|
+
case y:
|
|
157
157
|
return "Portal";
|
|
158
|
-
case
|
|
159
|
-
return
|
|
160
|
-
case
|
|
161
|
-
return (
|
|
162
|
-
case
|
|
163
|
-
var A =
|
|
164
|
-
return
|
|
165
|
-
case
|
|
166
|
-
return A =
|
|
167
|
-
case
|
|
168
|
-
A =
|
|
158
|
+
case E:
|
|
159
|
+
return s.displayName || "Context";
|
|
160
|
+
case Y:
|
|
161
|
+
return (s._context.displayName || "Context") + ".Consumer";
|
|
162
|
+
case C:
|
|
163
|
+
var A = s.render;
|
|
164
|
+
return s = s.displayName, s || (s = A.displayName || A.name || "", s = s !== "" ? "ForwardRef(" + s + ")" : "ForwardRef"), s;
|
|
165
|
+
case B:
|
|
166
|
+
return A = s.displayName || null, A !== null ? A : e(s.type) || "Memo";
|
|
167
|
+
case j:
|
|
168
|
+
A = s._payload, s = s._init;
|
|
169
169
|
try {
|
|
170
|
-
return e(
|
|
170
|
+
return e(s(A));
|
|
171
171
|
} catch {
|
|
172
172
|
}
|
|
173
173
|
}
|
|
174
174
|
return null;
|
|
175
175
|
}
|
|
176
|
-
function n(
|
|
177
|
-
return "" +
|
|
176
|
+
function n(s) {
|
|
177
|
+
return "" + s;
|
|
178
178
|
}
|
|
179
|
-
function r(
|
|
179
|
+
function r(s) {
|
|
180
180
|
try {
|
|
181
|
-
n(
|
|
181
|
+
n(s);
|
|
182
182
|
var A = !1;
|
|
183
183
|
} catch {
|
|
184
184
|
A = !0;
|
|
185
185
|
}
|
|
186
186
|
if (A) {
|
|
187
187
|
A = console;
|
|
188
|
-
var
|
|
189
|
-
return
|
|
188
|
+
var O = A.error, F = typeof Symbol == "function" && Symbol.toStringTag && s[Symbol.toStringTag] || s.constructor.name || "Object";
|
|
189
|
+
return O.call(
|
|
190
190
|
A,
|
|
191
191
|
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
192
|
-
|
|
193
|
-
), n(
|
|
192
|
+
F
|
|
193
|
+
), n(s);
|
|
194
194
|
}
|
|
195
195
|
}
|
|
196
|
-
function
|
|
197
|
-
if (
|
|
198
|
-
if (typeof
|
|
196
|
+
function i(s) {
|
|
197
|
+
if (s === v) return "<>";
|
|
198
|
+
if (typeof s == "object" && s !== null && s.$$typeof === j)
|
|
199
199
|
return "<...>";
|
|
200
200
|
try {
|
|
201
|
-
var A = e(
|
|
201
|
+
var A = e(s);
|
|
202
202
|
return A ? "<" + A + ">" : "<...>";
|
|
203
203
|
} catch {
|
|
204
204
|
return "<...>";
|
|
205
205
|
}
|
|
206
206
|
}
|
|
207
|
-
function
|
|
208
|
-
var
|
|
209
|
-
return
|
|
207
|
+
function t() {
|
|
208
|
+
var s = L.A;
|
|
209
|
+
return s === null ? null : s.getOwner();
|
|
210
210
|
}
|
|
211
211
|
function l() {
|
|
212
212
|
return Error("react-stack-top-frame");
|
|
213
213
|
}
|
|
214
|
-
function o(
|
|
215
|
-
if (
|
|
216
|
-
var A = Object.getOwnPropertyDescriptor(
|
|
214
|
+
function o(s) {
|
|
215
|
+
if (D.call(s, "key")) {
|
|
216
|
+
var A = Object.getOwnPropertyDescriptor(s, "key").get;
|
|
217
217
|
if (A && A.isReactWarning) return !1;
|
|
218
218
|
}
|
|
219
|
-
return
|
|
219
|
+
return s.key !== void 0;
|
|
220
220
|
}
|
|
221
|
-
function a(
|
|
222
|
-
function
|
|
223
|
-
|
|
221
|
+
function a(s, A) {
|
|
222
|
+
function O() {
|
|
223
|
+
H || (H = !0, console.error(
|
|
224
224
|
"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
|
|
225
225
|
A
|
|
226
226
|
));
|
|
227
227
|
}
|
|
228
|
-
|
|
229
|
-
get:
|
|
228
|
+
O.isReactWarning = !0, Object.defineProperty(s, "key", {
|
|
229
|
+
get: O,
|
|
230
230
|
configurable: !0
|
|
231
231
|
});
|
|
232
232
|
}
|
|
233
233
|
function c() {
|
|
234
|
-
var
|
|
235
|
-
return
|
|
234
|
+
var s = e(this.type);
|
|
235
|
+
return T[s] || (T[s] = !0, console.error(
|
|
236
236
|
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
|
|
237
|
-
)),
|
|
237
|
+
)), s = this.props.ref, s !== void 0 ? s : null;
|
|
238
238
|
}
|
|
239
|
-
function s
|
|
240
|
-
var
|
|
241
|
-
return
|
|
239
|
+
function f(s, A, O, F, ae, se) {
|
|
240
|
+
var P = O.ref;
|
|
241
|
+
return s = {
|
|
242
242
|
$$typeof: m,
|
|
243
|
-
type:
|
|
243
|
+
type: s,
|
|
244
244
|
key: A,
|
|
245
|
-
props:
|
|
246
|
-
_owner:
|
|
247
|
-
}, (
|
|
245
|
+
props: O,
|
|
246
|
+
_owner: F
|
|
247
|
+
}, (P !== void 0 ? P : null) !== null ? Object.defineProperty(s, "ref", {
|
|
248
248
|
enumerable: !1,
|
|
249
249
|
get: c
|
|
250
|
-
}) : Object.defineProperty(
|
|
250
|
+
}) : Object.defineProperty(s, "ref", { enumerable: !1, value: null }), s._store = {}, Object.defineProperty(s._store, "validated", {
|
|
251
251
|
configurable: !1,
|
|
252
252
|
enumerable: !1,
|
|
253
253
|
writable: !0,
|
|
254
254
|
value: 0
|
|
255
|
-
}), Object.defineProperty(
|
|
255
|
+
}), Object.defineProperty(s, "_debugInfo", {
|
|
256
256
|
configurable: !1,
|
|
257
257
|
enumerable: !1,
|
|
258
258
|
writable: !0,
|
|
259
259
|
value: null
|
|
260
|
-
}), Object.defineProperty(
|
|
260
|
+
}), Object.defineProperty(s, "_debugStack", {
|
|
261
261
|
configurable: !1,
|
|
262
262
|
enumerable: !1,
|
|
263
263
|
writable: !0,
|
|
264
|
-
value:
|
|
265
|
-
}), Object.defineProperty(
|
|
264
|
+
value: ae
|
|
265
|
+
}), Object.defineProperty(s, "_debugTask", {
|
|
266
266
|
configurable: !1,
|
|
267
267
|
enumerable: !1,
|
|
268
268
|
writable: !0,
|
|
269
|
-
value:
|
|
270
|
-
}), Object.freeze && (Object.freeze(
|
|
271
|
-
}
|
|
272
|
-
function
|
|
273
|
-
var
|
|
274
|
-
if (
|
|
275
|
-
if (
|
|
276
|
-
if (
|
|
277
|
-
for (
|
|
278
|
-
d(
|
|
279
|
-
Object.freeze && Object.freeze(
|
|
269
|
+
value: se
|
|
270
|
+
}), Object.freeze && (Object.freeze(s.props), Object.freeze(s)), s;
|
|
271
|
+
}
|
|
272
|
+
function u(s, A, O, F, ae, se) {
|
|
273
|
+
var P = A.children;
|
|
274
|
+
if (P !== void 0)
|
|
275
|
+
if (F)
|
|
276
|
+
if (re(P)) {
|
|
277
|
+
for (F = 0; F < P.length; F++)
|
|
278
|
+
d(P[F]);
|
|
279
|
+
Object.freeze && Object.freeze(P);
|
|
280
280
|
} else
|
|
281
281
|
console.error(
|
|
282
282
|
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
|
283
283
|
);
|
|
284
|
-
else d(
|
|
285
|
-
if (
|
|
286
|
-
|
|
287
|
-
var te = Object.keys(A).filter(function(
|
|
288
|
-
return
|
|
284
|
+
else d(P);
|
|
285
|
+
if (D.call(A, "key")) {
|
|
286
|
+
P = e(s);
|
|
287
|
+
var te = Object.keys(A).filter(function(ye) {
|
|
288
|
+
return ye !== "key";
|
|
289
289
|
});
|
|
290
|
-
|
|
290
|
+
F = 0 < te.length ? "{key: someKey, " + te.join(": ..., ") + ": ...}" : "{key: someKey}", M[P + F] || (te = 0 < te.length ? "{" + te.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
291
291
|
`A props object containing a "key" prop is being spread into JSX:
|
|
292
292
|
let props = %s;
|
|
293
293
|
<%s {...props} />
|
|
294
294
|
React keys must be passed directly to JSX without using spread:
|
|
295
295
|
let props = %s;
|
|
296
296
|
<%s key={someKey} {...props} />`,
|
|
297
|
-
|
|
298
|
-
|
|
297
|
+
F,
|
|
298
|
+
P,
|
|
299
299
|
te,
|
|
300
|
-
|
|
301
|
-
),
|
|
300
|
+
P
|
|
301
|
+
), M[P + F] = !0);
|
|
302
302
|
}
|
|
303
|
-
if (
|
|
304
|
-
|
|
305
|
-
for (var
|
|
306
|
-
|
|
307
|
-
} else
|
|
308
|
-
return
|
|
309
|
-
|
|
310
|
-
typeof
|
|
311
|
-
),
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
303
|
+
if (P = null, O !== void 0 && (r(O), P = "" + O), o(A) && (r(A.key), P = "" + A.key), "key" in A) {
|
|
304
|
+
O = {};
|
|
305
|
+
for (var fe in A)
|
|
306
|
+
fe !== "key" && (O[fe] = A[fe]);
|
|
307
|
+
} else O = A;
|
|
308
|
+
return P && a(
|
|
309
|
+
O,
|
|
310
|
+
typeof s == "function" ? s.displayName || s.name || "Unknown" : s
|
|
311
|
+
), f(
|
|
312
|
+
s,
|
|
313
|
+
P,
|
|
314
|
+
O,
|
|
315
|
+
t(),
|
|
316
|
+
ae,
|
|
317
|
+
se
|
|
318
318
|
);
|
|
319
319
|
}
|
|
320
|
-
function d(
|
|
321
|
-
|
|
320
|
+
function d(s) {
|
|
321
|
+
p(s) ? s._store && (s._store.validated = 1) : typeof s == "object" && s !== null && s.$$typeof === j && (s._payload.status === "fulfilled" ? p(s._payload.value) && s._payload.value._store && (s._payload.value._store.validated = 1) : s._store && (s._store.validated = 1));
|
|
322
322
|
}
|
|
323
|
-
function
|
|
324
|
-
return typeof
|
|
323
|
+
function p(s) {
|
|
324
|
+
return typeof s == "object" && s !== null && s.$$typeof === m;
|
|
325
325
|
}
|
|
326
|
-
var
|
|
326
|
+
var x = Yr, m = /* @__PURE__ */ Symbol.for("react.transitional.element"), y = /* @__PURE__ */ Symbol.for("react.portal"), v = /* @__PURE__ */ Symbol.for("react.fragment"), k = /* @__PURE__ */ Symbol.for("react.strict_mode"), b = /* @__PURE__ */ Symbol.for("react.profiler"), Y = /* @__PURE__ */ Symbol.for("react.consumer"), E = /* @__PURE__ */ Symbol.for("react.context"), C = /* @__PURE__ */ Symbol.for("react.forward_ref"), N = /* @__PURE__ */ Symbol.for("react.suspense"), I = /* @__PURE__ */ Symbol.for("react.suspense_list"), B = /* @__PURE__ */ Symbol.for("react.memo"), j = /* @__PURE__ */ Symbol.for("react.lazy"), R = /* @__PURE__ */ Symbol.for("react.activity"), ee = /* @__PURE__ */ Symbol.for("react.client.reference"), L = x.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, D = Object.prototype.hasOwnProperty, re = Array.isArray, K = console.createTask ? console.createTask : function() {
|
|
327
327
|
return null;
|
|
328
328
|
};
|
|
329
|
-
|
|
330
|
-
react_stack_bottom_frame: function(
|
|
331
|
-
return
|
|
329
|
+
x = {
|
|
330
|
+
react_stack_bottom_frame: function(s) {
|
|
331
|
+
return s();
|
|
332
332
|
}
|
|
333
333
|
};
|
|
334
|
-
var
|
|
335
|
-
|
|
334
|
+
var H, T = {}, U = x.react_stack_bottom_frame.bind(
|
|
335
|
+
x,
|
|
336
336
|
l
|
|
337
|
-
)(),
|
|
338
|
-
$e.Fragment =
|
|
339
|
-
var
|
|
340
|
-
return
|
|
341
|
-
|
|
337
|
+
)(), oe = K(i(l)), M = {};
|
|
338
|
+
$e.Fragment = v, $e.jsx = function(s, A, O) {
|
|
339
|
+
var F = 1e4 > L.recentlyCreatedOwnerStacks++;
|
|
340
|
+
return u(
|
|
341
|
+
s,
|
|
342
342
|
A,
|
|
343
|
-
|
|
343
|
+
O,
|
|
344
344
|
!1,
|
|
345
|
-
|
|
346
|
-
|
|
345
|
+
F ? Error("react-stack-top-frame") : U,
|
|
346
|
+
F ? K(i(s)) : oe
|
|
347
347
|
);
|
|
348
|
-
}, $e.jsxs = function(
|
|
349
|
-
var
|
|
350
|
-
return
|
|
351
|
-
|
|
348
|
+
}, $e.jsxs = function(s, A, O) {
|
|
349
|
+
var F = 1e4 > L.recentlyCreatedOwnerStacks++;
|
|
350
|
+
return u(
|
|
351
|
+
s,
|
|
352
352
|
A,
|
|
353
|
-
|
|
353
|
+
O,
|
|
354
354
|
!0,
|
|
355
|
-
|
|
356
|
-
|
|
355
|
+
F ? Error("react-stack-top-frame") : U,
|
|
356
|
+
F ? K(i(s)) : oe
|
|
357
357
|
);
|
|
358
358
|
};
|
|
359
359
|
})()), $e;
|
|
360
360
|
}
|
|
361
361
|
var mn;
|
|
362
|
-
function
|
|
363
|
-
return mn || (mn = 1, process.env.NODE_ENV === "production" ?
|
|
364
|
-
}
|
|
365
|
-
var h =
|
|
366
|
-
const
|
|
362
|
+
function Kr() {
|
|
363
|
+
return mn || (mn = 1, process.env.NODE_ENV === "production" ? Fe.exports = Xr() : Fe.exports = Gr()), Fe.exports;
|
|
364
|
+
}
|
|
365
|
+
var h = Kr();
|
|
366
|
+
const Dn = {
|
|
367
|
+
rose: { top: "#c58a70", side: "#a86c55", front: "#b57860" },
|
|
368
|
+
slate: { top: "#9aaab6", side: "#718693", front: "#8196a2" },
|
|
369
|
+
cyan: { top: "#679c99", side: "#467f7d", front: "#568e8a" },
|
|
370
|
+
emerald: { top: "#a2b08b", side: "#7d9168", front: "#8e9f78" },
|
|
371
|
+
blue: { top: "#829eae", side: "#5b798b", front: "#6b8999" },
|
|
372
|
+
violet: { top: "#a698ac", side: "#807187", front: "#918297" },
|
|
373
|
+
amber: { top: "#c6ac71", side: "#a08950", front: "#b09a61" }
|
|
374
|
+
}, Yn = Array.from({ length: 180 }, (e, n) => ({
|
|
375
|
+
x: (n * 73.37 + 11.7) % 64,
|
|
376
|
+
y: (n * n * 13.19 + 5.3) % 64,
|
|
377
|
+
r: n % 3 === 0 ? 0.48 : 0.28
|
|
378
|
+
})), Vr = ["solid", "blueprint", "cyanotype"], rn = '"JetBrains Mono", "IBM Plex Mono", "SF Mono", ui-monospace, Menlo, Consolas, monospace', Zr = 0.78, g = (e) => Math.round(e * Zr * 10) / 10, Bn = {
|
|
367
379
|
id: "solid",
|
|
368
380
|
name: "Solid",
|
|
369
381
|
description: "Shaded isometric boxes",
|
|
@@ -381,7 +393,7 @@ const Xr = ["solid", "blueprint", "cyanotype"], rn = '"JetBrains Mono", "IBM Ple
|
|
|
381
393
|
hatchOpacity: { top: 0, right: 0, left: 0 },
|
|
382
394
|
font: rn,
|
|
383
395
|
strokeWidth: 0.5
|
|
384
|
-
},
|
|
396
|
+
}, Jr = {
|
|
385
397
|
id: "blueprint",
|
|
386
398
|
name: "Blueprint",
|
|
387
399
|
description: "Sepia engineering plate on parchment",
|
|
@@ -399,7 +411,7 @@ const Xr = ["solid", "blueprint", "cyanotype"], rn = '"JetBrains Mono", "IBM Ple
|
|
|
399
411
|
hatchOpacity: { top: 0.48, right: 0.68, left: 0.92 },
|
|
400
412
|
font: rn,
|
|
401
413
|
strokeWidth: 1
|
|
402
|
-
},
|
|
414
|
+
}, Qr = {
|
|
403
415
|
id: "cyanotype",
|
|
404
416
|
name: "Cyanotype",
|
|
405
417
|
description: "White linework on classic blueprint blue",
|
|
@@ -417,13 +429,13 @@ const Xr = ["solid", "blueprint", "cyanotype"], rn = '"JetBrains Mono", "IBM Ple
|
|
|
417
429
|
hatchOpacity: { top: 0.46, right: 0.64, left: 0.88 },
|
|
418
430
|
font: rn,
|
|
419
431
|
strokeWidth: 1
|
|
420
|
-
},
|
|
421
|
-
function
|
|
422
|
-
return
|
|
432
|
+
}, Hn = { solid: Bn, blueprint: Jr, cyanotype: Qr };
|
|
433
|
+
function et(e) {
|
|
434
|
+
return Hn[e] || Bn;
|
|
423
435
|
}
|
|
424
|
-
const
|
|
425
|
-
|
|
426
|
-
const
|
|
436
|
+
const nt = Vr.filter((e) => Hn[e].technical);
|
|
437
|
+
nt[0];
|
|
438
|
+
const rt = {
|
|
427
439
|
violet: "cross",
|
|
428
440
|
blue: "lines",
|
|
429
441
|
sky: "dashes",
|
|
@@ -435,10 +447,10 @@ const Qr = {
|
|
|
435
447
|
zinc: "plain",
|
|
436
448
|
slate: "plain"
|
|
437
449
|
};
|
|
438
|
-
function
|
|
439
|
-
return
|
|
450
|
+
function Wn(e) {
|
|
451
|
+
return rt[e || "zinc"] || "lines";
|
|
440
452
|
}
|
|
441
|
-
const
|
|
453
|
+
const tt = {
|
|
442
454
|
plain: "PLAIN",
|
|
443
455
|
lines: "HATCH-A",
|
|
444
456
|
cross: "HATCH-X",
|
|
@@ -446,64 +458,64 @@ const ei = {
|
|
|
446
458
|
dots: "STIPPLE",
|
|
447
459
|
dashes: "BROKEN"
|
|
448
460
|
};
|
|
449
|
-
function yn(e, n, r,
|
|
450
|
-
const l = (k,
|
|
451
|
-
const
|
|
452
|
-
return { x:
|
|
453
|
-
}, o = l(0, 0, 0), a = l(e, 0, 0), c = l(e, n, 0),
|
|
461
|
+
function yn(e, n, r, i = 0, t = 0) {
|
|
462
|
+
const l = (k, b, Y) => {
|
|
463
|
+
const E = w(k, b, Y);
|
|
464
|
+
return { x: E.screenX + i, y: E.screenY + t };
|
|
465
|
+
}, o = l(0, 0, 0), a = l(e, 0, 0), c = l(e, n, 0), f = l(0, n, 0), u = l(0, 0, r), d = l(e, 0, r), p = l(e, n, r), x = l(0, n, r), m = (k) => `M ${k.map((b) => `${b.x},${b.y}`).join(" L ")} Z`, y = (k, b) => `M ${k.x},${k.y} L ${b.x},${b.y}`, v = [o, a, c, f, u, d, p, x];
|
|
454
466
|
return {
|
|
455
|
-
top: m([
|
|
456
|
-
right: m([o, a, d,
|
|
457
|
-
left: m([o,
|
|
467
|
+
top: m([u, d, p, x]),
|
|
468
|
+
right: m([o, a, d, u]),
|
|
469
|
+
left: m([o, f, x, u]),
|
|
458
470
|
visible: [
|
|
459
471
|
// silhouette
|
|
460
|
-
m([o, a, d,
|
|
472
|
+
m([o, a, d, p, x, f]),
|
|
461
473
|
// interior creases radiating from the near top corner
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
474
|
+
y(u, d),
|
|
475
|
+
y(u, x),
|
|
476
|
+
y(u, o)
|
|
465
477
|
].join(" "),
|
|
466
|
-
hidden: [
|
|
467
|
-
topCenter: { x: (
|
|
468
|
-
topApex: { x:
|
|
469
|
-
minX: Math.min(...
|
|
470
|
-
minY: Math.min(...
|
|
471
|
-
maxX: Math.max(...
|
|
472
|
-
maxY: Math.max(...
|
|
478
|
+
hidden: [y(c, a), y(c, f), y(c, p)].join(" "),
|
|
479
|
+
topCenter: { x: (u.x + p.x) / 2, y: (u.y + p.y) / 2 },
|
|
480
|
+
topApex: { x: p.x, y: p.y },
|
|
481
|
+
minX: Math.min(...v.map((k) => k.x)),
|
|
482
|
+
minY: Math.min(...v.map((k) => k.y)),
|
|
483
|
+
maxX: Math.max(...v.map((k) => k.x)),
|
|
484
|
+
maxY: Math.max(...v.map((k) => k.y))
|
|
473
485
|
};
|
|
474
486
|
}
|
|
475
487
|
function De(e) {
|
|
476
488
|
return String(e).padStart(2, "0");
|
|
477
489
|
}
|
|
478
|
-
const
|
|
490
|
+
const it = {
|
|
479
491
|
top: ["n30", "p30"],
|
|
480
492
|
right: ["n30", "v"],
|
|
481
493
|
left: ["p30", "v"]
|
|
482
|
-
},
|
|
494
|
+
}, ot = { n30: -30, p30: 30, v: 90 }, lt = [
|
|
483
495
|
{ key: "line", spacing: 6.2, strokeWidth: 0.55 },
|
|
484
496
|
{ key: "dense", spacing: 3.1, strokeWidth: 0.45 },
|
|
485
497
|
{ key: "dash", spacing: 6.2, strokeWidth: 0.55, dash: "2.6 2.6" }
|
|
486
498
|
], Se = 22;
|
|
487
|
-
function
|
|
488
|
-
const [
|
|
499
|
+
function Un(e, n, r) {
|
|
500
|
+
const [i, t] = it[r];
|
|
489
501
|
switch (n) {
|
|
490
502
|
case "plain":
|
|
491
503
|
return [];
|
|
492
504
|
case "lines":
|
|
493
|
-
return [`${e}-line-${
|
|
505
|
+
return [`${e}-line-${i}`];
|
|
494
506
|
case "cross":
|
|
495
|
-
return [`${e}-line-${
|
|
507
|
+
return [`${e}-line-${i}`, `${e}-line-${t}`];
|
|
496
508
|
case "dense":
|
|
497
|
-
return [`${e}-dense-${
|
|
509
|
+
return [`${e}-dense-${i}`];
|
|
498
510
|
case "dashes":
|
|
499
|
-
return [`${e}-dash-${
|
|
511
|
+
return [`${e}-dash-${i}`];
|
|
500
512
|
case "dots":
|
|
501
513
|
return [`${e}-dot`];
|
|
502
514
|
default:
|
|
503
|
-
return [`${e}-line-${
|
|
515
|
+
return [`${e}-line-${i}`];
|
|
504
516
|
}
|
|
505
517
|
}
|
|
506
|
-
const
|
|
518
|
+
const zn = (e) => `${e}-paper`, qn = (e) => `${e}-grain`, at = (e, n = "line") => `${e}-arrow-${n}`, ct = (e) => [`${e}-grid-n30`, `${e}-grid-p30`];
|
|
507
519
|
function tn({
|
|
508
520
|
uid: e,
|
|
509
521
|
style: n,
|
|
@@ -512,43 +524,43 @@ function tn({
|
|
|
512
524
|
gridTransform: r = ""
|
|
513
525
|
}) {
|
|
514
526
|
return /* @__PURE__ */ h.jsxs("defs", { children: [
|
|
515
|
-
|
|
516
|
-
(
|
|
527
|
+
lt.flatMap(
|
|
528
|
+
(i) => Object.entries(ot).map(([t, l]) => /* @__PURE__ */ h.jsx(
|
|
517
529
|
"pattern",
|
|
518
530
|
{
|
|
519
|
-
id: `${e}-${
|
|
520
|
-
width:
|
|
521
|
-
height:
|
|
531
|
+
id: `${e}-${i.key}-${t}`,
|
|
532
|
+
width: i.spacing,
|
|
533
|
+
height: i.spacing,
|
|
522
534
|
patternUnits: "userSpaceOnUse",
|
|
523
535
|
patternTransform: `rotate(${l})`,
|
|
524
536
|
children: /* @__PURE__ */ h.jsx(
|
|
525
537
|
"line",
|
|
526
538
|
{
|
|
527
539
|
x1: -1,
|
|
528
|
-
y1:
|
|
529
|
-
x2:
|
|
530
|
-
y2:
|
|
540
|
+
y1: i.spacing / 2,
|
|
541
|
+
x2: i.spacing + 1,
|
|
542
|
+
y2: i.spacing / 2,
|
|
531
543
|
stroke: n.ink.hatch,
|
|
532
|
-
strokeWidth:
|
|
533
|
-
strokeDasharray:
|
|
544
|
+
strokeWidth: i.strokeWidth,
|
|
545
|
+
strokeDasharray: i.dash
|
|
534
546
|
}
|
|
535
547
|
)
|
|
536
548
|
},
|
|
537
|
-
`${
|
|
549
|
+
`${i.key}-${t}`
|
|
538
550
|
))
|
|
539
551
|
),
|
|
540
552
|
/* @__PURE__ */ h.jsx("pattern", { id: `${e}-dot`, width: 4.5, height: 4.5, patternUnits: "userSpaceOnUse", children: /* @__PURE__ */ h.jsx("circle", { cx: 2.25, cy: 2.25, r: 0.55, fill: n.ink.hatch }) }),
|
|
541
553
|
[
|
|
542
554
|
{ id: `${e}-grid-n30`, angle: -30 },
|
|
543
555
|
{ id: `${e}-grid-p30`, angle: 30 }
|
|
544
|
-
].map(({ id:
|
|
556
|
+
].map(({ id: i, angle: t }) => /* @__PURE__ */ h.jsx(
|
|
545
557
|
"pattern",
|
|
546
558
|
{
|
|
547
|
-
id:
|
|
559
|
+
id: i,
|
|
548
560
|
width: Se,
|
|
549
561
|
height: Se,
|
|
550
562
|
patternUnits: "userSpaceOnUse",
|
|
551
|
-
patternTransform: `${r} rotate(${
|
|
563
|
+
patternTransform: `${r} rotate(${t})`.trim(),
|
|
552
564
|
children: /* @__PURE__ */ h.jsx(
|
|
553
565
|
"line",
|
|
554
566
|
{
|
|
@@ -561,20 +573,20 @@ function tn({
|
|
|
561
573
|
}
|
|
562
574
|
)
|
|
563
575
|
},
|
|
564
|
-
|
|
576
|
+
i
|
|
565
577
|
)),
|
|
566
|
-
/* @__PURE__ */ h.jsxs("linearGradient", { id:
|
|
578
|
+
/* @__PURE__ */ h.jsxs("linearGradient", { id: zn(e), x1: "0", y1: "0", x2: "0.35", y2: "1", children: [
|
|
567
579
|
/* @__PURE__ */ h.jsx("stop", { offset: "0%", stopColor: n.paper.from }),
|
|
568
580
|
/* @__PURE__ */ h.jsx("stop", { offset: "100%", stopColor: n.paper.to })
|
|
569
581
|
] }),
|
|
570
|
-
/* @__PURE__ */ h.jsxs("filter", { id:
|
|
582
|
+
/* @__PURE__ */ h.jsxs("filter", { id: qn(e), x: "0%", y: "0%", width: "100%", height: "100%", children: [
|
|
571
583
|
/* @__PURE__ */ h.jsx("feTurbulence", { type: "fractalNoise", baseFrequency: "0.85", numOctaves: 3, stitchTiles: "stitch" }),
|
|
572
584
|
/* @__PURE__ */ h.jsx("feColorMatrix", { type: "saturate", values: "0" })
|
|
573
585
|
] }),
|
|
574
|
-
["line", "accent"].map((
|
|
586
|
+
["line", "accent"].map((i) => /* @__PURE__ */ h.jsx(
|
|
575
587
|
"marker",
|
|
576
588
|
{
|
|
577
|
-
id:
|
|
589
|
+
id: at(e, i),
|
|
578
590
|
markerWidth: "10",
|
|
579
591
|
markerHeight: "10",
|
|
580
592
|
refX: "8",
|
|
@@ -586,50 +598,50 @@ function tn({
|
|
|
586
598
|
{
|
|
587
599
|
d: "M 1 1 L 8 4 L 1 7",
|
|
588
600
|
fill: "none",
|
|
589
|
-
stroke:
|
|
601
|
+
stroke: i === "accent" ? n.ink.accent : n.ink.line,
|
|
590
602
|
strokeWidth: 1,
|
|
591
603
|
strokeLinecap: "round",
|
|
592
604
|
strokeLinejoin: "round"
|
|
593
605
|
}
|
|
594
606
|
)
|
|
595
607
|
},
|
|
596
|
-
|
|
608
|
+
i
|
|
597
609
|
))
|
|
598
610
|
] });
|
|
599
611
|
}
|
|
600
|
-
function
|
|
612
|
+
function st({
|
|
601
613
|
style: e,
|
|
602
614
|
rect: n,
|
|
603
615
|
pan: r,
|
|
604
|
-
zoom:
|
|
605
|
-
className:
|
|
616
|
+
zoom: i = 1,
|
|
617
|
+
className: t = "absolute inset-0 w-full h-full pointer-events-none"
|
|
606
618
|
}) {
|
|
607
|
-
const l = nn().replace(/:/g, ""), o = r ? `translate(${r.x} ${r.y}) scale(${
|
|
608
|
-
return /* @__PURE__ */ h.jsxs("svg", { className:
|
|
619
|
+
const l = nn().replace(/:/g, ""), o = r ? `translate(${r.x} ${r.y}) scale(${i})` : i !== 1 ? `scale(${i})` : "", a = n ? { x: n.x, y: n.y, width: n.width, height: n.height } : { x: 0, y: 0, width: "100%", height: "100%" };
|
|
620
|
+
return /* @__PURE__ */ h.jsxs("svg", { className: t, "aria-hidden": "true", children: [
|
|
609
621
|
/* @__PURE__ */ h.jsx(tn, { uid: l, style: e, gridTransform: o }),
|
|
610
|
-
/* @__PURE__ */ h.jsx("rect", { ...a, fill: `url(#${
|
|
611
|
-
|
|
612
|
-
e.paper.grain > 0 && /* @__PURE__ */ h.jsx("rect", { ...a, filter: `url(#${
|
|
622
|
+
/* @__PURE__ */ h.jsx("rect", { ...a, fill: `url(#${zn(l)})` }),
|
|
623
|
+
ct(l).map((c) => /* @__PURE__ */ h.jsx("rect", { ...a, fill: `url(#${c})`, opacity: 0.6 }, c)),
|
|
624
|
+
e.paper.grain > 0 && /* @__PURE__ */ h.jsx("rect", { ...a, filter: `url(#${qn(l)})`, opacity: e.paper.grain })
|
|
613
625
|
] });
|
|
614
626
|
}
|
|
615
|
-
const Ie =
|
|
616
|
-
function
|
|
627
|
+
const Ie = g(10), ft = 9, gn = (e, n) => e.length > n ? `${e.slice(0, n - 1)}…` : e;
|
|
628
|
+
function ut({
|
|
617
629
|
style: e,
|
|
618
630
|
plate: n,
|
|
619
631
|
rows: r,
|
|
620
|
-
title:
|
|
621
|
-
tally:
|
|
632
|
+
title: i,
|
|
633
|
+
tally: t,
|
|
622
634
|
className: l = "absolute inset-0 w-full h-full pointer-events-none"
|
|
623
635
|
}) {
|
|
624
|
-
const o = nn().replace(/:/g, ""), a = r.slice(0,
|
|
636
|
+
const o = nn().replace(/:/g, ""), a = r.slice(0, ft), c = r.length - a.length, f = {
|
|
625
637
|
x: n.minX + Ie,
|
|
626
638
|
y: n.minY + Ie,
|
|
627
639
|
width: n.maxX - n.minX - Ie * 2,
|
|
628
640
|
height: n.maxY - n.minY - Ie * 2
|
|
629
|
-
},
|
|
641
|
+
}, u = {
|
|
630
642
|
fontFamily: e.font,
|
|
631
643
|
letterSpacing: "0.08em"
|
|
632
|
-
}, d =
|
|
644
|
+
}, d = g(236), p = g(13), x = g(16), m = x + Math.max(a.length, 1) * p + (c > 0 ? p : 0), y = f.x + g(14), v = f.y + g(14), k = g(264), b = g(74), Y = g(126), E = f.x + f.width - k - g(14), C = f.y + f.height - b - g(14);
|
|
633
645
|
return /* @__PURE__ */ h.jsxs("svg", { className: l, style: { overflow: "visible" }, "aria-hidden": "true", children: [
|
|
634
646
|
/* @__PURE__ */ h.jsx(tn, { uid: o, style: e }),
|
|
635
647
|
/* @__PURE__ */ h.jsx(
|
|
@@ -647,10 +659,10 @@ function ci({
|
|
|
647
659
|
/* @__PURE__ */ h.jsx(
|
|
648
660
|
"rect",
|
|
649
661
|
{
|
|
650
|
-
x:
|
|
651
|
-
y:
|
|
652
|
-
width:
|
|
653
|
-
height:
|
|
662
|
+
x: f.x,
|
|
663
|
+
y: f.y,
|
|
664
|
+
width: f.width,
|
|
665
|
+
height: f.height,
|
|
654
666
|
fill: "none",
|
|
655
667
|
stroke: e.paper.edge,
|
|
656
668
|
strokeWidth: 0.6,
|
|
@@ -658,26 +670,26 @@ function ci({
|
|
|
658
670
|
}
|
|
659
671
|
),
|
|
660
672
|
[
|
|
661
|
-
[
|
|
662
|
-
[
|
|
663
|
-
[
|
|
664
|
-
[
|
|
665
|
-
].map(([
|
|
673
|
+
[f.x, f.y, 1, 1],
|
|
674
|
+
[f.x + f.width, f.y, -1, 1],
|
|
675
|
+
[f.x, f.y + f.height, 1, -1],
|
|
676
|
+
[f.x + f.width, f.y + f.height, -1, -1]
|
|
677
|
+
].map(([N, I, B, j], R) => /* @__PURE__ */ h.jsx(
|
|
666
678
|
"path",
|
|
667
679
|
{
|
|
668
|
-
d: `M ${
|
|
680
|
+
d: `M ${N + B * g(16)} ${I} L ${N} ${I} L ${N} ${I + j * g(16)}`,
|
|
669
681
|
fill: "none",
|
|
670
682
|
stroke: e.ink.line,
|
|
671
683
|
strokeWidth: 1.2
|
|
672
684
|
},
|
|
673
|
-
|
|
685
|
+
R
|
|
674
686
|
)),
|
|
675
687
|
a.length > 0 && /* @__PURE__ */ h.jsxs("g", { children: [
|
|
676
688
|
/* @__PURE__ */ h.jsx(
|
|
677
689
|
"rect",
|
|
678
690
|
{
|
|
679
|
-
x:
|
|
680
|
-
y:
|
|
691
|
+
x: y,
|
|
692
|
+
y: v,
|
|
681
693
|
width: d,
|
|
682
694
|
height: m,
|
|
683
695
|
fill: e.paper.from,
|
|
@@ -689,81 +701,81 @@ function ci({
|
|
|
689
701
|
/* @__PURE__ */ h.jsx(
|
|
690
702
|
"line",
|
|
691
703
|
{
|
|
692
|
-
x1:
|
|
693
|
-
y1:
|
|
694
|
-
x2:
|
|
695
|
-
y2:
|
|
704
|
+
x1: y,
|
|
705
|
+
y1: v + x,
|
|
706
|
+
x2: y + d,
|
|
707
|
+
y2: v + x,
|
|
696
708
|
stroke: e.ink.line,
|
|
697
709
|
strokeWidth: 0.8
|
|
698
710
|
}
|
|
699
711
|
),
|
|
700
|
-
/* @__PURE__ */ h.jsx("text", { x:
|
|
712
|
+
/* @__PURE__ */ h.jsx("text", { x: y + g(8), y: v + g(11), fill: e.ink.text, fontSize: g(8), fontWeight: 600, style: u, children: "COMPONENT INDEX" }),
|
|
701
713
|
/* @__PURE__ */ h.jsxs(
|
|
702
714
|
"text",
|
|
703
715
|
{
|
|
704
|
-
x:
|
|
705
|
-
y:
|
|
716
|
+
x: y + d - g(8),
|
|
717
|
+
y: v + g(11),
|
|
706
718
|
textAnchor: "end",
|
|
707
719
|
fill: e.ink.muted,
|
|
708
|
-
fontSize:
|
|
709
|
-
style:
|
|
720
|
+
fontSize: g(8),
|
|
721
|
+
style: u,
|
|
710
722
|
children: [
|
|
711
723
|
De(r.length),
|
|
712
724
|
" ITEMS"
|
|
713
725
|
]
|
|
714
726
|
}
|
|
715
727
|
),
|
|
716
|
-
a.map((
|
|
717
|
-
const
|
|
728
|
+
a.map((N, I) => {
|
|
729
|
+
const B = v + x + I * p, j = Wn(N.color), R = Un(o, j, "top");
|
|
718
730
|
return /* @__PURE__ */ h.jsxs("g", { children: [
|
|
719
|
-
/* @__PURE__ */ h.jsx("text", { x:
|
|
731
|
+
/* @__PURE__ */ h.jsx("text", { x: y + g(8), y: B + g(9.5), fill: e.ink.muted, fontSize: g(7.5), style: u, children: De(N.n) }),
|
|
720
732
|
/* @__PURE__ */ h.jsx(
|
|
721
733
|
"rect",
|
|
722
734
|
{
|
|
723
|
-
x:
|
|
724
|
-
y:
|
|
725
|
-
width:
|
|
726
|
-
height:
|
|
735
|
+
x: y + g(28),
|
|
736
|
+
y: B + g(3),
|
|
737
|
+
width: g(14),
|
|
738
|
+
height: g(7),
|
|
727
739
|
fill: e.face.right,
|
|
728
740
|
stroke: e.ink.line,
|
|
729
741
|
strokeWidth: 0.4
|
|
730
742
|
}
|
|
731
743
|
),
|
|
732
|
-
|
|
744
|
+
R.map((ee) => /* @__PURE__ */ h.jsx(
|
|
733
745
|
"rect",
|
|
734
746
|
{
|
|
735
|
-
x:
|
|
736
|
-
y:
|
|
737
|
-
width:
|
|
738
|
-
height:
|
|
739
|
-
fill: `url(#${
|
|
747
|
+
x: y + g(28),
|
|
748
|
+
y: B + g(3),
|
|
749
|
+
width: g(14),
|
|
750
|
+
height: g(7),
|
|
751
|
+
fill: `url(#${ee})`,
|
|
740
752
|
opacity: 0.85
|
|
741
753
|
},
|
|
742
|
-
|
|
754
|
+
ee
|
|
743
755
|
)),
|
|
744
|
-
/* @__PURE__ */ h.jsx("text", { x:
|
|
756
|
+
/* @__PURE__ */ h.jsx("text", { x: y + g(50), y: B + g(9.5), fill: e.ink.text, fontSize: g(7.5), style: u, children: gn((N.name || "").toUpperCase(), 18) }),
|
|
745
757
|
/* @__PURE__ */ h.jsx(
|
|
746
758
|
"text",
|
|
747
759
|
{
|
|
748
|
-
x:
|
|
749
|
-
y:
|
|
760
|
+
x: y + d - g(8),
|
|
761
|
+
y: B + g(9.5),
|
|
750
762
|
textAnchor: "end",
|
|
751
763
|
fill: e.ink.muted,
|
|
752
|
-
fontSize:
|
|
753
|
-
style:
|
|
754
|
-
children:
|
|
764
|
+
fontSize: g(7),
|
|
765
|
+
style: u,
|
|
766
|
+
children: tt[j]
|
|
755
767
|
}
|
|
756
768
|
)
|
|
757
|
-
] },
|
|
769
|
+
] }, N.n);
|
|
758
770
|
}),
|
|
759
771
|
c > 0 && /* @__PURE__ */ h.jsx(
|
|
760
772
|
"text",
|
|
761
773
|
{
|
|
762
|
-
x:
|
|
763
|
-
y:
|
|
774
|
+
x: y + g(8),
|
|
775
|
+
y: v + x + a.length * p + g(9.5),
|
|
764
776
|
fill: e.ink.muted,
|
|
765
|
-
fontSize:
|
|
766
|
-
style:
|
|
777
|
+
fontSize: g(7.5),
|
|
778
|
+
style: u,
|
|
767
779
|
children: `+ ${c} NOT LISTED`
|
|
768
780
|
}
|
|
769
781
|
)
|
|
@@ -772,44 +784,44 @@ function ci({
|
|
|
772
784
|
/* @__PURE__ */ h.jsx(
|
|
773
785
|
"rect",
|
|
774
786
|
{
|
|
775
|
-
x:
|
|
776
|
-
y:
|
|
787
|
+
x: E,
|
|
788
|
+
y: C,
|
|
777
789
|
width: k,
|
|
778
|
-
height:
|
|
790
|
+
height: b,
|
|
779
791
|
fill: e.paper.from,
|
|
780
792
|
fillOpacity: 0.55,
|
|
781
793
|
stroke: e.ink.line,
|
|
782
794
|
strokeWidth: 0.8
|
|
783
795
|
}
|
|
784
796
|
),
|
|
785
|
-
/* @__PURE__ */ h.jsx("line", { x1:
|
|
786
|
-
/* @__PURE__ */ h.jsx("line", { x1:
|
|
787
|
-
/* @__PURE__ */ h.jsx("line", { x1:
|
|
788
|
-
/* @__PURE__ */ h.jsx("text", { x:
|
|
789
|
-
/* @__PURE__ */ h.jsx("text", { x:
|
|
790
|
-
/* @__PURE__ */ h.jsx("text", { x:
|
|
791
|
-
/* @__PURE__ */ h.jsx("text", { x:
|
|
792
|
-
/* @__PURE__ */ h.jsx("text", { x:
|
|
793
|
-
/* @__PURE__ */ h.jsx("text", { x:
|
|
794
|
-
/* @__PURE__ */ h.jsx("text", { x:
|
|
795
|
-
/* @__PURE__ */ h.jsx("text", { x:
|
|
796
|
-
/* @__PURE__ */ h.jsx("text", { x:
|
|
797
|
-
/* @__PURE__ */ h.jsx("text", { x:
|
|
797
|
+
/* @__PURE__ */ h.jsx("line", { x1: E, y1: C + g(30), x2: E + k, y2: C + g(30), stroke: e.ink.line, strokeWidth: 0.8 }),
|
|
798
|
+
/* @__PURE__ */ h.jsx("line", { x1: E, y1: C + g(52), x2: E + k, y2: C + g(52), stroke: e.ink.line, strokeWidth: 0.5 }),
|
|
799
|
+
/* @__PURE__ */ h.jsx("line", { x1: E + Y, y1: C + g(30), x2: E + Y, y2: C + b, stroke: e.ink.line, strokeWidth: 0.5 }),
|
|
800
|
+
/* @__PURE__ */ h.jsx("text", { x: E + g(9), y: C + g(12), fill: e.ink.muted, fontSize: g(6.5), style: u, children: "DRAWING TITLE" }),
|
|
801
|
+
/* @__PURE__ */ h.jsx("text", { x: E + g(9), y: C + g(24), fill: e.ink.text, fontSize: g(10), fontWeight: 600, style: u, children: gn((i || "UNTITLED ASSEMBLY").toUpperCase(), 26) }),
|
|
802
|
+
/* @__PURE__ */ h.jsx("text", { x: E + g(9), y: C + g(43), fill: e.ink.muted, fontSize: g(6.5), style: u, children: "PROJECTION" }),
|
|
803
|
+
/* @__PURE__ */ h.jsx("text", { x: E + Y - g(9), y: C + g(43), textAnchor: "end", fill: e.ink.text, fontSize: g(7), style: u, children: "ISOMETRIC 30°" }),
|
|
804
|
+
/* @__PURE__ */ h.jsx("text", { x: E + g(9), y: C + g(65), fill: e.ink.muted, fontSize: g(6.5), style: u, children: "SCALE" }),
|
|
805
|
+
/* @__PURE__ */ h.jsx("text", { x: E + Y - g(9), y: C + g(65), textAnchor: "end", fill: e.ink.text, fontSize: g(7), style: u, children: "1:1" }),
|
|
806
|
+
/* @__PURE__ */ h.jsx("text", { x: E + Y + g(9), y: C + g(43), fill: e.ink.muted, fontSize: g(6.5), style: u, children: "QTY" }),
|
|
807
|
+
/* @__PURE__ */ h.jsx("text", { x: E + k - g(9), y: C + g(43), textAnchor: "end", fill: e.ink.text, fontSize: g(7), style: u, children: t || `${De(r.length)} CMP` }),
|
|
808
|
+
/* @__PURE__ */ h.jsx("text", { x: E + Y + g(9), y: C + g(65), fill: e.ink.muted, fontSize: g(6.5), style: u, children: "SHEET" }),
|
|
809
|
+
/* @__PURE__ */ h.jsx("text", { x: E + k - g(9), y: C + g(65), textAnchor: "end", fill: e.ink.text, fontSize: g(7), style: u, children: "1 OF 1" })
|
|
798
810
|
] })
|
|
799
811
|
] });
|
|
800
812
|
}
|
|
801
|
-
const
|
|
813
|
+
const pt = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), ht = (e) => e.replace(
|
|
802
814
|
/^([A-Z])|[\s-_]+(\w)/g,
|
|
803
|
-
(n, r,
|
|
815
|
+
(n, r, i) => i ? i.toUpperCase() : r.toLowerCase()
|
|
804
816
|
), kn = (e) => {
|
|
805
|
-
const n =
|
|
817
|
+
const n = ht(e);
|
|
806
818
|
return n.charAt(0).toUpperCase() + n.slice(1);
|
|
807
|
-
},
|
|
819
|
+
}, Xn = (...e) => e.filter((n, r, i) => !!n && n.trim() !== "" && i.indexOf(n) === r).join(" ").trim(), dt = (e) => {
|
|
808
820
|
for (const n in e)
|
|
809
821
|
if (n.startsWith("aria-") || n === "role" || n === "title")
|
|
810
822
|
return !0;
|
|
811
823
|
};
|
|
812
|
-
var
|
|
824
|
+
var xt = {
|
|
813
825
|
xmlns: "http://www.w3.org/2000/svg",
|
|
814
826
|
width: 24,
|
|
815
827
|
height: 24,
|
|
@@ -820,13 +832,13 @@ var pi = {
|
|
|
820
832
|
strokeLinecap: "round",
|
|
821
833
|
strokeLinejoin: "round"
|
|
822
834
|
};
|
|
823
|
-
const
|
|
835
|
+
const mt = Rn(
|
|
824
836
|
({
|
|
825
837
|
color: e = "currentColor",
|
|
826
838
|
size: n = 24,
|
|
827
839
|
strokeWidth: r = 2,
|
|
828
|
-
absoluteStrokeWidth:
|
|
829
|
-
className:
|
|
840
|
+
absoluteStrokeWidth: i,
|
|
841
|
+
className: t = "",
|
|
830
842
|
children: l,
|
|
831
843
|
iconNode: o,
|
|
832
844
|
...a
|
|
@@ -834,37 +846,37 @@ const hi = Rn(
|
|
|
834
846
|
"svg",
|
|
835
847
|
{
|
|
836
848
|
ref: c,
|
|
837
|
-
...
|
|
849
|
+
...xt,
|
|
838
850
|
width: n,
|
|
839
851
|
height: n,
|
|
840
852
|
stroke: e,
|
|
841
|
-
strokeWidth:
|
|
842
|
-
className:
|
|
843
|
-
...!l && !
|
|
853
|
+
strokeWidth: i ? Number(r) * 24 / Number(n) : r,
|
|
854
|
+
className: Xn("lucide", t),
|
|
855
|
+
...!l && !dt(a) && { "aria-hidden": "true" },
|
|
844
856
|
...a
|
|
845
857
|
},
|
|
846
858
|
[
|
|
847
|
-
...o.map(([
|
|
859
|
+
...o.map(([f, u]) => Ke(f, u)),
|
|
848
860
|
...Array.isArray(l) ? l : [l]
|
|
849
861
|
]
|
|
850
862
|
)
|
|
851
863
|
);
|
|
852
|
-
const
|
|
864
|
+
const $ = (e, n) => {
|
|
853
865
|
const r = Rn(
|
|
854
|
-
({ className:
|
|
866
|
+
({ className: i, ...t }, l) => Ke(mt, {
|
|
855
867
|
ref: l,
|
|
856
868
|
iconNode: n,
|
|
857
|
-
className:
|
|
858
|
-
`lucide-${
|
|
869
|
+
className: Xn(
|
|
870
|
+
`lucide-${pt(kn(e))}`,
|
|
859
871
|
`lucide-${e}`,
|
|
860
|
-
|
|
872
|
+
i
|
|
861
873
|
),
|
|
862
|
-
...
|
|
874
|
+
...t
|
|
863
875
|
})
|
|
864
876
|
);
|
|
865
877
|
return r.displayName = kn(e), r;
|
|
866
878
|
};
|
|
867
|
-
const
|
|
879
|
+
const yt = [
|
|
868
880
|
[
|
|
869
881
|
"path",
|
|
870
882
|
{
|
|
@@ -872,16 +884,16 @@ const di = [
|
|
|
872
884
|
key: "169zse"
|
|
873
885
|
}
|
|
874
886
|
]
|
|
875
|
-
],
|
|
876
|
-
const
|
|
887
|
+
], gt = $("activity", yt);
|
|
888
|
+
const kt = [
|
|
877
889
|
["path", { d: "M12 5v14", key: "s699le" }],
|
|
878
890
|
["path", { d: "m19 12-7 7-7-7", key: "1idqje" }]
|
|
879
|
-
],
|
|
880
|
-
const
|
|
891
|
+
], vt = $("arrow-down", kt);
|
|
892
|
+
const bt = [
|
|
881
893
|
["path", { d: "M5 12h14", key: "1ays0h" }],
|
|
882
894
|
["path", { d: "m12 5 7 7-7 7", key: "xquz4c" }]
|
|
883
|
-
],
|
|
884
|
-
const
|
|
895
|
+
], At = $("arrow-right", bt);
|
|
896
|
+
const _t = [
|
|
885
897
|
["path", { d: "M10.268 21a2 2 0 0 0 3.464 0", key: "vwvbt9" }],
|
|
886
898
|
[
|
|
887
899
|
"path",
|
|
@@ -890,8 +902,8 @@ const vi = [
|
|
|
890
902
|
key: "11g9vi"
|
|
891
903
|
}
|
|
892
904
|
]
|
|
893
|
-
],
|
|
894
|
-
const
|
|
905
|
+
], wt = $("bell", _t);
|
|
906
|
+
const Ct = [
|
|
895
907
|
[
|
|
896
908
|
"path",
|
|
897
909
|
{
|
|
@@ -901,8 +913,8 @@ const Ai = [
|
|
|
901
913
|
],
|
|
902
914
|
["path", { d: "m3.3 7 8.7 5 8.7-5", key: "g66t2b" }],
|
|
903
915
|
["path", { d: "M12 22V12", key: "d0xqtd" }]
|
|
904
|
-
],
|
|
905
|
-
const
|
|
916
|
+
], Gn = $("box", Ct);
|
|
917
|
+
const $t = [
|
|
906
918
|
[
|
|
907
919
|
"path",
|
|
908
920
|
{
|
|
@@ -911,13 +923,13 @@ const _i = [
|
|
|
911
923
|
}
|
|
912
924
|
],
|
|
913
925
|
["circle", { cx: "12", cy: "13", r: "3", key: "1vg3eu" }]
|
|
914
|
-
],
|
|
915
|
-
const
|
|
926
|
+
], St = $("camera", $t);
|
|
927
|
+
const Et = [
|
|
916
928
|
["path", { d: "M5 21v-6", key: "1hz6c0" }],
|
|
917
929
|
["path", { d: "M12 21V9", key: "uvy0l4" }],
|
|
918
930
|
["path", { d: "M19 21V3", key: "11j9sm" }]
|
|
919
|
-
],
|
|
920
|
-
const
|
|
931
|
+
], Tt = $("chart-no-axes-column-increasing", Et);
|
|
932
|
+
const Mt = [
|
|
921
933
|
[
|
|
922
934
|
"path",
|
|
923
935
|
{
|
|
@@ -926,16 +938,16 @@ const Si = [
|
|
|
926
938
|
}
|
|
927
939
|
],
|
|
928
940
|
["path", { d: "M21.21 15.89A10 10 0 1 1 8 2.83", key: "k2fpak" }]
|
|
929
|
-
],
|
|
930
|
-
const
|
|
931
|
-
const
|
|
941
|
+
], jt = $("chart-pie", Mt);
|
|
942
|
+
const Ot = [["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }]], Nt = $("circle", Ot);
|
|
943
|
+
const Lt = [
|
|
932
944
|
["path", { d: "M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z", key: "p7xjir" }]
|
|
933
|
-
],
|
|
934
|
-
const
|
|
945
|
+
], Ft = $("cloud", Lt);
|
|
946
|
+
const It = [
|
|
935
947
|
["path", { d: "m16 18 6-6-6-6", key: "eg8j8" }],
|
|
936
948
|
["path", { d: "m8 6-6 6 6 6", key: "ppft3o" }]
|
|
937
|
-
],
|
|
938
|
-
const
|
|
949
|
+
], Rt = $("code", It);
|
|
950
|
+
const Pt = [
|
|
939
951
|
["path", { d: "M12 20v2", key: "1lh1kg" }],
|
|
940
952
|
["path", { d: "M12 2v2", key: "tus03m" }],
|
|
941
953
|
["path", { d: "M17 20v2", key: "1rnc9c" }],
|
|
@@ -950,18 +962,18 @@ const Li = [
|
|
|
950
962
|
["path", { d: "M7 2v2", key: "1i4yhu" }],
|
|
951
963
|
["rect", { x: "4", y: "4", width: "16", height: "16", rx: "2", key: "1vbyd7" }],
|
|
952
964
|
["rect", { x: "8", y: "8", width: "8", height: "8", rx: "1", key: "z9xiuo" }]
|
|
953
|
-
],
|
|
954
|
-
const
|
|
965
|
+
], Dt = $("cpu", Pt);
|
|
966
|
+
const Yt = [
|
|
955
967
|
["ellipse", { cx: "12", cy: "5", rx: "9", ry: "3", key: "msslwz" }],
|
|
956
968
|
["path", { d: "M3 5V19A9 3 0 0 0 21 19V5", key: "1wlel7" }],
|
|
957
969
|
["path", { d: "M3 12A9 3 0 0 0 21 12", key: "mv7ke4" }]
|
|
958
|
-
],
|
|
959
|
-
const
|
|
970
|
+
], Bt = $("database", Yt);
|
|
971
|
+
const Ht = [
|
|
960
972
|
["path", { d: "M12 15V3", key: "m9g1x1" }],
|
|
961
973
|
["path", { d: "M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4", key: "ih7n3h" }],
|
|
962
974
|
["path", { d: "m7 10 5 5 5-5", key: "brsn70" }]
|
|
963
|
-
],
|
|
964
|
-
const
|
|
975
|
+
], Wt = $("download", Ht);
|
|
976
|
+
const Ut = [
|
|
965
977
|
[
|
|
966
978
|
"path",
|
|
967
979
|
{
|
|
@@ -972,8 +984,8 @@ const Bi = [
|
|
|
972
984
|
["path", { d: "M14 2v5a1 1 0 0 0 1 1h5", key: "wfsgrz" }],
|
|
973
985
|
["path", { d: "M10 12.5 8 15l2 2.5", key: "1tg20x" }],
|
|
974
986
|
["path", { d: "m14 12.5 2 2.5-2 2.5", key: "yinavb" }]
|
|
975
|
-
],
|
|
976
|
-
const
|
|
987
|
+
], zt = $("file-code", Ut);
|
|
988
|
+
const qt = [
|
|
977
989
|
[
|
|
978
990
|
"path",
|
|
979
991
|
{
|
|
@@ -981,8 +993,8 @@ const Wi = [
|
|
|
981
993
|
key: "1kt360"
|
|
982
994
|
}
|
|
983
995
|
]
|
|
984
|
-
],
|
|
985
|
-
const
|
|
996
|
+
], Xt = $("folder", qt);
|
|
997
|
+
const Gt = [
|
|
986
998
|
[
|
|
987
999
|
"path",
|
|
988
1000
|
{
|
|
@@ -990,20 +1002,20 @@ const zi = [
|
|
|
990
1002
|
key: "sc7q7i"
|
|
991
1003
|
}
|
|
992
1004
|
]
|
|
993
|
-
],
|
|
994
|
-
const
|
|
1005
|
+
], Kt = $("funnel", Gt);
|
|
1006
|
+
const Vt = [
|
|
995
1007
|
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
996
1008
|
["path", { d: "M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20", key: "13o1zl" }],
|
|
997
1009
|
["path", { d: "M2 12h20", key: "9i4pu4" }]
|
|
998
|
-
],
|
|
999
|
-
const
|
|
1010
|
+
], Zt = $("globe", Vt);
|
|
1011
|
+
const Jt = [
|
|
1000
1012
|
["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }],
|
|
1001
1013
|
["path", { d: "M3 9h18", key: "1pudct" }],
|
|
1002
1014
|
["path", { d: "M3 15h18", key: "5xshup" }],
|
|
1003
1015
|
["path", { d: "M9 3v18", key: "fh3hqa" }],
|
|
1004
1016
|
["path", { d: "M15 3v18", key: "14nvp0" }]
|
|
1005
|
-
],
|
|
1006
|
-
const
|
|
1017
|
+
], Qt = $("grid-3x3", Jt);
|
|
1018
|
+
const ei = [
|
|
1007
1019
|
["line", { x1: "22", x2: "2", y1: "12", y2: "12", key: "1y58io" }],
|
|
1008
1020
|
[
|
|
1009
1021
|
"path",
|
|
@@ -1014,8 +1026,8 @@ const Zi = [
|
|
|
1014
1026
|
],
|
|
1015
1027
|
["line", { x1: "6", x2: "6.01", y1: "16", y2: "16", key: "sgf278" }],
|
|
1016
1028
|
["line", { x1: "10", x2: "10.01", y1: "16", y2: "16", key: "1l4acy" }]
|
|
1017
|
-
],
|
|
1018
|
-
const
|
|
1029
|
+
], ni = $("hard-drive", ei);
|
|
1030
|
+
const ri = [
|
|
1019
1031
|
[
|
|
1020
1032
|
"path",
|
|
1021
1033
|
{
|
|
@@ -1023,13 +1035,13 @@ const Qi = [
|
|
|
1023
1035
|
key: "1xhozi"
|
|
1024
1036
|
}
|
|
1025
1037
|
]
|
|
1026
|
-
],
|
|
1027
|
-
const
|
|
1038
|
+
], ti = $("headphones", ri);
|
|
1039
|
+
const ii = [
|
|
1028
1040
|
["path", { d: "m15.5 7.5 2.3 2.3a1 1 0 0 0 1.4 0l2.1-2.1a1 1 0 0 0 0-1.4L19 4", key: "g0fldk" }],
|
|
1029
1041
|
["path", { d: "m21 2-9.6 9.6", key: "1j0ho8" }],
|
|
1030
1042
|
["circle", { cx: "7.5", cy: "15.5", r: "5.5", key: "yqb3hr" }]
|
|
1031
|
-
],
|
|
1032
|
-
const
|
|
1043
|
+
], oi = $("key", ii);
|
|
1044
|
+
const li = [
|
|
1033
1045
|
[
|
|
1034
1046
|
"path",
|
|
1035
1047
|
{
|
|
@@ -1051,16 +1063,16 @@ const it = [
|
|
|
1051
1063
|
key: "kqbvx6"
|
|
1052
1064
|
}
|
|
1053
1065
|
]
|
|
1054
|
-
],
|
|
1055
|
-
const
|
|
1066
|
+
], ai = $("layers", li);
|
|
1067
|
+
const ci = [
|
|
1056
1068
|
["rect", { width: "18", height: "11", x: "3", y: "11", rx: "2", ry: "2", key: "1w4ew1" }],
|
|
1057
1069
|
["path", { d: "M7 11V7a5 5 0 0 1 10 0v4", key: "fwvmzm" }]
|
|
1058
|
-
],
|
|
1059
|
-
const
|
|
1070
|
+
], si = $("lock", ci);
|
|
1071
|
+
const fi = [
|
|
1060
1072
|
["path", { d: "m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7", key: "132q7q" }],
|
|
1061
1073
|
["rect", { x: "2", y: "4", width: "20", height: "16", rx: "2", key: "izxlao" }]
|
|
1062
|
-
],
|
|
1063
|
-
const
|
|
1074
|
+
], ui = $("mail", fi);
|
|
1075
|
+
const pi = [
|
|
1064
1076
|
[
|
|
1065
1077
|
"path",
|
|
1066
1078
|
{
|
|
@@ -1068,18 +1080,18 @@ const st = [
|
|
|
1068
1080
|
key: "18887p"
|
|
1069
1081
|
}
|
|
1070
1082
|
]
|
|
1071
|
-
],
|
|
1072
|
-
const
|
|
1083
|
+
], hi = $("message-square", pi);
|
|
1084
|
+
const di = [
|
|
1073
1085
|
["path", { d: "M12 19v3", key: "npa21l" }],
|
|
1074
1086
|
["path", { d: "M19 10v2a7 7 0 0 1-14 0v-2", key: "1vc78b" }],
|
|
1075
1087
|
["rect", { x: "9", y: "2", width: "6", height: "13", rx: "3", key: "s6n7sd" }]
|
|
1076
|
-
],
|
|
1077
|
-
const
|
|
1088
|
+
], xi = $("mic", di);
|
|
1089
|
+
const mi = [
|
|
1078
1090
|
["rect", { width: "20", height: "14", x: "2", y: "3", rx: "2", key: "48i651" }],
|
|
1079
1091
|
["line", { x1: "8", x2: "16", y1: "21", y2: "21", key: "1svkeh" }],
|
|
1080
1092
|
["line", { x1: "12", x2: "12", y1: "17", y2: "21", key: "vw1qmm" }]
|
|
1081
|
-
],
|
|
1082
|
-
const
|
|
1093
|
+
], yi = $("monitor", mi);
|
|
1094
|
+
const gi = [
|
|
1083
1095
|
[
|
|
1084
1096
|
"path",
|
|
1085
1097
|
{
|
|
@@ -1090,12 +1102,12 @@ const xt = [
|
|
|
1090
1102
|
["path", { d: "M12 22V12", key: "d0xqtd" }],
|
|
1091
1103
|
["polyline", { points: "3.29 7 12 12 20.71 7", key: "ousv84" }],
|
|
1092
1104
|
["path", { d: "m7.5 4.27 9 5.15", key: "1c824w" }]
|
|
1093
|
-
],
|
|
1094
|
-
const
|
|
1105
|
+
], ki = $("package", gi);
|
|
1106
|
+
const vi = [
|
|
1095
1107
|
["rect", { x: "14", y: "3", width: "5", height: "18", rx: "1", key: "kaeet6" }],
|
|
1096
1108
|
["rect", { x: "5", y: "3", width: "5", height: "18", rx: "1", key: "1wsw3u" }]
|
|
1097
|
-
],
|
|
1098
|
-
const
|
|
1109
|
+
], bi = $("pause", vi);
|
|
1110
|
+
const Ai = [
|
|
1099
1111
|
[
|
|
1100
1112
|
"path",
|
|
1101
1113
|
{
|
|
@@ -1103,30 +1115,30 @@ const kt = [
|
|
|
1103
1115
|
key: "10ikf1"
|
|
1104
1116
|
}
|
|
1105
1117
|
]
|
|
1106
|
-
],
|
|
1107
|
-
const
|
|
1118
|
+
], _i = $("play", Ai);
|
|
1119
|
+
const wi = [
|
|
1108
1120
|
["path", { d: "M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8", key: "v9h5vc" }],
|
|
1109
1121
|
["path", { d: "M21 3v5h-5", key: "1q7to0" }],
|
|
1110
1122
|
["path", { d: "M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16", key: "3uifl3" }],
|
|
1111
1123
|
["path", { d: "M8 16H3v5", key: "1cv678" }]
|
|
1112
|
-
],
|
|
1113
|
-
const
|
|
1124
|
+
], Ci = $("refresh-cw", wi);
|
|
1125
|
+
const $i = [
|
|
1114
1126
|
["path", { d: "m17 2 4 4-4 4", key: "nntrym" }],
|
|
1115
1127
|
["path", { d: "M3 11v-1a4 4 0 0 1 4-4h14", key: "84bu3i" }],
|
|
1116
1128
|
["path", { d: "m7 22-4-4 4-4", key: "1wqhfi" }],
|
|
1117
1129
|
["path", { d: "M21 13v1a4 4 0 0 1-4 4H3", key: "1rx37r" }]
|
|
1118
|
-
],
|
|
1119
|
-
const
|
|
1130
|
+
], Si = $("repeat", $i);
|
|
1131
|
+
const Ei = [
|
|
1120
1132
|
["path", { d: "m21 21-4.34-4.34", key: "14j7rj" }],
|
|
1121
1133
|
["circle", { cx: "11", cy: "11", r: "8", key: "4ej97u" }]
|
|
1122
|
-
],
|
|
1123
|
-
const
|
|
1134
|
+
], Ti = $("search", Ei);
|
|
1135
|
+
const Mi = [
|
|
1124
1136
|
["rect", { width: "20", height: "8", x: "2", y: "2", rx: "2", ry: "2", key: "ngkwjq" }],
|
|
1125
1137
|
["rect", { width: "20", height: "8", x: "2", y: "14", rx: "2", ry: "2", key: "iecqi9" }],
|
|
1126
1138
|
["line", { x1: "6", x2: "6.01", y1: "6", y2: "6", key: "16zg32" }],
|
|
1127
1139
|
["line", { x1: "6", x2: "6.01", y1: "18", y2: "18", key: "nzw8ys" }]
|
|
1128
|
-
],
|
|
1129
|
-
const
|
|
1140
|
+
], ji = $("server", Mi);
|
|
1141
|
+
const Oi = [
|
|
1130
1142
|
[
|
|
1131
1143
|
"path",
|
|
1132
1144
|
{
|
|
@@ -1135,8 +1147,8 @@ const Tt = [
|
|
|
1135
1147
|
}
|
|
1136
1148
|
],
|
|
1137
1149
|
["circle", { cx: "12", cy: "12", r: "3", key: "1v7zrd" }]
|
|
1138
|
-
],
|
|
1139
|
-
const
|
|
1150
|
+
], Ni = $("settings", Oi);
|
|
1151
|
+
const Li = [
|
|
1140
1152
|
[
|
|
1141
1153
|
"path",
|
|
1142
1154
|
{
|
|
@@ -1144,40 +1156,40 @@ const jt = [
|
|
|
1144
1156
|
key: "oel41y"
|
|
1145
1157
|
}
|
|
1146
1158
|
]
|
|
1147
|
-
],
|
|
1148
|
-
const
|
|
1159
|
+
], Fi = $("shield", Li);
|
|
1160
|
+
const Ii = [
|
|
1149
1161
|
["rect", { width: "14", height: "20", x: "5", y: "2", rx: "2", ry: "2", key: "1yt0o3" }],
|
|
1150
1162
|
["path", { d: "M12 18h.01", key: "mhygvu" }]
|
|
1151
|
-
],
|
|
1152
|
-
const
|
|
1163
|
+
], Ri = $("smartphone", Ii);
|
|
1164
|
+
const Pi = [
|
|
1153
1165
|
["rect", { width: "16", height: "20", x: "4", y: "2", rx: "2", key: "1nb95v" }],
|
|
1154
1166
|
["path", { d: "M12 6h.01", key: "1vi96p" }],
|
|
1155
1167
|
["circle", { cx: "12", cy: "14", r: "4", key: "1jruaj" }],
|
|
1156
1168
|
["path", { d: "M12 14h.01", key: "1etili" }]
|
|
1157
|
-
],
|
|
1158
|
-
const
|
|
1169
|
+
], Di = $("speaker", Pi);
|
|
1170
|
+
const Yi = [
|
|
1159
1171
|
["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }]
|
|
1160
|
-
],
|
|
1161
|
-
const
|
|
1172
|
+
], Bi = $("square", Yi);
|
|
1173
|
+
const Hi = [
|
|
1162
1174
|
["path", { d: "M12 19h8", key: "baeox8" }],
|
|
1163
1175
|
["path", { d: "m4 17 6-6-6-6", key: "1yngyt" }]
|
|
1164
|
-
],
|
|
1165
|
-
const
|
|
1176
|
+
], Wi = $("terminal", Hi);
|
|
1177
|
+
const Ui = [
|
|
1166
1178
|
["path", { d: "M12 3v12", key: "1x0j5s" }],
|
|
1167
1179
|
["path", { d: "m17 8-5-5-5 5", key: "7q97r8" }],
|
|
1168
1180
|
["path", { d: "M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4", key: "ih7n3h" }]
|
|
1169
|
-
],
|
|
1170
|
-
const
|
|
1181
|
+
], zi = $("upload", Ui);
|
|
1182
|
+
const qi = [
|
|
1171
1183
|
["path", { d: "M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2", key: "975kel" }],
|
|
1172
1184
|
["circle", { cx: "12", cy: "7", r: "4", key: "17ys0d" }]
|
|
1173
|
-
],
|
|
1174
|
-
const
|
|
1185
|
+
], Xi = $("user", qi);
|
|
1186
|
+
const Gi = [
|
|
1175
1187
|
["path", { d: "M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2", key: "1yyitq" }],
|
|
1176
1188
|
["path", { d: "M16 3.128a4 4 0 0 1 0 7.744", key: "16gr8j" }],
|
|
1177
1189
|
["path", { d: "M22 21v-2a4 4 0 0 0-3-3.87", key: "kshegd" }],
|
|
1178
1190
|
["circle", { cx: "9", cy: "7", r: "4", key: "nufk8" }]
|
|
1179
|
-
],
|
|
1180
|
-
const
|
|
1191
|
+
], Ki = $("users", Gi);
|
|
1192
|
+
const Vi = [
|
|
1181
1193
|
["path", { d: "M12 10v2.2l1.6 1", key: "n3r21l" }],
|
|
1182
1194
|
[
|
|
1183
1195
|
"path",
|
|
@@ -1185,14 +1197,14 @@ const Xt = [
|
|
|
1185
1197
|
],
|
|
1186
1198
|
["path", { d: "m7.88 16.36.8 4a2 2 0 0 0 2 1.61h2.72a2 2 0 0 0 2-1.61l.81-4.05", key: "16ny36" }],
|
|
1187
1199
|
["circle", { cx: "12", cy: "12", r: "6", key: "1vlfrh" }]
|
|
1188
|
-
],
|
|
1189
|
-
const
|
|
1200
|
+
], Zi = $("watch", Vi);
|
|
1201
|
+
const Ji = [
|
|
1190
1202
|
["path", { d: "M12 20h.01", key: "zekei9" }],
|
|
1191
1203
|
["path", { d: "M2 8.82a15 15 0 0 1 20 0", key: "dnpr2z" }],
|
|
1192
1204
|
["path", { d: "M5 12.859a10 10 0 0 1 14 0", key: "1x1e6c" }],
|
|
1193
1205
|
["path", { d: "M8.5 16.429a5 5 0 0 1 7 0", key: "1bycff" }]
|
|
1194
|
-
],
|
|
1195
|
-
const
|
|
1206
|
+
], Qi = $("wifi", Ji);
|
|
1207
|
+
const eo = [
|
|
1196
1208
|
[
|
|
1197
1209
|
"path",
|
|
1198
1210
|
{
|
|
@@ -1200,70 +1212,70 @@ const Zt = [
|
|
|
1200
1212
|
key: "1xq2db"
|
|
1201
1213
|
}
|
|
1202
1214
|
]
|
|
1203
|
-
],
|
|
1204
|
-
Monitor:
|
|
1205
|
-
Server:
|
|
1206
|
-
Smartphone:
|
|
1207
|
-
Watch:
|
|
1208
|
-
Cloud:
|
|
1209
|
-
Cpu:
|
|
1210
|
-
Database:
|
|
1211
|
-
HardDrive:
|
|
1212
|
-
Wifi:
|
|
1213
|
-
Globe:
|
|
1214
|
-
User:
|
|
1215
|
-
Users:
|
|
1216
|
-
Lock:
|
|
1217
|
-
Key:
|
|
1218
|
-
Shield:
|
|
1219
|
-
Mic:
|
|
1220
|
-
Camera:
|
|
1221
|
-
Speaker:
|
|
1222
|
-
Headphones:
|
|
1223
|
-
Code:
|
|
1224
|
-
Terminal:
|
|
1225
|
-
FileCode:
|
|
1226
|
-
Folder:
|
|
1227
|
-
Zap:
|
|
1228
|
-
Activity:
|
|
1229
|
-
BarChart:
|
|
1230
|
-
PieChart:
|
|
1231
|
-
ArrowRight:
|
|
1232
|
-
ArrowDown:
|
|
1233
|
-
RefreshCw:
|
|
1234
|
-
Repeat:
|
|
1235
|
-
Box:
|
|
1236
|
-
Package:
|
|
1237
|
-
Layers:
|
|
1238
|
-
Grid:
|
|
1239
|
-
Settings:
|
|
1240
|
-
Bell:
|
|
1241
|
-
Mail:
|
|
1242
|
-
MessageSquare:
|
|
1243
|
-
Search:
|
|
1244
|
-
Filter:
|
|
1245
|
-
Download:
|
|
1246
|
-
Upload:
|
|
1247
|
-
Play:
|
|
1248
|
-
Pause:
|
|
1249
|
-
Square:
|
|
1250
|
-
Circle:
|
|
1215
|
+
], no = $("zap", eo), ro = {
|
|
1216
|
+
Monitor: yi,
|
|
1217
|
+
Server: ji,
|
|
1218
|
+
Smartphone: Ri,
|
|
1219
|
+
Watch: Zi,
|
|
1220
|
+
Cloud: Ft,
|
|
1221
|
+
Cpu: Dt,
|
|
1222
|
+
Database: Bt,
|
|
1223
|
+
HardDrive: ni,
|
|
1224
|
+
Wifi: Qi,
|
|
1225
|
+
Globe: Zt,
|
|
1226
|
+
User: Xi,
|
|
1227
|
+
Users: Ki,
|
|
1228
|
+
Lock: si,
|
|
1229
|
+
Key: oi,
|
|
1230
|
+
Shield: Fi,
|
|
1231
|
+
Mic: xi,
|
|
1232
|
+
Camera: St,
|
|
1233
|
+
Speaker: Di,
|
|
1234
|
+
Headphones: ti,
|
|
1235
|
+
Code: Rt,
|
|
1236
|
+
Terminal: Wi,
|
|
1237
|
+
FileCode: zt,
|
|
1238
|
+
Folder: Xt,
|
|
1239
|
+
Zap: no,
|
|
1240
|
+
Activity: gt,
|
|
1241
|
+
BarChart: Tt,
|
|
1242
|
+
PieChart: jt,
|
|
1243
|
+
ArrowRight: At,
|
|
1244
|
+
ArrowDown: vt,
|
|
1245
|
+
RefreshCw: Ci,
|
|
1246
|
+
Repeat: Si,
|
|
1247
|
+
Box: Gn,
|
|
1248
|
+
Package: ki,
|
|
1249
|
+
Layers: ai,
|
|
1250
|
+
Grid: Qt,
|
|
1251
|
+
Settings: Ni,
|
|
1252
|
+
Bell: wt,
|
|
1253
|
+
Mail: ui,
|
|
1254
|
+
MessageSquare: hi,
|
|
1255
|
+
Search: Ti,
|
|
1256
|
+
Filter: Kt,
|
|
1257
|
+
Download: Wt,
|
|
1258
|
+
Upload: zi,
|
|
1259
|
+
Play: _i,
|
|
1260
|
+
Pause: bi,
|
|
1261
|
+
Square: Bi,
|
|
1262
|
+
Circle: Nt
|
|
1251
1263
|
};
|
|
1252
|
-
function
|
|
1253
|
-
return
|
|
1264
|
+
function to(e) {
|
|
1265
|
+
return ro[e] || Gn;
|
|
1254
1266
|
}
|
|
1255
|
-
function
|
|
1267
|
+
function io({
|
|
1256
1268
|
uid: e,
|
|
1257
1269
|
style: n,
|
|
1258
1270
|
box: r,
|
|
1259
|
-
color:
|
|
1260
|
-
tag:
|
|
1271
|
+
color: i,
|
|
1272
|
+
tag: t,
|
|
1261
1273
|
selected: l = !1,
|
|
1262
1274
|
opacity: o,
|
|
1263
1275
|
onClick: a,
|
|
1264
1276
|
onPointerDown: c
|
|
1265
1277
|
}) {
|
|
1266
|
-
const
|
|
1278
|
+
const f = Wn(i), u = l ? n.ink.accent : n.ink.line, d = l ? n.ink.accent : n.ink.text, p = [
|
|
1267
1279
|
{ face: "left", path: r.left },
|
|
1268
1280
|
{ face: "right", path: r.right },
|
|
1269
1281
|
{ face: "top", path: r.top }
|
|
@@ -1276,10 +1288,10 @@ function no({
|
|
|
1276
1288
|
onClick: a,
|
|
1277
1289
|
onPointerDown: c,
|
|
1278
1290
|
children: [
|
|
1279
|
-
|
|
1280
|
-
/* @__PURE__ */ h.jsx("path", { d: m, fill: n.face[
|
|
1281
|
-
|
|
1282
|
-
] },
|
|
1291
|
+
p.map(({ face: x, path: m }) => /* @__PURE__ */ h.jsxs("g", { children: [
|
|
1292
|
+
/* @__PURE__ */ h.jsx("path", { d: m, fill: n.face[x] }),
|
|
1293
|
+
Un(e, f, x).map((y) => /* @__PURE__ */ h.jsx("path", { d: m, fill: `url(#${y})`, opacity: n.hatchOpacity[x] }, y))
|
|
1294
|
+
] }, x)),
|
|
1283
1295
|
/* @__PURE__ */ h.jsx(
|
|
1284
1296
|
"path",
|
|
1285
1297
|
{
|
|
@@ -1296,49 +1308,49 @@ function no({
|
|
|
1296
1308
|
{
|
|
1297
1309
|
d: r.visible,
|
|
1298
1310
|
fill: "none",
|
|
1299
|
-
stroke:
|
|
1311
|
+
stroke: u,
|
|
1300
1312
|
strokeWidth: l ? n.strokeWidth * 1.7 : n.strokeWidth,
|
|
1301
1313
|
strokeLinejoin: "round",
|
|
1302
1314
|
strokeLinecap: "round"
|
|
1303
1315
|
}
|
|
1304
1316
|
),
|
|
1305
|
-
|
|
1317
|
+
t != null && /* @__PURE__ */ h.jsx(
|
|
1306
1318
|
"text",
|
|
1307
1319
|
{
|
|
1308
1320
|
x: r.topCenter.x,
|
|
1309
|
-
y: r.topCenter.y +
|
|
1321
|
+
y: r.topCenter.y + g(3),
|
|
1310
1322
|
textAnchor: "middle",
|
|
1311
1323
|
fill: d,
|
|
1312
|
-
fontSize:
|
|
1324
|
+
fontSize: g(8),
|
|
1313
1325
|
fontWeight: 600,
|
|
1314
1326
|
fontFamily: n.font,
|
|
1315
1327
|
style: { letterSpacing: "0.1em" },
|
|
1316
1328
|
pointerEvents: "none",
|
|
1317
|
-
children: De(
|
|
1329
|
+
children: De(t)
|
|
1318
1330
|
}
|
|
1319
1331
|
)
|
|
1320
1332
|
]
|
|
1321
1333
|
}
|
|
1322
1334
|
);
|
|
1323
1335
|
}
|
|
1324
|
-
function
|
|
1336
|
+
function oo({
|
|
1325
1337
|
style: e,
|
|
1326
1338
|
box: n,
|
|
1327
1339
|
name: r,
|
|
1328
|
-
subtitle:
|
|
1329
|
-
icon:
|
|
1340
|
+
subtitle: i,
|
|
1341
|
+
icon: t,
|
|
1330
1342
|
selected: l = !1,
|
|
1331
1343
|
opacity: o
|
|
1332
1344
|
}) {
|
|
1333
|
-
const a = l ? e.ink.accent : e.ink.line, c = l ? e.ink.accent : e.ink.text,
|
|
1345
|
+
const a = l ? e.ink.accent : e.ink.line, c = l ? e.ink.accent : e.ink.text, f = t ? to(t) : null, u = (r || "").toUpperCase(), d = (i || "").toUpperCase(), p = n.minY - g(11), x = p - g(4), m = d ? p - g(15) : p - g(4), y = g(9), v = g(3), k = f ? y + v : 0, b = Math.max(u.length * g(5.6) + k, d.length * g(4.4), g(24)), Y = n.topCenter.x + k / 2, E = Y - u.length * g(5.6) / 2 - v - y, C = m - y + g(1);
|
|
1334
1346
|
return /* @__PURE__ */ h.jsxs("g", { pointerEvents: "none", opacity: o, children: [
|
|
1335
1347
|
/* @__PURE__ */ h.jsx(
|
|
1336
1348
|
"line",
|
|
1337
1349
|
{
|
|
1338
1350
|
x1: n.topCenter.x,
|
|
1339
|
-
y1: n.topCenter.y -
|
|
1351
|
+
y1: n.topCenter.y - g(6),
|
|
1340
1352
|
x2: n.topCenter.x,
|
|
1341
|
-
y2:
|
|
1353
|
+
y2: p,
|
|
1342
1354
|
stroke: a,
|
|
1343
1355
|
strokeWidth: e.strokeWidth * 0.6
|
|
1344
1356
|
}
|
|
@@ -1346,44 +1358,44 @@ function ro({
|
|
|
1346
1358
|
/* @__PURE__ */ h.jsx(
|
|
1347
1359
|
"line",
|
|
1348
1360
|
{
|
|
1349
|
-
x1: n.topCenter.x -
|
|
1350
|
-
y1:
|
|
1351
|
-
x2: n.topCenter.x +
|
|
1352
|
-
y2:
|
|
1361
|
+
x1: n.topCenter.x - b / 2,
|
|
1362
|
+
y1: p,
|
|
1363
|
+
x2: n.topCenter.x + b / 2,
|
|
1364
|
+
y2: p,
|
|
1353
1365
|
stroke: a,
|
|
1354
1366
|
strokeWidth: e.strokeWidth * 0.6
|
|
1355
1367
|
}
|
|
1356
1368
|
),
|
|
1357
|
-
|
|
1369
|
+
f && /* @__PURE__ */ h.jsx("g", { transform: `translate(${E}, ${C})`, color: c, children: /* @__PURE__ */ h.jsx(f, { width: y, height: y, strokeWidth: 1.75 }) }),
|
|
1358
1370
|
/* @__PURE__ */ h.jsx(
|
|
1359
1371
|
"text",
|
|
1360
1372
|
{
|
|
1361
|
-
x:
|
|
1373
|
+
x: Y,
|
|
1362
1374
|
y: m,
|
|
1363
1375
|
textAnchor: "middle",
|
|
1364
1376
|
fill: c,
|
|
1365
|
-
fontSize:
|
|
1377
|
+
fontSize: g(9.5),
|
|
1366
1378
|
fontWeight: 600,
|
|
1367
1379
|
fontFamily: e.font,
|
|
1368
1380
|
stroke: e.paper.from,
|
|
1369
|
-
strokeWidth:
|
|
1381
|
+
strokeWidth: g(3),
|
|
1370
1382
|
paintOrder: "stroke",
|
|
1371
1383
|
strokeLinejoin: "round",
|
|
1372
1384
|
style: { letterSpacing: "0.12em" },
|
|
1373
|
-
children:
|
|
1385
|
+
children: u
|
|
1374
1386
|
}
|
|
1375
1387
|
),
|
|
1376
1388
|
d && /* @__PURE__ */ h.jsx(
|
|
1377
1389
|
"text",
|
|
1378
1390
|
{
|
|
1379
1391
|
x: n.topCenter.x,
|
|
1380
|
-
y:
|
|
1392
|
+
y: x,
|
|
1381
1393
|
textAnchor: "middle",
|
|
1382
1394
|
fill: e.ink.muted,
|
|
1383
|
-
fontSize:
|
|
1395
|
+
fontSize: g(7.5),
|
|
1384
1396
|
fontFamily: e.font,
|
|
1385
1397
|
stroke: e.paper.from,
|
|
1386
|
-
strokeWidth:
|
|
1398
|
+
strokeWidth: g(2.5),
|
|
1387
1399
|
paintOrder: "stroke",
|
|
1388
1400
|
strokeLinejoin: "round",
|
|
1389
1401
|
style: { letterSpacing: "0.1em" },
|
|
@@ -1392,7 +1404,7 @@ function ro({
|
|
|
1392
1404
|
)
|
|
1393
1405
|
] });
|
|
1394
1406
|
}
|
|
1395
|
-
const
|
|
1407
|
+
const Kn = '"JetBrains Mono", "Fira Code", "SF Mono", Consolas, monospace', lo = {
|
|
1396
1408
|
blue: { top: "#3b82f6", side: "#2563eb", front: "#1d4ed8" },
|
|
1397
1409
|
violet: { top: "#8b5cf6", side: "#7c3aed", front: "#6d28d9" },
|
|
1398
1410
|
cyan: { top: "#06b6d4", side: "#0891b2", front: "#0e7490" },
|
|
@@ -1400,7 +1412,7 @@ const Xn = '"JetBrains Mono", "Fira Code", "SF Mono", Consolas, monospace', io =
|
|
|
1400
1412
|
amber: { top: "#f59e0b", side: "#d97706", front: "#b45309" },
|
|
1401
1413
|
rose: { top: "#f43f5e", side: "#e11d48", front: "#be123c" },
|
|
1402
1414
|
slate: { top: "#475569", side: "#334155", front: "#1e293b" }
|
|
1403
|
-
},
|
|
1415
|
+
}, ao = {
|
|
1404
1416
|
blue: { top: "#93c5fd", side: "#60a5fa", front: "#3b82f6" },
|
|
1405
1417
|
violet: { top: "#c4b5fd", side: "#a78bfa", front: "#8b5cf6" },
|
|
1406
1418
|
cyan: { top: "#67e8f9", side: "#22d3ee", front: "#06b6d4" },
|
|
@@ -1410,46 +1422,46 @@ const Xn = '"JetBrains Mono", "Fira Code", "SF Mono", Consolas, monospace', io =
|
|
|
1410
1422
|
slate: { top: "#e2e8f0", side: "#cbd5e1", front: "#94a3b8" }
|
|
1411
1423
|
};
|
|
1412
1424
|
function Re(e, n, r) {
|
|
1413
|
-
const
|
|
1414
|
-
const
|
|
1425
|
+
const i = (f) => {
|
|
1426
|
+
const u = f.replace("#", "");
|
|
1415
1427
|
return {
|
|
1416
|
-
r: parseInt(
|
|
1417
|
-
g: parseInt(
|
|
1418
|
-
b: parseInt(
|
|
1428
|
+
r: parseInt(u.substring(0, 2), 16),
|
|
1429
|
+
g: parseInt(u.substring(2, 4), 16),
|
|
1430
|
+
b: parseInt(u.substring(4, 6), 16)
|
|
1419
1431
|
};
|
|
1420
|
-
},
|
|
1432
|
+
}, t = i(e), l = i(n), o = Math.round(t.r + (l.r - t.r) * r), a = Math.round(t.g + (l.g - t.g) * r), c = Math.round(t.b + (l.b - t.b) * r);
|
|
1421
1433
|
return `rgb(${o},${a},${c})`;
|
|
1422
1434
|
}
|
|
1423
|
-
function
|
|
1424
|
-
const a =
|
|
1425
|
-
return /* @__PURE__ */ h.jsx("g", { transform: `translate(${a.screenX}, ${a.screenY})`, filter: o, children: /* @__PURE__ */ h.jsx("g", { transform: `matrix(${
|
|
1435
|
+
function co({ x: e, y: n, z: r, children: i, fontSize: t = 8, color: l = "#1e293b", shadow: o }) {
|
|
1436
|
+
const a = w(e, n, r);
|
|
1437
|
+
return /* @__PURE__ */ h.jsx("g", { transform: `translate(${a.screenX}, ${a.screenY})`, filter: o, children: /* @__PURE__ */ h.jsx("g", { transform: `matrix(${zr()})`, children: /* @__PURE__ */ h.jsx(
|
|
1426
1438
|
"text",
|
|
1427
1439
|
{
|
|
1428
1440
|
x: 0,
|
|
1429
1441
|
y: 0,
|
|
1430
1442
|
textAnchor: "middle",
|
|
1431
1443
|
fill: l,
|
|
1432
|
-
fontSize:
|
|
1444
|
+
fontSize: t,
|
|
1433
1445
|
fontWeight: 600,
|
|
1434
|
-
fontFamily:
|
|
1446
|
+
fontFamily: Kn,
|
|
1435
1447
|
style: { textTransform: "uppercase", letterSpacing: "0.06em" },
|
|
1436
|
-
children:
|
|
1448
|
+
children: i
|
|
1437
1449
|
}
|
|
1438
1450
|
) }) });
|
|
1439
1451
|
}
|
|
1440
|
-
function
|
|
1441
|
-
const
|
|
1442
|
-
return /* @__PURE__ */ h.jsxs("g", { transform: `translate(${
|
|
1443
|
-
a && /* @__PURE__ */ h.jsx("g", { transform: "translate(4, 4)", opacity: 0.2, children: /* @__PURE__ */ h.jsx("path", { d:
|
|
1444
|
-
/* @__PURE__ */ h.jsx("path", { d:
|
|
1452
|
+
function so({ width: e, depth: n, elevation: r, color: i, opacity: t, borderColor: l, theme: o, isGround: a }) {
|
|
1453
|
+
const f = xe(e, n, a ? 8 : 2, 0, 0), u = w(0, 0, r);
|
|
1454
|
+
return /* @__PURE__ */ h.jsxs("g", { transform: `translate(${u.screenX}, ${u.screenY})`, children: [
|
|
1455
|
+
a && /* @__PURE__ */ h.jsx("g", { transform: "translate(4, 4)", opacity: 0.2, children: /* @__PURE__ */ h.jsx("path", { d: f.top, fill: "#000" }) }),
|
|
1456
|
+
/* @__PURE__ */ h.jsx("path", { d: f.top, fill: i, opacity: t }),
|
|
1445
1457
|
a && /* @__PURE__ */ h.jsxs(h.Fragment, { children: [
|
|
1446
|
-
/* @__PURE__ */ h.jsx("path", { d:
|
|
1447
|
-
/* @__PURE__ */ h.jsx("path", { d:
|
|
1458
|
+
/* @__PURE__ */ h.jsx("path", { d: f.left, fill: o === "dark" ? "#0f172a" : "#cbd5e1", opacity: 0.8 }),
|
|
1459
|
+
/* @__PURE__ */ h.jsx("path", { d: f.right, fill: o === "dark" ? "#1e293b" : "#94a3b8", opacity: 0.8 })
|
|
1448
1460
|
] }),
|
|
1449
1461
|
/* @__PURE__ */ h.jsx(
|
|
1450
1462
|
"path",
|
|
1451
1463
|
{
|
|
1452
|
-
d:
|
|
1464
|
+
d: f.top,
|
|
1453
1465
|
fill: "none",
|
|
1454
1466
|
stroke: l || (o === "dark" ? "#475569" : "#94a3b8"),
|
|
1455
1467
|
strokeWidth: a ? 1.5 : 0.75,
|
|
@@ -1458,50 +1470,51 @@ function lo({ width: e, depth: n, elevation: r, color: t, opacity: i, borderColo
|
|
|
1458
1470
|
)
|
|
1459
1471
|
] });
|
|
1460
1472
|
}
|
|
1461
|
-
function
|
|
1462
|
-
const { interactive: o = !0, animate: a = !0, showLabels: c = !0, expandOnHover:
|
|
1463
|
-
const
|
|
1464
|
-
return
|
|
1465
|
-
}, [
|
|
1466
|
-
|
|
1467
|
-
a ? (L(/* @__PURE__ */ new Set()),
|
|
1473
|
+
function Ba({ config: e, options: n = {}, className: r, style: i, onNodeClick: t, onLayerClick: l }) {
|
|
1474
|
+
const { interactive: o = !0, animate: a = !0, showLabels: c = !0, expandOnHover: f = !0 } = n, { theme: u, canvas: d, origin: p, tiers: x, floorSize: m, nodes: y, cornerRadius: v = 0 } = e, k = et(e.style), b = k.technical, Y = nn().replace(/:/g, ""), E = !b && e.material === "retro-print", C = E ? Dn : u === "dark" ? lo : ao, N = b ? k.paper.to : E ? u === "dark" ? "#202624" : "#f4efe6" : u === "dark" ? "#0f172a" : "#fafafa", I = b ? k.ink.text : E ? "#202a29" : u === "dark" ? "#e2e8f0" : "#1e293b", B = b ? k.ink.muted : E ? u === "dark" ? "#c5c4b7" : "#505b56" : u === "dark" ? "#64748b" : "#94a3b8", j = Br(() => {
|
|
1475
|
+
const M = y.map((A, O) => ({ node: A, i: O })).sort((A, O) => A.node.tier - O.node.tier || A.node.y - O.node.y || A.node.x - O.node.x), s = /* @__PURE__ */ new Map();
|
|
1476
|
+
return M.forEach(({ i: A }, O) => s.set(A, O + 1)), s;
|
|
1477
|
+
}, [y]), R = { minX: 16, minY: 16, maxX: d.width - 16, maxY: d.height - 16 }, [ee, L] = Le(/* @__PURE__ */ new Set());
|
|
1478
|
+
Hr(() => {
|
|
1479
|
+
a ? (L(/* @__PURE__ */ new Set()), x.forEach((M, s) => {
|
|
1468
1480
|
setTimeout(() => {
|
|
1469
|
-
L((
|
|
1470
|
-
},
|
|
1471
|
-
})) : L(new Set(
|
|
1472
|
-
}, [e.id, a,
|
|
1473
|
-
const [
|
|
1474
|
-
const
|
|
1475
|
-
if (
|
|
1476
|
-
const F =
|
|
1477
|
-
return
|
|
1481
|
+
L((A) => /* @__PURE__ */ new Set([...A, s]));
|
|
1482
|
+
}, s * 150 + 100);
|
|
1483
|
+
})) : L(new Set(x.map((M, s) => s)));
|
|
1484
|
+
}, [e.id, a, x.length]);
|
|
1485
|
+
const [D, re] = Le(null), [K, H] = Le(null), [T, U] = Le(null), oe = [...y].sort((M, s) => {
|
|
1486
|
+
const A = x[M.tier]?.elevation || 0, O = x[s.tier]?.elevation || 0;
|
|
1487
|
+
if (A !== O) return A - O;
|
|
1488
|
+
const F = M.x + M.width + (M.y + M.depth);
|
|
1489
|
+
return s.x + s.width + (s.y + s.depth) - F;
|
|
1478
1490
|
});
|
|
1479
|
-
return /* @__PURE__ */ h.jsx("div", { className: r, style: { display: "inline-block", ...
|
|
1491
|
+
return /* @__PURE__ */ h.jsx("div", { className: r, style: { display: "inline-block", ...i }, children: /* @__PURE__ */ h.jsxs(
|
|
1480
1492
|
"svg",
|
|
1481
1493
|
{
|
|
1482
1494
|
width: d.width,
|
|
1483
1495
|
height: d.height,
|
|
1484
|
-
style: { backgroundColor:
|
|
1496
|
+
style: { backgroundColor: N },
|
|
1485
1497
|
onClick: () => {
|
|
1486
|
-
o && (
|
|
1498
|
+
o && (U(null), H(null));
|
|
1487
1499
|
},
|
|
1488
1500
|
children: [
|
|
1489
1501
|
/* @__PURE__ */ h.jsxs("defs", { children: [
|
|
1490
|
-
/* @__PURE__ */ h.jsx("pattern", { id: `
|
|
1502
|
+
E && /* @__PURE__ */ h.jsx("pattern", { id: `print-${e.id}`, width: "64", height: "64", patternUnits: "userSpaceOnUse", children: Yn.map((M, s) => /* @__PURE__ */ h.jsx("circle", { cx: M.x, cy: M.y, r: M.r, fill: "#26362e", opacity: 0.32 }, s)) }),
|
|
1503
|
+
/* @__PURE__ */ h.jsx("pattern", { id: `grid-${e.id}`, width: "24", height: "24", patternUnits: "userSpaceOnUse", children: /* @__PURE__ */ h.jsx("circle", { cx: "12", cy: "12", r: "0.5", fill: u === "dark" ? "#1e293b" : "#e2e8f0" }) }),
|
|
1491
1504
|
/* @__PURE__ */ h.jsx("filter", { id: `glow-${e.id}`, x: "-20%", y: "-20%", width: "140%", height: "140%", children: /* @__PURE__ */ h.jsx(
|
|
1492
1505
|
"feDropShadow",
|
|
1493
1506
|
{
|
|
1494
1507
|
dx: "0",
|
|
1495
1508
|
dy: "4",
|
|
1496
1509
|
stdDeviation: "8",
|
|
1497
|
-
floodColor:
|
|
1510
|
+
floodColor: u === "dark" ? "#60a5fa" : "#3b82f6",
|
|
1498
1511
|
floodOpacity: "0.3"
|
|
1499
1512
|
}
|
|
1500
1513
|
) }),
|
|
1501
1514
|
/* @__PURE__ */ h.jsxs("radialGradient", { id: `bg-${e.id}`, cx: "48%", cy: "34%", r: "82%", children: [
|
|
1502
|
-
/* @__PURE__ */ h.jsx("stop", { offset: "0%", stopColor:
|
|
1503
|
-
/* @__PURE__ */ h.jsx("stop", { offset: "55%", stopColor:
|
|
1504
|
-
/* @__PURE__ */ h.jsx("stop", { offset: "100%", stopColor:
|
|
1515
|
+
/* @__PURE__ */ h.jsx("stop", { offset: "0%", stopColor: u === "dark" ? "#16203a" : "#ffffff" }),
|
|
1516
|
+
/* @__PURE__ */ h.jsx("stop", { offset: "55%", stopColor: u === "dark" ? "#0e1526" : "#f2f5f9" }),
|
|
1517
|
+
/* @__PURE__ */ h.jsx("stop", { offset: "100%", stopColor: u === "dark" ? "#080d18" : "#e7ecf2" })
|
|
1505
1518
|
] }),
|
|
1506
1519
|
/* @__PURE__ */ h.jsx("filter", { id: `contact-${e.id}`, x: "-60%", y: "-60%", width: "220%", height: "220%", children: /* @__PURE__ */ h.jsx("feGaussianBlur", { stdDeviation: "5" }) }),
|
|
1507
1520
|
/* @__PURE__ */ h.jsxs("linearGradient", { id: `sheen-${e.id}`, x1: "0", y1: "0", x2: "0", y2: "1", children: [
|
|
@@ -1515,10 +1528,10 @@ function Pa({ config: e, options: n = {}, className: r, style: t, onNodeClick: i
|
|
|
1515
1528
|
] }),
|
|
1516
1529
|
/* @__PURE__ */ h.jsx("filter", { id: `label-${e.id}`, x: "-40%", y: "-40%", width: "180%", height: "180%", children: /* @__PURE__ */ h.jsx("feDropShadow", { dx: "0", dy: "0.5", stdDeviation: "0.7", floodColor: "#000000", floodOpacity: "0.7" }) })
|
|
1517
1530
|
] }),
|
|
1518
|
-
|
|
1519
|
-
/* @__PURE__ */ h.jsx(tn, { uid:
|
|
1531
|
+
b ? /* @__PURE__ */ h.jsxs(h.Fragment, { children: [
|
|
1532
|
+
/* @__PURE__ */ h.jsx(tn, { uid: Y, style: k }),
|
|
1520
1533
|
/* @__PURE__ */ h.jsx(
|
|
1521
|
-
|
|
1534
|
+
st,
|
|
1522
1535
|
{
|
|
1523
1536
|
style: k,
|
|
1524
1537
|
rect: { x: 0, y: 0, width: d.width, height: d.height },
|
|
@@ -1526,66 +1539,66 @@ function Pa({ config: e, options: n = {}, className: r, style: t, onNodeClick: i
|
|
|
1526
1539
|
}
|
|
1527
1540
|
)
|
|
1528
1541
|
] }) : /* @__PURE__ */ h.jsxs(h.Fragment, { children: [
|
|
1529
|
-
/* @__PURE__ */ h.jsx("rect", { width: "100%", height: "100%", fill: `url(#bg-${e.id})` }),
|
|
1542
|
+
/* @__PURE__ */ h.jsx("rect", { width: "100%", height: "100%", fill: E ? N : `url(#bg-${e.id})` }),
|
|
1530
1543
|
/* @__PURE__ */ h.jsx("rect", { width: "100%", height: "100%", fill: `url(#grid-${e.id})`, opacity: "0.5" })
|
|
1531
1544
|
] }),
|
|
1532
|
-
/* @__PURE__ */ h.jsx("g", { transform: `translate(${
|
|
1533
|
-
const
|
|
1545
|
+
/* @__PURE__ */ h.jsx("g", { transform: `translate(${p.x}, ${p.y})`, children: x.map((M, s) => {
|
|
1546
|
+
const A = oe.filter((S) => S.tier === s), O = ee.has(s), F = o && (K === s || K === null && T === null && D === s), ae = o && (K !== null || D !== null || T !== null), se = T?.tier === s, P = ae && !F && !se, te = O ? 0 : 60, fe = O ? 1 : 0, ye = F && f ? { x: 10, y: -34 } : { x: 0, y: 0 }, Pr = F ? 1.03 : 1, Ne = w(m.width / 2, m.depth / 2, M.elevation), un = M.offset || { x: 0, y: 0 };
|
|
1534
1547
|
return /* @__PURE__ */ h.jsxs(
|
|
1535
1548
|
"g",
|
|
1536
1549
|
{
|
|
1537
|
-
"data-tier":
|
|
1538
|
-
onMouseEnter: () => o && re(
|
|
1550
|
+
"data-tier": s,
|
|
1551
|
+
onMouseEnter: () => o && re(s),
|
|
1539
1552
|
onMouseLeave: () => o && re(null),
|
|
1540
|
-
onClick: (
|
|
1541
|
-
o && (
|
|
1553
|
+
onClick: (S) => {
|
|
1554
|
+
o && (S.stopPropagation(), U(null), H((q) => q === s ? null : s), l?.(s));
|
|
1542
1555
|
},
|
|
1543
1556
|
style: {
|
|
1544
|
-
transform: `translate(${un.x +
|
|
1557
|
+
transform: `translate(${un.x + ye.x}px, ${un.y + ye.y}px) translate(${Ne.screenX}px, ${Ne.screenY + te}px) scale(${Pr}) translate(${-Ne.screenX}px, ${-Ne.screenY}px)`,
|
|
1545
1558
|
transition: "transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease-out",
|
|
1546
|
-
opacity:
|
|
1559
|
+
opacity: fe * (P ? 0.35 : 1),
|
|
1547
1560
|
filter: F ? `url(#glow-${e.id})` : "none",
|
|
1548
1561
|
cursor: o ? "pointer" : "default"
|
|
1549
1562
|
},
|
|
1550
1563
|
children: [
|
|
1551
|
-
|
|
1552
|
-
|
|
1564
|
+
b ? /* @__PURE__ */ h.jsx(
|
|
1565
|
+
fo,
|
|
1553
1566
|
{
|
|
1554
1567
|
width: m.width,
|
|
1555
1568
|
depth: m.depth,
|
|
1556
|
-
elevation:
|
|
1557
|
-
ink:
|
|
1558
|
-
isGround:
|
|
1569
|
+
elevation: s === 0 ? -2 : M.elevation,
|
|
1570
|
+
ink: s === 0 ? k.ink.line : k.ink.hidden,
|
|
1571
|
+
isGround: s === 0
|
|
1559
1572
|
}
|
|
1560
1573
|
) : /* @__PURE__ */ h.jsx(
|
|
1561
|
-
|
|
1574
|
+
so,
|
|
1562
1575
|
{
|
|
1563
1576
|
width: m.width,
|
|
1564
1577
|
depth: m.depth,
|
|
1565
|
-
elevation:
|
|
1566
|
-
color:
|
|
1567
|
-
opacity:
|
|
1568
|
-
borderColor:
|
|
1569
|
-
theme:
|
|
1570
|
-
isGround:
|
|
1578
|
+
elevation: s === 0 ? -2 : M.elevation,
|
|
1579
|
+
color: M.floorColor || (u === "dark" ? "#0f172a" : "#f8fafc"),
|
|
1580
|
+
opacity: M.floorOpacity || (s === 0 ? 0.95 : 0.5),
|
|
1581
|
+
borderColor: M.borderColor,
|
|
1582
|
+
theme: u,
|
|
1583
|
+
isGround: s === 0
|
|
1571
1584
|
}
|
|
1572
1585
|
),
|
|
1573
|
-
|
|
1574
|
-
const
|
|
1586
|
+
b && A.map((S, q) => {
|
|
1587
|
+
const ge = M.elevation + 5, ue = w(S.x, S.y, ge), Z = yn(S.width, S.depth, S.height, ue.screenX, ue.screenY), X = T?.tier === s && T?.index === q, de = o && T !== null && !X;
|
|
1575
1588
|
return /* @__PURE__ */ h.jsx(
|
|
1576
|
-
|
|
1589
|
+
io,
|
|
1577
1590
|
{
|
|
1578
|
-
uid:
|
|
1591
|
+
uid: Y,
|
|
1579
1592
|
style: k,
|
|
1580
1593
|
box: Z,
|
|
1581
|
-
color:
|
|
1582
|
-
tag:
|
|
1594
|
+
color: S.color,
|
|
1595
|
+
tag: j.get(y.indexOf(S)),
|
|
1583
1596
|
selected: X,
|
|
1584
|
-
opacity: (
|
|
1597
|
+
opacity: (S.opacity ?? 1) * (de ? 0.3 : 1),
|
|
1585
1598
|
onClick: o ? () => {
|
|
1586
|
-
if (
|
|
1599
|
+
if (H(null), U((we) => we && we.tier === s && we.index === q ? null : { tier: s, index: q }), t?.(S, { tier: s, index: q }), S.link)
|
|
1587
1600
|
try {
|
|
1588
|
-
window.open(
|
|
1601
|
+
window.open(S.link, "_blank");
|
|
1589
1602
|
} catch {
|
|
1590
1603
|
}
|
|
1591
1604
|
} : void 0
|
|
@@ -1593,75 +1606,75 @@ function Pa({ config: e, options: n = {}, className: r, style: t, onNodeClick: i
|
|
|
1593
1606
|
`tech-${q}`
|
|
1594
1607
|
);
|
|
1595
1608
|
}),
|
|
1596
|
-
|
|
1597
|
-
const
|
|
1609
|
+
b && c && A.map((S, q) => {
|
|
1610
|
+
const ge = M.elevation + 5, ue = w(S.x, S.y, ge), Z = yn(S.width, S.depth, S.height, ue.screenX, ue.screenY), X = T?.tier === s && T?.index === q, de = o && T !== null && !X;
|
|
1598
1611
|
return /* @__PURE__ */ h.jsx(
|
|
1599
|
-
|
|
1612
|
+
oo,
|
|
1600
1613
|
{
|
|
1601
1614
|
style: k,
|
|
1602
1615
|
box: Z,
|
|
1603
|
-
name:
|
|
1616
|
+
name: S.label,
|
|
1604
1617
|
selected: X,
|
|
1605
1618
|
opacity: de ? 0.3 : 1
|
|
1606
1619
|
},
|
|
1607
1620
|
`tech-label-${q}`
|
|
1608
1621
|
);
|
|
1609
1622
|
}),
|
|
1610
|
-
!
|
|
1611
|
-
const
|
|
1623
|
+
!b && A.map((S, q) => {
|
|
1624
|
+
const ge = M.elevation + 5, ue = w(S.x, S.y, ge), Z = xe(S.width, S.depth, S.height, ue.screenX, ue.screenY, v), X = C[S.color] || C.slate, de = T?.tier === s && T?.index === q, we = o && T !== null && !de, pn = w(S.x - 3, S.y - 3, M.elevation), Dr = xe(S.width + 6, S.depth + 6, 0, pn.screenX, pn.screenY, v).top;
|
|
1612
1625
|
return /* @__PURE__ */ h.jsxs(
|
|
1613
1626
|
"g",
|
|
1614
1627
|
{
|
|
1615
|
-
"data-node": `${
|
|
1616
|
-
opacity: (
|
|
1617
|
-
onClick: o ? (
|
|
1618
|
-
if (
|
|
1628
|
+
"data-node": `${s}-${q}`,
|
|
1629
|
+
opacity: (S.opacity ?? 1) * (we ? 0.3 : 1),
|
|
1630
|
+
onClick: o ? (ne) => {
|
|
1631
|
+
if (ne.stopPropagation(), H(null), U((ie) => ie && ie.tier === s && ie.index === q ? null : { tier: s, index: q }), t?.(S, { tier: s, index: q }), S.link)
|
|
1619
1632
|
try {
|
|
1620
|
-
window.open(
|
|
1633
|
+
window.open(S.link, "_blank");
|
|
1621
1634
|
} catch {
|
|
1622
1635
|
}
|
|
1623
1636
|
} : void 0,
|
|
1624
1637
|
style: { cursor: o ? "pointer" : "default", transition: "opacity 0.3s ease-out" },
|
|
1625
1638
|
children: [
|
|
1626
|
-
/* @__PURE__ */ h.jsx("path", { d:
|
|
1627
|
-
Z.cornerBackRight?.map((
|
|
1639
|
+
/* @__PURE__ */ h.jsx("path", { d: Dr, fill: "#000000", opacity: 0.3, filter: `url(#contact-${e.id})` }),
|
|
1640
|
+
Z.cornerBackRight?.map((ne, ie) => /* @__PURE__ */ h.jsx(
|
|
1628
1641
|
"path",
|
|
1629
1642
|
{
|
|
1630
|
-
d:
|
|
1631
|
-
fill: Re(X.front, X.side,
|
|
1643
|
+
d: ne.path,
|
|
1644
|
+
fill: Re(X.front, X.side, ne.intensity)
|
|
1632
1645
|
},
|
|
1633
|
-
`cbr-${
|
|
1646
|
+
`cbr-${ie}`
|
|
1634
1647
|
)),
|
|
1635
|
-
Z.cornerBackLeft?.map((
|
|
1648
|
+
Z.cornerBackLeft?.map((ne, ie) => /* @__PURE__ */ h.jsx(
|
|
1636
1649
|
"path",
|
|
1637
1650
|
{
|
|
1638
|
-
d:
|
|
1639
|
-
fill: Re(X.side, X.front,
|
|
1651
|
+
d: ne.path,
|
|
1652
|
+
fill: Re(X.side, X.front, ne.intensity)
|
|
1640
1653
|
},
|
|
1641
|
-
`cbl-${
|
|
1654
|
+
`cbl-${ie}`
|
|
1642
1655
|
)),
|
|
1643
1656
|
/* @__PURE__ */ h.jsx("path", { d: Z.left, fill: X.side }),
|
|
1644
|
-
/* @__PURE__ */ h.jsx("path", { d: Z.left, fill: `url(
|
|
1657
|
+
/* @__PURE__ */ h.jsx("path", { d: Z.left, fill: `url(#${E ? "print" : "shade"}-${e.id})` }),
|
|
1645
1658
|
/* @__PURE__ */ h.jsx("path", { d: Z.right, fill: X.front }),
|
|
1646
|
-
/* @__PURE__ */ h.jsx("path", { d: Z.right, fill: `url(
|
|
1647
|
-
Z.cornerFrontRight?.map((
|
|
1659
|
+
/* @__PURE__ */ h.jsx("path", { d: Z.right, fill: `url(#${E ? "print" : "shade"}-${e.id})` }),
|
|
1660
|
+
Z.cornerFrontRight?.map((ne, ie) => /* @__PURE__ */ h.jsx(
|
|
1648
1661
|
"path",
|
|
1649
1662
|
{
|
|
1650
|
-
d:
|
|
1651
|
-
fill: Re(X.front, X.side,
|
|
1663
|
+
d: ne.path,
|
|
1664
|
+
fill: Re(X.front, X.side, ne.intensity)
|
|
1652
1665
|
},
|
|
1653
|
-
`cfr-${
|
|
1666
|
+
`cfr-${ie}`
|
|
1654
1667
|
)),
|
|
1655
|
-
Z.cornerFrontLeft?.map((
|
|
1668
|
+
Z.cornerFrontLeft?.map((ne, ie) => /* @__PURE__ */ h.jsx(
|
|
1656
1669
|
"path",
|
|
1657
1670
|
{
|
|
1658
|
-
d:
|
|
1659
|
-
fill: Re(X.front, X.side,
|
|
1671
|
+
d: ne.path,
|
|
1672
|
+
fill: Re(X.front, X.side, ne.intensity)
|
|
1660
1673
|
},
|
|
1661
|
-
`cfl-${
|
|
1674
|
+
`cfl-${ie}`
|
|
1662
1675
|
)),
|
|
1663
1676
|
/* @__PURE__ */ h.jsx("path", { d: Z.top, fill: X.top }),
|
|
1664
|
-
/* @__PURE__ */ h.jsx("path", { d: Z.top, fill: `url(
|
|
1677
|
+
/* @__PURE__ */ h.jsx("path", { d: Z.top, fill: `url(#${E ? "print" : "sheen"}-${e.id})` }),
|
|
1665
1678
|
/* @__PURE__ */ h.jsx(
|
|
1666
1679
|
"path",
|
|
1667
1680
|
{
|
|
@@ -1672,16 +1685,16 @@ function Pa({ config: e, options: n = {}, className: r, style: t, onNodeClick: i
|
|
|
1672
1685
|
strokeLinejoin: "round"
|
|
1673
1686
|
}
|
|
1674
1687
|
),
|
|
1675
|
-
c &&
|
|
1676
|
-
|
|
1688
|
+
c && S.label && /* @__PURE__ */ h.jsx(
|
|
1689
|
+
co,
|
|
1677
1690
|
{
|
|
1678
|
-
x:
|
|
1679
|
-
y:
|
|
1680
|
-
z:
|
|
1681
|
-
fontSize:
|
|
1682
|
-
color:
|
|
1683
|
-
shadow: `url(#label-${e.id})`,
|
|
1684
|
-
children:
|
|
1691
|
+
x: S.x + S.width / 2,
|
|
1692
|
+
y: S.y + S.depth / 2,
|
|
1693
|
+
z: ge + S.height + 2,
|
|
1694
|
+
fontSize: S.width > 70 ? 9 : 8,
|
|
1695
|
+
color: I,
|
|
1696
|
+
shadow: E ? void 0 : `url(#label-${e.id})`,
|
|
1697
|
+
children: S.label
|
|
1685
1698
|
}
|
|
1686
1699
|
)
|
|
1687
1700
|
]
|
|
@@ -1692,35 +1705,35 @@ function Pa({ config: e, options: n = {}, className: r, style: t, onNodeClick: i
|
|
|
1692
1705
|
c && /* @__PURE__ */ h.jsx(
|
|
1693
1706
|
"text",
|
|
1694
1707
|
{
|
|
1695
|
-
x:
|
|
1696
|
-
y:
|
|
1697
|
-
fill:
|
|
1708
|
+
x: w(-25, m.depth / 2, M.elevation + 15).screenX - 35,
|
|
1709
|
+
y: w(-25, m.depth / 2, M.elevation + 15).screenY,
|
|
1710
|
+
fill: B,
|
|
1698
1711
|
fontSize: 9,
|
|
1699
1712
|
fontWeight: 500,
|
|
1700
|
-
fontFamily:
|
|
1701
|
-
opacity:
|
|
1702
|
-
style: { letterSpacing: "0.05em", textTransform:
|
|
1703
|
-
children:
|
|
1713
|
+
fontFamily: Kn,
|
|
1714
|
+
opacity: b ? 0.9 : 0.6,
|
|
1715
|
+
style: { letterSpacing: "0.05em", textTransform: b ? "uppercase" : "none" },
|
|
1716
|
+
children: M.name
|
|
1704
1717
|
}
|
|
1705
1718
|
)
|
|
1706
1719
|
]
|
|
1707
1720
|
},
|
|
1708
|
-
|
|
1721
|
+
s
|
|
1709
1722
|
);
|
|
1710
1723
|
}) }),
|
|
1711
|
-
|
|
1712
|
-
|
|
1724
|
+
b && /* @__PURE__ */ h.jsx(
|
|
1725
|
+
ut,
|
|
1713
1726
|
{
|
|
1714
1727
|
style: k,
|
|
1715
|
-
plate:
|
|
1716
|
-
rows:
|
|
1717
|
-
n:
|
|
1718
|
-
name:
|
|
1719
|
-
subtitle:
|
|
1720
|
-
color:
|
|
1721
|
-
})).sort((
|
|
1728
|
+
plate: R,
|
|
1729
|
+
rows: y.map((M, s) => ({
|
|
1730
|
+
n: j.get(s) || s + 1,
|
|
1731
|
+
name: M.label,
|
|
1732
|
+
subtitle: x[M.tier]?.name,
|
|
1733
|
+
color: M.color
|
|
1734
|
+
})).sort((M, s) => M.n - s.n),
|
|
1722
1735
|
title: e.title,
|
|
1723
|
-
tally: `${String(
|
|
1736
|
+
tally: `${String(y.length).padStart(2, "0")} CMP / ${String(x.length).padStart(2, "0")} TIER`,
|
|
1724
1737
|
className: ""
|
|
1725
1738
|
}
|
|
1726
1739
|
)
|
|
@@ -1728,21 +1741,21 @@ function Pa({ config: e, options: n = {}, className: r, style: t, onNodeClick: i
|
|
|
1728
1741
|
}
|
|
1729
1742
|
) });
|
|
1730
1743
|
}
|
|
1731
|
-
function
|
|
1732
|
-
const l =
|
|
1744
|
+
function fo({ width: e, depth: n, elevation: r, ink: i, isGround: t }) {
|
|
1745
|
+
const l = w(0, 0, r), o = xe(e, n, 0, l.screenX, l.screenY).top;
|
|
1733
1746
|
return /* @__PURE__ */ h.jsx(
|
|
1734
1747
|
"path",
|
|
1735
1748
|
{
|
|
1736
1749
|
d: o,
|
|
1737
1750
|
fill: "none",
|
|
1738
|
-
stroke:
|
|
1739
|
-
strokeWidth:
|
|
1740
|
-
strokeDasharray:
|
|
1741
|
-
opacity:
|
|
1751
|
+
stroke: i,
|
|
1752
|
+
strokeWidth: t ? 1 : 0.7,
|
|
1753
|
+
strokeDasharray: t ? void 0 : "5 4",
|
|
1754
|
+
opacity: t ? 0.9 : 0.7
|
|
1742
1755
|
}
|
|
1743
1756
|
);
|
|
1744
1757
|
}
|
|
1745
|
-
const vn = '"JetBrains Mono", "Fira Code", "SF Mono", Consolas, monospace',
|
|
1758
|
+
const vn = '"JetBrains Mono", "Fira Code", "SF Mono", Consolas, monospace', uo = {
|
|
1746
1759
|
blue: { top: "#3b82f6", side: "#2563eb", front: "#1d4ed8" },
|
|
1747
1760
|
violet: { top: "#8b5cf6", side: "#7c3aed", front: "#6d28d9" },
|
|
1748
1761
|
cyan: { top: "#06b6d4", side: "#0891b2", front: "#0e7490" },
|
|
@@ -1750,7 +1763,7 @@ const vn = '"JetBrains Mono", "Fira Code", "SF Mono", Consolas, monospace', co =
|
|
|
1750
1763
|
amber: { top: "#f59e0b", side: "#d97706", front: "#b45309" },
|
|
1751
1764
|
rose: { top: "#f43f5e", side: "#e11d48", front: "#be123c" },
|
|
1752
1765
|
slate: { top: "#475569", side: "#334155", front: "#1e293b" }
|
|
1753
|
-
},
|
|
1766
|
+
}, po = {
|
|
1754
1767
|
blue: { top: "#93c5fd", side: "#60a5fa", front: "#3b82f6" },
|
|
1755
1768
|
violet: { top: "#c4b5fd", side: "#a78bfa", front: "#8b5cf6" },
|
|
1756
1769
|
cyan: { top: "#67e8f9", side: "#22d3ee", front: "#06b6d4" },
|
|
@@ -1760,23 +1773,23 @@ const vn = '"JetBrains Mono", "Fira Code", "SF Mono", Consolas, monospace', co =
|
|
|
1760
1773
|
slate: { top: "#e2e8f0", side: "#cbd5e1", front: "#94a3b8" }
|
|
1761
1774
|
};
|
|
1762
1775
|
function Pe(e, n, r) {
|
|
1763
|
-
const
|
|
1764
|
-
const
|
|
1776
|
+
const i = (f) => {
|
|
1777
|
+
const u = f.replace("#", "");
|
|
1765
1778
|
return {
|
|
1766
|
-
r: parseInt(
|
|
1767
|
-
g: parseInt(
|
|
1768
|
-
b: parseInt(
|
|
1779
|
+
r: parseInt(u.substring(0, 2), 16),
|
|
1780
|
+
g: parseInt(u.substring(2, 4), 16),
|
|
1781
|
+
b: parseInt(u.substring(4, 6), 16)
|
|
1769
1782
|
};
|
|
1770
|
-
},
|
|
1783
|
+
}, t = i(e), l = i(n), o = Math.round(t.r + (l.r - t.r) * r), a = Math.round(t.g + (l.g - t.g) * r), c = Math.round(t.b + (l.b - t.b) * r);
|
|
1771
1784
|
return `rgb(${o},${a},${c})`;
|
|
1772
1785
|
}
|
|
1773
|
-
function
|
|
1774
|
-
const { theme: n, canvas: r, origin:
|
|
1775
|
-
const
|
|
1776
|
-
return
|
|
1786
|
+
function ho(e) {
|
|
1787
|
+
const { theme: n, canvas: r, origin: i, tiers: t, floorSize: l, nodes: o, cornerRadius: a = 0 } = e, c = e.material === "retro-print", f = c ? Dn : n === "dark" ? uo : po, u = c ? n === "dark" ? "#202624" : "#f4efe6" : n === "dark" ? "#0f172a" : "#fafafa", d = c ? "#202a29" : n === "dark" ? "#e2e8f0" : "#1e293b", p = c ? n === "dark" ? "#c5c4b7" : "#505b56" : n === "dark" ? "#64748b" : "#94a3b8", x = [...o].sort((y, v) => {
|
|
1788
|
+
const k = t[y.tier]?.elevation || 0, b = t[v.tier]?.elevation || 0;
|
|
1789
|
+
return k !== b ? k - b : v.x + v.width + (v.y + v.depth) - (y.x + y.width + (y.y + y.depth));
|
|
1777
1790
|
});
|
|
1778
|
-
let
|
|
1779
|
-
|
|
1791
|
+
let m = `<svg xmlns="http://www.w3.org/2000/svg" width="${r.width}" height="${r.height}" style="background:${u}">`;
|
|
1792
|
+
m += `<defs>${c ? `<pattern id="print" width="64" height="64" patternUnits="userSpaceOnUse">${Yn.map((y) => `<circle cx="${y.x}" cy="${y.y}" r="${y.r}" fill="#26362e" opacity="0.32"/>`).join("")}</pattern>` : ""}
|
|
1780
1793
|
<pattern id="grid" width="24" height="24" patternUnits="userSpaceOnUse">
|
|
1781
1794
|
<circle cx="12" cy="12" r="0.5" fill="${n === "dark" ? "#1e293b" : "#e2e8f0"}"/>
|
|
1782
1795
|
</pattern>
|
|
@@ -1789,131 +1802,131 @@ function fo(e) {
|
|
|
1789
1802
|
<linearGradient id="sheen" x1="0" y1="0" x2="0" y2="1"><stop offset="0%" stop-color="#ffffff" stop-opacity="0.18"/><stop offset="55%" stop-color="#ffffff" stop-opacity="0.04"/><stop offset="100%" stop-color="#ffffff" stop-opacity="0"/></linearGradient>
|
|
1790
1803
|
<linearGradient id="shade" x1="0" y1="0" x2="0" y2="1"><stop offset="0%" stop-color="#000000" stop-opacity="0"/><stop offset="100%" stop-color="#000000" stop-opacity="0.24"/></linearGradient>
|
|
1791
1804
|
<filter id="labelshadow" x="-40%" y="-40%" width="180%" height="180%"><feDropShadow dx="0" dy="0.5" stdDeviation="0.7" flood-color="#000000" flood-opacity="0.7"/></filter>
|
|
1792
|
-
</defs>`,
|
|
1793
|
-
for (let
|
|
1794
|
-
const
|
|
1795
|
-
|
|
1796
|
-
const
|
|
1797
|
-
|
|
1798
|
-
for (const
|
|
1799
|
-
const
|
|
1800
|
-
|
|
1801
|
-
const
|
|
1802
|
-
if (
|
|
1805
|
+
</defs>`, m += `<rect width="100%" height="100%" fill="${c ? u : "url(#bg)"}"/>`, m += '<rect width="100%" height="100%" fill="url(#grid)" opacity="0.5"/>', m += `<g transform="translate(${i.x},${i.y})">`;
|
|
1806
|
+
for (let y = 0; y < t.length; y++) {
|
|
1807
|
+
const v = t[y], k = x.filter((j) => j.tier === y), b = v.offset || { x: 0, y: 0 };
|
|
1808
|
+
m += `<g transform="translate(${b.x},${b.y})">`;
|
|
1809
|
+
const Y = y === 0 ? 8 : 2, E = xe(l.width, l.depth, Y, 0, 0), C = w(0, 0, y === 0 ? -2 : v.elevation), N = v.floorColor || (n === "dark" ? "#0f172a" : "#f8fafc"), I = v.floorOpacity || (y === 0 ? 0.95 : 0.5);
|
|
1810
|
+
m += `<g transform="translate(${C.screenX},${C.screenY})">`, y === 0 && (m += `<g transform="translate(4,4)" opacity="0.2"><path d="${E.top}" fill="#000"/></g>`), m += `<path d="${E.top}" fill="${N}" opacity="${I}"/>`, y === 0 && (m += `<path d="${E.left}" fill="${n === "dark" ? "#0f172a" : "#cbd5e1"}" opacity="0.8"/>`, m += `<path d="${E.right}" fill="${n === "dark" ? "#1e293b" : "#94a3b8"}" opacity="0.8"/>`), m += `<path d="${E.top}" fill="none" stroke="${v.borderColor || (n === "dark" ? "#475569" : "#94a3b8")}" stroke-width="${y === 0 ? 1.5 : 0.75}" opacity="${y === 0 ? 1 : 0.6}"/>`, m += "</g>";
|
|
1811
|
+
for (const j of k) {
|
|
1812
|
+
const R = v.elevation + 5, ee = w(j.x, j.y, R), L = xe(j.width, j.depth, j.height, ee.screenX, ee.screenY, a), D = f[j.color] || f.slate, re = j.opacity ?? 1;
|
|
1813
|
+
m += `<g opacity="${re}">`;
|
|
1814
|
+
const K = w(j.x - 3, j.y - 3, v.elevation), H = xe(j.width + 6, j.depth + 6, 0, K.screenX, K.screenY, a).top;
|
|
1815
|
+
if (m += `<path d="${H}" fill="#000000" opacity="0.3" filter="url(#contact)"/>`, L.cornerBackRight)
|
|
1803
1816
|
for (const T of L.cornerBackRight)
|
|
1804
|
-
|
|
1817
|
+
m += `<path d="${T.path}" fill="${Pe(D.front, D.side, T.intensity)}"/>`;
|
|
1805
1818
|
if (L.cornerBackLeft)
|
|
1806
1819
|
for (const T of L.cornerBackLeft)
|
|
1807
|
-
|
|
1808
|
-
if (
|
|
1820
|
+
m += `<path d="${T.path}" fill="${Pe(D.side, D.front, T.intensity)}"/>`;
|
|
1821
|
+
if (m += `<path d="${L.left}" fill="${D.side}"/>`, m += `<path d="${L.left}" fill="url(#${c ? "print" : "shade"})"/>`, m += `<path d="${L.right}" fill="${D.front}"/>`, m += `<path d="${L.right}" fill="url(#${c ? "print" : "shade"})"/>`, L.cornerFrontRight)
|
|
1809
1822
|
for (const T of L.cornerFrontRight)
|
|
1810
|
-
|
|
1823
|
+
m += `<path d="${T.path}" fill="${Pe(D.front, D.side, T.intensity)}"/>`;
|
|
1811
1824
|
if (L.cornerFrontLeft)
|
|
1812
1825
|
for (const T of L.cornerFrontLeft)
|
|
1813
|
-
|
|
1814
|
-
if (
|
|
1815
|
-
const T =
|
|
1816
|
-
|
|
1826
|
+
m += `<path d="${T.path}" fill="${Pe(D.front, D.side, T.intensity)}"/>`;
|
|
1827
|
+
if (m += `<path d="${L.top}" fill="${D.top}"/>`, m += `<path d="${L.top}" fill="url(#${c ? "print" : "sheen"})"/>`, m += `<path d="${L.top}" fill="none" stroke="rgba(255,255,255,0.28)" stroke-width="0.75" stroke-linejoin="round"/>`, j.label) {
|
|
1828
|
+
const T = w(j.x + j.width / 2, j.y + j.depth / 2, R + j.height + 2), U = j.width > 70 ? 9 : 8;
|
|
1829
|
+
m += `<g transform="translate(${T.screenX},${T.screenY})" filter="${c ? "none" : "url(#labelshadow)"}">`, m += '<g transform="matrix(0.866,-0.5,0.866,0.5,0,0)">', m += `<text x="0" y="0" text-anchor="middle" fill="${d}" font-size="${U}" font-weight="600" font-family='${vn}' style="text-transform:uppercase;letter-spacing:0.06em">${j.label}</text>`, m += "</g></g>";
|
|
1817
1830
|
}
|
|
1818
|
-
|
|
1831
|
+
m += "</g>";
|
|
1819
1832
|
}
|
|
1820
|
-
const
|
|
1821
|
-
|
|
1833
|
+
const B = w(-25, l.depth / 2, v.elevation + 15);
|
|
1834
|
+
m += `<text x="${B.screenX - 35}" y="${B.screenY}" fill="${p}" font-size="9" font-weight="500" font-family='${vn}' opacity="0.6" style="letter-spacing:0.05em">${v.name}</text>`, m += "</g>";
|
|
1822
1835
|
}
|
|
1823
|
-
return
|
|
1836
|
+
return m += "</g></svg>", m;
|
|
1824
1837
|
}
|
|
1825
|
-
function
|
|
1826
|
-
e.innerHTML =
|
|
1838
|
+
function Ha(e, n) {
|
|
1839
|
+
e.innerHTML = ho(n);
|
|
1827
1840
|
}
|
|
1828
|
-
function
|
|
1841
|
+
function Vn(e) {
|
|
1829
1842
|
return typeof e > "u" || e === null;
|
|
1830
1843
|
}
|
|
1831
|
-
function
|
|
1844
|
+
function xo(e) {
|
|
1832
1845
|
return typeof e == "object" && e !== null;
|
|
1833
1846
|
}
|
|
1834
|
-
function
|
|
1835
|
-
return Array.isArray(e) ? e :
|
|
1847
|
+
function mo(e) {
|
|
1848
|
+
return Array.isArray(e) ? e : Vn(e) ? [] : [e];
|
|
1836
1849
|
}
|
|
1837
|
-
function
|
|
1838
|
-
var r,
|
|
1850
|
+
function yo(e, n) {
|
|
1851
|
+
var r, i, t, l;
|
|
1839
1852
|
if (n)
|
|
1840
|
-
for (l = Object.keys(n), r = 0,
|
|
1841
|
-
|
|
1853
|
+
for (l = Object.keys(n), r = 0, i = l.length; r < i; r += 1)
|
|
1854
|
+
t = l[r], e[t] = n[t];
|
|
1842
1855
|
return e;
|
|
1843
1856
|
}
|
|
1844
|
-
function
|
|
1845
|
-
var r = "",
|
|
1846
|
-
for (
|
|
1857
|
+
function go(e, n) {
|
|
1858
|
+
var r = "", i;
|
|
1859
|
+
for (i = 0; i < n; i += 1)
|
|
1847
1860
|
r += e;
|
|
1848
1861
|
return r;
|
|
1849
1862
|
}
|
|
1850
|
-
function
|
|
1863
|
+
function ko(e) {
|
|
1851
1864
|
return e === 0 && Number.NEGATIVE_INFINITY === 1 / e;
|
|
1852
1865
|
}
|
|
1853
|
-
var
|
|
1854
|
-
isNothing:
|
|
1855
|
-
isObject:
|
|
1856
|
-
toArray:
|
|
1857
|
-
repeat:
|
|
1858
|
-
isNegativeZero:
|
|
1859
|
-
extend:
|
|
1866
|
+
var vo = Vn, bo = xo, Ao = mo, _o = go, wo = ko, Co = yo, z = {
|
|
1867
|
+
isNothing: vo,
|
|
1868
|
+
isObject: bo,
|
|
1869
|
+
toArray: Ao,
|
|
1870
|
+
repeat: _o,
|
|
1871
|
+
isNegativeZero: wo,
|
|
1872
|
+
extend: Co
|
|
1860
1873
|
};
|
|
1861
|
-
function
|
|
1862
|
-
var r = "",
|
|
1874
|
+
function Zn(e, n) {
|
|
1875
|
+
var r = "", i = e.reason || "(unknown reason)";
|
|
1863
1876
|
return e.mark ? (e.mark.name && (r += 'in "' + e.mark.name + '" '), r += "(" + (e.mark.line + 1) + ":" + (e.mark.column + 1) + ")", !n && e.mark.snippet && (r += `
|
|
1864
1877
|
|
|
1865
|
-
` + e.mark.snippet),
|
|
1878
|
+
` + e.mark.snippet), i + " " + r) : i;
|
|
1866
1879
|
}
|
|
1867
1880
|
function Te(e, n) {
|
|
1868
|
-
Error.call(this), this.name = "YAMLException", this.reason = e, this.mark = n, this.message =
|
|
1881
|
+
Error.call(this), this.name = "YAMLException", this.reason = e, this.mark = n, this.message = Zn(this, !1), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack || "";
|
|
1869
1882
|
}
|
|
1870
1883
|
Te.prototype = Object.create(Error.prototype);
|
|
1871
1884
|
Te.prototype.constructor = Te;
|
|
1872
1885
|
Te.prototype.toString = function(n) {
|
|
1873
|
-
return this.name + ": " +
|
|
1886
|
+
return this.name + ": " + Zn(this, n);
|
|
1874
1887
|
};
|
|
1875
1888
|
var J = Te;
|
|
1876
|
-
function qe(e, n, r,
|
|
1877
|
-
var l = "", o = "", a = Math.floor(
|
|
1878
|
-
return
|
|
1889
|
+
function qe(e, n, r, i, t) {
|
|
1890
|
+
var l = "", o = "", a = Math.floor(t / 2) - 1;
|
|
1891
|
+
return i - n > a && (l = " ... ", n = i - a + l.length), r - i > a && (o = " ...", r = i + a - o.length), {
|
|
1879
1892
|
str: l + e.slice(n, r).replace(/\t/g, "→") + o,
|
|
1880
|
-
pos:
|
|
1893
|
+
pos: i - n + l.length
|
|
1881
1894
|
// relative position
|
|
1882
1895
|
};
|
|
1883
1896
|
}
|
|
1884
1897
|
function Xe(e, n) {
|
|
1885
1898
|
return z.repeat(" ", n - e.length) + e;
|
|
1886
1899
|
}
|
|
1887
|
-
function
|
|
1900
|
+
function $o(e, n) {
|
|
1888
1901
|
if (n = Object.create(n || null), !e.buffer) return null;
|
|
1889
1902
|
n.maxLength || (n.maxLength = 79), typeof n.indent != "number" && (n.indent = 1), typeof n.linesBefore != "number" && (n.linesBefore = 3), typeof n.linesAfter != "number" && (n.linesAfter = 2);
|
|
1890
|
-
for (var r = /\r?\n|\r|\0/g,
|
|
1891
|
-
|
|
1892
|
-
o < 0 && (o =
|
|
1893
|
-
var a = "", c,
|
|
1903
|
+
for (var r = /\r?\n|\r|\0/g, i = [0], t = [], l, o = -1; l = r.exec(e.buffer); )
|
|
1904
|
+
t.push(l.index), i.push(l.index + l[0].length), e.position <= l.index && o < 0 && (o = i.length - 2);
|
|
1905
|
+
o < 0 && (o = i.length - 1);
|
|
1906
|
+
var a = "", c, f, u = Math.min(e.line + n.linesAfter, t.length).toString().length, d = n.maxLength - (n.indent + u + 3);
|
|
1894
1907
|
for (c = 1; c <= n.linesBefore && !(o - c < 0); c++)
|
|
1895
|
-
|
|
1908
|
+
f = qe(
|
|
1896
1909
|
e.buffer,
|
|
1897
|
-
t[o - c],
|
|
1898
1910
|
i[o - c],
|
|
1899
|
-
|
|
1911
|
+
t[o - c],
|
|
1912
|
+
e.position - (i[o] - i[o - c]),
|
|
1900
1913
|
d
|
|
1901
|
-
), a = z.repeat(" ", n.indent) + Xe((e.line - c + 1).toString(),
|
|
1914
|
+
), a = z.repeat(" ", n.indent) + Xe((e.line - c + 1).toString(), u) + " | " + f.str + `
|
|
1902
1915
|
` + a;
|
|
1903
|
-
for (
|
|
1904
|
-
`, a += z.repeat("-", n.indent +
|
|
1905
|
-
`, c = 1; c <= n.linesAfter && !(o + c >=
|
|
1906
|
-
|
|
1916
|
+
for (f = qe(e.buffer, i[o], t[o], e.position, d), a += z.repeat(" ", n.indent) + Xe((e.line + 1).toString(), u) + " | " + f.str + `
|
|
1917
|
+
`, a += z.repeat("-", n.indent + u + 3 + f.pos) + `^
|
|
1918
|
+
`, c = 1; c <= n.linesAfter && !(o + c >= t.length); c++)
|
|
1919
|
+
f = qe(
|
|
1907
1920
|
e.buffer,
|
|
1908
|
-
t[o + c],
|
|
1909
1921
|
i[o + c],
|
|
1910
|
-
|
|
1922
|
+
t[o + c],
|
|
1923
|
+
e.position - (i[o] - i[o + c]),
|
|
1911
1924
|
d
|
|
1912
|
-
), a += z.repeat(" ", n.indent) + Xe((e.line + c + 1).toString(),
|
|
1925
|
+
), a += z.repeat(" ", n.indent) + Xe((e.line + c + 1).toString(), u) + " | " + f.str + `
|
|
1913
1926
|
`;
|
|
1914
1927
|
return a.replace(/\n$/, "");
|
|
1915
1928
|
}
|
|
1916
|
-
var
|
|
1929
|
+
var So = $o, Eo = [
|
|
1917
1930
|
"kind",
|
|
1918
1931
|
"multi",
|
|
1919
1932
|
"resolve",
|
|
@@ -1924,41 +1937,41 @@ var wo = _o, Co = [
|
|
|
1924
1937
|
"representName",
|
|
1925
1938
|
"defaultStyle",
|
|
1926
1939
|
"styleAliases"
|
|
1927
|
-
],
|
|
1940
|
+
], To = [
|
|
1928
1941
|
"scalar",
|
|
1929
1942
|
"sequence",
|
|
1930
1943
|
"mapping"
|
|
1931
1944
|
];
|
|
1932
|
-
function
|
|
1945
|
+
function Mo(e) {
|
|
1933
1946
|
var n = {};
|
|
1934
1947
|
return e !== null && Object.keys(e).forEach(function(r) {
|
|
1935
|
-
e[r].forEach(function(
|
|
1936
|
-
n[String(
|
|
1948
|
+
e[r].forEach(function(i) {
|
|
1949
|
+
n[String(i)] = r;
|
|
1937
1950
|
});
|
|
1938
1951
|
}), n;
|
|
1939
1952
|
}
|
|
1940
|
-
function
|
|
1953
|
+
function jo(e, n) {
|
|
1941
1954
|
if (n = n || {}, Object.keys(n).forEach(function(r) {
|
|
1942
|
-
if (
|
|
1955
|
+
if (Eo.indexOf(r) === -1)
|
|
1943
1956
|
throw new J('Unknown option "' + r + '" is met in definition of "' + e + '" YAML type.');
|
|
1944
1957
|
}), this.options = n, this.tag = e, this.kind = n.kind || null, this.resolve = n.resolve || function() {
|
|
1945
1958
|
return !0;
|
|
1946
1959
|
}, this.construct = n.construct || function(r) {
|
|
1947
1960
|
return r;
|
|
1948
|
-
}, this.instanceOf = n.instanceOf || null, this.predicate = n.predicate || null, this.represent = n.represent || null, this.representName = n.representName || null, this.defaultStyle = n.defaultStyle || null, this.multi = n.multi || !1, this.styleAliases =
|
|
1961
|
+
}, this.instanceOf = n.instanceOf || null, this.predicate = n.predicate || null, this.represent = n.represent || null, this.representName = n.representName || null, this.defaultStyle = n.defaultStyle || null, this.multi = n.multi || !1, this.styleAliases = Mo(n.styleAliases || null), To.indexOf(this.kind) === -1)
|
|
1949
1962
|
throw new J('Unknown kind "' + this.kind + '" is specified for "' + e + '" YAML type.');
|
|
1950
1963
|
}
|
|
1951
|
-
var G =
|
|
1964
|
+
var G = jo;
|
|
1952
1965
|
function bn(e, n) {
|
|
1953
1966
|
var r = [];
|
|
1954
|
-
return e[n].forEach(function(
|
|
1955
|
-
var
|
|
1967
|
+
return e[n].forEach(function(i) {
|
|
1968
|
+
var t = r.length;
|
|
1956
1969
|
r.forEach(function(l, o) {
|
|
1957
|
-
l.tag ===
|
|
1958
|
-
}), r[
|
|
1970
|
+
l.tag === i.tag && l.kind === i.kind && l.multi === i.multi && (t = o);
|
|
1971
|
+
}), r[t] = i;
|
|
1959
1972
|
}), r;
|
|
1960
1973
|
}
|
|
1961
|
-
function
|
|
1974
|
+
function Oo() {
|
|
1962
1975
|
var e = {
|
|
1963
1976
|
scalar: {},
|
|
1964
1977
|
sequence: {},
|
|
@@ -1971,24 +1984,24 @@ function To() {
|
|
|
1971
1984
|
fallback: []
|
|
1972
1985
|
}
|
|
1973
1986
|
}, n, r;
|
|
1974
|
-
function t
|
|
1975
|
-
|
|
1987
|
+
function i(t) {
|
|
1988
|
+
t.multi ? (e.multi[t.kind].push(t), e.multi.fallback.push(t)) : e[t.kind][t.tag] = e.fallback[t.tag] = t;
|
|
1976
1989
|
}
|
|
1977
1990
|
for (n = 0, r = arguments.length; n < r; n += 1)
|
|
1978
|
-
arguments[n].forEach(
|
|
1991
|
+
arguments[n].forEach(i);
|
|
1979
1992
|
return e;
|
|
1980
1993
|
}
|
|
1981
1994
|
function Ve(e) {
|
|
1982
1995
|
return this.extend(e);
|
|
1983
1996
|
}
|
|
1984
1997
|
Ve.prototype.extend = function(n) {
|
|
1985
|
-
var r = [],
|
|
1998
|
+
var r = [], i = [];
|
|
1986
1999
|
if (n instanceof G)
|
|
1987
|
-
|
|
2000
|
+
i.push(n);
|
|
1988
2001
|
else if (Array.isArray(n))
|
|
1989
|
-
|
|
2002
|
+
i = i.concat(n);
|
|
1990
2003
|
else if (n && (Array.isArray(n.implicit) || Array.isArray(n.explicit)))
|
|
1991
|
-
n.implicit && (r = r.concat(n.implicit)), n.explicit && (
|
|
2004
|
+
n.implicit && (r = r.concat(n.implicit)), n.explicit && (i = i.concat(n.explicit));
|
|
1992
2005
|
else
|
|
1993
2006
|
throw new J("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");
|
|
1994
2007
|
r.forEach(function(l) {
|
|
@@ -1998,51 +2011,51 @@ Ve.prototype.extend = function(n) {
|
|
|
1998
2011
|
throw new J("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");
|
|
1999
2012
|
if (l.multi)
|
|
2000
2013
|
throw new J("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.");
|
|
2001
|
-
}),
|
|
2014
|
+
}), i.forEach(function(l) {
|
|
2002
2015
|
if (!(l instanceof G))
|
|
2003
2016
|
throw new J("Specified list of YAML types (or a single Type object) contains a non-Type object.");
|
|
2004
2017
|
});
|
|
2005
|
-
var
|
|
2006
|
-
return
|
|
2018
|
+
var t = Object.create(Ve.prototype);
|
|
2019
|
+
return t.implicit = (this.implicit || []).concat(r), t.explicit = (this.explicit || []).concat(i), t.compiledImplicit = bn(t, "implicit"), t.compiledExplicit = bn(t, "explicit"), t.compiledTypeMap = Oo(t.compiledImplicit, t.compiledExplicit), t;
|
|
2007
2020
|
};
|
|
2008
|
-
var
|
|
2021
|
+
var Jn = Ve, Qn = new G("tag:yaml.org,2002:str", {
|
|
2009
2022
|
kind: "scalar",
|
|
2010
2023
|
construct: function(e) {
|
|
2011
2024
|
return e !== null ? e : "";
|
|
2012
2025
|
}
|
|
2013
|
-
}),
|
|
2026
|
+
}), er = new G("tag:yaml.org,2002:seq", {
|
|
2014
2027
|
kind: "sequence",
|
|
2015
2028
|
construct: function(e) {
|
|
2016
2029
|
return e !== null ? e : [];
|
|
2017
2030
|
}
|
|
2018
|
-
}),
|
|
2031
|
+
}), nr = new G("tag:yaml.org,2002:map", {
|
|
2019
2032
|
kind: "mapping",
|
|
2020
2033
|
construct: function(e) {
|
|
2021
2034
|
return e !== null ? e : {};
|
|
2022
2035
|
}
|
|
2023
|
-
}),
|
|
2036
|
+
}), rr = new Jn({
|
|
2024
2037
|
explicit: [
|
|
2025
|
-
|
|
2026
|
-
|
|
2027
|
-
|
|
2038
|
+
Qn,
|
|
2039
|
+
er,
|
|
2040
|
+
nr
|
|
2028
2041
|
]
|
|
2029
2042
|
});
|
|
2030
|
-
function
|
|
2043
|
+
function No(e) {
|
|
2031
2044
|
if (e === null) return !0;
|
|
2032
2045
|
var n = e.length;
|
|
2033
2046
|
return n === 1 && e === "~" || n === 4 && (e === "null" || e === "Null" || e === "NULL");
|
|
2034
2047
|
}
|
|
2035
|
-
function
|
|
2048
|
+
function Lo() {
|
|
2036
2049
|
return null;
|
|
2037
2050
|
}
|
|
2038
|
-
function
|
|
2051
|
+
function Fo(e) {
|
|
2039
2052
|
return e === null;
|
|
2040
2053
|
}
|
|
2041
|
-
var
|
|
2054
|
+
var tr = new G("tag:yaml.org,2002:null", {
|
|
2042
2055
|
kind: "scalar",
|
|
2043
|
-
resolve:
|
|
2044
|
-
construct:
|
|
2045
|
-
predicate:
|
|
2056
|
+
resolve: No,
|
|
2057
|
+
construct: Lo,
|
|
2058
|
+
predicate: Fo,
|
|
2046
2059
|
represent: {
|
|
2047
2060
|
canonical: function() {
|
|
2048
2061
|
return "~";
|
|
@@ -2062,22 +2075,22 @@ var nr = new G("tag:yaml.org,2002:null", {
|
|
|
2062
2075
|
},
|
|
2063
2076
|
defaultStyle: "lowercase"
|
|
2064
2077
|
});
|
|
2065
|
-
function
|
|
2078
|
+
function Io(e) {
|
|
2066
2079
|
if (e === null) return !1;
|
|
2067
2080
|
var n = e.length;
|
|
2068
2081
|
return n === 4 && (e === "true" || e === "True" || e === "TRUE") || n === 5 && (e === "false" || e === "False" || e === "FALSE");
|
|
2069
2082
|
}
|
|
2070
|
-
function
|
|
2083
|
+
function Ro(e) {
|
|
2071
2084
|
return e === "true" || e === "True" || e === "TRUE";
|
|
2072
2085
|
}
|
|
2073
|
-
function
|
|
2086
|
+
function Po(e) {
|
|
2074
2087
|
return Object.prototype.toString.call(e) === "[object Boolean]";
|
|
2075
2088
|
}
|
|
2076
|
-
var
|
|
2089
|
+
var ir = new G("tag:yaml.org,2002:bool", {
|
|
2077
2090
|
kind: "scalar",
|
|
2078
|
-
resolve:
|
|
2079
|
-
construct:
|
|
2080
|
-
predicate:
|
|
2091
|
+
resolve: Io,
|
|
2092
|
+
construct: Ro,
|
|
2093
|
+
predicate: Po,
|
|
2081
2094
|
represent: {
|
|
2082
2095
|
lowercase: function(e) {
|
|
2083
2096
|
return e ? "true" : "false";
|
|
@@ -2091,73 +2104,73 @@ var rr = new G("tag:yaml.org,2002:bool", {
|
|
|
2091
2104
|
},
|
|
2092
2105
|
defaultStyle: "lowercase"
|
|
2093
2106
|
});
|
|
2094
|
-
function
|
|
2107
|
+
function Do(e) {
|
|
2095
2108
|
return 48 <= e && e <= 57 || 65 <= e && e <= 70 || 97 <= e && e <= 102;
|
|
2096
2109
|
}
|
|
2097
|
-
function
|
|
2110
|
+
function Yo(e) {
|
|
2098
2111
|
return 48 <= e && e <= 55;
|
|
2099
2112
|
}
|
|
2100
|
-
function
|
|
2113
|
+
function Bo(e) {
|
|
2101
2114
|
return 48 <= e && e <= 57;
|
|
2102
2115
|
}
|
|
2103
|
-
function
|
|
2116
|
+
function Ho(e) {
|
|
2104
2117
|
if (e === null) return !1;
|
|
2105
|
-
var n = e.length, r = 0,
|
|
2118
|
+
var n = e.length, r = 0, i = !1, t;
|
|
2106
2119
|
if (!n) return !1;
|
|
2107
|
-
if (
|
|
2120
|
+
if (t = e[r], (t === "-" || t === "+") && (t = e[++r]), t === "0") {
|
|
2108
2121
|
if (r + 1 === n) return !0;
|
|
2109
|
-
if (
|
|
2122
|
+
if (t = e[++r], t === "b") {
|
|
2110
2123
|
for (r++; r < n; r++)
|
|
2111
|
-
if (
|
|
2112
|
-
if (
|
|
2113
|
-
|
|
2124
|
+
if (t = e[r], t !== "_") {
|
|
2125
|
+
if (t !== "0" && t !== "1") return !1;
|
|
2126
|
+
i = !0;
|
|
2114
2127
|
}
|
|
2115
|
-
return
|
|
2128
|
+
return i && t !== "_";
|
|
2116
2129
|
}
|
|
2117
|
-
if (
|
|
2130
|
+
if (t === "x") {
|
|
2118
2131
|
for (r++; r < n; r++)
|
|
2119
|
-
if (
|
|
2120
|
-
if (!
|
|
2121
|
-
|
|
2132
|
+
if (t = e[r], t !== "_") {
|
|
2133
|
+
if (!Do(e.charCodeAt(r))) return !1;
|
|
2134
|
+
i = !0;
|
|
2122
2135
|
}
|
|
2123
|
-
return
|
|
2136
|
+
return i && t !== "_";
|
|
2124
2137
|
}
|
|
2125
|
-
if (
|
|
2138
|
+
if (t === "o") {
|
|
2126
2139
|
for (r++; r < n; r++)
|
|
2127
|
-
if (
|
|
2128
|
-
if (!
|
|
2129
|
-
|
|
2140
|
+
if (t = e[r], t !== "_") {
|
|
2141
|
+
if (!Yo(e.charCodeAt(r))) return !1;
|
|
2142
|
+
i = !0;
|
|
2130
2143
|
}
|
|
2131
|
-
return
|
|
2144
|
+
return i && t !== "_";
|
|
2132
2145
|
}
|
|
2133
2146
|
}
|
|
2134
|
-
if (
|
|
2147
|
+
if (t === "_") return !1;
|
|
2135
2148
|
for (; r < n; r++)
|
|
2136
|
-
if (
|
|
2137
|
-
if (!
|
|
2149
|
+
if (t = e[r], t !== "_") {
|
|
2150
|
+
if (!Bo(e.charCodeAt(r)))
|
|
2138
2151
|
return !1;
|
|
2139
|
-
|
|
2152
|
+
i = !0;
|
|
2140
2153
|
}
|
|
2141
|
-
return !(!
|
|
2154
|
+
return !(!i || t === "_");
|
|
2142
2155
|
}
|
|
2143
|
-
function
|
|
2144
|
-
var n = e, r = 1,
|
|
2145
|
-
if (n.indexOf("_") !== -1 && (n = n.replace(/_/g, "")),
|
|
2146
|
-
if (
|
|
2156
|
+
function Wo(e) {
|
|
2157
|
+
var n = e, r = 1, i;
|
|
2158
|
+
if (n.indexOf("_") !== -1 && (n = n.replace(/_/g, "")), i = n[0], (i === "-" || i === "+") && (i === "-" && (r = -1), n = n.slice(1), i = n[0]), n === "0") return 0;
|
|
2159
|
+
if (i === "0") {
|
|
2147
2160
|
if (n[1] === "b") return r * parseInt(n.slice(2), 2);
|
|
2148
2161
|
if (n[1] === "x") return r * parseInt(n.slice(2), 16);
|
|
2149
2162
|
if (n[1] === "o") return r * parseInt(n.slice(2), 8);
|
|
2150
2163
|
}
|
|
2151
2164
|
return r * parseInt(n, 10);
|
|
2152
2165
|
}
|
|
2153
|
-
function
|
|
2166
|
+
function Uo(e) {
|
|
2154
2167
|
return Object.prototype.toString.call(e) === "[object Number]" && e % 1 === 0 && !z.isNegativeZero(e);
|
|
2155
2168
|
}
|
|
2156
|
-
var
|
|
2169
|
+
var or = new G("tag:yaml.org,2002:int", {
|
|
2157
2170
|
kind: "scalar",
|
|
2158
|
-
resolve:
|
|
2159
|
-
construct:
|
|
2160
|
-
predicate:
|
|
2171
|
+
resolve: Ho,
|
|
2172
|
+
construct: Wo,
|
|
2173
|
+
predicate: Uo,
|
|
2161
2174
|
represent: {
|
|
2162
2175
|
binary: function(e) {
|
|
2163
2176
|
return e >= 0 ? "0b" + e.toString(2) : "-0b" + e.toString(2).slice(1);
|
|
@@ -2180,21 +2193,21 @@ var ir = new G("tag:yaml.org,2002:int", {
|
|
|
2180
2193
|
decimal: [10, "dec"],
|
|
2181
2194
|
hexadecimal: [16, "hex"]
|
|
2182
2195
|
}
|
|
2183
|
-
}),
|
|
2196
|
+
}), zo = new RegExp(
|
|
2184
2197
|
// 2.5e4, 2.5 and integers
|
|
2185
2198
|
"^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"
|
|
2186
2199
|
);
|
|
2187
|
-
function
|
|
2188
|
-
return !(e === null || !
|
|
2200
|
+
function qo(e) {
|
|
2201
|
+
return !(e === null || !zo.test(e) || // Quick hack to not allow integers end with `_`
|
|
2189
2202
|
// Probably should update regexp & check speed
|
|
2190
2203
|
e[e.length - 1] === "_");
|
|
2191
2204
|
}
|
|
2192
|
-
function
|
|
2205
|
+
function Xo(e) {
|
|
2193
2206
|
var n, r;
|
|
2194
2207
|
return n = e.replace(/_/g, "").toLowerCase(), r = n[0] === "-" ? -1 : 1, "+-".indexOf(n[0]) >= 0 && (n = n.slice(1)), n === ".inf" ? r === 1 ? Number.POSITIVE_INFINITY : Number.NEGATIVE_INFINITY : n === ".nan" ? NaN : r * parseFloat(n, 10);
|
|
2195
2208
|
}
|
|
2196
|
-
var
|
|
2197
|
-
function
|
|
2209
|
+
var Go = /^[-+]?[0-9]+e/;
|
|
2210
|
+
function Ko(e, n) {
|
|
2198
2211
|
var r;
|
|
2199
2212
|
if (isNaN(e))
|
|
2200
2213
|
switch (n) {
|
|
@@ -2225,102 +2238,102 @@ function qo(e, n) {
|
|
|
2225
2238
|
}
|
|
2226
2239
|
else if (z.isNegativeZero(e))
|
|
2227
2240
|
return "-0.0";
|
|
2228
|
-
return r = e.toString(10),
|
|
2241
|
+
return r = e.toString(10), Go.test(r) ? r.replace("e", ".e") : r;
|
|
2229
2242
|
}
|
|
2230
|
-
function
|
|
2243
|
+
function Vo(e) {
|
|
2231
2244
|
return Object.prototype.toString.call(e) === "[object Number]" && (e % 1 !== 0 || z.isNegativeZero(e));
|
|
2232
2245
|
}
|
|
2233
|
-
var
|
|
2246
|
+
var lr = new G("tag:yaml.org,2002:float", {
|
|
2234
2247
|
kind: "scalar",
|
|
2235
|
-
resolve:
|
|
2236
|
-
construct:
|
|
2237
|
-
predicate:
|
|
2238
|
-
represent:
|
|
2248
|
+
resolve: qo,
|
|
2249
|
+
construct: Xo,
|
|
2250
|
+
predicate: Vo,
|
|
2251
|
+
represent: Ko,
|
|
2239
2252
|
defaultStyle: "lowercase"
|
|
2240
|
-
}),
|
|
2253
|
+
}), ar = rr.extend({
|
|
2241
2254
|
implicit: [
|
|
2242
|
-
|
|
2243
|
-
rr,
|
|
2255
|
+
tr,
|
|
2244
2256
|
ir,
|
|
2245
|
-
|
|
2257
|
+
or,
|
|
2258
|
+
lr
|
|
2246
2259
|
]
|
|
2247
|
-
}),
|
|
2260
|
+
}), cr = ar, sr = new RegExp(
|
|
2248
2261
|
"^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"
|
|
2249
|
-
),
|
|
2262
|
+
), fr = new RegExp(
|
|
2250
2263
|
"^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$"
|
|
2251
2264
|
);
|
|
2252
|
-
function
|
|
2253
|
-
return e === null ? !1 :
|
|
2254
|
-
}
|
|
2255
|
-
function
|
|
2256
|
-
var n, r,
|
|
2257
|
-
if (n =
|
|
2258
|
-
if (r = +n[1],
|
|
2259
|
-
return new Date(Date.UTC(r,
|
|
2265
|
+
function Zo(e) {
|
|
2266
|
+
return e === null ? !1 : sr.exec(e) !== null || fr.exec(e) !== null;
|
|
2267
|
+
}
|
|
2268
|
+
function Jo(e) {
|
|
2269
|
+
var n, r, i, t, l, o, a, c = 0, f = null, u, d, p;
|
|
2270
|
+
if (n = sr.exec(e), n === null && (n = fr.exec(e)), n === null) throw new Error("Date resolve error");
|
|
2271
|
+
if (r = +n[1], i = +n[2] - 1, t = +n[3], !n[4])
|
|
2272
|
+
return new Date(Date.UTC(r, i, t));
|
|
2260
2273
|
if (l = +n[4], o = +n[5], a = +n[6], n[7]) {
|
|
2261
2274
|
for (c = n[7].slice(0, 3); c.length < 3; )
|
|
2262
2275
|
c += "0";
|
|
2263
2276
|
c = +c;
|
|
2264
2277
|
}
|
|
2265
|
-
return n[9] && (
|
|
2278
|
+
return n[9] && (u = +n[10], d = +(n[11] || 0), f = (u * 60 + d) * 6e4, n[9] === "-" && (f = -f)), p = new Date(Date.UTC(r, i, t, l, o, a, c)), f && p.setTime(p.getTime() - f), p;
|
|
2266
2279
|
}
|
|
2267
|
-
function
|
|
2280
|
+
function Qo(e) {
|
|
2268
2281
|
return e.toISOString();
|
|
2269
2282
|
}
|
|
2270
|
-
var
|
|
2283
|
+
var ur = new G("tag:yaml.org,2002:timestamp", {
|
|
2271
2284
|
kind: "scalar",
|
|
2272
|
-
resolve:
|
|
2273
|
-
construct:
|
|
2285
|
+
resolve: Zo,
|
|
2286
|
+
construct: Jo,
|
|
2274
2287
|
instanceOf: Date,
|
|
2275
|
-
represent:
|
|
2288
|
+
represent: Qo
|
|
2276
2289
|
});
|
|
2277
|
-
function
|
|
2290
|
+
function el(e) {
|
|
2278
2291
|
return e === "<<" || e === null;
|
|
2279
2292
|
}
|
|
2280
|
-
var
|
|
2293
|
+
var pr = new G("tag:yaml.org,2002:merge", {
|
|
2281
2294
|
kind: "scalar",
|
|
2282
|
-
resolve:
|
|
2295
|
+
resolve: el
|
|
2283
2296
|
}), on = `ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
2284
2297
|
\r`;
|
|
2285
|
-
function
|
|
2298
|
+
function nl(e) {
|
|
2286
2299
|
if (e === null) return !1;
|
|
2287
|
-
var n, r,
|
|
2288
|
-
for (r = 0; r <
|
|
2300
|
+
var n, r, i = 0, t = e.length, l = on;
|
|
2301
|
+
for (r = 0; r < t; r++)
|
|
2289
2302
|
if (n = l.indexOf(e.charAt(r)), !(n > 64)) {
|
|
2290
2303
|
if (n < 0) return !1;
|
|
2291
|
-
|
|
2304
|
+
i += 6;
|
|
2292
2305
|
}
|
|
2293
|
-
return
|
|
2306
|
+
return i % 8 === 0;
|
|
2294
2307
|
}
|
|
2295
|
-
function
|
|
2296
|
-
var n, r,
|
|
2297
|
-
for (n = 0; n <
|
|
2298
|
-
n % 4 === 0 && n && (a.push(o >> 16 & 255), a.push(o >> 8 & 255), a.push(o & 255)), o = o << 6 | l.indexOf(
|
|
2299
|
-
return r =
|
|
2308
|
+
function rl(e) {
|
|
2309
|
+
var n, r, i = e.replace(/[\r\n=]/g, ""), t = i.length, l = on, o = 0, a = [];
|
|
2310
|
+
for (n = 0; n < t; n++)
|
|
2311
|
+
n % 4 === 0 && n && (a.push(o >> 16 & 255), a.push(o >> 8 & 255), a.push(o & 255)), o = o << 6 | l.indexOf(i.charAt(n));
|
|
2312
|
+
return r = t % 4 * 6, r === 0 ? (a.push(o >> 16 & 255), a.push(o >> 8 & 255), a.push(o & 255)) : r === 18 ? (a.push(o >> 10 & 255), a.push(o >> 2 & 255)) : r === 12 && a.push(o >> 4 & 255), new Uint8Array(a);
|
|
2300
2313
|
}
|
|
2301
|
-
function
|
|
2302
|
-
var n = "", r = 0,
|
|
2303
|
-
for (
|
|
2304
|
-
|
|
2305
|
-
return
|
|
2314
|
+
function tl(e) {
|
|
2315
|
+
var n = "", r = 0, i, t, l = e.length, o = on;
|
|
2316
|
+
for (i = 0; i < l; i++)
|
|
2317
|
+
i % 3 === 0 && i && (n += o[r >> 18 & 63], n += o[r >> 12 & 63], n += o[r >> 6 & 63], n += o[r & 63]), r = (r << 8) + e[i];
|
|
2318
|
+
return t = l % 3, t === 0 ? (n += o[r >> 18 & 63], n += o[r >> 12 & 63], n += o[r >> 6 & 63], n += o[r & 63]) : t === 2 ? (n += o[r >> 10 & 63], n += o[r >> 4 & 63], n += o[r << 2 & 63], n += o[64]) : t === 1 && (n += o[r >> 2 & 63], n += o[r << 4 & 63], n += o[64], n += o[64]), n;
|
|
2306
2319
|
}
|
|
2307
|
-
function
|
|
2320
|
+
function il(e) {
|
|
2308
2321
|
return Object.prototype.toString.call(e) === "[object Uint8Array]";
|
|
2309
2322
|
}
|
|
2310
|
-
var
|
|
2323
|
+
var hr = new G("tag:yaml.org,2002:binary", {
|
|
2311
2324
|
kind: "scalar",
|
|
2312
|
-
resolve:
|
|
2313
|
-
construct:
|
|
2314
|
-
predicate:
|
|
2315
|
-
represent:
|
|
2316
|
-
}),
|
|
2317
|
-
function
|
|
2325
|
+
resolve: nl,
|
|
2326
|
+
construct: rl,
|
|
2327
|
+
predicate: il,
|
|
2328
|
+
represent: tl
|
|
2329
|
+
}), ol = Object.prototype.hasOwnProperty, ll = Object.prototype.toString;
|
|
2330
|
+
function al(e) {
|
|
2318
2331
|
if (e === null) return !0;
|
|
2319
|
-
var n = [], r,
|
|
2320
|
-
for (r = 0,
|
|
2321
|
-
if (
|
|
2322
|
-
for (l in
|
|
2323
|
-
if (
|
|
2332
|
+
var n = [], r, i, t, l, o, a = e;
|
|
2333
|
+
for (r = 0, i = a.length; r < i; r += 1) {
|
|
2334
|
+
if (t = a[r], o = !1, ll.call(t) !== "[object Object]") return !1;
|
|
2335
|
+
for (l in t)
|
|
2336
|
+
if (ol.call(t, l))
|
|
2324
2337
|
if (!o) o = !0;
|
|
2325
2338
|
else return !1;
|
|
2326
2339
|
if (!o) return !1;
|
|
@@ -2329,62 +2342,62 @@ function tl(e) {
|
|
|
2329
2342
|
}
|
|
2330
2343
|
return !0;
|
|
2331
2344
|
}
|
|
2332
|
-
function
|
|
2345
|
+
function cl(e) {
|
|
2333
2346
|
return e !== null ? e : [];
|
|
2334
2347
|
}
|
|
2335
|
-
var
|
|
2348
|
+
var dr = new G("tag:yaml.org,2002:omap", {
|
|
2336
2349
|
kind: "sequence",
|
|
2337
|
-
resolve:
|
|
2338
|
-
construct:
|
|
2339
|
-
}),
|
|
2340
|
-
function
|
|
2350
|
+
resolve: al,
|
|
2351
|
+
construct: cl
|
|
2352
|
+
}), sl = Object.prototype.toString;
|
|
2353
|
+
function fl(e) {
|
|
2341
2354
|
if (e === null) return !0;
|
|
2342
|
-
var n, r,
|
|
2355
|
+
var n, r, i, t, l, o = e;
|
|
2343
2356
|
for (l = new Array(o.length), n = 0, r = o.length; n < r; n += 1) {
|
|
2344
|
-
if (
|
|
2345
|
-
l[n] = [
|
|
2357
|
+
if (i = o[n], sl.call(i) !== "[object Object]" || (t = Object.keys(i), t.length !== 1)) return !1;
|
|
2358
|
+
l[n] = [t[0], i[t[0]]];
|
|
2346
2359
|
}
|
|
2347
2360
|
return !0;
|
|
2348
2361
|
}
|
|
2349
|
-
function
|
|
2362
|
+
function ul(e) {
|
|
2350
2363
|
if (e === null) return [];
|
|
2351
|
-
var n, r,
|
|
2364
|
+
var n, r, i, t, l, o = e;
|
|
2352
2365
|
for (l = new Array(o.length), n = 0, r = o.length; n < r; n += 1)
|
|
2353
|
-
|
|
2366
|
+
i = o[n], t = Object.keys(i), l[n] = [t[0], i[t[0]]];
|
|
2354
2367
|
return l;
|
|
2355
2368
|
}
|
|
2356
|
-
var
|
|
2369
|
+
var xr = new G("tag:yaml.org,2002:pairs", {
|
|
2357
2370
|
kind: "sequence",
|
|
2358
|
-
resolve:
|
|
2359
|
-
construct:
|
|
2360
|
-
}),
|
|
2361
|
-
function
|
|
2371
|
+
resolve: fl,
|
|
2372
|
+
construct: ul
|
|
2373
|
+
}), pl = Object.prototype.hasOwnProperty;
|
|
2374
|
+
function hl(e) {
|
|
2362
2375
|
if (e === null) return !0;
|
|
2363
2376
|
var n, r = e;
|
|
2364
2377
|
for (n in r)
|
|
2365
|
-
if (
|
|
2378
|
+
if (pl.call(r, n) && r[n] !== null)
|
|
2366
2379
|
return !1;
|
|
2367
2380
|
return !0;
|
|
2368
2381
|
}
|
|
2369
|
-
function
|
|
2382
|
+
function dl(e) {
|
|
2370
2383
|
return e !== null ? e : {};
|
|
2371
2384
|
}
|
|
2372
|
-
var
|
|
2385
|
+
var mr = new G("tag:yaml.org,2002:set", {
|
|
2373
2386
|
kind: "mapping",
|
|
2374
|
-
resolve:
|
|
2375
|
-
construct:
|
|
2376
|
-
}), ln =
|
|
2387
|
+
resolve: hl,
|
|
2388
|
+
construct: dl
|
|
2389
|
+
}), ln = cr.extend({
|
|
2377
2390
|
implicit: [
|
|
2378
|
-
|
|
2379
|
-
|
|
2391
|
+
ur,
|
|
2392
|
+
pr
|
|
2380
2393
|
],
|
|
2381
2394
|
explicit: [
|
|
2382
|
-
ur,
|
|
2383
|
-
pr,
|
|
2384
2395
|
hr,
|
|
2385
|
-
dr
|
|
2396
|
+
dr,
|
|
2397
|
+
xr,
|
|
2398
|
+
mr
|
|
2386
2399
|
]
|
|
2387
|
-
}), he = Object.prototype.hasOwnProperty, Ye = 1,
|
|
2400
|
+
}), he = Object.prototype.hasOwnProperty, Ye = 1, yr = 2, gr = 3, Be = 4, Ge = 1, xl = 2, An = 3, ml = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, yl = /[\x85\u2028\u2029]/, gl = /[,\[\]\{\}]/, kr = /^(?:!|!!|![a-z\-]+!)$/i, vr = /^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;
|
|
2388
2401
|
function _n(e) {
|
|
2389
2402
|
return Object.prototype.toString.call(e);
|
|
2390
2403
|
}
|
|
@@ -2394,33 +2407,33 @@ function le(e) {
|
|
|
2394
2407
|
function me(e) {
|
|
2395
2408
|
return e === 9 || e === 32;
|
|
2396
2409
|
}
|
|
2397
|
-
function
|
|
2410
|
+
function Q(e) {
|
|
2398
2411
|
return e === 9 || e === 32 || e === 10 || e === 13;
|
|
2399
2412
|
}
|
|
2400
|
-
function
|
|
2413
|
+
function be(e) {
|
|
2401
2414
|
return e === 44 || e === 91 || e === 93 || e === 123 || e === 125;
|
|
2402
2415
|
}
|
|
2403
|
-
function
|
|
2416
|
+
function kl(e) {
|
|
2404
2417
|
var n;
|
|
2405
2418
|
return 48 <= e && e <= 57 ? e - 48 : (n = e | 32, 97 <= n && n <= 102 ? n - 97 + 10 : -1);
|
|
2406
2419
|
}
|
|
2407
|
-
function
|
|
2420
|
+
function vl(e) {
|
|
2408
2421
|
return e === 120 ? 2 : e === 117 ? 4 : e === 85 ? 8 : 0;
|
|
2409
2422
|
}
|
|
2410
|
-
function
|
|
2423
|
+
function bl(e) {
|
|
2411
2424
|
return 48 <= e && e <= 57 ? e - 48 : -1;
|
|
2412
2425
|
}
|
|
2413
2426
|
function wn(e) {
|
|
2414
2427
|
return e === 48 ? "\0" : e === 97 ? "\x07" : e === 98 ? "\b" : e === 116 || e === 9 ? " " : e === 110 ? `
|
|
2415
2428
|
` : e === 118 ? "\v" : e === 102 ? "\f" : e === 114 ? "\r" : e === 101 ? "\x1B" : e === 32 ? " " : e === 34 ? '"' : e === 47 ? "/" : e === 92 ? "\\" : e === 78 ? "
" : e === 95 ? " " : e === 76 ? "\u2028" : e === 80 ? "\u2029" : "";
|
|
2416
2429
|
}
|
|
2417
|
-
function
|
|
2430
|
+
function Al(e) {
|
|
2418
2431
|
return e <= 65535 ? String.fromCharCode(e) : String.fromCharCode(
|
|
2419
2432
|
(e - 65536 >> 10) + 55296,
|
|
2420
2433
|
(e - 65536 & 1023) + 56320
|
|
2421
2434
|
);
|
|
2422
2435
|
}
|
|
2423
|
-
function
|
|
2436
|
+
function br(e, n, r) {
|
|
2424
2437
|
n === "__proto__" ? Object.defineProperty(e, n, {
|
|
2425
2438
|
configurable: !0,
|
|
2426
2439
|
enumerable: !0,
|
|
@@ -2428,13 +2441,13 @@ function kr(e, n, r) {
|
|
|
2428
2441
|
value: r
|
|
2429
2442
|
}) : e[n] = r;
|
|
2430
2443
|
}
|
|
2431
|
-
var
|
|
2432
|
-
for (var
|
|
2433
|
-
|
|
2434
|
-
function
|
|
2444
|
+
var Ar = new Array(256), _r = new Array(256);
|
|
2445
|
+
for (var ke = 0; ke < 256; ke++)
|
|
2446
|
+
Ar[ke] = wn(ke) ? 1 : 0, _r[ke] = wn(ke);
|
|
2447
|
+
function _l(e, n) {
|
|
2435
2448
|
this.input = e, this.filename = n.filename || null, this.schema = n.schema || ln, this.onWarning = n.onWarning || null, this.legacy = n.legacy || !1, this.json = n.json || !1, this.listener = n.listener || null, this.implicitTypes = this.schema.compiledImplicit, this.typeMap = this.schema.compiledTypeMap, this.length = e.length, this.position = 0, this.line = 0, this.lineStart = 0, this.lineIndent = 0, this.firstTabInLine = -1, this.documents = [];
|
|
2436
2449
|
}
|
|
2437
|
-
function
|
|
2450
|
+
function wr(e, n) {
|
|
2438
2451
|
var r = {
|
|
2439
2452
|
name: e.filename,
|
|
2440
2453
|
buffer: e.input.slice(0, -1),
|
|
@@ -2443,179 +2456,179 @@ function Ar(e, n) {
|
|
|
2443
2456
|
line: e.line,
|
|
2444
2457
|
column: e.position - e.lineStart
|
|
2445
2458
|
};
|
|
2446
|
-
return r.snippet =
|
|
2459
|
+
return r.snippet = So(r), new J(n, r);
|
|
2447
2460
|
}
|
|
2448
2461
|
function _(e, n) {
|
|
2449
|
-
throw
|
|
2462
|
+
throw wr(e, n);
|
|
2450
2463
|
}
|
|
2451
2464
|
function He(e, n) {
|
|
2452
|
-
e.onWarning && e.onWarning.call(null,
|
|
2465
|
+
e.onWarning && e.onWarning.call(null, wr(e, n));
|
|
2453
2466
|
}
|
|
2454
2467
|
var Cn = {
|
|
2455
|
-
YAML: function(n, r,
|
|
2456
|
-
var
|
|
2457
|
-
n.version !== null && _(n, "duplication of %YAML directive"),
|
|
2468
|
+
YAML: function(n, r, i) {
|
|
2469
|
+
var t, l, o;
|
|
2470
|
+
n.version !== null && _(n, "duplication of %YAML directive"), i.length !== 1 && _(n, "YAML directive accepts exactly one argument"), t = /^([0-9]+)\.([0-9]+)$/.exec(i[0]), t === null && _(n, "ill-formed argument of the YAML directive"), l = parseInt(t[1], 10), o = parseInt(t[2], 10), l !== 1 && _(n, "unacceptable YAML version of the document"), n.version = i[0], n.checkLineBreaks = o < 2, o !== 1 && o !== 2 && He(n, "unsupported YAML version of the document");
|
|
2458
2471
|
},
|
|
2459
|
-
TAG: function(n, r,
|
|
2460
|
-
var
|
|
2461
|
-
|
|
2472
|
+
TAG: function(n, r, i) {
|
|
2473
|
+
var t, l;
|
|
2474
|
+
i.length !== 2 && _(n, "TAG directive accepts exactly two arguments"), t = i[0], l = i[1], kr.test(t) || _(n, "ill-formed tag handle (first argument) of the TAG directive"), he.call(n.tagMap, t) && _(n, 'there is a previously declared suffix for "' + t + '" tag handle'), vr.test(l) || _(n, "ill-formed tag prefix (second argument) of the TAG directive");
|
|
2462
2475
|
try {
|
|
2463
2476
|
l = decodeURIComponent(l);
|
|
2464
2477
|
} catch {
|
|
2465
2478
|
_(n, "tag prefix is malformed: " + l);
|
|
2466
2479
|
}
|
|
2467
|
-
n.tagMap[
|
|
2480
|
+
n.tagMap[t] = l;
|
|
2468
2481
|
}
|
|
2469
2482
|
};
|
|
2470
|
-
function pe(e, n, r,
|
|
2471
|
-
var
|
|
2483
|
+
function pe(e, n, r, i) {
|
|
2484
|
+
var t, l, o, a;
|
|
2472
2485
|
if (n < r) {
|
|
2473
|
-
if (a = e.input.slice(n, r),
|
|
2474
|
-
for (
|
|
2475
|
-
o = a.charCodeAt(
|
|
2476
|
-
else
|
|
2486
|
+
if (a = e.input.slice(n, r), i)
|
|
2487
|
+
for (t = 0, l = a.length; t < l; t += 1)
|
|
2488
|
+
o = a.charCodeAt(t), o === 9 || 32 <= o && o <= 1114111 || _(e, "expected valid JSON character");
|
|
2489
|
+
else ml.test(a) && _(e, "the stream contains non-printable characters");
|
|
2477
2490
|
e.result += a;
|
|
2478
2491
|
}
|
|
2479
2492
|
}
|
|
2480
|
-
function $n(e, n, r,
|
|
2481
|
-
var
|
|
2482
|
-
for (z.isObject(r) || _(e, "cannot merge mappings; the provided source object is unacceptable"),
|
|
2483
|
-
l =
|
|
2484
|
-
}
|
|
2485
|
-
function
|
|
2486
|
-
var
|
|
2487
|
-
if (Array.isArray(
|
|
2488
|
-
for (
|
|
2489
|
-
Array.isArray(
|
|
2490
|
-
if (typeof
|
|
2493
|
+
function $n(e, n, r, i) {
|
|
2494
|
+
var t, l, o, a;
|
|
2495
|
+
for (z.isObject(r) || _(e, "cannot merge mappings; the provided source object is unacceptable"), t = Object.keys(r), o = 0, a = t.length; o < a; o += 1)
|
|
2496
|
+
l = t[o], he.call(n, l) || (br(n, l, r[l]), i[l] = !0);
|
|
2497
|
+
}
|
|
2498
|
+
function Ae(e, n, r, i, t, l, o, a, c) {
|
|
2499
|
+
var f, u;
|
|
2500
|
+
if (Array.isArray(t))
|
|
2501
|
+
for (t = Array.prototype.slice.call(t), f = 0, u = t.length; f < u; f += 1)
|
|
2502
|
+
Array.isArray(t[f]) && _(e, "nested arrays are not supported inside keys"), typeof t == "object" && _n(t[f]) === "[object Object]" && (t[f] = "[object Object]");
|
|
2503
|
+
if (typeof t == "object" && _n(t) === "[object Object]" && (t = "[object Object]"), t = String(t), n === null && (n = {}), i === "tag:yaml.org,2002:merge")
|
|
2491
2504
|
if (Array.isArray(l))
|
|
2492
|
-
for (
|
|
2493
|
-
$n(e, n, l[
|
|
2505
|
+
for (f = 0, u = l.length; f < u; f += 1)
|
|
2506
|
+
$n(e, n, l[f], r);
|
|
2494
2507
|
else
|
|
2495
2508
|
$n(e, n, l, r);
|
|
2496
2509
|
else
|
|
2497
|
-
!e.json && !he.call(r,
|
|
2510
|
+
!e.json && !he.call(r, t) && he.call(n, t) && (e.line = o || e.line, e.lineStart = a || e.lineStart, e.position = c || e.position, _(e, "duplicated mapping key")), br(n, t, l), delete r[t];
|
|
2498
2511
|
return n;
|
|
2499
2512
|
}
|
|
2500
2513
|
function an(e) {
|
|
2501
2514
|
var n;
|
|
2502
2515
|
n = e.input.charCodeAt(e.position), n === 10 ? e.position++ : n === 13 ? (e.position++, e.input.charCodeAt(e.position) === 10 && e.position++) : _(e, "a line break is expected"), e.line += 1, e.lineStart = e.position, e.firstTabInLine = -1;
|
|
2503
2516
|
}
|
|
2504
|
-
function
|
|
2505
|
-
for (var
|
|
2506
|
-
for (; me(
|
|
2507
|
-
|
|
2508
|
-
if (n &&
|
|
2517
|
+
function W(e, n, r) {
|
|
2518
|
+
for (var i = 0, t = e.input.charCodeAt(e.position); t !== 0; ) {
|
|
2519
|
+
for (; me(t); )
|
|
2520
|
+
t === 9 && e.firstTabInLine === -1 && (e.firstTabInLine = e.position), t = e.input.charCodeAt(++e.position);
|
|
2521
|
+
if (n && t === 35)
|
|
2509
2522
|
do
|
|
2510
|
-
|
|
2511
|
-
while (
|
|
2512
|
-
if (le(
|
|
2513
|
-
for (an(e),
|
|
2514
|
-
e.lineIndent++,
|
|
2523
|
+
t = e.input.charCodeAt(++e.position);
|
|
2524
|
+
while (t !== 10 && t !== 13 && t !== 0);
|
|
2525
|
+
if (le(t))
|
|
2526
|
+
for (an(e), t = e.input.charCodeAt(e.position), i++, e.lineIndent = 0; t === 32; )
|
|
2527
|
+
e.lineIndent++, t = e.input.charCodeAt(++e.position);
|
|
2515
2528
|
else
|
|
2516
2529
|
break;
|
|
2517
2530
|
}
|
|
2518
|
-
return r !== -1 &&
|
|
2531
|
+
return r !== -1 && i !== 0 && e.lineIndent < r && He(e, "deficient indentation"), i;
|
|
2519
2532
|
}
|
|
2520
2533
|
function ze(e) {
|
|
2521
2534
|
var n = e.position, r;
|
|
2522
|
-
return r = e.input.charCodeAt(n), !!((r === 45 || r === 46) && r === e.input.charCodeAt(n + 1) && r === e.input.charCodeAt(n + 2) && (n += 3, r = e.input.charCodeAt(n), r === 0 ||
|
|
2535
|
+
return r = e.input.charCodeAt(n), !!((r === 45 || r === 46) && r === e.input.charCodeAt(n + 1) && r === e.input.charCodeAt(n + 2) && (n += 3, r = e.input.charCodeAt(n), r === 0 || Q(r)));
|
|
2523
2536
|
}
|
|
2524
2537
|
function cn(e, n) {
|
|
2525
2538
|
n === 1 ? e.result += " " : n > 1 && (e.result += z.repeat(`
|
|
2526
2539
|
`, n - 1));
|
|
2527
2540
|
}
|
|
2528
|
-
function
|
|
2529
|
-
var
|
|
2530
|
-
if (
|
|
2541
|
+
function wl(e, n, r) {
|
|
2542
|
+
var i, t, l, o, a, c, f, u, d = e.kind, p = e.result, x;
|
|
2543
|
+
if (x = e.input.charCodeAt(e.position), Q(x) || be(x) || x === 35 || x === 38 || x === 42 || x === 33 || x === 124 || x === 62 || x === 39 || x === 34 || x === 37 || x === 64 || x === 96 || (x === 63 || x === 45) && (t = e.input.charCodeAt(e.position + 1), Q(t) || r && be(t)))
|
|
2531
2544
|
return !1;
|
|
2532
|
-
for (e.kind = "scalar", e.result = "", l = o = e.position, a = !1;
|
|
2533
|
-
if (
|
|
2534
|
-
if (
|
|
2545
|
+
for (e.kind = "scalar", e.result = "", l = o = e.position, a = !1; x !== 0; ) {
|
|
2546
|
+
if (x === 58) {
|
|
2547
|
+
if (t = e.input.charCodeAt(e.position + 1), Q(t) || r && be(t))
|
|
2535
2548
|
break;
|
|
2536
|
-
} else if (
|
|
2537
|
-
if (
|
|
2549
|
+
} else if (x === 35) {
|
|
2550
|
+
if (i = e.input.charCodeAt(e.position - 1), Q(i))
|
|
2538
2551
|
break;
|
|
2539
2552
|
} else {
|
|
2540
|
-
if (e.position === e.lineStart && ze(e) || r &&
|
|
2553
|
+
if (e.position === e.lineStart && ze(e) || r && be(x))
|
|
2541
2554
|
break;
|
|
2542
|
-
if (le(
|
|
2543
|
-
if (c = e.line,
|
|
2544
|
-
a = !0,
|
|
2555
|
+
if (le(x))
|
|
2556
|
+
if (c = e.line, f = e.lineStart, u = e.lineIndent, W(e, !1, -1), e.lineIndent >= n) {
|
|
2557
|
+
a = !0, x = e.input.charCodeAt(e.position);
|
|
2545
2558
|
continue;
|
|
2546
2559
|
} else {
|
|
2547
|
-
e.position = o, e.line = c, e.lineStart =
|
|
2560
|
+
e.position = o, e.line = c, e.lineStart = f, e.lineIndent = u;
|
|
2548
2561
|
break;
|
|
2549
2562
|
}
|
|
2550
2563
|
}
|
|
2551
|
-
a && (pe(e, l, o, !1), cn(e, e.line - c), l = o = e.position, a = !1), me(
|
|
2564
|
+
a && (pe(e, l, o, !1), cn(e, e.line - c), l = o = e.position, a = !1), me(x) || (o = e.position + 1), x = e.input.charCodeAt(++e.position);
|
|
2552
2565
|
}
|
|
2553
|
-
return pe(e, l, o, !1), e.result ? !0 : (e.kind = d, e.result =
|
|
2566
|
+
return pe(e, l, o, !1), e.result ? !0 : (e.kind = d, e.result = p, !1);
|
|
2554
2567
|
}
|
|
2555
|
-
function
|
|
2556
|
-
var r,
|
|
2568
|
+
function Cl(e, n) {
|
|
2569
|
+
var r, i, t;
|
|
2557
2570
|
if (r = e.input.charCodeAt(e.position), r !== 39)
|
|
2558
2571
|
return !1;
|
|
2559
|
-
for (e.kind = "scalar", e.result = "", e.position++,
|
|
2572
|
+
for (e.kind = "scalar", e.result = "", e.position++, i = t = e.position; (r = e.input.charCodeAt(e.position)) !== 0; )
|
|
2560
2573
|
if (r === 39)
|
|
2561
|
-
if (pe(e,
|
|
2562
|
-
|
|
2574
|
+
if (pe(e, i, e.position, !0), r = e.input.charCodeAt(++e.position), r === 39)
|
|
2575
|
+
i = e.position, e.position++, t = e.position;
|
|
2563
2576
|
else
|
|
2564
2577
|
return !0;
|
|
2565
|
-
else le(r) ? (pe(e,
|
|
2578
|
+
else le(r) ? (pe(e, i, t, !0), cn(e, W(e, !1, n)), i = t = e.position) : e.position === e.lineStart && ze(e) ? _(e, "unexpected end of the document within a single quoted scalar") : (e.position++, t = e.position);
|
|
2566
2579
|
_(e, "unexpected end of the stream within a single quoted scalar");
|
|
2567
2580
|
}
|
|
2568
|
-
function
|
|
2569
|
-
var r,
|
|
2581
|
+
function $l(e, n) {
|
|
2582
|
+
var r, i, t, l, o, a;
|
|
2570
2583
|
if (a = e.input.charCodeAt(e.position), a !== 34)
|
|
2571
2584
|
return !1;
|
|
2572
|
-
for (e.kind = "scalar", e.result = "", e.position++, r =
|
|
2585
|
+
for (e.kind = "scalar", e.result = "", e.position++, r = i = e.position; (a = e.input.charCodeAt(e.position)) !== 0; ) {
|
|
2573
2586
|
if (a === 34)
|
|
2574
2587
|
return pe(e, r, e.position, !0), e.position++, !0;
|
|
2575
2588
|
if (a === 92) {
|
|
2576
2589
|
if (pe(e, r, e.position, !0), a = e.input.charCodeAt(++e.position), le(a))
|
|
2577
|
-
|
|
2578
|
-
else if (a < 256 &&
|
|
2579
|
-
e.result +=
|
|
2580
|
-
else if ((o =
|
|
2581
|
-
for (
|
|
2582
|
-
a = e.input.charCodeAt(++e.position), (o =
|
|
2583
|
-
e.result +=
|
|
2590
|
+
W(e, !1, n);
|
|
2591
|
+
else if (a < 256 && Ar[a])
|
|
2592
|
+
e.result += _r[a], e.position++;
|
|
2593
|
+
else if ((o = vl(a)) > 0) {
|
|
2594
|
+
for (t = o, l = 0; t > 0; t--)
|
|
2595
|
+
a = e.input.charCodeAt(++e.position), (o = kl(a)) >= 0 ? l = (l << 4) + o : _(e, "expected hexadecimal character");
|
|
2596
|
+
e.result += Al(l), e.position++;
|
|
2584
2597
|
} else
|
|
2585
2598
|
_(e, "unknown escape sequence");
|
|
2586
|
-
r =
|
|
2587
|
-
} else le(a) ? (pe(e, r,
|
|
2599
|
+
r = i = e.position;
|
|
2600
|
+
} else le(a) ? (pe(e, r, i, !0), cn(e, W(e, !1, n)), r = i = e.position) : e.position === e.lineStart && ze(e) ? _(e, "unexpected end of the document within a double quoted scalar") : (e.position++, i = e.position);
|
|
2588
2601
|
}
|
|
2589
2602
|
_(e, "unexpected end of the stream within a double quoted scalar");
|
|
2590
2603
|
}
|
|
2591
|
-
function
|
|
2592
|
-
var r = !0,
|
|
2593
|
-
if (
|
|
2594
|
-
|
|
2595
|
-
else if (
|
|
2596
|
-
|
|
2604
|
+
function Sl(e, n) {
|
|
2605
|
+
var r = !0, i, t, l, o = e.tag, a, c = e.anchor, f, u, d, p, x, m = /* @__PURE__ */ Object.create(null), y, v, k, b;
|
|
2606
|
+
if (b = e.input.charCodeAt(e.position), b === 91)
|
|
2607
|
+
u = 93, x = !1, a = [];
|
|
2608
|
+
else if (b === 123)
|
|
2609
|
+
u = 125, x = !0, a = {};
|
|
2597
2610
|
else
|
|
2598
2611
|
return !1;
|
|
2599
|
-
for (e.anchor !== null && (e.anchorMap[e.anchor] = a),
|
|
2600
|
-
if (
|
|
2601
|
-
return e.position++, e.tag = o, e.anchor = c, e.kind =
|
|
2602
|
-
r ?
|
|
2612
|
+
for (e.anchor !== null && (e.anchorMap[e.anchor] = a), b = e.input.charCodeAt(++e.position); b !== 0; ) {
|
|
2613
|
+
if (W(e, !0, n), b = e.input.charCodeAt(e.position), b === u)
|
|
2614
|
+
return e.position++, e.tag = o, e.anchor = c, e.kind = x ? "mapping" : "sequence", e.result = a, !0;
|
|
2615
|
+
r ? b === 44 && _(e, "expected the node content, but found ','") : _(e, "missed comma between flow collection entries"), v = y = k = null, d = p = !1, b === 63 && (f = e.input.charCodeAt(e.position + 1), Q(f) && (d = p = !0, e.position++, W(e, !0, n))), i = e.line, t = e.lineStart, l = e.position, _e(e, n, Ye, !1, !0), v = e.tag, y = e.result, W(e, !0, n), b = e.input.charCodeAt(e.position), (p || e.line === i) && b === 58 && (d = !0, b = e.input.charCodeAt(++e.position), W(e, !0, n), _e(e, n, Ye, !1, !0), k = e.result), x ? Ae(e, a, m, v, y, k, i, t, l) : d ? a.push(Ae(e, null, m, v, y, k, i, t, l)) : a.push(y), W(e, !0, n), b = e.input.charCodeAt(e.position), b === 44 ? (r = !0, b = e.input.charCodeAt(++e.position)) : r = !1;
|
|
2603
2616
|
}
|
|
2604
2617
|
_(e, "unexpected end of the stream within a flow collection");
|
|
2605
2618
|
}
|
|
2606
|
-
function
|
|
2607
|
-
var r,
|
|
2619
|
+
function El(e, n) {
|
|
2620
|
+
var r, i, t = Ge, l = !1, o = !1, a = n, c = 0, f = !1, u, d;
|
|
2608
2621
|
if (d = e.input.charCodeAt(e.position), d === 124)
|
|
2609
|
-
|
|
2622
|
+
i = !1;
|
|
2610
2623
|
else if (d === 62)
|
|
2611
|
-
|
|
2624
|
+
i = !0;
|
|
2612
2625
|
else
|
|
2613
2626
|
return !1;
|
|
2614
2627
|
for (e.kind = "scalar", e.result = ""; d !== 0; )
|
|
2615
2628
|
if (d = e.input.charCodeAt(++e.position), d === 43 || d === 45)
|
|
2616
|
-
Ge ===
|
|
2617
|
-
else if ((
|
|
2618
|
-
|
|
2629
|
+
Ge === t ? t = d === 43 ? An : xl : _(e, "repeat of a chomping mode identifier");
|
|
2630
|
+
else if ((u = bl(d)) >= 0)
|
|
2631
|
+
u === 0 ? _(e, "bad explicit indentation width of a block scalar; it cannot be less than one") : o ? _(e, "repeat of an indentation width identifier") : (a = n + u - 1, o = !0);
|
|
2619
2632
|
else
|
|
2620
2633
|
break;
|
|
2621
2634
|
if (me(d)) {
|
|
@@ -2635,13 +2648,13 @@ function Cl(e, n) {
|
|
|
2635
2648
|
continue;
|
|
2636
2649
|
}
|
|
2637
2650
|
if (e.lineIndent < a) {
|
|
2638
|
-
|
|
2639
|
-
`, l ? 1 + c : c) :
|
|
2651
|
+
t === An ? e.result += z.repeat(`
|
|
2652
|
+
`, l ? 1 + c : c) : t === Ge && l && (e.result += `
|
|
2640
2653
|
`);
|
|
2641
2654
|
break;
|
|
2642
2655
|
}
|
|
2643
|
-
for (
|
|
2644
|
-
`, l ? 1 + c : c)) :
|
|
2656
|
+
for (i ? me(d) ? (f = !0, e.result += z.repeat(`
|
|
2657
|
+
`, l ? 1 + c : c)) : f ? (f = !1, e.result += z.repeat(`
|
|
2645
2658
|
`, c + 1)) : c === 0 ? l && (e.result += " ") : e.result += z.repeat(`
|
|
2646
2659
|
`, c) : e.result += z.repeat(`
|
|
2647
2660
|
`, l ? 1 + c : c), l = !0, o = !0, c = 0, r = e.position; !le(d) && d !== 0; )
|
|
@@ -2651,94 +2664,94 @@ function Cl(e, n) {
|
|
|
2651
2664
|
return !0;
|
|
2652
2665
|
}
|
|
2653
2666
|
function Sn(e, n) {
|
|
2654
|
-
var r,
|
|
2667
|
+
var r, i = e.tag, t = e.anchor, l = [], o, a = !1, c;
|
|
2655
2668
|
if (e.firstTabInLine !== -1) return !1;
|
|
2656
|
-
for (e.anchor !== null && (e.anchorMap[e.anchor] = l), c = e.input.charCodeAt(e.position); c !== 0 && (e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, _(e, "tab characters must not be used in indentation")), !(c !== 45 || (o = e.input.charCodeAt(e.position + 1), !
|
|
2657
|
-
if (a = !0, e.position++,
|
|
2669
|
+
for (e.anchor !== null && (e.anchorMap[e.anchor] = l), c = e.input.charCodeAt(e.position); c !== 0 && (e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, _(e, "tab characters must not be used in indentation")), !(c !== 45 || (o = e.input.charCodeAt(e.position + 1), !Q(o)))); ) {
|
|
2670
|
+
if (a = !0, e.position++, W(e, !0, -1) && e.lineIndent <= n) {
|
|
2658
2671
|
l.push(null), c = e.input.charCodeAt(e.position);
|
|
2659
2672
|
continue;
|
|
2660
2673
|
}
|
|
2661
|
-
if (r = e.line,
|
|
2674
|
+
if (r = e.line, _e(e, n, gr, !1, !0), l.push(e.result), W(e, !0, -1), c = e.input.charCodeAt(e.position), (e.line === r || e.lineIndent > n) && c !== 0)
|
|
2662
2675
|
_(e, "bad indentation of a sequence entry");
|
|
2663
2676
|
else if (e.lineIndent < n)
|
|
2664
2677
|
break;
|
|
2665
2678
|
}
|
|
2666
|
-
return a ? (e.tag =
|
|
2679
|
+
return a ? (e.tag = i, e.anchor = t, e.kind = "sequence", e.result = l, !0) : !1;
|
|
2667
2680
|
}
|
|
2668
|
-
function
|
|
2669
|
-
var
|
|
2681
|
+
function Tl(e, n, r) {
|
|
2682
|
+
var i, t, l, o, a, c, f = e.tag, u = e.anchor, d = {}, p = /* @__PURE__ */ Object.create(null), x = null, m = null, y = null, v = !1, k = !1, b;
|
|
2670
2683
|
if (e.firstTabInLine !== -1) return !1;
|
|
2671
|
-
for (e.anchor !== null && (e.anchorMap[e.anchor] = d),
|
|
2672
|
-
if (!
|
|
2673
|
-
|
|
2684
|
+
for (e.anchor !== null && (e.anchorMap[e.anchor] = d), b = e.input.charCodeAt(e.position); b !== 0; ) {
|
|
2685
|
+
if (!v && e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, _(e, "tab characters must not be used in indentation")), i = e.input.charCodeAt(e.position + 1), l = e.line, (b === 63 || b === 58) && Q(i))
|
|
2686
|
+
b === 63 ? (v && (Ae(e, d, p, x, m, null, o, a, c), x = m = y = null), k = !0, v = !0, t = !0) : v ? (v = !1, t = !0) : _(e, "incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"), e.position += 1, b = i;
|
|
2674
2687
|
else {
|
|
2675
|
-
if (o = e.line, a = e.lineStart, c = e.position, !
|
|
2688
|
+
if (o = e.line, a = e.lineStart, c = e.position, !_e(e, r, yr, !1, !0))
|
|
2676
2689
|
break;
|
|
2677
2690
|
if (e.line === l) {
|
|
2678
|
-
for (
|
|
2679
|
-
|
|
2680
|
-
if (
|
|
2681
|
-
|
|
2691
|
+
for (b = e.input.charCodeAt(e.position); me(b); )
|
|
2692
|
+
b = e.input.charCodeAt(++e.position);
|
|
2693
|
+
if (b === 58)
|
|
2694
|
+
b = e.input.charCodeAt(++e.position), Q(b) || _(e, "a whitespace character is expected after the key-value separator within a block mapping"), v && (Ae(e, d, p, x, m, null, o, a, c), x = m = y = null), k = !0, v = !1, t = !1, x = e.tag, m = e.result;
|
|
2682
2695
|
else if (k)
|
|
2683
2696
|
_(e, "can not read an implicit mapping pair; a colon is missed");
|
|
2684
2697
|
else
|
|
2685
|
-
return e.tag =
|
|
2698
|
+
return e.tag = f, e.anchor = u, !0;
|
|
2686
2699
|
} else if (k)
|
|
2687
2700
|
_(e, "can not read a block mapping entry; a multiline key may not be an implicit key");
|
|
2688
2701
|
else
|
|
2689
|
-
return e.tag =
|
|
2702
|
+
return e.tag = f, e.anchor = u, !0;
|
|
2690
2703
|
}
|
|
2691
|
-
if ((e.line === l || e.lineIndent > n) && (
|
|
2704
|
+
if ((e.line === l || e.lineIndent > n) && (v && (o = e.line, a = e.lineStart, c = e.position), _e(e, n, Be, !0, t) && (v ? m = e.result : y = e.result), v || (Ae(e, d, p, x, m, y, o, a, c), x = m = y = null), W(e, !0, -1), b = e.input.charCodeAt(e.position)), (e.line === l || e.lineIndent > n) && b !== 0)
|
|
2692
2705
|
_(e, "bad indentation of a mapping entry");
|
|
2693
2706
|
else if (e.lineIndent < n)
|
|
2694
2707
|
break;
|
|
2695
2708
|
}
|
|
2696
|
-
return
|
|
2709
|
+
return v && Ae(e, d, p, x, m, null, o, a, c), k && (e.tag = f, e.anchor = u, e.kind = "mapping", e.result = d), k;
|
|
2697
2710
|
}
|
|
2698
|
-
function
|
|
2699
|
-
var n, r = !1,
|
|
2711
|
+
function Ml(e) {
|
|
2712
|
+
var n, r = !1, i = !1, t, l, o;
|
|
2700
2713
|
if (o = e.input.charCodeAt(e.position), o !== 33) return !1;
|
|
2701
|
-
if (e.tag !== null && _(e, "duplication of a tag property"), o = e.input.charCodeAt(++e.position), o === 60 ? (r = !0, o = e.input.charCodeAt(++e.position)) : o === 33 ? (
|
|
2714
|
+
if (e.tag !== null && _(e, "duplication of a tag property"), o = e.input.charCodeAt(++e.position), o === 60 ? (r = !0, o = e.input.charCodeAt(++e.position)) : o === 33 ? (i = !0, t = "!!", o = e.input.charCodeAt(++e.position)) : t = "!", n = e.position, r) {
|
|
2702
2715
|
do
|
|
2703
2716
|
o = e.input.charCodeAt(++e.position);
|
|
2704
2717
|
while (o !== 0 && o !== 62);
|
|
2705
2718
|
e.position < e.length ? (l = e.input.slice(n, e.position), o = e.input.charCodeAt(++e.position)) : _(e, "unexpected end of the stream within a verbatim tag");
|
|
2706
2719
|
} else {
|
|
2707
|
-
for (; o !== 0 && !
|
|
2708
|
-
o === 33 && (
|
|
2709
|
-
l = e.input.slice(n, e.position),
|
|
2720
|
+
for (; o !== 0 && !Q(o); )
|
|
2721
|
+
o === 33 && (i ? _(e, "tag suffix cannot contain exclamation marks") : (t = e.input.slice(n - 1, e.position + 1), kr.test(t) || _(e, "named tag handle cannot contain such characters"), i = !0, n = e.position + 1)), o = e.input.charCodeAt(++e.position);
|
|
2722
|
+
l = e.input.slice(n, e.position), gl.test(l) && _(e, "tag suffix cannot contain flow indicator characters");
|
|
2710
2723
|
}
|
|
2711
|
-
l && !
|
|
2724
|
+
l && !vr.test(l) && _(e, "tag name cannot contain such characters: " + l);
|
|
2712
2725
|
try {
|
|
2713
2726
|
l = decodeURIComponent(l);
|
|
2714
2727
|
} catch {
|
|
2715
2728
|
_(e, "tag name is malformed: " + l);
|
|
2716
2729
|
}
|
|
2717
|
-
return r ? e.tag = l : he.call(e.tagMap,
|
|
2730
|
+
return r ? e.tag = l : he.call(e.tagMap, t) ? e.tag = e.tagMap[t] + l : t === "!" ? e.tag = "!" + l : t === "!!" ? e.tag = "tag:yaml.org,2002:" + l : _(e, 'undeclared tag handle "' + t + '"'), !0;
|
|
2718
2731
|
}
|
|
2719
|
-
function
|
|
2732
|
+
function jl(e) {
|
|
2720
2733
|
var n, r;
|
|
2721
2734
|
if (r = e.input.charCodeAt(e.position), r !== 38) return !1;
|
|
2722
|
-
for (e.anchor !== null && _(e, "duplication of an anchor property"), r = e.input.charCodeAt(++e.position), n = e.position; r !== 0 && !
|
|
2735
|
+
for (e.anchor !== null && _(e, "duplication of an anchor property"), r = e.input.charCodeAt(++e.position), n = e.position; r !== 0 && !Q(r) && !be(r); )
|
|
2723
2736
|
r = e.input.charCodeAt(++e.position);
|
|
2724
2737
|
return e.position === n && _(e, "name of an anchor node must contain at least one character"), e.anchor = e.input.slice(n, e.position), !0;
|
|
2725
2738
|
}
|
|
2726
|
-
function
|
|
2727
|
-
var n, r,
|
|
2728
|
-
if (
|
|
2729
|
-
for (
|
|
2730
|
-
|
|
2731
|
-
return e.position === n && _(e, "name of an alias node must contain at least one character"), r = e.input.slice(n, e.position), he.call(e.anchorMap, r) || _(e, 'unidentified alias "' + r + '"'), e.result = e.anchorMap[r],
|
|
2732
|
-
}
|
|
2733
|
-
function
|
|
2734
|
-
var l, o, a, c = 1,
|
|
2735
|
-
if (e.listener !== null && e.listener("open", e), e.tag = null, e.anchor = null, e.kind = null, e.result = null, l = o = a = Be === r ||
|
|
2736
|
-
for (;
|
|
2737
|
-
|
|
2738
|
-
if (a && (a =
|
|
2739
|
+
function Ol(e) {
|
|
2740
|
+
var n, r, i;
|
|
2741
|
+
if (i = e.input.charCodeAt(e.position), i !== 42) return !1;
|
|
2742
|
+
for (i = e.input.charCodeAt(++e.position), n = e.position; i !== 0 && !Q(i) && !be(i); )
|
|
2743
|
+
i = e.input.charCodeAt(++e.position);
|
|
2744
|
+
return e.position === n && _(e, "name of an alias node must contain at least one character"), r = e.input.slice(n, e.position), he.call(e.anchorMap, r) || _(e, 'unidentified alias "' + r + '"'), e.result = e.anchorMap[r], W(e, !0, -1), !0;
|
|
2745
|
+
}
|
|
2746
|
+
function _e(e, n, r, i, t) {
|
|
2747
|
+
var l, o, a, c = 1, f = !1, u = !1, d, p, x, m, y, v;
|
|
2748
|
+
if (e.listener !== null && e.listener("open", e), e.tag = null, e.anchor = null, e.kind = null, e.result = null, l = o = a = Be === r || gr === r, i && W(e, !0, -1) && (f = !0, e.lineIndent > n ? c = 1 : e.lineIndent === n ? c = 0 : e.lineIndent < n && (c = -1)), c === 1)
|
|
2749
|
+
for (; Ml(e) || jl(e); )
|
|
2750
|
+
W(e, !0, -1) ? (f = !0, a = l, e.lineIndent > n ? c = 1 : e.lineIndent === n ? c = 0 : e.lineIndent < n && (c = -1)) : a = !1;
|
|
2751
|
+
if (a && (a = f || t), (c === 1 || Be === r) && (Ye === r || yr === r ? y = n : y = n + 1, v = e.position - e.lineStart, c === 1 ? a && (Sn(e, v) || Tl(e, v, y)) || Sl(e, y) ? u = !0 : (o && El(e, y) || Cl(e, y) || $l(e, y) ? u = !0 : Ol(e) ? (u = !0, (e.tag !== null || e.anchor !== null) && _(e, "alias node should not have any properties")) : wl(e, y, Ye === r) && (u = !0, e.tag === null && (e.tag = "?")), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : c === 0 && (u = a && Sn(e, v))), e.tag === null)
|
|
2739
2752
|
e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
|
|
2740
2753
|
else if (e.tag === "?") {
|
|
2741
|
-
for (e.result !== null && e.kind !== "scalar" && _(e, 'unacceptable node kind for !<?> tag; it should be "scalar", not "' + e.kind + '"'), d = 0,
|
|
2754
|
+
for (e.result !== null && e.kind !== "scalar" && _(e, 'unacceptable node kind for !<?> tag; it should be "scalar", not "' + e.kind + '"'), d = 0, p = e.implicitTypes.length; d < p; d += 1)
|
|
2742
2755
|
if (m = e.implicitTypes[d], m.resolve(e.result)) {
|
|
2743
2756
|
e.result = m.construct(e.result), e.tag = m.tag, e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
|
|
2744
2757
|
break;
|
|
@@ -2747,21 +2760,21 @@ function Ae(e, n, r, t, i) {
|
|
|
2747
2760
|
if (he.call(e.typeMap[e.kind || "fallback"], e.tag))
|
|
2748
2761
|
m = e.typeMap[e.kind || "fallback"][e.tag];
|
|
2749
2762
|
else
|
|
2750
|
-
for (m = null,
|
|
2751
|
-
if (e.tag.slice(0,
|
|
2752
|
-
m =
|
|
2763
|
+
for (m = null, x = e.typeMap.multi[e.kind || "fallback"], d = 0, p = x.length; d < p; d += 1)
|
|
2764
|
+
if (e.tag.slice(0, x[d].tag.length) === x[d].tag) {
|
|
2765
|
+
m = x[d];
|
|
2753
2766
|
break;
|
|
2754
2767
|
}
|
|
2755
2768
|
m || _(e, "unknown tag !<" + e.tag + ">"), e.result !== null && m.kind !== e.kind && _(e, "unacceptable node kind for !<" + e.tag + '> tag; it should be "' + m.kind + '", not "' + e.kind + '"'), m.resolve(e.result, e.tag) ? (e.result = m.construct(e.result, e.tag), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : _(e, "cannot resolve a node with !<" + e.tag + "> explicit tag");
|
|
2756
2769
|
}
|
|
2757
|
-
return e.listener !== null && e.listener("close", e), e.tag !== null || e.anchor !== null ||
|
|
2770
|
+
return e.listener !== null && e.listener("close", e), e.tag !== null || e.anchor !== null || u;
|
|
2758
2771
|
}
|
|
2759
|
-
function
|
|
2760
|
-
var n = e.position, r,
|
|
2761
|
-
for (e.version = null, e.checkLineBreaks = e.legacy, e.tagMap = /* @__PURE__ */ Object.create(null), e.anchorMap = /* @__PURE__ */ Object.create(null); (o = e.input.charCodeAt(e.position)) !== 0 && (
|
|
2762
|
-
for (l = !0, o = e.input.charCodeAt(++e.position), r = e.position; o !== 0 && !
|
|
2772
|
+
function Nl(e) {
|
|
2773
|
+
var n = e.position, r, i, t, l = !1, o;
|
|
2774
|
+
for (e.version = null, e.checkLineBreaks = e.legacy, e.tagMap = /* @__PURE__ */ Object.create(null), e.anchorMap = /* @__PURE__ */ Object.create(null); (o = e.input.charCodeAt(e.position)) !== 0 && (W(e, !0, -1), o = e.input.charCodeAt(e.position), !(e.lineIndent > 0 || o !== 37)); ) {
|
|
2775
|
+
for (l = !0, o = e.input.charCodeAt(++e.position), r = e.position; o !== 0 && !Q(o); )
|
|
2763
2776
|
o = e.input.charCodeAt(++e.position);
|
|
2764
|
-
for (
|
|
2777
|
+
for (i = e.input.slice(r, e.position), t = [], i.length < 1 && _(e, "directive name must not be less than one character in length"); o !== 0; ) {
|
|
2765
2778
|
for (; me(o); )
|
|
2766
2779
|
o = e.input.charCodeAt(++e.position);
|
|
2767
2780
|
if (o === 35) {
|
|
@@ -2771,14 +2784,14 @@ function Ml(e) {
|
|
|
2771
2784
|
break;
|
|
2772
2785
|
}
|
|
2773
2786
|
if (le(o)) break;
|
|
2774
|
-
for (r = e.position; o !== 0 && !
|
|
2787
|
+
for (r = e.position; o !== 0 && !Q(o); )
|
|
2775
2788
|
o = e.input.charCodeAt(++e.position);
|
|
2776
|
-
|
|
2789
|
+
t.push(e.input.slice(r, e.position));
|
|
2777
2790
|
}
|
|
2778
|
-
o !== 0 && an(e), he.call(Cn,
|
|
2791
|
+
o !== 0 && an(e), he.call(Cn, i) ? Cn[i](e, i, t) : He(e, 'unknown document directive "' + i + '"');
|
|
2779
2792
|
}
|
|
2780
|
-
if (
|
|
2781
|
-
e.input.charCodeAt(e.position) === 46 && (e.position += 3,
|
|
2793
|
+
if (W(e, !0, -1), e.lineIndent === 0 && e.input.charCodeAt(e.position) === 45 && e.input.charCodeAt(e.position + 1) === 45 && e.input.charCodeAt(e.position + 2) === 45 ? (e.position += 3, W(e, !0, -1)) : l && _(e, "directives end mark is expected"), _e(e, e.lineIndent - 1, Be, !1, !0), W(e, !0, -1), e.checkLineBreaks && yl.test(e.input.slice(n, e.position)) && He(e, "non-ASCII line breaks are interpreted as content"), e.documents.push(e.result), e.position === e.lineStart && ze(e)) {
|
|
2794
|
+
e.input.charCodeAt(e.position) === 46 && (e.position += 3, W(e, !0, -1));
|
|
2782
2795
|
return;
|
|
2783
2796
|
}
|
|
2784
2797
|
if (e.position < e.length - 1)
|
|
@@ -2786,36 +2799,36 @@ function Ml(e) {
|
|
|
2786
2799
|
else
|
|
2787
2800
|
return;
|
|
2788
2801
|
}
|
|
2789
|
-
function
|
|
2802
|
+
function Cr(e, n) {
|
|
2790
2803
|
e = String(e), n = n || {}, e.length !== 0 && (e.charCodeAt(e.length - 1) !== 10 && e.charCodeAt(e.length - 1) !== 13 && (e += `
|
|
2791
2804
|
`), e.charCodeAt(0) === 65279 && (e = e.slice(1)));
|
|
2792
|
-
var r = new
|
|
2793
|
-
for (
|
|
2805
|
+
var r = new _l(e, n), i = e.indexOf("\0");
|
|
2806
|
+
for (i !== -1 && (r.position = i, _(r, "null byte is not allowed in input")), r.input += "\0"; r.input.charCodeAt(r.position) === 32; )
|
|
2794
2807
|
r.lineIndent += 1, r.position += 1;
|
|
2795
2808
|
for (; r.position < r.length - 1; )
|
|
2796
|
-
|
|
2809
|
+
Nl(r);
|
|
2797
2810
|
return r.documents;
|
|
2798
2811
|
}
|
|
2799
|
-
function
|
|
2812
|
+
function Ll(e, n, r) {
|
|
2800
2813
|
n !== null && typeof n == "object" && typeof r > "u" && (r = n, n = null);
|
|
2801
|
-
var
|
|
2814
|
+
var i = Cr(e, r);
|
|
2802
2815
|
if (typeof n != "function")
|
|
2803
|
-
return
|
|
2804
|
-
for (var
|
|
2805
|
-
n(t
|
|
2816
|
+
return i;
|
|
2817
|
+
for (var t = 0, l = i.length; t < l; t += 1)
|
|
2818
|
+
n(i[t]);
|
|
2806
2819
|
}
|
|
2807
|
-
function
|
|
2808
|
-
var r =
|
|
2820
|
+
function Fl(e, n) {
|
|
2821
|
+
var r = Cr(e, n);
|
|
2809
2822
|
if (r.length !== 0) {
|
|
2810
2823
|
if (r.length === 1)
|
|
2811
2824
|
return r[0];
|
|
2812
2825
|
throw new J("expected a single document in the stream, but found more");
|
|
2813
2826
|
}
|
|
2814
2827
|
}
|
|
2815
|
-
var
|
|
2816
|
-
loadAll:
|
|
2817
|
-
load:
|
|
2818
|
-
},
|
|
2828
|
+
var Il = Ll, Rl = Fl, $r = {
|
|
2829
|
+
loadAll: Il,
|
|
2830
|
+
load: Rl
|
|
2831
|
+
}, Sr = Object.prototype.toString, Er = Object.prototype.hasOwnProperty, sn = 65279, Pl = 9, Me = 10, Dl = 13, Yl = 32, Bl = 33, Hl = 34, Ze = 35, Wl = 37, Ul = 38, zl = 39, ql = 42, Tr = 44, Xl = 45, We = 58, Gl = 61, Kl = 62, Vl = 63, Zl = 64, Mr = 91, jr = 93, Jl = 96, Or = 123, Ql = 124, Nr = 125, V = {};
|
|
2819
2832
|
V[0] = "\\0";
|
|
2820
2833
|
V[7] = "\\a";
|
|
2821
2834
|
V[8] = "\\b";
|
|
@@ -2831,7 +2844,7 @@ V[133] = "\\N";
|
|
|
2831
2844
|
V[160] = "\\_";
|
|
2832
2845
|
V[8232] = "\\L";
|
|
2833
2846
|
V[8233] = "\\P";
|
|
2834
|
-
var
|
|
2847
|
+
var ea = [
|
|
2835
2848
|
"y",
|
|
2836
2849
|
"Y",
|
|
2837
2850
|
"yes",
|
|
@@ -2848,34 +2861,34 @@ var Zl = [
|
|
|
2848
2861
|
"off",
|
|
2849
2862
|
"Off",
|
|
2850
2863
|
"OFF"
|
|
2851
|
-
],
|
|
2852
|
-
function
|
|
2853
|
-
var r,
|
|
2864
|
+
], na = /^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;
|
|
2865
|
+
function ra(e, n) {
|
|
2866
|
+
var r, i, t, l, o, a, c;
|
|
2854
2867
|
if (n === null) return {};
|
|
2855
|
-
for (r = {},
|
|
2856
|
-
o = t
|
|
2868
|
+
for (r = {}, i = Object.keys(n), t = 0, l = i.length; t < l; t += 1)
|
|
2869
|
+
o = i[t], a = String(n[o]), o.slice(0, 2) === "!!" && (o = "tag:yaml.org,2002:" + o.slice(2)), c = e.compiledTypeMap.fallback[o], c && Er.call(c.styleAliases, a) && (a = c.styleAliases[a]), r[o] = a;
|
|
2857
2870
|
return r;
|
|
2858
2871
|
}
|
|
2859
|
-
function
|
|
2860
|
-
var n, r,
|
|
2872
|
+
function ta(e) {
|
|
2873
|
+
var n, r, i;
|
|
2861
2874
|
if (n = e.toString(16).toUpperCase(), e <= 255)
|
|
2862
|
-
r = "x",
|
|
2875
|
+
r = "x", i = 2;
|
|
2863
2876
|
else if (e <= 65535)
|
|
2864
|
-
r = "u",
|
|
2877
|
+
r = "u", i = 4;
|
|
2865
2878
|
else if (e <= 4294967295)
|
|
2866
|
-
r = "U",
|
|
2879
|
+
r = "U", i = 8;
|
|
2867
2880
|
else
|
|
2868
2881
|
throw new J("code point within a string may not be greater than 0xFFFFFFFF");
|
|
2869
|
-
return "\\" + r + z.repeat("0",
|
|
2882
|
+
return "\\" + r + z.repeat("0", i - n.length) + n;
|
|
2870
2883
|
}
|
|
2871
|
-
var
|
|
2872
|
-
function
|
|
2873
|
-
this.schema = e.schema || ln, this.indent = Math.max(1, e.indent || 2), this.noArrayIndent = e.noArrayIndent || !1, this.skipInvalid = e.skipInvalid || !1, this.flowLevel = z.isNothing(e.flowLevel) ? -1 : e.flowLevel, this.styleMap =
|
|
2884
|
+
var ia = 1, je = 2;
|
|
2885
|
+
function oa(e) {
|
|
2886
|
+
this.schema = e.schema || ln, this.indent = Math.max(1, e.indent || 2), this.noArrayIndent = e.noArrayIndent || !1, this.skipInvalid = e.skipInvalid || !1, this.flowLevel = z.isNothing(e.flowLevel) ? -1 : e.flowLevel, this.styleMap = ra(this.schema, e.styles || null), this.sortKeys = e.sortKeys || !1, this.lineWidth = e.lineWidth || 80, this.noRefs = e.noRefs || !1, this.noCompatMode = e.noCompatMode || !1, this.condenseFlow = e.condenseFlow || !1, this.quotingType = e.quotingType === '"' ? je : ia, this.forceQuotes = e.forceQuotes || !1, this.replacer = typeof e.replacer == "function" ? e.replacer : null, this.implicitTypes = this.schema.compiledImplicit, this.explicitTypes = this.schema.compiledExplicit, this.tag = null, this.result = "", this.duplicates = [], this.usedDuplicates = null;
|
|
2874
2887
|
}
|
|
2875
2888
|
function En(e, n) {
|
|
2876
|
-
for (var r = z.repeat(" ", n),
|
|
2877
|
-
|
|
2878
|
-
`,
|
|
2889
|
+
for (var r = z.repeat(" ", n), i = 0, t = -1, l = "", o, a = e.length; i < a; )
|
|
2890
|
+
t = e.indexOf(`
|
|
2891
|
+
`, i), t === -1 ? (o = e.slice(i), i = a) : (o = e.slice(i, t + 1), i = t + 1), o.length && o !== `
|
|
2879
2892
|
` && (l += r), l += o;
|
|
2880
2893
|
return l;
|
|
2881
2894
|
}
|
|
@@ -2883,108 +2896,108 @@ function Je(e, n) {
|
|
|
2883
2896
|
return `
|
|
2884
2897
|
` + z.repeat(" ", e.indent * n);
|
|
2885
2898
|
}
|
|
2886
|
-
function
|
|
2887
|
-
var r,
|
|
2888
|
-
for (r = 0,
|
|
2889
|
-
if (
|
|
2899
|
+
function la(e, n) {
|
|
2900
|
+
var r, i, t;
|
|
2901
|
+
for (r = 0, i = e.implicitTypes.length; r < i; r += 1)
|
|
2902
|
+
if (t = e.implicitTypes[r], t.resolve(n))
|
|
2890
2903
|
return !0;
|
|
2891
2904
|
return !1;
|
|
2892
2905
|
}
|
|
2893
2906
|
function Ue(e) {
|
|
2894
|
-
return e ===
|
|
2907
|
+
return e === Yl || e === Pl;
|
|
2895
2908
|
}
|
|
2896
2909
|
function Oe(e) {
|
|
2897
2910
|
return 32 <= e && e <= 126 || 161 <= e && e <= 55295 && e !== 8232 && e !== 8233 || 57344 <= e && e <= 65533 && e !== sn || 65536 <= e && e <= 1114111;
|
|
2898
2911
|
}
|
|
2899
2912
|
function Tn(e) {
|
|
2900
|
-
return Oe(e) && e !== sn && e !==
|
|
2913
|
+
return Oe(e) && e !== sn && e !== Dl && e !== Me;
|
|
2901
2914
|
}
|
|
2902
2915
|
function Mn(e, n, r) {
|
|
2903
|
-
var
|
|
2916
|
+
var i = Tn(e), t = i && !Ue(e);
|
|
2904
2917
|
return (
|
|
2905
2918
|
// ns-plain-safe
|
|
2906
2919
|
(r ? (
|
|
2907
2920
|
// c = flow-in
|
|
2908
|
-
|
|
2909
|
-
) :
|
|
2921
|
+
i
|
|
2922
|
+
) : i && e !== Tr && e !== Mr && e !== jr && e !== Or && e !== Nr) && e !== Ze && !(n === We && !t) || Tn(n) && !Ue(n) && e === Ze || n === We && t
|
|
2910
2923
|
);
|
|
2911
2924
|
}
|
|
2912
|
-
function
|
|
2913
|
-
return Oe(e) && e !== sn && !Ue(e) && e !==
|
|
2925
|
+
function aa(e) {
|
|
2926
|
+
return Oe(e) && e !== sn && !Ue(e) && e !== Xl && e !== Vl && e !== We && e !== Tr && e !== Mr && e !== jr && e !== Or && e !== Nr && e !== Ze && e !== Ul && e !== ql && e !== Bl && e !== Ql && e !== Gl && e !== Kl && e !== zl && e !== Hl && e !== Wl && e !== Zl && e !== Jl;
|
|
2914
2927
|
}
|
|
2915
|
-
function
|
|
2928
|
+
function ca(e) {
|
|
2916
2929
|
return !Ue(e) && e !== We;
|
|
2917
2930
|
}
|
|
2918
2931
|
function Ee(e, n) {
|
|
2919
|
-
var r = e.charCodeAt(n),
|
|
2920
|
-
return r >= 55296 && r <= 56319 && n + 1 < e.length && (
|
|
2932
|
+
var r = e.charCodeAt(n), i;
|
|
2933
|
+
return r >= 55296 && r <= 56319 && n + 1 < e.length && (i = e.charCodeAt(n + 1), i >= 56320 && i <= 57343) ? (r - 55296) * 1024 + i - 56320 + 65536 : r;
|
|
2921
2934
|
}
|
|
2922
|
-
function
|
|
2935
|
+
function Lr(e) {
|
|
2923
2936
|
var n = /^\n* /;
|
|
2924
2937
|
return n.test(e);
|
|
2925
2938
|
}
|
|
2926
|
-
var
|
|
2927
|
-
function
|
|
2928
|
-
var c,
|
|
2939
|
+
var Fr = 1, Qe = 2, Ir = 3, Rr = 4, ve = 5;
|
|
2940
|
+
function sa(e, n, r, i, t, l, o, a) {
|
|
2941
|
+
var c, f = 0, u = null, d = !1, p = !1, x = i !== -1, m = -1, y = aa(Ee(e, 0)) && ca(Ee(e, e.length - 1));
|
|
2929
2942
|
if (n || o)
|
|
2930
|
-
for (c = 0; c < e.length;
|
|
2931
|
-
if (
|
|
2932
|
-
return
|
|
2933
|
-
|
|
2943
|
+
for (c = 0; c < e.length; f >= 65536 ? c += 2 : c++) {
|
|
2944
|
+
if (f = Ee(e, c), !Oe(f))
|
|
2945
|
+
return ve;
|
|
2946
|
+
y = y && Mn(f, u, a), u = f;
|
|
2934
2947
|
}
|
|
2935
2948
|
else {
|
|
2936
|
-
for (c = 0; c < e.length;
|
|
2937
|
-
if (
|
|
2938
|
-
d = !0,
|
|
2939
|
-
c - m - 1 >
|
|
2940
|
-
else if (!Oe(
|
|
2941
|
-
return
|
|
2942
|
-
|
|
2943
|
-
}
|
|
2944
|
-
|
|
2949
|
+
for (c = 0; c < e.length; f >= 65536 ? c += 2 : c++) {
|
|
2950
|
+
if (f = Ee(e, c), f === Me)
|
|
2951
|
+
d = !0, x && (p = p || // Foldable line = too long, and not more-indented.
|
|
2952
|
+
c - m - 1 > i && e[m + 1] !== " ", m = c);
|
|
2953
|
+
else if (!Oe(f))
|
|
2954
|
+
return ve;
|
|
2955
|
+
y = y && Mn(f, u, a), u = f;
|
|
2956
|
+
}
|
|
2957
|
+
p = p || x && c - m - 1 > i && e[m + 1] !== " ";
|
|
2945
2958
|
}
|
|
2946
|
-
return !d && !
|
|
2959
|
+
return !d && !p ? y && !o && !t(e) ? Fr : l === je ? ve : Qe : r > 9 && Lr(e) ? ve : o ? l === je ? ve : Qe : p ? Rr : Ir;
|
|
2947
2960
|
}
|
|
2948
|
-
function
|
|
2961
|
+
function fa(e, n, r, i, t) {
|
|
2949
2962
|
e.dump = (function() {
|
|
2950
2963
|
if (n.length === 0)
|
|
2951
2964
|
return e.quotingType === je ? '""' : "''";
|
|
2952
|
-
if (!e.noCompatMode && (
|
|
2965
|
+
if (!e.noCompatMode && (ea.indexOf(n) !== -1 || na.test(n)))
|
|
2953
2966
|
return e.quotingType === je ? '"' + n + '"' : "'" + n + "'";
|
|
2954
|
-
var l = e.indent * Math.max(1, r), o = e.lineWidth === -1 ? -1 : Math.max(Math.min(e.lineWidth, 40), e.lineWidth - l), a =
|
|
2955
|
-
function c(
|
|
2956
|
-
return
|
|
2967
|
+
var l = e.indent * Math.max(1, r), o = e.lineWidth === -1 ? -1 : Math.max(Math.min(e.lineWidth, 40), e.lineWidth - l), a = i || e.flowLevel > -1 && r >= e.flowLevel;
|
|
2968
|
+
function c(f) {
|
|
2969
|
+
return la(e, f);
|
|
2957
2970
|
}
|
|
2958
|
-
switch (
|
|
2971
|
+
switch (sa(
|
|
2959
2972
|
n,
|
|
2960
2973
|
a,
|
|
2961
2974
|
e.indent,
|
|
2962
2975
|
o,
|
|
2963
2976
|
c,
|
|
2964
2977
|
e.quotingType,
|
|
2965
|
-
e.forceQuotes && !
|
|
2966
|
-
|
|
2978
|
+
e.forceQuotes && !i,
|
|
2979
|
+
t
|
|
2967
2980
|
)) {
|
|
2968
|
-
case
|
|
2981
|
+
case Fr:
|
|
2969
2982
|
return n;
|
|
2970
2983
|
case Qe:
|
|
2971
2984
|
return "'" + n.replace(/'/g, "''") + "'";
|
|
2972
|
-
case
|
|
2985
|
+
case Ir:
|
|
2973
2986
|
return "|" + jn(n, e.indent) + On(En(n, l));
|
|
2974
|
-
case
|
|
2975
|
-
return ">" + jn(n, e.indent) + On(En(
|
|
2976
|
-
case
|
|
2977
|
-
return '"' +
|
|
2987
|
+
case Rr:
|
|
2988
|
+
return ">" + jn(n, e.indent) + On(En(ua(n, o), l));
|
|
2989
|
+
case ve:
|
|
2990
|
+
return '"' + pa(n) + '"';
|
|
2978
2991
|
default:
|
|
2979
2992
|
throw new J("impossible error: invalid scalar style");
|
|
2980
2993
|
}
|
|
2981
2994
|
})();
|
|
2982
2995
|
}
|
|
2983
2996
|
function jn(e, n) {
|
|
2984
|
-
var r =
|
|
2985
|
-
`,
|
|
2997
|
+
var r = Lr(e) ? String(n) : "", i = e[e.length - 1] === `
|
|
2998
|
+
`, t = i && (e[e.length - 2] === `
|
|
2986
2999
|
` || e === `
|
|
2987
|
-
`), l =
|
|
3000
|
+
`), l = t ? "+" : i ? "" : "-";
|
|
2988
3001
|
return r + l + `
|
|
2989
3002
|
`;
|
|
2990
3003
|
}
|
|
@@ -2992,53 +3005,53 @@ function On(e) {
|
|
|
2992
3005
|
return e[e.length - 1] === `
|
|
2993
3006
|
` ? e.slice(0, -1) : e;
|
|
2994
3007
|
}
|
|
2995
|
-
function
|
|
2996
|
-
for (var r = /(\n+)([^\n]*)/g,
|
|
2997
|
-
var
|
|
3008
|
+
function ua(e, n) {
|
|
3009
|
+
for (var r = /(\n+)([^\n]*)/g, i = (function() {
|
|
3010
|
+
var f = e.indexOf(`
|
|
2998
3011
|
`);
|
|
2999
|
-
return
|
|
3000
|
-
})(),
|
|
3012
|
+
return f = f !== -1 ? f : e.length, r.lastIndex = f, Nn(e.slice(0, f), n);
|
|
3013
|
+
})(), t = e[0] === `
|
|
3001
3014
|
` || e[0] === " ", l, o; o = r.exec(e); ) {
|
|
3002
3015
|
var a = o[1], c = o[2];
|
|
3003
|
-
l = c[0] === " ",
|
|
3004
|
-
` : "") + Nn(c, n),
|
|
3016
|
+
l = c[0] === " ", i += a + (!t && !l && c !== "" ? `
|
|
3017
|
+
` : "") + Nn(c, n), t = l;
|
|
3005
3018
|
}
|
|
3006
|
-
return
|
|
3019
|
+
return i;
|
|
3007
3020
|
}
|
|
3008
3021
|
function Nn(e, n) {
|
|
3009
3022
|
if (e === "" || e[0] === " ") return e;
|
|
3010
|
-
for (var r = / [^ ]/g,
|
|
3011
|
-
a =
|
|
3012
|
-
` + e.slice(
|
|
3023
|
+
for (var r = / [^ ]/g, i, t = 0, l, o = 0, a = 0, c = ""; i = r.exec(e); )
|
|
3024
|
+
a = i.index, a - t > n && (l = o > t ? o : a, c += `
|
|
3025
|
+
` + e.slice(t, l), t = l + 1), o = a;
|
|
3013
3026
|
return c += `
|
|
3014
|
-
`, e.length -
|
|
3015
|
-
` + e.slice(o + 1) : c += e.slice(
|
|
3027
|
+
`, e.length - t > n && o > t ? c += e.slice(t, o) + `
|
|
3028
|
+
` + e.slice(o + 1) : c += e.slice(t), c.slice(1);
|
|
3016
3029
|
}
|
|
3017
|
-
function
|
|
3018
|
-
for (var n = "", r = 0,
|
|
3019
|
-
r = Ee(e,
|
|
3030
|
+
function pa(e) {
|
|
3031
|
+
for (var n = "", r = 0, i, t = 0; t < e.length; r >= 65536 ? t += 2 : t++)
|
|
3032
|
+
r = Ee(e, t), i = V[r], !i && Oe(r) ? (n += e[t], r >= 65536 && (n += e[t + 1])) : n += i || ta(r);
|
|
3020
3033
|
return n;
|
|
3021
3034
|
}
|
|
3022
|
-
function
|
|
3023
|
-
var
|
|
3035
|
+
function ha(e, n, r) {
|
|
3036
|
+
var i = "", t = e.tag, l, o, a;
|
|
3024
3037
|
for (l = 0, o = r.length; l < o; l += 1)
|
|
3025
|
-
a = r[l], e.replacer && (a = e.replacer.call(r, String(l), a)), (ce(e, n, a, !1, !1) || typeof a > "u" && ce(e, n, null, !1, !1)) && (
|
|
3026
|
-
e.tag =
|
|
3038
|
+
a = r[l], e.replacer && (a = e.replacer.call(r, String(l), a)), (ce(e, n, a, !1, !1) || typeof a > "u" && ce(e, n, null, !1, !1)) && (i !== "" && (i += "," + (e.condenseFlow ? "" : " ")), i += e.dump);
|
|
3039
|
+
e.tag = t, e.dump = "[" + i + "]";
|
|
3027
3040
|
}
|
|
3028
|
-
function
|
|
3029
|
-
var
|
|
3041
|
+
function Ln(e, n, r, i) {
|
|
3042
|
+
var t = "", l = e.tag, o, a, c;
|
|
3030
3043
|
for (o = 0, a = r.length; o < a; o += 1)
|
|
3031
|
-
c = r[o], e.replacer && (c = e.replacer.call(r, String(o), c)), (ce(e, n + 1, c, !0, !0, !1, !0) || typeof c > "u" && ce(e, n + 1, null, !0, !0, !1, !0)) && ((!
|
|
3032
|
-
e.tag = l, e.dump =
|
|
3044
|
+
c = r[o], e.replacer && (c = e.replacer.call(r, String(o), c)), (ce(e, n + 1, c, !0, !0, !1, !0) || typeof c > "u" && ce(e, n + 1, null, !0, !0, !1, !0)) && ((!i || t !== "") && (t += Je(e, n)), e.dump && Me === e.dump.charCodeAt(0) ? t += "-" : t += "- ", t += e.dump);
|
|
3045
|
+
e.tag = l, e.dump = t || "[]";
|
|
3033
3046
|
}
|
|
3034
|
-
function
|
|
3035
|
-
var
|
|
3047
|
+
function da(e, n, r) {
|
|
3048
|
+
var i = "", t = e.tag, l = Object.keys(r), o, a, c, f, u;
|
|
3036
3049
|
for (o = 0, a = l.length; o < a; o += 1)
|
|
3037
|
-
|
|
3038
|
-
e.tag =
|
|
3050
|
+
u = "", i !== "" && (u += ", "), e.condenseFlow && (u += '"'), c = l[o], f = r[c], e.replacer && (f = e.replacer.call(r, c, f)), ce(e, n, c, !1, !1) && (e.dump.length > 1024 && (u += "? "), u += e.dump + (e.condenseFlow ? '"' : "") + ":" + (e.condenseFlow ? "" : " "), ce(e, n, f, !1, !1) && (u += e.dump, i += u));
|
|
3051
|
+
e.tag = t, e.dump = "{" + i + "}";
|
|
3039
3052
|
}
|
|
3040
|
-
function
|
|
3041
|
-
var
|
|
3053
|
+
function xa(e, n, r, i) {
|
|
3054
|
+
var t = "", l = e.tag, o = Object.keys(r), a, c, f, u, d, p;
|
|
3042
3055
|
if (e.sortKeys === !0)
|
|
3043
3056
|
o.sort();
|
|
3044
3057
|
else if (typeof e.sortKeys == "function")
|
|
@@ -3046,117 +3059,117 @@ function pa(e, n, r, t) {
|
|
|
3046
3059
|
else if (e.sortKeys)
|
|
3047
3060
|
throw new J("sortKeys must be a boolean or a function");
|
|
3048
3061
|
for (a = 0, c = o.length; a < c; a += 1)
|
|
3049
|
-
|
|
3050
|
-
e.tag = l, e.dump =
|
|
3062
|
+
p = "", (!i || t !== "") && (p += Je(e, n)), f = o[a], u = r[f], e.replacer && (u = e.replacer.call(r, f, u)), ce(e, n + 1, f, !0, !0, !0) && (d = e.tag !== null && e.tag !== "?" || e.dump && e.dump.length > 1024, d && (e.dump && Me === e.dump.charCodeAt(0) ? p += "?" : p += "? "), p += e.dump, d && (p += Je(e, n)), ce(e, n + 1, u, !0, d) && (e.dump && Me === e.dump.charCodeAt(0) ? p += ":" : p += ": ", p += e.dump, t += p));
|
|
3063
|
+
e.tag = l, e.dump = t || "{}";
|
|
3051
3064
|
}
|
|
3052
|
-
function
|
|
3053
|
-
var
|
|
3054
|
-
for (
|
|
3055
|
-
if (a =
|
|
3065
|
+
function Fn(e, n, r) {
|
|
3066
|
+
var i, t, l, o, a, c;
|
|
3067
|
+
for (t = r ? e.explicitTypes : e.implicitTypes, l = 0, o = t.length; l < o; l += 1)
|
|
3068
|
+
if (a = t[l], (a.instanceOf || a.predicate) && (!a.instanceOf || typeof n == "object" && n instanceof a.instanceOf) && (!a.predicate || a.predicate(n))) {
|
|
3056
3069
|
if (r ? a.multi && a.representName ? e.tag = a.representName(n) : e.tag = a.tag : e.tag = "?", a.represent) {
|
|
3057
|
-
if (c = e.styleMap[a.tag] || a.defaultStyle,
|
|
3058
|
-
|
|
3059
|
-
else if (
|
|
3060
|
-
|
|
3070
|
+
if (c = e.styleMap[a.tag] || a.defaultStyle, Sr.call(a.represent) === "[object Function]")
|
|
3071
|
+
i = a.represent(n, c);
|
|
3072
|
+
else if (Er.call(a.represent, c))
|
|
3073
|
+
i = a.represent[c](n, c);
|
|
3061
3074
|
else
|
|
3062
3075
|
throw new J("!<" + a.tag + '> tag resolver accepts not "' + c + '" style');
|
|
3063
|
-
e.dump =
|
|
3076
|
+
e.dump = i;
|
|
3064
3077
|
}
|
|
3065
3078
|
return !0;
|
|
3066
3079
|
}
|
|
3067
3080
|
return !1;
|
|
3068
3081
|
}
|
|
3069
|
-
function ce(e, n, r,
|
|
3070
|
-
e.tag = null, e.dump = r,
|
|
3071
|
-
var a =
|
|
3072
|
-
|
|
3073
|
-
var
|
|
3074
|
-
if (
|
|
3082
|
+
function ce(e, n, r, i, t, l, o) {
|
|
3083
|
+
e.tag = null, e.dump = r, Fn(e, r, !1) || Fn(e, r, !0);
|
|
3084
|
+
var a = Sr.call(e.dump), c = i, f;
|
|
3085
|
+
i && (i = e.flowLevel < 0 || e.flowLevel > n);
|
|
3086
|
+
var u = a === "[object Object]" || a === "[object Array]", d, p;
|
|
3087
|
+
if (u && (d = e.duplicates.indexOf(r), p = d !== -1), (e.tag !== null && e.tag !== "?" || p || e.indent !== 2 && n > 0) && (t = !1), p && e.usedDuplicates[d])
|
|
3075
3088
|
e.dump = "*ref_" + d;
|
|
3076
3089
|
else {
|
|
3077
|
-
if (
|
|
3078
|
-
|
|
3090
|
+
if (u && p && !e.usedDuplicates[d] && (e.usedDuplicates[d] = !0), a === "[object Object]")
|
|
3091
|
+
i && Object.keys(e.dump).length !== 0 ? (xa(e, n, e.dump, t), p && (e.dump = "&ref_" + d + e.dump)) : (da(e, n, e.dump), p && (e.dump = "&ref_" + d + " " + e.dump));
|
|
3079
3092
|
else if (a === "[object Array]")
|
|
3080
|
-
|
|
3093
|
+
i && e.dump.length !== 0 ? (e.noArrayIndent && !o && n > 0 ? Ln(e, n - 1, e.dump, t) : Ln(e, n, e.dump, t), p && (e.dump = "&ref_" + d + e.dump)) : (ha(e, n, e.dump), p && (e.dump = "&ref_" + d + " " + e.dump));
|
|
3081
3094
|
else if (a === "[object String]")
|
|
3082
|
-
e.tag !== "?" &&
|
|
3095
|
+
e.tag !== "?" && fa(e, e.dump, n, l, c);
|
|
3083
3096
|
else {
|
|
3084
3097
|
if (a === "[object Undefined]")
|
|
3085
3098
|
return !1;
|
|
3086
3099
|
if (e.skipInvalid) return !1;
|
|
3087
3100
|
throw new J("unacceptable kind of an object to dump " + a);
|
|
3088
3101
|
}
|
|
3089
|
-
e.tag !== null && e.tag !== "?" && (
|
|
3102
|
+
e.tag !== null && e.tag !== "?" && (f = encodeURI(
|
|
3090
3103
|
e.tag[0] === "!" ? e.tag.slice(1) : e.tag
|
|
3091
|
-
).replace(/!/g, "%21"), e.tag[0] === "!" ?
|
|
3104
|
+
).replace(/!/g, "%21"), e.tag[0] === "!" ? f = "!" + f : f.slice(0, 18) === "tag:yaml.org,2002:" ? f = "!!" + f.slice(18) : f = "!<" + f + ">", e.dump = f + " " + e.dump);
|
|
3092
3105
|
}
|
|
3093
3106
|
return !0;
|
|
3094
3107
|
}
|
|
3095
|
-
function
|
|
3096
|
-
var r = [],
|
|
3097
|
-
for (en(e, r,
|
|
3098
|
-
n.duplicates.push(r[t
|
|
3108
|
+
function ma(e, n) {
|
|
3109
|
+
var r = [], i = [], t, l;
|
|
3110
|
+
for (en(e, r, i), t = 0, l = i.length; t < l; t += 1)
|
|
3111
|
+
n.duplicates.push(r[i[t]]);
|
|
3099
3112
|
n.usedDuplicates = new Array(l);
|
|
3100
3113
|
}
|
|
3101
3114
|
function en(e, n, r) {
|
|
3102
|
-
var
|
|
3115
|
+
var i, t, l;
|
|
3103
3116
|
if (e !== null && typeof e == "object")
|
|
3104
|
-
if (
|
|
3105
|
-
r.indexOf(
|
|
3117
|
+
if (t = n.indexOf(e), t !== -1)
|
|
3118
|
+
r.indexOf(t) === -1 && r.push(t);
|
|
3106
3119
|
else if (n.push(e), Array.isArray(e))
|
|
3107
|
-
for (
|
|
3108
|
-
en(e[
|
|
3120
|
+
for (t = 0, l = e.length; t < l; t += 1)
|
|
3121
|
+
en(e[t], n, r);
|
|
3109
3122
|
else
|
|
3110
|
-
for (
|
|
3111
|
-
en(e[t
|
|
3123
|
+
for (i = Object.keys(e), t = 0, l = i.length; t < l; t += 1)
|
|
3124
|
+
en(e[i[t]], n, r);
|
|
3112
3125
|
}
|
|
3113
|
-
function
|
|
3126
|
+
function ya(e, n) {
|
|
3114
3127
|
n = n || {};
|
|
3115
|
-
var r = new
|
|
3116
|
-
r.noRefs ||
|
|
3117
|
-
var
|
|
3118
|
-
return r.replacer && (
|
|
3128
|
+
var r = new oa(n);
|
|
3129
|
+
r.noRefs || ma(e, r);
|
|
3130
|
+
var i = e;
|
|
3131
|
+
return r.replacer && (i = r.replacer.call({ "": i }, "", i)), ce(r, 0, i, !0, !0) ? r.dump + `
|
|
3119
3132
|
` : "";
|
|
3120
3133
|
}
|
|
3121
|
-
var
|
|
3122
|
-
dump:
|
|
3134
|
+
var ga = ya, ka = {
|
|
3135
|
+
dump: ga
|
|
3123
3136
|
};
|
|
3124
3137
|
function fn(e, n) {
|
|
3125
3138
|
return function() {
|
|
3126
3139
|
throw new Error("Function yaml." + e + " is removed in js-yaml 4. Use yaml." + n + " instead, which is now safe by default.");
|
|
3127
3140
|
};
|
|
3128
3141
|
}
|
|
3129
|
-
var
|
|
3130
|
-
binary:
|
|
3131
|
-
float:
|
|
3132
|
-
map:
|
|
3133
|
-
null:
|
|
3134
|
-
pairs:
|
|
3135
|
-
set:
|
|
3136
|
-
timestamp:
|
|
3137
|
-
bool:
|
|
3138
|
-
int:
|
|
3139
|
-
merge:
|
|
3140
|
-
omap:
|
|
3141
|
-
seq:
|
|
3142
|
-
str:
|
|
3143
|
-
},
|
|
3144
|
-
Type:
|
|
3145
|
-
Schema:
|
|
3146
|
-
FAILSAFE_SCHEMA:
|
|
3147
|
-
JSON_SCHEMA:
|
|
3148
|
-
CORE_SCHEMA:
|
|
3149
|
-
DEFAULT_SCHEMA:
|
|
3150
|
-
load:
|
|
3151
|
-
loadAll:
|
|
3152
|
-
dump:
|
|
3153
|
-
YAMLException:
|
|
3154
|
-
types:
|
|
3155
|
-
safeLoad:
|
|
3156
|
-
safeLoadAll:
|
|
3157
|
-
safeDump:
|
|
3142
|
+
var va = G, ba = Jn, Aa = rr, _a = ar, wa = cr, Ca = ln, $a = $r.load, Sa = $r.loadAll, Ea = ka.dump, Ta = J, Ma = {
|
|
3143
|
+
binary: hr,
|
|
3144
|
+
float: lr,
|
|
3145
|
+
map: nr,
|
|
3146
|
+
null: tr,
|
|
3147
|
+
pairs: xr,
|
|
3148
|
+
set: mr,
|
|
3149
|
+
timestamp: ur,
|
|
3150
|
+
bool: ir,
|
|
3151
|
+
int: or,
|
|
3152
|
+
merge: pr,
|
|
3153
|
+
omap: dr,
|
|
3154
|
+
seq: er,
|
|
3155
|
+
str: Qn
|
|
3156
|
+
}, ja = fn("safeLoad", "load"), Oa = fn("safeLoadAll", "loadAll"), Na = fn("safeDump", "dump"), La = {
|
|
3157
|
+
Type: va,
|
|
3158
|
+
Schema: ba,
|
|
3159
|
+
FAILSAFE_SCHEMA: Aa,
|
|
3160
|
+
JSON_SCHEMA: _a,
|
|
3161
|
+
CORE_SCHEMA: wa,
|
|
3162
|
+
DEFAULT_SCHEMA: Ca,
|
|
3163
|
+
load: $a,
|
|
3164
|
+
loadAll: Sa,
|
|
3165
|
+
dump: Ea,
|
|
3166
|
+
YAMLException: Ta,
|
|
3167
|
+
types: Ma,
|
|
3168
|
+
safeLoad: ja,
|
|
3169
|
+
safeLoadAll: Oa,
|
|
3170
|
+
safeDump: Na
|
|
3158
3171
|
};
|
|
3159
|
-
function
|
|
3172
|
+
function Fa(e) {
|
|
3160
3173
|
const n = e.match(/^(\d+)x(\d+)x(\d+)$/);
|
|
3161
3174
|
return n ? {
|
|
3162
3175
|
width: parseInt(n[1], 10),
|
|
@@ -3171,110 +3184,110 @@ function In(e) {
|
|
|
3171
3184
|
height: parseInt(n[2], 10)
|
|
3172
3185
|
} : null;
|
|
3173
3186
|
}
|
|
3174
|
-
function
|
|
3187
|
+
function Ia(e) {
|
|
3175
3188
|
const n = e.match(/^(-?\d+),(-?\d+)$/);
|
|
3176
3189
|
return n ? {
|
|
3177
3190
|
x: parseInt(n[1], 10),
|
|
3178
3191
|
y: parseInt(n[2], 10)
|
|
3179
3192
|
} : null;
|
|
3180
3193
|
}
|
|
3181
|
-
function
|
|
3194
|
+
function Ra(e) {
|
|
3182
3195
|
const n = e.match(/^(.+?)\s*@\s*(\d+)$/);
|
|
3183
3196
|
return n ? {
|
|
3184
3197
|
name: n[1].trim(),
|
|
3185
3198
|
elevation: parseInt(n[2], 10)
|
|
3186
3199
|
} : null;
|
|
3187
3200
|
}
|
|
3188
|
-
function
|
|
3189
|
-
const
|
|
3190
|
-
if (
|
|
3191
|
-
const
|
|
3192
|
-
for (const m of
|
|
3193
|
-
const [
|
|
3194
|
-
if (
|
|
3195
|
-
const k = parseFloat(
|
|
3196
|
-
|
|
3201
|
+
function Pa(e, n, r) {
|
|
3202
|
+
const i = {}, t = e.match(/\{([^}]+)\}\s*$/);
|
|
3203
|
+
if (t) {
|
|
3204
|
+
const x = t[1].split(/\s+/);
|
|
3205
|
+
for (const m of x) {
|
|
3206
|
+
const [y, v] = m.split("=");
|
|
3207
|
+
if (y && v) {
|
|
3208
|
+
const k = parseFloat(v);
|
|
3209
|
+
i[y] = isNaN(k) ? v : k;
|
|
3197
3210
|
}
|
|
3198
3211
|
}
|
|
3199
3212
|
e = e.replace(/\{[^}]+\}\s*$/, "").trim();
|
|
3200
3213
|
}
|
|
3201
3214
|
const l = e.trim().split(/\s+/);
|
|
3202
3215
|
if (l.length < 4) return null;
|
|
3203
|
-
const o = l[0], a = l[1], c = l[2],
|
|
3204
|
-
if (!
|
|
3205
|
-
const
|
|
3216
|
+
const o = l[0], a = l[1], c = l[2], f = l[3], u = Ia(c), d = Fa(f);
|
|
3217
|
+
if (!u || !d) return null;
|
|
3218
|
+
const p = r[a] || a;
|
|
3206
3219
|
return {
|
|
3207
3220
|
tier: n,
|
|
3208
3221
|
label: o,
|
|
3209
|
-
color:
|
|
3210
|
-
x:
|
|
3211
|
-
y:
|
|
3222
|
+
color: p,
|
|
3223
|
+
x: u.x,
|
|
3224
|
+
y: u.y,
|
|
3212
3225
|
width: d.width,
|
|
3213
3226
|
depth: d.depth,
|
|
3214
3227
|
height: d.height,
|
|
3215
|
-
...
|
|
3228
|
+
...i
|
|
3216
3229
|
};
|
|
3217
3230
|
}
|
|
3218
|
-
function
|
|
3219
|
-
const n =
|
|
3231
|
+
function Wa(e) {
|
|
3232
|
+
const n = La.load(e);
|
|
3220
3233
|
let r = { width: 1100, height: 700 };
|
|
3221
3234
|
if (typeof n.canvas == "string") {
|
|
3222
|
-
const
|
|
3223
|
-
|
|
3235
|
+
const p = In(n.canvas);
|
|
3236
|
+
p && (r = p);
|
|
3224
3237
|
} else n.canvas && typeof n.canvas == "object" && (r = n.canvas);
|
|
3225
|
-
let
|
|
3238
|
+
let i = { width: 400, depth: 280 };
|
|
3226
3239
|
if (typeof n.floor == "string") {
|
|
3227
|
-
const
|
|
3228
|
-
|
|
3229
|
-
} else n.floor && typeof n.floor == "object" && (
|
|
3230
|
-
let
|
|
3231
|
-
n.origin && typeof n.origin == "object" && (
|
|
3240
|
+
const p = In(n.floor);
|
|
3241
|
+
p && (i = { width: p.width, depth: p.height });
|
|
3242
|
+
} else n.floor && typeof n.floor == "object" && (i = n.floor);
|
|
3243
|
+
let t = { x: r.width / 2, y: r.height - 80 };
|
|
3244
|
+
n.origin && typeof n.origin == "object" && (t = n.origin);
|
|
3232
3245
|
const l = {};
|
|
3233
3246
|
if (n.colors && typeof n.colors == "object")
|
|
3234
|
-
for (const [
|
|
3235
|
-
l[
|
|
3247
|
+
for (const [p, x] of Object.entries(n.colors))
|
|
3248
|
+
l[p] = x;
|
|
3236
3249
|
const o = [], a = {
|
|
3237
3250
|
dark: ["#0f172a", "#1e293b", "#334155", "#475569"],
|
|
3238
3251
|
light: ["#f1f5f9", "#e0f2fe", "#dbeafe", "#ede9fe"]
|
|
3239
3252
|
}, c = {
|
|
3240
3253
|
dark: ["#334155", "#475569", "#64748b", "#94a3b8"],
|
|
3241
3254
|
light: ["#94a3b8", "#7dd3fc", "#93c5fd", "#c4b5fd"]
|
|
3242
|
-
},
|
|
3243
|
-
Array.isArray(n.tiers) && n.tiers.forEach((
|
|
3244
|
-
if (typeof
|
|
3245
|
-
const m =
|
|
3255
|
+
}, f = n.theme || "dark";
|
|
3256
|
+
Array.isArray(n.tiers) && n.tiers.forEach((p, x) => {
|
|
3257
|
+
if (typeof p == "string") {
|
|
3258
|
+
const m = Ra(p);
|
|
3246
3259
|
m && o.push({
|
|
3247
3260
|
name: m.name,
|
|
3248
3261
|
elevation: m.elevation,
|
|
3249
|
-
floorColor: a[
|
|
3250
|
-
floorOpacity:
|
|
3251
|
-
borderColor: c[
|
|
3262
|
+
floorColor: a[f][x] || a[f][0],
|
|
3263
|
+
floorOpacity: x === 0 ? 0.95 : 0.7 - x * 0.1,
|
|
3264
|
+
borderColor: c[f][x] || c[f][0]
|
|
3252
3265
|
});
|
|
3253
|
-
} else if (
|
|
3254
|
-
const m =
|
|
3266
|
+
} else if (p && typeof p == "object") {
|
|
3267
|
+
const m = p;
|
|
3255
3268
|
o.push({
|
|
3256
|
-
name: m.name || `Tier ${
|
|
3257
|
-
elevation: m.elevation ||
|
|
3258
|
-
floorColor: m.floorColor || a[
|
|
3259
|
-
floorOpacity: m.floorOpacity ?? (
|
|
3260
|
-
borderColor: m.borderColor || c[
|
|
3269
|
+
name: m.name || `Tier ${x}`,
|
|
3270
|
+
elevation: m.elevation || x * 150,
|
|
3271
|
+
floorColor: m.floorColor || a[f][x],
|
|
3272
|
+
floorOpacity: m.floorOpacity ?? (x === 0 ? 0.95 : 0.7 - x * 0.1),
|
|
3273
|
+
borderColor: m.borderColor || c[f][x]
|
|
3261
3274
|
});
|
|
3262
3275
|
}
|
|
3263
3276
|
});
|
|
3264
|
-
const
|
|
3277
|
+
const u = [];
|
|
3265
3278
|
if (n.nodes && typeof n.nodes == "object" && !Array.isArray(n.nodes)) {
|
|
3266
|
-
const
|
|
3267
|
-
for (const [
|
|
3268
|
-
const
|
|
3269
|
-
if (!(isNaN(
|
|
3270
|
-
for (const
|
|
3271
|
-
if (typeof
|
|
3272
|
-
const k =
|
|
3273
|
-
k &&
|
|
3274
|
-
} else if (
|
|
3275
|
-
const k =
|
|
3276
|
-
|
|
3277
|
-
tier:
|
|
3279
|
+
const p = n.nodes;
|
|
3280
|
+
for (const [x, m] of Object.entries(p)) {
|
|
3281
|
+
const y = parseInt(x, 10);
|
|
3282
|
+
if (!(isNaN(y) || !Array.isArray(m))) {
|
|
3283
|
+
for (const v of m)
|
|
3284
|
+
if (typeof v == "string") {
|
|
3285
|
+
const k = Pa(v, y, l);
|
|
3286
|
+
k && u.push(k);
|
|
3287
|
+
} else if (v && typeof v == "object") {
|
|
3288
|
+
const k = v;
|
|
3289
|
+
u.push({
|
|
3290
|
+
tier: y,
|
|
3278
3291
|
label: k.label || "",
|
|
3279
3292
|
color: l[k.color] || k.color || "slate",
|
|
3280
3293
|
x: k.x || 0,
|
|
@@ -3292,22 +3305,22 @@ function Ya(e) {
|
|
|
3292
3305
|
}
|
|
3293
3306
|
const d = [];
|
|
3294
3307
|
if (Array.isArray(n.pillars)) {
|
|
3295
|
-
for (const
|
|
3296
|
-
if (typeof
|
|
3297
|
-
const
|
|
3298
|
-
|
|
3299
|
-
x: parseInt(
|
|
3300
|
-
y: parseInt(
|
|
3301
|
-
fromTier: parseInt(
|
|
3302
|
-
toTier: parseInt(
|
|
3308
|
+
for (const p of n.pillars)
|
|
3309
|
+
if (typeof p == "string") {
|
|
3310
|
+
const x = p.match(/^(-?\d+),(-?\d+)\s+(\d+)->(\d+)$/);
|
|
3311
|
+
x && d.push({
|
|
3312
|
+
x: parseInt(x[1], 10),
|
|
3313
|
+
y: parseInt(x[2], 10),
|
|
3314
|
+
fromTier: parseInt(x[3], 10),
|
|
3315
|
+
toTier: parseInt(x[4], 10)
|
|
3303
3316
|
});
|
|
3304
|
-
} else if (
|
|
3305
|
-
const
|
|
3317
|
+
} else if (p && typeof p == "object") {
|
|
3318
|
+
const x = p;
|
|
3306
3319
|
d.push({
|
|
3307
|
-
x:
|
|
3308
|
-
y:
|
|
3309
|
-
fromTier:
|
|
3310
|
-
toTier:
|
|
3320
|
+
x: x.x || 0,
|
|
3321
|
+
y: x.y || 0,
|
|
3322
|
+
fromTier: x.fromTier || 0,
|
|
3323
|
+
toTier: x.toTier || 1
|
|
3311
3324
|
});
|
|
3312
3325
|
}
|
|
3313
3326
|
}
|
|
@@ -3315,51 +3328,51 @@ function Ya(e) {
|
|
|
3315
3328
|
title: n.title || "Untitled",
|
|
3316
3329
|
style: n.style || void 0,
|
|
3317
3330
|
description: n.description || "",
|
|
3318
|
-
theme:
|
|
3331
|
+
theme: f,
|
|
3319
3332
|
canvas: r,
|
|
3320
|
-
origin:
|
|
3333
|
+
origin: t,
|
|
3321
3334
|
cornerRadius: n.corner ?? n.cornerRadius ?? 14,
|
|
3322
3335
|
tiers: o,
|
|
3323
|
-
floorSize:
|
|
3324
|
-
nodes:
|
|
3336
|
+
floorSize: i,
|
|
3337
|
+
nodes: u,
|
|
3325
3338
|
pillars: d.length > 0 ? d : void 0
|
|
3326
3339
|
};
|
|
3327
3340
|
}
|
|
3328
|
-
function
|
|
3341
|
+
function Ua(e) {
|
|
3329
3342
|
const n = [];
|
|
3330
3343
|
n.push(`title: ${e.title}`), e.description && n.push(`description: ${e.description}`), n.push(`theme: ${e.theme}`), e.style && e.style !== "solid" && n.push(`style: ${e.style}`), n.push(`canvas: ${e.canvas.width}x${e.canvas.height}`), n.push(`floor: ${e.floorSize.width}x${e.floorSize.depth}`), e.cornerRadius && n.push(`corner: ${e.cornerRadius}`), n.push("");
|
|
3331
3344
|
const r = {};
|
|
3332
|
-
e.nodes.forEach((
|
|
3333
|
-
r[
|
|
3345
|
+
e.nodes.forEach((t) => {
|
|
3346
|
+
r[t.color] = (r[t.color] || 0) + 1;
|
|
3334
3347
|
});
|
|
3335
|
-
const
|
|
3336
|
-
return
|
|
3337
|
-
const l =
|
|
3338
|
-
n.push(` ${l}: &${l} ${
|
|
3339
|
-
}), n.push("")), n.push("tiers:"), e.tiers.forEach((
|
|
3340
|
-
n.push(` - ${
|
|
3341
|
-
}), n.push(""), n.push("nodes:"), e.tiers.forEach((
|
|
3348
|
+
const i = Object.entries(r).filter(([, t]) => t >= 2).map(([t]) => t);
|
|
3349
|
+
return i.length > 0 && (n.push("colors:"), i.forEach((t) => {
|
|
3350
|
+
const l = t.slice(0, 3);
|
|
3351
|
+
n.push(` ${l}: &${l} ${t}`);
|
|
3352
|
+
}), n.push("")), n.push("tiers:"), e.tiers.forEach((t) => {
|
|
3353
|
+
n.push(` - ${t.name} @ ${t.elevation}`);
|
|
3354
|
+
}), n.push(""), n.push("nodes:"), e.tiers.forEach((t, l) => {
|
|
3342
3355
|
const o = e.nodes.filter((a) => a.tier === l);
|
|
3343
|
-
o.length !== 0 && (n.push(` ${l}: # ${
|
|
3356
|
+
o.length !== 0 && (n.push(` ${l}: # ${t.name}`), o.forEach((a) => {
|
|
3344
3357
|
let c = a.color;
|
|
3345
|
-
|
|
3346
|
-
const
|
|
3347
|
-
a.opacity !== void 0 &&
|
|
3348
|
-
const
|
|
3349
|
-
n.push(` - ${
|
|
3358
|
+
i.includes(a.color) && (c = `*${a.color.slice(0, 3)}`);
|
|
3359
|
+
const f = [];
|
|
3360
|
+
a.opacity !== void 0 && f.push(`opacity=${a.opacity}`), a.blur !== void 0 && f.push(`blur=${a.blur}`), a.translucent && f.push("translucent=true");
|
|
3361
|
+
const u = f.length > 0 ? ` { ${f.join(" ")} }` : "", d = `${a.width}x${a.depth}x${a.height}`, p = `${a.x},${a.y}`, x = a.label.padEnd(12), m = c.padEnd(8);
|
|
3362
|
+
n.push(` - ${x} ${m} ${p.padEnd(8)} ${d}${u}`);
|
|
3350
3363
|
}));
|
|
3351
|
-
}), e.pillars && e.pillars.length > 0 && (n.push(""), n.push("pillars:"), e.pillars.forEach((
|
|
3352
|
-
n.push(` - ${
|
|
3364
|
+
}), e.pillars && e.pillars.length > 0 && (n.push(""), n.push("pillars:"), e.pillars.forEach((t) => {
|
|
3365
|
+
n.push(` - ${t.x},${t.y} ${t.fromTier}->${t.toTier}`);
|
|
3353
3366
|
})), n.join(`
|
|
3354
3367
|
`);
|
|
3355
3368
|
}
|
|
3356
3369
|
export {
|
|
3357
|
-
|
|
3358
|
-
|
|
3359
|
-
|
|
3370
|
+
Ba as ArcDiagram,
|
|
3371
|
+
Ua as configToYaml,
|
|
3372
|
+
Ya as getColorShading,
|
|
3360
3373
|
xe as isoBox,
|
|
3361
|
-
|
|
3362
|
-
|
|
3363
|
-
|
|
3364
|
-
|
|
3374
|
+
w as isoToScreen,
|
|
3375
|
+
Wa as parseYamlConfig,
|
|
3376
|
+
Ha as renderToElement,
|
|
3377
|
+
ho as renderToString
|
|
3365
3378
|
};
|