consentify-migrate 1.0.0 → 1.0.2
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/README.md +128 -0
- package/dist/index.js +819 -708
- package/package.json +10 -5
package/dist/index.js
CHANGED
|
@@ -1,21 +1,15 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
+
"use strict";
|
|
2
3
|
var __create = Object.create;
|
|
3
4
|
var __defProp = Object.defineProperty;
|
|
4
5
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
6
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
7
|
var __getProtoOf = Object.getPrototypeOf;
|
|
7
8
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
-
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
|
|
9
|
-
get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
|
|
10
|
-
}) : x)(function(x) {
|
|
11
|
-
if (typeof require !== "undefined")
|
|
12
|
-
return require.apply(this, arguments);
|
|
13
|
-
throw Error('Dynamic require of "' + x + '" is not supported');
|
|
14
|
-
});
|
|
15
9
|
var __esm = (fn, res) => function __init() {
|
|
16
10
|
return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
|
|
17
11
|
};
|
|
18
|
-
var __commonJS = (cb, mod) => function
|
|
12
|
+
var __commonJS = (cb, mod) => function __require() {
|
|
19
13
|
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
20
14
|
};
|
|
21
15
|
var __export = (target, all) => {
|
|
@@ -43,8 +37,8 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
43
37
|
|
|
44
38
|
// node_modules/yoctocolors-cjs/index.js
|
|
45
39
|
var require_yoctocolors_cjs = __commonJS({
|
|
46
|
-
"node_modules/yoctocolors-cjs/index.js"(
|
|
47
|
-
var tty2 =
|
|
40
|
+
"node_modules/yoctocolors-cjs/index.js"(exports2, module2) {
|
|
41
|
+
var tty2 = require("node:tty");
|
|
48
42
|
var hasColors = tty2?.WriteStream?.prototype?.hasColors?.() ?? false;
|
|
49
43
|
var format = (open, close) => {
|
|
50
44
|
if (!hasColors) {
|
|
@@ -113,20 +107,20 @@ var require_yoctocolors_cjs = __commonJS({
|
|
|
113
107
|
colors8.bgMagentaBright = format(105, 49);
|
|
114
108
|
colors8.bgCyanBright = format(106, 49);
|
|
115
109
|
colors8.bgWhiteBright = format(107, 49);
|
|
116
|
-
|
|
110
|
+
module2.exports = colors8;
|
|
117
111
|
}
|
|
118
112
|
});
|
|
119
113
|
|
|
120
114
|
// node_modules/cli-width/index.js
|
|
121
115
|
var require_cli_width = __commonJS({
|
|
122
|
-
"node_modules/cli-width/index.js"(
|
|
116
|
+
"node_modules/cli-width/index.js"(exports2, module2) {
|
|
123
117
|
"use strict";
|
|
124
|
-
|
|
118
|
+
module2.exports = cliWidth2;
|
|
125
119
|
function normalizeOpts(options) {
|
|
126
120
|
const defaultOpts = {
|
|
127
121
|
defaultWidth: 0,
|
|
128
122
|
output: process.stdout,
|
|
129
|
-
tty:
|
|
123
|
+
tty: require("tty")
|
|
130
124
|
};
|
|
131
125
|
if (!options) {
|
|
132
126
|
return defaultOpts;
|
|
@@ -162,9 +156,9 @@ var require_cli_width = __commonJS({
|
|
|
162
156
|
|
|
163
157
|
// node_modules/wrap-ansi/node_modules/strip-ansi/node_modules/ansi-regex/index.js
|
|
164
158
|
var require_ansi_regex = __commonJS({
|
|
165
|
-
"node_modules/wrap-ansi/node_modules/strip-ansi/node_modules/ansi-regex/index.js"(
|
|
159
|
+
"node_modules/wrap-ansi/node_modules/strip-ansi/node_modules/ansi-regex/index.js"(exports2, module2) {
|
|
166
160
|
"use strict";
|
|
167
|
-
|
|
161
|
+
module2.exports = ({ onlyFirst = false } = {}) => {
|
|
168
162
|
const pattern = [
|
|
169
163
|
"[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)",
|
|
170
164
|
"(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"
|
|
@@ -176,16 +170,16 @@ var require_ansi_regex = __commonJS({
|
|
|
176
170
|
|
|
177
171
|
// node_modules/wrap-ansi/node_modules/strip-ansi/index.js
|
|
178
172
|
var require_strip_ansi = __commonJS({
|
|
179
|
-
"node_modules/wrap-ansi/node_modules/strip-ansi/index.js"(
|
|
173
|
+
"node_modules/wrap-ansi/node_modules/strip-ansi/index.js"(exports2, module2) {
|
|
180
174
|
"use strict";
|
|
181
175
|
var ansiRegex2 = require_ansi_regex();
|
|
182
|
-
|
|
176
|
+
module2.exports = (string) => typeof string === "string" ? string.replace(ansiRegex2(), "") : string;
|
|
183
177
|
}
|
|
184
178
|
});
|
|
185
179
|
|
|
186
180
|
// node_modules/is-fullwidth-code-point/index.js
|
|
187
181
|
var require_is_fullwidth_code_point = __commonJS({
|
|
188
|
-
"node_modules/is-fullwidth-code-point/index.js"(
|
|
182
|
+
"node_modules/is-fullwidth-code-point/index.js"(exports2, module2) {
|
|
189
183
|
"use strict";
|
|
190
184
|
var isFullwidthCodePoint = (codePoint) => {
|
|
191
185
|
if (Number.isNaN(codePoint)) {
|
|
@@ -211,16 +205,16 @@ var require_is_fullwidth_code_point = __commonJS({
|
|
|
211
205
|
}
|
|
212
206
|
return false;
|
|
213
207
|
};
|
|
214
|
-
|
|
215
|
-
|
|
208
|
+
module2.exports = isFullwidthCodePoint;
|
|
209
|
+
module2.exports.default = isFullwidthCodePoint;
|
|
216
210
|
}
|
|
217
211
|
});
|
|
218
212
|
|
|
219
213
|
// node_modules/wrap-ansi/node_modules/string-width/node_modules/emoji-regex/index.js
|
|
220
214
|
var require_emoji_regex = __commonJS({
|
|
221
|
-
"node_modules/wrap-ansi/node_modules/string-width/node_modules/emoji-regex/index.js"(
|
|
215
|
+
"node_modules/wrap-ansi/node_modules/string-width/node_modules/emoji-regex/index.js"(exports2, module2) {
|
|
222
216
|
"use strict";
|
|
223
|
-
|
|
217
|
+
module2.exports = function() {
|
|
224
218
|
return /\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F|\uD83D\uDC68(?:\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68\uD83C\uDFFB|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|[\u2695\u2696\u2708]\uFE0F|\uD83D[\uDC66\uDC67]|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708])\uFE0F|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C[\uDFFB-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)\uD83C\uDFFB|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB\uDFFC])|\uD83D\uDC69(?:\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB-\uDFFD])|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|(?:(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)\uFE0F|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\u200D[\u2640\u2642])|\uD83C\uDFF4\u200D\u2620)\uFE0F|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF4\uD83C\uDDF2|\uD83C\uDDF6\uD83C\uDDE6|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDB5\uDDB6\uDDBB\uDDD2-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5\uDEEB\uDEEC\uDEF4-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g;
|
|
225
219
|
};
|
|
226
220
|
}
|
|
@@ -228,7 +222,7 @@ var require_emoji_regex = __commonJS({
|
|
|
228
222
|
|
|
229
223
|
// node_modules/wrap-ansi/node_modules/string-width/index.js
|
|
230
224
|
var require_string_width = __commonJS({
|
|
231
|
-
"node_modules/wrap-ansi/node_modules/string-width/index.js"(
|
|
225
|
+
"node_modules/wrap-ansi/node_modules/string-width/index.js"(exports2, module2) {
|
|
232
226
|
"use strict";
|
|
233
227
|
var stripAnsi2 = require_strip_ansi();
|
|
234
228
|
var isFullwidthCodePoint = require_is_fullwidth_code_point();
|
|
@@ -258,16 +252,16 @@ var require_string_width = __commonJS({
|
|
|
258
252
|
}
|
|
259
253
|
return width;
|
|
260
254
|
};
|
|
261
|
-
|
|
262
|
-
|
|
255
|
+
module2.exports = stringWidth2;
|
|
256
|
+
module2.exports.default = stringWidth2;
|
|
263
257
|
}
|
|
264
258
|
});
|
|
265
259
|
|
|
266
260
|
// node_modules/color-name/index.js
|
|
267
261
|
var require_color_name = __commonJS({
|
|
268
|
-
"node_modules/color-name/index.js"(
|
|
262
|
+
"node_modules/color-name/index.js"(exports2, module2) {
|
|
269
263
|
"use strict";
|
|
270
|
-
|
|
264
|
+
module2.exports = {
|
|
271
265
|
"aliceblue": [240, 248, 255],
|
|
272
266
|
"antiquewhite": [250, 235, 215],
|
|
273
267
|
"aqua": [0, 255, 255],
|
|
@@ -422,7 +416,7 @@ var require_color_name = __commonJS({
|
|
|
422
416
|
|
|
423
417
|
// node_modules/color-convert/conversions.js
|
|
424
418
|
var require_conversions = __commonJS({
|
|
425
|
-
"node_modules/color-convert/conversions.js"(
|
|
419
|
+
"node_modules/color-convert/conversions.js"(exports2, module2) {
|
|
426
420
|
var cssKeywords = require_color_name();
|
|
427
421
|
var reverseKeywords = {};
|
|
428
422
|
for (const key of Object.keys(cssKeywords)) {
|
|
@@ -445,7 +439,7 @@ var require_conversions = __commonJS({
|
|
|
445
439
|
apple: { channels: 3, labels: ["r16", "g16", "b16"] },
|
|
446
440
|
gray: { channels: 1, labels: ["gray"] }
|
|
447
441
|
};
|
|
448
|
-
|
|
442
|
+
module2.exports = convert;
|
|
449
443
|
for (const model of Object.keys(convert)) {
|
|
450
444
|
if (!("channels" in convert[model])) {
|
|
451
445
|
throw new Error("missing channels property: " + model);
|
|
@@ -1093,7 +1087,7 @@ var require_conversions = __commonJS({
|
|
|
1093
1087
|
|
|
1094
1088
|
// node_modules/color-convert/route.js
|
|
1095
1089
|
var require_route = __commonJS({
|
|
1096
|
-
"node_modules/color-convert/route.js"(
|
|
1090
|
+
"node_modules/color-convert/route.js"(exports2, module2) {
|
|
1097
1091
|
var conversions = require_conversions();
|
|
1098
1092
|
function buildGraph() {
|
|
1099
1093
|
const graph = {};
|
|
@@ -1144,7 +1138,7 @@ var require_route = __commonJS({
|
|
|
1144
1138
|
fn.conversion = path3;
|
|
1145
1139
|
return fn;
|
|
1146
1140
|
}
|
|
1147
|
-
|
|
1141
|
+
module2.exports = function(fromModel) {
|
|
1148
1142
|
const graph = deriveBFS(fromModel);
|
|
1149
1143
|
const conversion = {};
|
|
1150
1144
|
const models = Object.keys(graph);
|
|
@@ -1163,7 +1157,7 @@ var require_route = __commonJS({
|
|
|
1163
1157
|
|
|
1164
1158
|
// node_modules/color-convert/index.js
|
|
1165
1159
|
var require_color_convert = __commonJS({
|
|
1166
|
-
"node_modules/color-convert/index.js"(
|
|
1160
|
+
"node_modules/color-convert/index.js"(exports2, module2) {
|
|
1167
1161
|
var conversions = require_conversions();
|
|
1168
1162
|
var route = require_route();
|
|
1169
1163
|
var convert = {};
|
|
@@ -1218,13 +1212,13 @@ var require_color_convert = __commonJS({
|
|
|
1218
1212
|
convert[fromModel][toModel].raw = wrapRaw(fn);
|
|
1219
1213
|
});
|
|
1220
1214
|
});
|
|
1221
|
-
|
|
1215
|
+
module2.exports = convert;
|
|
1222
1216
|
}
|
|
1223
1217
|
});
|
|
1224
1218
|
|
|
1225
1219
|
// node_modules/ansi-styles/index.js
|
|
1226
1220
|
var require_ansi_styles = __commonJS({
|
|
1227
|
-
"node_modules/ansi-styles/index.js"(
|
|
1221
|
+
"node_modules/ansi-styles/index.js"(exports2, module2) {
|
|
1228
1222
|
"use strict";
|
|
1229
1223
|
var wrapAnsi162 = (fn, offset) => (...args) => {
|
|
1230
1224
|
const code = fn(...args);
|
|
@@ -1357,7 +1351,7 @@ var require_ansi_styles = __commonJS({
|
|
|
1357
1351
|
setLazyProperty(styles3.bgColor, "ansi16m", () => makeDynamicStyles(wrapAnsi16m2, "rgb", rgb2rgb, true));
|
|
1358
1352
|
return styles3;
|
|
1359
1353
|
}
|
|
1360
|
-
Object.defineProperty(
|
|
1354
|
+
Object.defineProperty(module2, "exports", {
|
|
1361
1355
|
enumerable: true,
|
|
1362
1356
|
get: assembleStyles2
|
|
1363
1357
|
});
|
|
@@ -1366,7 +1360,7 @@ var require_ansi_styles = __commonJS({
|
|
|
1366
1360
|
|
|
1367
1361
|
// node_modules/wrap-ansi/index.js
|
|
1368
1362
|
var require_wrap_ansi = __commonJS({
|
|
1369
|
-
"node_modules/wrap-ansi/index.js"(
|
|
1363
|
+
"node_modules/wrap-ansi/index.js"(exports2, module2) {
|
|
1370
1364
|
"use strict";
|
|
1371
1365
|
var stringWidth2 = require_string_width();
|
|
1372
1366
|
var stripAnsi2 = require_strip_ansi();
|
|
@@ -1491,7 +1485,7 @@ var require_wrap_ansi = __commonJS({
|
|
|
1491
1485
|
}
|
|
1492
1486
|
return ret;
|
|
1493
1487
|
};
|
|
1494
|
-
|
|
1488
|
+
module2.exports = (string, columns, options) => {
|
|
1495
1489
|
return String(string).normalize().replace(/\r\n/g, "\n").split("\n").map((line) => exec(line, columns, options)).join("\n");
|
|
1496
1490
|
};
|
|
1497
1491
|
}
|
|
@@ -1499,8 +1493,8 @@ var require_wrap_ansi = __commonJS({
|
|
|
1499
1493
|
|
|
1500
1494
|
// node_modules/mute-stream/lib/index.js
|
|
1501
1495
|
var require_lib = __commonJS({
|
|
1502
|
-
"node_modules/mute-stream/lib/index.js"(
|
|
1503
|
-
var Stream2 =
|
|
1496
|
+
"node_modules/mute-stream/lib/index.js"(exports2, module2) {
|
|
1497
|
+
var Stream2 = require("stream");
|
|
1504
1498
|
var MuteStream2 = class extends Stream2 {
|
|
1505
1499
|
#isTTY = null;
|
|
1506
1500
|
constructor(opts = {}) {
|
|
@@ -1615,19 +1609,19 @@ var require_lib = __commonJS({
|
|
|
1615
1609
|
return this.#proxy("close", ...args);
|
|
1616
1610
|
}
|
|
1617
1611
|
};
|
|
1618
|
-
|
|
1612
|
+
module2.exports = MuteStream2;
|
|
1619
1613
|
}
|
|
1620
1614
|
});
|
|
1621
1615
|
|
|
1622
1616
|
// node_modules/chardet/lib/fs/node.js
|
|
1623
1617
|
var require_node = __commonJS({
|
|
1624
|
-
"node_modules/chardet/lib/fs/node.js"(
|
|
1618
|
+
"node_modules/chardet/lib/fs/node.js"(exports2, module2) {
|
|
1625
1619
|
"use strict";
|
|
1626
|
-
Object.defineProperty(
|
|
1620
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
1627
1621
|
var fsModule;
|
|
1628
|
-
|
|
1629
|
-
if (typeof
|
|
1630
|
-
fsModule = fsModule ? fsModule :
|
|
1622
|
+
exports2.default = () => {
|
|
1623
|
+
if (typeof module2 === "object" && typeof module2.exports === "object") {
|
|
1624
|
+
fsModule = fsModule ? fsModule : require("fs");
|
|
1631
1625
|
return fsModule;
|
|
1632
1626
|
}
|
|
1633
1627
|
throw new Error("File system is not available");
|
|
@@ -1637,10 +1631,10 @@ var require_node = __commonJS({
|
|
|
1637
1631
|
|
|
1638
1632
|
// node_modules/chardet/lib/match.js
|
|
1639
1633
|
var require_match = __commonJS({
|
|
1640
|
-
"node_modules/chardet/lib/match.js"(
|
|
1634
|
+
"node_modules/chardet/lib/match.js"(exports2) {
|
|
1641
1635
|
"use strict";
|
|
1642
|
-
Object.defineProperty(
|
|
1643
|
-
|
|
1636
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
1637
|
+
exports2.default = (ctx, rec, confidence) => ({
|
|
1644
1638
|
confidence,
|
|
1645
1639
|
name: rec.name(ctx),
|
|
1646
1640
|
lang: rec.language ? rec.language() : void 0
|
|
@@ -1650,12 +1644,12 @@ var require_match = __commonJS({
|
|
|
1650
1644
|
|
|
1651
1645
|
// node_modules/chardet/lib/encoding/ascii.js
|
|
1652
1646
|
var require_ascii = __commonJS({
|
|
1653
|
-
"node_modules/chardet/lib/encoding/ascii.js"(
|
|
1647
|
+
"node_modules/chardet/lib/encoding/ascii.js"(exports2) {
|
|
1654
1648
|
"use strict";
|
|
1655
|
-
var __importDefault2 =
|
|
1649
|
+
var __importDefault2 = exports2 && exports2.__importDefault || function(mod) {
|
|
1656
1650
|
return mod && mod.__esModule ? mod : { "default": mod };
|
|
1657
1651
|
};
|
|
1658
|
-
Object.defineProperty(
|
|
1652
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
1659
1653
|
var match_1 = __importDefault2(require_match());
|
|
1660
1654
|
var Ascii = class {
|
|
1661
1655
|
name() {
|
|
@@ -1672,18 +1666,18 @@ var require_ascii = __commonJS({
|
|
|
1672
1666
|
return (0, match_1.default)(det, this, 100);
|
|
1673
1667
|
}
|
|
1674
1668
|
};
|
|
1675
|
-
|
|
1669
|
+
exports2.default = Ascii;
|
|
1676
1670
|
}
|
|
1677
1671
|
});
|
|
1678
1672
|
|
|
1679
1673
|
// node_modules/chardet/lib/encoding/utf8.js
|
|
1680
1674
|
var require_utf8 = __commonJS({
|
|
1681
|
-
"node_modules/chardet/lib/encoding/utf8.js"(
|
|
1675
|
+
"node_modules/chardet/lib/encoding/utf8.js"(exports2) {
|
|
1682
1676
|
"use strict";
|
|
1683
|
-
var __importDefault2 =
|
|
1677
|
+
var __importDefault2 = exports2 && exports2.__importDefault || function(mod) {
|
|
1684
1678
|
return mod && mod.__esModule ? mod : { "default": mod };
|
|
1685
1679
|
};
|
|
1686
|
-
Object.defineProperty(
|
|
1680
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
1687
1681
|
var match_1 = __importDefault2(require_match());
|
|
1688
1682
|
var Utf8 = class {
|
|
1689
1683
|
name() {
|
|
@@ -1743,19 +1737,19 @@ var require_utf8 = __commonJS({
|
|
|
1743
1737
|
return (0, match_1.default)(det, this, confidence);
|
|
1744
1738
|
}
|
|
1745
1739
|
};
|
|
1746
|
-
|
|
1740
|
+
exports2.default = Utf8;
|
|
1747
1741
|
}
|
|
1748
1742
|
});
|
|
1749
1743
|
|
|
1750
1744
|
// node_modules/chardet/lib/encoding/unicode.js
|
|
1751
1745
|
var require_unicode = __commonJS({
|
|
1752
|
-
"node_modules/chardet/lib/encoding/unicode.js"(
|
|
1746
|
+
"node_modules/chardet/lib/encoding/unicode.js"(exports2) {
|
|
1753
1747
|
"use strict";
|
|
1754
|
-
var __importDefault2 =
|
|
1748
|
+
var __importDefault2 = exports2 && exports2.__importDefault || function(mod) {
|
|
1755
1749
|
return mod && mod.__esModule ? mod : { "default": mod };
|
|
1756
1750
|
};
|
|
1757
|
-
Object.defineProperty(
|
|
1758
|
-
|
|
1751
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
1752
|
+
exports2.UTF_32LE = exports2.UTF_32BE = exports2.UTF_16LE = exports2.UTF_16BE = void 0;
|
|
1759
1753
|
var match_1 = __importDefault2(require_match());
|
|
1760
1754
|
var UTF_16BE = class {
|
|
1761
1755
|
name() {
|
|
@@ -1769,7 +1763,7 @@ var require_unicode = __commonJS({
|
|
|
1769
1763
|
return null;
|
|
1770
1764
|
}
|
|
1771
1765
|
};
|
|
1772
|
-
|
|
1766
|
+
exports2.UTF_16BE = UTF_16BE;
|
|
1773
1767
|
var UTF_16LE = class {
|
|
1774
1768
|
name() {
|
|
1775
1769
|
return "UTF-16LE";
|
|
@@ -1785,7 +1779,7 @@ var require_unicode = __commonJS({
|
|
|
1785
1779
|
return null;
|
|
1786
1780
|
}
|
|
1787
1781
|
};
|
|
1788
|
-
|
|
1782
|
+
exports2.UTF_16LE = UTF_16LE;
|
|
1789
1783
|
var UTF_32 = class {
|
|
1790
1784
|
name() {
|
|
1791
1785
|
return "UTF-32";
|
|
@@ -1833,7 +1827,7 @@ var require_unicode = __commonJS({
|
|
|
1833
1827
|
return (input[index + 0] & 255) << 24 | (input[index + 1] & 255) << 16 | (input[index + 2] & 255) << 8 | input[index + 3] & 255;
|
|
1834
1828
|
}
|
|
1835
1829
|
};
|
|
1836
|
-
|
|
1830
|
+
exports2.UTF_32BE = UTF_32BE;
|
|
1837
1831
|
var UTF_32LE = class extends UTF_32 {
|
|
1838
1832
|
name() {
|
|
1839
1833
|
return "UTF-32LE";
|
|
@@ -1842,19 +1836,19 @@ var require_unicode = __commonJS({
|
|
|
1842
1836
|
return (input[index + 3] & 255) << 24 | (input[index + 2] & 255) << 16 | (input[index + 1] & 255) << 8 | input[index + 0] & 255;
|
|
1843
1837
|
}
|
|
1844
1838
|
};
|
|
1845
|
-
|
|
1839
|
+
exports2.UTF_32LE = UTF_32LE;
|
|
1846
1840
|
}
|
|
1847
1841
|
});
|
|
1848
1842
|
|
|
1849
1843
|
// node_modules/chardet/lib/encoding/mbcs.js
|
|
1850
1844
|
var require_mbcs = __commonJS({
|
|
1851
|
-
"node_modules/chardet/lib/encoding/mbcs.js"(
|
|
1845
|
+
"node_modules/chardet/lib/encoding/mbcs.js"(exports2) {
|
|
1852
1846
|
"use strict";
|
|
1853
|
-
var __importDefault2 =
|
|
1847
|
+
var __importDefault2 = exports2 && exports2.__importDefault || function(mod) {
|
|
1854
1848
|
return mod && mod.__esModule ? mod : { "default": mod };
|
|
1855
1849
|
};
|
|
1856
|
-
Object.defineProperty(
|
|
1857
|
-
|
|
1850
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
1851
|
+
exports2.gb_18030 = exports2.euc_kr = exports2.euc_jp = exports2.big5 = exports2.sjis = void 0;
|
|
1858
1852
|
var match_1 = __importDefault2(require_match());
|
|
1859
1853
|
function binarySearch(arr, searchValue) {
|
|
1860
1854
|
const find = (arr2, searchValue2, left, right) => {
|
|
@@ -2040,7 +2034,7 @@ var require_mbcs = __commonJS({
|
|
|
2040
2034
|
return true;
|
|
2041
2035
|
}
|
|
2042
2036
|
};
|
|
2043
|
-
|
|
2037
|
+
exports2.sjis = sjis;
|
|
2044
2038
|
var big5 = class extends mbcs {
|
|
2045
2039
|
constructor() {
|
|
2046
2040
|
super(...arguments);
|
|
@@ -2166,7 +2160,7 @@ var require_mbcs = __commonJS({
|
|
|
2166
2160
|
return true;
|
|
2167
2161
|
}
|
|
2168
2162
|
};
|
|
2169
|
-
|
|
2163
|
+
exports2.big5 = big5;
|
|
2170
2164
|
function eucNextChar(iter, det) {
|
|
2171
2165
|
iter.index = iter.nextIndex;
|
|
2172
2166
|
iter.error = false;
|
|
@@ -2320,7 +2314,7 @@ var require_mbcs = __commonJS({
|
|
|
2320
2314
|
return "ja";
|
|
2321
2315
|
}
|
|
2322
2316
|
};
|
|
2323
|
-
|
|
2317
|
+
exports2.euc_jp = euc_jp;
|
|
2324
2318
|
var euc_kr = class extends mbcs {
|
|
2325
2319
|
constructor() {
|
|
2326
2320
|
super(...arguments);
|
|
@@ -2435,7 +2429,7 @@ var require_mbcs = __commonJS({
|
|
|
2435
2429
|
return "ko";
|
|
2436
2430
|
}
|
|
2437
2431
|
};
|
|
2438
|
-
|
|
2432
|
+
exports2.euc_kr = euc_kr;
|
|
2439
2433
|
var gb_18030 = class extends mbcs {
|
|
2440
2434
|
constructor() {
|
|
2441
2435
|
super(...arguments);
|
|
@@ -2587,19 +2581,19 @@ var require_mbcs = __commonJS({
|
|
|
2587
2581
|
return iter.done == false;
|
|
2588
2582
|
}
|
|
2589
2583
|
};
|
|
2590
|
-
|
|
2584
|
+
exports2.gb_18030 = gb_18030;
|
|
2591
2585
|
}
|
|
2592
2586
|
});
|
|
2593
2587
|
|
|
2594
2588
|
// node_modules/chardet/lib/encoding/sbcs.js
|
|
2595
2589
|
var require_sbcs = __commonJS({
|
|
2596
|
-
"node_modules/chardet/lib/encoding/sbcs.js"(
|
|
2590
|
+
"node_modules/chardet/lib/encoding/sbcs.js"(exports2) {
|
|
2597
2591
|
"use strict";
|
|
2598
|
-
var __importDefault2 =
|
|
2592
|
+
var __importDefault2 = exports2 && exports2.__importDefault || function(mod) {
|
|
2599
2593
|
return mod && mod.__esModule ? mod : { "default": mod };
|
|
2600
2594
|
};
|
|
2601
|
-
Object.defineProperty(
|
|
2602
|
-
|
|
2595
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
2596
|
+
exports2.KOI8_R = exports2.windows_1256 = exports2.windows_1251 = exports2.ISO_8859_9 = exports2.ISO_8859_8 = exports2.ISO_8859_7 = exports2.ISO_8859_6 = exports2.ISO_8859_5 = exports2.ISO_8859_2 = exports2.ISO_8859_1 = void 0;
|
|
2603
2597
|
var match_1 = __importDefault2(require_match());
|
|
2604
2598
|
var N_GRAM_MASK = 16777215;
|
|
2605
2599
|
var NGramParser = class {
|
|
@@ -3640,7 +3634,7 @@ var require_sbcs = __commonJS({
|
|
|
3640
3634
|
return input && input.c1Bytes ? "windows-1252" : "ISO-8859-1";
|
|
3641
3635
|
}
|
|
3642
3636
|
};
|
|
3643
|
-
|
|
3637
|
+
exports2.ISO_8859_1 = ISO_8859_1;
|
|
3644
3638
|
var ISO_8859_2 = class extends sbcs {
|
|
3645
3639
|
byteMap() {
|
|
3646
3640
|
return [
|
|
@@ -4174,7 +4168,7 @@ var require_sbcs = __commonJS({
|
|
|
4174
4168
|
return det && det.c1Bytes ? "windows-1250" : "ISO-8859-2";
|
|
4175
4169
|
}
|
|
4176
4170
|
};
|
|
4177
|
-
|
|
4171
|
+
exports2.ISO_8859_2 = ISO_8859_2;
|
|
4178
4172
|
var ISO_8859_5 = class extends sbcs {
|
|
4179
4173
|
byteMap() {
|
|
4180
4174
|
return [
|
|
@@ -4511,7 +4505,7 @@ var require_sbcs = __commonJS({
|
|
|
4511
4505
|
return "ru";
|
|
4512
4506
|
}
|
|
4513
4507
|
};
|
|
4514
|
-
|
|
4508
|
+
exports2.ISO_8859_5 = ISO_8859_5;
|
|
4515
4509
|
var ISO_8859_6 = class extends sbcs {
|
|
4516
4510
|
byteMap() {
|
|
4517
4511
|
return [
|
|
@@ -4848,7 +4842,7 @@ var require_sbcs = __commonJS({
|
|
|
4848
4842
|
return "ar";
|
|
4849
4843
|
}
|
|
4850
4844
|
};
|
|
4851
|
-
|
|
4845
|
+
exports2.ISO_8859_6 = ISO_8859_6;
|
|
4852
4846
|
var ISO_8859_7 = class extends sbcs {
|
|
4853
4847
|
byteMap() {
|
|
4854
4848
|
return [
|
|
@@ -5185,7 +5179,7 @@ var require_sbcs = __commonJS({
|
|
|
5185
5179
|
return "el";
|
|
5186
5180
|
}
|
|
5187
5181
|
};
|
|
5188
|
-
|
|
5182
|
+
exports2.ISO_8859_7 = ISO_8859_7;
|
|
5189
5183
|
var ISO_8859_8 = class extends sbcs {
|
|
5190
5184
|
byteMap() {
|
|
5191
5185
|
return [
|
|
@@ -5590,7 +5584,7 @@ var require_sbcs = __commonJS({
|
|
|
5590
5584
|
return "he";
|
|
5591
5585
|
}
|
|
5592
5586
|
};
|
|
5593
|
-
|
|
5587
|
+
exports2.ISO_8859_8 = ISO_8859_8;
|
|
5594
5588
|
var ISO_8859_9 = class extends sbcs {
|
|
5595
5589
|
byteMap() {
|
|
5596
5590
|
return [
|
|
@@ -5927,7 +5921,7 @@ var require_sbcs = __commonJS({
|
|
|
5927
5921
|
return "tr";
|
|
5928
5922
|
}
|
|
5929
5923
|
};
|
|
5930
|
-
|
|
5924
|
+
exports2.ISO_8859_9 = ISO_8859_9;
|
|
5931
5925
|
var windows_1251 = class extends sbcs {
|
|
5932
5926
|
byteMap() {
|
|
5933
5927
|
return [
|
|
@@ -6264,7 +6258,7 @@ var require_sbcs = __commonJS({
|
|
|
6264
6258
|
return "ru";
|
|
6265
6259
|
}
|
|
6266
6260
|
};
|
|
6267
|
-
|
|
6261
|
+
exports2.windows_1251 = windows_1251;
|
|
6268
6262
|
var windows_1256 = class extends sbcs {
|
|
6269
6263
|
byteMap() {
|
|
6270
6264
|
return [
|
|
@@ -6601,7 +6595,7 @@ var require_sbcs = __commonJS({
|
|
|
6601
6595
|
return "ar";
|
|
6602
6596
|
}
|
|
6603
6597
|
};
|
|
6604
|
-
|
|
6598
|
+
exports2.windows_1256 = windows_1256;
|
|
6605
6599
|
var KOI8_R = class extends sbcs {
|
|
6606
6600
|
byteMap() {
|
|
6607
6601
|
return [
|
|
@@ -6938,19 +6932,19 @@ var require_sbcs = __commonJS({
|
|
|
6938
6932
|
return "ru";
|
|
6939
6933
|
}
|
|
6940
6934
|
};
|
|
6941
|
-
|
|
6935
|
+
exports2.KOI8_R = KOI8_R;
|
|
6942
6936
|
}
|
|
6943
6937
|
});
|
|
6944
6938
|
|
|
6945
6939
|
// node_modules/chardet/lib/encoding/iso2022.js
|
|
6946
6940
|
var require_iso2022 = __commonJS({
|
|
6947
|
-
"node_modules/chardet/lib/encoding/iso2022.js"(
|
|
6941
|
+
"node_modules/chardet/lib/encoding/iso2022.js"(exports2) {
|
|
6948
6942
|
"use strict";
|
|
6949
|
-
var __importDefault2 =
|
|
6943
|
+
var __importDefault2 = exports2 && exports2.__importDefault || function(mod) {
|
|
6950
6944
|
return mod && mod.__esModule ? mod : { "default": mod };
|
|
6951
6945
|
};
|
|
6952
|
-
Object.defineProperty(
|
|
6953
|
-
|
|
6946
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
6947
|
+
exports2.ISO_2022_CN = exports2.ISO_2022_KR = exports2.ISO_2022_JP = void 0;
|
|
6954
6948
|
var match_1 = __importDefault2(require_match());
|
|
6955
6949
|
var ISO_2022 = class {
|
|
6956
6950
|
constructor() {
|
|
@@ -7021,7 +7015,7 @@ var require_iso2022 = __commonJS({
|
|
|
7021
7015
|
return "ja";
|
|
7022
7016
|
}
|
|
7023
7017
|
};
|
|
7024
|
-
|
|
7018
|
+
exports2.ISO_2022_JP = ISO_2022_JP;
|
|
7025
7019
|
var ISO_2022_KR = class extends ISO_2022 {
|
|
7026
7020
|
constructor() {
|
|
7027
7021
|
super(...arguments);
|
|
@@ -7034,7 +7028,7 @@ var require_iso2022 = __commonJS({
|
|
|
7034
7028
|
return "kr";
|
|
7035
7029
|
}
|
|
7036
7030
|
};
|
|
7037
|
-
|
|
7031
|
+
exports2.ISO_2022_KR = ISO_2022_KR;
|
|
7038
7032
|
var ISO_2022_CN = class extends ISO_2022 {
|
|
7039
7033
|
constructor() {
|
|
7040
7034
|
super(...arguments);
|
|
@@ -7059,30 +7053,30 @@ var require_iso2022 = __commonJS({
|
|
|
7059
7053
|
return "zh";
|
|
7060
7054
|
}
|
|
7061
7055
|
};
|
|
7062
|
-
|
|
7056
|
+
exports2.ISO_2022_CN = ISO_2022_CN;
|
|
7063
7057
|
}
|
|
7064
7058
|
});
|
|
7065
7059
|
|
|
7066
7060
|
// node_modules/chardet/lib/utils.js
|
|
7067
7061
|
var require_utils = __commonJS({
|
|
7068
|
-
"node_modules/chardet/lib/utils.js"(
|
|
7062
|
+
"node_modules/chardet/lib/utils.js"(exports2) {
|
|
7069
7063
|
"use strict";
|
|
7070
|
-
Object.defineProperty(
|
|
7071
|
-
|
|
7064
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
7065
|
+
exports2.isByteArray = void 0;
|
|
7072
7066
|
var isByteArray = (input) => {
|
|
7073
7067
|
if (input == null || typeof input != "object")
|
|
7074
7068
|
return false;
|
|
7075
7069
|
return isFinite(input.length) && input.length >= 0;
|
|
7076
7070
|
};
|
|
7077
|
-
|
|
7071
|
+
exports2.isByteArray = isByteArray;
|
|
7078
7072
|
}
|
|
7079
7073
|
});
|
|
7080
7074
|
|
|
7081
7075
|
// node_modules/chardet/lib/index.js
|
|
7082
7076
|
var require_lib2 = __commonJS({
|
|
7083
|
-
"node_modules/chardet/lib/index.js"(
|
|
7077
|
+
"node_modules/chardet/lib/index.js"(exports2) {
|
|
7084
7078
|
"use strict";
|
|
7085
|
-
var __createBinding2 =
|
|
7079
|
+
var __createBinding2 = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
7086
7080
|
if (k2 === void 0)
|
|
7087
7081
|
k2 = k;
|
|
7088
7082
|
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
@@ -7097,12 +7091,12 @@ var require_lib2 = __commonJS({
|
|
|
7097
7091
|
k2 = k;
|
|
7098
7092
|
o[k2] = m[k];
|
|
7099
7093
|
});
|
|
7100
|
-
var __setModuleDefault2 =
|
|
7094
|
+
var __setModuleDefault2 = exports2 && exports2.__setModuleDefault || (Object.create ? function(o, v) {
|
|
7101
7095
|
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
7102
7096
|
} : function(o, v) {
|
|
7103
7097
|
o["default"] = v;
|
|
7104
7098
|
});
|
|
7105
|
-
var __importStar2 =
|
|
7099
|
+
var __importStar2 = exports2 && exports2.__importStar || /* @__PURE__ */ function() {
|
|
7106
7100
|
var ownKeys5 = function(o) {
|
|
7107
7101
|
ownKeys5 = Object.getOwnPropertyNames || function(o2) {
|
|
7108
7102
|
var ar = [];
|
|
@@ -7126,11 +7120,11 @@ var require_lib2 = __commonJS({
|
|
|
7126
7120
|
return result;
|
|
7127
7121
|
};
|
|
7128
7122
|
}();
|
|
7129
|
-
var __importDefault2 =
|
|
7123
|
+
var __importDefault2 = exports2 && exports2.__importDefault || function(mod) {
|
|
7130
7124
|
return mod && mod.__esModule ? mod : { "default": mod };
|
|
7131
7125
|
};
|
|
7132
|
-
Object.defineProperty(
|
|
7133
|
-
|
|
7126
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
7127
|
+
exports2.detectFileSync = exports2.detectFile = exports2.analyse = exports2.detect = void 0;
|
|
7134
7128
|
var node_1 = __importDefault2(require_node());
|
|
7135
7129
|
var ascii_1 = __importDefault2(require_ascii());
|
|
7136
7130
|
var utf8_1 = __importDefault2(require_utf8());
|
|
@@ -7166,10 +7160,10 @@ var require_lib2 = __commonJS({
|
|
|
7166
7160
|
new ascii_1.default()
|
|
7167
7161
|
];
|
|
7168
7162
|
var detect2 = (buffer) => {
|
|
7169
|
-
const matches = (0,
|
|
7163
|
+
const matches = (0, exports2.analyse)(buffer);
|
|
7170
7164
|
return matches.length > 0 ? matches[0].name : null;
|
|
7171
7165
|
};
|
|
7172
|
-
|
|
7166
|
+
exports2.detect = detect2;
|
|
7173
7167
|
var analyse = (buffer) => {
|
|
7174
7168
|
if (!(0, utils_1.isByteArray)(buffer)) {
|
|
7175
7169
|
throw new Error("Input must be a byte array, e.g. Buffer or Uint8Array");
|
|
@@ -7203,7 +7197,7 @@ var require_lib2 = __commonJS({
|
|
|
7203
7197
|
});
|
|
7204
7198
|
return matches;
|
|
7205
7199
|
};
|
|
7206
|
-
|
|
7200
|
+
exports2.analyse = analyse;
|
|
7207
7201
|
var detectFile = (filepath, opts = {}) => new Promise((resolve2, reject) => {
|
|
7208
7202
|
let fd;
|
|
7209
7203
|
const fs = (0, node_1.default)();
|
|
@@ -7214,7 +7208,7 @@ var require_lib2 = __commonJS({
|
|
|
7214
7208
|
if (err) {
|
|
7215
7209
|
reject(err);
|
|
7216
7210
|
} else if (buffer) {
|
|
7217
|
-
resolve2((0,
|
|
7211
|
+
resolve2((0, exports2.detect)(buffer));
|
|
7218
7212
|
} else {
|
|
7219
7213
|
reject(new Error("No error and no buffer received"));
|
|
7220
7214
|
}
|
|
@@ -7237,7 +7231,7 @@ var require_lib2 = __commonJS({
|
|
|
7237
7231
|
}
|
|
7238
7232
|
fs.readFile(filepath, handler);
|
|
7239
7233
|
});
|
|
7240
|
-
|
|
7234
|
+
exports2.detectFile = detectFile;
|
|
7241
7235
|
var detectFileSync = (filepath, opts = {}) => {
|
|
7242
7236
|
const fs = (0, node_1.default)();
|
|
7243
7237
|
if (opts && opts.sampleSize) {
|
|
@@ -7248,25 +7242,25 @@ var require_lib2 = __commonJS({
|
|
|
7248
7242
|
sample = sample.subarray(0, bytesRead);
|
|
7249
7243
|
}
|
|
7250
7244
|
fs.closeSync(fd);
|
|
7251
|
-
return (0,
|
|
7245
|
+
return (0, exports2.detect)(sample);
|
|
7252
7246
|
}
|
|
7253
|
-
return (0,
|
|
7247
|
+
return (0, exports2.detect)(fs.readFileSync(filepath));
|
|
7254
7248
|
};
|
|
7255
|
-
|
|
7256
|
-
|
|
7257
|
-
analyse:
|
|
7258
|
-
detect:
|
|
7259
|
-
detectFileSync:
|
|
7260
|
-
detectFile:
|
|
7249
|
+
exports2.detectFileSync = detectFileSync;
|
|
7250
|
+
exports2.default = {
|
|
7251
|
+
analyse: exports2.analyse,
|
|
7252
|
+
detect: exports2.detect,
|
|
7253
|
+
detectFileSync: exports2.detectFileSync,
|
|
7254
|
+
detectFile: exports2.detectFile
|
|
7261
7255
|
};
|
|
7262
7256
|
}
|
|
7263
7257
|
});
|
|
7264
7258
|
|
|
7265
7259
|
// node_modules/safer-buffer/safer.js
|
|
7266
7260
|
var require_safer = __commonJS({
|
|
7267
|
-
"node_modules/safer-buffer/safer.js"(
|
|
7261
|
+
"node_modules/safer-buffer/safer.js"(exports2, module2) {
|
|
7268
7262
|
"use strict";
|
|
7269
|
-
var buffer =
|
|
7263
|
+
var buffer = require("buffer");
|
|
7270
7264
|
var Buffer2 = buffer.Buffer;
|
|
7271
7265
|
var safer = {};
|
|
7272
7266
|
var key;
|
|
@@ -7330,16 +7324,16 @@ var require_safer = __commonJS({
|
|
|
7330
7324
|
safer.constants.MAX_STRING_LENGTH = safer.kStringMaxLength;
|
|
7331
7325
|
}
|
|
7332
7326
|
}
|
|
7333
|
-
|
|
7327
|
+
module2.exports = safer;
|
|
7334
7328
|
}
|
|
7335
7329
|
});
|
|
7336
7330
|
|
|
7337
7331
|
// node_modules/iconv-lite/lib/bom-handling.js
|
|
7338
7332
|
var require_bom_handling = __commonJS({
|
|
7339
|
-
"node_modules/iconv-lite/lib/bom-handling.js"(
|
|
7333
|
+
"node_modules/iconv-lite/lib/bom-handling.js"(exports2) {
|
|
7340
7334
|
"use strict";
|
|
7341
7335
|
var BOMChar = "\uFEFF";
|
|
7342
|
-
|
|
7336
|
+
exports2.PrependBOM = PrependBOMWrapper;
|
|
7343
7337
|
function PrependBOMWrapper(encoder, options) {
|
|
7344
7338
|
this.encoder = encoder;
|
|
7345
7339
|
this.addBOM = true;
|
|
@@ -7354,7 +7348,7 @@ var require_bom_handling = __commonJS({
|
|
|
7354
7348
|
PrependBOMWrapper.prototype.end = function() {
|
|
7355
7349
|
return this.encoder.end();
|
|
7356
7350
|
};
|
|
7357
|
-
|
|
7351
|
+
exports2.StripBOM = StripBOMWrapper;
|
|
7358
7352
|
function StripBOMWrapper(decoder, options) {
|
|
7359
7353
|
this.decoder = decoder;
|
|
7360
7354
|
this.pass = false;
|
|
@@ -7382,26 +7376,26 @@ var require_bom_handling = __commonJS({
|
|
|
7382
7376
|
|
|
7383
7377
|
// node_modules/iconv-lite/lib/helpers/merge-exports.js
|
|
7384
7378
|
var require_merge_exports = __commonJS({
|
|
7385
|
-
"node_modules/iconv-lite/lib/helpers/merge-exports.js"(
|
|
7379
|
+
"node_modules/iconv-lite/lib/helpers/merge-exports.js"(exports2, module2) {
|
|
7386
7380
|
"use strict";
|
|
7387
7381
|
var hasOwn = typeof Object.hasOwn === "undefined" ? Function.call.bind(Object.prototype.hasOwnProperty) : Object.hasOwn;
|
|
7388
|
-
function mergeModules(target,
|
|
7389
|
-
for (var key in
|
|
7390
|
-
if (hasOwn(
|
|
7391
|
-
target[key] =
|
|
7382
|
+
function mergeModules(target, module3) {
|
|
7383
|
+
for (var key in module3) {
|
|
7384
|
+
if (hasOwn(module3, key)) {
|
|
7385
|
+
target[key] = module3[key];
|
|
7392
7386
|
}
|
|
7393
7387
|
}
|
|
7394
7388
|
}
|
|
7395
|
-
|
|
7389
|
+
module2.exports = mergeModules;
|
|
7396
7390
|
}
|
|
7397
7391
|
});
|
|
7398
7392
|
|
|
7399
7393
|
// node_modules/iconv-lite/encodings/internal.js
|
|
7400
7394
|
var require_internal = __commonJS({
|
|
7401
|
-
"node_modules/iconv-lite/encodings/internal.js"(
|
|
7395
|
+
"node_modules/iconv-lite/encodings/internal.js"(exports2, module2) {
|
|
7402
7396
|
"use strict";
|
|
7403
7397
|
var Buffer2 = require_safer().Buffer;
|
|
7404
|
-
|
|
7398
|
+
module2.exports = {
|
|
7405
7399
|
// Encodings
|
|
7406
7400
|
utf8: { type: "_internal", bomAware: true },
|
|
7407
7401
|
cesu8: { type: "_internal", bomAware: true },
|
|
@@ -7432,7 +7426,7 @@ var require_internal = __commonJS({
|
|
|
7432
7426
|
}
|
|
7433
7427
|
InternalCodec.prototype.encoder = InternalEncoder;
|
|
7434
7428
|
InternalCodec.prototype.decoder = InternalDecoder;
|
|
7435
|
-
var StringDecoder2 =
|
|
7429
|
+
var StringDecoder2 = require("string_decoder").StringDecoder;
|
|
7436
7430
|
function InternalDecoder(options, codec) {
|
|
7437
7431
|
this.decoder = new StringDecoder2(codec.enc);
|
|
7438
7432
|
}
|
|
@@ -7579,19 +7573,19 @@ var require_internal = __commonJS({
|
|
|
7579
7573
|
|
|
7580
7574
|
// node_modules/iconv-lite/encodings/utf32.js
|
|
7581
7575
|
var require_utf32 = __commonJS({
|
|
7582
|
-
"node_modules/iconv-lite/encodings/utf32.js"(
|
|
7576
|
+
"node_modules/iconv-lite/encodings/utf32.js"(exports2) {
|
|
7583
7577
|
"use strict";
|
|
7584
7578
|
var Buffer2 = require_safer().Buffer;
|
|
7585
|
-
|
|
7579
|
+
exports2._utf32 = Utf32Codec;
|
|
7586
7580
|
function Utf32Codec(codecOptions, iconv2) {
|
|
7587
7581
|
this.iconv = iconv2;
|
|
7588
7582
|
this.bomAware = true;
|
|
7589
7583
|
this.isLE = codecOptions.isLE;
|
|
7590
7584
|
}
|
|
7591
|
-
|
|
7592
|
-
|
|
7593
|
-
|
|
7594
|
-
|
|
7585
|
+
exports2.utf32le = { type: "_utf32", isLE: true };
|
|
7586
|
+
exports2.utf32be = { type: "_utf32", isLE: false };
|
|
7587
|
+
exports2.ucs4le = "utf32le";
|
|
7588
|
+
exports2.ucs4be = "utf32be";
|
|
7595
7589
|
Utf32Codec.prototype.encoder = Utf32Encoder;
|
|
7596
7590
|
Utf32Codec.prototype.decoder = Utf32Decoder;
|
|
7597
7591
|
function Utf32Encoder(options, codec) {
|
|
@@ -7706,8 +7700,8 @@ var require_utf32 = __commonJS({
|
|
|
7706
7700
|
Utf32Decoder.prototype.end = function() {
|
|
7707
7701
|
this.overflow.length = 0;
|
|
7708
7702
|
};
|
|
7709
|
-
|
|
7710
|
-
|
|
7703
|
+
exports2.utf32 = Utf32AutoCodec;
|
|
7704
|
+
exports2.ucs4 = "utf32";
|
|
7711
7705
|
function Utf32AutoCodec(options, iconv2) {
|
|
7712
7706
|
this.iconv = iconv2;
|
|
7713
7707
|
}
|
|
@@ -7816,10 +7810,10 @@ var require_utf32 = __commonJS({
|
|
|
7816
7810
|
|
|
7817
7811
|
// node_modules/iconv-lite/encodings/utf16.js
|
|
7818
7812
|
var require_utf16 = __commonJS({
|
|
7819
|
-
"node_modules/iconv-lite/encodings/utf16.js"(
|
|
7813
|
+
"node_modules/iconv-lite/encodings/utf16.js"(exports2) {
|
|
7820
7814
|
"use strict";
|
|
7821
7815
|
var Buffer2 = require_safer().Buffer;
|
|
7822
|
-
|
|
7816
|
+
exports2.utf16be = Utf16BECodec;
|
|
7823
7817
|
function Utf16BECodec() {
|
|
7824
7818
|
}
|
|
7825
7819
|
Utf16BECodec.prototype.encoder = Utf16BEEncoder;
|
|
@@ -7864,7 +7858,7 @@ var require_utf16 = __commonJS({
|
|
|
7864
7858
|
Utf16BEDecoder.prototype.end = function() {
|
|
7865
7859
|
this.overflowByte = -1;
|
|
7866
7860
|
};
|
|
7867
|
-
|
|
7861
|
+
exports2.utf16 = Utf16Codec;
|
|
7868
7862
|
function Utf16Codec(codecOptions, iconv2) {
|
|
7869
7863
|
this.iconv = iconv2;
|
|
7870
7864
|
}
|
|
@@ -7965,11 +7959,11 @@ var require_utf16 = __commonJS({
|
|
|
7965
7959
|
|
|
7966
7960
|
// node_modules/iconv-lite/encodings/utf7.js
|
|
7967
7961
|
var require_utf7 = __commonJS({
|
|
7968
|
-
"node_modules/iconv-lite/encodings/utf7.js"(
|
|
7962
|
+
"node_modules/iconv-lite/encodings/utf7.js"(exports2) {
|
|
7969
7963
|
"use strict";
|
|
7970
7964
|
var Buffer2 = require_safer().Buffer;
|
|
7971
|
-
|
|
7972
|
-
|
|
7965
|
+
exports2.utf7 = Utf7Codec;
|
|
7966
|
+
exports2.unicode11utf7 = "utf7";
|
|
7973
7967
|
function Utf7Codec(codecOptions, iconv2) {
|
|
7974
7968
|
this.iconv = iconv2;
|
|
7975
7969
|
}
|
|
@@ -8052,7 +8046,7 @@ var require_utf7 = __commonJS({
|
|
|
8052
8046
|
this.base64Accum = "";
|
|
8053
8047
|
return res;
|
|
8054
8048
|
};
|
|
8055
|
-
|
|
8049
|
+
exports2.utf7imap = Utf7IMAPCodec;
|
|
8056
8050
|
function Utf7IMAPCodec(codecOptions, iconv2) {
|
|
8057
8051
|
this.iconv = iconv2;
|
|
8058
8052
|
}
|
|
@@ -8183,10 +8177,10 @@ var require_utf7 = __commonJS({
|
|
|
8183
8177
|
|
|
8184
8178
|
// node_modules/iconv-lite/encodings/sbcs-codec.js
|
|
8185
8179
|
var require_sbcs_codec = __commonJS({
|
|
8186
|
-
"node_modules/iconv-lite/encodings/sbcs-codec.js"(
|
|
8180
|
+
"node_modules/iconv-lite/encodings/sbcs-codec.js"(exports2) {
|
|
8187
8181
|
"use strict";
|
|
8188
8182
|
var Buffer2 = require_safer().Buffer;
|
|
8189
|
-
|
|
8183
|
+
exports2._sbcs = SBCSCodec;
|
|
8190
8184
|
function SBCSCodec(codecOptions, iconv2) {
|
|
8191
8185
|
if (!codecOptions) {
|
|
8192
8186
|
throw new Error("SBCS codec is called without the data.");
|
|
@@ -8245,9 +8239,9 @@ var require_sbcs_codec = __commonJS({
|
|
|
8245
8239
|
|
|
8246
8240
|
// node_modules/iconv-lite/encodings/sbcs-data.js
|
|
8247
8241
|
var require_sbcs_data = __commonJS({
|
|
8248
|
-
"node_modules/iconv-lite/encodings/sbcs-data.js"(
|
|
8242
|
+
"node_modules/iconv-lite/encodings/sbcs-data.js"(exports2, module2) {
|
|
8249
8243
|
"use strict";
|
|
8250
|
-
|
|
8244
|
+
module2.exports = {
|
|
8251
8245
|
// Not supported by iconv, not sure why.
|
|
8252
8246
|
10029: "maccenteuro",
|
|
8253
8247
|
maccenteuro: {
|
|
@@ -8398,9 +8392,9 @@ var require_sbcs_data = __commonJS({
|
|
|
8398
8392
|
|
|
8399
8393
|
// node_modules/iconv-lite/encodings/sbcs-data-generated.js
|
|
8400
8394
|
var require_sbcs_data_generated = __commonJS({
|
|
8401
|
-
"node_modules/iconv-lite/encodings/sbcs-data-generated.js"(
|
|
8395
|
+
"node_modules/iconv-lite/encodings/sbcs-data-generated.js"(exports2, module2) {
|
|
8402
8396
|
"use strict";
|
|
8403
|
-
|
|
8397
|
+
module2.exports = {
|
|
8404
8398
|
"437": "cp437",
|
|
8405
8399
|
"737": "cp737",
|
|
8406
8400
|
"775": "cp775",
|
|
@@ -8853,10 +8847,10 @@ var require_sbcs_data_generated = __commonJS({
|
|
|
8853
8847
|
|
|
8854
8848
|
// node_modules/iconv-lite/encodings/dbcs-codec.js
|
|
8855
8849
|
var require_dbcs_codec = __commonJS({
|
|
8856
|
-
"node_modules/iconv-lite/encodings/dbcs-codec.js"(
|
|
8850
|
+
"node_modules/iconv-lite/encodings/dbcs-codec.js"(exports2) {
|
|
8857
8851
|
"use strict";
|
|
8858
8852
|
var Buffer2 = require_safer().Buffer;
|
|
8859
|
-
|
|
8853
|
+
exports2._dbcs = DBCSCodec;
|
|
8860
8854
|
var UNASSIGNED = -1;
|
|
8861
8855
|
var GB18030_CODE = -2;
|
|
8862
8856
|
var SEQ_START = -10;
|
|
@@ -9317,8 +9311,8 @@ var require_dbcs_codec = __commonJS({
|
|
|
9317
9311
|
|
|
9318
9312
|
// node_modules/iconv-lite/encodings/tables/shiftjis.json
|
|
9319
9313
|
var require_shiftjis = __commonJS({
|
|
9320
|
-
"node_modules/iconv-lite/encodings/tables/shiftjis.json"(
|
|
9321
|
-
|
|
9314
|
+
"node_modules/iconv-lite/encodings/tables/shiftjis.json"(exports2, module2) {
|
|
9315
|
+
module2.exports = [
|
|
9322
9316
|
["0", "\0", 128],
|
|
9323
9317
|
["a1", "\uFF61", 62],
|
|
9324
9318
|
["8140", "\u3000\u3001\u3002\uFF0C\uFF0E\u30FB\uFF1A\uFF1B\uFF1F\uFF01\u309B\u309C\xB4\uFF40\xA8\uFF3E\uFFE3\uFF3F\u30FD\u30FE\u309D\u309E\u3003\u4EDD\u3005\u3006\u3007\u30FC\u2015\u2010\uFF0F\uFF3C\uFF5E\u2225\uFF5C\u2026\u2025\u2018\u2019\u201C\u201D\uFF08\uFF09\u3014\u3015\uFF3B\uFF3D\uFF5B\uFF5D\u3008", 9, "\uFF0B\uFF0D\xB1\xD7"],
|
|
@@ -9448,8 +9442,8 @@ var require_shiftjis = __commonJS({
|
|
|
9448
9442
|
|
|
9449
9443
|
// node_modules/iconv-lite/encodings/tables/eucjp.json
|
|
9450
9444
|
var require_eucjp = __commonJS({
|
|
9451
|
-
"node_modules/iconv-lite/encodings/tables/eucjp.json"(
|
|
9452
|
-
|
|
9445
|
+
"node_modules/iconv-lite/encodings/tables/eucjp.json"(exports2, module2) {
|
|
9446
|
+
module2.exports = [
|
|
9453
9447
|
["0", "\0", 127],
|
|
9454
9448
|
["8ea1", "\uFF61", 62],
|
|
9455
9449
|
["a1a1", "\u3000\u3001\u3002\uFF0C\uFF0E\u30FB\uFF1A\uFF1B\uFF1F\uFF01\u309B\u309C\xB4\uFF40\xA8\uFF3E\uFFE3\uFF3F\u30FD\u30FE\u309D\u309E\u3003\u4EDD\u3005\u3006\u3007\u30FC\u2015\u2010\uFF0F\uFF3C\uFF5E\u2225\uFF5C\u2026\u2025\u2018\u2019\u201C\u201D\uFF08\uFF09\u3014\u3015\uFF3B\uFF3D\uFF5B\uFF5D\u3008", 9, "\uFF0B\uFF0D\xB1\xD7\xF7\uFF1D\u2260\uFF1C\uFF1E\u2266\u2267\u221E\u2234\u2642\u2640\xB0\u2032\u2033\u2103\uFFE5\uFF04\uFFE0\uFFE1\uFF05\uFF03\uFF06\uFF0A\uFF20\xA7\u2606\u2605\u25CB\u25CF\u25CE\u25C7"],
|
|
@@ -9636,8 +9630,8 @@ var require_eucjp = __commonJS({
|
|
|
9636
9630
|
|
|
9637
9631
|
// node_modules/iconv-lite/encodings/tables/cp936.json
|
|
9638
9632
|
var require_cp936 = __commonJS({
|
|
9639
|
-
"node_modules/iconv-lite/encodings/tables/cp936.json"(
|
|
9640
|
-
|
|
9633
|
+
"node_modules/iconv-lite/encodings/tables/cp936.json"(exports2, module2) {
|
|
9634
|
+
module2.exports = [
|
|
9641
9635
|
["0", "\0", 127, "\u20AC"],
|
|
9642
9636
|
["8140", "\u4E02\u4E04\u4E05\u4E06\u4E0F\u4E12\u4E17\u4E1F\u4E20\u4E21\u4E23\u4E26\u4E29\u4E2E\u4E2F\u4E31\u4E33\u4E35\u4E37\u4E3C\u4E40\u4E41\u4E42\u4E44\u4E46\u4E4A\u4E51\u4E55\u4E57\u4E5A\u4E5B\u4E62\u4E63\u4E64\u4E65\u4E67\u4E68\u4E6A", 5, "\u4E72\u4E74", 9, "\u4E7F", 6, "\u4E87\u4E8A"],
|
|
9643
9637
|
["8180", "\u4E90\u4E96\u4E97\u4E99\u4E9C\u4E9D\u4E9E\u4EA3\u4EAA\u4EAF\u4EB0\u4EB1\u4EB4\u4EB6\u4EB7\u4EB8\u4EB9\u4EBC\u4EBD\u4EBE\u4EC8\u4ECC\u4ECF\u4ED0\u4ED2\u4EDA\u4EDB\u4EDC\u4EE0\u4EE2\u4EE6\u4EE7\u4EE9\u4EED\u4EEE\u4EEF\u4EF1\u4EF4\u4EF8\u4EF9\u4EFA\u4EFC\u4EFE\u4F00\u4F02", 6, "\u4F0B\u4F0C\u4F12", 4, "\u4F1C\u4F1D\u4F21\u4F23\u4F28\u4F29\u4F2C\u4F2D\u4F2E\u4F31\u4F33\u4F35\u4F37\u4F39\u4F3B\u4F3E", 4, "\u4F44\u4F45\u4F47", 5, "\u4F52\u4F54\u4F56\u4F61\u4F62\u4F66\u4F68\u4F6A\u4F6B\u4F6D\u4F6E\u4F71\u4F72\u4F75\u4F77\u4F78\u4F79\u4F7A\u4F7D\u4F80\u4F81\u4F82\u4F85\u4F86\u4F87\u4F8A\u4F8C\u4F8E\u4F90\u4F92\u4F93\u4F95\u4F96\u4F98\u4F99\u4F9A\u4F9C\u4F9E\u4F9F\u4FA1\u4FA2"],
|
|
@@ -9906,8 +9900,8 @@ var require_cp936 = __commonJS({
|
|
|
9906
9900
|
|
|
9907
9901
|
// node_modules/iconv-lite/encodings/tables/gbk-added.json
|
|
9908
9902
|
var require_gbk_added = __commonJS({
|
|
9909
|
-
"node_modules/iconv-lite/encodings/tables/gbk-added.json"(
|
|
9910
|
-
|
|
9903
|
+
"node_modules/iconv-lite/encodings/tables/gbk-added.json"(exports2, module2) {
|
|
9904
|
+
module2.exports = [
|
|
9911
9905
|
["a140", "\uE4C6", 62],
|
|
9912
9906
|
["a180", "\uE505", 32],
|
|
9913
9907
|
["a240", "\uE526", 62],
|
|
@@ -9968,15 +9962,15 @@ var require_gbk_added = __commonJS({
|
|
|
9968
9962
|
|
|
9969
9963
|
// node_modules/iconv-lite/encodings/tables/gb18030-ranges.json
|
|
9970
9964
|
var require_gb18030_ranges = __commonJS({
|
|
9971
|
-
"node_modules/iconv-lite/encodings/tables/gb18030-ranges.json"(
|
|
9972
|
-
|
|
9965
|
+
"node_modules/iconv-lite/encodings/tables/gb18030-ranges.json"(exports2, module2) {
|
|
9966
|
+
module2.exports = { uChars: [128, 165, 169, 178, 184, 216, 226, 235, 238, 244, 248, 251, 253, 258, 276, 284, 300, 325, 329, 334, 364, 463, 465, 467, 469, 471, 473, 475, 477, 506, 594, 610, 712, 716, 730, 930, 938, 962, 970, 1026, 1104, 1106, 8209, 8215, 8218, 8222, 8231, 8241, 8244, 8246, 8252, 8365, 8452, 8454, 8458, 8471, 8482, 8556, 8570, 8596, 8602, 8713, 8720, 8722, 8726, 8731, 8737, 8740, 8742, 8748, 8751, 8760, 8766, 8777, 8781, 8787, 8802, 8808, 8816, 8854, 8858, 8870, 8896, 8979, 9322, 9372, 9548, 9588, 9616, 9622, 9634, 9652, 9662, 9672, 9676, 9680, 9702, 9735, 9738, 9793, 9795, 11906, 11909, 11913, 11917, 11928, 11944, 11947, 11951, 11956, 11960, 11964, 11979, 12284, 12292, 12312, 12319, 12330, 12351, 12436, 12447, 12535, 12543, 12586, 12842, 12850, 12964, 13200, 13215, 13218, 13253, 13263, 13267, 13270, 13384, 13428, 13727, 13839, 13851, 14617, 14703, 14801, 14816, 14964, 15183, 15471, 15585, 16471, 16736, 17208, 17325, 17330, 17374, 17623, 17997, 18018, 18212, 18218, 18301, 18318, 18760, 18811, 18814, 18820, 18823, 18844, 18848, 18872, 19576, 19620, 19738, 19887, 40870, 59244, 59336, 59367, 59413, 59417, 59423, 59431, 59437, 59443, 59452, 59460, 59478, 59493, 63789, 63866, 63894, 63976, 63986, 64016, 64018, 64021, 64025, 64034, 64037, 64042, 65074, 65093, 65107, 65112, 65127, 65132, 65375, 65510, 65536], gbChars: [0, 36, 38, 45, 50, 81, 89, 95, 96, 100, 103, 104, 105, 109, 126, 133, 148, 172, 175, 179, 208, 306, 307, 308, 309, 310, 311, 312, 313, 341, 428, 443, 544, 545, 558, 741, 742, 749, 750, 805, 819, 820, 7922, 7924, 7925, 7927, 7934, 7943, 7944, 7945, 7950, 8062, 8148, 8149, 8152, 8164, 8174, 8236, 8240, 8262, 8264, 8374, 8380, 8381, 8384, 8388, 8390, 8392, 8393, 8394, 8396, 8401, 8406, 8416, 8419, 8424, 8437, 8439, 8445, 8482, 8485, 8496, 8521, 8603, 8936, 8946, 9046, 9050, 9063, 9066, 9076, 9092, 9100, 9108, 9111, 9113, 9131, 9162, 9164, 9218, 9219, 11329, 11331, 11334, 11336, 11346, 11361, 11363, 11366, 11370, 11372, 11375, 11389, 11682, 11686, 11687, 11692, 11694, 11714, 11716, 11723, 11725, 11730, 11736, 11982, 11989, 12102, 12336, 12348, 12350, 12384, 12393, 12395, 12397, 12510, 12553, 12851, 12962, 12973, 13738, 13823, 13919, 13933, 14080, 14298, 14585, 14698, 15583, 15847, 16318, 16434, 16438, 16481, 16729, 17102, 17122, 17315, 17320, 17402, 17418, 17859, 17909, 17911, 17915, 17916, 17936, 17939, 17961, 18664, 18703, 18814, 18962, 19043, 33469, 33470, 33471, 33484, 33485, 33490, 33497, 33501, 33505, 33513, 33520, 33536, 33550, 37845, 37921, 37948, 38029, 38038, 38064, 38065, 38066, 38069, 38075, 38076, 38078, 39108, 39109, 39113, 39114, 39115, 39116, 39265, 39394, 189e3] };
|
|
9973
9967
|
}
|
|
9974
9968
|
});
|
|
9975
9969
|
|
|
9976
9970
|
// node_modules/iconv-lite/encodings/tables/cp949.json
|
|
9977
9971
|
var require_cp949 = __commonJS({
|
|
9978
|
-
"node_modules/iconv-lite/encodings/tables/cp949.json"(
|
|
9979
|
-
|
|
9972
|
+
"node_modules/iconv-lite/encodings/tables/cp949.json"(exports2, module2) {
|
|
9973
|
+
module2.exports = [
|
|
9980
9974
|
["0", "\0", 127],
|
|
9981
9975
|
["8141", "\uAC02\uAC03\uAC05\uAC06\uAC0B", 4, "\uAC18\uAC1E\uAC1F\uAC21\uAC22\uAC23\uAC25", 6, "\uAC2E\uAC32\uAC33\uAC34"],
|
|
9982
9976
|
["8161", "\uAC35\uAC36\uAC37\uAC3A\uAC3B\uAC3D\uAC3E\uAC3F\uAC41", 9, "\uAC4C\uAC4E", 5, "\uAC55"],
|
|
@@ -10254,8 +10248,8 @@ var require_cp949 = __commonJS({
|
|
|
10254
10248
|
|
|
10255
10249
|
// node_modules/iconv-lite/encodings/tables/cp950.json
|
|
10256
10250
|
var require_cp950 = __commonJS({
|
|
10257
|
-
"node_modules/iconv-lite/encodings/tables/cp950.json"(
|
|
10258
|
-
|
|
10251
|
+
"node_modules/iconv-lite/encodings/tables/cp950.json"(exports2, module2) {
|
|
10252
|
+
module2.exports = [
|
|
10259
10253
|
["0", "\0", 127],
|
|
10260
10254
|
["a140", "\u3000\uFF0C\u3001\u3002\uFF0E\u2027\uFF1B\uFF1A\uFF1F\uFF01\uFE30\u2026\u2025\uFE50\uFE51\uFE52\xB7\uFE54\uFE55\uFE56\uFE57\uFF5C\u2013\uFE31\u2014\uFE33\u2574\uFE34\uFE4F\uFF08\uFF09\uFE35\uFE36\uFF5B\uFF5D\uFE37\uFE38\u3014\u3015\uFE39\uFE3A\u3010\u3011\uFE3B\uFE3C\u300A\u300B\uFE3D\uFE3E\u3008\u3009\uFE3F\uFE40\u300C\u300D\uFE41\uFE42\u300E\u300F\uFE43\uFE44\uFE59\uFE5A"],
|
|
10261
10255
|
["a1a1", "\uFE5B\uFE5C\uFE5D\uFE5E\u2018\u2019\u201C\u201D\u301D\u301E\u2035\u2032\uFF03\uFF06\uFF0A\u203B\xA7\u3003\u25CB\u25CF\u25B3\u25B2\u25CE\u2606\u2605\u25C7\u25C6\u25A1\u25A0\u25BD\u25BC\u32A3\u2105\xAF\uFFE3\uFF3F\u02CD\uFE49\uFE4A\uFE4D\uFE4E\uFE4B\uFE4C\uFE5F\uFE60\uFE61\uFF0B\uFF0D\xD7\xF7\xB1\u221A\uFF1C\uFF1E\uFF1D\u2266\u2267\u2260\u221E\u2252\u2261\uFE62", 4, "\uFF5E\u2229\u222A\u22A5\u2220\u221F\u22BF\u33D2\u33D1\u222B\u222E\u2235\u2234\u2640\u2642\u2295\u2299\u2191\u2193\u2190\u2192\u2196\u2197\u2199\u2198\u2225\u2223\uFF0F"],
|
|
@@ -10437,8 +10431,8 @@ var require_cp950 = __commonJS({
|
|
|
10437
10431
|
|
|
10438
10432
|
// node_modules/iconv-lite/encodings/tables/big5-added.json
|
|
10439
10433
|
var require_big5_added = __commonJS({
|
|
10440
|
-
"node_modules/iconv-lite/encodings/tables/big5-added.json"(
|
|
10441
|
-
|
|
10434
|
+
"node_modules/iconv-lite/encodings/tables/big5-added.json"(exports2, module2) {
|
|
10435
|
+
module2.exports = [
|
|
10442
10436
|
["8740", "\u43F0\u4C32\u4603\u45A6\u4578\u{27267}\u4D77\u45B3\u{27CB1}\u4CE2\u{27CC5}\u3B95\u4736\u4744\u4C47\u4C40\u{242BF}\u{23617}\u{27352}\u{26E8B}\u{270D2}\u4C57\u{2A351}\u474F\u45DA\u4C85\u{27C6C}\u4D07\u4AA4\u46A1\u{26B23}\u7225\u{25A54}\u{21A63}\u{23E06}\u{23F61}\u664D\u56FB"],
|
|
10443
10437
|
["8767", "\u7D95\u591D\u{28BB9}\u3DF4\u9734\u{27BEF}\u5BDB\u{21D5E}\u5AA4\u3625\u{29EB0}\u5AD1\u5BB7\u5CFC\u676E\u8593\u{29945}\u7461\u749D\u3875\u{21D53}\u{2369E}\u{26021}\u3EEC"],
|
|
10444
10438
|
["87a1", "\u{258DE}\u3AF5\u7AFC\u9F97\u{24161}\u{2890D}\u{231EA}\u{20A8A}\u{2325E}\u430A\u8484\u9F96\u942F\u4930\u8613\u5896\u974A\u9218\u79D0\u7A32\u6660\u6A29\u889D\u744C\u7BC5\u6782\u7A2C\u524F\u9046\u34E6\u73C4\u{25DB9}\u74C6\u9FC7\u57B3\u492F\u544C\u4131\u{2368E}\u5818\u7A72\u{27B65}\u8B8F\u46AE\u{26E88}\u4181\u{25D99}\u7BAE\u{224BC}\u9FC8\u{224C1}\u{224C9}\u{224CC}\u9FC9\u8504\u{235BB}\u40B4\u9FCA\u44E1\u{2ADFF}\u62C1\u706E\u9FCB"],
|
|
@@ -10565,9 +10559,9 @@ var require_big5_added = __commonJS({
|
|
|
10565
10559
|
|
|
10566
10560
|
// node_modules/iconv-lite/encodings/dbcs-data.js
|
|
10567
10561
|
var require_dbcs_data = __commonJS({
|
|
10568
|
-
"node_modules/iconv-lite/encodings/dbcs-data.js"(
|
|
10562
|
+
"node_modules/iconv-lite/encodings/dbcs-data.js"(exports2, module2) {
|
|
10569
10563
|
"use strict";
|
|
10570
|
-
|
|
10564
|
+
module2.exports = {
|
|
10571
10565
|
// == Japanese/ShiftJIS ====================================================
|
|
10572
10566
|
// All japanese encodings are based on JIS X set of standards:
|
|
10573
10567
|
// JIS X 0201 - Single-byte encoding of ASCII + ¥ + Kana chars at 0xA1-0xDF.
|
|
@@ -10812,7 +10806,7 @@ var require_dbcs_data = __commonJS({
|
|
|
10812
10806
|
|
|
10813
10807
|
// node_modules/iconv-lite/encodings/index.js
|
|
10814
10808
|
var require_encodings = __commonJS({
|
|
10815
|
-
"node_modules/iconv-lite/encodings/index.js"(
|
|
10809
|
+
"node_modules/iconv-lite/encodings/index.js"(exports2, module2) {
|
|
10816
10810
|
"use strict";
|
|
10817
10811
|
var mergeModules = require_merge_exports();
|
|
10818
10812
|
var modules = [
|
|
@@ -10827,20 +10821,20 @@ var require_encodings = __commonJS({
|
|
|
10827
10821
|
require_dbcs_data()
|
|
10828
10822
|
];
|
|
10829
10823
|
for (i = 0; i < modules.length; i++) {
|
|
10830
|
-
|
|
10831
|
-
mergeModules(
|
|
10824
|
+
module2 = modules[i];
|
|
10825
|
+
mergeModules(exports2, module2);
|
|
10832
10826
|
}
|
|
10833
|
-
var
|
|
10827
|
+
var module2;
|
|
10834
10828
|
var i;
|
|
10835
10829
|
}
|
|
10836
10830
|
});
|
|
10837
10831
|
|
|
10838
10832
|
// node_modules/iconv-lite/lib/streams.js
|
|
10839
10833
|
var require_streams = __commonJS({
|
|
10840
|
-
"node_modules/iconv-lite/lib/streams.js"(
|
|
10834
|
+
"node_modules/iconv-lite/lib/streams.js"(exports2, module2) {
|
|
10841
10835
|
"use strict";
|
|
10842
10836
|
var Buffer2 = require_safer().Buffer;
|
|
10843
|
-
|
|
10837
|
+
module2.exports = function(streamModule) {
|
|
10844
10838
|
var Transform = streamModule.Transform;
|
|
10845
10839
|
function IconvLiteEncoderStream(conv, options) {
|
|
10846
10840
|
this.conv = conv;
|
|
@@ -10938,59 +10932,59 @@ var require_streams = __commonJS({
|
|
|
10938
10932
|
|
|
10939
10933
|
// node_modules/iconv-lite/lib/index.js
|
|
10940
10934
|
var require_lib3 = __commonJS({
|
|
10941
|
-
"node_modules/iconv-lite/lib/index.js"(
|
|
10935
|
+
"node_modules/iconv-lite/lib/index.js"(exports2, module2) {
|
|
10942
10936
|
"use strict";
|
|
10943
10937
|
var Buffer2 = require_safer().Buffer;
|
|
10944
10938
|
var bomHandling = require_bom_handling();
|
|
10945
10939
|
var mergeModules = require_merge_exports();
|
|
10946
|
-
|
|
10947
|
-
|
|
10948
|
-
|
|
10949
|
-
|
|
10940
|
+
module2.exports.encodings = null;
|
|
10941
|
+
module2.exports.defaultCharUnicode = "\uFFFD";
|
|
10942
|
+
module2.exports.defaultCharSingleByte = "?";
|
|
10943
|
+
module2.exports.encode = function encode(str, encoding, options) {
|
|
10950
10944
|
str = "" + (str || "");
|
|
10951
|
-
var encoder =
|
|
10945
|
+
var encoder = module2.exports.getEncoder(encoding, options);
|
|
10952
10946
|
var res = encoder.write(str);
|
|
10953
10947
|
var trail = encoder.end();
|
|
10954
10948
|
return trail && trail.length > 0 ? Buffer2.concat([res, trail]) : res;
|
|
10955
10949
|
};
|
|
10956
|
-
|
|
10950
|
+
module2.exports.decode = function decode(buf, encoding, options) {
|
|
10957
10951
|
if (typeof buf === "string") {
|
|
10958
|
-
if (!
|
|
10952
|
+
if (!module2.exports.skipDecodeWarning) {
|
|
10959
10953
|
console.error("Iconv-lite warning: decode()-ing strings is deprecated. Refer to https://github.com/ashtuchkin/iconv-lite/wiki/Use-Buffers-when-decoding");
|
|
10960
|
-
|
|
10954
|
+
module2.exports.skipDecodeWarning = true;
|
|
10961
10955
|
}
|
|
10962
10956
|
buf = Buffer2.from("" + (buf || ""), "binary");
|
|
10963
10957
|
}
|
|
10964
|
-
var decoder =
|
|
10958
|
+
var decoder = module2.exports.getDecoder(encoding, options);
|
|
10965
10959
|
var res = decoder.write(buf);
|
|
10966
10960
|
var trail = decoder.end();
|
|
10967
10961
|
return trail ? res + trail : res;
|
|
10968
10962
|
};
|
|
10969
|
-
|
|
10963
|
+
module2.exports.encodingExists = function encodingExists(enc) {
|
|
10970
10964
|
try {
|
|
10971
|
-
|
|
10965
|
+
module2.exports.getCodec(enc);
|
|
10972
10966
|
return true;
|
|
10973
10967
|
} catch (e) {
|
|
10974
10968
|
return false;
|
|
10975
10969
|
}
|
|
10976
10970
|
};
|
|
10977
|
-
|
|
10978
|
-
|
|
10979
|
-
|
|
10980
|
-
|
|
10981
|
-
if (!
|
|
10971
|
+
module2.exports.toEncoding = module2.exports.encode;
|
|
10972
|
+
module2.exports.fromEncoding = module2.exports.decode;
|
|
10973
|
+
module2.exports._codecDataCache = { __proto__: null };
|
|
10974
|
+
module2.exports.getCodec = function getCodec(encoding) {
|
|
10975
|
+
if (!module2.exports.encodings) {
|
|
10982
10976
|
var raw = require_encodings();
|
|
10983
|
-
|
|
10984
|
-
mergeModules(
|
|
10977
|
+
module2.exports.encodings = { __proto__: null };
|
|
10978
|
+
mergeModules(module2.exports.encodings, raw);
|
|
10985
10979
|
}
|
|
10986
|
-
var enc =
|
|
10980
|
+
var enc = module2.exports._canonicalizeEncoding(encoding);
|
|
10987
10981
|
var codecOptions = {};
|
|
10988
10982
|
while (true) {
|
|
10989
|
-
var codec =
|
|
10983
|
+
var codec = module2.exports._codecDataCache[enc];
|
|
10990
10984
|
if (codec) {
|
|
10991
10985
|
return codec;
|
|
10992
10986
|
}
|
|
10993
|
-
var codecDef =
|
|
10987
|
+
var codecDef = module2.exports.encodings[enc];
|
|
10994
10988
|
switch (typeof codecDef) {
|
|
10995
10989
|
case "string":
|
|
10996
10990
|
enc = codecDef;
|
|
@@ -11008,57 +11002,57 @@ var require_lib3 = __commonJS({
|
|
|
11008
11002
|
if (!codecOptions.encodingName) {
|
|
11009
11003
|
codecOptions.encodingName = enc;
|
|
11010
11004
|
}
|
|
11011
|
-
codec = new codecDef(codecOptions,
|
|
11012
|
-
|
|
11005
|
+
codec = new codecDef(codecOptions, module2.exports);
|
|
11006
|
+
module2.exports._codecDataCache[codecOptions.encodingName] = codec;
|
|
11013
11007
|
return codec;
|
|
11014
11008
|
default:
|
|
11015
11009
|
throw new Error("Encoding not recognized: '" + encoding + "' (searched as: '" + enc + "')");
|
|
11016
11010
|
}
|
|
11017
11011
|
}
|
|
11018
11012
|
};
|
|
11019
|
-
|
|
11013
|
+
module2.exports._canonicalizeEncoding = function(encoding) {
|
|
11020
11014
|
return ("" + encoding).toLowerCase().replace(/:\d{4}$|[^0-9a-z]/g, "");
|
|
11021
11015
|
};
|
|
11022
|
-
|
|
11023
|
-
var codec =
|
|
11016
|
+
module2.exports.getEncoder = function getEncoder(encoding, options) {
|
|
11017
|
+
var codec = module2.exports.getCodec(encoding);
|
|
11024
11018
|
var encoder = new codec.encoder(options, codec);
|
|
11025
11019
|
if (codec.bomAware && options && options.addBOM) {
|
|
11026
11020
|
encoder = new bomHandling.PrependBOM(encoder, options);
|
|
11027
11021
|
}
|
|
11028
11022
|
return encoder;
|
|
11029
11023
|
};
|
|
11030
|
-
|
|
11031
|
-
var codec =
|
|
11024
|
+
module2.exports.getDecoder = function getDecoder(encoding, options) {
|
|
11025
|
+
var codec = module2.exports.getCodec(encoding);
|
|
11032
11026
|
var decoder = new codec.decoder(options, codec);
|
|
11033
11027
|
if (codec.bomAware && !(options && options.stripBOM === false)) {
|
|
11034
11028
|
decoder = new bomHandling.StripBOM(decoder, options);
|
|
11035
11029
|
}
|
|
11036
11030
|
return decoder;
|
|
11037
11031
|
};
|
|
11038
|
-
|
|
11039
|
-
if (
|
|
11032
|
+
module2.exports.enableStreamingAPI = function enableStreamingAPI(streamModule2) {
|
|
11033
|
+
if (module2.exports.supportsStreams) {
|
|
11040
11034
|
return;
|
|
11041
11035
|
}
|
|
11042
11036
|
var streams = require_streams()(streamModule2);
|
|
11043
|
-
|
|
11044
|
-
|
|
11045
|
-
|
|
11046
|
-
return new
|
|
11037
|
+
module2.exports.IconvLiteEncoderStream = streams.IconvLiteEncoderStream;
|
|
11038
|
+
module2.exports.IconvLiteDecoderStream = streams.IconvLiteDecoderStream;
|
|
11039
|
+
module2.exports.encodeStream = function encodeStream(encoding, options) {
|
|
11040
|
+
return new module2.exports.IconvLiteEncoderStream(module2.exports.getEncoder(encoding, options), options);
|
|
11047
11041
|
};
|
|
11048
|
-
|
|
11049
|
-
return new
|
|
11042
|
+
module2.exports.decodeStream = function decodeStream(encoding, options) {
|
|
11043
|
+
return new module2.exports.IconvLiteDecoderStream(module2.exports.getDecoder(encoding, options), options);
|
|
11050
11044
|
};
|
|
11051
|
-
|
|
11045
|
+
module2.exports.supportsStreams = true;
|
|
11052
11046
|
};
|
|
11053
11047
|
var streamModule;
|
|
11054
11048
|
try {
|
|
11055
|
-
streamModule =
|
|
11049
|
+
streamModule = require("stream");
|
|
11056
11050
|
} catch (e) {
|
|
11057
11051
|
}
|
|
11058
11052
|
if (streamModule && streamModule.Transform) {
|
|
11059
|
-
|
|
11053
|
+
module2.exports.enableStreamingAPI(streamModule);
|
|
11060
11054
|
} else {
|
|
11061
|
-
|
|
11055
|
+
module2.exports.encodeStream = module2.exports.decodeStream = function() {
|
|
11062
11056
|
throw new Error("iconv-lite Streaming API is not enabled. Use iconv.enableStreamingAPI(require('stream')); to enable it.");
|
|
11063
11057
|
};
|
|
11064
11058
|
}
|
|
@@ -11070,8 +11064,8 @@ var require_lib3 = __commonJS({
|
|
|
11070
11064
|
|
|
11071
11065
|
// node_modules/cli-spinners/spinners.json
|
|
11072
11066
|
var require_spinners = __commonJS({
|
|
11073
|
-
"node_modules/cli-spinners/spinners.json"(
|
|
11074
|
-
|
|
11067
|
+
"node_modules/cli-spinners/spinners.json"(exports2, module2) {
|
|
11068
|
+
module2.exports = {
|
|
11075
11069
|
dots: {
|
|
11076
11070
|
interval: 80,
|
|
11077
11071
|
frames: [
|
|
@@ -12698,7 +12692,7 @@ var require_spinners = __commonJS({
|
|
|
12698
12692
|
|
|
12699
12693
|
// node_modules/cli-spinners/index.js
|
|
12700
12694
|
var require_cli_spinners = __commonJS({
|
|
12701
|
-
"node_modules/cli-spinners/index.js"(
|
|
12695
|
+
"node_modules/cli-spinners/index.js"(exports2, module2) {
|
|
12702
12696
|
"use strict";
|
|
12703
12697
|
var spinners = Object.assign({}, require_spinners());
|
|
12704
12698
|
var spinnersList = Object.keys(spinners);
|
|
@@ -12709,14 +12703,14 @@ var require_cli_spinners = __commonJS({
|
|
|
12709
12703
|
return spinners[spinnerName];
|
|
12710
12704
|
}
|
|
12711
12705
|
});
|
|
12712
|
-
|
|
12706
|
+
module2.exports = spinners;
|
|
12713
12707
|
}
|
|
12714
12708
|
});
|
|
12715
12709
|
|
|
12716
12710
|
// node_modules/emoji-regex/index.js
|
|
12717
12711
|
var require_emoji_regex2 = __commonJS({
|
|
12718
|
-
"node_modules/emoji-regex/index.js"(
|
|
12719
|
-
|
|
12712
|
+
"node_modules/emoji-regex/index.js"(exports2, module2) {
|
|
12713
|
+
module2.exports = () => {
|
|
12720
12714
|
return /[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E-\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED8\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])))?))?|\uDD75(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3C-\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE8A\uDE8E-\uDEC2\uDEC6\uDEC8\uDECD-\uDEDC\uDEDF-\uDEEA\uDEEF]|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g;
|
|
12721
12715
|
};
|
|
12722
12716
|
}
|
|
@@ -13319,26 +13313,26 @@ var init_tslib_es6 = __esm({
|
|
|
13319
13313
|
|
|
13320
13314
|
// node_modules/@supabase/functions-js/dist/main/helper.js
|
|
13321
13315
|
var require_helper = __commonJS({
|
|
13322
|
-
"node_modules/@supabase/functions-js/dist/main/helper.js"(
|
|
13316
|
+
"node_modules/@supabase/functions-js/dist/main/helper.js"(exports2) {
|
|
13323
13317
|
"use strict";
|
|
13324
|
-
Object.defineProperty(
|
|
13325
|
-
|
|
13318
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
13319
|
+
exports2.resolveFetch = void 0;
|
|
13326
13320
|
var resolveFetch3 = (customFetch) => {
|
|
13327
13321
|
if (customFetch) {
|
|
13328
13322
|
return (...args) => customFetch(...args);
|
|
13329
13323
|
}
|
|
13330
13324
|
return (...args) => fetch(...args);
|
|
13331
13325
|
};
|
|
13332
|
-
|
|
13326
|
+
exports2.resolveFetch = resolveFetch3;
|
|
13333
13327
|
}
|
|
13334
13328
|
});
|
|
13335
13329
|
|
|
13336
13330
|
// node_modules/@supabase/functions-js/dist/main/types.js
|
|
13337
13331
|
var require_types = __commonJS({
|
|
13338
|
-
"node_modules/@supabase/functions-js/dist/main/types.js"(
|
|
13332
|
+
"node_modules/@supabase/functions-js/dist/main/types.js"(exports2) {
|
|
13339
13333
|
"use strict";
|
|
13340
|
-
Object.defineProperty(
|
|
13341
|
-
|
|
13334
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
13335
|
+
exports2.FunctionRegion = exports2.FunctionsHttpError = exports2.FunctionsRelayError = exports2.FunctionsFetchError = exports2.FunctionsError = void 0;
|
|
13342
13336
|
var FunctionsError2 = class extends Error {
|
|
13343
13337
|
constructor(message, name = "FunctionsError", context) {
|
|
13344
13338
|
super(message);
|
|
@@ -13353,25 +13347,25 @@ var require_types = __commonJS({
|
|
|
13353
13347
|
};
|
|
13354
13348
|
}
|
|
13355
13349
|
};
|
|
13356
|
-
|
|
13350
|
+
exports2.FunctionsError = FunctionsError2;
|
|
13357
13351
|
var FunctionsFetchError2 = class extends FunctionsError2 {
|
|
13358
13352
|
constructor(context) {
|
|
13359
13353
|
super("Failed to send a request to the Edge Function", "FunctionsFetchError", context);
|
|
13360
13354
|
}
|
|
13361
13355
|
};
|
|
13362
|
-
|
|
13356
|
+
exports2.FunctionsFetchError = FunctionsFetchError2;
|
|
13363
13357
|
var FunctionsRelayError2 = class extends FunctionsError2 {
|
|
13364
13358
|
constructor(context) {
|
|
13365
13359
|
super("Relay Error invoking the Edge Function", "FunctionsRelayError", context);
|
|
13366
13360
|
}
|
|
13367
13361
|
};
|
|
13368
|
-
|
|
13362
|
+
exports2.FunctionsRelayError = FunctionsRelayError2;
|
|
13369
13363
|
var FunctionsHttpError2 = class extends FunctionsError2 {
|
|
13370
13364
|
constructor(context) {
|
|
13371
13365
|
super("Edge Function returned a non-2xx status code", "FunctionsHttpError", context);
|
|
13372
13366
|
}
|
|
13373
13367
|
};
|
|
13374
|
-
|
|
13368
|
+
exports2.FunctionsHttpError = FunctionsHttpError2;
|
|
13375
13369
|
var FunctionRegion2;
|
|
13376
13370
|
(function(FunctionRegion3) {
|
|
13377
13371
|
FunctionRegion3["Any"] = "any";
|
|
@@ -13389,16 +13383,16 @@ var require_types = __commonJS({
|
|
|
13389
13383
|
FunctionRegion3["UsEast1"] = "us-east-1";
|
|
13390
13384
|
FunctionRegion3["UsWest1"] = "us-west-1";
|
|
13391
13385
|
FunctionRegion3["UsWest2"] = "us-west-2";
|
|
13392
|
-
})(FunctionRegion2 || (
|
|
13386
|
+
})(FunctionRegion2 || (exports2.FunctionRegion = FunctionRegion2 = {}));
|
|
13393
13387
|
}
|
|
13394
13388
|
});
|
|
13395
13389
|
|
|
13396
13390
|
// node_modules/@supabase/functions-js/dist/main/FunctionsClient.js
|
|
13397
13391
|
var require_FunctionsClient = __commonJS({
|
|
13398
|
-
"node_modules/@supabase/functions-js/dist/main/FunctionsClient.js"(
|
|
13392
|
+
"node_modules/@supabase/functions-js/dist/main/FunctionsClient.js"(exports2) {
|
|
13399
13393
|
"use strict";
|
|
13400
|
-
Object.defineProperty(
|
|
13401
|
-
|
|
13394
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
13395
|
+
exports2.FunctionsClient = void 0;
|
|
13402
13396
|
var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports));
|
|
13403
13397
|
var helper_1 = require_helper();
|
|
13404
13398
|
var types_1 = require_types();
|
|
@@ -13669,34 +13663,34 @@ var require_FunctionsClient = __commonJS({
|
|
|
13669
13663
|
});
|
|
13670
13664
|
}
|
|
13671
13665
|
};
|
|
13672
|
-
|
|
13666
|
+
exports2.FunctionsClient = FunctionsClient2;
|
|
13673
13667
|
}
|
|
13674
13668
|
});
|
|
13675
13669
|
|
|
13676
13670
|
// node_modules/@supabase/functions-js/dist/main/index.js
|
|
13677
13671
|
var require_main = __commonJS({
|
|
13678
|
-
"node_modules/@supabase/functions-js/dist/main/index.js"(
|
|
13672
|
+
"node_modules/@supabase/functions-js/dist/main/index.js"(exports2) {
|
|
13679
13673
|
"use strict";
|
|
13680
|
-
Object.defineProperty(
|
|
13681
|
-
|
|
13674
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
13675
|
+
exports2.FunctionRegion = exports2.FunctionsRelayError = exports2.FunctionsHttpError = exports2.FunctionsFetchError = exports2.FunctionsError = exports2.FunctionsClient = void 0;
|
|
13682
13676
|
var FunctionsClient_1 = require_FunctionsClient();
|
|
13683
|
-
Object.defineProperty(
|
|
13677
|
+
Object.defineProperty(exports2, "FunctionsClient", { enumerable: true, get: function() {
|
|
13684
13678
|
return FunctionsClient_1.FunctionsClient;
|
|
13685
13679
|
} });
|
|
13686
13680
|
var types_1 = require_types();
|
|
13687
|
-
Object.defineProperty(
|
|
13681
|
+
Object.defineProperty(exports2, "FunctionsError", { enumerable: true, get: function() {
|
|
13688
13682
|
return types_1.FunctionsError;
|
|
13689
13683
|
} });
|
|
13690
|
-
Object.defineProperty(
|
|
13684
|
+
Object.defineProperty(exports2, "FunctionsFetchError", { enumerable: true, get: function() {
|
|
13691
13685
|
return types_1.FunctionsFetchError;
|
|
13692
13686
|
} });
|
|
13693
|
-
Object.defineProperty(
|
|
13687
|
+
Object.defineProperty(exports2, "FunctionsHttpError", { enumerable: true, get: function() {
|
|
13694
13688
|
return types_1.FunctionsHttpError;
|
|
13695
13689
|
} });
|
|
13696
|
-
Object.defineProperty(
|
|
13690
|
+
Object.defineProperty(exports2, "FunctionsRelayError", { enumerable: true, get: function() {
|
|
13697
13691
|
return types_1.FunctionsRelayError;
|
|
13698
13692
|
} });
|
|
13699
|
-
Object.defineProperty(
|
|
13693
|
+
Object.defineProperty(exports2, "FunctionRegion", { enumerable: true, get: function() {
|
|
13700
13694
|
return types_1.FunctionRegion;
|
|
13701
13695
|
} });
|
|
13702
13696
|
}
|
|
@@ -13704,10 +13698,10 @@ var require_main = __commonJS({
|
|
|
13704
13698
|
|
|
13705
13699
|
// node_modules/@supabase/realtime-js/dist/main/lib/websocket-factory.js
|
|
13706
13700
|
var require_websocket_factory = __commonJS({
|
|
13707
|
-
"node_modules/@supabase/realtime-js/dist/main/lib/websocket-factory.js"(
|
|
13701
|
+
"node_modules/@supabase/realtime-js/dist/main/lib/websocket-factory.js"(exports2) {
|
|
13708
13702
|
"use strict";
|
|
13709
|
-
Object.defineProperty(
|
|
13710
|
-
|
|
13703
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
13704
|
+
exports2.WebSocketFactory = void 0;
|
|
13711
13705
|
var WebSocketFactory = class {
|
|
13712
13706
|
/**
|
|
13713
13707
|
* Static-only utility – prevent instantiation.
|
|
@@ -13818,50 +13812,50 @@ Suggested solution: ${env2.workaround}`;
|
|
|
13818
13812
|
}
|
|
13819
13813
|
}
|
|
13820
13814
|
};
|
|
13821
|
-
|
|
13822
|
-
|
|
13815
|
+
exports2.WebSocketFactory = WebSocketFactory;
|
|
13816
|
+
exports2.default = WebSocketFactory;
|
|
13823
13817
|
}
|
|
13824
13818
|
});
|
|
13825
13819
|
|
|
13826
13820
|
// node_modules/@supabase/realtime-js/dist/main/lib/version.js
|
|
13827
13821
|
var require_version = __commonJS({
|
|
13828
|
-
"node_modules/@supabase/realtime-js/dist/main/lib/version.js"(
|
|
13822
|
+
"node_modules/@supabase/realtime-js/dist/main/lib/version.js"(exports2) {
|
|
13829
13823
|
"use strict";
|
|
13830
|
-
Object.defineProperty(
|
|
13831
|
-
|
|
13832
|
-
|
|
13824
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
13825
|
+
exports2.version = void 0;
|
|
13826
|
+
exports2.version = "2.103.3";
|
|
13833
13827
|
}
|
|
13834
13828
|
});
|
|
13835
13829
|
|
|
13836
13830
|
// node_modules/@supabase/realtime-js/dist/main/lib/constants.js
|
|
13837
13831
|
var require_constants = __commonJS({
|
|
13838
|
-
"node_modules/@supabase/realtime-js/dist/main/lib/constants.js"(
|
|
13832
|
+
"node_modules/@supabase/realtime-js/dist/main/lib/constants.js"(exports2) {
|
|
13839
13833
|
"use strict";
|
|
13840
|
-
Object.defineProperty(
|
|
13841
|
-
|
|
13834
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
13835
|
+
exports2.CONNECTION_STATE = exports2.TRANSPORTS = exports2.CHANNEL_EVENTS = exports2.CHANNEL_STATES = exports2.SOCKET_STATES = exports2.MAX_PUSH_BUFFER_SIZE = exports2.WS_CLOSE_NORMAL = exports2.DEFAULT_TIMEOUT = exports2.VERSION = exports2.DEFAULT_VSN = exports2.VSN_2_0_0 = exports2.VSN_1_0_0 = exports2.DEFAULT_VERSION = void 0;
|
|
13842
13836
|
var version_1 = require_version();
|
|
13843
|
-
|
|
13844
|
-
|
|
13845
|
-
|
|
13846
|
-
|
|
13847
|
-
|
|
13848
|
-
|
|
13849
|
-
|
|
13850
|
-
|
|
13851
|
-
|
|
13837
|
+
exports2.DEFAULT_VERSION = `realtime-js/${version_1.version}`;
|
|
13838
|
+
exports2.VSN_1_0_0 = "1.0.0";
|
|
13839
|
+
exports2.VSN_2_0_0 = "2.0.0";
|
|
13840
|
+
exports2.DEFAULT_VSN = exports2.VSN_2_0_0;
|
|
13841
|
+
exports2.VERSION = version_1.version;
|
|
13842
|
+
exports2.DEFAULT_TIMEOUT = 1e4;
|
|
13843
|
+
exports2.WS_CLOSE_NORMAL = 1e3;
|
|
13844
|
+
exports2.MAX_PUSH_BUFFER_SIZE = 100;
|
|
13845
|
+
exports2.SOCKET_STATES = {
|
|
13852
13846
|
connecting: 0,
|
|
13853
13847
|
open: 1,
|
|
13854
13848
|
closing: 2,
|
|
13855
13849
|
closed: 3
|
|
13856
13850
|
};
|
|
13857
|
-
|
|
13851
|
+
exports2.CHANNEL_STATES = {
|
|
13858
13852
|
closed: "closed",
|
|
13859
13853
|
errored: "errored",
|
|
13860
13854
|
joined: "joined",
|
|
13861
13855
|
joining: "joining",
|
|
13862
13856
|
leaving: "leaving"
|
|
13863
13857
|
};
|
|
13864
|
-
|
|
13858
|
+
exports2.CHANNEL_EVENTS = {
|
|
13865
13859
|
close: "phx_close",
|
|
13866
13860
|
error: "phx_error",
|
|
13867
13861
|
join: "phx_join",
|
|
@@ -13869,10 +13863,10 @@ var require_constants = __commonJS({
|
|
|
13869
13863
|
leave: "phx_leave",
|
|
13870
13864
|
access_token: "access_token"
|
|
13871
13865
|
};
|
|
13872
|
-
|
|
13866
|
+
exports2.TRANSPORTS = {
|
|
13873
13867
|
websocket: "websocket"
|
|
13874
13868
|
};
|
|
13875
|
-
|
|
13869
|
+
exports2.CONNECTION_STATE = {
|
|
13876
13870
|
connecting: "connecting",
|
|
13877
13871
|
open: "open",
|
|
13878
13872
|
closing: "closing",
|
|
@@ -13883,9 +13877,9 @@ var require_constants = __commonJS({
|
|
|
13883
13877
|
|
|
13884
13878
|
// node_modules/@supabase/realtime-js/dist/main/lib/serializer.js
|
|
13885
13879
|
var require_serializer = __commonJS({
|
|
13886
|
-
"node_modules/@supabase/realtime-js/dist/main/lib/serializer.js"(
|
|
13880
|
+
"node_modules/@supabase/realtime-js/dist/main/lib/serializer.js"(exports2) {
|
|
13887
13881
|
"use strict";
|
|
13888
|
-
Object.defineProperty(
|
|
13882
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
13889
13883
|
var Serializer = class {
|
|
13890
13884
|
constructor(allowedMetadataKeys) {
|
|
13891
13885
|
this.HEADER_LENGTH = 1;
|
|
@@ -14024,16 +14018,16 @@ var require_serializer = __commonJS({
|
|
|
14024
14018
|
return Object.fromEntries(Object.entries(obj).filter(([key]) => keys.includes(key)));
|
|
14025
14019
|
}
|
|
14026
14020
|
};
|
|
14027
|
-
|
|
14021
|
+
exports2.default = Serializer;
|
|
14028
14022
|
}
|
|
14029
14023
|
});
|
|
14030
14024
|
|
|
14031
14025
|
// node_modules/@supabase/realtime-js/dist/main/lib/transformers.js
|
|
14032
14026
|
var require_transformers = __commonJS({
|
|
14033
|
-
"node_modules/@supabase/realtime-js/dist/main/lib/transformers.js"(
|
|
14027
|
+
"node_modules/@supabase/realtime-js/dist/main/lib/transformers.js"(exports2) {
|
|
14034
14028
|
"use strict";
|
|
14035
|
-
Object.defineProperty(
|
|
14036
|
-
|
|
14029
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
14030
|
+
exports2.httpEndpointURL = exports2.toTimestampString = exports2.toArray = exports2.toJson = exports2.toNumber = exports2.toBoolean = exports2.convertCell = exports2.convertColumn = exports2.convertChangeData = exports2.PostgresTypes = void 0;
|
|
14037
14031
|
var PostgresTypes;
|
|
14038
14032
|
(function(PostgresTypes2) {
|
|
14039
14033
|
PostgresTypes2["abstime"] = "abstime";
|
|
@@ -14060,7 +14054,7 @@ var require_transformers = __commonJS({
|
|
|
14060
14054
|
PostgresTypes2["timetz"] = "timetz";
|
|
14061
14055
|
PostgresTypes2["tsrange"] = "tsrange";
|
|
14062
14056
|
PostgresTypes2["tstzrange"] = "tstzrange";
|
|
14063
|
-
})(PostgresTypes || (
|
|
14057
|
+
})(PostgresTypes || (exports2.PostgresTypes = PostgresTypes = {}));
|
|
14064
14058
|
var convertChangeData = (columns, record, options = {}) => {
|
|
14065
14059
|
var _a2;
|
|
14066
14060
|
const skipTypes = (_a2 = options.skipTypes) !== null && _a2 !== void 0 ? _a2 : [];
|
|
@@ -14068,29 +14062,29 @@ var require_transformers = __commonJS({
|
|
|
14068
14062
|
return {};
|
|
14069
14063
|
}
|
|
14070
14064
|
return Object.keys(record).reduce((acc, rec_key) => {
|
|
14071
|
-
acc[rec_key] = (0,
|
|
14065
|
+
acc[rec_key] = (0, exports2.convertColumn)(rec_key, columns, record, skipTypes);
|
|
14072
14066
|
return acc;
|
|
14073
14067
|
}, {});
|
|
14074
14068
|
};
|
|
14075
|
-
|
|
14069
|
+
exports2.convertChangeData = convertChangeData;
|
|
14076
14070
|
var convertColumn = (columnName, columns, record, skipTypes) => {
|
|
14077
14071
|
const column = columns.find((x) => x.name === columnName);
|
|
14078
14072
|
const colType = column === null || column === void 0 ? void 0 : column.type;
|
|
14079
14073
|
const value = record[columnName];
|
|
14080
14074
|
if (colType && !skipTypes.includes(colType)) {
|
|
14081
|
-
return (0,
|
|
14075
|
+
return (0, exports2.convertCell)(colType, value);
|
|
14082
14076
|
}
|
|
14083
14077
|
return noop(value);
|
|
14084
14078
|
};
|
|
14085
|
-
|
|
14079
|
+
exports2.convertColumn = convertColumn;
|
|
14086
14080
|
var convertCell = (type, value) => {
|
|
14087
14081
|
if (type.charAt(0) === "_") {
|
|
14088
14082
|
const dataType = type.slice(1, type.length);
|
|
14089
|
-
return (0,
|
|
14083
|
+
return (0, exports2.toArray)(value, dataType);
|
|
14090
14084
|
}
|
|
14091
14085
|
switch (type) {
|
|
14092
14086
|
case PostgresTypes.bool:
|
|
14093
|
-
return (0,
|
|
14087
|
+
return (0, exports2.toBoolean)(value);
|
|
14094
14088
|
case PostgresTypes.float4:
|
|
14095
14089
|
case PostgresTypes.float8:
|
|
14096
14090
|
case PostgresTypes.int2:
|
|
@@ -14098,12 +14092,12 @@ var require_transformers = __commonJS({
|
|
|
14098
14092
|
case PostgresTypes.int8:
|
|
14099
14093
|
case PostgresTypes.numeric:
|
|
14100
14094
|
case PostgresTypes.oid:
|
|
14101
|
-
return (0,
|
|
14095
|
+
return (0, exports2.toNumber)(value);
|
|
14102
14096
|
case PostgresTypes.json:
|
|
14103
14097
|
case PostgresTypes.jsonb:
|
|
14104
|
-
return (0,
|
|
14098
|
+
return (0, exports2.toJson)(value);
|
|
14105
14099
|
case PostgresTypes.timestamp:
|
|
14106
|
-
return (0,
|
|
14100
|
+
return (0, exports2.toTimestampString)(value);
|
|
14107
14101
|
case PostgresTypes.abstime:
|
|
14108
14102
|
case PostgresTypes.date:
|
|
14109
14103
|
case PostgresTypes.daterange:
|
|
@@ -14122,7 +14116,7 @@ var require_transformers = __commonJS({
|
|
|
14122
14116
|
return noop(value);
|
|
14123
14117
|
}
|
|
14124
14118
|
};
|
|
14125
|
-
|
|
14119
|
+
exports2.convertCell = convertCell;
|
|
14126
14120
|
var noop = (value) => {
|
|
14127
14121
|
return value;
|
|
14128
14122
|
};
|
|
@@ -14136,7 +14130,7 @@ var require_transformers = __commonJS({
|
|
|
14136
14130
|
return value;
|
|
14137
14131
|
}
|
|
14138
14132
|
};
|
|
14139
|
-
|
|
14133
|
+
exports2.toBoolean = toBoolean;
|
|
14140
14134
|
var toNumber = (value) => {
|
|
14141
14135
|
if (typeof value === "string") {
|
|
14142
14136
|
const parsedValue = parseFloat(value);
|
|
@@ -14146,7 +14140,7 @@ var require_transformers = __commonJS({
|
|
|
14146
14140
|
}
|
|
14147
14141
|
return value;
|
|
14148
14142
|
};
|
|
14149
|
-
|
|
14143
|
+
exports2.toNumber = toNumber;
|
|
14150
14144
|
var toJson = (value) => {
|
|
14151
14145
|
if (typeof value === "string") {
|
|
14152
14146
|
try {
|
|
@@ -14157,7 +14151,7 @@ var require_transformers = __commonJS({
|
|
|
14157
14151
|
}
|
|
14158
14152
|
return value;
|
|
14159
14153
|
};
|
|
14160
|
-
|
|
14154
|
+
exports2.toJson = toJson;
|
|
14161
14155
|
var toArray = (value, type) => {
|
|
14162
14156
|
if (typeof value !== "string") {
|
|
14163
14157
|
return value;
|
|
@@ -14173,18 +14167,18 @@ var require_transformers = __commonJS({
|
|
|
14173
14167
|
} catch (_) {
|
|
14174
14168
|
arr = valTrim ? valTrim.split(",") : [];
|
|
14175
14169
|
}
|
|
14176
|
-
return arr.map((val) => (0,
|
|
14170
|
+
return arr.map((val) => (0, exports2.convertCell)(type, val));
|
|
14177
14171
|
}
|
|
14178
14172
|
return value;
|
|
14179
14173
|
};
|
|
14180
|
-
|
|
14174
|
+
exports2.toArray = toArray;
|
|
14181
14175
|
var toTimestampString = (value) => {
|
|
14182
14176
|
if (typeof value === "string") {
|
|
14183
14177
|
return value.replace(" ", "T");
|
|
14184
14178
|
}
|
|
14185
14179
|
return value;
|
|
14186
14180
|
};
|
|
14187
|
-
|
|
14181
|
+
exports2.toTimestampString = toTimestampString;
|
|
14188
14182
|
var httpEndpointURL = (socketUrl) => {
|
|
14189
14183
|
const wsUrl = new URL(socketUrl);
|
|
14190
14184
|
wsUrl.protocol = wsUrl.protocol.replace(/^ws/i, "http");
|
|
@@ -14196,13 +14190,13 @@ var require_transformers = __commonJS({
|
|
|
14196
14190
|
}
|
|
14197
14191
|
return wsUrl.href;
|
|
14198
14192
|
};
|
|
14199
|
-
|
|
14193
|
+
exports2.httpEndpointURL = httpEndpointURL;
|
|
14200
14194
|
}
|
|
14201
14195
|
});
|
|
14202
14196
|
|
|
14203
14197
|
// node_modules/@supabase/phoenix/priv/static/phoenix.cjs.js
|
|
14204
14198
|
var require_phoenix_cjs = __commonJS({
|
|
14205
|
-
"node_modules/@supabase/phoenix/priv/static/phoenix.cjs.js"(
|
|
14199
|
+
"node_modules/@supabase/phoenix/priv/static/phoenix.cjs.js"(exports2, module2) {
|
|
14206
14200
|
"use strict";
|
|
14207
14201
|
var __defProp2 = Object.defineProperty;
|
|
14208
14202
|
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
@@ -14231,7 +14225,7 @@ var require_phoenix_cjs = __commonJS({
|
|
|
14231
14225
|
Socket: () => Socket,
|
|
14232
14226
|
Timer: () => Timer
|
|
14233
14227
|
});
|
|
14234
|
-
|
|
14228
|
+
module2.exports = __toCommonJS2(phoenix_exports);
|
|
14235
14229
|
var closure = (value) => {
|
|
14236
14230
|
if (typeof value === "function") {
|
|
14237
14231
|
return (
|
|
@@ -16017,9 +16011,9 @@ var require_phoenix_cjs = __commonJS({
|
|
|
16017
16011
|
|
|
16018
16012
|
// node_modules/@supabase/realtime-js/dist/main/phoenix/presenceAdapter.js
|
|
16019
16013
|
var require_presenceAdapter = __commonJS({
|
|
16020
|
-
"node_modules/@supabase/realtime-js/dist/main/phoenix/presenceAdapter.js"(
|
|
16014
|
+
"node_modules/@supabase/realtime-js/dist/main/phoenix/presenceAdapter.js"(exports2) {
|
|
16021
16015
|
"use strict";
|
|
16022
|
-
Object.defineProperty(
|
|
16016
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
16023
16017
|
var phoenix_1 = require_phoenix_cjs();
|
|
16024
16018
|
var PresenceAdapter = class _PresenceAdapter {
|
|
16025
16019
|
constructor(channel, opts) {
|
|
@@ -16092,7 +16086,7 @@ var require_presenceAdapter = __commonJS({
|
|
|
16092
16086
|
};
|
|
16093
16087
|
}
|
|
16094
16088
|
};
|
|
16095
|
-
|
|
16089
|
+
exports2.default = PresenceAdapter;
|
|
16096
16090
|
function transformState(presences) {
|
|
16097
16091
|
return presences.metas.map((presence) => {
|
|
16098
16092
|
presence["presence_ref"] = presence["phx_ref"];
|
|
@@ -16115,10 +16109,10 @@ var require_presenceAdapter = __commonJS({
|
|
|
16115
16109
|
|
|
16116
16110
|
// node_modules/@supabase/realtime-js/dist/main/RealtimePresence.js
|
|
16117
16111
|
var require_RealtimePresence = __commonJS({
|
|
16118
|
-
"node_modules/@supabase/realtime-js/dist/main/RealtimePresence.js"(
|
|
16112
|
+
"node_modules/@supabase/realtime-js/dist/main/RealtimePresence.js"(exports2) {
|
|
16119
16113
|
"use strict";
|
|
16120
|
-
Object.defineProperty(
|
|
16121
|
-
|
|
16114
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
16115
|
+
exports2.REALTIME_PRESENCE_LISTEN_EVENTS = void 0;
|
|
16122
16116
|
var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports));
|
|
16123
16117
|
var presenceAdapter_1 = tslib_1.__importDefault(require_presenceAdapter());
|
|
16124
16118
|
var REALTIME_PRESENCE_LISTEN_EVENTS;
|
|
@@ -16126,7 +16120,7 @@ var require_RealtimePresence = __commonJS({
|
|
|
16126
16120
|
REALTIME_PRESENCE_LISTEN_EVENTS2["SYNC"] = "sync";
|
|
16127
16121
|
REALTIME_PRESENCE_LISTEN_EVENTS2["JOIN"] = "join";
|
|
16128
16122
|
REALTIME_PRESENCE_LISTEN_EVENTS2["LEAVE"] = "leave";
|
|
16129
|
-
})(REALTIME_PRESENCE_LISTEN_EVENTS || (
|
|
16123
|
+
})(REALTIME_PRESENCE_LISTEN_EVENTS || (exports2.REALTIME_PRESENCE_LISTEN_EVENTS = REALTIME_PRESENCE_LISTEN_EVENTS = {}));
|
|
16130
16124
|
var RealtimePresence = class {
|
|
16131
16125
|
get state() {
|
|
16132
16126
|
return this.presenceAdapter.state;
|
|
@@ -16153,15 +16147,15 @@ var require_RealtimePresence = __commonJS({
|
|
|
16153
16147
|
this.presenceAdapter = new presenceAdapter_1.default(this.channel.channelAdapter, opts);
|
|
16154
16148
|
}
|
|
16155
16149
|
};
|
|
16156
|
-
|
|
16150
|
+
exports2.default = RealtimePresence;
|
|
16157
16151
|
}
|
|
16158
16152
|
});
|
|
16159
16153
|
|
|
16160
16154
|
// node_modules/@supabase/realtime-js/dist/main/phoenix/channelAdapter.js
|
|
16161
16155
|
var require_channelAdapter = __commonJS({
|
|
16162
|
-
"node_modules/@supabase/realtime-js/dist/main/phoenix/channelAdapter.js"(
|
|
16156
|
+
"node_modules/@supabase/realtime-js/dist/main/phoenix/channelAdapter.js"(exports2) {
|
|
16163
16157
|
"use strict";
|
|
16164
|
-
Object.defineProperty(
|
|
16158
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
16165
16159
|
var constants_1 = require_constants();
|
|
16166
16160
|
var ChannelAdapter = class {
|
|
16167
16161
|
constructor(socket, topic, params) {
|
|
@@ -16251,7 +16245,7 @@ var require_channelAdapter = __commonJS({
|
|
|
16251
16245
|
return this.channel;
|
|
16252
16246
|
}
|
|
16253
16247
|
};
|
|
16254
|
-
|
|
16248
|
+
exports2.default = ChannelAdapter;
|
|
16255
16249
|
function phoenixChannelParams(options) {
|
|
16256
16250
|
return {
|
|
16257
16251
|
config: Object.assign({
|
|
@@ -16266,10 +16260,10 @@ var require_channelAdapter = __commonJS({
|
|
|
16266
16260
|
|
|
16267
16261
|
// node_modules/@supabase/realtime-js/dist/main/RealtimeChannel.js
|
|
16268
16262
|
var require_RealtimeChannel = __commonJS({
|
|
16269
|
-
"node_modules/@supabase/realtime-js/dist/main/RealtimeChannel.js"(
|
|
16263
|
+
"node_modules/@supabase/realtime-js/dist/main/RealtimeChannel.js"(exports2) {
|
|
16270
16264
|
"use strict";
|
|
16271
|
-
Object.defineProperty(
|
|
16272
|
-
|
|
16265
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
16266
|
+
exports2.REALTIME_CHANNEL_STATES = exports2.REALTIME_SUBSCRIBE_STATES = exports2.REALTIME_LISTEN_TYPES = exports2.REALTIME_POSTGRES_CHANGES_LISTEN_EVENT = void 0;
|
|
16273
16267
|
var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports));
|
|
16274
16268
|
var constants_1 = require_constants();
|
|
16275
16269
|
var RealtimePresence_1 = tslib_1.__importDefault(require_RealtimePresence());
|
|
@@ -16282,22 +16276,22 @@ var require_RealtimeChannel = __commonJS({
|
|
|
16282
16276
|
REALTIME_POSTGRES_CHANGES_LISTEN_EVENT2["INSERT"] = "INSERT";
|
|
16283
16277
|
REALTIME_POSTGRES_CHANGES_LISTEN_EVENT2["UPDATE"] = "UPDATE";
|
|
16284
16278
|
REALTIME_POSTGRES_CHANGES_LISTEN_EVENT2["DELETE"] = "DELETE";
|
|
16285
|
-
})(REALTIME_POSTGRES_CHANGES_LISTEN_EVENT || (
|
|
16279
|
+
})(REALTIME_POSTGRES_CHANGES_LISTEN_EVENT || (exports2.REALTIME_POSTGRES_CHANGES_LISTEN_EVENT = REALTIME_POSTGRES_CHANGES_LISTEN_EVENT = {}));
|
|
16286
16280
|
var REALTIME_LISTEN_TYPES;
|
|
16287
16281
|
(function(REALTIME_LISTEN_TYPES2) {
|
|
16288
16282
|
REALTIME_LISTEN_TYPES2["BROADCAST"] = "broadcast";
|
|
16289
16283
|
REALTIME_LISTEN_TYPES2["PRESENCE"] = "presence";
|
|
16290
16284
|
REALTIME_LISTEN_TYPES2["POSTGRES_CHANGES"] = "postgres_changes";
|
|
16291
16285
|
REALTIME_LISTEN_TYPES2["SYSTEM"] = "system";
|
|
16292
|
-
})(REALTIME_LISTEN_TYPES || (
|
|
16286
|
+
})(REALTIME_LISTEN_TYPES || (exports2.REALTIME_LISTEN_TYPES = REALTIME_LISTEN_TYPES = {}));
|
|
16293
16287
|
var REALTIME_SUBSCRIBE_STATES;
|
|
16294
16288
|
(function(REALTIME_SUBSCRIBE_STATES2) {
|
|
16295
16289
|
REALTIME_SUBSCRIBE_STATES2["SUBSCRIBED"] = "SUBSCRIBED";
|
|
16296
16290
|
REALTIME_SUBSCRIBE_STATES2["TIMED_OUT"] = "TIMED_OUT";
|
|
16297
16291
|
REALTIME_SUBSCRIBE_STATES2["CLOSED"] = "CLOSED";
|
|
16298
16292
|
REALTIME_SUBSCRIBE_STATES2["CHANNEL_ERROR"] = "CHANNEL_ERROR";
|
|
16299
|
-
})(REALTIME_SUBSCRIBE_STATES || (
|
|
16300
|
-
|
|
16293
|
+
})(REALTIME_SUBSCRIBE_STATES || (exports2.REALTIME_SUBSCRIBE_STATES = REALTIME_SUBSCRIBE_STATES = {}));
|
|
16294
|
+
exports2.REALTIME_CHANNEL_STATES = constants_1.CHANNEL_STATES;
|
|
16301
16295
|
var RealtimeChannel = class _RealtimeChannel {
|
|
16302
16296
|
get state() {
|
|
16303
16297
|
return this.channelAdapter.state;
|
|
@@ -16937,15 +16931,15 @@ var require_RealtimeChannel = __commonJS({
|
|
|
16937
16931
|
return records;
|
|
16938
16932
|
}
|
|
16939
16933
|
};
|
|
16940
|
-
|
|
16934
|
+
exports2.default = RealtimeChannel;
|
|
16941
16935
|
}
|
|
16942
16936
|
});
|
|
16943
16937
|
|
|
16944
16938
|
// node_modules/@supabase/realtime-js/dist/main/phoenix/socketAdapter.js
|
|
16945
16939
|
var require_socketAdapter = __commonJS({
|
|
16946
|
-
"node_modules/@supabase/realtime-js/dist/main/phoenix/socketAdapter.js"(
|
|
16940
|
+
"node_modules/@supabase/realtime-js/dist/main/phoenix/socketAdapter.js"(exports2) {
|
|
16947
16941
|
"use strict";
|
|
16948
|
-
Object.defineProperty(
|
|
16942
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
16949
16943
|
var phoenix_1 = require_phoenix_cjs();
|
|
16950
16944
|
var constants_1 = require_constants();
|
|
16951
16945
|
var SocketAdapter = class {
|
|
@@ -17055,15 +17049,15 @@ var require_socketAdapter = __commonJS({
|
|
|
17055
17049
|
return this.socket;
|
|
17056
17050
|
}
|
|
17057
17051
|
};
|
|
17058
|
-
|
|
17052
|
+
exports2.default = SocketAdapter;
|
|
17059
17053
|
}
|
|
17060
17054
|
});
|
|
17061
17055
|
|
|
17062
17056
|
// node_modules/@supabase/realtime-js/dist/main/RealtimeClient.js
|
|
17063
17057
|
var require_RealtimeClient = __commonJS({
|
|
17064
|
-
"node_modules/@supabase/realtime-js/dist/main/RealtimeClient.js"(
|
|
17058
|
+
"node_modules/@supabase/realtime-js/dist/main/RealtimeClient.js"(exports2) {
|
|
17065
17059
|
"use strict";
|
|
17066
|
-
Object.defineProperty(
|
|
17060
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
17067
17061
|
var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports));
|
|
17068
17062
|
var websocket_factory_1 = tslib_1.__importDefault(require_websocket_factory());
|
|
17069
17063
|
var constants_1 = require_constants();
|
|
@@ -17648,97 +17642,97 @@ Option 2: Install and provide the "ws" package:
|
|
|
17648
17642
|
}
|
|
17649
17643
|
}
|
|
17650
17644
|
};
|
|
17651
|
-
|
|
17645
|
+
exports2.default = RealtimeClient2;
|
|
17652
17646
|
}
|
|
17653
17647
|
});
|
|
17654
17648
|
|
|
17655
17649
|
// node_modules/@supabase/realtime-js/dist/main/index.js
|
|
17656
17650
|
var require_main2 = __commonJS({
|
|
17657
|
-
"node_modules/@supabase/realtime-js/dist/main/index.js"(
|
|
17651
|
+
"node_modules/@supabase/realtime-js/dist/main/index.js"(exports2) {
|
|
17658
17652
|
"use strict";
|
|
17659
|
-
Object.defineProperty(
|
|
17660
|
-
|
|
17653
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
17654
|
+
exports2.WebSocketFactory = exports2.REALTIME_CHANNEL_STATES = exports2.REALTIME_SUBSCRIBE_STATES = exports2.REALTIME_PRESENCE_LISTEN_EVENTS = exports2.REALTIME_POSTGRES_CHANGES_LISTEN_EVENT = exports2.REALTIME_LISTEN_TYPES = exports2.RealtimeClient = exports2.RealtimeChannel = exports2.RealtimePresence = void 0;
|
|
17661
17655
|
var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports));
|
|
17662
17656
|
var RealtimeClient_1 = tslib_1.__importDefault(require_RealtimeClient());
|
|
17663
|
-
|
|
17657
|
+
exports2.RealtimeClient = RealtimeClient_1.default;
|
|
17664
17658
|
var RealtimeChannel_1 = tslib_1.__importStar(require_RealtimeChannel());
|
|
17665
|
-
|
|
17666
|
-
Object.defineProperty(
|
|
17659
|
+
exports2.RealtimeChannel = RealtimeChannel_1.default;
|
|
17660
|
+
Object.defineProperty(exports2, "REALTIME_LISTEN_TYPES", { enumerable: true, get: function() {
|
|
17667
17661
|
return RealtimeChannel_1.REALTIME_LISTEN_TYPES;
|
|
17668
17662
|
} });
|
|
17669
|
-
Object.defineProperty(
|
|
17663
|
+
Object.defineProperty(exports2, "REALTIME_POSTGRES_CHANGES_LISTEN_EVENT", { enumerable: true, get: function() {
|
|
17670
17664
|
return RealtimeChannel_1.REALTIME_POSTGRES_CHANGES_LISTEN_EVENT;
|
|
17671
17665
|
} });
|
|
17672
|
-
Object.defineProperty(
|
|
17666
|
+
Object.defineProperty(exports2, "REALTIME_SUBSCRIBE_STATES", { enumerable: true, get: function() {
|
|
17673
17667
|
return RealtimeChannel_1.REALTIME_SUBSCRIBE_STATES;
|
|
17674
17668
|
} });
|
|
17675
|
-
Object.defineProperty(
|
|
17669
|
+
Object.defineProperty(exports2, "REALTIME_CHANNEL_STATES", { enumerable: true, get: function() {
|
|
17676
17670
|
return RealtimeChannel_1.REALTIME_CHANNEL_STATES;
|
|
17677
17671
|
} });
|
|
17678
17672
|
var RealtimePresence_1 = tslib_1.__importStar(require_RealtimePresence());
|
|
17679
|
-
|
|
17680
|
-
Object.defineProperty(
|
|
17673
|
+
exports2.RealtimePresence = RealtimePresence_1.default;
|
|
17674
|
+
Object.defineProperty(exports2, "REALTIME_PRESENCE_LISTEN_EVENTS", { enumerable: true, get: function() {
|
|
17681
17675
|
return RealtimePresence_1.REALTIME_PRESENCE_LISTEN_EVENTS;
|
|
17682
17676
|
} });
|
|
17683
17677
|
var websocket_factory_1 = tslib_1.__importDefault(require_websocket_factory());
|
|
17684
|
-
|
|
17678
|
+
exports2.WebSocketFactory = websocket_factory_1.default;
|
|
17685
17679
|
}
|
|
17686
17680
|
});
|
|
17687
17681
|
|
|
17688
17682
|
// node_modules/@supabase/auth-js/dist/main/lib/version.js
|
|
17689
17683
|
var require_version2 = __commonJS({
|
|
17690
|
-
"node_modules/@supabase/auth-js/dist/main/lib/version.js"(
|
|
17684
|
+
"node_modules/@supabase/auth-js/dist/main/lib/version.js"(exports2) {
|
|
17691
17685
|
"use strict";
|
|
17692
|
-
Object.defineProperty(
|
|
17693
|
-
|
|
17694
|
-
|
|
17686
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
17687
|
+
exports2.version = void 0;
|
|
17688
|
+
exports2.version = "2.103.3";
|
|
17695
17689
|
}
|
|
17696
17690
|
});
|
|
17697
17691
|
|
|
17698
17692
|
// node_modules/@supabase/auth-js/dist/main/lib/constants.js
|
|
17699
17693
|
var require_constants2 = __commonJS({
|
|
17700
|
-
"node_modules/@supabase/auth-js/dist/main/lib/constants.js"(
|
|
17694
|
+
"node_modules/@supabase/auth-js/dist/main/lib/constants.js"(exports2) {
|
|
17701
17695
|
"use strict";
|
|
17702
|
-
Object.defineProperty(
|
|
17703
|
-
|
|
17696
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
17697
|
+
exports2.JWKS_TTL = exports2.BASE64URL_REGEX = exports2.API_VERSIONS = exports2.API_VERSION_HEADER_NAME = exports2.NETWORK_FAILURE = exports2.DEFAULT_HEADERS = exports2.AUDIENCE = exports2.STORAGE_KEY = exports2.GOTRUE_URL = exports2.EXPIRY_MARGIN_MS = exports2.AUTO_REFRESH_TICK_THRESHOLD = exports2.AUTO_REFRESH_TICK_DURATION_MS = void 0;
|
|
17704
17698
|
var version_1 = require_version2();
|
|
17705
|
-
|
|
17706
|
-
|
|
17707
|
-
|
|
17708
|
-
|
|
17709
|
-
|
|
17710
|
-
|
|
17711
|
-
|
|
17712
|
-
|
|
17699
|
+
exports2.AUTO_REFRESH_TICK_DURATION_MS = 30 * 1e3;
|
|
17700
|
+
exports2.AUTO_REFRESH_TICK_THRESHOLD = 3;
|
|
17701
|
+
exports2.EXPIRY_MARGIN_MS = exports2.AUTO_REFRESH_TICK_THRESHOLD * exports2.AUTO_REFRESH_TICK_DURATION_MS;
|
|
17702
|
+
exports2.GOTRUE_URL = "http://localhost:9999";
|
|
17703
|
+
exports2.STORAGE_KEY = "supabase.auth.token";
|
|
17704
|
+
exports2.AUDIENCE = "";
|
|
17705
|
+
exports2.DEFAULT_HEADERS = { "X-Client-Info": `gotrue-js/${version_1.version}` };
|
|
17706
|
+
exports2.NETWORK_FAILURE = {
|
|
17713
17707
|
MAX_RETRIES: 10,
|
|
17714
17708
|
RETRY_INTERVAL: 2
|
|
17715
17709
|
// in deciseconds
|
|
17716
17710
|
};
|
|
17717
|
-
|
|
17718
|
-
|
|
17711
|
+
exports2.API_VERSION_HEADER_NAME = "X-Supabase-Api-Version";
|
|
17712
|
+
exports2.API_VERSIONS = {
|
|
17719
17713
|
"2024-01-01": {
|
|
17720
17714
|
timestamp: Date.parse("2024-01-01T00:00:00.0Z"),
|
|
17721
17715
|
name: "2024-01-01"
|
|
17722
17716
|
}
|
|
17723
17717
|
};
|
|
17724
|
-
|
|
17725
|
-
|
|
17718
|
+
exports2.BASE64URL_REGEX = /^([a-z0-9_-]{4})*($|[a-z0-9_-]{3}$|[a-z0-9_-]{2}$)$/i;
|
|
17719
|
+
exports2.JWKS_TTL = 10 * 60 * 1e3;
|
|
17726
17720
|
}
|
|
17727
17721
|
});
|
|
17728
17722
|
|
|
17729
17723
|
// node_modules/@supabase/auth-js/dist/main/lib/errors.js
|
|
17730
17724
|
var require_errors = __commonJS({
|
|
17731
|
-
"node_modules/@supabase/auth-js/dist/main/lib/errors.js"(
|
|
17725
|
+
"node_modules/@supabase/auth-js/dist/main/lib/errors.js"(exports2) {
|
|
17732
17726
|
"use strict";
|
|
17733
|
-
Object.defineProperty(
|
|
17734
|
-
|
|
17735
|
-
|
|
17736
|
-
|
|
17737
|
-
|
|
17738
|
-
|
|
17739
|
-
|
|
17740
|
-
|
|
17741
|
-
|
|
17727
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
17728
|
+
exports2.AuthInvalidJwtError = exports2.AuthWeakPasswordError = exports2.AuthRetryableFetchError = exports2.AuthPKCECodeVerifierMissingError = exports2.AuthPKCEGrantCodeExchangeError = exports2.AuthImplicitGrantRedirectError = exports2.AuthInvalidCredentialsError = exports2.AuthInvalidTokenResponseError = exports2.AuthSessionMissingError = exports2.CustomAuthError = exports2.AuthUnknownError = exports2.AuthApiError = exports2.AuthError = void 0;
|
|
17729
|
+
exports2.isAuthError = isAuthError;
|
|
17730
|
+
exports2.isAuthApiError = isAuthApiError;
|
|
17731
|
+
exports2.isAuthSessionMissingError = isAuthSessionMissingError;
|
|
17732
|
+
exports2.isAuthImplicitGrantRedirectError = isAuthImplicitGrantRedirectError;
|
|
17733
|
+
exports2.isAuthPKCECodeVerifierMissingError = isAuthPKCECodeVerifierMissingError;
|
|
17734
|
+
exports2.isAuthRetryableFetchError = isAuthRetryableFetchError;
|
|
17735
|
+
exports2.isAuthWeakPasswordError = isAuthWeakPasswordError;
|
|
17742
17736
|
var AuthError = class extends Error {
|
|
17743
17737
|
constructor(message, status, code) {
|
|
17744
17738
|
super(message);
|
|
@@ -17756,7 +17750,7 @@ var require_errors = __commonJS({
|
|
|
17756
17750
|
};
|
|
17757
17751
|
}
|
|
17758
17752
|
};
|
|
17759
|
-
|
|
17753
|
+
exports2.AuthError = AuthError;
|
|
17760
17754
|
function isAuthError(error) {
|
|
17761
17755
|
return typeof error === "object" && error !== null && "__isAuthError" in error;
|
|
17762
17756
|
}
|
|
@@ -17768,7 +17762,7 @@ var require_errors = __commonJS({
|
|
|
17768
17762
|
this.code = code;
|
|
17769
17763
|
}
|
|
17770
17764
|
};
|
|
17771
|
-
|
|
17765
|
+
exports2.AuthApiError = AuthApiError;
|
|
17772
17766
|
function isAuthApiError(error) {
|
|
17773
17767
|
return isAuthError(error) && error.name === "AuthApiError";
|
|
17774
17768
|
}
|
|
@@ -17779,7 +17773,7 @@ var require_errors = __commonJS({
|
|
|
17779
17773
|
this.originalError = originalError;
|
|
17780
17774
|
}
|
|
17781
17775
|
};
|
|
17782
|
-
|
|
17776
|
+
exports2.AuthUnknownError = AuthUnknownError;
|
|
17783
17777
|
var CustomAuthError = class extends AuthError {
|
|
17784
17778
|
constructor(message, name, status, code) {
|
|
17785
17779
|
super(message, status, code);
|
|
@@ -17787,13 +17781,13 @@ var require_errors = __commonJS({
|
|
|
17787
17781
|
this.status = status;
|
|
17788
17782
|
}
|
|
17789
17783
|
};
|
|
17790
|
-
|
|
17784
|
+
exports2.CustomAuthError = CustomAuthError;
|
|
17791
17785
|
var AuthSessionMissingError = class extends CustomAuthError {
|
|
17792
17786
|
constructor() {
|
|
17793
17787
|
super("Auth session missing!", "AuthSessionMissingError", 400, void 0);
|
|
17794
17788
|
}
|
|
17795
17789
|
};
|
|
17796
|
-
|
|
17790
|
+
exports2.AuthSessionMissingError = AuthSessionMissingError;
|
|
17797
17791
|
function isAuthSessionMissingError(error) {
|
|
17798
17792
|
return isAuthError(error) && error.name === "AuthSessionMissingError";
|
|
17799
17793
|
}
|
|
@@ -17802,13 +17796,13 @@ var require_errors = __commonJS({
|
|
|
17802
17796
|
super("Auth session or user missing", "AuthInvalidTokenResponseError", 500, void 0);
|
|
17803
17797
|
}
|
|
17804
17798
|
};
|
|
17805
|
-
|
|
17799
|
+
exports2.AuthInvalidTokenResponseError = AuthInvalidTokenResponseError;
|
|
17806
17800
|
var AuthInvalidCredentialsError = class extends CustomAuthError {
|
|
17807
17801
|
constructor(message) {
|
|
17808
17802
|
super(message, "AuthInvalidCredentialsError", 400, void 0);
|
|
17809
17803
|
}
|
|
17810
17804
|
};
|
|
17811
|
-
|
|
17805
|
+
exports2.AuthInvalidCredentialsError = AuthInvalidCredentialsError;
|
|
17812
17806
|
var AuthImplicitGrantRedirectError = class extends CustomAuthError {
|
|
17813
17807
|
constructor(message, details = null) {
|
|
17814
17808
|
super(message, "AuthImplicitGrantRedirectError", 500, void 0);
|
|
@@ -17819,7 +17813,7 @@ var require_errors = __commonJS({
|
|
|
17819
17813
|
return Object.assign(Object.assign({}, super.toJSON()), { details: this.details });
|
|
17820
17814
|
}
|
|
17821
17815
|
};
|
|
17822
|
-
|
|
17816
|
+
exports2.AuthImplicitGrantRedirectError = AuthImplicitGrantRedirectError;
|
|
17823
17817
|
function isAuthImplicitGrantRedirectError(error) {
|
|
17824
17818
|
return isAuthError(error) && error.name === "AuthImplicitGrantRedirectError";
|
|
17825
17819
|
}
|
|
@@ -17833,13 +17827,13 @@ var require_errors = __commonJS({
|
|
|
17833
17827
|
return Object.assign(Object.assign({}, super.toJSON()), { details: this.details });
|
|
17834
17828
|
}
|
|
17835
17829
|
};
|
|
17836
|
-
|
|
17830
|
+
exports2.AuthPKCEGrantCodeExchangeError = AuthPKCEGrantCodeExchangeError;
|
|
17837
17831
|
var AuthPKCECodeVerifierMissingError = class extends CustomAuthError {
|
|
17838
17832
|
constructor() {
|
|
17839
17833
|
super("PKCE code verifier not found in storage. This can happen if the auth flow was initiated in a different browser or device, or if the storage was cleared. For SSR frameworks (Next.js, SvelteKit, etc.), use @supabase/ssr on both the server and client to store the code verifier in cookies.", "AuthPKCECodeVerifierMissingError", 400, "pkce_code_verifier_not_found");
|
|
17840
17834
|
}
|
|
17841
17835
|
};
|
|
17842
|
-
|
|
17836
|
+
exports2.AuthPKCECodeVerifierMissingError = AuthPKCECodeVerifierMissingError;
|
|
17843
17837
|
function isAuthPKCECodeVerifierMissingError(error) {
|
|
17844
17838
|
return isAuthError(error) && error.name === "AuthPKCECodeVerifierMissingError";
|
|
17845
17839
|
}
|
|
@@ -17848,7 +17842,7 @@ var require_errors = __commonJS({
|
|
|
17848
17842
|
super(message, "AuthRetryableFetchError", status, void 0);
|
|
17849
17843
|
}
|
|
17850
17844
|
};
|
|
17851
|
-
|
|
17845
|
+
exports2.AuthRetryableFetchError = AuthRetryableFetchError;
|
|
17852
17846
|
function isAuthRetryableFetchError(error) {
|
|
17853
17847
|
return isAuthError(error) && error.name === "AuthRetryableFetchError";
|
|
17854
17848
|
}
|
|
@@ -17861,7 +17855,7 @@ var require_errors = __commonJS({
|
|
|
17861
17855
|
return Object.assign(Object.assign({}, super.toJSON()), { reasons: this.reasons });
|
|
17862
17856
|
}
|
|
17863
17857
|
};
|
|
17864
|
-
|
|
17858
|
+
exports2.AuthWeakPasswordError = AuthWeakPasswordError;
|
|
17865
17859
|
function isAuthWeakPasswordError(error) {
|
|
17866
17860
|
return isAuthError(error) && error.name === "AuthWeakPasswordError";
|
|
17867
17861
|
}
|
|
@@ -17870,25 +17864,25 @@ var require_errors = __commonJS({
|
|
|
17870
17864
|
super(message, "AuthInvalidJwtError", 400, "invalid_jwt");
|
|
17871
17865
|
}
|
|
17872
17866
|
};
|
|
17873
|
-
|
|
17867
|
+
exports2.AuthInvalidJwtError = AuthInvalidJwtError;
|
|
17874
17868
|
}
|
|
17875
17869
|
});
|
|
17876
17870
|
|
|
17877
17871
|
// node_modules/@supabase/auth-js/dist/main/lib/base64url.js
|
|
17878
17872
|
var require_base64url = __commonJS({
|
|
17879
|
-
"node_modules/@supabase/auth-js/dist/main/lib/base64url.js"(
|
|
17873
|
+
"node_modules/@supabase/auth-js/dist/main/lib/base64url.js"(exports2) {
|
|
17880
17874
|
"use strict";
|
|
17881
|
-
Object.defineProperty(
|
|
17882
|
-
|
|
17883
|
-
|
|
17884
|
-
|
|
17885
|
-
|
|
17886
|
-
|
|
17887
|
-
|
|
17888
|
-
|
|
17889
|
-
|
|
17890
|
-
|
|
17891
|
-
|
|
17875
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
17876
|
+
exports2.byteToBase64URL = byteToBase64URL;
|
|
17877
|
+
exports2.byteFromBase64URL = byteFromBase64URL;
|
|
17878
|
+
exports2.stringToBase64URL = stringToBase64URL;
|
|
17879
|
+
exports2.stringFromBase64URL = stringFromBase64URL;
|
|
17880
|
+
exports2.codepointToUTF8 = codepointToUTF8;
|
|
17881
|
+
exports2.stringToUTF8 = stringToUTF8;
|
|
17882
|
+
exports2.stringFromUTF8 = stringFromUTF8;
|
|
17883
|
+
exports2.base64UrlToUint8Array = base64UrlToUint8Array;
|
|
17884
|
+
exports2.stringToUint8Array = stringToUint8Array;
|
|
17885
|
+
exports2.bytesToBase64URL = bytesToBase64URL;
|
|
17892
17886
|
var TO_BASE64URL = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".split("");
|
|
17893
17887
|
var IGNORE_BASE64URL = " \n\r=".split("");
|
|
17894
17888
|
var FROM_BASE64URL = (() => {
|
|
@@ -18066,26 +18060,26 @@ var require_base64url = __commonJS({
|
|
|
18066
18060
|
|
|
18067
18061
|
// node_modules/@supabase/auth-js/dist/main/lib/helpers.js
|
|
18068
18062
|
var require_helpers = __commonJS({
|
|
18069
|
-
"node_modules/@supabase/auth-js/dist/main/lib/helpers.js"(
|
|
18063
|
+
"node_modules/@supabase/auth-js/dist/main/lib/helpers.js"(exports2) {
|
|
18070
18064
|
"use strict";
|
|
18071
|
-
Object.defineProperty(
|
|
18072
|
-
|
|
18073
|
-
|
|
18074
|
-
|
|
18075
|
-
|
|
18076
|
-
|
|
18077
|
-
|
|
18078
|
-
|
|
18079
|
-
|
|
18080
|
-
|
|
18081
|
-
|
|
18082
|
-
|
|
18083
|
-
|
|
18084
|
-
|
|
18085
|
-
|
|
18086
|
-
|
|
18087
|
-
|
|
18088
|
-
|
|
18065
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
18066
|
+
exports2.Deferred = exports2.removeItemAsync = exports2.getItemAsync = exports2.setItemAsync = exports2.looksLikeFetchResponse = exports2.resolveFetch = exports2.supportsLocalStorage = exports2.isBrowser = void 0;
|
|
18067
|
+
exports2.expiresAt = expiresAt;
|
|
18068
|
+
exports2.generateCallbackId = generateCallbackId;
|
|
18069
|
+
exports2.parseParametersFromURL = parseParametersFromURL;
|
|
18070
|
+
exports2.decodeJWT = decodeJWT;
|
|
18071
|
+
exports2.sleep = sleep2;
|
|
18072
|
+
exports2.retryable = retryable;
|
|
18073
|
+
exports2.generatePKCEVerifier = generatePKCEVerifier;
|
|
18074
|
+
exports2.generatePKCEChallenge = generatePKCEChallenge;
|
|
18075
|
+
exports2.getCodeChallengeAndMethod = getCodeChallengeAndMethod;
|
|
18076
|
+
exports2.parseResponseAPIVersion = parseResponseAPIVersion;
|
|
18077
|
+
exports2.validateExp = validateExp;
|
|
18078
|
+
exports2.getAlgorithm = getAlgorithm;
|
|
18079
|
+
exports2.validateUUID = validateUUID;
|
|
18080
|
+
exports2.userNotAvailableProxy = userNotAvailableProxy;
|
|
18081
|
+
exports2.insecureUserWarningProxy = insecureUserWarningProxy;
|
|
18082
|
+
exports2.deepClone = deepClone;
|
|
18089
18083
|
var constants_1 = require_constants2();
|
|
18090
18084
|
var errors_1 = require_errors();
|
|
18091
18085
|
var base64url_1 = require_base64url();
|
|
@@ -18097,13 +18091,13 @@ var require_helpers = __commonJS({
|
|
|
18097
18091
|
return Symbol("auth-callback");
|
|
18098
18092
|
}
|
|
18099
18093
|
var isBrowser = () => typeof window !== "undefined" && typeof document !== "undefined";
|
|
18100
|
-
|
|
18094
|
+
exports2.isBrowser = isBrowser;
|
|
18101
18095
|
var localStorageWriteTests = {
|
|
18102
18096
|
tested: false,
|
|
18103
18097
|
writable: false
|
|
18104
18098
|
};
|
|
18105
18099
|
var supportsLocalStorage = () => {
|
|
18106
|
-
if (!(0,
|
|
18100
|
+
if (!(0, exports2.isBrowser)()) {
|
|
18107
18101
|
return false;
|
|
18108
18102
|
}
|
|
18109
18103
|
try {
|
|
@@ -18128,7 +18122,7 @@ var require_helpers = __commonJS({
|
|
|
18128
18122
|
}
|
|
18129
18123
|
return localStorageWriteTests.writable;
|
|
18130
18124
|
};
|
|
18131
|
-
|
|
18125
|
+
exports2.supportsLocalStorage = supportsLocalStorage;
|
|
18132
18126
|
function parseParametersFromURL(href) {
|
|
18133
18127
|
const result = {};
|
|
18134
18128
|
const url = new URL(href);
|
|
@@ -18152,15 +18146,15 @@ var require_helpers = __commonJS({
|
|
|
18152
18146
|
}
|
|
18153
18147
|
return (...args) => fetch(...args);
|
|
18154
18148
|
};
|
|
18155
|
-
|
|
18149
|
+
exports2.resolveFetch = resolveFetch3;
|
|
18156
18150
|
var looksLikeFetchResponse = (maybeResponse) => {
|
|
18157
18151
|
return typeof maybeResponse === "object" && maybeResponse !== null && "status" in maybeResponse && "ok" in maybeResponse && "json" in maybeResponse && typeof maybeResponse.json === "function";
|
|
18158
18152
|
};
|
|
18159
|
-
|
|
18153
|
+
exports2.looksLikeFetchResponse = looksLikeFetchResponse;
|
|
18160
18154
|
var setItemAsync = async (storage, key, data) => {
|
|
18161
18155
|
await storage.setItem(key, JSON.stringify(data));
|
|
18162
18156
|
};
|
|
18163
|
-
|
|
18157
|
+
exports2.setItemAsync = setItemAsync;
|
|
18164
18158
|
var getItemAsync = async (storage, key) => {
|
|
18165
18159
|
const value = await storage.getItem(key);
|
|
18166
18160
|
if (!value) {
|
|
@@ -18172,11 +18166,11 @@ var require_helpers = __commonJS({
|
|
|
18172
18166
|
return value;
|
|
18173
18167
|
}
|
|
18174
18168
|
};
|
|
18175
|
-
|
|
18169
|
+
exports2.getItemAsync = getItemAsync;
|
|
18176
18170
|
var removeItemAsync = async (storage, key) => {
|
|
18177
18171
|
await storage.removeItem(key);
|
|
18178
18172
|
};
|
|
18179
|
-
|
|
18173
|
+
exports2.removeItemAsync = removeItemAsync;
|
|
18180
18174
|
var Deferred = class _Deferred {
|
|
18181
18175
|
constructor() {
|
|
18182
18176
|
;
|
|
@@ -18187,7 +18181,7 @@ var require_helpers = __commonJS({
|
|
|
18187
18181
|
});
|
|
18188
18182
|
}
|
|
18189
18183
|
};
|
|
18190
|
-
|
|
18184
|
+
exports2.Deferred = Deferred;
|
|
18191
18185
|
Deferred.promiseConstructor = Promise;
|
|
18192
18186
|
function decodeJWT(token) {
|
|
18193
18187
|
const parts = token.split(".");
|
|
@@ -18278,7 +18272,7 @@ var require_helpers = __commonJS({
|
|
|
18278
18272
|
if (isPasswordRecovery) {
|
|
18279
18273
|
storedCodeVerifier += "/PASSWORD_RECOVERY";
|
|
18280
18274
|
}
|
|
18281
|
-
await (0,
|
|
18275
|
+
await (0, exports2.setItemAsync)(storage, `${storageKey}-code-verifier`, storedCodeVerifier);
|
|
18282
18276
|
const codeChallenge = await generatePKCEChallenge(codeVerifier);
|
|
18283
18277
|
const codeChallengeMethod = codeVerifier === codeChallenge ? "plain" : "s256";
|
|
18284
18278
|
return [codeChallenge, codeChallengeMethod];
|
|
@@ -18382,17 +18376,17 @@ var require_helpers = __commonJS({
|
|
|
18382
18376
|
|
|
18383
18377
|
// node_modules/@supabase/auth-js/dist/main/lib/fetch.js
|
|
18384
18378
|
var require_fetch = __commonJS({
|
|
18385
|
-
"node_modules/@supabase/auth-js/dist/main/lib/fetch.js"(
|
|
18379
|
+
"node_modules/@supabase/auth-js/dist/main/lib/fetch.js"(exports2) {
|
|
18386
18380
|
"use strict";
|
|
18387
|
-
Object.defineProperty(
|
|
18388
|
-
|
|
18389
|
-
|
|
18390
|
-
|
|
18391
|
-
|
|
18392
|
-
|
|
18393
|
-
|
|
18394
|
-
|
|
18395
|
-
|
|
18381
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
18382
|
+
exports2.handleError = handleError2;
|
|
18383
|
+
exports2._request = _request;
|
|
18384
|
+
exports2._sessionResponse = _sessionResponse;
|
|
18385
|
+
exports2._sessionResponsePassword = _sessionResponsePassword;
|
|
18386
|
+
exports2._userResponse = _userResponse;
|
|
18387
|
+
exports2._ssoResponse = _ssoResponse;
|
|
18388
|
+
exports2._generateLinkResponse = _generateLinkResponse;
|
|
18389
|
+
exports2._noResolveJsonResponse = _noResolveJsonResponse;
|
|
18396
18390
|
var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports));
|
|
18397
18391
|
var constants_1 = require_constants2();
|
|
18398
18392
|
var helpers_1 = require_helpers();
|
|
@@ -18537,19 +18531,19 @@ var require_fetch = __commonJS({
|
|
|
18537
18531
|
|
|
18538
18532
|
// node_modules/@supabase/auth-js/dist/main/lib/types.js
|
|
18539
18533
|
var require_types2 = __commonJS({
|
|
18540
|
-
"node_modules/@supabase/auth-js/dist/main/lib/types.js"(
|
|
18534
|
+
"node_modules/@supabase/auth-js/dist/main/lib/types.js"(exports2) {
|
|
18541
18535
|
"use strict";
|
|
18542
|
-
Object.defineProperty(
|
|
18543
|
-
|
|
18544
|
-
|
|
18536
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
18537
|
+
exports2.SIGN_OUT_SCOPES = void 0;
|
|
18538
|
+
exports2.SIGN_OUT_SCOPES = ["global", "local", "others"];
|
|
18545
18539
|
}
|
|
18546
18540
|
});
|
|
18547
18541
|
|
|
18548
18542
|
// node_modules/@supabase/auth-js/dist/main/GoTrueAdminApi.js
|
|
18549
18543
|
var require_GoTrueAdminApi = __commonJS({
|
|
18550
|
-
"node_modules/@supabase/auth-js/dist/main/GoTrueAdminApi.js"(
|
|
18544
|
+
"node_modules/@supabase/auth-js/dist/main/GoTrueAdminApi.js"(exports2) {
|
|
18551
18545
|
"use strict";
|
|
18552
|
-
Object.defineProperty(
|
|
18546
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
18553
18547
|
var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports));
|
|
18554
18548
|
var fetch_1 = require_fetch();
|
|
18555
18549
|
var helpers_1 = require_helpers();
|
|
@@ -19569,16 +19563,16 @@ var require_GoTrueAdminApi = __commonJS({
|
|
|
19569
19563
|
}
|
|
19570
19564
|
}
|
|
19571
19565
|
};
|
|
19572
|
-
|
|
19566
|
+
exports2.default = GoTrueAdminApi;
|
|
19573
19567
|
}
|
|
19574
19568
|
});
|
|
19575
19569
|
|
|
19576
19570
|
// node_modules/@supabase/auth-js/dist/main/lib/local-storage.js
|
|
19577
19571
|
var require_local_storage = __commonJS({
|
|
19578
|
-
"node_modules/@supabase/auth-js/dist/main/lib/local-storage.js"(
|
|
19572
|
+
"node_modules/@supabase/auth-js/dist/main/lib/local-storage.js"(exports2) {
|
|
19579
19573
|
"use strict";
|
|
19580
|
-
Object.defineProperty(
|
|
19581
|
-
|
|
19574
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
19575
|
+
exports2.memoryLocalStorageAdapter = memoryLocalStorageAdapter;
|
|
19582
19576
|
function memoryLocalStorageAdapter(store = {}) {
|
|
19583
19577
|
return {
|
|
19584
19578
|
getItem: (key) => {
|
|
@@ -19597,14 +19591,14 @@ var require_local_storage = __commonJS({
|
|
|
19597
19591
|
|
|
19598
19592
|
// node_modules/@supabase/auth-js/dist/main/lib/locks.js
|
|
19599
19593
|
var require_locks = __commonJS({
|
|
19600
|
-
"node_modules/@supabase/auth-js/dist/main/lib/locks.js"(
|
|
19594
|
+
"node_modules/@supabase/auth-js/dist/main/lib/locks.js"(exports2) {
|
|
19601
19595
|
"use strict";
|
|
19602
|
-
Object.defineProperty(
|
|
19603
|
-
|
|
19604
|
-
|
|
19605
|
-
|
|
19596
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
19597
|
+
exports2.ProcessLockAcquireTimeoutError = exports2.NavigatorLockAcquireTimeoutError = exports2.LockAcquireTimeoutError = exports2.internals = void 0;
|
|
19598
|
+
exports2.navigatorLock = navigatorLock;
|
|
19599
|
+
exports2.processLock = processLock;
|
|
19606
19600
|
var helpers_1 = require_helpers();
|
|
19607
|
-
|
|
19601
|
+
exports2.internals = {
|
|
19608
19602
|
/**
|
|
19609
19603
|
* @experimental
|
|
19610
19604
|
*/
|
|
@@ -19616,15 +19610,15 @@ var require_locks = __commonJS({
|
|
|
19616
19610
|
this.isAcquireTimeout = true;
|
|
19617
19611
|
}
|
|
19618
19612
|
};
|
|
19619
|
-
|
|
19613
|
+
exports2.LockAcquireTimeoutError = LockAcquireTimeoutError;
|
|
19620
19614
|
var NavigatorLockAcquireTimeoutError = class extends LockAcquireTimeoutError {
|
|
19621
19615
|
};
|
|
19622
|
-
|
|
19616
|
+
exports2.NavigatorLockAcquireTimeoutError = NavigatorLockAcquireTimeoutError;
|
|
19623
19617
|
var ProcessLockAcquireTimeoutError = class extends LockAcquireTimeoutError {
|
|
19624
19618
|
};
|
|
19625
|
-
|
|
19619
|
+
exports2.ProcessLockAcquireTimeoutError = ProcessLockAcquireTimeoutError;
|
|
19626
19620
|
async function navigatorLock(name, acquireTimeout, fn) {
|
|
19627
|
-
if (
|
|
19621
|
+
if (exports2.internals.debug) {
|
|
19628
19622
|
console.log("@supabase/gotrue-js: navigatorLock: acquire lock", name, acquireTimeout);
|
|
19629
19623
|
}
|
|
19630
19624
|
const abortController = new globalThis.AbortController();
|
|
@@ -19632,7 +19626,7 @@ var require_locks = __commonJS({
|
|
|
19632
19626
|
if (acquireTimeout > 0) {
|
|
19633
19627
|
acquireTimeoutTimer = setTimeout(() => {
|
|
19634
19628
|
abortController.abort();
|
|
19635
|
-
if (
|
|
19629
|
+
if (exports2.internals.debug) {
|
|
19636
19630
|
console.log("@supabase/gotrue-js: navigatorLock acquire timed out", name);
|
|
19637
19631
|
}
|
|
19638
19632
|
}, acquireTimeout);
|
|
@@ -19648,24 +19642,24 @@ var require_locks = __commonJS({
|
|
|
19648
19642
|
}, async (lock) => {
|
|
19649
19643
|
if (lock) {
|
|
19650
19644
|
clearTimeout(acquireTimeoutTimer);
|
|
19651
|
-
if (
|
|
19645
|
+
if (exports2.internals.debug) {
|
|
19652
19646
|
console.log("@supabase/gotrue-js: navigatorLock: acquired", name, lock.name);
|
|
19653
19647
|
}
|
|
19654
19648
|
try {
|
|
19655
19649
|
return await fn();
|
|
19656
19650
|
} finally {
|
|
19657
|
-
if (
|
|
19651
|
+
if (exports2.internals.debug) {
|
|
19658
19652
|
console.log("@supabase/gotrue-js: navigatorLock: released", name, lock.name);
|
|
19659
19653
|
}
|
|
19660
19654
|
}
|
|
19661
19655
|
} else {
|
|
19662
19656
|
if (acquireTimeout === 0) {
|
|
19663
|
-
if (
|
|
19657
|
+
if (exports2.internals.debug) {
|
|
19664
19658
|
console.log("@supabase/gotrue-js: navigatorLock: not immediately available", name);
|
|
19665
19659
|
}
|
|
19666
19660
|
throw new NavigatorLockAcquireTimeoutError(`Acquiring an exclusive Navigator LockManager lock "${name}" immediately failed`);
|
|
19667
19661
|
} else {
|
|
19668
|
-
if (
|
|
19662
|
+
if (exports2.internals.debug) {
|
|
19669
19663
|
try {
|
|
19670
19664
|
const result = await globalThis.navigator.locks.query();
|
|
19671
19665
|
console.log("@supabase/gotrue-js: Navigator LockManager state", JSON.stringify(result, null, " "));
|
|
@@ -19685,7 +19679,7 @@ var require_locks = __commonJS({
|
|
|
19685
19679
|
}
|
|
19686
19680
|
if ((e === null || e === void 0 ? void 0 : e.name) === "AbortError" && acquireTimeout > 0) {
|
|
19687
19681
|
if (abortController.signal.aborted) {
|
|
19688
|
-
if (
|
|
19682
|
+
if (exports2.internals.debug) {
|
|
19689
19683
|
console.log("@supabase/gotrue-js: navigatorLock: acquire timeout, recovering by stealing lock", name);
|
|
19690
19684
|
}
|
|
19691
19685
|
console.warn(`@supabase/gotrue-js: Lock "${name}" was not released within ${acquireTimeout}ms. This may indicate an orphaned lock from a component unmount (e.g., React Strict Mode). Forcefully acquiring the lock to recover.`);
|
|
@@ -19694,13 +19688,13 @@ var require_locks = __commonJS({
|
|
|
19694
19688
|
steal: true
|
|
19695
19689
|
}, async (lock) => {
|
|
19696
19690
|
if (lock) {
|
|
19697
|
-
if (
|
|
19691
|
+
if (exports2.internals.debug) {
|
|
19698
19692
|
console.log("@supabase/gotrue-js: navigatorLock: recovered (stolen)", name, lock.name);
|
|
19699
19693
|
}
|
|
19700
19694
|
try {
|
|
19701
19695
|
return await fn();
|
|
19702
19696
|
} finally {
|
|
19703
|
-
if (
|
|
19697
|
+
if (exports2.internals.debug) {
|
|
19704
19698
|
console.log("@supabase/gotrue-js: navigatorLock: released (stolen)", name, lock.name);
|
|
19705
19699
|
}
|
|
19706
19700
|
}
|
|
@@ -19710,7 +19704,7 @@ var require_locks = __commonJS({
|
|
|
19710
19704
|
}
|
|
19711
19705
|
}));
|
|
19712
19706
|
} else {
|
|
19713
|
-
if (
|
|
19707
|
+
if (exports2.internals.debug) {
|
|
19714
19708
|
console.log("@supabase/gotrue-js: navigatorLock: lock was stolen by another request", name);
|
|
19715
19709
|
}
|
|
19716
19710
|
throw new NavigatorLockAcquireTimeoutError(`Lock "${name}" was released because another request stole it`);
|
|
@@ -19775,10 +19769,10 @@ var require_locks = __commonJS({
|
|
|
19775
19769
|
|
|
19776
19770
|
// node_modules/@supabase/auth-js/dist/main/lib/polyfills.js
|
|
19777
19771
|
var require_polyfills = __commonJS({
|
|
19778
|
-
"node_modules/@supabase/auth-js/dist/main/lib/polyfills.js"(
|
|
19772
|
+
"node_modules/@supabase/auth-js/dist/main/lib/polyfills.js"(exports2) {
|
|
19779
19773
|
"use strict";
|
|
19780
|
-
Object.defineProperty(
|
|
19781
|
-
|
|
19774
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
19775
|
+
exports2.polyfillGlobalThis = polyfillGlobalThis;
|
|
19782
19776
|
function polyfillGlobalThis() {
|
|
19783
19777
|
if (typeof globalThis === "object")
|
|
19784
19778
|
return;
|
|
@@ -19802,13 +19796,13 @@ var require_polyfills = __commonJS({
|
|
|
19802
19796
|
|
|
19803
19797
|
// node_modules/@supabase/auth-js/dist/main/lib/web3/ethereum.js
|
|
19804
19798
|
var require_ethereum = __commonJS({
|
|
19805
|
-
"node_modules/@supabase/auth-js/dist/main/lib/web3/ethereum.js"(
|
|
19799
|
+
"node_modules/@supabase/auth-js/dist/main/lib/web3/ethereum.js"(exports2) {
|
|
19806
19800
|
"use strict";
|
|
19807
|
-
Object.defineProperty(
|
|
19808
|
-
|
|
19809
|
-
|
|
19810
|
-
|
|
19811
|
-
|
|
19801
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
19802
|
+
exports2.getAddress = getAddress;
|
|
19803
|
+
exports2.fromHex = fromHex;
|
|
19804
|
+
exports2.toHex = toHex;
|
|
19805
|
+
exports2.createSiweMessage = createSiweMessage;
|
|
19812
19806
|
function getAddress(address) {
|
|
19813
19807
|
if (!/^0x[a-fA-F0-9]{40}$/.test(address)) {
|
|
19814
19808
|
throw new Error(`@supabase/auth-js: Address "${address}" is invalid.`);
|
|
@@ -19880,13 +19874,13 @@ ${suffix}`;
|
|
|
19880
19874
|
|
|
19881
19875
|
// node_modules/@supabase/auth-js/dist/main/lib/webauthn.errors.js
|
|
19882
19876
|
var require_webauthn_errors = __commonJS({
|
|
19883
|
-
"node_modules/@supabase/auth-js/dist/main/lib/webauthn.errors.js"(
|
|
19877
|
+
"node_modules/@supabase/auth-js/dist/main/lib/webauthn.errors.js"(exports2) {
|
|
19884
19878
|
"use strict";
|
|
19885
|
-
Object.defineProperty(
|
|
19886
|
-
|
|
19887
|
-
|
|
19888
|
-
|
|
19889
|
-
|
|
19879
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
19880
|
+
exports2.WebAuthnUnknownError = exports2.WebAuthnError = void 0;
|
|
19881
|
+
exports2.isWebAuthnError = isWebAuthnError;
|
|
19882
|
+
exports2.identifyRegistrationError = identifyRegistrationError;
|
|
19883
|
+
exports2.identifyAuthenticationError = identifyAuthenticationError;
|
|
19890
19884
|
var webauthn_1 = require_webauthn();
|
|
19891
19885
|
var WebAuthnError = class extends Error {
|
|
19892
19886
|
constructor({ message, code, cause, name }) {
|
|
@@ -19897,7 +19891,7 @@ var require_webauthn_errors = __commonJS({
|
|
|
19897
19891
|
this.code = code;
|
|
19898
19892
|
}
|
|
19899
19893
|
};
|
|
19900
|
-
|
|
19894
|
+
exports2.WebAuthnError = WebAuthnError;
|
|
19901
19895
|
var WebAuthnUnknownError = class extends WebAuthnError {
|
|
19902
19896
|
constructor(message, originalError) {
|
|
19903
19897
|
super({
|
|
@@ -19909,7 +19903,7 @@ var require_webauthn_errors = __commonJS({
|
|
|
19909
19903
|
this.originalError = originalError;
|
|
19910
19904
|
}
|
|
19911
19905
|
};
|
|
19912
|
-
|
|
19906
|
+
exports2.WebAuthnUnknownError = WebAuthnUnknownError;
|
|
19913
19907
|
function isWebAuthnError(error) {
|
|
19914
19908
|
return typeof error === "object" && error !== null && "__isWebAuthnError" in error;
|
|
19915
19909
|
}
|
|
@@ -20064,34 +20058,34 @@ var require_webauthn_errors = __commonJS({
|
|
|
20064
20058
|
|
|
20065
20059
|
// node_modules/@supabase/auth-js/dist/main/lib/webauthn.js
|
|
20066
20060
|
var require_webauthn = __commonJS({
|
|
20067
|
-
"node_modules/@supabase/auth-js/dist/main/lib/webauthn.js"(
|
|
20061
|
+
"node_modules/@supabase/auth-js/dist/main/lib/webauthn.js"(exports2) {
|
|
20068
20062
|
"use strict";
|
|
20069
|
-
Object.defineProperty(
|
|
20070
|
-
|
|
20071
|
-
|
|
20072
|
-
|
|
20073
|
-
|
|
20074
|
-
|
|
20075
|
-
|
|
20076
|
-
|
|
20077
|
-
|
|
20078
|
-
|
|
20079
|
-
|
|
20063
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
20064
|
+
exports2.WebAuthnApi = exports2.DEFAULT_REQUEST_OPTIONS = exports2.DEFAULT_CREATION_OPTIONS = exports2.webAuthnAbortService = exports2.WebAuthnAbortService = exports2.identifyAuthenticationError = exports2.identifyRegistrationError = exports2.isWebAuthnError = exports2.WebAuthnError = void 0;
|
|
20065
|
+
exports2.deserializeCredentialCreationOptions = deserializeCredentialCreationOptions;
|
|
20066
|
+
exports2.deserializeCredentialRequestOptions = deserializeCredentialRequestOptions;
|
|
20067
|
+
exports2.serializeCredentialCreationResponse = serializeCredentialCreationResponse;
|
|
20068
|
+
exports2.serializeCredentialRequestResponse = serializeCredentialRequestResponse;
|
|
20069
|
+
exports2.isValidDomain = isValidDomain;
|
|
20070
|
+
exports2.createCredential = createCredential;
|
|
20071
|
+
exports2.getCredential = getCredential;
|
|
20072
|
+
exports2.mergeCredentialCreationOptions = mergeCredentialCreationOptions;
|
|
20073
|
+
exports2.mergeCredentialRequestOptions = mergeCredentialRequestOptions;
|
|
20080
20074
|
var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports));
|
|
20081
20075
|
var base64url_1 = require_base64url();
|
|
20082
20076
|
var errors_1 = require_errors();
|
|
20083
20077
|
var helpers_1 = require_helpers();
|
|
20084
20078
|
var webauthn_errors_1 = require_webauthn_errors();
|
|
20085
|
-
Object.defineProperty(
|
|
20079
|
+
Object.defineProperty(exports2, "identifyAuthenticationError", { enumerable: true, get: function() {
|
|
20086
20080
|
return webauthn_errors_1.identifyAuthenticationError;
|
|
20087
20081
|
} });
|
|
20088
|
-
Object.defineProperty(
|
|
20082
|
+
Object.defineProperty(exports2, "identifyRegistrationError", { enumerable: true, get: function() {
|
|
20089
20083
|
return webauthn_errors_1.identifyRegistrationError;
|
|
20090
20084
|
} });
|
|
20091
|
-
Object.defineProperty(
|
|
20085
|
+
Object.defineProperty(exports2, "isWebAuthnError", { enumerable: true, get: function() {
|
|
20092
20086
|
return webauthn_errors_1.isWebAuthnError;
|
|
20093
20087
|
} });
|
|
20094
|
-
Object.defineProperty(
|
|
20088
|
+
Object.defineProperty(exports2, "WebAuthnError", { enumerable: true, get: function() {
|
|
20095
20089
|
return webauthn_errors_1.WebAuthnError;
|
|
20096
20090
|
} });
|
|
20097
20091
|
var WebAuthnAbortService = class {
|
|
@@ -20127,8 +20121,8 @@ var require_webauthn = __commonJS({
|
|
|
20127
20121
|
}
|
|
20128
20122
|
}
|
|
20129
20123
|
};
|
|
20130
|
-
|
|
20131
|
-
|
|
20124
|
+
exports2.WebAuthnAbortService = WebAuthnAbortService;
|
|
20125
|
+
exports2.webAuthnAbortService = new WebAuthnAbortService();
|
|
20132
20126
|
function deserializeCredentialCreationOptions(options) {
|
|
20133
20127
|
if (!options) {
|
|
20134
20128
|
throw new Error("Credential creation options are required");
|
|
@@ -20301,7 +20295,7 @@ var require_webauthn = __commonJS({
|
|
|
20301
20295
|
};
|
|
20302
20296
|
}
|
|
20303
20297
|
}
|
|
20304
|
-
|
|
20298
|
+
exports2.DEFAULT_CREATION_OPTIONS = {
|
|
20305
20299
|
hints: ["security-key"],
|
|
20306
20300
|
authenticatorSelection: {
|
|
20307
20301
|
authenticatorAttachment: "cross-platform",
|
|
@@ -20312,7 +20306,7 @@ var require_webauthn = __commonJS({
|
|
|
20312
20306
|
},
|
|
20313
20307
|
attestation: "direct"
|
|
20314
20308
|
};
|
|
20315
|
-
|
|
20309
|
+
exports2.DEFAULT_REQUEST_OPTIONS = {
|
|
20316
20310
|
/** set to preferred because older yubikeys don't have PIN/Biometric */
|
|
20317
20311
|
userVerification: "preferred",
|
|
20318
20312
|
hints: ["security-key"],
|
|
@@ -20348,10 +20342,10 @@ var require_webauthn = __commonJS({
|
|
|
20348
20342
|
return result;
|
|
20349
20343
|
}
|
|
20350
20344
|
function mergeCredentialCreationOptions(baseOptions, overrides) {
|
|
20351
|
-
return deepMerge2(
|
|
20345
|
+
return deepMerge2(exports2.DEFAULT_CREATION_OPTIONS, baseOptions, overrides || {});
|
|
20352
20346
|
}
|
|
20353
20347
|
function mergeCredentialRequestOptions(baseOptions, overrides) {
|
|
20354
|
-
return deepMerge2(
|
|
20348
|
+
return deepMerge2(exports2.DEFAULT_REQUEST_OPTIONS, baseOptions, overrides || {});
|
|
20355
20349
|
}
|
|
20356
20350
|
var WebAuthnApi = class {
|
|
20357
20351
|
constructor(client) {
|
|
@@ -20398,7 +20392,7 @@ var require_webauthn = __commonJS({
|
|
|
20398
20392
|
if (!challengeResponse) {
|
|
20399
20393
|
return { data: null, error: challengeError };
|
|
20400
20394
|
}
|
|
20401
|
-
const abortSignal = signal !== null && signal !== void 0 ? signal :
|
|
20395
|
+
const abortSignal = signal !== null && signal !== void 0 ? signal : exports2.webAuthnAbortService.createNewAbortSignal();
|
|
20402
20396
|
if (challengeResponse.webauthn.type === "create") {
|
|
20403
20397
|
const { user } = challengeResponse.webauthn.credential_options.publicKey;
|
|
20404
20398
|
if (!user.name) {
|
|
@@ -20616,15 +20610,15 @@ var require_webauthn = __commonJS({
|
|
|
20616
20610
|
}
|
|
20617
20611
|
}
|
|
20618
20612
|
};
|
|
20619
|
-
|
|
20613
|
+
exports2.WebAuthnApi = WebAuthnApi;
|
|
20620
20614
|
}
|
|
20621
20615
|
});
|
|
20622
20616
|
|
|
20623
20617
|
// node_modules/@supabase/auth-js/dist/main/GoTrueClient.js
|
|
20624
20618
|
var require_GoTrueClient = __commonJS({
|
|
20625
|
-
"node_modules/@supabase/auth-js/dist/main/GoTrueClient.js"(
|
|
20619
|
+
"node_modules/@supabase/auth-js/dist/main/GoTrueClient.js"(exports2) {
|
|
20626
20620
|
"use strict";
|
|
20627
|
-
Object.defineProperty(
|
|
20621
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
20628
20622
|
var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports));
|
|
20629
20623
|
var GoTrueAdminApi_1 = tslib_1.__importDefault(require_GoTrueAdminApi());
|
|
20630
20624
|
var constants_1 = require_constants2();
|
|
@@ -25180,62 +25174,62 @@ var require_GoTrueClient = __commonJS({
|
|
|
25180
25174
|
}
|
|
25181
25175
|
};
|
|
25182
25176
|
GoTrueClient.nextInstanceID = {};
|
|
25183
|
-
|
|
25177
|
+
exports2.default = GoTrueClient;
|
|
25184
25178
|
}
|
|
25185
25179
|
});
|
|
25186
25180
|
|
|
25187
25181
|
// node_modules/@supabase/auth-js/dist/main/AuthAdminApi.js
|
|
25188
25182
|
var require_AuthAdminApi = __commonJS({
|
|
25189
|
-
"node_modules/@supabase/auth-js/dist/main/AuthAdminApi.js"(
|
|
25183
|
+
"node_modules/@supabase/auth-js/dist/main/AuthAdminApi.js"(exports2) {
|
|
25190
25184
|
"use strict";
|
|
25191
|
-
Object.defineProperty(
|
|
25185
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
25192
25186
|
var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports));
|
|
25193
25187
|
var GoTrueAdminApi_1 = tslib_1.__importDefault(require_GoTrueAdminApi());
|
|
25194
25188
|
var AuthAdminApi = GoTrueAdminApi_1.default;
|
|
25195
|
-
|
|
25189
|
+
exports2.default = AuthAdminApi;
|
|
25196
25190
|
}
|
|
25197
25191
|
});
|
|
25198
25192
|
|
|
25199
25193
|
// node_modules/@supabase/auth-js/dist/main/AuthClient.js
|
|
25200
25194
|
var require_AuthClient = __commonJS({
|
|
25201
|
-
"node_modules/@supabase/auth-js/dist/main/AuthClient.js"(
|
|
25195
|
+
"node_modules/@supabase/auth-js/dist/main/AuthClient.js"(exports2) {
|
|
25202
25196
|
"use strict";
|
|
25203
|
-
Object.defineProperty(
|
|
25197
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
25204
25198
|
var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports));
|
|
25205
25199
|
var GoTrueClient_1 = tslib_1.__importDefault(require_GoTrueClient());
|
|
25206
25200
|
var AuthClient2 = GoTrueClient_1.default;
|
|
25207
|
-
|
|
25201
|
+
exports2.default = AuthClient2;
|
|
25208
25202
|
}
|
|
25209
25203
|
});
|
|
25210
25204
|
|
|
25211
25205
|
// node_modules/@supabase/auth-js/dist/main/index.js
|
|
25212
25206
|
var require_main3 = __commonJS({
|
|
25213
|
-
"node_modules/@supabase/auth-js/dist/main/index.js"(
|
|
25207
|
+
"node_modules/@supabase/auth-js/dist/main/index.js"(exports2) {
|
|
25214
25208
|
"use strict";
|
|
25215
|
-
Object.defineProperty(
|
|
25216
|
-
|
|
25209
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
25210
|
+
exports2.processLock = exports2.lockInternals = exports2.NavigatorLockAcquireTimeoutError = exports2.navigatorLock = exports2.AuthClient = exports2.AuthAdminApi = exports2.GoTrueClient = exports2.GoTrueAdminApi = void 0;
|
|
25217
25211
|
var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports));
|
|
25218
25212
|
var GoTrueAdminApi_1 = tslib_1.__importDefault(require_GoTrueAdminApi());
|
|
25219
|
-
|
|
25213
|
+
exports2.GoTrueAdminApi = GoTrueAdminApi_1.default;
|
|
25220
25214
|
var GoTrueClient_1 = tslib_1.__importDefault(require_GoTrueClient());
|
|
25221
|
-
|
|
25215
|
+
exports2.GoTrueClient = GoTrueClient_1.default;
|
|
25222
25216
|
var AuthAdminApi_1 = tslib_1.__importDefault(require_AuthAdminApi());
|
|
25223
|
-
|
|
25217
|
+
exports2.AuthAdminApi = AuthAdminApi_1.default;
|
|
25224
25218
|
var AuthClient_1 = tslib_1.__importDefault(require_AuthClient());
|
|
25225
|
-
|
|
25226
|
-
tslib_1.__exportStar(require_types2(),
|
|
25227
|
-
tslib_1.__exportStar(require_errors(),
|
|
25219
|
+
exports2.AuthClient = AuthClient_1.default;
|
|
25220
|
+
tslib_1.__exportStar(require_types2(), exports2);
|
|
25221
|
+
tslib_1.__exportStar(require_errors(), exports2);
|
|
25228
25222
|
var locks_1 = require_locks();
|
|
25229
|
-
Object.defineProperty(
|
|
25223
|
+
Object.defineProperty(exports2, "navigatorLock", { enumerable: true, get: function() {
|
|
25230
25224
|
return locks_1.navigatorLock;
|
|
25231
25225
|
} });
|
|
25232
|
-
Object.defineProperty(
|
|
25226
|
+
Object.defineProperty(exports2, "NavigatorLockAcquireTimeoutError", { enumerable: true, get: function() {
|
|
25233
25227
|
return locks_1.NavigatorLockAcquireTimeoutError;
|
|
25234
25228
|
} });
|
|
25235
|
-
Object.defineProperty(
|
|
25229
|
+
Object.defineProperty(exports2, "lockInternals", { enumerable: true, get: function() {
|
|
25236
25230
|
return locks_1.internals;
|
|
25237
25231
|
} });
|
|
25238
|
-
Object.defineProperty(
|
|
25232
|
+
Object.defineProperty(exports2, "processLock", { enumerable: true, get: function() {
|
|
25239
25233
|
return locks_1.processLock;
|
|
25240
25234
|
} });
|
|
25241
25235
|
}
|
|
@@ -25284,11 +25278,11 @@ var ValidationError = class extends Error {
|
|
|
25284
25278
|
};
|
|
25285
25279
|
|
|
25286
25280
|
// node_modules/@inquirer/core/dist/esm/lib/use-state.js
|
|
25287
|
-
|
|
25281
|
+
var import_node_async_hooks2 = require("node:async_hooks");
|
|
25288
25282
|
|
|
25289
25283
|
// node_modules/@inquirer/core/dist/esm/lib/hook-engine.js
|
|
25290
|
-
|
|
25291
|
-
var hookStorage = new AsyncLocalStorage();
|
|
25284
|
+
var import_node_async_hooks = require("node:async_hooks");
|
|
25285
|
+
var hookStorage = new import_node_async_hooks.AsyncLocalStorage();
|
|
25292
25286
|
function createStore(rl) {
|
|
25293
25287
|
const store = {
|
|
25294
25288
|
rl,
|
|
@@ -25339,7 +25333,7 @@ function withUpdates(fn) {
|
|
|
25339
25333
|
store.handleChange = oldHandleChange;
|
|
25340
25334
|
return returnValue;
|
|
25341
25335
|
};
|
|
25342
|
-
return AsyncResource.bind(wrapped);
|
|
25336
|
+
return import_node_async_hooks.AsyncResource.bind(wrapped);
|
|
25343
25337
|
}
|
|
25344
25338
|
function withPointer(cb) {
|
|
25345
25339
|
const store = getStore();
|
|
@@ -25395,7 +25389,7 @@ var effectScheduler = {
|
|
|
25395
25389
|
// node_modules/@inquirer/core/dist/esm/lib/use-state.js
|
|
25396
25390
|
function useState(defaultValue) {
|
|
25397
25391
|
return withPointer((pointer) => {
|
|
25398
|
-
const setState =
|
|
25392
|
+
const setState = import_node_async_hooks2.AsyncResource.bind(function setState2(newValue) {
|
|
25399
25393
|
if (pointer.get() !== newValue) {
|
|
25400
25394
|
pointer.set(newValue);
|
|
25401
25395
|
handleChange();
|
|
@@ -25426,15 +25420,15 @@ function useEffect(cb, depArray) {
|
|
|
25426
25420
|
var import_yoctocolors_cjs = __toESM(require_yoctocolors_cjs(), 1);
|
|
25427
25421
|
|
|
25428
25422
|
// node_modules/@inquirer/figures/dist/esm/index.js
|
|
25429
|
-
|
|
25423
|
+
var import_node_process = __toESM(require("node:process"), 1);
|
|
25430
25424
|
function isUnicodeSupported() {
|
|
25431
|
-
if (
|
|
25432
|
-
return
|
|
25425
|
+
if (import_node_process.default.platform !== "win32") {
|
|
25426
|
+
return import_node_process.default.env["TERM"] !== "linux";
|
|
25433
25427
|
}
|
|
25434
|
-
return Boolean(
|
|
25435
|
-
Boolean(
|
|
25436
|
-
|
|
25437
|
-
|
|
25428
|
+
return Boolean(import_node_process.default.env["WT_SESSION"]) || // Windows Terminal
|
|
25429
|
+
Boolean(import_node_process.default.env["TERMINUS_SUBLIME"]) || // Terminus (<0.2.27)
|
|
25430
|
+
import_node_process.default.env["ConEmuTask"] === "{cmd::Cmder}" || // ConEmu and cmder
|
|
25431
|
+
import_node_process.default.env["TERM_PROGRAM"] === "Terminus-Sublime" || import_node_process.default.env["TERM_PROGRAM"] === "vscode" || import_node_process.default.env["TERM"] === "xterm-256color" || import_node_process.default.env["TERM"] === "alacritty" || import_node_process.default.env["TERMINAL_EMULATOR"] === "JetBrains-JediTerm";
|
|
25438
25432
|
}
|
|
25439
25433
|
var common = {
|
|
25440
25434
|
circleQuestionMark: "(?)",
|
|
@@ -25934,9 +25928,9 @@ function usePagination({ items, active, renderItem, pageSize, loop = true }) {
|
|
|
25934
25928
|
}
|
|
25935
25929
|
|
|
25936
25930
|
// node_modules/@inquirer/core/dist/esm/lib/create-prompt.js
|
|
25931
|
+
var readline2 = __toESM(require("node:readline"), 1);
|
|
25932
|
+
var import_node_async_hooks3 = require("node:async_hooks");
|
|
25937
25933
|
var import_mute_stream = __toESM(require_lib(), 1);
|
|
25938
|
-
import * as readline2 from "node:readline";
|
|
25939
|
-
import { AsyncResource as AsyncResource3 } from "node:async_hooks";
|
|
25940
25934
|
|
|
25941
25935
|
// node_modules/signal-exit/dist/mjs/signals.js
|
|
25942
25936
|
var signals = [];
|
|
@@ -26190,7 +26184,7 @@ var {
|
|
|
26190
26184
|
} = signalExitWrap(processOk(process3) ? new SignalExit(process3) : new SignalExitFallback());
|
|
26191
26185
|
|
|
26192
26186
|
// node_modules/@inquirer/core/dist/esm/lib/screen-manager.js
|
|
26193
|
-
|
|
26187
|
+
var import_node_util = require("node:util");
|
|
26194
26188
|
|
|
26195
26189
|
// node_modules/@inquirer/ansi/dist/esm/index.js
|
|
26196
26190
|
var ESC = "\x1B[";
|
|
@@ -26228,7 +26222,7 @@ var ScreenManager = class {
|
|
|
26228
26222
|
}
|
|
26229
26223
|
render(content, bottomContent = "") {
|
|
26230
26224
|
const promptLine = lastLine(content);
|
|
26231
|
-
const rawPromptLine = stripVTControlCharacters(promptLine);
|
|
26225
|
+
const rawPromptLine = (0, import_node_util.stripVTControlCharacters)(promptLine);
|
|
26232
26226
|
let prompt = rawPromptLine;
|
|
26233
26227
|
if (this.rl.line.length > 0) {
|
|
26234
26228
|
prompt = prompt.slice(0, -this.rl.line.length);
|
|
@@ -26334,7 +26328,7 @@ function createPrompt(view) {
|
|
|
26334
26328
|
rl.input.on("keypress", checkCursorPos);
|
|
26335
26329
|
cleanups.add(() => rl.input.removeListener("keypress", checkCursorPos));
|
|
26336
26330
|
return withHooks(rl, (cycle) => {
|
|
26337
|
-
const hooksCleanup =
|
|
26331
|
+
const hooksCleanup = import_node_async_hooks3.AsyncResource.bind(() => effectScheduler.clearAll());
|
|
26338
26332
|
rl.on("close", hooksCleanup);
|
|
26339
26333
|
cleanups.add(() => rl.removeListener("close", hooksCleanup));
|
|
26340
26334
|
cycle(() => {
|
|
@@ -26575,12 +26569,12 @@ var esm_default2 = createPrompt((config, done) => {
|
|
|
26575
26569
|
|
|
26576
26570
|
// node_modules/@inquirer/external-editor/dist/esm/index.js
|
|
26577
26571
|
var import_chardet = __toESM(require_lib2(), 1);
|
|
26572
|
+
var import_child_process = require("child_process");
|
|
26573
|
+
var import_fs = require("fs");
|
|
26574
|
+
var import_node_path = __toESM(require("node:path"), 1);
|
|
26575
|
+
var import_node_os = __toESM(require("node:os"), 1);
|
|
26576
|
+
var import_node_crypto = require("node:crypto");
|
|
26578
26577
|
var import_iconv_lite = __toESM(require_lib3(), 1);
|
|
26579
|
-
import { spawn, spawnSync } from "child_process";
|
|
26580
|
-
import { readFileSync, unlinkSync, writeFileSync } from "fs";
|
|
26581
|
-
import path from "node:path";
|
|
26582
|
-
import os from "node:os";
|
|
26583
|
-
import { randomUUID } from "node:crypto";
|
|
26584
26578
|
|
|
26585
26579
|
// node_modules/@inquirer/external-editor/dist/esm/errors/CreateFileError.js
|
|
26586
26580
|
var CreateFileError = class extends Error {
|
|
@@ -26708,13 +26702,13 @@ var ExternalEditor = class {
|
|
|
26708
26702
|
}
|
|
26709
26703
|
createTemporaryFile() {
|
|
26710
26704
|
try {
|
|
26711
|
-
const baseDir = this.fileOptions.dir ??
|
|
26712
|
-
const id = randomUUID();
|
|
26705
|
+
const baseDir = this.fileOptions.dir ?? import_node_os.default.tmpdir();
|
|
26706
|
+
const id = (0, import_node_crypto.randomUUID)();
|
|
26713
26707
|
const prefix = sanitizeAffix(this.fileOptions.prefix);
|
|
26714
26708
|
const postfix = sanitizeAffix(this.fileOptions.postfix);
|
|
26715
26709
|
const filename = `${prefix}${id}${postfix}`;
|
|
26716
|
-
const candidate =
|
|
26717
|
-
const baseResolved =
|
|
26710
|
+
const candidate = import_node_path.default.resolve(baseDir, filename);
|
|
26711
|
+
const baseResolved = import_node_path.default.resolve(baseDir) + import_node_path.default.sep;
|
|
26718
26712
|
if (!candidate.startsWith(baseResolved)) {
|
|
26719
26713
|
throw new Error("Resolved temporary file escaped the base directory");
|
|
26720
26714
|
}
|
|
@@ -26723,14 +26717,14 @@ var ExternalEditor = class {
|
|
|
26723
26717
|
if (Object.prototype.hasOwnProperty.call(this.fileOptions, "mode")) {
|
|
26724
26718
|
opt.mode = this.fileOptions.mode;
|
|
26725
26719
|
}
|
|
26726
|
-
writeFileSync(this.tempFile, this.text, opt);
|
|
26720
|
+
(0, import_fs.writeFileSync)(this.tempFile, this.text, opt);
|
|
26727
26721
|
} catch (createFileError) {
|
|
26728
26722
|
throw new CreateFileError(createFileError);
|
|
26729
26723
|
}
|
|
26730
26724
|
}
|
|
26731
26725
|
readTemporaryFile() {
|
|
26732
26726
|
try {
|
|
26733
|
-
const tempFileBuffer = readFileSync(this.tempFile);
|
|
26727
|
+
const tempFileBuffer = (0, import_fs.readFileSync)(this.tempFile);
|
|
26734
26728
|
if (tempFileBuffer.length === 0) {
|
|
26735
26729
|
this.text = "";
|
|
26736
26730
|
} else {
|
|
@@ -26746,14 +26740,14 @@ var ExternalEditor = class {
|
|
|
26746
26740
|
}
|
|
26747
26741
|
removeTemporaryFile() {
|
|
26748
26742
|
try {
|
|
26749
|
-
unlinkSync(this.tempFile);
|
|
26743
|
+
(0, import_fs.unlinkSync)(this.tempFile);
|
|
26750
26744
|
} catch (removeFileError) {
|
|
26751
26745
|
throw new RemoveFileError(removeFileError);
|
|
26752
26746
|
}
|
|
26753
26747
|
}
|
|
26754
26748
|
launchEditor() {
|
|
26755
26749
|
try {
|
|
26756
|
-
const editorProcess = spawnSync(this.editor.bin, this.editor.args.concat([this.tempFile]), { stdio: "inherit" });
|
|
26750
|
+
const editorProcess = (0, import_child_process.spawnSync)(this.editor.bin, this.editor.args.concat([this.tempFile]), { stdio: "inherit" });
|
|
26757
26751
|
this.lastExitStatus = editorProcess.status ?? 0;
|
|
26758
26752
|
} catch (launchError) {
|
|
26759
26753
|
throw new LaunchEditorError(launchError);
|
|
@@ -26761,7 +26755,7 @@ var ExternalEditor = class {
|
|
|
26761
26755
|
}
|
|
26762
26756
|
launchEditorAsync(callback) {
|
|
26763
26757
|
try {
|
|
26764
|
-
const editorProcess = spawn(this.editor.bin, this.editor.args.concat([this.tempFile]), { stdio: "inherit" });
|
|
26758
|
+
const editorProcess = (0, import_child_process.spawn)(this.editor.bin, this.editor.args.concat([this.tempFile]), { stdio: "inherit" });
|
|
26765
26759
|
editorProcess.on("exit", (code) => {
|
|
26766
26760
|
this.lastExitStatus = code;
|
|
26767
26761
|
setImmediate(callback);
|
|
@@ -27830,16 +27824,16 @@ var ansiStyles = assembleStyles();
|
|
|
27830
27824
|
var ansi_styles_default = ansiStyles;
|
|
27831
27825
|
|
|
27832
27826
|
// node_modules/chalk/source/vendor/supports-color/index.js
|
|
27833
|
-
|
|
27834
|
-
|
|
27835
|
-
|
|
27836
|
-
function hasFlag(flag, argv = globalThis.Deno ? globalThis.Deno.args :
|
|
27827
|
+
var import_node_process2 = __toESM(require("node:process"), 1);
|
|
27828
|
+
var import_node_os2 = __toESM(require("node:os"), 1);
|
|
27829
|
+
var import_node_tty = __toESM(require("node:tty"), 1);
|
|
27830
|
+
function hasFlag(flag, argv = globalThis.Deno ? globalThis.Deno.args : import_node_process2.default.argv) {
|
|
27837
27831
|
const prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
|
|
27838
27832
|
const position = argv.indexOf(prefix + flag);
|
|
27839
27833
|
const terminatorPosition = argv.indexOf("--");
|
|
27840
27834
|
return position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);
|
|
27841
27835
|
}
|
|
27842
|
-
var { env } =
|
|
27836
|
+
var { env } = import_node_process2.default;
|
|
27843
27837
|
var flagForceColor;
|
|
27844
27838
|
if (hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false") || hasFlag("color=never")) {
|
|
27845
27839
|
flagForceColor = 0;
|
|
@@ -27895,8 +27889,8 @@ function _supportsColor(haveStream, { streamIsTTY, sniffFlags = true } = {}) {
|
|
|
27895
27889
|
if (env.TERM === "dumb") {
|
|
27896
27890
|
return min;
|
|
27897
27891
|
}
|
|
27898
|
-
if (
|
|
27899
|
-
const osRelease =
|
|
27892
|
+
if (import_node_process2.default.platform === "win32") {
|
|
27893
|
+
const osRelease = import_node_os2.default.release().split(".");
|
|
27900
27894
|
if (Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) {
|
|
27901
27895
|
return Number(osRelease[2]) >= 14931 ? 3 : 2;
|
|
27902
27896
|
}
|
|
@@ -27956,8 +27950,8 @@ function createSupportsColor(stream2, options = {}) {
|
|
|
27956
27950
|
return translateLevel(level);
|
|
27957
27951
|
}
|
|
27958
27952
|
var supportsColor = {
|
|
27959
|
-
stdout: createSupportsColor({ isTTY:
|
|
27960
|
-
stderr: createSupportsColor({ isTTY:
|
|
27953
|
+
stdout: createSupportsColor({ isTTY: import_node_tty.default.isatty(1) }),
|
|
27954
|
+
stderr: createSupportsColor({ isTTY: import_node_tty.default.isatty(2) })
|
|
27961
27955
|
};
|
|
27962
27956
|
var supports_color_default = supportsColor;
|
|
27963
27957
|
|
|
@@ -28139,13 +28133,13 @@ var chalkStderr = createChalk({ level: stderrColor ? stderrColor.level : 0 });
|
|
|
28139
28133
|
var source_default = chalk;
|
|
28140
28134
|
|
|
28141
28135
|
// node_modules/ora/index.js
|
|
28142
|
-
|
|
28136
|
+
var import_node_process8 = __toESM(require("node:process"), 1);
|
|
28143
28137
|
|
|
28144
28138
|
// node_modules/cli-cursor/index.js
|
|
28145
|
-
|
|
28139
|
+
var import_node_process4 = __toESM(require("node:process"), 1);
|
|
28146
28140
|
|
|
28147
28141
|
// node_modules/restore-cursor/index.js
|
|
28148
|
-
|
|
28142
|
+
var import_node_process3 = __toESM(require("node:process"), 1);
|
|
28149
28143
|
|
|
28150
28144
|
// node_modules/mimic-function/index.js
|
|
28151
28145
|
var copyProperty = (to, from, property, ignoreNonConfigurable) => {
|
|
@@ -28225,7 +28219,7 @@ onetime.callCount = (function_) => {
|
|
|
28225
28219
|
var onetime_default = onetime;
|
|
28226
28220
|
|
|
28227
28221
|
// node_modules/restore-cursor/index.js
|
|
28228
|
-
var terminal =
|
|
28222
|
+
var terminal = import_node_process3.default.stderr.isTTY ? import_node_process3.default.stderr : import_node_process3.default.stdout.isTTY ? import_node_process3.default.stdout : void 0;
|
|
28229
28223
|
var restoreCursor = terminal ? onetime_default(() => {
|
|
28230
28224
|
onExit(() => {
|
|
28231
28225
|
terminal.write("\x1B[?25h");
|
|
@@ -28237,14 +28231,14 @@ var restore_cursor_default = restoreCursor;
|
|
|
28237
28231
|
// node_modules/cli-cursor/index.js
|
|
28238
28232
|
var isHidden = false;
|
|
28239
28233
|
var cliCursor = {};
|
|
28240
|
-
cliCursor.show = (writableStream =
|
|
28234
|
+
cliCursor.show = (writableStream = import_node_process4.default.stderr) => {
|
|
28241
28235
|
if (!writableStream.isTTY) {
|
|
28242
28236
|
return;
|
|
28243
28237
|
}
|
|
28244
28238
|
isHidden = false;
|
|
28245
28239
|
writableStream.write("\x1B[?25h");
|
|
28246
28240
|
};
|
|
28247
|
-
cliCursor.hide = (writableStream =
|
|
28241
|
+
cliCursor.hide = (writableStream = import_node_process4.default.stderr) => {
|
|
28248
28242
|
if (!writableStream.isTTY) {
|
|
28249
28243
|
return;
|
|
28250
28244
|
}
|
|
@@ -28268,12 +28262,12 @@ var cli_cursor_default = cliCursor;
|
|
|
28268
28262
|
var import_cli_spinners = __toESM(require_cli_spinners(), 1);
|
|
28269
28263
|
|
|
28270
28264
|
// node_modules/log-symbols/node_modules/is-unicode-supported/index.js
|
|
28271
|
-
|
|
28265
|
+
var import_node_process5 = __toESM(require("node:process"), 1);
|
|
28272
28266
|
function isUnicodeSupported2() {
|
|
28273
|
-
if (
|
|
28274
|
-
return
|
|
28267
|
+
if (import_node_process5.default.platform !== "win32") {
|
|
28268
|
+
return import_node_process5.default.env.TERM !== "linux";
|
|
28275
28269
|
}
|
|
28276
|
-
return Boolean(
|
|
28270
|
+
return Boolean(import_node_process5.default.env.CI) || Boolean(import_node_process5.default.env.WT_SESSION) || Boolean(import_node_process5.default.env.TERMINUS_SUBLIME) || import_node_process5.default.env.ConEmuTask === "{cmd::Cmder}" || import_node_process5.default.env.TERM_PROGRAM === "Terminus-Sublime" || import_node_process5.default.env.TERM_PROGRAM === "vscode" || import_node_process5.default.env.TERM === "xterm-256color" || import_node_process5.default.env.TERM === "alacritty" || import_node_process5.default.env.TERMINAL_EMULATOR === "JetBrains-JediTerm";
|
|
28277
28271
|
}
|
|
28278
28272
|
|
|
28279
28273
|
// node_modules/log-symbols/index.js
|
|
@@ -28460,18 +28454,18 @@ function isInteractive({ stream: stream2 = process.stdout } = {}) {
|
|
|
28460
28454
|
}
|
|
28461
28455
|
|
|
28462
28456
|
// node_modules/is-unicode-supported/index.js
|
|
28463
|
-
|
|
28457
|
+
var import_node_process6 = __toESM(require("node:process"), 1);
|
|
28464
28458
|
function isUnicodeSupported3() {
|
|
28465
|
-
const { env: env2 } =
|
|
28459
|
+
const { env: env2 } = import_node_process6.default;
|
|
28466
28460
|
const { TERM, TERM_PROGRAM } = env2;
|
|
28467
|
-
if (
|
|
28461
|
+
if (import_node_process6.default.platform !== "win32") {
|
|
28468
28462
|
return TERM !== "linux";
|
|
28469
28463
|
}
|
|
28470
28464
|
return Boolean(env2.WT_SESSION) || Boolean(env2.TERMINUS_SUBLIME) || env2.ConEmuTask === "{cmd::Cmder}" || TERM_PROGRAM === "Terminus-Sublime" || TERM_PROGRAM === "vscode" || TERM === "xterm-256color" || TERM === "alacritty" || TERM === "rxvt-unicode" || TERM === "rxvt-unicode-256color" || env2.TERMINAL_EMULATOR === "JetBrains-JediTerm";
|
|
28471
28465
|
}
|
|
28472
28466
|
|
|
28473
28467
|
// node_modules/stdin-discarder/index.js
|
|
28474
|
-
|
|
28468
|
+
var import_node_process7 = __toESM(require("node:process"), 1);
|
|
28475
28469
|
var ASCII_ETX_CODE = 3;
|
|
28476
28470
|
var StdinDiscarder = class {
|
|
28477
28471
|
#activeCount = 0;
|
|
@@ -28491,24 +28485,24 @@ var StdinDiscarder = class {
|
|
|
28491
28485
|
}
|
|
28492
28486
|
}
|
|
28493
28487
|
#realStart() {
|
|
28494
|
-
if (
|
|
28488
|
+
if (import_node_process7.default.platform === "win32" || !import_node_process7.default.stdin.isTTY) {
|
|
28495
28489
|
return;
|
|
28496
28490
|
}
|
|
28497
|
-
|
|
28498
|
-
|
|
28499
|
-
|
|
28491
|
+
import_node_process7.default.stdin.setRawMode(true);
|
|
28492
|
+
import_node_process7.default.stdin.on("data", this.#handleInput);
|
|
28493
|
+
import_node_process7.default.stdin.resume();
|
|
28500
28494
|
}
|
|
28501
28495
|
#realStop() {
|
|
28502
|
-
if (!
|
|
28496
|
+
if (!import_node_process7.default.stdin.isTTY) {
|
|
28503
28497
|
return;
|
|
28504
28498
|
}
|
|
28505
|
-
|
|
28506
|
-
|
|
28507
|
-
|
|
28499
|
+
import_node_process7.default.stdin.off("data", this.#handleInput);
|
|
28500
|
+
import_node_process7.default.stdin.pause();
|
|
28501
|
+
import_node_process7.default.stdin.setRawMode(false);
|
|
28508
28502
|
}
|
|
28509
28503
|
#handleInput(chunk) {
|
|
28510
28504
|
if (chunk[0] === ASCII_ETX_CODE) {
|
|
28511
|
-
|
|
28505
|
+
import_node_process7.default.emit("SIGINT");
|
|
28512
28506
|
}
|
|
28513
28507
|
}
|
|
28514
28508
|
};
|
|
@@ -28543,7 +28537,7 @@ var Ora = class {
|
|
|
28543
28537
|
}
|
|
28544
28538
|
this.#options = {
|
|
28545
28539
|
color: "cyan",
|
|
28546
|
-
stream:
|
|
28540
|
+
stream: import_node_process8.default.stderr,
|
|
28547
28541
|
discardStdin: true,
|
|
28548
28542
|
hideCursor: true,
|
|
28549
28543
|
...options
|
|
@@ -28558,7 +28552,7 @@ var Ora = class {
|
|
|
28558
28552
|
this.prefixText = this.#options.prefixText;
|
|
28559
28553
|
this.suffixText = this.#options.suffixText;
|
|
28560
28554
|
this.indent = this.#options.indent;
|
|
28561
|
-
if (
|
|
28555
|
+
if (import_node_process8.default.env.NODE_ENV === "test") {
|
|
28562
28556
|
this._stream = this.#stream;
|
|
28563
28557
|
this._isEnabled = this.#isEnabled;
|
|
28564
28558
|
Object.defineProperty(this, "_linesToClear", {
|
|
@@ -28748,7 +28742,7 @@ var Ora = class {
|
|
|
28748
28742
|
if (this.#options.hideCursor) {
|
|
28749
28743
|
cli_cursor_default.hide(this.#stream);
|
|
28750
28744
|
}
|
|
28751
|
-
if (this.#options.discardStdin &&
|
|
28745
|
+
if (this.#options.discardStdin && import_node_process8.default.stdin.isTTY) {
|
|
28752
28746
|
this.#isDiscardingStdin = true;
|
|
28753
28747
|
stdin_discarder_default.start();
|
|
28754
28748
|
}
|
|
@@ -28767,7 +28761,7 @@ var Ora = class {
|
|
|
28767
28761
|
if (this.#options.hideCursor) {
|
|
28768
28762
|
cli_cursor_default.show(this.#stream);
|
|
28769
28763
|
}
|
|
28770
|
-
if (this.#options.discardStdin &&
|
|
28764
|
+
if (this.#options.discardStdin && import_node_process8.default.stdin.isTTY && this.#isDiscardingStdin) {
|
|
28771
28765
|
stdin_discarder_default.stop();
|
|
28772
28766
|
this.#isDiscardingStdin = false;
|
|
28773
28767
|
}
|
|
@@ -30611,12 +30605,12 @@ minimatch.escape = escape;
|
|
|
30611
30605
|
minimatch.unescape = unescape;
|
|
30612
30606
|
|
|
30613
30607
|
// node_modules/glob/dist/esm/glob.js
|
|
30614
|
-
|
|
30608
|
+
var import_node_url2 = require("node:url");
|
|
30615
30609
|
|
|
30616
30610
|
// node_modules/lru-cache/dist/esm/node/index.min.js
|
|
30617
|
-
|
|
30618
|
-
var S =
|
|
30619
|
-
var W =
|
|
30611
|
+
var import_node_diagnostics_channel = require("node:diagnostics_channel");
|
|
30612
|
+
var S = (0, import_node_diagnostics_channel.channel)("lru-cache:metrics");
|
|
30613
|
+
var W = (0, import_node_diagnostics_channel.tracingChannel)("lru-cache");
|
|
30620
30614
|
var D = () => S.hasSubscribers || W.hasSubscribers;
|
|
30621
30615
|
var G = typeof performance == "object" && performance && typeof performance.now == "function" ? performance : Date;
|
|
30622
30616
|
var M = /* @__PURE__ */ new Set();
|
|
@@ -31261,24 +31255,24 @@ var L = class u2 {
|
|
|
31261
31255
|
};
|
|
31262
31256
|
|
|
31263
31257
|
// node_modules/path-scurry/dist/esm/index.js
|
|
31264
|
-
|
|
31265
|
-
|
|
31266
|
-
|
|
31267
|
-
|
|
31268
|
-
|
|
31258
|
+
var import_node_path2 = require("node:path");
|
|
31259
|
+
var import_node_url = require("node:url");
|
|
31260
|
+
var import_fs2 = require("fs");
|
|
31261
|
+
var actualFS = __toESM(require("node:fs"), 1);
|
|
31262
|
+
var import_promises = require("node:fs/promises");
|
|
31269
31263
|
|
|
31270
31264
|
// node_modules/minipass/dist/esm/index.js
|
|
31271
|
-
|
|
31272
|
-
|
|
31273
|
-
|
|
31265
|
+
var import_node_events = require("node:events");
|
|
31266
|
+
var import_node_stream = __toESM(require("node:stream"), 1);
|
|
31267
|
+
var import_node_string_decoder = require("node:string_decoder");
|
|
31274
31268
|
var proc = typeof process === "object" && process ? process : {
|
|
31275
31269
|
stdout: null,
|
|
31276
31270
|
stderr: null
|
|
31277
31271
|
};
|
|
31278
|
-
var isStream = (s) => !!s && typeof s === "object" && (s instanceof Minipass || s instanceof
|
|
31279
|
-
var isReadable = (s) => !!s && typeof s === "object" && s instanceof EventEmitter && typeof s.pipe === "function" && // node core Writable streams have a pipe() method, but it throws
|
|
31280
|
-
s.pipe !==
|
|
31281
|
-
var isWritable = (s) => !!s && typeof s === "object" && s instanceof EventEmitter && typeof s.write === "function" && typeof s.end === "function";
|
|
31272
|
+
var isStream = (s) => !!s && typeof s === "object" && (s instanceof Minipass || s instanceof import_node_stream.default || isReadable(s) || isWritable(s));
|
|
31273
|
+
var isReadable = (s) => !!s && typeof s === "object" && s instanceof import_node_events.EventEmitter && typeof s.pipe === "function" && // node core Writable streams have a pipe() method, but it throws
|
|
31274
|
+
s.pipe !== import_node_stream.default.Writable.prototype.pipe;
|
|
31275
|
+
var isWritable = (s) => !!s && typeof s === "object" && s instanceof import_node_events.EventEmitter && typeof s.write === "function" && typeof s.end === "function";
|
|
31282
31276
|
var EOF = Symbol("EOF");
|
|
31283
31277
|
var MAYBE_EMIT_END = Symbol("maybeEmitEnd");
|
|
31284
31278
|
var EMITTED_END = Symbol("emittedEnd");
|
|
@@ -31354,7 +31348,7 @@ var PipeProxyErrors = class extends Pipe {
|
|
|
31354
31348
|
};
|
|
31355
31349
|
var isObjectModeOptions = (o) => !!o.objectMode;
|
|
31356
31350
|
var isEncodingOptions = (o) => !o.objectMode && !!o.encoding && o.encoding !== "buffer";
|
|
31357
|
-
var Minipass = class extends EventEmitter {
|
|
31351
|
+
var Minipass = class extends import_node_events.EventEmitter {
|
|
31358
31352
|
[FLOWING] = false;
|
|
31359
31353
|
[PAUSED] = false;
|
|
31360
31354
|
[PIPES] = [];
|
|
@@ -31405,7 +31399,7 @@ var Minipass = class extends EventEmitter {
|
|
|
31405
31399
|
this[ENCODING] = null;
|
|
31406
31400
|
}
|
|
31407
31401
|
this[ASYNC] = !!options.async;
|
|
31408
|
-
this[DECODER] = this[ENCODING] ? new StringDecoder(this[ENCODING]) : null;
|
|
31402
|
+
this[DECODER] = this[ENCODING] ? new import_node_string_decoder.StringDecoder(this[ENCODING]) : null;
|
|
31409
31403
|
if (options && options.debugExposeBuffer === true) {
|
|
31410
31404
|
Object.defineProperty(this, "buffer", { get: () => this[BUFFER] });
|
|
31411
31405
|
}
|
|
@@ -32150,18 +32144,18 @@ var Minipass = class extends EventEmitter {
|
|
|
32150
32144
|
};
|
|
32151
32145
|
|
|
32152
32146
|
// node_modules/path-scurry/dist/esm/index.js
|
|
32153
|
-
var realpathSync =
|
|
32147
|
+
var realpathSync = import_fs2.realpathSync.native;
|
|
32154
32148
|
var defaultFS = {
|
|
32155
|
-
lstatSync,
|
|
32156
|
-
readdir:
|
|
32157
|
-
readdirSync,
|
|
32158
|
-
readlinkSync,
|
|
32149
|
+
lstatSync: import_fs2.lstatSync,
|
|
32150
|
+
readdir: import_fs2.readdir,
|
|
32151
|
+
readdirSync: import_fs2.readdirSync,
|
|
32152
|
+
readlinkSync: import_fs2.readlinkSync,
|
|
32159
32153
|
realpathSync,
|
|
32160
32154
|
promises: {
|
|
32161
|
-
lstat,
|
|
32162
|
-
readdir,
|
|
32163
|
-
readlink,
|
|
32164
|
-
realpath
|
|
32155
|
+
lstat: import_promises.lstat,
|
|
32156
|
+
readdir: import_promises.readdir,
|
|
32157
|
+
readlink: import_promises.readlink,
|
|
32158
|
+
realpath: import_promises.realpath
|
|
32165
32159
|
}
|
|
32166
32160
|
};
|
|
32167
32161
|
var fsFromOption = (fsOption) => !fsOption || fsOption === defaultFS || fsOption === actualFS ? defaultFS : {
|
|
@@ -33174,7 +33168,7 @@ var PathWin32 = class _PathWin32 extends PathBase {
|
|
|
33174
33168
|
* @internal
|
|
33175
33169
|
*/
|
|
33176
33170
|
getRootString(path3) {
|
|
33177
|
-
return win32.parse(path3).root;
|
|
33171
|
+
return import_node_path2.win32.parse(path3).root;
|
|
33178
33172
|
}
|
|
33179
33173
|
/**
|
|
33180
33174
|
* @internal
|
|
@@ -33273,7 +33267,7 @@ var PathScurryBase = class {
|
|
|
33273
33267
|
constructor(cwd = process.cwd(), pathImpl, sep2, { nocase, childrenCacheSize = 16 * 1024, fs = defaultFS } = {}) {
|
|
33274
33268
|
this.#fs = fsFromOption(fs);
|
|
33275
33269
|
if (cwd instanceof URL || cwd.startsWith("file://")) {
|
|
33276
|
-
cwd = fileURLToPath(cwd);
|
|
33270
|
+
cwd = (0, import_node_url.fileURLToPath)(cwd);
|
|
33277
33271
|
}
|
|
33278
33272
|
const cwdPath = pathImpl.resolve(cwd);
|
|
33279
33273
|
this.roots = /* @__PURE__ */ Object.create(null);
|
|
@@ -33814,7 +33808,7 @@ var PathScurryWin32 = class extends PathScurryBase {
|
|
|
33814
33808
|
sep = "\\";
|
|
33815
33809
|
constructor(cwd = process.cwd(), opts = {}) {
|
|
33816
33810
|
const { nocase = true } = opts;
|
|
33817
|
-
super(cwd, win32, "\\", { ...opts, nocase });
|
|
33811
|
+
super(cwd, import_node_path2.win32, "\\", { ...opts, nocase });
|
|
33818
33812
|
this.nocase = nocase;
|
|
33819
33813
|
for (let p = this.cwd; p; p = p.parent) {
|
|
33820
33814
|
p.nocase = this.nocase;
|
|
@@ -33824,7 +33818,7 @@ var PathScurryWin32 = class extends PathScurryBase {
|
|
|
33824
33818
|
* @internal
|
|
33825
33819
|
*/
|
|
33826
33820
|
parseRootPath(dir) {
|
|
33827
|
-
return win32.parse(dir).root.toUpperCase();
|
|
33821
|
+
return import_node_path2.win32.parse(dir).root.toUpperCase();
|
|
33828
33822
|
}
|
|
33829
33823
|
/**
|
|
33830
33824
|
* @internal
|
|
@@ -33846,7 +33840,7 @@ var PathScurryPosix = class extends PathScurryBase {
|
|
|
33846
33840
|
sep = "/";
|
|
33847
33841
|
constructor(cwd = process.cwd(), opts = {}) {
|
|
33848
33842
|
const { nocase = false } = opts;
|
|
33849
|
-
super(cwd, posix, "/", { ...opts, nocase });
|
|
33843
|
+
super(cwd, import_node_path2.posix, "/", { ...opts, nocase });
|
|
33850
33844
|
this.nocase = nocase;
|
|
33851
33845
|
}
|
|
33852
33846
|
/**
|
|
@@ -34738,7 +34732,7 @@ var Glob = class {
|
|
|
34738
34732
|
if (!opts.cwd) {
|
|
34739
34733
|
this.cwd = "";
|
|
34740
34734
|
} else if (opts.cwd instanceof URL || opts.cwd.startsWith("file://")) {
|
|
34741
|
-
opts.cwd =
|
|
34735
|
+
opts.cwd = (0, import_node_url2.fileURLToPath)(opts.cwd);
|
|
34742
34736
|
}
|
|
34743
34737
|
this.cwd = opts.cwd || "";
|
|
34744
34738
|
this.root = opts.root;
|
|
@@ -34938,30 +34932,30 @@ var glob = Object.assign(glob_, {
|
|
|
34938
34932
|
glob.glob = glob;
|
|
34939
34933
|
|
|
34940
34934
|
// src/index.ts
|
|
34941
|
-
|
|
34935
|
+
var import_path3 = require("path");
|
|
34942
34936
|
|
|
34943
34937
|
// src/detect/framework.ts
|
|
34944
|
-
|
|
34945
|
-
|
|
34938
|
+
var import_fs3 = require("fs");
|
|
34939
|
+
var import_path = require("path");
|
|
34946
34940
|
function detectFramework(cwd) {
|
|
34947
|
-
const pkgPath = join(cwd, "package.json");
|
|
34948
|
-
if (existsSync(pkgPath)) {
|
|
34949
|
-
const pkg = JSON.parse(
|
|
34941
|
+
const pkgPath = (0, import_path.join)(cwd, "package.json");
|
|
34942
|
+
if ((0, import_fs3.existsSync)(pkgPath)) {
|
|
34943
|
+
const pkg = JSON.parse((0, import_fs3.readFileSync)(pkgPath, "utf-8"));
|
|
34950
34944
|
const deps = {
|
|
34951
34945
|
...pkg.dependencies,
|
|
34952
34946
|
...pkg.devDependencies
|
|
34953
34947
|
};
|
|
34954
34948
|
if ("next" in deps) {
|
|
34955
34949
|
const entryFiles = [];
|
|
34956
|
-
if (existsSync(join(cwd, "app/layout.tsx")))
|
|
34950
|
+
if ((0, import_fs3.existsSync)((0, import_path.join)(cwd, "app/layout.tsx")))
|
|
34957
34951
|
entryFiles.push("app/layout.tsx");
|
|
34958
|
-
else if (existsSync(join(cwd, "app/layout.ts")))
|
|
34952
|
+
else if ((0, import_fs3.existsSync)((0, import_path.join)(cwd, "app/layout.ts")))
|
|
34959
34953
|
entryFiles.push("app/layout.ts");
|
|
34960
|
-
else if (existsSync(join(cwd, "app/layout.jsx")))
|
|
34954
|
+
else if ((0, import_fs3.existsSync)((0, import_path.join)(cwd, "app/layout.jsx")))
|
|
34961
34955
|
entryFiles.push("app/layout.jsx");
|
|
34962
|
-
if (existsSync(join(cwd, "pages/_document.tsx")))
|
|
34956
|
+
if ((0, import_fs3.existsSync)((0, import_path.join)(cwd, "pages/_document.tsx")))
|
|
34963
34957
|
entryFiles.push("pages/_document.tsx");
|
|
34964
|
-
else if (existsSync(join(cwd, "pages/_document.js")))
|
|
34958
|
+
else if ((0, import_fs3.existsSync)((0, import_path.join)(cwd, "pages/_document.js")))
|
|
34965
34959
|
entryFiles.push("pages/_document.js");
|
|
34966
34960
|
return {
|
|
34967
34961
|
type: "nextjs",
|
|
@@ -34978,9 +34972,9 @@ function detectFramework(cwd) {
|
|
|
34978
34972
|
}
|
|
34979
34973
|
if ("react" in deps && ("react-scripts" in deps || "vite" in deps)) {
|
|
34980
34974
|
const entryFiles = [];
|
|
34981
|
-
if (existsSync(join(cwd, "public/index.html")))
|
|
34975
|
+
if ((0, import_fs3.existsSync)((0, import_path.join)(cwd, "public/index.html")))
|
|
34982
34976
|
entryFiles.push("public/index.html");
|
|
34983
|
-
else if (existsSync(join(cwd, "index.html")))
|
|
34977
|
+
else if ((0, import_fs3.existsSync)((0, import_path.join)(cwd, "index.html")))
|
|
34984
34978
|
entryFiles.push("index.html");
|
|
34985
34979
|
return {
|
|
34986
34980
|
type: "react",
|
|
@@ -34995,7 +34989,7 @@ function detectFramework(cwd) {
|
|
|
34995
34989
|
}
|
|
34996
34990
|
}
|
|
34997
34991
|
const htmlFiles = [];
|
|
34998
|
-
if (existsSync(join(cwd, "index.html")))
|
|
34992
|
+
if ((0, import_fs3.existsSync)((0, import_path.join)(cwd, "index.html")))
|
|
34999
34993
|
htmlFiles.push("index.html");
|
|
35000
34994
|
return {
|
|
35001
34995
|
type: "html",
|
|
@@ -35006,7 +35000,7 @@ function detectFramework(cwd) {
|
|
|
35006
35000
|
}
|
|
35007
35001
|
|
|
35008
35002
|
// src/detect/cookiebot.ts
|
|
35009
|
-
|
|
35003
|
+
var import_fs4 = require("fs");
|
|
35010
35004
|
var COOKIEBOT_PATTERNS = [
|
|
35011
35005
|
/consent\.cookiebot\.com/i,
|
|
35012
35006
|
/data-cbid/i,
|
|
@@ -35023,7 +35017,7 @@ var SCRIPT_TAG_PATTERNS = [
|
|
|
35023
35017
|
function scanFileForCookiebot(filePath) {
|
|
35024
35018
|
let content;
|
|
35025
35019
|
try {
|
|
35026
|
-
content =
|
|
35020
|
+
content = (0, import_fs4.readFileSync)(filePath, "utf-8");
|
|
35027
35021
|
} catch {
|
|
35028
35022
|
return null;
|
|
35029
35023
|
}
|
|
@@ -35045,7 +35039,7 @@ function scanFileForCookiebot(filePath) {
|
|
|
35045
35039
|
}
|
|
35046
35040
|
|
|
35047
35041
|
// src/detect/integrations.ts
|
|
35048
|
-
|
|
35042
|
+
var import_fs5 = require("fs");
|
|
35049
35043
|
var INTEGRATION_DETECTORS = [
|
|
35050
35044
|
{
|
|
35051
35045
|
id: "ga",
|
|
@@ -35111,7 +35105,7 @@ var INTEGRATION_DETECTORS = [
|
|
|
35111
35105
|
function scanFileForIntegrations(filePath) {
|
|
35112
35106
|
let content;
|
|
35113
35107
|
try {
|
|
35114
|
-
content =
|
|
35108
|
+
content = (0, import_fs5.readFileSync)(filePath, "utf-8");
|
|
35115
35109
|
} catch {
|
|
35116
35110
|
return [];
|
|
35117
35111
|
}
|
|
@@ -35153,9 +35147,9 @@ function mergeIntegrations(results) {
|
|
|
35153
35147
|
}
|
|
35154
35148
|
|
|
35155
35149
|
// src/transform/index.ts
|
|
35156
|
-
|
|
35157
|
-
|
|
35158
|
-
var CONSENTIFY_SCRIPT_TAG = (token) => `https://
|
|
35150
|
+
var import_fs6 = require("fs");
|
|
35151
|
+
var import_path2 = require("path");
|
|
35152
|
+
var CONSENTIFY_SCRIPT_TAG = (token) => `https://consentify.app/api/gateway?token=${token}`;
|
|
35159
35153
|
function removeCookiebotScriptTags(content) {
|
|
35160
35154
|
content = content.replace(
|
|
35161
35155
|
/<Script\b[^>]*consent\.cookiebot\.com[^>]*(?:\/>|>[\s\S]*?<\/Script>)/gim,
|
|
@@ -35168,33 +35162,118 @@ function removeCookiebotScriptTags(content) {
|
|
|
35168
35162
|
content = content.replace(/^\s*data-cbid="[^"]*"\s*\n/gm, "");
|
|
35169
35163
|
return content;
|
|
35170
35164
|
}
|
|
35165
|
+
var TRACKING_SRC_DOMAINS = [
|
|
35166
|
+
`connect\\.facebook\\.net/[^"']*fbevents\\.js`,
|
|
35167
|
+
"googletagmanager\\.com/gtag/js",
|
|
35168
|
+
"googletagmanager\\.com/gtm\\.js",
|
|
35169
|
+
"posthog\\.com/static/array\\.js",
|
|
35170
|
+
"posthog\\.com/static/recorder\\.js",
|
|
35171
|
+
"analytics\\.tiktok\\.com",
|
|
35172
|
+
"snap\\.licdn\\.com",
|
|
35173
|
+
"sc-static\\.net/scevent",
|
|
35174
|
+
"js\\.hs-scripts\\.com",
|
|
35175
|
+
"js\\.hsadspixel\\.net",
|
|
35176
|
+
"js\\.hscollectedforms\\.net",
|
|
35177
|
+
"t\\.contentsquare\\.net",
|
|
35178
|
+
"widget\\.intercom\\.io",
|
|
35179
|
+
"js\\.intercomcdn\\.com",
|
|
35180
|
+
"static\\.ads-twitter\\.com"
|
|
35181
|
+
];
|
|
35182
|
+
var TRACKING_INLINE_SIGNATURES = [
|
|
35183
|
+
// Facebook Pixel
|
|
35184
|
+
"fbq\\s*\\(\\s*['\"`]init['\"`]",
|
|
35185
|
+
"window\\.fbq\\s*=",
|
|
35186
|
+
"n\\.callMethod\\.apply\\(n,arguments\\)",
|
|
35187
|
+
// FB pixel IIFE
|
|
35188
|
+
// Google Analytics / GTM
|
|
35189
|
+
"window\\.dataLayer\\s*=\\s*window\\.dataLayer",
|
|
35190
|
+
"function\\s+gtag\\s*\\(",
|
|
35191
|
+
// PostHog
|
|
35192
|
+
"posthog\\.init\\s*\\(",
|
|
35193
|
+
"posthog\\._i\\s*=",
|
|
35194
|
+
// TikTok
|
|
35195
|
+
"ttq\\.load\\s*\\(",
|
|
35196
|
+
"window\\.TiktokAnalyticsObject",
|
|
35197
|
+
// LinkedIn
|
|
35198
|
+
"_linkedin_partner_id\\s*=",
|
|
35199
|
+
// Snapchat
|
|
35200
|
+
"window\\.snaptr\\s*=",
|
|
35201
|
+
"_snaptr\\s*\\(",
|
|
35202
|
+
// HubSpot
|
|
35203
|
+
"window\\._hsq\\s*=",
|
|
35204
|
+
// Intercom
|
|
35205
|
+
"window\\.intercomSettings\\s*=",
|
|
35206
|
+
"window\\.Intercom\\s*=",
|
|
35207
|
+
// Contentsquare
|
|
35208
|
+
"window\\._uxa\\s*="
|
|
35209
|
+
];
|
|
35210
|
+
function removeTrackingScriptTags(content) {
|
|
35211
|
+
const srcPattern = TRACKING_SRC_DOMAINS.join("|");
|
|
35212
|
+
const inlinePattern = TRACKING_INLINE_SIGNATURES.join("|");
|
|
35213
|
+
content = content.replace(
|
|
35214
|
+
new RegExp(
|
|
35215
|
+
`<Script\\b[^>]*src=["'][^"']*(?:${srcPattern})[^"']*["'][^>]*(?:\\/>|>[\\s\\S]*?<\\/Script>)`,
|
|
35216
|
+
"gim"
|
|
35217
|
+
),
|
|
35218
|
+
""
|
|
35219
|
+
);
|
|
35220
|
+
content = content.replace(
|
|
35221
|
+
new RegExp(
|
|
35222
|
+
`<script\\b[^>]*src=["'][^"']*(?:${srcPattern})[^"']*["'][^>]*(?:\\/>|>[\\s\\S]*?<\\/script>)`,
|
|
35223
|
+
"gim"
|
|
35224
|
+
),
|
|
35225
|
+
""
|
|
35226
|
+
);
|
|
35227
|
+
content = content.replace(
|
|
35228
|
+
new RegExp(
|
|
35229
|
+
`<Script\\b[^>]*>[\\s\\S]*?(?:${inlinePattern})[\\s\\S]*?<\\/Script>`,
|
|
35230
|
+
"gim"
|
|
35231
|
+
),
|
|
35232
|
+
""
|
|
35233
|
+
);
|
|
35234
|
+
content = content.replace(
|
|
35235
|
+
new RegExp(
|
|
35236
|
+
`<script\\b[^>]*>[\\s\\S]*?(?:${inlinePattern})[\\s\\S]*?<\\/script>`,
|
|
35237
|
+
"gim"
|
|
35238
|
+
),
|
|
35239
|
+
""
|
|
35240
|
+
);
|
|
35241
|
+
content = content.replace(
|
|
35242
|
+
/<noscript>\s*<iframe[^>]*googletagmanager\.com[^>]*>[\s\S]*?<\/iframe>\s*<\/noscript>/gim,
|
|
35243
|
+
""
|
|
35244
|
+
);
|
|
35245
|
+
return content;
|
|
35246
|
+
}
|
|
35247
|
+
function pruneUnusedScriptImport(content) {
|
|
35248
|
+
const hasScriptTag = /<Script[\s/>]/i.test(content);
|
|
35249
|
+
if (!hasScriptTag) {
|
|
35250
|
+
content = content.replace(
|
|
35251
|
+
/^import Script from ["']next\/script["'];?\s*\n/m,
|
|
35252
|
+
""
|
|
35253
|
+
);
|
|
35254
|
+
}
|
|
35255
|
+
return content;
|
|
35256
|
+
}
|
|
35171
35257
|
function transformNextjsFile(filePath, token) {
|
|
35172
|
-
let content =
|
|
35258
|
+
let content = (0, import_fs6.readFileSync)(filePath, "utf-8");
|
|
35173
35259
|
const original = content;
|
|
35174
35260
|
content = removeCookiebotScriptTags(content);
|
|
35175
|
-
|
|
35261
|
+
content = removeTrackingScriptTags(content);
|
|
35262
|
+
if (content.includes("consentify.app/api/gateway")) {
|
|
35176
35263
|
return {
|
|
35177
35264
|
file: filePath,
|
|
35178
35265
|
changed: false,
|
|
35179
35266
|
description: "Consentify already present, skipped"
|
|
35180
35267
|
};
|
|
35181
35268
|
}
|
|
35182
|
-
const consentifyTag = ` <Script
|
|
35183
|
-
|
|
35184
|
-
|
|
35185
|
-
/>`;
|
|
35186
|
-
if (content.includes("<head>") || content.includes("<head\n")) {
|
|
35187
|
-
content = content.replace(/(<head[^>]*>)/, `$1
|
|
35269
|
+
const consentifyTag = ` <Script src="${CONSENTIFY_SCRIPT_TAG(token)}" />`;
|
|
35270
|
+
if (content.includes("</body>") && content.includes("</html>")) {
|
|
35271
|
+
content = content.replace("</body>", `</body>
|
|
35188
35272
|
${consentifyTag}`);
|
|
35189
|
-
} else if (content.includes("</
|
|
35190
|
-
content = content.replace("</
|
|
35191
|
-
|
|
35192
|
-
} else
|
|
35193
|
-
content = content.replace(
|
|
35194
|
-
/return\s*\(\s*\n(\s*<html)/,
|
|
35195
|
-
`return (
|
|
35196
|
-
$1`
|
|
35197
|
-
);
|
|
35273
|
+
} else if (content.includes("</html>")) {
|
|
35274
|
+
content = content.replace("</html>", `${consentifyTag}
|
|
35275
|
+
</html>`);
|
|
35276
|
+
} else {
|
|
35198
35277
|
content = content + `
|
|
35199
35278
|
// TODO: Add Consentify script tag manually:
|
|
35200
35279
|
// ${consentifyTag}
|
|
@@ -35213,21 +35292,23 @@ import Script from "next/script"`
|
|
|
35213
35292
|
` + content;
|
|
35214
35293
|
}
|
|
35215
35294
|
}
|
|
35295
|
+
content = pruneUnusedScriptImport(content);
|
|
35216
35296
|
const changed = content !== original;
|
|
35217
35297
|
if (changed) {
|
|
35218
|
-
|
|
35298
|
+
(0, import_fs6.writeFileSync)(filePath, content, "utf-8");
|
|
35219
35299
|
}
|
|
35220
35300
|
return {
|
|
35221
35301
|
file: filePath,
|
|
35222
35302
|
changed,
|
|
35223
|
-
description: changed ? "Removed Cookiebot, added Consentify <Script>" : "No changes needed"
|
|
35303
|
+
description: changed ? "Removed Cookiebot + tracking scripts, added Consentify <Script>" : "No changes needed"
|
|
35224
35304
|
};
|
|
35225
35305
|
}
|
|
35226
35306
|
function transformHtmlFile(filePath, token) {
|
|
35227
|
-
let content =
|
|
35307
|
+
let content = (0, import_fs6.readFileSync)(filePath, "utf-8");
|
|
35228
35308
|
const original = content;
|
|
35229
35309
|
content = removeCookiebotScriptTags(content);
|
|
35230
|
-
|
|
35310
|
+
content = removeTrackingScriptTags(content);
|
|
35311
|
+
if (content.includes("consentify.app/api/gateway")) {
|
|
35231
35312
|
return {
|
|
35232
35313
|
file: filePath,
|
|
35233
35314
|
changed: false,
|
|
@@ -35235,28 +35316,28 @@ function transformHtmlFile(filePath, token) {
|
|
|
35235
35316
|
};
|
|
35236
35317
|
}
|
|
35237
35318
|
const consentifyTag = ` <script src="${CONSENTIFY_SCRIPT_TAG(token)}"></script>`;
|
|
35238
|
-
if (content.includes("</
|
|
35239
|
-
content = content.replace("</
|
|
35240
|
-
</
|
|
35241
|
-
} else if (content.includes("
|
|
35242
|
-
content = content.replace("
|
|
35243
|
-
|
|
35319
|
+
if (content.includes("</body>")) {
|
|
35320
|
+
content = content.replace("</body>", `${consentifyTag}
|
|
35321
|
+
</body>`);
|
|
35322
|
+
} else if (content.includes("</html>")) {
|
|
35323
|
+
content = content.replace("</html>", `${consentifyTag}
|
|
35324
|
+
</html>`);
|
|
35244
35325
|
} else {
|
|
35245
|
-
content =
|
|
35246
|
-
|
|
35326
|
+
content = content + `
|
|
35327
|
+
${consentifyTag}`;
|
|
35247
35328
|
}
|
|
35248
35329
|
const changed = content !== original;
|
|
35249
35330
|
if (changed) {
|
|
35250
|
-
|
|
35331
|
+
(0, import_fs6.writeFileSync)(filePath, content, "utf-8");
|
|
35251
35332
|
}
|
|
35252
35333
|
return {
|
|
35253
35334
|
file: filePath,
|
|
35254
35335
|
changed,
|
|
35255
|
-
description: changed ? "Removed Cookiebot, added Consentify <script>" : "No changes needed"
|
|
35336
|
+
description: changed ? "Removed Cookiebot + tracking scripts, added Consentify <script>" : "No changes needed"
|
|
35256
35337
|
};
|
|
35257
35338
|
}
|
|
35258
35339
|
function transformFile(filePath, token, framework) {
|
|
35259
|
-
const ext2 = extname(filePath).toLowerCase();
|
|
35340
|
+
const ext2 = (0, import_path2.extname)(filePath).toLowerCase();
|
|
35260
35341
|
const isHtml = ext2 === ".html";
|
|
35261
35342
|
const isJsx = [".tsx", ".ts", ".jsx", ".js"].includes(ext2);
|
|
35262
35343
|
if (isHtml || framework === "html") {
|
|
@@ -43986,7 +44067,7 @@ if (shouldShowDeprecationWarning())
|
|
|
43986
44067
|
// src/api.ts
|
|
43987
44068
|
var SUPABASE_URL = "https://dmfoyyndfpxllkbfqmio.supabase.co";
|
|
43988
44069
|
var SUPABASE_PUBLISHABLE_KEY = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6ImRtZm95eW5kZnB4bGxrYmZxbWlvIiwicm9sZSI6ImFub24iLCJpYXQiOjE3NTgzOTQ5MDYsImV4cCI6MjA3Mzk3MDkwNn0._gMAbCHGc6kikJcQPUvLKynDLhHQSuaTud7bopDluN8";
|
|
43989
|
-
var API_BASE = "https://
|
|
44070
|
+
var API_BASE = "https://consentify.app";
|
|
43990
44071
|
var _accessToken = null;
|
|
43991
44072
|
async function loginWithPassword(email, password) {
|
|
43992
44073
|
const supabase = createClient(SUPABASE_URL, SUPABASE_PUBLISHABLE_KEY, {
|
|
@@ -44004,26 +44085,61 @@ async function loginWithPassword(email, password) {
|
|
|
44004
44085
|
return { accessToken: _accessToken, userName };
|
|
44005
44086
|
}
|
|
44006
44087
|
async function getTeams(accessToken) {
|
|
44007
|
-
const
|
|
44008
|
-
headers: { Authorization: `Bearer ${accessToken}` }
|
|
44088
|
+
const supabase = createClient(SUPABASE_URL, SUPABASE_PUBLISHABLE_KEY, {
|
|
44089
|
+
global: { headers: { Authorization: `Bearer ${accessToken}` } },
|
|
44090
|
+
auth: { persistSession: false, autoRefreshToken: false }
|
|
44009
44091
|
});
|
|
44010
|
-
|
|
44011
|
-
|
|
44012
|
-
|
|
44013
|
-
|
|
44092
|
+
const {
|
|
44093
|
+
data: { user }
|
|
44094
|
+
} = await supabase.auth.getUser();
|
|
44095
|
+
if (!user)
|
|
44096
|
+
throw new Error("Not authenticated");
|
|
44097
|
+
const { data: memberships, error: membError } = await supabase.from("team_users").select("team_id").eq("user_id", user.id);
|
|
44098
|
+
if (membError)
|
|
44099
|
+
throw new Error(membError.message);
|
|
44100
|
+
if (!memberships || memberships.length === 0)
|
|
44101
|
+
return [];
|
|
44102
|
+
const teamIds = memberships.map((m) => m.team_id);
|
|
44103
|
+
const { data: teams, error: teamsError } = await supabase.from("teams").select("id, name").in("id", teamIds);
|
|
44104
|
+
if (teamsError)
|
|
44105
|
+
throw new Error(teamsError.message);
|
|
44106
|
+
return teams ?? [];
|
|
44014
44107
|
}
|
|
44015
44108
|
async function setupDomain(accessToken, payload) {
|
|
44016
|
-
const
|
|
44017
|
-
|
|
44018
|
-
|
|
44019
|
-
|
|
44020
|
-
|
|
44021
|
-
|
|
44022
|
-
|
|
44023
|
-
|
|
44109
|
+
const url = `${API_BASE}/api/cli/setup`;
|
|
44110
|
+
const requestHeaders = {
|
|
44111
|
+
"Content-Type": "application/json",
|
|
44112
|
+
Authorization: `Bearer ${accessToken}`
|
|
44113
|
+
};
|
|
44114
|
+
const requestBody = JSON.stringify(payload);
|
|
44115
|
+
let res;
|
|
44116
|
+
try {
|
|
44117
|
+
res = await fetch(url, {
|
|
44118
|
+
method: "POST",
|
|
44119
|
+
headers: requestHeaders,
|
|
44120
|
+
body: requestBody,
|
|
44121
|
+
redirect: "manual"
|
|
44122
|
+
});
|
|
44123
|
+
if (res.status >= 300 && res.status < 400) {
|
|
44124
|
+
const location2 = res.headers.get("location");
|
|
44125
|
+
if (location2) {
|
|
44126
|
+
const redirectUrl = location2.startsWith("http") ? location2 : new URL(location2, url).toString();
|
|
44127
|
+
res = await fetch(redirectUrl, {
|
|
44128
|
+
method: "POST",
|
|
44129
|
+
headers: requestHeaders,
|
|
44130
|
+
body: requestBody
|
|
44131
|
+
});
|
|
44132
|
+
}
|
|
44133
|
+
}
|
|
44134
|
+
} catch (err) {
|
|
44135
|
+
const cause = err instanceof Error && err.cause;
|
|
44136
|
+
const detail = cause ? String(cause) : err instanceof Error ? err.message : String(err);
|
|
44137
|
+
throw new Error(`Could not reach ${url}
|
|
44138
|
+
${detail}`);
|
|
44139
|
+
}
|
|
44024
44140
|
if (!res.ok) {
|
|
44025
44141
|
const body = await res.json().catch(() => ({}));
|
|
44026
|
-
throw new Error(body.error ?? `
|
|
44142
|
+
throw new Error(body.error ?? `Server returned ${res.status} from ${url}`);
|
|
44027
44143
|
}
|
|
44028
44144
|
return await res.json();
|
|
44029
44145
|
}
|
|
@@ -44074,7 +44190,7 @@ async function main2() {
|
|
|
44074
44190
|
warn("You can still use this tool to set up Consentify.");
|
|
44075
44191
|
} else {
|
|
44076
44192
|
for (const match2 of cookiebotMatches) {
|
|
44077
|
-
const rel = relative(cwd, match2.file);
|
|
44193
|
+
const rel = (0, import_path3.relative)(cwd, match2.file);
|
|
44078
44194
|
info(
|
|
44079
44195
|
`${source_default.yellow(rel)} \u2014 line${match2.lines.length > 1 ? "s" : ""} ${match2.lines.join(", ")}`
|
|
44080
44196
|
);
|
|
@@ -44122,9 +44238,7 @@ async function main2() {
|
|
|
44122
44238
|
try {
|
|
44123
44239
|
const result = await loginWithPassword(email, pwd);
|
|
44124
44240
|
accessToken = result.accessToken;
|
|
44125
|
-
loginSpinner.succeed(
|
|
44126
|
-
`Logged in as ${source_default.bold(result.userName)}`
|
|
44127
|
-
);
|
|
44241
|
+
loginSpinner.succeed(`Logged in as ${source_default.bold(result.userName)}`);
|
|
44128
44242
|
} catch (err) {
|
|
44129
44243
|
loginSpinner.fail("Login failed");
|
|
44130
44244
|
const message = err instanceof Error ? err.message : String(err);
|
|
@@ -44144,7 +44258,7 @@ async function main2() {
|
|
|
44144
44258
|
if (teams.length === 0) {
|
|
44145
44259
|
console.error(
|
|
44146
44260
|
source_default.red(
|
|
44147
|
-
"No teams found. Create a team at https://
|
|
44261
|
+
"No teams found. Create a team at https://consentify.app first."
|
|
44148
44262
|
)
|
|
44149
44263
|
);
|
|
44150
44264
|
process.exit(1);
|
|
@@ -44224,12 +44338,12 @@ async function main2() {
|
|
|
44224
44338
|
filesToTransform.add(match2.file);
|
|
44225
44339
|
}
|
|
44226
44340
|
for (const entry of framework.entryFiles) {
|
|
44227
|
-
filesToTransform.add(resolve(cwd, entry));
|
|
44341
|
+
filesToTransform.add((0, import_path3.resolve)(cwd, entry));
|
|
44228
44342
|
}
|
|
44229
44343
|
let changedCount = 0;
|
|
44230
44344
|
for (const filePath of filesToTransform) {
|
|
44231
44345
|
const result = transformFile(filePath, publicToken, framework.type);
|
|
44232
|
-
const relPath = relative(cwd, result.file);
|
|
44346
|
+
const relPath = (0, import_path3.relative)(cwd, result.file);
|
|
44233
44347
|
if (result.changed) {
|
|
44234
44348
|
success(`${source_default.yellow(relPath)} \u2014 ${result.description}`);
|
|
44235
44349
|
changedCount++;
|
|
@@ -44248,7 +44362,7 @@ async function main2() {
|
|
|
44248
44362
|
console.log(
|
|
44249
44363
|
source_default.bgBlack.white(
|
|
44250
44364
|
`
|
|
44251
|
-
<script src="https://
|
|
44365
|
+
<script src="https://consentify.app/api/gateway?token=${publicToken}"></script>
|
|
44252
44366
|
`
|
|
44253
44367
|
)
|
|
44254
44368
|
);
|
|
@@ -44257,10 +44371,7 @@ async function main2() {
|
|
|
44257
44371
|
console.log(
|
|
44258
44372
|
source_default.bgBlack.white(
|
|
44259
44373
|
`
|
|
44260
|
-
<Script
|
|
44261
|
-
src="https://app.consentify.io/api/gateway?token=${publicToken}"
|
|
44262
|
-
strategy="beforeInteractive"
|
|
44263
|
-
/>
|
|
44374
|
+
<Script src="https://consentify.app/api/gateway?token=${publicToken}" />
|
|
44264
44375
|
`
|
|
44265
44376
|
)
|
|
44266
44377
|
);
|
|
@@ -44268,7 +44379,7 @@ async function main2() {
|
|
|
44268
44379
|
console.log(source_default.bold("Next steps:"));
|
|
44269
44380
|
info("Review the file changes in your editor");
|
|
44270
44381
|
info(
|
|
44271
|
-
`Customize your banner at ${source_default.cyan("https://
|
|
44382
|
+
`Customize your banner at ${source_default.cyan("https://consentify.app/dashboard/banner")}`
|
|
44272
44383
|
);
|
|
44273
44384
|
if (integrationsWithoutId.length > 0) {
|
|
44274
44385
|
info(
|