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