@pie-lib/tools 3.0.1-next.20261002233132 → 3.0.1-next.20261005184705
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/node_modules/.bun/assert@2.1.0/node_modules/assert/build/assert.js +368 -0
- package/dist/node_modules/.bun/assert@2.1.0/node_modules/assert/build/internal/assert/assertion_error.js +303 -0
- package/dist/node_modules/.bun/assert@2.1.0/node_modules/assert/build/internal/errors.js +155 -0
- package/dist/node_modules/.bun/assert@2.1.0/node_modules/assert/build/internal/util/comparisons.js +308 -0
- package/dist/node_modules/.bun/available-typed-arrays@1.0.7/node_modules/available-typed-arrays/index.js +13 -0
- package/dist/node_modules/.bun/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/applyBind.js +14 -0
- package/dist/node_modules/.bun/call-bind@1.0.9/node_modules/call-bind/callBound.js +14 -0
- package/dist/node_modules/.bun/call-bind@1.0.9/node_modules/call-bind/index.js +16 -0
- package/dist/node_modules/.bun/define-data-property@1.1.4/node_modules/define-data-property/index.js +29 -0
- package/dist/node_modules/.bun/define-properties@1.2.1/node_modules/define-properties/index.js +25 -0
- package/dist/node_modules/.bun/degrees-radians@1.0.3/node_modules/degrees-radians/index.js +1 -1
- package/dist/node_modules/.bun/for-each@0.3.5/node_modules/for-each/index.js +23 -0
- package/dist/node_modules/.bun/generator-function@2.0.1/node_modules/generator-function/index.js +9 -0
- package/dist/node_modules/.bun/has-property-descriptors@1.0.2/node_modules/has-property-descriptors/index.js +19 -0
- package/dist/node_modules/.bun/has-tostringtag@1.0.2/node_modules/has-tostringtag/shams.js +12 -0
- package/dist/node_modules/.bun/is-arguments@1.2.0/node_modules/is-arguments/index.js +17 -0
- package/dist/node_modules/.bun/is-callable@1.2.7/node_modules/is-callable/index.js +61 -0
- package/dist/node_modules/.bun/is-generator-function@1.1.2/node_modules/is-generator-function/index.js +21 -0
- package/dist/node_modules/.bun/is-nan@1.3.2/node_modules/is-nan/implementation.js +10 -0
- package/dist/node_modules/.bun/is-nan@1.3.2/node_modules/is-nan/index.js +18 -0
- package/dist/node_modules/.bun/is-nan@1.3.2/node_modules/is-nan/polyfill.js +12 -0
- package/dist/node_modules/.bun/is-nan@1.3.2/node_modules/is-nan/shim.js +16 -0
- package/dist/node_modules/.bun/is-regex@1.2.1/node_modules/is-regex/index.js +36 -0
- package/dist/node_modules/.bun/is-typed-array@1.1.15/node_modules/is-typed-array/index.js +12 -0
- package/dist/node_modules/.bun/object-is@1.1.6/node_modules/object-is/implementation.js +13 -0
- package/dist/node_modules/.bun/object-is@1.1.6/node_modules/object-is/index.js +18 -0
- package/dist/node_modules/.bun/object-is@1.1.6/node_modules/object-is/polyfill.js +12 -0
- package/dist/node_modules/.bun/object-is@1.1.6/node_modules/object-is/shim.js +16 -0
- package/dist/node_modules/.bun/object.assign@4.1.7/node_modules/object.assign/implementation.js +5 -5
- package/dist/node_modules/.bun/possible-typed-array-names@1.1.0/node_modules/possible-typed-array-names/index.js +21 -0
- package/dist/node_modules/.bun/safe-regex-test@1.1.0/node_modules/safe-regex-test/index.js +17 -0
- package/dist/node_modules/.bun/set-function-length@1.2.2/node_modules/set-function-length/index.js +23 -0
- package/dist/node_modules/.bun/{util@0.10.4 → util@0.12.5}/node_modules/util/support/isBufferBrowser.js +1 -1
- package/dist/node_modules/.bun/util@0.12.5/node_modules/util/support/types.js +194 -0
- package/dist/node_modules/.bun/util@0.12.5/node_modules/util/util.js +330 -0
- package/dist/node_modules/.bun/which-typed-array@1.1.24/node_modules/which-typed-array/index.js +62 -0
- package/package.json +3 -3
- package/dist/node_modules/.bun/assert@1.5.1/node_modules/assert/assert.js +0 -174
- package/dist/node_modules/.bun/util@0.10.4/node_modules/util/util.js +0 -262
|
@@ -0,0 +1,368 @@
|
|
|
1
|
+
import { __commonJSMin as e } from "../../../../../../_virtual/_rolldown/runtime.js";
|
|
2
|
+
import { require_util as t } from "../../../../util@0.12.5/node_modules/util/util.js";
|
|
3
|
+
import { require_errors as n } from "./internal/errors.js";
|
|
4
|
+
import { require_assertion_error as r } from "./internal/assert/assertion_error.js";
|
|
5
|
+
import { require_polyfill as i } from "../../../../object.assign@4.1.7/node_modules/object.assign/polyfill.js";
|
|
6
|
+
import { require_polyfill as a } from "../../../../object-is@1.1.6/node_modules/object-is/polyfill.js";
|
|
7
|
+
import { require_callBound as o } from "../../../../call-bind@1.0.9/node_modules/call-bind/callBound.js";
|
|
8
|
+
import { require_comparisons as s } from "./internal/util/comparisons.js";
|
|
9
|
+
//#region ../../../node_modules/.bun/assert@2.1.0/node_modules/assert/build/assert.js
|
|
10
|
+
var c = /* @__PURE__ */ e(((e, c) => {
|
|
11
|
+
function l(e) {
|
|
12
|
+
"@babel/helpers - typeof";
|
|
13
|
+
return l = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
14
|
+
return typeof e;
|
|
15
|
+
} : function(e) {
|
|
16
|
+
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
17
|
+
}, l(e);
|
|
18
|
+
}
|
|
19
|
+
function u(e, t) {
|
|
20
|
+
for (var n = 0; n < t.length; n++) {
|
|
21
|
+
var r = t[n];
|
|
22
|
+
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, f(r.key), r);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
function d(e, t, n) {
|
|
26
|
+
return t && u(e.prototype, t), n && u(e, n), Object.defineProperty(e, "prototype", { writable: !1 }), e;
|
|
27
|
+
}
|
|
28
|
+
function f(e) {
|
|
29
|
+
var t = p(e, "string");
|
|
30
|
+
return l(t) === "symbol" ? t : String(t);
|
|
31
|
+
}
|
|
32
|
+
function p(e, t) {
|
|
33
|
+
if (l(e) !== "object" || e === null) return e;
|
|
34
|
+
var n = e[Symbol.toPrimitive];
|
|
35
|
+
if (n !== void 0) {
|
|
36
|
+
var r = n.call(e, t || "default");
|
|
37
|
+
if (l(r) !== "object") return r;
|
|
38
|
+
throw TypeError("@@toPrimitive must return a primitive value.");
|
|
39
|
+
}
|
|
40
|
+
return (t === "string" ? String : Number)(e);
|
|
41
|
+
}
|
|
42
|
+
function m(e, t) {
|
|
43
|
+
if (!(e instanceof t)) throw TypeError("Cannot call a class as a function");
|
|
44
|
+
}
|
|
45
|
+
var h = n().codes, g = h.ERR_AMBIGUOUS_ARGUMENT, _ = h.ERR_INVALID_ARG_TYPE, v = h.ERR_INVALID_ARG_VALUE, y = h.ERR_INVALID_RETURN_VALUE, b = h.ERR_MISSING_ARGS, x = r(), S = t().inspect, C = t().types, w = C.isPromise, T = C.isRegExp, E = i()(), D = a()(), O = o()("RegExp.prototype.test"), k, A;
|
|
46
|
+
function j() {
|
|
47
|
+
var e = s();
|
|
48
|
+
k = e.isDeepEqual, A = e.isDeepStrictEqual;
|
|
49
|
+
}
|
|
50
|
+
var M = !1, N = c.exports = R, P = {};
|
|
51
|
+
function F(e) {
|
|
52
|
+
throw e.message instanceof Error ? e.message : new x(e);
|
|
53
|
+
}
|
|
54
|
+
function I(e, t, n, r, i) {
|
|
55
|
+
var a = arguments.length, o;
|
|
56
|
+
if (a === 0 ? o = "Failed" : a === 1 ? (n = e, e = void 0) : (M === !1 && (M = !0, (process.emitWarning ? process.emitWarning : console.warn.bind(console))("assert.fail() with more than one argument is deprecated. Please use assert.strictEqual() instead or only pass a message.", "DeprecationWarning", "DEP0094")), a === 2 && (r = "!=")), n instanceof Error) throw n;
|
|
57
|
+
var s = {
|
|
58
|
+
actual: e,
|
|
59
|
+
expected: t,
|
|
60
|
+
operator: r === void 0 ? "fail" : r,
|
|
61
|
+
stackStartFn: i || I
|
|
62
|
+
};
|
|
63
|
+
n !== void 0 && (s.message = n);
|
|
64
|
+
var c = new x(s);
|
|
65
|
+
throw o && (c.message = o, c.generatedMessage = !0), c;
|
|
66
|
+
}
|
|
67
|
+
N.fail = I, N.AssertionError = x;
|
|
68
|
+
function L(e, t, n, r) {
|
|
69
|
+
if (!n) {
|
|
70
|
+
var i = !1;
|
|
71
|
+
if (t === 0) i = !0, r = "No value argument passed to `assert.ok()`";
|
|
72
|
+
else if (r instanceof Error) throw r;
|
|
73
|
+
var a = new x({
|
|
74
|
+
actual: n,
|
|
75
|
+
expected: !0,
|
|
76
|
+
message: r,
|
|
77
|
+
operator: "==",
|
|
78
|
+
stackStartFn: e
|
|
79
|
+
});
|
|
80
|
+
throw a.generatedMessage = i, a;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
function R() {
|
|
84
|
+
var e = [...arguments];
|
|
85
|
+
L.apply(void 0, [R, e.length].concat(e));
|
|
86
|
+
}
|
|
87
|
+
N.ok = R, N.equal = function e(t, n, r) {
|
|
88
|
+
if (arguments.length < 2) throw new b("actual", "expected");
|
|
89
|
+
t != n && F({
|
|
90
|
+
actual: t,
|
|
91
|
+
expected: n,
|
|
92
|
+
message: r,
|
|
93
|
+
operator: "==",
|
|
94
|
+
stackStartFn: e
|
|
95
|
+
});
|
|
96
|
+
}, N.notEqual = function e(t, n, r) {
|
|
97
|
+
if (arguments.length < 2) throw new b("actual", "expected");
|
|
98
|
+
t == n && F({
|
|
99
|
+
actual: t,
|
|
100
|
+
expected: n,
|
|
101
|
+
message: r,
|
|
102
|
+
operator: "!=",
|
|
103
|
+
stackStartFn: e
|
|
104
|
+
});
|
|
105
|
+
}, N.deepEqual = function e(t, n, r) {
|
|
106
|
+
if (arguments.length < 2) throw new b("actual", "expected");
|
|
107
|
+
k === void 0 && j(), k(t, n) || F({
|
|
108
|
+
actual: t,
|
|
109
|
+
expected: n,
|
|
110
|
+
message: r,
|
|
111
|
+
operator: "deepEqual",
|
|
112
|
+
stackStartFn: e
|
|
113
|
+
});
|
|
114
|
+
}, N.notDeepEqual = function e(t, n, r) {
|
|
115
|
+
if (arguments.length < 2) throw new b("actual", "expected");
|
|
116
|
+
k === void 0 && j(), k(t, n) && F({
|
|
117
|
+
actual: t,
|
|
118
|
+
expected: n,
|
|
119
|
+
message: r,
|
|
120
|
+
operator: "notDeepEqual",
|
|
121
|
+
stackStartFn: e
|
|
122
|
+
});
|
|
123
|
+
}, N.deepStrictEqual = function e(t, n, r) {
|
|
124
|
+
if (arguments.length < 2) throw new b("actual", "expected");
|
|
125
|
+
k === void 0 && j(), A(t, n) || F({
|
|
126
|
+
actual: t,
|
|
127
|
+
expected: n,
|
|
128
|
+
message: r,
|
|
129
|
+
operator: "deepStrictEqual",
|
|
130
|
+
stackStartFn: e
|
|
131
|
+
});
|
|
132
|
+
}, N.notDeepStrictEqual = z;
|
|
133
|
+
function z(e, t, n) {
|
|
134
|
+
if (arguments.length < 2) throw new b("actual", "expected");
|
|
135
|
+
k === void 0 && j(), A(e, t) && F({
|
|
136
|
+
actual: e,
|
|
137
|
+
expected: t,
|
|
138
|
+
message: n,
|
|
139
|
+
operator: "notDeepStrictEqual",
|
|
140
|
+
stackStartFn: z
|
|
141
|
+
});
|
|
142
|
+
}
|
|
143
|
+
N.strictEqual = function e(t, n, r) {
|
|
144
|
+
if (arguments.length < 2) throw new b("actual", "expected");
|
|
145
|
+
D(t, n) || F({
|
|
146
|
+
actual: t,
|
|
147
|
+
expected: n,
|
|
148
|
+
message: r,
|
|
149
|
+
operator: "strictEqual",
|
|
150
|
+
stackStartFn: e
|
|
151
|
+
});
|
|
152
|
+
}, N.notStrictEqual = function e(t, n, r) {
|
|
153
|
+
if (arguments.length < 2) throw new b("actual", "expected");
|
|
154
|
+
D(t, n) && F({
|
|
155
|
+
actual: t,
|
|
156
|
+
expected: n,
|
|
157
|
+
message: r,
|
|
158
|
+
operator: "notStrictEqual",
|
|
159
|
+
stackStartFn: e
|
|
160
|
+
});
|
|
161
|
+
};
|
|
162
|
+
var B = /*#__PURE__*/ d(function e(t, n, r) {
|
|
163
|
+
var i = this;
|
|
164
|
+
m(this, e), n.forEach(function(e) {
|
|
165
|
+
e in t && (r !== void 0 && typeof r[e] == "string" && T(t[e]) && O(t[e], r[e]) ? i[e] = r[e] : i[e] = t[e]);
|
|
166
|
+
});
|
|
167
|
+
});
|
|
168
|
+
function V(e, t, n, r, i, a) {
|
|
169
|
+
if (!(n in e) || !A(e[n], t[n])) {
|
|
170
|
+
if (!r) {
|
|
171
|
+
var o = new x({
|
|
172
|
+
actual: new B(e, i),
|
|
173
|
+
expected: new B(t, i, e),
|
|
174
|
+
operator: "deepStrictEqual",
|
|
175
|
+
stackStartFn: a
|
|
176
|
+
});
|
|
177
|
+
throw o.actual = e, o.expected = t, o.operator = a.name, o;
|
|
178
|
+
}
|
|
179
|
+
F({
|
|
180
|
+
actual: e,
|
|
181
|
+
expected: t,
|
|
182
|
+
message: r,
|
|
183
|
+
operator: a.name,
|
|
184
|
+
stackStartFn: a
|
|
185
|
+
});
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
function H(e, t, n, r) {
|
|
189
|
+
if (typeof t != "function") {
|
|
190
|
+
if (T(t)) return O(t, e);
|
|
191
|
+
if (arguments.length === 2) throw new _("expected", ["Function", "RegExp"], t);
|
|
192
|
+
if (l(e) !== "object" || e === null) {
|
|
193
|
+
var i = new x({
|
|
194
|
+
actual: e,
|
|
195
|
+
expected: t,
|
|
196
|
+
message: n,
|
|
197
|
+
operator: "deepStrictEqual",
|
|
198
|
+
stackStartFn: r
|
|
199
|
+
});
|
|
200
|
+
throw i.operator = r.name, i;
|
|
201
|
+
}
|
|
202
|
+
var a = Object.keys(t);
|
|
203
|
+
if (t instanceof Error) a.push("name", "message");
|
|
204
|
+
else if (a.length === 0) throw new v("error", t, "may not be an empty object");
|
|
205
|
+
return k === void 0 && j(), a.forEach(function(i) {
|
|
206
|
+
typeof e[i] == "string" && T(t[i]) && O(t[i], e[i]) || V(e, t, i, n, a, r);
|
|
207
|
+
}), !0;
|
|
208
|
+
}
|
|
209
|
+
return t.prototype !== void 0 && e instanceof t || !Error.isPrototypeOf(t) && t.call({}, e) === !0;
|
|
210
|
+
}
|
|
211
|
+
function U(e) {
|
|
212
|
+
if (typeof e != "function") throw new _("fn", "Function", e);
|
|
213
|
+
try {
|
|
214
|
+
e();
|
|
215
|
+
} catch (e) {
|
|
216
|
+
return e;
|
|
217
|
+
}
|
|
218
|
+
return P;
|
|
219
|
+
}
|
|
220
|
+
function W(e) {
|
|
221
|
+
return w(e) || e !== null && l(e) === "object" && typeof e.then == "function" && typeof e.catch == "function";
|
|
222
|
+
}
|
|
223
|
+
function G(e) {
|
|
224
|
+
return Promise.resolve().then(function() {
|
|
225
|
+
var t;
|
|
226
|
+
if (typeof e == "function") {
|
|
227
|
+
if (t = e(), !W(t)) throw new y("instance of Promise", "promiseFn", t);
|
|
228
|
+
} else if (W(e)) t = e;
|
|
229
|
+
else throw new _("promiseFn", ["Function", "Promise"], e);
|
|
230
|
+
return Promise.resolve().then(function() {
|
|
231
|
+
return t;
|
|
232
|
+
}).then(function() {
|
|
233
|
+
return P;
|
|
234
|
+
}).catch(function(e) {
|
|
235
|
+
return e;
|
|
236
|
+
});
|
|
237
|
+
});
|
|
238
|
+
}
|
|
239
|
+
function K(e, t, n, r) {
|
|
240
|
+
if (typeof n == "string") {
|
|
241
|
+
if (arguments.length === 4) throw new _("error", [
|
|
242
|
+
"Object",
|
|
243
|
+
"Error",
|
|
244
|
+
"Function",
|
|
245
|
+
"RegExp"
|
|
246
|
+
], n);
|
|
247
|
+
if (l(t) === "object" && t !== null) {
|
|
248
|
+
if (t.message === n) throw new g("error/message", `The error message "${t.message}" is identical to the message.`);
|
|
249
|
+
} else if (t === n) throw new g("error/message", `The error "${t}" is identical to the message.`);
|
|
250
|
+
r = n, n = void 0;
|
|
251
|
+
} else if (n != null && l(n) !== "object" && typeof n != "function") throw new _("error", [
|
|
252
|
+
"Object",
|
|
253
|
+
"Error",
|
|
254
|
+
"Function",
|
|
255
|
+
"RegExp"
|
|
256
|
+
], n);
|
|
257
|
+
if (t === P) {
|
|
258
|
+
var i = "";
|
|
259
|
+
n && n.name && (i += ` (${n.name})`), i += r ? `: ${r}` : ".";
|
|
260
|
+
var a = e.name === "rejects" ? "rejection" : "exception";
|
|
261
|
+
F({
|
|
262
|
+
actual: void 0,
|
|
263
|
+
expected: n,
|
|
264
|
+
operator: e.name,
|
|
265
|
+
message: `Missing expected ${a}${i}`,
|
|
266
|
+
stackStartFn: e
|
|
267
|
+
});
|
|
268
|
+
}
|
|
269
|
+
if (n && !H(t, n, r, e)) throw t;
|
|
270
|
+
}
|
|
271
|
+
function q(e, t, n, r) {
|
|
272
|
+
if (t !== P) {
|
|
273
|
+
if (typeof n == "string" && (r = n, n = void 0), !n || H(t, n)) {
|
|
274
|
+
var i = r ? `: ${r}` : ".", a = e.name === "doesNotReject" ? "rejection" : "exception";
|
|
275
|
+
F({
|
|
276
|
+
actual: t,
|
|
277
|
+
expected: n,
|
|
278
|
+
operator: e.name,
|
|
279
|
+
message: `Got unwanted ${a}${i}
|
|
280
|
+
Actual message: "${t && t.message}"`,
|
|
281
|
+
stackStartFn: e
|
|
282
|
+
});
|
|
283
|
+
}
|
|
284
|
+
throw t;
|
|
285
|
+
}
|
|
286
|
+
}
|
|
287
|
+
N.throws = function e(t) {
|
|
288
|
+
var n = [...arguments].slice(1);
|
|
289
|
+
K.apply(void 0, [e, U(t)].concat(n));
|
|
290
|
+
}, N.rejects = function e(t) {
|
|
291
|
+
var n = [...arguments].slice(1);
|
|
292
|
+
return G(t).then(function(t) {
|
|
293
|
+
return K.apply(void 0, [e, t].concat(n));
|
|
294
|
+
});
|
|
295
|
+
}, N.doesNotThrow = function e(t) {
|
|
296
|
+
var n = [...arguments].slice(1);
|
|
297
|
+
q.apply(void 0, [e, U(t)].concat(n));
|
|
298
|
+
}, N.doesNotReject = function e(t) {
|
|
299
|
+
var n = [...arguments].slice(1);
|
|
300
|
+
return G(t).then(function(t) {
|
|
301
|
+
return q.apply(void 0, [e, t].concat(n));
|
|
302
|
+
});
|
|
303
|
+
}, N.ifError = function e(t) {
|
|
304
|
+
if (t != null) {
|
|
305
|
+
var n = "ifError got unwanted exception: ";
|
|
306
|
+
l(t) === "object" && typeof t.message == "string" ? t.message.length === 0 && t.constructor ? n += t.constructor.name : n += t.message : n += S(t);
|
|
307
|
+
var r = new x({
|
|
308
|
+
actual: t,
|
|
309
|
+
expected: null,
|
|
310
|
+
operator: "ifError",
|
|
311
|
+
message: n,
|
|
312
|
+
stackStartFn: e
|
|
313
|
+
}), i = t.stack;
|
|
314
|
+
if (typeof i == "string") {
|
|
315
|
+
var a = i.split("\n");
|
|
316
|
+
a.shift();
|
|
317
|
+
for (var o = r.stack.split("\n"), s = 0; s < a.length; s++) {
|
|
318
|
+
var c = o.indexOf(a[s]);
|
|
319
|
+
if (c !== -1) {
|
|
320
|
+
o = o.slice(0, c);
|
|
321
|
+
break;
|
|
322
|
+
}
|
|
323
|
+
}
|
|
324
|
+
r.stack = `${o.join("\n")}
|
|
325
|
+
${a.join("\n")}`;
|
|
326
|
+
}
|
|
327
|
+
throw r;
|
|
328
|
+
}
|
|
329
|
+
};
|
|
330
|
+
function J(e, t, n, r, i) {
|
|
331
|
+
if (!T(t)) throw new _("regexp", "RegExp", t);
|
|
332
|
+
var a = i === "match";
|
|
333
|
+
if (typeof e != "string" || O(t, e) !== a) {
|
|
334
|
+
if (n instanceof Error) throw n;
|
|
335
|
+
var o = !n;
|
|
336
|
+
n ||= typeof e == "string" ? (a ? "The input did not match the regular expression " : "The input was expected to not match the regular expression ") + `${S(t)}. Input:
|
|
337
|
+
|
|
338
|
+
${S(e)}
|
|
339
|
+
` : `The "string" argument must be of type string. Received type ${l(e)} (${S(e)})`;
|
|
340
|
+
var s = new x({
|
|
341
|
+
actual: e,
|
|
342
|
+
expected: t,
|
|
343
|
+
message: n,
|
|
344
|
+
operator: i,
|
|
345
|
+
stackStartFn: r
|
|
346
|
+
});
|
|
347
|
+
throw s.generatedMessage = o, s;
|
|
348
|
+
}
|
|
349
|
+
}
|
|
350
|
+
N.match = function e(t, n, r) {
|
|
351
|
+
J(t, n, r, e, "match");
|
|
352
|
+
}, N.doesNotMatch = function e(t, n, r) {
|
|
353
|
+
J(t, n, r, e, "doesNotMatch");
|
|
354
|
+
};
|
|
355
|
+
function Y() {
|
|
356
|
+
var e = [...arguments];
|
|
357
|
+
L.apply(void 0, [Y, e.length].concat(e));
|
|
358
|
+
}
|
|
359
|
+
N.strict = E(Y, N, {
|
|
360
|
+
equal: N.strictEqual,
|
|
361
|
+
deepEqual: N.deepStrictEqual,
|
|
362
|
+
notEqual: N.notStrictEqual,
|
|
363
|
+
notDeepEqual: N.notDeepStrictEqual
|
|
364
|
+
}), N.strict.strict = N.strict;
|
|
365
|
+
}));
|
|
366
|
+
//#endregion
|
|
367
|
+
export default c();
|
|
368
|
+
export { c as require_assert };
|
|
@@ -0,0 +1,303 @@
|
|
|
1
|
+
import { __commonJSMin as e } from "../../../../../../../../_virtual/_rolldown/runtime.js";
|
|
2
|
+
import { require_util as t } from "../../../../../../util@0.12.5/node_modules/util/util.js";
|
|
3
|
+
import { require_errors as n } from "../errors.js";
|
|
4
|
+
//#region ../../../node_modules/.bun/assert@2.1.0/node_modules/assert/build/internal/assert/assertion_error.js
|
|
5
|
+
var r = /* @__PURE__ */ e(((e, r) => {
|
|
6
|
+
function i(e, t) {
|
|
7
|
+
var n = Object.keys(e);
|
|
8
|
+
if (Object.getOwnPropertySymbols) {
|
|
9
|
+
var r = Object.getOwnPropertySymbols(e);
|
|
10
|
+
t && (r = r.filter(function(t) {
|
|
11
|
+
return Object.getOwnPropertyDescriptor(e, t).enumerable;
|
|
12
|
+
})), n.push.apply(n, r);
|
|
13
|
+
}
|
|
14
|
+
return n;
|
|
15
|
+
}
|
|
16
|
+
function a(e) {
|
|
17
|
+
for (var t = 1; t < arguments.length; t++) {
|
|
18
|
+
var n = arguments[t] == null ? {} : arguments[t];
|
|
19
|
+
t % 2 ? i(Object(n), !0).forEach(function(t) {
|
|
20
|
+
o(e, t, n[t]);
|
|
21
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : i(Object(n)).forEach(function(t) {
|
|
22
|
+
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
return e;
|
|
26
|
+
}
|
|
27
|
+
function o(e, t, n) {
|
|
28
|
+
return t = u(t), t in e ? Object.defineProperty(e, t, {
|
|
29
|
+
value: n,
|
|
30
|
+
enumerable: !0,
|
|
31
|
+
configurable: !0,
|
|
32
|
+
writable: !0
|
|
33
|
+
}) : e[t] = n, e;
|
|
34
|
+
}
|
|
35
|
+
function s(e, t) {
|
|
36
|
+
if (!(e instanceof t)) throw TypeError("Cannot call a class as a function");
|
|
37
|
+
}
|
|
38
|
+
function c(e, t) {
|
|
39
|
+
for (var n = 0; n < t.length; n++) {
|
|
40
|
+
var r = t[n];
|
|
41
|
+
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, u(r.key), r);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
function l(e, t, n) {
|
|
45
|
+
return t && c(e.prototype, t), n && c(e, n), Object.defineProperty(e, "prototype", { writable: !1 }), e;
|
|
46
|
+
}
|
|
47
|
+
function u(e) {
|
|
48
|
+
var t = d(e, "string");
|
|
49
|
+
return S(t) === "symbol" ? t : String(t);
|
|
50
|
+
}
|
|
51
|
+
function d(e, t) {
|
|
52
|
+
if (S(e) !== "object" || e === null) return e;
|
|
53
|
+
var n = e[Symbol.toPrimitive];
|
|
54
|
+
if (n !== void 0) {
|
|
55
|
+
var r = n.call(e, t || "default");
|
|
56
|
+
if (S(r) !== "object") return r;
|
|
57
|
+
throw TypeError("@@toPrimitive must return a primitive value.");
|
|
58
|
+
}
|
|
59
|
+
return (t === "string" ? String : Number)(e);
|
|
60
|
+
}
|
|
61
|
+
function f(e, t) {
|
|
62
|
+
if (typeof t != "function" && t !== null) throw TypeError("Super expression must either be null or a function");
|
|
63
|
+
e.prototype = Object.create(t && t.prototype, { constructor: {
|
|
64
|
+
value: e,
|
|
65
|
+
writable: !0,
|
|
66
|
+
configurable: !0
|
|
67
|
+
} }), Object.defineProperty(e, "prototype", { writable: !1 }), t && b(e, t);
|
|
68
|
+
}
|
|
69
|
+
function p(e) {
|
|
70
|
+
var t = v();
|
|
71
|
+
return function() {
|
|
72
|
+
var n = x(e), r;
|
|
73
|
+
if (t) {
|
|
74
|
+
var i = x(this).constructor;
|
|
75
|
+
r = Reflect.construct(n, arguments, i);
|
|
76
|
+
} else r = n.apply(this, arguments);
|
|
77
|
+
return m(this, r);
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
function m(e, t) {
|
|
81
|
+
if (t && (S(t) === "object" || typeof t == "function")) return t;
|
|
82
|
+
if (t !== void 0) throw TypeError("Derived constructors may only return object or undefined");
|
|
83
|
+
return h(e);
|
|
84
|
+
}
|
|
85
|
+
function h(e) {
|
|
86
|
+
if (e === void 0) throw ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
87
|
+
return e;
|
|
88
|
+
}
|
|
89
|
+
function g(e) {
|
|
90
|
+
var t = typeof Map == "function" ? /* @__PURE__ */ new Map() : void 0;
|
|
91
|
+
return g = function(e) {
|
|
92
|
+
if (e === null || !y(e)) return e;
|
|
93
|
+
if (typeof e != "function") throw TypeError("Super expression must either be null or a function");
|
|
94
|
+
if (t !== void 0) {
|
|
95
|
+
if (t.has(e)) return t.get(e);
|
|
96
|
+
t.set(e, n);
|
|
97
|
+
}
|
|
98
|
+
function n() {
|
|
99
|
+
return _(e, arguments, x(this).constructor);
|
|
100
|
+
}
|
|
101
|
+
return n.prototype = Object.create(e.prototype, { constructor: {
|
|
102
|
+
value: n,
|
|
103
|
+
enumerable: !1,
|
|
104
|
+
writable: !0,
|
|
105
|
+
configurable: !0
|
|
106
|
+
} }), b(n, e);
|
|
107
|
+
}, g(e);
|
|
108
|
+
}
|
|
109
|
+
function _(e, t, n) {
|
|
110
|
+
return _ = v() ? Reflect.construct.bind() : function(e, t, n) {
|
|
111
|
+
var r = [null];
|
|
112
|
+
r.push.apply(r, t);
|
|
113
|
+
var i = new (Function.bind.apply(e, r))();
|
|
114
|
+
return n && b(i, n.prototype), i;
|
|
115
|
+
}, _.apply(null, arguments);
|
|
116
|
+
}
|
|
117
|
+
function v() {
|
|
118
|
+
if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham) return !1;
|
|
119
|
+
if (typeof Proxy == "function") return !0;
|
|
120
|
+
try {
|
|
121
|
+
return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {})), !0;
|
|
122
|
+
} catch {
|
|
123
|
+
return !1;
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
function y(e) {
|
|
127
|
+
return Function.toString.call(e).indexOf("[native code]") !== -1;
|
|
128
|
+
}
|
|
129
|
+
function b(e, t) {
|
|
130
|
+
return b = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(e, t) {
|
|
131
|
+
return e.__proto__ = t, e;
|
|
132
|
+
}, b(e, t);
|
|
133
|
+
}
|
|
134
|
+
function x(e) {
|
|
135
|
+
return x = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(e) {
|
|
136
|
+
return e.__proto__ || Object.getPrototypeOf(e);
|
|
137
|
+
}, x(e);
|
|
138
|
+
}
|
|
139
|
+
function S(e) {
|
|
140
|
+
"@babel/helpers - typeof";
|
|
141
|
+
return S = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
142
|
+
return typeof e;
|
|
143
|
+
} : function(e) {
|
|
144
|
+
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
145
|
+
}, S(e);
|
|
146
|
+
}
|
|
147
|
+
var C = t().inspect, w = n().codes.ERR_INVALID_ARG_TYPE;
|
|
148
|
+
function T(e, t, n) {
|
|
149
|
+
return (n === void 0 || n > e.length) && (n = e.length), e.substring(n - t.length, n) === t;
|
|
150
|
+
}
|
|
151
|
+
function E(e, t) {
|
|
152
|
+
if (t = Math.floor(t), e.length == 0 || t == 0) return "";
|
|
153
|
+
var n = e.length * t;
|
|
154
|
+
for (t = Math.floor(Math.log(t) / Math.log(2)); t;) e += e, t--;
|
|
155
|
+
return e += e.substring(0, n - e.length), e;
|
|
156
|
+
}
|
|
157
|
+
var D = "", O = "", k = "", A = "", j = {
|
|
158
|
+
deepStrictEqual: "Expected values to be strictly deep-equal:",
|
|
159
|
+
strictEqual: "Expected values to be strictly equal:",
|
|
160
|
+
strictEqualObject: "Expected \"actual\" to be reference-equal to \"expected\":",
|
|
161
|
+
deepEqual: "Expected values to be loosely deep-equal:",
|
|
162
|
+
equal: "Expected values to be loosely equal:",
|
|
163
|
+
notDeepStrictEqual: "Expected \"actual\" not to be strictly deep-equal to:",
|
|
164
|
+
notStrictEqual: "Expected \"actual\" to be strictly unequal to:",
|
|
165
|
+
notStrictEqualObject: "Expected \"actual\" not to be reference-equal to \"expected\":",
|
|
166
|
+
notDeepEqual: "Expected \"actual\" not to be loosely deep-equal to:",
|
|
167
|
+
notEqual: "Expected \"actual\" to be loosely unequal to:",
|
|
168
|
+
notIdentical: "Values identical but not reference-equal:"
|
|
169
|
+
}, M = 10;
|
|
170
|
+
function N(e) {
|
|
171
|
+
var t = Object.keys(e), n = Object.create(Object.getPrototypeOf(e));
|
|
172
|
+
return t.forEach(function(t) {
|
|
173
|
+
n[t] = e[t];
|
|
174
|
+
}), Object.defineProperty(n, "message", { value: e.message }), n;
|
|
175
|
+
}
|
|
176
|
+
function P(e) {
|
|
177
|
+
return C(e, {
|
|
178
|
+
compact: !1,
|
|
179
|
+
customInspect: !1,
|
|
180
|
+
depth: 1e3,
|
|
181
|
+
maxArrayLength: Infinity,
|
|
182
|
+
showHidden: !1,
|
|
183
|
+
breakLength: Infinity,
|
|
184
|
+
showProxy: !1,
|
|
185
|
+
sorted: !0,
|
|
186
|
+
getters: !0
|
|
187
|
+
});
|
|
188
|
+
}
|
|
189
|
+
function F(e, t, n) {
|
|
190
|
+
var r = "", i = "", a = 0, o = "", s = !1, c = P(e), l = c.split("\n"), u = P(t).split("\n"), d = 0, f = "";
|
|
191
|
+
if (n === "strictEqual" && S(e) === "object" && S(t) === "object" && e !== null && t !== null && (n = "strictEqualObject"), l.length === 1 && u.length === 1 && l[0] !== u[0]) {
|
|
192
|
+
var p = l[0].length + u[0].length;
|
|
193
|
+
if (p <= M) {
|
|
194
|
+
if ((S(e) !== "object" || e === null) && (S(t) !== "object" || t === null) && (e !== 0 || t !== 0)) return `${j[n]}
|
|
195
|
+
|
|
196
|
+
${l[0]} !== ${u[0]}
|
|
197
|
+
`;
|
|
198
|
+
} else if (n !== "strictEqualObject" && p < (process.stderr && process.stderr.isTTY ? process.stderr.columns : 80)) {
|
|
199
|
+
for (; l[0][d] === u[0][d];) d++;
|
|
200
|
+
d > 2 && (f = `
|
|
201
|
+
${E(" ", d)}^`, d = 0);
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
for (var m = l[l.length - 1], h = u[u.length - 1]; m === h && (d++ < 2 ? o = `
|
|
205
|
+
${m}${o}` : r = m, l.pop(), u.pop(), !(l.length === 0 || u.length === 0));) m = l[l.length - 1], h = u[u.length - 1];
|
|
206
|
+
var g = Math.max(l.length, u.length);
|
|
207
|
+
if (g === 0) {
|
|
208
|
+
var _ = c.split("\n");
|
|
209
|
+
if (_.length > 30) for (_[26] = `${D}...${A}`; _.length > 27;) _.pop();
|
|
210
|
+
return `${j.notIdentical}
|
|
211
|
+
|
|
212
|
+
${_.join("\n")}
|
|
213
|
+
`;
|
|
214
|
+
}
|
|
215
|
+
d > 3 && (o = `
|
|
216
|
+
${D}...${A}${o}`, s = !0), r !== "" && (o = `
|
|
217
|
+
${r}${o}`, r = "");
|
|
218
|
+
var v = 0, y = j[n] + `
|
|
219
|
+
${O}+ actual${A} ${k}- expected${A}`, b = ` ${D}...${A} Lines skipped`;
|
|
220
|
+
for (d = 0; d < g; d++) {
|
|
221
|
+
var x = d - a;
|
|
222
|
+
if (l.length < d + 1) x > 1 && d > 2 && (x > 4 ? (i += `
|
|
223
|
+
${D}...${A}`, s = !0) : x > 3 && (i += `
|
|
224
|
+
${u[d - 2]}`, v++), i += `
|
|
225
|
+
${u[d - 1]}`, v++), a = d, r += `
|
|
226
|
+
${k}-${A} ${u[d]}`, v++;
|
|
227
|
+
else if (u.length < d + 1) x > 1 && d > 2 && (x > 4 ? (i += `
|
|
228
|
+
${D}...${A}`, s = !0) : x > 3 && (i += `
|
|
229
|
+
${l[d - 2]}`, v++), i += `
|
|
230
|
+
${l[d - 1]}`, v++), a = d, i += `
|
|
231
|
+
${O}+${A} ${l[d]}`, v++;
|
|
232
|
+
else {
|
|
233
|
+
var C = u[d], w = l[d], N = w !== C && (!T(w, ",") || w.slice(0, -1) !== C);
|
|
234
|
+
N && T(C, ",") && C.slice(0, -1) === w && (N = !1, w += ","), N ? (x > 1 && d > 2 && (x > 4 ? (i += `
|
|
235
|
+
${D}...${A}`, s = !0) : x > 3 && (i += `
|
|
236
|
+
${l[d - 2]}`, v++), i += `
|
|
237
|
+
${l[d - 1]}`, v++), a = d, i += `
|
|
238
|
+
${O}+${A} ${w}`, r += `
|
|
239
|
+
${k}-${A} ${C}`, v += 2) : (i += r, r = "", (x === 1 || d === 0) && (i += `
|
|
240
|
+
${w}`, v++));
|
|
241
|
+
}
|
|
242
|
+
if (v > 20 && d < g - 2) return `${y}${b}
|
|
243
|
+
${i}
|
|
244
|
+
${D}...${A}${r}
|
|
245
|
+
${D}...${A}`;
|
|
246
|
+
}
|
|
247
|
+
return `${y}${s ? b : ""}
|
|
248
|
+
${i}${r}${o}${f}`;
|
|
249
|
+
}
|
|
250
|
+
r.exports = /* @__PURE__ */ function(e, t) {
|
|
251
|
+
f(r, e);
|
|
252
|
+
var n = p(r);
|
|
253
|
+
function r(e) {
|
|
254
|
+
var t;
|
|
255
|
+
if (s(this, r), S(e) !== "object" || e === null) throw new w("options", "Object", e);
|
|
256
|
+
var i = e.message, a = e.operator, o = e.stackStartFn, c = e.actual, l = e.expected, u = Error.stackTraceLimit;
|
|
257
|
+
if (Error.stackTraceLimit = 0, i != null) t = n.call(this, String(i));
|
|
258
|
+
else if (process.stderr && process.stderr.isTTY && (process.stderr && process.stderr.getColorDepth && process.stderr.getColorDepth() !== 1 ? (D = "\x1B[34m", O = "\x1B[32m", A = "\x1B[39m", k = "\x1B[31m") : (D = "", O = "", A = "", k = "")), S(c) === "object" && c !== null && S(l) === "object" && l !== null && "stack" in c && c instanceof Error && "stack" in l && l instanceof Error && (c = N(c), l = N(l)), a === "deepStrictEqual" || a === "strictEqual") t = n.call(this, F(c, l, a));
|
|
259
|
+
else if (a === "notDeepStrictEqual" || a === "notStrictEqual") {
|
|
260
|
+
var d = j[a], f = P(c).split("\n");
|
|
261
|
+
if (a === "notStrictEqual" && S(c) === "object" && c !== null && (d = j.notStrictEqualObject), f.length > 30) for (f[26] = `${D}...${A}`; f.length > 27;) f.pop();
|
|
262
|
+
t = f.length === 1 ? n.call(this, `${d} ${f[0]}`) : n.call(this, `${d}
|
|
263
|
+
|
|
264
|
+
${f.join("\n")}
|
|
265
|
+
`);
|
|
266
|
+
} else {
|
|
267
|
+
var p = P(c), g = "", _ = j[a];
|
|
268
|
+
a === "notDeepEqual" || a === "notEqual" ? (p = `${j[a]}
|
|
269
|
+
|
|
270
|
+
${p}`, p.length > 1024 && (p = `${p.slice(0, 1021)}...`)) : (g = `${P(l)}`, p.length > 512 && (p = `${p.slice(0, 509)}...`), g.length > 512 && (g = `${g.slice(0, 509)}...`), a === "deepEqual" || a === "equal" ? p = `${_}
|
|
271
|
+
|
|
272
|
+
${p}
|
|
273
|
+
|
|
274
|
+
should equal
|
|
275
|
+
|
|
276
|
+
` : g = ` ${a} ${g}`), t = n.call(this, `${p}${g}`);
|
|
277
|
+
}
|
|
278
|
+
return Error.stackTraceLimit = u, t.generatedMessage = !i, Object.defineProperty(h(t), "name", {
|
|
279
|
+
value: "AssertionError [ERR_ASSERTION]",
|
|
280
|
+
enumerable: !1,
|
|
281
|
+
writable: !0,
|
|
282
|
+
configurable: !0
|
|
283
|
+
}), t.code = "ERR_ASSERTION", t.actual = c, t.expected = l, t.operator = a, Error.captureStackTrace && Error.captureStackTrace(h(t), o), t.stack, t.name = "AssertionError", m(t);
|
|
284
|
+
}
|
|
285
|
+
return l(r, [{
|
|
286
|
+
key: "toString",
|
|
287
|
+
value: function() {
|
|
288
|
+
return `${this.name} [${this.code}]: ${this.message}`;
|
|
289
|
+
}
|
|
290
|
+
}, {
|
|
291
|
+
key: t,
|
|
292
|
+
value: function(e, t) {
|
|
293
|
+
return C(this, a(a({}, t), {}, {
|
|
294
|
+
customInspect: !1,
|
|
295
|
+
depth: 0
|
|
296
|
+
}));
|
|
297
|
+
}
|
|
298
|
+
}]), r;
|
|
299
|
+
}(/*#__PURE__*/ g(Error), C.custom);
|
|
300
|
+
}));
|
|
301
|
+
//#endregion
|
|
302
|
+
export default r();
|
|
303
|
+
export { r as require_assertion_error };
|