storybook 9.0.0-beta.1 → 9.0.0-beta.10
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/assets/server/base-preview-head.html +2 -1
- package/dist/actions/decorator.js +49 -52
- package/dist/actions/index.cjs +42 -44
- package/dist/actions/index.js +37 -40
- package/dist/actions/preview.cjs +44 -46
- package/dist/actions/preview.js +24 -27
- package/dist/babel/index.cjs +15060 -14974
- package/dist/babel/index.d.ts +37 -18
- package/dist/babel/index.js +15097 -15011
- package/dist/bin/index.cjs +44 -44
- package/dist/bin/index.js +44 -44
- package/dist/builder-manager/index.cjs +303 -283
- package/dist/builder-manager/index.js +545 -524
- package/dist/channels/index.js +919 -941
- package/dist/cli/bin/index.cjs +4185 -737
- package/dist/cli/bin/index.js +4199 -749
- package/dist/cli/index.cjs +26712 -23192
- package/dist/cli/index.d.ts +974 -1
- package/dist/cli/index.js +26765 -23243
- package/dist/client-logger/index.d.ts +2 -1
- package/dist/common/index.cjs +4785 -4693
- package/dist/common/index.d.ts +8 -2
- package/dist/common/index.js +5165 -5069
- package/dist/components/index.cjs +7905 -5600
- package/dist/components/index.d.ts +12 -12
- package/dist/components/index.js +4713 -3786
- package/dist/core-server/index.cjs +6793 -6702
- package/dist/core-server/index.d.ts +22 -22
- package/dist/core-server/index.js +6943 -6846
- package/dist/core-server/presets/common-manager.js +4526 -3375
- package/dist/core-server/presets/common-preset.cjs +2303 -2236
- package/dist/core-server/presets/common-preset.js +2391 -2320
- package/dist/docs-tools/index.cjs +484 -464
- package/dist/docs-tools/index.js +781 -768
- package/dist/highlight/index.cjs +19 -18
- package/dist/highlight/index.d.ts +4 -5
- package/dist/highlight/index.js +3 -2
- package/dist/highlight/preview.cjs +314 -310
- package/dist/highlight/preview.js +296 -292
- package/dist/instrumenter/index.cjs +561 -559
- package/dist/instrumenter/index.js +1564 -1516
- package/dist/manager/globals-module-info.cjs +1 -0
- package/dist/manager/globals-module-info.js +1 -0
- package/dist/manager/globals-runtime.js +21490 -21341
- package/dist/manager/runtime.js +5011 -4777
- package/dist/manager-api/index.cjs +2400 -2321
- package/dist/manager-api/index.d.ts +12 -1
- package/dist/manager-api/index.js +1951 -1903
- package/dist/manager-errors.js +37 -41
- package/dist/node-logger/index.cjs +25 -25
- package/dist/node-logger/index.js +25 -25
- package/dist/preview/runtime.js +14090 -14076
- package/dist/preview-api/index.cjs +1282 -1262
- package/dist/preview-api/index.js +1357 -1353
- package/dist/preview-errors.js +152 -173
- package/dist/router/index.cjs +1366 -1347
- package/dist/router/index.js +594 -575
- package/dist/server-errors.cjs +192 -177
- package/dist/server-errors.d.ts +11 -1
- package/dist/server-errors.js +173 -158
- package/dist/telemetry/index.cjs +4934 -1445
- package/dist/telemetry/index.d.ts +2 -1
- package/dist/telemetry/index.js +4966 -1475
- package/dist/test/index.cjs +69 -70
- package/dist/test/index.d.ts +1218 -80
- package/dist/test/index.js +9760 -9850
- package/dist/test/preview.cjs +664 -664
- package/dist/test/preview.js +3619 -3679
- package/dist/test/spy.cjs +112 -112
- package/dist/test/spy.d.ts +2 -6
- package/dist/test/spy.js +104 -104
- package/dist/theming/create.cjs +2244 -79
- package/dist/theming/create.js +951 -67
- package/dist/theming/index.cjs +3209 -1067
- package/dist/theming/index.js +1816 -947
- package/dist/types/index.cjs +4 -4
- package/dist/types/index.d.ts +2687 -2593
- package/package.json +13 -21
|
@@ -4,11 +4,11 @@ import { dirname as ESM_COMPAT_dirname } from 'node:path';
|
|
|
4
4
|
const __filename = ESM_COMPAT_fileURLToPath(import.meta.url);
|
|
5
5
|
const __dirname = ESM_COMPAT_dirname(__filename);
|
|
6
6
|
const require = ESM_COMPAT_Module.createRequire(import.meta.url);
|
|
7
|
-
var
|
|
7
|
+
var At = Object.create;
|
|
8
8
|
var A = Object.defineProperty;
|
|
9
|
-
var
|
|
10
|
-
var
|
|
11
|
-
var
|
|
9
|
+
var Nt = Object.getOwnPropertyDescriptor;
|
|
10
|
+
var Dt = Object.getOwnPropertyNames;
|
|
11
|
+
var It = Object.getPrototypeOf, Mt = Object.prototype.hasOwnProperty;
|
|
12
12
|
var o = (e, i) => A(e, "name", { value: i, configurable: !0 }), P = /* @__PURE__ */ ((e) => typeof require < "u" ? require : typeof Proxy < "\
|
|
13
13
|
u" ? new Proxy(e, {
|
|
14
14
|
get: (i, t) => (typeof require < "u" ? require : i)[t]
|
|
@@ -20,13 +20,13 @@ var q = (e, i) => () => (e && (i = e(e = 0)), i);
|
|
|
20
20
|
var N = (e, i) => () => (i || e((i = { exports: {} }).exports, i), i.exports), $ = (e, i) => {
|
|
21
21
|
for (var t in i)
|
|
22
22
|
A(e, t, { get: i[t], enumerable: !0 });
|
|
23
|
-
}, fe = (e, i, t,
|
|
23
|
+
}, fe = (e, i, t, r) => {
|
|
24
24
|
if (i && typeof i == "object" || typeof i == "function")
|
|
25
|
-
for (let
|
|
26
|
-
!
|
|
25
|
+
for (let a of Dt(i))
|
|
26
|
+
!Mt.call(e, a) && a !== t && A(e, a, { get: () => i[a], enumerable: !(r = Nt(i, a)) || r.enumerable });
|
|
27
27
|
return e;
|
|
28
28
|
};
|
|
29
|
-
var V = (e, i, t) => (t = e != null ?
|
|
29
|
+
var V = (e, i, t) => (t = e != null ? At(It(e)) : {}, fe(
|
|
30
30
|
// If the importer is in node compatibility mode or this is not an ESM
|
|
31
31
|
// file that has been converted to a CommonJS file using a Babel-
|
|
32
32
|
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
@@ -70,7 +70,7 @@ $(Be, {
|
|
|
70
70
|
__spreadArray: () => ke,
|
|
71
71
|
__spreadArrays: () => Re,
|
|
72
72
|
__values: () => H,
|
|
73
|
-
default: () =>
|
|
73
|
+
default: () => Bt
|
|
74
74
|
});
|
|
75
75
|
function xe(e, i) {
|
|
76
76
|
if (typeof i != "function" && i !== null)
|
|
@@ -83,51 +83,51 @@ function xe(e, i) {
|
|
|
83
83
|
}
|
|
84
84
|
function he(e, i) {
|
|
85
85
|
var t = {};
|
|
86
|
-
for (var
|
|
86
|
+
for (var r in e) Object.prototype.hasOwnProperty.call(e, r) && i.indexOf(r) < 0 && (t[r] = e[r]);
|
|
87
87
|
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
88
|
-
for (var
|
|
89
|
-
i.indexOf(a
|
|
88
|
+
for (var a = 0, r = Object.getOwnPropertySymbols(e); a < r.length; a++)
|
|
89
|
+
i.indexOf(r[a]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[a]) && (t[r[a]] = e[r[a]]);
|
|
90
90
|
return t;
|
|
91
91
|
}
|
|
92
|
-
function ye(e, i, t,
|
|
93
|
-
var
|
|
94
|
-
if (typeof Reflect == "object" && typeof Reflect.decorate == "function") n = Reflect.decorate(e, i, t,
|
|
95
|
-
else for (var
|
|
96
|
-
return
|
|
92
|
+
function ye(e, i, t, r) {
|
|
93
|
+
var a = arguments.length, n = a < 3 ? i : r === null ? r = Object.getOwnPropertyDescriptor(i, t) : r, s;
|
|
94
|
+
if (typeof Reflect == "object" && typeof Reflect.decorate == "function") n = Reflect.decorate(e, i, t, r);
|
|
95
|
+
else for (var l = e.length - 1; l >= 0; l--) (s = e[l]) && (n = (a < 3 ? s(n) : a > 3 ? s(i, t, n) : s(i, t)) || n);
|
|
96
|
+
return a > 3 && n && Object.defineProperty(i, t, n), n;
|
|
97
97
|
}
|
|
98
98
|
function ve(e, i) {
|
|
99
|
-
return function(t,
|
|
100
|
-
i(t,
|
|
99
|
+
return function(t, r) {
|
|
100
|
+
i(t, r, e);
|
|
101
101
|
};
|
|
102
102
|
}
|
|
103
|
-
function we(e, i, t,
|
|
103
|
+
function we(e, i, t, r, a, n) {
|
|
104
104
|
function s(v) {
|
|
105
105
|
if (v !== void 0 && typeof v != "function") throw new TypeError("Function expected");
|
|
106
106
|
return v;
|
|
107
107
|
}
|
|
108
108
|
o(s, "accept");
|
|
109
|
-
for (var
|
|
110
|
-
(
|
|
109
|
+
for (var l = r.kind, p = l === "getter" ? "get" : l === "setter" ? "set" : "value", c = !i && e ? r.static ? e : e.prototype : null, u = i ||
|
|
110
|
+
(c ? Object.getOwnPropertyDescriptor(c, r.name) : {}), d, x = !1, g = t.length - 1; g >= 0; g--) {
|
|
111
111
|
var m = {};
|
|
112
|
-
for (var f in
|
|
113
|
-
for (var f in
|
|
112
|
+
for (var f in r) m[f] = f === "access" ? {} : r[f];
|
|
113
|
+
for (var f in r.access) m.access[f] = r.access[f];
|
|
114
114
|
m.addInitializer = function(v) {
|
|
115
115
|
if (x) throw new TypeError("Cannot add initializers after decoration has completed");
|
|
116
116
|
n.push(s(v || null));
|
|
117
117
|
};
|
|
118
|
-
var y = (0, t[g])(
|
|
119
|
-
if (
|
|
118
|
+
var y = (0, t[g])(l === "accessor" ? { get: u.get, set: u.set } : u[p], m);
|
|
119
|
+
if (l === "accessor") {
|
|
120
120
|
if (y === void 0) continue;
|
|
121
121
|
if (y === null || typeof y != "object") throw new TypeError("Object expected");
|
|
122
|
-
(d = s(y.get)) && (u.get = d), (d = s(y.set)) && (u.set = d), (d = s(y.init)) &&
|
|
123
|
-
} else (d = s(y)) && (
|
|
122
|
+
(d = s(y.get)) && (u.get = d), (d = s(y.set)) && (u.set = d), (d = s(y.init)) && a.unshift(d);
|
|
123
|
+
} else (d = s(y)) && (l === "field" ? a.unshift(d) : u[p] = d);
|
|
124
124
|
}
|
|
125
|
-
|
|
125
|
+
c && Object.defineProperty(c, r.name, u), x = !0;
|
|
126
126
|
}
|
|
127
127
|
function be(e, i, t) {
|
|
128
|
-
for (var
|
|
129
|
-
t =
|
|
130
|
-
return
|
|
128
|
+
for (var r = arguments.length > 2, a = 0; a < i.length; a++)
|
|
129
|
+
t = r ? i[a].call(e, t) : i[a].call(e);
|
|
130
|
+
return r ? t : void 0;
|
|
131
131
|
}
|
|
132
132
|
function _e(e) {
|
|
133
133
|
return typeof e == "symbol" ? e : "".concat(e);
|
|
@@ -139,105 +139,105 @@ function je(e, i, t) {
|
|
|
139
139
|
function Oe(e, i) {
|
|
140
140
|
if (typeof Reflect == "object" && typeof Reflect.metadata == "function") return Reflect.metadata(e, i);
|
|
141
141
|
}
|
|
142
|
-
function Ee(e, i, t,
|
|
143
|
-
function
|
|
142
|
+
function Ee(e, i, t, r) {
|
|
143
|
+
function a(n) {
|
|
144
144
|
return n instanceof t ? n : new t(function(s) {
|
|
145
145
|
s(n);
|
|
146
146
|
});
|
|
147
147
|
}
|
|
148
|
-
return o(
|
|
149
|
-
function
|
|
148
|
+
return o(a, "adopt"), new (t || (t = Promise))(function(n, s) {
|
|
149
|
+
function l(u) {
|
|
150
150
|
try {
|
|
151
|
-
|
|
151
|
+
c(r.next(u));
|
|
152
152
|
} catch (d) {
|
|
153
153
|
s(d);
|
|
154
154
|
}
|
|
155
155
|
}
|
|
156
|
-
o(
|
|
156
|
+
o(l, "fulfilled");
|
|
157
157
|
function p(u) {
|
|
158
158
|
try {
|
|
159
|
-
|
|
159
|
+
c(r.throw(u));
|
|
160
160
|
} catch (d) {
|
|
161
161
|
s(d);
|
|
162
162
|
}
|
|
163
163
|
}
|
|
164
164
|
o(p, "rejected");
|
|
165
|
-
function
|
|
166
|
-
u.done ? n(u.value) :
|
|
165
|
+
function c(u) {
|
|
166
|
+
u.done ? n(u.value) : a(u.value).then(l, p);
|
|
167
167
|
}
|
|
168
|
-
o(
|
|
168
|
+
o(c, "step"), c((r = r.apply(e, i || [])).next());
|
|
169
169
|
});
|
|
170
170
|
}
|
|
171
171
|
function Se(e, i) {
|
|
172
172
|
var t = { label: 0, sent: /* @__PURE__ */ o(function() {
|
|
173
173
|
if (n[0] & 1) throw n[1];
|
|
174
174
|
return n[1];
|
|
175
|
-
}, "sent"), trys: [], ops: [] },
|
|
176
|
-
return s.next =
|
|
175
|
+
}, "sent"), trys: [], ops: [] }, r, a, n, s = Object.create((typeof Iterator == "function" ? Iterator : Object).prototype);
|
|
176
|
+
return s.next = l(0), s.throw = l(1), s.return = l(2), typeof Symbol == "function" && (s[Symbol.iterator] = function() {
|
|
177
177
|
return this;
|
|
178
178
|
}), s;
|
|
179
|
-
function c
|
|
179
|
+
function l(c) {
|
|
180
180
|
return function(u) {
|
|
181
|
-
return p([
|
|
181
|
+
return p([c, u]);
|
|
182
182
|
};
|
|
183
183
|
}
|
|
184
|
-
function p(
|
|
185
|
-
if (
|
|
186
|
-
for (; s && (s = 0,
|
|
187
|
-
if (
|
|
184
|
+
function p(c) {
|
|
185
|
+
if (r) throw new TypeError("Generator is already executing.");
|
|
186
|
+
for (; s && (s = 0, c[0] && (t = 0)), t; ) try {
|
|
187
|
+
if (r = 1, a && (n = c[0] & 2 ? a.return : c[0] ? a.throw || ((n = a.return) && n.call(a), 0) : a.next) && !(n = n.call(a, c[1])).done)
|
|
188
188
|
return n;
|
|
189
|
-
switch (
|
|
189
|
+
switch (a = 0, n && (c = [c[0] & 2, n.value]), c[0]) {
|
|
190
190
|
case 0:
|
|
191
191
|
case 1:
|
|
192
|
-
n =
|
|
192
|
+
n = c;
|
|
193
193
|
break;
|
|
194
194
|
case 4:
|
|
195
|
-
return t.label++, { value:
|
|
195
|
+
return t.label++, { value: c[1], done: !1 };
|
|
196
196
|
case 5:
|
|
197
|
-
t.label++,
|
|
197
|
+
t.label++, a = c[1], c = [0];
|
|
198
198
|
continue;
|
|
199
199
|
case 7:
|
|
200
|
-
|
|
200
|
+
c = t.ops.pop(), t.trys.pop();
|
|
201
201
|
continue;
|
|
202
202
|
default:
|
|
203
|
-
if (n = t.trys, !(n = n.length > 0 && n[n.length - 1]) && (
|
|
203
|
+
if (n = t.trys, !(n = n.length > 0 && n[n.length - 1]) && (c[0] === 6 || c[0] === 2)) {
|
|
204
204
|
t = 0;
|
|
205
205
|
continue;
|
|
206
206
|
}
|
|
207
|
-
if (
|
|
208
|
-
t.label =
|
|
207
|
+
if (c[0] === 3 && (!n || c[1] > n[0] && c[1] < n[3])) {
|
|
208
|
+
t.label = c[1];
|
|
209
209
|
break;
|
|
210
210
|
}
|
|
211
|
-
if (
|
|
212
|
-
t.label = n[1], n =
|
|
211
|
+
if (c[0] === 6 && t.label < n[1]) {
|
|
212
|
+
t.label = n[1], n = c;
|
|
213
213
|
break;
|
|
214
214
|
}
|
|
215
215
|
if (n && t.label < n[2]) {
|
|
216
|
-
t.label = n[2], t.ops.push(
|
|
216
|
+
t.label = n[2], t.ops.push(c);
|
|
217
217
|
break;
|
|
218
218
|
}
|
|
219
219
|
n[2] && t.ops.pop(), t.trys.pop();
|
|
220
220
|
continue;
|
|
221
221
|
}
|
|
222
|
-
|
|
222
|
+
c = i.call(e, t);
|
|
223
223
|
} catch (u) {
|
|
224
|
-
|
|
224
|
+
c = [6, u], a = 0;
|
|
225
225
|
} finally {
|
|
226
|
-
|
|
226
|
+
r = n = 0;
|
|
227
227
|
}
|
|
228
|
-
if (
|
|
229
|
-
return { value:
|
|
228
|
+
if (c[0] & 5) throw c[1];
|
|
229
|
+
return { value: c[0] ? c[1] : void 0, done: !0 };
|
|
230
230
|
}
|
|
231
231
|
}
|
|
232
232
|
function Pe(e, i) {
|
|
233
233
|
for (var t in e) t !== "default" && !Object.prototype.hasOwnProperty.call(i, t) && J(i, e, t);
|
|
234
234
|
}
|
|
235
235
|
function H(e) {
|
|
236
|
-
var i = typeof Symbol == "function" && Symbol.iterator, t = i && e[i],
|
|
236
|
+
var i = typeof Symbol == "function" && Symbol.iterator, t = i && e[i], r = 0;
|
|
237
237
|
if (t) return t.call(e);
|
|
238
238
|
if (e && typeof e.length == "number") return {
|
|
239
239
|
next: /* @__PURE__ */ o(function() {
|
|
240
|
-
return e &&
|
|
240
|
+
return e && r >= e.length && (e = void 0), { value: e && e[r++], done: !e };
|
|
241
241
|
}, "next")
|
|
242
242
|
};
|
|
243
243
|
throw new TypeError(i ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
@@ -245,14 +245,14 @@ function H(e) {
|
|
|
245
245
|
function ee(e, i) {
|
|
246
246
|
var t = typeof Symbol == "function" && e[Symbol.iterator];
|
|
247
247
|
if (!t) return e;
|
|
248
|
-
var
|
|
248
|
+
var r = t.call(e), a, n = [], s;
|
|
249
249
|
try {
|
|
250
|
-
for (; (i === void 0 || i-- > 0) && !(
|
|
251
|
-
} catch (
|
|
252
|
-
s = { error:
|
|
250
|
+
for (; (i === void 0 || i-- > 0) && !(a = r.next()).done; ) n.push(a.value);
|
|
251
|
+
} catch (l) {
|
|
252
|
+
s = { error: l };
|
|
253
253
|
} finally {
|
|
254
254
|
try {
|
|
255
|
-
|
|
255
|
+
a && !a.done && (t = r.return) && t.call(r);
|
|
256
256
|
} finally {
|
|
257
257
|
if (s) throw s.error;
|
|
258
258
|
}
|
|
@@ -266,14 +266,14 @@ function Te() {
|
|
|
266
266
|
}
|
|
267
267
|
function Re() {
|
|
268
268
|
for (var e = 0, i = 0, t = arguments.length; i < t; i++) e += arguments[i].length;
|
|
269
|
-
for (var
|
|
270
|
-
for (var n = arguments[i], s = 0,
|
|
271
|
-
a
|
|
272
|
-
return
|
|
269
|
+
for (var r = Array(e), a = 0, i = 0; i < t; i++)
|
|
270
|
+
for (var n = arguments[i], s = 0, l = n.length; s < l; s++, a++)
|
|
271
|
+
r[a] = n[s];
|
|
272
|
+
return r;
|
|
273
273
|
}
|
|
274
274
|
function ke(e, i, t) {
|
|
275
|
-
if (t || arguments.length === 2) for (var
|
|
276
|
-
(n || !(
|
|
275
|
+
if (t || arguments.length === 2) for (var r = 0, a = i.length, n; r < a; r++)
|
|
276
|
+
(n || !(r in i)) && (n || (n = Array.prototype.slice.call(i, 0, r)), n[r] = i[r]);
|
|
277
277
|
return e.concat(n || Array.prototype.slice.call(i));
|
|
278
278
|
}
|
|
279
279
|
function F(e) {
|
|
@@ -281,31 +281,31 @@ function F(e) {
|
|
|
281
281
|
}
|
|
282
282
|
function Fe(e, i, t) {
|
|
283
283
|
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
284
|
-
var
|
|
285
|
-
return
|
|
284
|
+
var r = t.apply(e, i || []), a, n = [];
|
|
285
|
+
return a = Object.create((typeof AsyncIterator == "function" ? AsyncIterator : Object).prototype), l("next"), l("throw"), l("return", s), a[Symbol.
|
|
286
286
|
asyncIterator] = function() {
|
|
287
287
|
return this;
|
|
288
|
-
},
|
|
288
|
+
}, a;
|
|
289
289
|
function s(g) {
|
|
290
290
|
return function(m) {
|
|
291
291
|
return Promise.resolve(m).then(g, d);
|
|
292
292
|
};
|
|
293
293
|
}
|
|
294
|
-
function
|
|
295
|
-
|
|
294
|
+
function l(g, m) {
|
|
295
|
+
r[g] && (a[g] = function(f) {
|
|
296
296
|
return new Promise(function(y, v) {
|
|
297
297
|
n.push([g, f, y, v]) > 1 || p(g, f);
|
|
298
298
|
});
|
|
299
|
-
}, m && (
|
|
299
|
+
}, m && (a[g] = m(a[g])));
|
|
300
300
|
}
|
|
301
301
|
function p(g, m) {
|
|
302
302
|
try {
|
|
303
|
-
|
|
303
|
+
c(r[g](m));
|
|
304
304
|
} catch (f) {
|
|
305
305
|
x(n[0][3], f);
|
|
306
306
|
}
|
|
307
307
|
}
|
|
308
|
-
function
|
|
308
|
+
function c(g) {
|
|
309
309
|
g.value instanceof F ? Promise.resolve(g.value.v).then(u, d) : x(n[0][2], g);
|
|
310
310
|
}
|
|
311
311
|
function u(g) {
|
|
@@ -320,34 +320,34 @@ function Fe(e, i, t) {
|
|
|
320
320
|
}
|
|
321
321
|
function Le(e) {
|
|
322
322
|
var i, t;
|
|
323
|
-
return i = {},
|
|
324
|
-
throw
|
|
325
|
-
}),
|
|
323
|
+
return i = {}, r("next"), r("throw", function(a) {
|
|
324
|
+
throw a;
|
|
325
|
+
}), r("return"), i[Symbol.iterator] = function() {
|
|
326
326
|
return this;
|
|
327
327
|
}, i;
|
|
328
|
-
function a
|
|
329
|
-
i[
|
|
330
|
-
return (t = !t) ? { value: F(e[
|
|
328
|
+
function r(a, n) {
|
|
329
|
+
i[a] = e[a] ? function(s) {
|
|
330
|
+
return (t = !t) ? { value: F(e[a](s)), done: !1 } : n ? n(s) : s;
|
|
331
331
|
} : n;
|
|
332
332
|
}
|
|
333
333
|
}
|
|
334
334
|
function Ce(e) {
|
|
335
335
|
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
336
336
|
var i = e[Symbol.asyncIterator], t;
|
|
337
|
-
return i ? i.call(e) : (e = typeof H == "function" ? H(e) : e[Symbol.iterator](), t = {},
|
|
337
|
+
return i ? i.call(e) : (e = typeof H == "function" ? H(e) : e[Symbol.iterator](), t = {}, r("next"), r("throw"), r("return"), t[Symbol.asyncIterator] =
|
|
338
338
|
function() {
|
|
339
339
|
return this;
|
|
340
340
|
}, t);
|
|
341
|
-
function
|
|
341
|
+
function r(n) {
|
|
342
342
|
t[n] = e[n] && function(s) {
|
|
343
|
-
return new Promise(function(
|
|
344
|
-
s = e[n](s),
|
|
343
|
+
return new Promise(function(l, p) {
|
|
344
|
+
s = e[n](s), a(l, p, s.done, s.value);
|
|
345
345
|
});
|
|
346
346
|
};
|
|
347
347
|
}
|
|
348
|
-
function
|
|
349
|
-
Promise.resolve(p).then(function(
|
|
350
|
-
n({ value:
|
|
348
|
+
function a(n, s, l, p) {
|
|
349
|
+
Promise.resolve(p).then(function(c) {
|
|
350
|
+
n({ value: c, done: l });
|
|
351
351
|
}, s);
|
|
352
352
|
}
|
|
353
353
|
}
|
|
@@ -357,24 +357,24 @@ function Ae(e, i) {
|
|
|
357
357
|
function Ne(e) {
|
|
358
358
|
if (e && e.__esModule) return e;
|
|
359
359
|
var i = {};
|
|
360
|
-
if (e != null) for (var t = Q(e),
|
|
361
|
-
return
|
|
360
|
+
if (e != null) for (var t = Q(e), r = 0; r < t.length; r++) t[r] !== "default" && J(i, e, t[r]);
|
|
361
|
+
return $t(i, e), i;
|
|
362
362
|
}
|
|
363
363
|
function De(e) {
|
|
364
364
|
return e && e.__esModule ? e : { default: e };
|
|
365
365
|
}
|
|
366
|
-
function Ie(e, i, t,
|
|
367
|
-
if (t === "a" && !
|
|
368
|
-
if (typeof i == "function" ? e !== i || !
|
|
366
|
+
function Ie(e, i, t, r) {
|
|
367
|
+
if (t === "a" && !r) throw new TypeError("Private accessor was defined without a getter");
|
|
368
|
+
if (typeof i == "function" ? e !== i || !r : !i.has(e)) throw new TypeError("Cannot read private member from an object whose class did not\
|
|
369
369
|
declare it");
|
|
370
|
-
return t === "m" ?
|
|
370
|
+
return t === "m" ? r : t === "a" ? r.call(e) : r ? r.value : i.get(e);
|
|
371
371
|
}
|
|
372
|
-
function Me(e, i, t,
|
|
373
|
-
if (
|
|
374
|
-
if (
|
|
375
|
-
if (typeof i == "function" ? e !== i || !
|
|
372
|
+
function Me(e, i, t, r, a) {
|
|
373
|
+
if (r === "m") throw new TypeError("Private method is not writable");
|
|
374
|
+
if (r === "a" && !a) throw new TypeError("Private accessor was defined without a setter");
|
|
375
|
+
if (typeof i == "function" ? e !== i || !a : !i.has(e)) throw new TypeError("Cannot write private member to an object whose class did not \
|
|
376
376
|
declare it");
|
|
377
|
-
return
|
|
377
|
+
return r === "a" ? a.call(e, t) : a ? a.value = t : i.set(e, t), t;
|
|
378
378
|
}
|
|
379
379
|
function ze(e, i) {
|
|
380
380
|
if (i === null || typeof i != "object" && typeof i != "function") throw new TypeError("Cannot use 'in' operator on non-object");
|
|
@@ -383,68 +383,68 @@ function ze(e, i) {
|
|
|
383
383
|
function qe(e, i, t) {
|
|
384
384
|
if (i != null) {
|
|
385
385
|
if (typeof i != "object" && typeof i != "function") throw new TypeError("Object expected.");
|
|
386
|
-
var
|
|
386
|
+
var r, a;
|
|
387
387
|
if (t) {
|
|
388
388
|
if (!Symbol.asyncDispose) throw new TypeError("Symbol.asyncDispose is not defined.");
|
|
389
|
-
|
|
389
|
+
r = i[Symbol.asyncDispose];
|
|
390
390
|
}
|
|
391
|
-
if (
|
|
391
|
+
if (r === void 0) {
|
|
392
392
|
if (!Symbol.dispose) throw new TypeError("Symbol.dispose is not defined.");
|
|
393
|
-
|
|
393
|
+
r = i[Symbol.dispose], t && (a = r);
|
|
394
394
|
}
|
|
395
|
-
if (typeof
|
|
396
|
-
|
|
395
|
+
if (typeof r != "function") throw new TypeError("Object not disposable.");
|
|
396
|
+
a && (r = /* @__PURE__ */ o(function() {
|
|
397
397
|
try {
|
|
398
|
-
|
|
398
|
+
a.call(this);
|
|
399
399
|
} catch (n) {
|
|
400
400
|
return Promise.reject(n);
|
|
401
401
|
}
|
|
402
|
-
}, "dispose")), e.stack.push({ value: i, dispose:
|
|
402
|
+
}, "dispose")), e.stack.push({ value: i, dispose: r, async: t });
|
|
403
403
|
} else t && e.stack.push({ async: !0 });
|
|
404
404
|
return i;
|
|
405
405
|
}
|
|
406
406
|
function $e(e) {
|
|
407
407
|
function i(n) {
|
|
408
|
-
e.error = e.hasError ? new
|
|
408
|
+
e.error = e.hasError ? new Wt(n, e.error, "An error was suppressed during disposal.") : n, e.hasError = !0;
|
|
409
409
|
}
|
|
410
410
|
o(i, "fail");
|
|
411
|
-
var t,
|
|
412
|
-
function
|
|
411
|
+
var t, r = 0;
|
|
412
|
+
function a() {
|
|
413
413
|
for (; t = e.stack.pop(); )
|
|
414
414
|
try {
|
|
415
|
-
if (!t.async &&
|
|
415
|
+
if (!t.async && r === 1) return r = 0, e.stack.push(t), Promise.resolve().then(a);
|
|
416
416
|
if (t.dispose) {
|
|
417
417
|
var n = t.dispose.call(t.value);
|
|
418
|
-
if (t.async) return
|
|
419
|
-
return i(s),
|
|
418
|
+
if (t.async) return r |= 2, Promise.resolve(n).then(a, function(s) {
|
|
419
|
+
return i(s), a();
|
|
420
420
|
});
|
|
421
|
-
} else
|
|
421
|
+
} else r |= 1;
|
|
422
422
|
} catch (s) {
|
|
423
423
|
i(s);
|
|
424
424
|
}
|
|
425
|
-
if (
|
|
425
|
+
if (r === 1) return e.hasError ? Promise.reject(e.error) : Promise.resolve();
|
|
426
426
|
if (e.hasError) throw e.error;
|
|
427
427
|
}
|
|
428
|
-
return o(
|
|
428
|
+
return o(a, "next"), a();
|
|
429
429
|
}
|
|
430
430
|
function We(e, i) {
|
|
431
|
-
return typeof e == "string" && /^\.\.?\//.test(e) ? e.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i, function(t,
|
|
432
|
-
return
|
|
431
|
+
return typeof e == "string" && /^\.\.?\//.test(e) ? e.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i, function(t, r, a, n, s) {
|
|
432
|
+
return r ? i ? ".jsx" : ".js" : a && (!n || !s) ? t : a + n + "." + s.toLowerCase() + "js";
|
|
433
433
|
}) : e;
|
|
434
434
|
}
|
|
435
|
-
var Y, B, J,
|
|
435
|
+
var Y, B, J, $t, Q, Wt, Bt, He = q(() => {
|
|
436
436
|
Y = /* @__PURE__ */ o(function(e, i) {
|
|
437
|
-
return Y = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t,
|
|
438
|
-
t.__proto__ =
|
|
439
|
-
} || function(t,
|
|
440
|
-
for (var
|
|
437
|
+
return Y = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, r) {
|
|
438
|
+
t.__proto__ = r;
|
|
439
|
+
} || function(t, r) {
|
|
440
|
+
for (var a in r) Object.prototype.hasOwnProperty.call(r, a) && (t[a] = r[a]);
|
|
441
441
|
}, Y(e, i);
|
|
442
442
|
}, "extendStatics");
|
|
443
443
|
o(xe, "__extends");
|
|
444
444
|
B = /* @__PURE__ */ o(function() {
|
|
445
445
|
return B = Object.assign || /* @__PURE__ */ o(function(i) {
|
|
446
|
-
for (var t,
|
|
447
|
-
t = arguments[
|
|
446
|
+
for (var t, r = 1, a = arguments.length; r < a; r++) {
|
|
447
|
+
t = arguments[r];
|
|
448
448
|
for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (i[n] = t[n]);
|
|
449
449
|
}
|
|
450
450
|
return i;
|
|
@@ -460,14 +460,14 @@ var Y, B, J, qt, Q, $t, Wt, He = q(() => {
|
|
|
460
460
|
o(Oe, "__metadata");
|
|
461
461
|
o(Ee, "__awaiter");
|
|
462
462
|
o(Se, "__generator");
|
|
463
|
-
J = Object.create ? function(e, i, t,
|
|
464
|
-
|
|
465
|
-
var
|
|
466
|
-
(!
|
|
463
|
+
J = Object.create ? function(e, i, t, r) {
|
|
464
|
+
r === void 0 && (r = t);
|
|
465
|
+
var a = Object.getOwnPropertyDescriptor(i, t);
|
|
466
|
+
(!a || ("get" in a ? !i.__esModule : a.writable || a.configurable)) && (a = { enumerable: !0, get: /* @__PURE__ */ o(function() {
|
|
467
467
|
return i[t];
|
|
468
|
-
}, "get") }), Object.defineProperty(e,
|
|
469
|
-
} : function(e, i, t,
|
|
470
|
-
|
|
468
|
+
}, "get") }), Object.defineProperty(e, r, a);
|
|
469
|
+
} : function(e, i, t, r) {
|
|
470
|
+
r === void 0 && (r = t), e[r] = i[t];
|
|
471
471
|
};
|
|
472
472
|
o(Pe, "__exportStar");
|
|
473
473
|
o(H, "__values");
|
|
@@ -480,14 +480,14 @@ var Y, B, J, qt, Q, $t, Wt, He = q(() => {
|
|
|
480
480
|
o(Le, "__asyncDelegator");
|
|
481
481
|
o(Ce, "__asyncValues");
|
|
482
482
|
o(Ae, "__makeTemplateObject");
|
|
483
|
-
|
|
483
|
+
$t = Object.create ? function(e, i) {
|
|
484
484
|
Object.defineProperty(e, "default", { enumerable: !0, value: i });
|
|
485
485
|
} : function(e, i) {
|
|
486
486
|
e.default = i;
|
|
487
487
|
}, Q = /* @__PURE__ */ o(function(e) {
|
|
488
488
|
return Q = Object.getOwnPropertyNames || function(i) {
|
|
489
489
|
var t = [];
|
|
490
|
-
for (var
|
|
490
|
+
for (var r in i) Object.prototype.hasOwnProperty.call(i, r) && (t[t.length] = r);
|
|
491
491
|
return t;
|
|
492
492
|
}, Q(e);
|
|
493
493
|
}, "ownKeys");
|
|
@@ -497,13 +497,13 @@ var Y, B, J, qt, Q, $t, Wt, He = q(() => {
|
|
|
497
497
|
o(Me, "__classPrivateFieldSet");
|
|
498
498
|
o(ze, "__classPrivateFieldIn");
|
|
499
499
|
o(qe, "__addDisposableResource");
|
|
500
|
-
|
|
501
|
-
var
|
|
502
|
-
return
|
|
500
|
+
Wt = typeof SuppressedError == "function" ? SuppressedError : function(e, i, t) {
|
|
501
|
+
var r = new Error(t);
|
|
502
|
+
return r.name = "SuppressedError", r.error = e, r.suppressed = i, r;
|
|
503
503
|
};
|
|
504
504
|
o($e, "__disposeResources");
|
|
505
505
|
o(We, "__rewriteRelativeImportExtension");
|
|
506
|
-
|
|
506
|
+
Bt = {
|
|
507
507
|
__extends: xe,
|
|
508
508
|
__assign: B,
|
|
509
509
|
__rest: he,
|
|
@@ -540,20 +540,20 @@ var Y, B, J, qt, Q, $t, Wt, He = q(() => {
|
|
|
540
540
|
});
|
|
541
541
|
|
|
542
542
|
// ../node_modules/@yarnpkg/esbuild-plugin-pnp/lib/index.js
|
|
543
|
-
var
|
|
543
|
+
var Ue = N((U) => {
|
|
544
544
|
"use strict";
|
|
545
|
-
Object.defineProperty(
|
|
546
|
-
|
|
547
|
-
var Je = (He(), W(Be)),
|
|
545
|
+
Object.defineProperty(U, "__esModule", { value: !0 });
|
|
546
|
+
U.pnpPlugin = void 0;
|
|
547
|
+
var Je = (He(), W(Be)), Ht = Je.__importStar(P("fs")), Jt = Je.__importDefault(P("path")), Ut = /()/, Gt = [".tsx", ".ts", ".jsx", ".mjs",
|
|
548
548
|
".cjs", ".js", ".css", ".json"];
|
|
549
|
-
function
|
|
549
|
+
function Vt(e) {
|
|
550
550
|
return e.map((i) => {
|
|
551
551
|
let t = i.indexOf("*");
|
|
552
552
|
return t !== -1 ? { prefix: i.slice(0, t), suffix: i.slice(t + 1) } : i;
|
|
553
553
|
});
|
|
554
554
|
}
|
|
555
|
-
o(
|
|
556
|
-
function
|
|
555
|
+
o(Vt, "parseExternals");
|
|
556
|
+
function Xt(e, i) {
|
|
557
557
|
for (let t of i)
|
|
558
558
|
if (typeof t == "object") {
|
|
559
559
|
if (e.length >= t.prefix.length + t.suffix.length && e.startsWith(t.prefix) && e.endsWith(t.suffix))
|
|
@@ -563,52 +563,52 @@ var Ge = N((G) => {
|
|
|
563
563
|
return !0;
|
|
564
564
|
return !1;
|
|
565
565
|
}
|
|
566
|
-
o(
|
|
567
|
-
async function
|
|
566
|
+
o(Xt, "isExternal");
|
|
567
|
+
async function Kt(e) {
|
|
568
568
|
return {
|
|
569
|
-
contents: await
|
|
569
|
+
contents: await Ht.promises.readFile(e.path),
|
|
570
570
|
loader: "default",
|
|
571
571
|
// For regular imports in the `file` namespace, resolveDir is the directory the
|
|
572
572
|
// file being resolved lives in. For all other virtual modules, this defaults to
|
|
573
573
|
// empty string: ""
|
|
574
574
|
// A sensible value for pnp imports is the same as the `file` namespace, as pnp
|
|
575
575
|
// still resolves to files on disk (in the cache).
|
|
576
|
-
resolveDir:
|
|
576
|
+
resolveDir: Jt.default.dirname(e.path)
|
|
577
577
|
};
|
|
578
578
|
}
|
|
579
|
-
o(
|
|
580
|
-
async function
|
|
581
|
-
let
|
|
579
|
+
o(Kt, "defaultOnLoad");
|
|
580
|
+
async function Zt(e, { resolvedPath: i, error: t, watchFiles: r }) {
|
|
581
|
+
let a = t ? [{ text: t.message }] : [], n;
|
|
582
582
|
switch (e.kind) {
|
|
583
583
|
case "require-call":
|
|
584
584
|
case "require-resolve":
|
|
585
585
|
case "dynamic-import":
|
|
586
|
-
n = { warnings:
|
|
586
|
+
n = { warnings: a };
|
|
587
587
|
break;
|
|
588
588
|
default:
|
|
589
|
-
n = { errors:
|
|
589
|
+
n = { errors: a };
|
|
590
590
|
break;
|
|
591
591
|
}
|
|
592
|
-
return i !== null ? { namespace: "pnp", path: i, watchFiles:
|
|
592
|
+
return i !== null ? { namespace: "pnp", path: i, watchFiles: r } : { external: !0, ...n, watchFiles: r };
|
|
593
593
|
}
|
|
594
|
-
o(
|
|
595
|
-
function
|
|
594
|
+
o(Zt, "defaultOnResolve");
|
|
595
|
+
function Yt({ baseDir: e = process.cwd(), extensions: i = Gt, filter: t = Ut, onResolve: r = Zt, onLoad: a = Kt } = {}) {
|
|
596
596
|
return {
|
|
597
597
|
name: "@yarnpkg/esbuild-plugin-pnp",
|
|
598
598
|
setup(n) {
|
|
599
|
-
var s,
|
|
599
|
+
var s, l;
|
|
600
600
|
let { findPnpApi: p } = P("module");
|
|
601
601
|
if (typeof p > "u")
|
|
602
602
|
return;
|
|
603
|
-
let
|
|
604
|
-
void 0 ?
|
|
603
|
+
let c = Vt((s = n.initialOptions.external) !== null && s !== void 0 ? s : []), u = (l = n.initialOptions.platform) !== null && l !==
|
|
604
|
+
void 0 ? l : "browser", d = u === "node", x = new Set(n.initialOptions.conditions);
|
|
605
605
|
x.add("default"), (u === "browser" || u === "node") && x.add(u);
|
|
606
606
|
let g = new Set(x);
|
|
607
607
|
g.add("import");
|
|
608
608
|
let m = new Set(x);
|
|
609
609
|
m.add("require"), n.onResolve({ filter: t }, (f) => {
|
|
610
610
|
var y, v;
|
|
611
|
-
if (
|
|
611
|
+
if (Xt(f.path, c))
|
|
612
612
|
return { external: !0 };
|
|
613
613
|
let _ = x;
|
|
614
614
|
f.kind === "dynamic-import" || f.kind === "import-statement" ? _ = g : (f.kind === "require-call" || f.kind === "require-resolve") &&
|
|
@@ -630,66 +630,67 @@ var Ge = N((G) => {
|
|
|
630
630
|
if (E) {
|
|
631
631
|
let z = w.findPackageLocator(E);
|
|
632
632
|
if (z) {
|
|
633
|
-
let
|
|
634
|
-
|
|
633
|
+
let G = w.getPackageInformation(z);
|
|
634
|
+
G?.linkType === "SOFT" && R.push((v = (y = w.resolveVirtual) === null || y === void 0 ? void 0 : y.call(w, E)) !== null && v !==
|
|
635
635
|
void 0 ? v : E);
|
|
636
636
|
}
|
|
637
637
|
}
|
|
638
|
-
return
|
|
639
|
-
}), n.onLoad !== null && n.onLoad({ filter: t },
|
|
638
|
+
return r(f, { resolvedPath: E, error: S, watchFiles: R });
|
|
639
|
+
}), n.onLoad !== null && n.onLoad({ filter: t }, a);
|
|
640
640
|
}
|
|
641
641
|
};
|
|
642
642
|
}
|
|
643
|
-
o(
|
|
644
|
-
|
|
643
|
+
o(Yt, "pnpPlugin");
|
|
644
|
+
U.pnpPlugin = Yt;
|
|
645
645
|
});
|
|
646
646
|
|
|
647
647
|
// ../node_modules/totalist/sync/index.mjs
|
|
648
648
|
var Ve = {};
|
|
649
649
|
$(Ve, {
|
|
650
|
-
totalist: () =>
|
|
650
|
+
totalist: () => Ge
|
|
651
651
|
});
|
|
652
|
-
import { join as te, resolve as
|
|
653
|
-
import { readdirSync as
|
|
654
|
-
function
|
|
655
|
-
e =
|
|
656
|
-
let
|
|
657
|
-
for (;
|
|
658
|
-
n = te(e, a
|
|
652
|
+
import { join as te, resolve as Qt } from "path";
|
|
653
|
+
import { readdirSync as ei, statSync as ti } from "fs";
|
|
654
|
+
function Ge(e, i, t = "") {
|
|
655
|
+
e = Qt(".", e);
|
|
656
|
+
let r = ei(e), a = 0, n, s;
|
|
657
|
+
for (; a < r.length; a++)
|
|
658
|
+
n = te(e, r[a]), s = ti(n), s.isDirectory() ? Ge(n, i, te(t, r[a])) : i(te(t, r[a]), n, s);
|
|
659
659
|
}
|
|
660
660
|
var Xe = q(() => {
|
|
661
|
-
o(
|
|
661
|
+
o(Ge, "totalist");
|
|
662
662
|
});
|
|
663
663
|
|
|
664
664
|
// ../node_modules/@polka/url/build.mjs
|
|
665
665
|
var Ze = {};
|
|
666
666
|
$(Ze, {
|
|
667
|
-
parse: () =>
|
|
667
|
+
parse: () => ii
|
|
668
668
|
});
|
|
669
669
|
import * as Ke from "node:querystring";
|
|
670
|
-
function
|
|
670
|
+
function ii(e) {
|
|
671
671
|
let i = e.url;
|
|
672
672
|
if (i == null) return;
|
|
673
673
|
let t = e._parsedUrl;
|
|
674
674
|
if (t && t.raw === i) return t;
|
|
675
|
-
let
|
|
675
|
+
let r = i, a = "", n, s;
|
|
676
676
|
if (i.length > 1) {
|
|
677
|
-
let
|
|
678
|
-
|
|
677
|
+
let l = i.indexOf("#", 1);
|
|
678
|
+
l !== -1 && (s = i.substring(l), r = i.substring(0, l)), l = r.indexOf("?", 1), l !== -1 && (a = r.substring(l), r = r.substring(0, l), a.
|
|
679
|
+
length > 1 && (n = Ke.parse(a.substring(1))));
|
|
679
680
|
}
|
|
680
|
-
return e._parsedUrl = { pathname:
|
|
681
|
+
return e._parsedUrl = { pathname: r, search: a, query: n, hash: s, raw: i };
|
|
681
682
|
}
|
|
682
683
|
var Ye = q(() => {
|
|
683
|
-
o(
|
|
684
|
+
o(ii, "parse");
|
|
684
685
|
});
|
|
685
686
|
|
|
686
687
|
// ../node_modules/mrmime/index.mjs
|
|
687
688
|
var et = {};
|
|
688
689
|
$(et, {
|
|
689
|
-
lookup: () =>
|
|
690
|
+
lookup: () => ri,
|
|
690
691
|
mimes: () => Qe
|
|
691
692
|
});
|
|
692
|
-
function
|
|
693
|
+
function ri(e) {
|
|
693
694
|
let i = ("" + e).trim().toLowerCase(), t = i.lastIndexOf(".");
|
|
694
695
|
return Qe[~t ? i.substring(++t) : i];
|
|
695
696
|
}
|
|
@@ -850,6 +851,7 @@ var Qe, tt = q(() => {
|
|
|
850
851
|
jsonml: "application/jsonml+json",
|
|
851
852
|
jsx: "text/jsx",
|
|
852
853
|
jt: "model/jt",
|
|
854
|
+
jxl: "image/jxl",
|
|
853
855
|
jxr: "image/jxr",
|
|
854
856
|
jxra: "image/jxra",
|
|
855
857
|
jxrs: "image/jxrs",
|
|
@@ -870,6 +872,8 @@ var Qe, tt = q(() => {
|
|
|
870
872
|
m1v: "video/mpeg",
|
|
871
873
|
m21: "application/mp21",
|
|
872
874
|
m2a: "audio/mpeg",
|
|
875
|
+
m2t: "video/mp2t",
|
|
876
|
+
m2ts: "video/mp2t",
|
|
873
877
|
m2v: "video/mpeg",
|
|
874
878
|
m3a: "audio/mpeg",
|
|
875
879
|
m4a: "audio/mp4",
|
|
@@ -930,6 +934,7 @@ var Qe, tt = q(() => {
|
|
|
930
934
|
msm: "application/octet-stream",
|
|
931
935
|
msp: "application/octet-stream",
|
|
932
936
|
mtl: "model/mtl",
|
|
937
|
+
mts: "video/mp2t",
|
|
933
938
|
musd: "application/mmt-usd+xml",
|
|
934
939
|
mxf: "application/mxf",
|
|
935
940
|
mxmf: "audio/mobile-xmf",
|
|
@@ -1130,82 +1135,82 @@ var Qe, tt = q(() => {
|
|
|
1130
1135
|
yml: "text/yaml",
|
|
1131
1136
|
zip: "application/zip"
|
|
1132
1137
|
};
|
|
1133
|
-
o(
|
|
1138
|
+
o(ri, "lookup");
|
|
1134
1139
|
});
|
|
1135
1140
|
|
|
1136
1141
|
// ../node_modules/sirv/build.js
|
|
1137
|
-
var nt = N((
|
|
1138
|
-
var ie = P("fs"), { join: ai, normalize:
|
|
1139
|
-
lookup:
|
|
1142
|
+
var nt = N((Ir, at) => {
|
|
1143
|
+
var ie = P("fs"), { join: ai, normalize: ni, resolve: oi } = P("path"), { totalist: si } = (Xe(), W(Ve)), { parse: li } = (Ye(), W(Ze)), {
|
|
1144
|
+
lookup: ci } = (tt(), W(et)), pi = /* @__PURE__ */ o(() => {
|
|
1140
1145
|
}, "noop");
|
|
1141
|
-
function
|
|
1146
|
+
function mi(e, i) {
|
|
1142
1147
|
for (let t = 0; t < i.length; t++)
|
|
1143
1148
|
if (i[t].test(e)) return !0;
|
|
1144
1149
|
}
|
|
1145
|
-
o(
|
|
1150
|
+
o(mi, "isMatch");
|
|
1146
1151
|
function it(e, i) {
|
|
1147
|
-
let t = 0,
|
|
1148
|
-
e.charCodeAt(
|
|
1152
|
+
let t = 0, r, a = e.length - 1;
|
|
1153
|
+
e.charCodeAt(a) === 47 && (e = e.substring(0, a));
|
|
1149
1154
|
let n = [], s = `${e}/index`;
|
|
1150
1155
|
for (; t < i.length; t++)
|
|
1151
|
-
|
|
1156
|
+
r = i[t] ? `.${i[t]}` : "", e && n.push(e + r), n.push(s + r);
|
|
1152
1157
|
return n;
|
|
1153
1158
|
}
|
|
1154
1159
|
o(it, "toAssume");
|
|
1155
|
-
function
|
|
1156
|
-
let
|
|
1157
|
-
for (; a < n.length; a++)
|
|
1158
|
-
if (r = e[n[a]]) return r;
|
|
1159
|
-
}
|
|
1160
|
-
o(mi, "viaCache");
|
|
1161
|
-
function ui(e, i, t, a) {
|
|
1162
|
-
let r = 0, n = it(t, a), s, c, p, l;
|
|
1160
|
+
function ui(e, i, t) {
|
|
1161
|
+
let r = 0, a, n = it(i, t);
|
|
1163
1162
|
for (; r < n.length; r++)
|
|
1164
|
-
if (
|
|
1165
|
-
|
|
1166
|
-
|
|
1163
|
+
if (a = e[n[r]]) return a;
|
|
1164
|
+
}
|
|
1165
|
+
o(ui, "viaCache");
|
|
1166
|
+
function fi(e, i, t, r) {
|
|
1167
|
+
let a = 0, n = it(t, r), s, l, p, c;
|
|
1168
|
+
for (; a < n.length; a++)
|
|
1169
|
+
if (s = ni(ai(e, p = n[a])), s.startsWith(e) && ie.existsSync(s)) {
|
|
1170
|
+
if (l = ie.statSync(s), l.isDirectory()) continue;
|
|
1171
|
+
return c = rt(p, l, i), c["Cache-Control"] = i ? "no-cache" : "no-store", { abs: s, stats: l, headers: c };
|
|
1167
1172
|
}
|
|
1168
1173
|
}
|
|
1169
|
-
o(
|
|
1170
|
-
function
|
|
1174
|
+
o(fi, "viaLocal");
|
|
1175
|
+
function di(e, i) {
|
|
1171
1176
|
return i.statusCode = 404, i.end();
|
|
1172
1177
|
}
|
|
1173
|
-
o(
|
|
1174
|
-
function
|
|
1175
|
-
let n = 200, s,
|
|
1176
|
-
|
|
1177
|
-
for (let p in
|
|
1178
|
-
s = i.getHeader(p), s && (
|
|
1179
|
-
if ((s = i.getHeader("content-type")) && (
|
|
1178
|
+
o(di, "is404");
|
|
1179
|
+
function gi(e, i, t, r, a) {
|
|
1180
|
+
let n = 200, s, l = {};
|
|
1181
|
+
a = { ...a };
|
|
1182
|
+
for (let p in a)
|
|
1183
|
+
s = i.getHeader(p), s && (a[p] = s);
|
|
1184
|
+
if ((s = i.getHeader("content-type")) && (a["Content-Type"] = s), e.headers.range) {
|
|
1180
1185
|
n = 206;
|
|
1181
|
-
let [p,
|
|
1186
|
+
let [p, c] = e.headers.range.replace("bytes=", "").split("-"), u = l.end = parseInt(c, 10) || r.size - 1, d = l.start = parseInt(p, 10) ||
|
|
1182
1187
|
0;
|
|
1183
|
-
if (u >=
|
|
1184
|
-
return i.setHeader("Content-Range", `bytes */${
|
|
1185
|
-
|
|
1188
|
+
if (u >= r.size && (u = r.size - 1), d >= r.size)
|
|
1189
|
+
return i.setHeader("Content-Range", `bytes */${r.size}`), i.statusCode = 416, i.end();
|
|
1190
|
+
a["Content-Range"] = `bytes ${d}-${u}/${r.size}`, a["Content-Length"] = u - d + 1, a["Accept-Ranges"] = "bytes";
|
|
1186
1191
|
}
|
|
1187
|
-
i.writeHead(n,
|
|
1192
|
+
i.writeHead(n, a), ie.createReadStream(t, l).pipe(i);
|
|
1188
1193
|
}
|
|
1189
|
-
o(
|
|
1190
|
-
var
|
|
1194
|
+
o(gi, "send");
|
|
1195
|
+
var xi = {
|
|
1191
1196
|
".br": "br",
|
|
1192
1197
|
".gz": "gzip"
|
|
1193
1198
|
};
|
|
1194
|
-
function
|
|
1195
|
-
let
|
|
1196
|
-
|
|
1199
|
+
function rt(e, i, t) {
|
|
1200
|
+
let r = xi[e.slice(-3)], a = ci(e.slice(0, r && -3)) || "";
|
|
1201
|
+
a === "text/html" && (a += ";charset=utf-8");
|
|
1197
1202
|
let n = {
|
|
1198
1203
|
"Content-Length": i.size,
|
|
1199
|
-
"Content-Type":
|
|
1204
|
+
"Content-Type": a,
|
|
1200
1205
|
"Last-Modified": i.mtime.toUTCString()
|
|
1201
1206
|
};
|
|
1202
|
-
return
|
|
1207
|
+
return r && (n["Content-Encoding"] = r), t && (n.ETag = `W/"${i.size}-${i.mtime.getTime()}"`), n;
|
|
1203
1208
|
}
|
|
1204
|
-
o(
|
|
1205
|
-
|
|
1206
|
-
e =
|
|
1207
|
-
let t = i.onNoMatch ||
|
|
1208
|
-
s = i.brotli &&
|
|
1209
|
+
o(rt, "toHeaders");
|
|
1210
|
+
at.exports = function(e, i = {}) {
|
|
1211
|
+
e = oi(e || ".");
|
|
1212
|
+
let t = i.onNoMatch || di, r = i.setHeaders || pi, a = i.extensions || ["html", "htm"], n = i.gzip && a.map((m) => `${m}.gz`).concat("gz"),
|
|
1213
|
+
s = i.brotli && a.map((m) => `${m}.br`).concat("br"), l = {}, p = "/", c = !!i.etag, u = !!i.single;
|
|
1209
1214
|
if (typeof i.single == "string") {
|
|
1210
1215
|
let m = i.single.lastIndexOf(".");
|
|
1211
1216
|
p += ~m ? i.single.substring(0, m) : i.single;
|
|
@@ -1216,51 +1221,51 @@ var nt = N((Da, rt) => {
|
|
|
1216
1221
|
d.push(new RegExp(m, "i"));
|
|
1217
1222
|
}));
|
|
1218
1223
|
let x = i.maxAge != null && `public,max-age=${i.maxAge}`;
|
|
1219
|
-
x && i.immutable ? x += ",immutable" : x && i.maxAge === 0 && (x += ",must-revalidate"), i.dev ||
|
|
1224
|
+
x && i.immutable ? x += ",immutable" : x && i.maxAge === 0 && (x += ",must-revalidate"), i.dev || si(e, (m, f, y) => {
|
|
1220
1225
|
if (!/\.well-known[\\+\/]/.test(m)) {
|
|
1221
1226
|
if (!i.dotfiles && /(^\.|[\\+|\/+]\.)/.test(m)) return;
|
|
1222
1227
|
}
|
|
1223
|
-
let v =
|
|
1224
|
-
x && (v["Cache-Control"] = x),
|
|
1228
|
+
let v = rt(m, y, c);
|
|
1229
|
+
x && (v["Cache-Control"] = x), l["/" + m.normalize().replace(/\\+/g, "/")] = { abs: f, stats: y, headers: v };
|
|
1225
1230
|
});
|
|
1226
|
-
let g = i.dev ?
|
|
1231
|
+
let g = i.dev ? fi.bind(0, e, c) : ui.bind(0, l);
|
|
1227
1232
|
return function(m, f, y) {
|
|
1228
|
-
let v = [""], _ =
|
|
1229
|
-
if (n && O.includes("gzip") && v.unshift(...n), s && /(br|brotli)/i.test(O) && v.unshift(...s), v.push(...
|
|
1233
|
+
let v = [""], _ = li(m).pathname, O = m.headers["accept-encoding"] || "";
|
|
1234
|
+
if (n && O.includes("gzip") && v.unshift(...n), s && /(br|brotli)/i.test(O) && v.unshift(...s), v.push(...a), _.indexOf("%") !== -1)
|
|
1230
1235
|
try {
|
|
1231
1236
|
_ = decodeURI(_);
|
|
1232
1237
|
} catch {
|
|
1233
1238
|
}
|
|
1234
|
-
let w = g(_, v) || u && !
|
|
1239
|
+
let w = g(_, v) || u && !mi(_, d) && g(p, v);
|
|
1235
1240
|
if (!w) return y ? y() : t(m, f);
|
|
1236
|
-
if (
|
|
1241
|
+
if (c && m.headers["if-none-match"] === w.headers.ETag)
|
|
1237
1242
|
return f.writeHead(304), f.end();
|
|
1238
|
-
(n || s) && f.setHeader("Vary", "Accept-Encoding"),
|
|
1243
|
+
(n || s) && f.setHeader("Vary", "Accept-Encoding"), r(f, _, w.stats), gi(m, f, w.abs, w.stats, w.headers);
|
|
1239
1244
|
};
|
|
1240
1245
|
};
|
|
1241
1246
|
});
|
|
1242
1247
|
|
|
1243
1248
|
// ../node_modules/ejs/lib/utils.js
|
|
1244
|
-
var
|
|
1249
|
+
var ct = N((T) => {
|
|
1245
1250
|
"use strict";
|
|
1246
|
-
var
|
|
1247
|
-
return
|
|
1251
|
+
var hi = /[|\\{}()[\]^$+*?.]/g, yi = Object.prototype.hasOwnProperty, re = /* @__PURE__ */ o(function(e, i) {
|
|
1252
|
+
return yi.apply(e, [i]);
|
|
1248
1253
|
}, "hasOwn");
|
|
1249
1254
|
T.escapeRegExpChars = function(e) {
|
|
1250
|
-
return e ? String(e).replace(
|
|
1255
|
+
return e ? String(e).replace(hi, "\\$&") : "";
|
|
1251
1256
|
};
|
|
1252
|
-
var
|
|
1257
|
+
var vi = {
|
|
1253
1258
|
"&": "&",
|
|
1254
1259
|
"<": "<",
|
|
1255
1260
|
">": ">",
|
|
1256
1261
|
'"': """,
|
|
1257
1262
|
"'": "'"
|
|
1258
|
-
},
|
|
1259
|
-
function
|
|
1260
|
-
return
|
|
1263
|
+
}, wi = /[&<>'"]/g;
|
|
1264
|
+
function bi(e) {
|
|
1265
|
+
return vi[e] || e;
|
|
1261
1266
|
}
|
|
1262
|
-
o(
|
|
1263
|
-
var
|
|
1267
|
+
o(bi, "encode_char");
|
|
1268
|
+
var _i = `var _ENCODE_HTML_RULES = {
|
|
1264
1269
|
"&": "&"
|
|
1265
1270
|
, "<": "<"
|
|
1266
1271
|
, ">": ">"
|
|
@@ -1273,32 +1278,32 @@ function encode_char(c) {
|
|
|
1273
1278
|
};
|
|
1274
1279
|
`;
|
|
1275
1280
|
T.escapeXML = function(e) {
|
|
1276
|
-
return e == null ? "" : String(e).replace(
|
|
1281
|
+
return e == null ? "" : String(e).replace(wi, bi);
|
|
1277
1282
|
};
|
|
1278
|
-
function
|
|
1283
|
+
function lt() {
|
|
1279
1284
|
return Function.prototype.toString.call(this) + `;
|
|
1280
|
-
` +
|
|
1285
|
+
` + _i;
|
|
1281
1286
|
}
|
|
1282
|
-
o(
|
|
1287
|
+
o(lt, "escapeXMLToString");
|
|
1283
1288
|
try {
|
|
1284
|
-
typeof Object.defineProperty == "function" ? Object.defineProperty(T.escapeXML, "toString", { value:
|
|
1289
|
+
typeof Object.defineProperty == "function" ? Object.defineProperty(T.escapeXML, "toString", { value: lt }) : T.escapeXML.toString = lt;
|
|
1285
1290
|
} catch {
|
|
1286
1291
|
console.warn("Unable to set escapeXML.toString (is the Function prototype frozen?)");
|
|
1287
1292
|
}
|
|
1288
1293
|
T.shallowCopy = function(e, i) {
|
|
1289
1294
|
if (i = i || {}, e != null)
|
|
1290
1295
|
for (var t in i)
|
|
1291
|
-
|
|
1296
|
+
re(i, t) && (t === "__proto__" || t === "constructor" || (e[t] = i[t]));
|
|
1292
1297
|
return e;
|
|
1293
1298
|
};
|
|
1294
1299
|
T.shallowCopyFromList = function(e, i, t) {
|
|
1295
1300
|
if (t = t || [], i = i || {}, e != null)
|
|
1296
|
-
for (var
|
|
1297
|
-
var
|
|
1298
|
-
if (typeof i[
|
|
1299
|
-
if (!
|
|
1301
|
+
for (var r = 0; r < t.length; r++) {
|
|
1302
|
+
var a = t[r];
|
|
1303
|
+
if (typeof i[a] < "u") {
|
|
1304
|
+
if (!re(i, a) || a === "__proto__" || a === "constructor")
|
|
1300
1305
|
continue;
|
|
1301
|
-
e[
|
|
1306
|
+
e[a] = i[a];
|
|
1302
1307
|
}
|
|
1303
1308
|
}
|
|
1304
1309
|
return e;
|
|
@@ -1335,14 +1340,14 @@ function encode_char(c) {
|
|
|
1335
1340
|
T.hasOwnOnlyObject = function(e) {
|
|
1336
1341
|
var i = T.createNullProtoObjWherePossible();
|
|
1337
1342
|
for (var t in e)
|
|
1338
|
-
|
|
1343
|
+
re(e, t) && (i[t] = e[t]);
|
|
1339
1344
|
return i;
|
|
1340
1345
|
};
|
|
1341
1346
|
});
|
|
1342
1347
|
|
|
1343
1348
|
// ../node_modules/ejs/package.json
|
|
1344
|
-
var
|
|
1345
|
-
|
|
1349
|
+
var pt = N((Wr, ji) => {
|
|
1350
|
+
ji.exports = {
|
|
1346
1351
|
name: "ejs",
|
|
1347
1352
|
description: "Embedded JavaScript templates",
|
|
1348
1353
|
keywords: [
|
|
@@ -1387,10 +1392,10 @@ var ct = N(($a, _i) => {
|
|
|
1387
1392
|
});
|
|
1388
1393
|
|
|
1389
1394
|
// ../node_modules/ejs/lib/ejs.js
|
|
1390
|
-
var
|
|
1395
|
+
var vt = N((h) => {
|
|
1391
1396
|
"use strict";
|
|
1392
|
-
var ne = P("fs"), D = P("path"), b =
|
|
1393
|
-
|%%>|<%=|<%-|<%_|<%#|<%|%>|-%>|_%>)",
|
|
1397
|
+
var ne = P("fs"), D = P("path"), b = ct(), mt = !1, Oi = pt().version, Ei = "<", Si = ">", Pi = "%", ht = "locals", Ti = "ejs", Ri = "(<%%\
|
|
1398
|
+
|%%>|<%=|<%-|<%_|<%#|<%|%>|-%>|_%>)", yt = [
|
|
1394
1399
|
"delimiter",
|
|
1395
1400
|
"scope",
|
|
1396
1401
|
"context",
|
|
@@ -1402,63 +1407,63 @@ var yt = N((h) => {
|
|
|
1402
1407
|
"strict",
|
|
1403
1408
|
"filename",
|
|
1404
1409
|
"async"
|
|
1405
|
-
],
|
|
1410
|
+
], ki = yt.concat("cache"), ut = /^\uFEFF/, ae = /^[a-zA-Z_$][0-9a-zA-Z_$]*$/;
|
|
1406
1411
|
h.cache = b.cache;
|
|
1407
1412
|
h.fileLoader = ne.readFileSync;
|
|
1408
|
-
h.localsName =
|
|
1413
|
+
h.localsName = ht;
|
|
1409
1414
|
h.promiseImpl = new Function("return this;")().Promise;
|
|
1410
1415
|
h.resolveInclude = function(e, i, t) {
|
|
1411
|
-
var
|
|
1412
|
-
return
|
|
1416
|
+
var r = D.dirname, a = D.extname, n = D.resolve, s = n(t ? i : r(i), e), l = a(e);
|
|
1417
|
+
return l || (s += ".ejs"), s;
|
|
1413
1418
|
};
|
|
1414
|
-
function
|
|
1419
|
+
function ft(e, i) {
|
|
1415
1420
|
var t;
|
|
1416
|
-
if (i.some(function(
|
|
1417
|
-
return t = h.resolveInclude(e,
|
|
1421
|
+
if (i.some(function(r) {
|
|
1422
|
+
return t = h.resolveInclude(e, r, !0), ne.existsSync(t);
|
|
1418
1423
|
}))
|
|
1419
1424
|
return t;
|
|
1420
1425
|
}
|
|
1421
|
-
o(
|
|
1422
|
-
function
|
|
1423
|
-
var t,
|
|
1426
|
+
o(ft, "resolvePaths");
|
|
1427
|
+
function Fi(e, i) {
|
|
1428
|
+
var t, r, a = i.views, n = /^[A-Za-z]+:\\|^\//.exec(e);
|
|
1424
1429
|
if (n && n.length)
|
|
1425
|
-
e = e.replace(/^\/*/, ""), Array.isArray(i.root) ? t =
|
|
1426
|
-
else if (i.filename && (
|
|
1430
|
+
e = e.replace(/^\/*/, ""), Array.isArray(i.root) ? t = ft(e, i.root) : t = h.resolveInclude(e, i.root || "/", !0);
|
|
1431
|
+
else if (i.filename && (r = h.resolveInclude(e, i.filename), ne.existsSync(r) && (t = r)), !t && Array.isArray(a) && (t = ft(e, a)), !t &&
|
|
1427
1432
|
typeof i.includer != "function")
|
|
1428
1433
|
throw new Error('Could not find the include file "' + i.escapeFunction(e) + '"');
|
|
1429
1434
|
return t;
|
|
1430
1435
|
}
|
|
1431
|
-
o(
|
|
1436
|
+
o(Fi, "getIncludePath");
|
|
1432
1437
|
function I(e, i) {
|
|
1433
|
-
var t,
|
|
1438
|
+
var t, r = e.filename, a = arguments.length > 1;
|
|
1434
1439
|
if (e.cache) {
|
|
1435
|
-
if (!
|
|
1440
|
+
if (!r)
|
|
1436
1441
|
throw new Error("cache option requires a filename");
|
|
1437
|
-
if (t = h.cache.get(
|
|
1442
|
+
if (t = h.cache.get(r), t)
|
|
1438
1443
|
return t;
|
|
1439
|
-
|
|
1440
|
-
} else if (!
|
|
1441
|
-
if (!
|
|
1444
|
+
a || (i = dt(r).toString().replace(ut, ""));
|
|
1445
|
+
} else if (!a) {
|
|
1446
|
+
if (!r)
|
|
1442
1447
|
throw new Error("Internal EJS error: no file name or template provided");
|
|
1443
|
-
i =
|
|
1448
|
+
i = dt(r).toString().replace(ut, "");
|
|
1444
1449
|
}
|
|
1445
|
-
return t = h.compile(i, e), e.cache && h.cache.set(
|
|
1450
|
+
return t = h.compile(i, e), e.cache && h.cache.set(r, t), t;
|
|
1446
1451
|
}
|
|
1447
1452
|
o(I, "handleCache");
|
|
1448
|
-
function
|
|
1449
|
-
var
|
|
1453
|
+
function Li(e, i, t) {
|
|
1454
|
+
var r;
|
|
1450
1455
|
if (t) {
|
|
1451
1456
|
try {
|
|
1452
|
-
|
|
1453
|
-
} catch (
|
|
1454
|
-
return t(
|
|
1457
|
+
r = I(e)(i);
|
|
1458
|
+
} catch (a) {
|
|
1459
|
+
return t(a);
|
|
1455
1460
|
}
|
|
1456
|
-
t(null,
|
|
1461
|
+
t(null, r);
|
|
1457
1462
|
} else {
|
|
1458
1463
|
if (typeof h.promiseImpl == "function")
|
|
1459
|
-
return new h.promiseImpl(function(
|
|
1464
|
+
return new h.promiseImpl(function(a, n) {
|
|
1460
1465
|
try {
|
|
1461
|
-
|
|
1466
|
+
r = I(e)(i), a(r);
|
|
1462
1467
|
} catch (s) {
|
|
1463
1468
|
n(s);
|
|
1464
1469
|
}
|
|
@@ -1466,66 +1471,66 @@ var yt = N((h) => {
|
|
|
1466
1471
|
throw new Error("Please provide a callback function");
|
|
1467
1472
|
}
|
|
1468
1473
|
}
|
|
1469
|
-
o(
|
|
1470
|
-
function
|
|
1474
|
+
o(Li, "tryHandleCache");
|
|
1475
|
+
function dt(e) {
|
|
1471
1476
|
return h.fileLoader(e);
|
|
1472
1477
|
}
|
|
1473
|
-
o(
|
|
1474
|
-
function
|
|
1478
|
+
o(dt, "fileLoader");
|
|
1479
|
+
function Ci(e, i) {
|
|
1475
1480
|
var t = b.shallowCopy(b.createNullProtoObjWherePossible(), i);
|
|
1476
|
-
if (t.filename =
|
|
1477
|
-
var
|
|
1478
|
-
if (
|
|
1479
|
-
return I(t,
|
|
1481
|
+
if (t.filename = Fi(e, t), typeof i.includer == "function") {
|
|
1482
|
+
var r = i.includer(e, t.filename);
|
|
1483
|
+
if (r && (r.filename && (t.filename = r.filename), r.template))
|
|
1484
|
+
return I(t, r.template);
|
|
1480
1485
|
}
|
|
1481
1486
|
return I(t);
|
|
1482
1487
|
}
|
|
1483
|
-
o(
|
|
1484
|
-
function
|
|
1488
|
+
o(Ci, "includeFile");
|
|
1489
|
+
function gt(e, i, t, r, a) {
|
|
1485
1490
|
var n = i.split(`
|
|
1486
|
-
`), s = Math.max(
|
|
1491
|
+
`), s = Math.max(r - 3, 0), l = Math.min(n.length, r + 3), p = a(t), c = n.slice(s, l).map(function(u, d) {
|
|
1487
1492
|
var x = d + s + 1;
|
|
1488
|
-
return (x ==
|
|
1493
|
+
return (x == r ? " >> " : " ") + x + "| " + u;
|
|
1489
1494
|
}).join(`
|
|
1490
1495
|
`);
|
|
1491
|
-
throw e.path = p, e.message = (p || "ejs") + ":" +
|
|
1492
|
-
` +
|
|
1496
|
+
throw e.path = p, e.message = (p || "ejs") + ":" + r + `
|
|
1497
|
+
` + c + `
|
|
1493
1498
|
|
|
1494
1499
|
` + e.message, e;
|
|
1495
1500
|
}
|
|
1496
|
-
o(
|
|
1497
|
-
function
|
|
1501
|
+
o(gt, "rethrow");
|
|
1502
|
+
function xt(e) {
|
|
1498
1503
|
return e.replace(/;(\s*$)/, "$1");
|
|
1499
1504
|
}
|
|
1500
|
-
o(
|
|
1505
|
+
o(xt, "stripSemi");
|
|
1501
1506
|
h.compile = /* @__PURE__ */ o(function(i, t) {
|
|
1502
|
-
var
|
|
1503
|
-
return t && t.scope && (
|
|
1504
|
-
t.scope), delete t.scope),
|
|
1507
|
+
var r;
|
|
1508
|
+
return t && t.scope && (mt || (console.warn("`scope` option is deprecated and will be removed in EJS 3"), mt = !0), t.context || (t.context =
|
|
1509
|
+
t.scope), delete t.scope), r = new j(i, t), r.compile();
|
|
1505
1510
|
}, "compile");
|
|
1506
1511
|
h.render = function(e, i, t) {
|
|
1507
|
-
var
|
|
1508
|
-
return arguments.length == 2 && b.shallowCopyFromList(
|
|
1512
|
+
var r = i || b.createNullProtoObjWherePossible(), a = t || b.createNullProtoObjWherePossible();
|
|
1513
|
+
return arguments.length == 2 && b.shallowCopyFromList(a, r, yt), I(a, e)(r);
|
|
1509
1514
|
};
|
|
1510
1515
|
h.renderFile = function() {
|
|
1511
|
-
var e = Array.prototype.slice.call(arguments), i = e.shift(), t,
|
|
1512
|
-
return typeof arguments[arguments.length - 1] == "function" && (t = e.pop()), e.length ? (
|
|
1513
|
-
(
|
|
1514
|
-
ns"], n && b.shallowCopy(
|
|
1516
|
+
var e = Array.prototype.slice.call(arguments), i = e.shift(), t, r = { filename: i }, a, n;
|
|
1517
|
+
return typeof arguments[arguments.length - 1] == "function" && (t = e.pop()), e.length ? (a = e.shift(), e.length ? b.shallowCopy(r, e.pop()) :
|
|
1518
|
+
(a.settings && (a.settings.views && (r.views = a.settings.views), a.settings["view cache"] && (r.cache = !0), n = a.settings["view optio\
|
|
1519
|
+
ns"], n && b.shallowCopy(r, n)), b.shallowCopyFromList(r, a, ki)), r.filename = i) : a = b.createNullProtoObjWherePossible(), Li(r, a, t);
|
|
1515
1520
|
};
|
|
1516
1521
|
h.Template = j;
|
|
1517
1522
|
h.clearCache = function() {
|
|
1518
1523
|
h.cache.reset();
|
|
1519
1524
|
};
|
|
1520
1525
|
function j(e, i) {
|
|
1521
|
-
var t = b.hasOwnOnlyObject(i),
|
|
1522
|
-
this.templateText = e, this.mode = null, this.truncate = !1, this.currentLine = 1, this.source = "",
|
|
1523
|
-
t.escape || t.escapeFunction || b.escapeXML,
|
|
1524
|
-
t.openDelimiter || h.openDelimiter ||
|
|
1525
|
-
delimiter ||
|
|
1526
|
-
root,
|
|
1527
|
-
t.views,
|
|
1528
|
-
!0,
|
|
1526
|
+
var t = b.hasOwnOnlyObject(i), r = b.createNullProtoObjWherePossible();
|
|
1527
|
+
this.templateText = e, this.mode = null, this.truncate = !1, this.currentLine = 1, this.source = "", r.client = t.client || !1, r.escapeFunction =
|
|
1528
|
+
t.escape || t.escapeFunction || b.escapeXML, r.compileDebug = t.compileDebug !== !1, r.debug = !!t.debug, r.filename = t.filename, r.openDelimiter =
|
|
1529
|
+
t.openDelimiter || h.openDelimiter || Ei, r.closeDelimiter = t.closeDelimiter || h.closeDelimiter || Si, r.delimiter = t.delimiter || h.
|
|
1530
|
+
delimiter || Pi, r.strict = t.strict || !1, r.context = t.context, r.cache = t.cache || !1, r.rmWhitespace = t.rmWhitespace, r.root = t.
|
|
1531
|
+
root, r.includer = t.includer, r.outputFunctionName = t.outputFunctionName, r.localsName = t.localsName || h.localsName || ht, r.views =
|
|
1532
|
+
t.views, r.async = t.async, r.destructuredLocals = t.destructuredLocals, r.legacyInclude = typeof t.legacyInclude < "u" ? !!t.legacyInclude :
|
|
1533
|
+
!0, r.strict ? r._with = !1 : r._with = typeof t._with < "u" ? t._with : !0, this.opts = r, this.regex = this.createRegex();
|
|
1529
1534
|
}
|
|
1530
1535
|
o(j, "Template");
|
|
1531
1536
|
j.modes = {
|
|
@@ -1537,52 +1542,52 @@ ns"], n && b.shallowCopy(a, n)), b.shallowCopyFromList(a, r, Ri)), a.filename =
|
|
|
1537
1542
|
};
|
|
1538
1543
|
j.prototype = {
|
|
1539
1544
|
createRegex: /* @__PURE__ */ o(function() {
|
|
1540
|
-
var e =
|
|
1545
|
+
var e = Ri, i = b.escapeRegExpChars(this.opts.delimiter), t = b.escapeRegExpChars(this.opts.openDelimiter), r = b.escapeRegExpChars(this.
|
|
1541
1546
|
opts.closeDelimiter);
|
|
1542
|
-
return e = e.replace(/%/g, i).replace(/</g, t).replace(/>/g,
|
|
1547
|
+
return e = e.replace(/%/g, i).replace(/</g, t).replace(/>/g, r), new RegExp(e);
|
|
1543
1548
|
}, "createRegex"),
|
|
1544
1549
|
compile: /* @__PURE__ */ o(function() {
|
|
1545
|
-
var e, i, t = this.opts,
|
|
1550
|
+
var e, i, t = this.opts, r = "", a = "", n = t.escapeFunction, s, l = t.filename ? JSON.stringify(t.filename) : "undefined";
|
|
1546
1551
|
if (!this.source) {
|
|
1547
|
-
if (this.generateSource(),
|
|
1552
|
+
if (this.generateSource(), r += ` var __output = "";
|
|
1548
1553
|
function __append(s) { if (s !== undefined && s !== null) __output += s }
|
|
1549
1554
|
`, t.outputFunctionName) {
|
|
1550
|
-
if (!
|
|
1555
|
+
if (!ae.test(t.outputFunctionName))
|
|
1551
1556
|
throw new Error("outputFunctionName is not a valid JS identifier.");
|
|
1552
|
-
|
|
1557
|
+
r += " var " + t.outputFunctionName + ` = __append;
|
|
1553
1558
|
`;
|
|
1554
1559
|
}
|
|
1555
|
-
if (t.localsName && !
|
|
1560
|
+
if (t.localsName && !ae.test(t.localsName))
|
|
1556
1561
|
throw new Error("localsName is not a valid JS identifier.");
|
|
1557
1562
|
if (t.destructuredLocals && t.destructuredLocals.length) {
|
|
1558
1563
|
for (var p = " var __locals = (" + t.localsName + ` || {}),
|
|
1559
|
-
`,
|
|
1560
|
-
var u = t.destructuredLocals[
|
|
1561
|
-
if (!
|
|
1562
|
-
throw new Error("destructuredLocals[" +
|
|
1563
|
-
|
|
1564
|
+
`, c = 0; c < t.destructuredLocals.length; c++) {
|
|
1565
|
+
var u = t.destructuredLocals[c];
|
|
1566
|
+
if (!ae.test(u))
|
|
1567
|
+
throw new Error("destructuredLocals[" + c + "] is not a valid JS identifier.");
|
|
1568
|
+
c > 0 && (p += `,
|
|
1564
1569
|
`), p += u + " = __locals." + u;
|
|
1565
1570
|
}
|
|
1566
|
-
|
|
1571
|
+
r += p + `;
|
|
1567
1572
|
`;
|
|
1568
1573
|
}
|
|
1569
|
-
t._with !== !1 && (
|
|
1570
|
-
`,
|
|
1571
|
-
`),
|
|
1572
|
-
`, this.source =
|
|
1574
|
+
t._with !== !1 && (r += " with (" + t.localsName + ` || {}) {
|
|
1575
|
+
`, a += ` }
|
|
1576
|
+
`), a += ` return __output;
|
|
1577
|
+
`, this.source = r + this.source + a;
|
|
1573
1578
|
}
|
|
1574
1579
|
t.compileDebug ? e = `var __line = 1
|
|
1575
1580
|
, __lines = ` + JSON.stringify(this.templateText) + `
|
|
1576
|
-
, __filename = ` +
|
|
1581
|
+
, __filename = ` + l + `;
|
|
1577
1582
|
try {
|
|
1578
1583
|
` + this.source + `} catch (e) {
|
|
1579
1584
|
rethrow(e, __lines, __filename, __line, escapeFn);
|
|
1580
1585
|
}
|
|
1581
1586
|
` : e = this.source, t.client && (e = "escapeFn = escapeFn || " + n.toString() + `;
|
|
1582
|
-
` + e, t.compileDebug && (e = "rethrow = rethrow || " +
|
|
1587
|
+
` + e, t.compileDebug && (e = "rethrow = rethrow || " + gt.toString() + `;
|
|
1583
1588
|
` + e)), t.strict && (e = `"use strict";
|
|
1584
1589
|
` + e), t.debug && console.log(e), t.compileDebug && t.filename && (e = e + `
|
|
1585
|
-
//# sourceURL=` +
|
|
1590
|
+
//# sourceURL=` + l + `
|
|
1586
1591
|
`);
|
|
1587
1592
|
try {
|
|
1588
1593
|
if (t.async)
|
|
@@ -1604,11 +1609,11 @@ try {
|
|
|
1604
1609
|
var d = t.client ? i : /* @__PURE__ */ o(function(f) {
|
|
1605
1610
|
var y = /* @__PURE__ */ o(function(v, _) {
|
|
1606
1611
|
var O = b.shallowCopy(b.createNullProtoObjWherePossible(), f);
|
|
1607
|
-
return _ && (O = b.shallowCopy(O, _)),
|
|
1612
|
+
return _ && (O = b.shallowCopy(O, _)), Ci(v, t)(O);
|
|
1608
1613
|
}, "include");
|
|
1609
1614
|
return i.apply(
|
|
1610
1615
|
t.context,
|
|
1611
|
-
[f || b.createNullProtoObjWherePossible(), n, y,
|
|
1616
|
+
[f || b.createNullProtoObjWherePossible(), n, y, gt]
|
|
1612
1617
|
);
|
|
1613
1618
|
}, "anonymous");
|
|
1614
1619
|
if (t.filename && typeof Object.defineProperty == "function") {
|
|
@@ -1629,18 +1634,18 @@ try {
|
|
|
1629
1634
|
var e = this.opts;
|
|
1630
1635
|
e.rmWhitespace && (this.templateText = this.templateText.replace(/[\r\n]+/g, `
|
|
1631
1636
|
`).replace(/^\s+|\s+$/gm, "")), this.templateText = this.templateText.replace(/[ \t]*<%_/gm, "<%_").replace(/_%>[ \t]*/gm, "_%>");
|
|
1632
|
-
var i = this, t = this.parseTemplateText(),
|
|
1633
|
-
t && t.length && t.forEach(function(s,
|
|
1637
|
+
var i = this, t = this.parseTemplateText(), r = this.opts.delimiter, a = this.opts.openDelimiter, n = this.opts.closeDelimiter;
|
|
1638
|
+
t && t.length && t.forEach(function(s, l) {
|
|
1634
1639
|
var p;
|
|
1635
|
-
if (s.indexOf(
|
|
1640
|
+
if (s.indexOf(a + r) === 0 && s.indexOf(a + r + r) !== 0 && (p = t[l + 2], !(p == r + n || p == "-" + r + n || p == "_" + r + n)))
|
|
1636
1641
|
throw new Error('Could not find matching close tag for "' + s + '".');
|
|
1637
1642
|
i.scanLine(s);
|
|
1638
1643
|
});
|
|
1639
1644
|
}, "generateSource"),
|
|
1640
1645
|
parseTemplateText: /* @__PURE__ */ o(function() {
|
|
1641
|
-
for (var e = this.templateText, i = this.regex, t = i.exec(e),
|
|
1642
|
-
|
|
1643
|
-
return e &&
|
|
1646
|
+
for (var e = this.templateText, i = this.regex, t = i.exec(e), r = [], a; t; )
|
|
1647
|
+
a = t.index, a !== 0 && (r.push(e.substring(0, a)), e = e.slice(a)), r.push(t[0]), e = e.slice(t[0].length), t = i.exec(e);
|
|
1648
|
+
return e && r.push(e), r;
|
|
1644
1649
|
}, "parseTemplateText"),
|
|
1645
1650
|
_addOutput: /* @__PURE__ */ o(function(e) {
|
|
1646
1651
|
if (this.truncate && (e = e.replace(/^(?:\r\n|\r|\n)/, ""), this.truncate = !1), !e)
|
|
@@ -1650,33 +1655,33 @@ try {
|
|
|
1650
1655
|
`;
|
|
1651
1656
|
}, "_addOutput"),
|
|
1652
1657
|
scanLine: /* @__PURE__ */ o(function(e) {
|
|
1653
|
-
var i = this, t = this.opts.delimiter,
|
|
1658
|
+
var i = this, t = this.opts.delimiter, r = this.opts.openDelimiter, a = this.opts.closeDelimiter, n = 0;
|
|
1654
1659
|
switch (n = e.split(`
|
|
1655
1660
|
`).length - 1, e) {
|
|
1656
|
-
case
|
|
1657
|
-
case
|
|
1661
|
+
case r + t:
|
|
1662
|
+
case r + t + "_":
|
|
1658
1663
|
this.mode = j.modes.EVAL;
|
|
1659
1664
|
break;
|
|
1660
|
-
case
|
|
1665
|
+
case r + t + "=":
|
|
1661
1666
|
this.mode = j.modes.ESCAPED;
|
|
1662
1667
|
break;
|
|
1663
|
-
case
|
|
1668
|
+
case r + t + "-":
|
|
1664
1669
|
this.mode = j.modes.RAW;
|
|
1665
1670
|
break;
|
|
1666
|
-
case
|
|
1671
|
+
case r + t + "#":
|
|
1667
1672
|
this.mode = j.modes.COMMENT;
|
|
1668
1673
|
break;
|
|
1669
|
-
case
|
|
1670
|
-
this.mode = j.modes.LITERAL, this.source += ' ; __append("' + e.replace(
|
|
1674
|
+
case r + t + t:
|
|
1675
|
+
this.mode = j.modes.LITERAL, this.source += ' ; __append("' + e.replace(r + t + t, r + t) + `")
|
|
1671
1676
|
`;
|
|
1672
1677
|
break;
|
|
1673
|
-
case t + t +
|
|
1674
|
-
this.mode = j.modes.LITERAL, this.source += ' ; __append("' + e.replace(t + t +
|
|
1678
|
+
case t + t + a:
|
|
1679
|
+
this.mode = j.modes.LITERAL, this.source += ' ; __append("' + e.replace(t + t + a, t + a) + `")
|
|
1675
1680
|
`;
|
|
1676
1681
|
break;
|
|
1677
|
-
case t +
|
|
1678
|
-
case "-" + t +
|
|
1679
|
-
case "_" + t +
|
|
1682
|
+
case t + a:
|
|
1683
|
+
case "-" + t + a:
|
|
1684
|
+
case "_" + t + a:
|
|
1680
1685
|
this.mode == j.modes.LITERAL && this._addOutput(e), this.mode = null, this.truncate = e.indexOf("-") === 0 || e.indexOf("_") === 0;
|
|
1681
1686
|
break;
|
|
1682
1687
|
default:
|
|
@@ -1697,12 +1702,12 @@ try {
|
|
|
1697
1702
|
break;
|
|
1698
1703
|
// Exec, esc, and output
|
|
1699
1704
|
case j.modes.ESCAPED:
|
|
1700
|
-
this.source += " ; __append(escapeFn(" +
|
|
1705
|
+
this.source += " ; __append(escapeFn(" + xt(e) + `))
|
|
1701
1706
|
`;
|
|
1702
1707
|
break;
|
|
1703
1708
|
// Exec and output
|
|
1704
1709
|
case j.modes.RAW:
|
|
1705
|
-
this.source += " ; __append(" +
|
|
1710
|
+
this.source += " ; __append(" + xt(e) + `)
|
|
1706
1711
|
`;
|
|
1707
1712
|
break;
|
|
1708
1713
|
case j.modes.COMMENT:
|
|
@@ -1721,16 +1726,16 @@ try {
|
|
|
1721
1726
|
};
|
|
1722
1727
|
h.escapeXML = b.escapeXML;
|
|
1723
1728
|
h.__express = h.renderFile;
|
|
1724
|
-
h.VERSION =
|
|
1725
|
-
h.name =
|
|
1729
|
+
h.VERSION = Oi;
|
|
1730
|
+
h.name = Ti;
|
|
1726
1731
|
typeof window < "u" && (window.ejs = h);
|
|
1727
1732
|
});
|
|
1728
1733
|
|
|
1729
1734
|
// src/builder-manager/index.ts
|
|
1730
|
-
import { cp as
|
|
1731
|
-
import { dirname as
|
|
1732
|
-
import { stringifyProcessEnvs as
|
|
1733
|
-
import { globalsModuleInfoMap as
|
|
1735
|
+
import { cp as nr, rm as or, writeFile as Ft } from "node:fs/promises";
|
|
1736
|
+
import { dirname as Lt, join as k, parse as sr } from "node:path";
|
|
1737
|
+
import { stringifyProcessEnvs as lr } from "storybook/internal/common";
|
|
1738
|
+
import { globalsModuleInfoMap as cr } from "storybook/internal/manager/globals-module-info";
|
|
1734
1739
|
import { logger as me } from "storybook/internal/node-logger";
|
|
1735
1740
|
|
|
1736
1741
|
// ../node_modules/@fal-works/esbuild-plugin-global-externals/lib/module-info.js
|
|
@@ -1738,29 +1743,29 @@ var de = /* @__PURE__ */ o((e) => {
|
|
|
1738
1743
|
let {
|
|
1739
1744
|
type: i = "esm",
|
|
1740
1745
|
varName: t,
|
|
1741
|
-
namedExports:
|
|
1742
|
-
defaultExport:
|
|
1746
|
+
namedExports: r = null,
|
|
1747
|
+
defaultExport: a = !0
|
|
1743
1748
|
} = typeof e == "string" ? { varName: e } : e;
|
|
1744
|
-
return { type: i, varName: t, namedExports:
|
|
1749
|
+
return { type: i, varName: t, namedExports: r, defaultExport: a };
|
|
1745
1750
|
}, "normalizeModuleInfo");
|
|
1746
1751
|
|
|
1747
1752
|
// ../node_modules/@fal-works/esbuild-plugin-global-externals/lib/on-load.js
|
|
1748
|
-
var
|
|
1749
|
-
var
|
|
1750
|
-
let
|
|
1753
|
+
var zt = /* @__PURE__ */ o((e) => `module.exports = ${e};`, "createCjsContents");
|
|
1754
|
+
var qt = /* @__PURE__ */ o((e, i, t) => {
|
|
1755
|
+
let r = t ? [`export default ${e};`] : [];
|
|
1751
1756
|
if (i && i.length) {
|
|
1752
|
-
let
|
|
1753
|
-
|
|
1757
|
+
let a = [...new Set(i)].join(", ");
|
|
1758
|
+
r.push(`const { ${a} } = ${e};`), r.push(`export { ${a} };`);
|
|
1754
1759
|
}
|
|
1755
|
-
return
|
|
1760
|
+
return r.join(`
|
|
1756
1761
|
`);
|
|
1757
1762
|
}, "createEsmContents"), ge = /* @__PURE__ */ o((e) => {
|
|
1758
|
-
let { type: i, varName: t, namedExports:
|
|
1763
|
+
let { type: i, varName: t, namedExports: r, defaultExport: a } = e;
|
|
1759
1764
|
switch (i) {
|
|
1760
1765
|
case "esm":
|
|
1761
|
-
return
|
|
1766
|
+
return qt(t, r, a);
|
|
1762
1767
|
case "cjs":
|
|
1763
|
-
return
|
|
1768
|
+
return zt(t);
|
|
1764
1769
|
}
|
|
1765
1770
|
}, "createContents");
|
|
1766
1771
|
|
|
@@ -1769,12 +1774,12 @@ var X = "global-externals", K = /* @__PURE__ */ o((e) => {
|
|
|
1769
1774
|
let { modulePathFilter: i, getModuleInfo: t } = e;
|
|
1770
1775
|
return {
|
|
1771
1776
|
name: X,
|
|
1772
|
-
setup(
|
|
1773
|
-
|
|
1774
|
-
path:
|
|
1777
|
+
setup(r) {
|
|
1778
|
+
r.onResolve({ filter: i }, (a) => ({
|
|
1779
|
+
path: a.path,
|
|
1775
1780
|
namespace: X
|
|
1776
|
-
})),
|
|
1777
|
-
let n =
|
|
1781
|
+
})), r.onLoad({ filter: /.*/, namespace: X }, (a) => {
|
|
1782
|
+
let n = a.path, s = de(t(n));
|
|
1778
1783
|
return { contents: ge(s) };
|
|
1779
1784
|
});
|
|
1780
1785
|
}
|
|
@@ -1791,7 +1796,7 @@ var Z = /* @__PURE__ */ o((e) => {
|
|
|
1791
1796
|
}, "globalExternals");
|
|
1792
1797
|
|
|
1793
1798
|
// src/builder-manager/index.ts
|
|
1794
|
-
var
|
|
1799
|
+
var Ct = V(Ue(), 1), ue = V(nt(), 1);
|
|
1795
1800
|
|
|
1796
1801
|
// src/shared/constants/environments-support.ts
|
|
1797
1802
|
var ot = [
|
|
@@ -1802,34 +1807,41 @@ var ot = [
|
|
|
1802
1807
|
"ios18.3",
|
|
1803
1808
|
"opera117"
|
|
1804
1809
|
];
|
|
1810
|
+
var st = {
|
|
1811
|
+
// React Native does not support class static blocks without a specific babel plugin
|
|
1812
|
+
"class-static-blocks": !1
|
|
1813
|
+
};
|
|
1805
1814
|
|
|
1806
1815
|
// src/builder-manager/utils/data.ts
|
|
1807
|
-
import { basename as
|
|
1808
|
-
import { getRefs as
|
|
1816
|
+
import { basename as Ii } from "node:path";
|
|
1817
|
+
import { getRefs as Mi } from "storybook/internal/common";
|
|
1809
1818
|
|
|
1810
1819
|
// src/builder-manager/utils/template.ts
|
|
1811
|
-
var
|
|
1812
|
-
import { readFile as
|
|
1813
|
-
import { dirname as
|
|
1814
|
-
var oe = /* @__PURE__ */ o(async (e) =>
|
|
1815
|
-
|
|
1820
|
+
var wt = V(vt(), 1);
|
|
1821
|
+
import { readFile as Ai } from "node:fs/promises";
|
|
1822
|
+
import { dirname as Ni, join as Di } from "node:path";
|
|
1823
|
+
var oe = /* @__PURE__ */ o(async (e) => Di(
|
|
1824
|
+
Ni(P.resolve("storybook/internal/package.json")),
|
|
1825
|
+
"assets/server",
|
|
1826
|
+
e
|
|
1827
|
+
), "getTemplatePath"), bt = /* @__PURE__ */ o(async (e) => {
|
|
1816
1828
|
let i = await oe(e);
|
|
1817
|
-
return
|
|
1829
|
+
return Ai(i, { encoding: "utf8" });
|
|
1818
1830
|
}, "readTemplate");
|
|
1819
|
-
var se = /* @__PURE__ */ o(async (e, i, t,
|
|
1831
|
+
var se = /* @__PURE__ */ o(async (e, i, t, r, a, n, s, l, p, c, u, { versionCheck: d, previewUrl: x, configType: g, ignorePreview: m }, f) => {
|
|
1820
1832
|
let y = await i, v = await e, _ = Object.entries(f).reduce(
|
|
1821
1833
|
(O, [w, E]) => ({ ...O, [w]: JSON.stringify(E) }),
|
|
1822
1834
|
{}
|
|
1823
1835
|
);
|
|
1824
|
-
return (0,
|
|
1836
|
+
return (0, wt.render)(v, {
|
|
1825
1837
|
title: y ? `${y} - Storybook` : "Storybook",
|
|
1826
|
-
files: { js: n, css:
|
|
1838
|
+
files: { js: n, css: a },
|
|
1827
1839
|
favicon: await t,
|
|
1828
1840
|
globals: {
|
|
1829
1841
|
FEATURES: JSON.stringify(await s, null, 2),
|
|
1830
|
-
REFS: JSON.stringify(await
|
|
1842
|
+
REFS: JSON.stringify(await l, null, 2),
|
|
1831
1843
|
LOGLEVEL: JSON.stringify(await p, null, 2),
|
|
1832
|
-
DOCS_OPTIONS: JSON.stringify(await
|
|
1844
|
+
DOCS_OPTIONS: JSON.stringify(await c, null, 2),
|
|
1833
1845
|
CONFIG_TYPE: JSON.stringify(await g, null, 2),
|
|
1834
1846
|
// These two need to be double stringified because the UI expects a string
|
|
1835
1847
|
VERSIONCHECK: JSON.stringify(JSON.stringify(d), null, 2),
|
|
@@ -1838,39 +1850,39 @@ var se = /* @__PURE__ */ o(async (e, i, t, a, r, n, s, c, p, l, u, { versionChec
|
|
|
1838
1850
|
TAGS_OPTIONS: JSON.stringify(await u, null, 2),
|
|
1839
1851
|
..._
|
|
1840
1852
|
},
|
|
1841
|
-
head: await
|
|
1853
|
+
head: await r || "",
|
|
1842
1854
|
ignorePreview: m
|
|
1843
1855
|
});
|
|
1844
1856
|
}, "renderHTML");
|
|
1845
1857
|
|
|
1846
1858
|
// src/builder-manager/utils/data.ts
|
|
1847
1859
|
var le = /* @__PURE__ */ o(async (e) => {
|
|
1848
|
-
let i =
|
|
1849
|
-
presets.apply("title"), s = e.presets.apply("docs", {}),
|
|
1860
|
+
let i = Mi(e), t = e.presets.apply("favicon").then((x) => Ii(x)), r = e.presets.apply("features"), a = e.presets.apply("logLevel"), n = e.
|
|
1861
|
+
presets.apply("title"), s = e.presets.apply("docs", {}), l = e.presets.apply("tags", {}), p = bt("template.ejs"), c = e.presets.apply("man\
|
|
1850
1862
|
agerHead"), [u, d] = await Promise.all([
|
|
1851
1863
|
//
|
|
1852
|
-
|
|
1853
|
-
|
|
1864
|
+
jt.get(),
|
|
1865
|
+
_t(e)
|
|
1854
1866
|
]);
|
|
1855
1867
|
return {
|
|
1856
1868
|
refs: i,
|
|
1857
|
-
features:
|
|
1869
|
+
features: r,
|
|
1858
1870
|
title: n,
|
|
1859
1871
|
docsOptions: s,
|
|
1860
1872
|
template: p,
|
|
1861
|
-
customHead:
|
|
1873
|
+
customHead: c,
|
|
1862
1874
|
instance: u,
|
|
1863
1875
|
config: d,
|
|
1864
|
-
logLevel:
|
|
1876
|
+
logLevel: a,
|
|
1865
1877
|
favicon: t,
|
|
1866
|
-
tagsOptions:
|
|
1878
|
+
tagsOptions: l
|
|
1867
1879
|
};
|
|
1868
1880
|
}, "getData");
|
|
1869
1881
|
|
|
1870
1882
|
// src/builder-manager/utils/files.ts
|
|
1871
|
-
import { existsSync as
|
|
1872
|
-
import { mkdir as
|
|
1873
|
-
import { dirname as
|
|
1883
|
+
import { existsSync as zi } from "node:fs";
|
|
1884
|
+
import { mkdir as qi, writeFile as $i } from "node:fs/promises";
|
|
1885
|
+
import { dirname as Wi, join as Bi, normalize as Hi } from "node:path";
|
|
1874
1886
|
|
|
1875
1887
|
// ../node_modules/slash/index.js
|
|
1876
1888
|
function M(e) {
|
|
@@ -1882,75 +1894,75 @@ o(M, "slash");
|
|
|
1882
1894
|
async function ce(e, i) {
|
|
1883
1895
|
let t = await Promise.all(
|
|
1884
1896
|
i?.map(async (n) => {
|
|
1885
|
-
let { location: s, url:
|
|
1886
|
-
if (!
|
|
1887
|
-
let p =
|
|
1888
|
-
await
|
|
1897
|
+
let { location: s, url: l } = Ji(n, e);
|
|
1898
|
+
if (!zi(s)) {
|
|
1899
|
+
let p = Wi(s);
|
|
1900
|
+
await qi(p, { recursive: !0 });
|
|
1889
1901
|
}
|
|
1890
|
-
return await
|
|
1902
|
+
return await $i(s, n.contents), l;
|
|
1891
1903
|
}) || []
|
|
1892
|
-
),
|
|
1893
|
-
return { cssFiles: t.filter((n) => n.endsWith(".css")), jsFiles:
|
|
1904
|
+
), r = t.filter((n) => n.endsWith(".js"));
|
|
1905
|
+
return { cssFiles: t.filter((n) => n.endsWith(".css")), jsFiles: r };
|
|
1894
1906
|
}
|
|
1895
1907
|
o(ce, "readOrderedFiles");
|
|
1896
|
-
function
|
|
1897
|
-
let t = e.path.replace(i, ""),
|
|
1898
|
-
return { location:
|
|
1908
|
+
function Ji(e, i) {
|
|
1909
|
+
let t = e.path.replace(i, ""), r = Hi(Bi(i, t)), a = `./sb-addons${M(t).split("/").map(encodeURIComponent).join("/")}`;
|
|
1910
|
+
return { location: r, url: a };
|
|
1899
1911
|
}
|
|
1900
|
-
o(
|
|
1912
|
+
o(Ji, "sanitizePath");
|
|
1901
1913
|
|
|
1902
1914
|
// src/builder-manager/utils/framework.ts
|
|
1903
|
-
import { sep as
|
|
1915
|
+
import { sep as Ui } from "node:path";
|
|
1904
1916
|
import {
|
|
1905
|
-
extractProperRendererNameFromFramework as
|
|
1917
|
+
extractProperRendererNameFromFramework as Ot,
|
|
1906
1918
|
getFrameworkName as Gi
|
|
1907
1919
|
} from "storybook/internal/common";
|
|
1908
|
-
var
|
|
1920
|
+
var Et = /* @__PURE__ */ o((e) => {
|
|
1909
1921
|
if (e)
|
|
1910
1922
|
return typeof e == "string" ? e : e.name;
|
|
1911
|
-
}, "pluckNameFromConfigProperty"),
|
|
1912
|
-
match(/(@storybook\/.*)$/)?.[1], "pluckStorybookPackageFromPath"),
|
|
1923
|
+
}, "pluckNameFromConfigProperty"), St = /* @__PURE__ */ o((e) => e.replaceAll(Ui, "/"), "normalizePath"), Vi = /* @__PURE__ */ o((e) => St(e).
|
|
1924
|
+
match(/(@storybook\/.*)$/)?.[1], "pluckStorybookPackageFromPath"), Xi = /* @__PURE__ */ o((e) => St(e).split("node_modules/")[1] ?? e, "pluc\
|
|
1913
1925
|
kThirdPartyPackageFromPath"), pe = /* @__PURE__ */ o(async (e) => {
|
|
1914
|
-
let i = {}, { builder: t } = await e.presets.apply("core"),
|
|
1915
|
-
await
|
|
1916
|
-
let n =
|
|
1917
|
-
n && (i.STORYBOOK_BUILDER =
|
|
1918
|
-
let s =
|
|
1926
|
+
let i = {}, { builder: t } = await e.presets.apply("core"), r = await Gi(e);
|
|
1927
|
+
await Ot(r) && (i.STORYBOOK_RENDERER = await Ot(r) ?? void 0);
|
|
1928
|
+
let n = Et(t);
|
|
1929
|
+
n && (i.STORYBOOK_BUILDER = Vi(n) ?? Xi(n));
|
|
1930
|
+
let s = Et(await e.presets.apply("framework"));
|
|
1919
1931
|
return s && (i.STORYBOOK_FRAMEWORK = s), i;
|
|
1920
1932
|
}, "buildFrameworkGlobalsFromOptions");
|
|
1921
1933
|
|
|
1922
1934
|
// src/builder-manager/utils/managerEntries.ts
|
|
1923
|
-
import { existsSync as
|
|
1924
|
-
import { mkdir as
|
|
1925
|
-
import { dirname as
|
|
1926
|
-
import { resolvePathInStorybookCache as
|
|
1927
|
-
var
|
|
1928
|
-
""), "sanitizeBase"),
|
|
1935
|
+
import { existsSync as Ki } from "node:fs";
|
|
1936
|
+
import { mkdir as Zi, writeFile as Yi } from "node:fs/promises";
|
|
1937
|
+
import { dirname as Qi, join as Pt, parse as er, relative as tr, sep as ir } from "node:path";
|
|
1938
|
+
import { resolvePathInStorybookCache as rr } from "storybook/internal/common";
|
|
1939
|
+
var Tt = /* @__PURE__ */ o((e) => e.replaceAll(".", "").replaceAll("@", "").replaceAll(ir, "-").replaceAll("/", "-").replaceAll(new RegExp(/^(-)+/g),
|
|
1940
|
+
""), "sanitizeBase"), ar = /* @__PURE__ */ o((e) => {
|
|
1929
1941
|
let i = e.split(/-?node_modules-?/);
|
|
1930
1942
|
return i[i.length - 1].replaceAll("storybook-addon-", "").replaceAll("dist-", "");
|
|
1931
1943
|
}, "sanitizeFinal");
|
|
1932
|
-
async function
|
|
1944
|
+
async function Rt(e, i) {
|
|
1933
1945
|
return Promise.all(
|
|
1934
|
-
e.map(async (t,
|
|
1935
|
-
let { name:
|
|
1946
|
+
e.map(async (t, r) => {
|
|
1947
|
+
let { name: a, dir: n } = er(t), s = rr("sb-manager", i);
|
|
1936
1948
|
if (!s)
|
|
1937
1949
|
throw new Error("Could not create/find cache directory");
|
|
1938
|
-
let
|
|
1950
|
+
let l = tr(process.cwd(), n), p = Pt(
|
|
1939
1951
|
s,
|
|
1940
|
-
|
|
1952
|
+
ar(Pt(`${Tt(l)}-${r}`, `${Tt(a)}-bundle.js`))
|
|
1941
1953
|
);
|
|
1942
|
-
if (!
|
|
1943
|
-
let
|
|
1944
|
-
await
|
|
1954
|
+
if (!Ki(p)) {
|
|
1955
|
+
let c = Qi(p);
|
|
1956
|
+
await Zi(c, { recursive: !0 });
|
|
1945
1957
|
}
|
|
1946
|
-
return await
|
|
1958
|
+
return await Yi(p, `import '${M(t).replaceAll(/'/g, "\\'")}';`), p;
|
|
1947
1959
|
})
|
|
1948
1960
|
);
|
|
1949
1961
|
}
|
|
1950
|
-
o(
|
|
1962
|
+
o(Rt, "wrapManagerEntries");
|
|
1951
1963
|
|
|
1952
1964
|
// src/builder-manager/utils/safeResolve.ts
|
|
1953
|
-
var
|
|
1965
|
+
var kt = /* @__PURE__ */ o((e) => {
|
|
1954
1966
|
try {
|
|
1955
1967
|
return Promise.resolve(P.resolve(e));
|
|
1956
1968
|
} catch {
|
|
@@ -1959,15 +1971,15 @@ var Rt = /* @__PURE__ */ o((e) => {
|
|
|
1959
1971
|
}, "safeResolve");
|
|
1960
1972
|
|
|
1961
1973
|
// src/builder-manager/index.ts
|
|
1962
|
-
var
|
|
1963
|
-
let [i, t,
|
|
1974
|
+
var pr = /^\/($|\?)/, L, C, _t = /* @__PURE__ */ o(async (e) => {
|
|
1975
|
+
let [i, t, r, a] = await Promise.all([
|
|
1964
1976
|
e.presets.apply("managerEntries", []),
|
|
1965
|
-
|
|
1977
|
+
kt(k(e.configDir, "manager")),
|
|
1966
1978
|
oe("addon.tsconfig.json"),
|
|
1967
1979
|
e.presets.apply("env")
|
|
1968
1980
|
]), n = t ? [...i, t] : i;
|
|
1969
1981
|
return {
|
|
1970
|
-
entryPoints: await
|
|
1982
|
+
entryPoints: await Rt(n, e.cacheKey),
|
|
1971
1983
|
outdir: k(e.outputDir || "./", "sb-addons"),
|
|
1972
1984
|
format: "iife",
|
|
1973
1985
|
write: !1,
|
|
@@ -1993,6 +2005,7 @@ var ca = /^\/($|\?)/, L, C, bt = /* @__PURE__ */ o(async (e) => {
|
|
|
1993
2005
|
".ttf": "dataurl"
|
|
1994
2006
|
},
|
|
1995
2007
|
target: ot,
|
|
2008
|
+
supported: st,
|
|
1996
2009
|
platform: "browser",
|
|
1997
2010
|
bundle: !0,
|
|
1998
2011
|
minify: !1,
|
|
@@ -2007,9 +2020,9 @@ var ca = /^\/($|\?)/, L, C, bt = /* @__PURE__ */ o(async (e) => {
|
|
|
2007
2020
|
jsxFragment: "React.Fragment",
|
|
2008
2021
|
jsx: "transform",
|
|
2009
2022
|
jsxImportSource: "react",
|
|
2010
|
-
tsconfig:
|
|
2023
|
+
tsconfig: r,
|
|
2011
2024
|
legalComments: "external",
|
|
2012
|
-
plugins: [Z(
|
|
2025
|
+
plugins: [Z(cr), (0, Ct.pnpPlugin)()],
|
|
2013
2026
|
banner: {
|
|
2014
2027
|
js: "try{"
|
|
2015
2028
|
},
|
|
@@ -2017,30 +2030,30 @@ var ca = /^\/($|\?)/, L, C, bt = /* @__PURE__ */ o(async (e) => {
|
|
|
2017
2030
|
js: '}catch(e){ console.error("[Storybook] One of your manager-entries failed: " + import.meta.url, e); }'
|
|
2018
2031
|
},
|
|
2019
2032
|
define: {
|
|
2020
|
-
"process.env": JSON.stringify(
|
|
2021
|
-
...
|
|
2033
|
+
"process.env": JSON.stringify(a),
|
|
2034
|
+
...lr(a),
|
|
2022
2035
|
global: "window",
|
|
2023
2036
|
module: "{}"
|
|
2024
2037
|
}
|
|
2025
2038
|
};
|
|
2026
|
-
}, "getConfig"),
|
|
2039
|
+
}, "getConfig"), jt = {
|
|
2027
2040
|
get: /* @__PURE__ */ o(async () => {
|
|
2028
2041
|
let { build: e } = await import("esbuild");
|
|
2029
2042
|
return e;
|
|
2030
2043
|
}, "get")
|
|
2031
|
-
},
|
|
2044
|
+
}, mr = /* @__PURE__ */ o(async function* ({
|
|
2032
2045
|
startTime: i,
|
|
2033
2046
|
options: t,
|
|
2034
|
-
router:
|
|
2047
|
+
router: r
|
|
2035
2048
|
}) {
|
|
2036
2049
|
t.quiet || me.info("=> Starting manager..");
|
|
2037
2050
|
let {
|
|
2038
|
-
config:
|
|
2051
|
+
config: a,
|
|
2039
2052
|
favicon: n,
|
|
2040
2053
|
customHead: s,
|
|
2041
|
-
features:
|
|
2054
|
+
features: l,
|
|
2042
2055
|
instance: p,
|
|
2043
|
-
refs:
|
|
2056
|
+
refs: c,
|
|
2044
2057
|
template: u,
|
|
2045
2058
|
title: d,
|
|
2046
2059
|
logLevel: x,
|
|
@@ -2048,19 +2061,23 @@ var ca = /^\/($|\?)/, L, C, bt = /* @__PURE__ */ o(async (e) => {
|
|
|
2048
2061
|
tagsOptions: m
|
|
2049
2062
|
} = await le(t);
|
|
2050
2063
|
yield;
|
|
2051
|
-
let f =
|
|
2052
|
-
await
|
|
2053
|
-
...
|
|
2064
|
+
let f = a.outdir;
|
|
2065
|
+
await or(f, { recursive: !0, force: !0 }), yield, L = await p({
|
|
2066
|
+
...a
|
|
2054
2067
|
}), yield;
|
|
2055
|
-
let y = k(
|
|
2056
|
-
|
|
2068
|
+
let y = k(
|
|
2069
|
+
Lt(P.resolve("storybook/internal/package.json")),
|
|
2070
|
+
"dist",
|
|
2071
|
+
"manager"
|
|
2072
|
+
);
|
|
2073
|
+
r.use(
|
|
2057
2074
|
"/sb-addons",
|
|
2058
2075
|
(0, ue.default)(f, {
|
|
2059
2076
|
maxAge: 3e5,
|
|
2060
2077
|
dev: !0,
|
|
2061
2078
|
immutable: !0
|
|
2062
2079
|
})
|
|
2063
|
-
),
|
|
2080
|
+
), r.use(
|
|
2064
2081
|
"/sb-manager",
|
|
2065
2082
|
(0, ue.default)(y, {
|
|
2066
2083
|
maxAge: 3e5,
|
|
@@ -2069,7 +2086,7 @@ var ca = /^\/($|\?)/, L, C, bt = /* @__PURE__ */ o(async (e) => {
|
|
|
2069
2086
|
})
|
|
2070
2087
|
);
|
|
2071
2088
|
let { cssFiles: v, jsFiles: _ } = await ce(f, L?.outputFiles);
|
|
2072
|
-
L.metafile && t.outputDir && await
|
|
2089
|
+
L.metafile && t.outputDir && await Ft(
|
|
2073
2090
|
k(t.outputDir, "metafile.json"),
|
|
2074
2091
|
JSON.stringify(L.metafile, null, 2)
|
|
2075
2092
|
);
|
|
@@ -2082,61 +2099,65 @@ var ca = /^\/($|\?)/, L, C, bt = /* @__PURE__ */ o(async (e) => {
|
|
|
2082
2099
|
s,
|
|
2083
2100
|
v,
|
|
2084
2101
|
_,
|
|
2085
|
-
c,
|
|
2086
2102
|
l,
|
|
2103
|
+
c,
|
|
2087
2104
|
x,
|
|
2088
2105
|
g,
|
|
2089
2106
|
m,
|
|
2090
2107
|
t,
|
|
2091
2108
|
O
|
|
2092
2109
|
);
|
|
2093
|
-
return yield,
|
|
2094
|
-
E &&
|
|
2095
|
-
}),
|
|
2110
|
+
return yield, r.use("/", ({ url: E }, S, R) => {
|
|
2111
|
+
E && pr.test(E) ? (S.statusCode = 200, S.setHeader("Content-Type", "text/html"), S.write(w), S.end()) : R();
|
|
2112
|
+
}), r.use("/index.html", (E, S) => {
|
|
2096
2113
|
S.statusCode = 200, S.setHeader("Content-Type", "text/html"), S.write(w), S.end();
|
|
2097
2114
|
}), {
|
|
2098
|
-
bail:
|
|
2115
|
+
bail: fr,
|
|
2099
2116
|
stats: {
|
|
2100
2117
|
toJson: /* @__PURE__ */ o(() => ({}), "toJson")
|
|
2101
2118
|
},
|
|
2102
2119
|
totalTime: process.hrtime(i)
|
|
2103
2120
|
};
|
|
2104
|
-
}, "starterGeneratorFn"),
|
|
2121
|
+
}, "starterGeneratorFn"), ur = /* @__PURE__ */ o(async function* ({ startTime: i, options: t }) {
|
|
2105
2122
|
if (!t.outputDir)
|
|
2106
2123
|
throw new Error("outputDir is required");
|
|
2107
2124
|
me.info("=> Building manager..");
|
|
2108
2125
|
let {
|
|
2109
|
-
config:
|
|
2110
|
-
customHead:
|
|
2126
|
+
config: r,
|
|
2127
|
+
customHead: a,
|
|
2111
2128
|
favicon: n,
|
|
2112
2129
|
features: s,
|
|
2113
|
-
instance:
|
|
2130
|
+
instance: l,
|
|
2114
2131
|
refs: p,
|
|
2115
|
-
template:
|
|
2132
|
+
template: c,
|
|
2116
2133
|
title: u,
|
|
2117
2134
|
logLevel: d,
|
|
2118
2135
|
docsOptions: x,
|
|
2119
2136
|
tagsOptions: g
|
|
2120
2137
|
} = await le(t);
|
|
2121
2138
|
yield;
|
|
2122
|
-
let m =
|
|
2123
|
-
|
|
2124
|
-
|
|
2139
|
+
let m = r.outdir, f = k(
|
|
2140
|
+
Lt(P.resolve("storybook/internal/package.json")),
|
|
2141
|
+
"dist",
|
|
2142
|
+
"manager"
|
|
2143
|
+
), y = k(t.outputDir, "sb-manager");
|
|
2144
|
+
L = await l({
|
|
2145
|
+
...r,
|
|
2125
2146
|
minify: !0
|
|
2126
2147
|
}), yield;
|
|
2127
|
-
let v =
|
|
2148
|
+
let v = nr(f, y, {
|
|
2128
2149
|
filter: /* @__PURE__ */ o((S) => {
|
|
2129
|
-
let { ext: R } =
|
|
2150
|
+
let { ext: R } = sr(S);
|
|
2130
2151
|
return R ? R === ".js" : !0;
|
|
2131
2152
|
}, "filter"),
|
|
2132
2153
|
recursive: !0
|
|
2133
2154
|
}), { cssFiles: _, jsFiles: O } = await ce(m, L?.outputFiles), w = await pe(t);
|
|
2134
2155
|
yield;
|
|
2135
2156
|
let E = await se(
|
|
2136
|
-
|
|
2157
|
+
c,
|
|
2137
2158
|
u,
|
|
2138
2159
|
n,
|
|
2139
|
-
|
|
2160
|
+
a,
|
|
2140
2161
|
_,
|
|
2141
2162
|
O,
|
|
2142
2163
|
s,
|
|
@@ -2147,36 +2168,36 @@ var ca = /^\/($|\?)/, L, C, bt = /* @__PURE__ */ o(async (e) => {
|
|
|
2147
2168
|
t,
|
|
2148
2169
|
w
|
|
2149
2170
|
);
|
|
2150
|
-
return await Promise.all([
|
|
2171
|
+
return await Promise.all([Ft(k(t.outputDir, "index.html"), E), v]), me.trace({ message: "=> Manager built", time: process.hrtime(i) }), {
|
|
2151
2172
|
toJson: /* @__PURE__ */ o(() => ({}), "toJson")
|
|
2152
2173
|
};
|
|
2153
|
-
}, "builderGeneratorFn"),
|
|
2174
|
+
}, "builderGeneratorFn"), fr = /* @__PURE__ */ o(async () => {
|
|
2154
2175
|
if (C)
|
|
2155
2176
|
try {
|
|
2156
2177
|
await C.throw(new Error());
|
|
2157
2178
|
} catch {
|
|
2158
2179
|
}
|
|
2159
|
-
}, "bail"),
|
|
2160
|
-
C =
|
|
2180
|
+
}, "bail"), Na = /* @__PURE__ */ o(async (e) => {
|
|
2181
|
+
C = mr(e);
|
|
2161
2182
|
let i;
|
|
2162
2183
|
do
|
|
2163
2184
|
i = await C.next();
|
|
2164
2185
|
while (!i.done);
|
|
2165
2186
|
return i.value;
|
|
2166
|
-
}, "start"),
|
|
2167
|
-
C =
|
|
2187
|
+
}, "start"), Da = /* @__PURE__ */ o(async (e) => {
|
|
2188
|
+
C = ur(e);
|
|
2168
2189
|
let i;
|
|
2169
2190
|
do
|
|
2170
2191
|
i = await C.next();
|
|
2171
2192
|
while (!i.done);
|
|
2172
2193
|
return i.value;
|
|
2173
|
-
}, "build"),
|
|
2194
|
+
}, "build"), Ia = [], Ma = [];
|
|
2174
2195
|
export {
|
|
2175
|
-
|
|
2176
|
-
|
|
2177
|
-
|
|
2178
|
-
|
|
2179
|
-
|
|
2180
|
-
|
|
2181
|
-
|
|
2196
|
+
fr as bail,
|
|
2197
|
+
Da as build,
|
|
2198
|
+
Ia as corePresets,
|
|
2199
|
+
jt as executor,
|
|
2200
|
+
_t as getConfig,
|
|
2201
|
+
Ma as overridePresets,
|
|
2202
|
+
Na as start
|
|
2182
2203
|
};
|