@sockethub/platform-xmpp 5.0.0-alpha.24 → 5.0.0-alpha.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +339 -321
- package/dist/index.js.map +5 -4
- package/package.json +5 -5
package/dist/index.js
CHANGED
|
@@ -19,7 +19,7 @@ var __toESM = (mod, isNodeMode, target) => {
|
|
|
19
19
|
return cached;
|
|
20
20
|
}
|
|
21
21
|
target = mod != null ? __create(__getProtoOf(mod)) : {};
|
|
22
|
-
const to = isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target;
|
|
22
|
+
const to = isNodeMode || !mod || !mod.__esModule || !__hasOwnProp.call(mod, "default") ? __defProp(target, "default", { value: mod, enumerable: true }) : target;
|
|
23
23
|
if (mod && typeof mod === "object" || typeof mod === "function") {
|
|
24
24
|
for (let key of __getOwnPropNames(mod))
|
|
25
25
|
if (!__hasOwnProp.call(to, key))
|
|
@@ -63,7 +63,17 @@ var __export = (target, all) => {
|
|
|
63
63
|
set: __exportSetter.bind(all, name)
|
|
64
64
|
});
|
|
65
65
|
};
|
|
66
|
-
var __esm = (fn, res) => () =>
|
|
66
|
+
var __esm = (fn, res, err) => () => {
|
|
67
|
+
if (fn)
|
|
68
|
+
try {
|
|
69
|
+
res = fn(fn = 0);
|
|
70
|
+
} catch (e) {
|
|
71
|
+
err = [e];
|
|
72
|
+
}
|
|
73
|
+
if (err)
|
|
74
|
+
throw err[0];
|
|
75
|
+
return res;
|
|
76
|
+
};
|
|
67
77
|
var __require = /* @__PURE__ */ createRequire(import.meta.url);
|
|
68
78
|
|
|
69
79
|
// ../../node_modules/ajv/dist/compile/codegen/code.js
|
|
@@ -233,9 +243,9 @@ var require_scope = __commonJS(function(exports) {
|
|
|
233
243
|
}
|
|
234
244
|
}
|
|
235
245
|
var UsedValueState;
|
|
236
|
-
(function(
|
|
237
|
-
|
|
238
|
-
|
|
246
|
+
(function(UsedValueState) {
|
|
247
|
+
UsedValueState[UsedValueState["Started"] = 0] = "Started";
|
|
248
|
+
UsedValueState[UsedValueState["Completed"] = 1] = "Completed";
|
|
239
249
|
})(UsedValueState || (exports.UsedValueState = UsedValueState = {}));
|
|
240
250
|
exports.varKinds = {
|
|
241
251
|
const: new code_1.Name("const"),
|
|
@@ -1217,9 +1227,9 @@ var require_util = __commonJS(function(exports) {
|
|
|
1217
1227
|
}
|
|
1218
1228
|
exports.useFunc = useFunc;
|
|
1219
1229
|
var Type;
|
|
1220
|
-
(function(
|
|
1221
|
-
|
|
1222
|
-
|
|
1230
|
+
(function(Type) {
|
|
1231
|
+
Type[Type["Num"] = 0] = "Num";
|
|
1232
|
+
Type[Type["Str"] = 1] = "Str";
|
|
1223
1233
|
})(Type || (exports.Type = Type = {}));
|
|
1224
1234
|
function getErrorPath(dataProp, dataPropType, jsPropertySyntax) {
|
|
1225
1235
|
if (dataProp instanceof codegen_1.Name) {
|
|
@@ -1489,9 +1499,9 @@ var require_dataType = __commonJS(function(exports) {
|
|
|
1489
1499
|
var codegen_1 = require_codegen();
|
|
1490
1500
|
var util_1 = require_util();
|
|
1491
1501
|
var DataType;
|
|
1492
|
-
(function(
|
|
1493
|
-
|
|
1494
|
-
|
|
1502
|
+
(function(DataType) {
|
|
1503
|
+
DataType[DataType["Correct"] = 0] = "Correct";
|
|
1504
|
+
DataType[DataType["Wrong"] = 1] = "Wrong";
|
|
1495
1505
|
})(DataType || (exports.DataType = DataType = {}));
|
|
1496
1506
|
function getSchemaTypes(schema) {
|
|
1497
1507
|
const types = getJSONTypes(schema.type);
|
|
@@ -1887,8 +1897,8 @@ var require_keyword = __commonJS(function(exports) {
|
|
|
1887
1897
|
gen.assign(valid, (0, codegen_1._)`${_await}${(0, code_1.callValidateCode)(cxt, validateRef, passCxt, passSchema)}`, def.modifying);
|
|
1888
1898
|
}
|
|
1889
1899
|
function reportErrs(errors) {
|
|
1890
|
-
var
|
|
1891
|
-
gen.if((0, codegen_1.not)((
|
|
1900
|
+
var _a;
|
|
1901
|
+
gen.if((0, codegen_1.not)((_a = def.valid) !== null && _a !== undefined ? _a : valid), errors);
|
|
1892
1902
|
}
|
|
1893
1903
|
}
|
|
1894
1904
|
exports.funcKeywordCode = funcKeywordCode;
|
|
@@ -5922,9 +5932,9 @@ var require_types = __commonJS(function(exports) {
|
|
|
5922
5932
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5923
5933
|
exports.DiscrError = undefined;
|
|
5924
5934
|
var DiscrError;
|
|
5925
|
-
(function(
|
|
5926
|
-
|
|
5927
|
-
|
|
5935
|
+
(function(DiscrError) {
|
|
5936
|
+
DiscrError["Tag"] = "tag";
|
|
5937
|
+
DiscrError["Mapping"] = "mapping";
|
|
5928
5938
|
})(DiscrError || (exports.DiscrError = DiscrError = {}));
|
|
5929
5939
|
});
|
|
5930
5940
|
|
|
@@ -6561,9 +6571,9 @@ var require_scope2 = __commonJS(function(exports) {
|
|
|
6561
6571
|
}
|
|
6562
6572
|
}
|
|
6563
6573
|
var UsedValueState;
|
|
6564
|
-
(function(
|
|
6565
|
-
|
|
6566
|
-
|
|
6574
|
+
(function(UsedValueState) {
|
|
6575
|
+
UsedValueState[UsedValueState["Started"] = 0] = "Started";
|
|
6576
|
+
UsedValueState[UsedValueState["Completed"] = 1] = "Completed";
|
|
6567
6577
|
})(UsedValueState = exports.UsedValueState || (exports.UsedValueState = {}));
|
|
6568
6578
|
exports.varKinds = {
|
|
6569
6579
|
const: new code_1.Name("const"),
|
|
@@ -7545,9 +7555,9 @@ var require_util2 = __commonJS(function(exports) {
|
|
|
7545
7555
|
}
|
|
7546
7556
|
exports.useFunc = useFunc;
|
|
7547
7557
|
var Type;
|
|
7548
|
-
(function(
|
|
7549
|
-
|
|
7550
|
-
|
|
7558
|
+
(function(Type) {
|
|
7559
|
+
Type[Type["Num"] = 0] = "Num";
|
|
7560
|
+
Type[Type["Str"] = 1] = "Str";
|
|
7551
7561
|
})(Type = exports.Type || (exports.Type = {}));
|
|
7552
7562
|
function getErrorPath(dataProp, dataPropType, jsPropertySyntax) {
|
|
7553
7563
|
if (dataProp instanceof codegen_1.Name) {
|
|
@@ -7817,9 +7827,9 @@ var require_dataType2 = __commonJS(function(exports) {
|
|
|
7817
7827
|
var codegen_1 = require_codegen2();
|
|
7818
7828
|
var util_1 = require_util2();
|
|
7819
7829
|
var DataType;
|
|
7820
|
-
(function(
|
|
7821
|
-
|
|
7822
|
-
|
|
7830
|
+
(function(DataType) {
|
|
7831
|
+
DataType[DataType["Correct"] = 0] = "Correct";
|
|
7832
|
+
DataType[DataType["Wrong"] = 1] = "Wrong";
|
|
7823
7833
|
})(DataType = exports.DataType || (exports.DataType = {}));
|
|
7824
7834
|
function getSchemaTypes(schema) {
|
|
7825
7835
|
const types = getJSONTypes(schema.type);
|
|
@@ -8215,8 +8225,8 @@ var require_keyword2 = __commonJS(function(exports) {
|
|
|
8215
8225
|
gen.assign(valid, (0, codegen_1._)`${_await}${(0, code_1.callValidateCode)(cxt, validateRef, passCxt, passSchema)}`, def.modifying);
|
|
8216
8226
|
}
|
|
8217
8227
|
function reportErrs(errors) {
|
|
8218
|
-
var
|
|
8219
|
-
gen.if((0, codegen_1.not)((
|
|
8228
|
+
var _a;
|
|
8229
|
+
gen.if((0, codegen_1.not)((_a = def.valid) !== null && _a !== undefined ? _a : valid), errors);
|
|
8220
8230
|
}
|
|
8221
8231
|
}
|
|
8222
8232
|
exports.funcKeywordCode = funcKeywordCode;
|
|
@@ -8452,15 +8462,15 @@ var require_resolve2 = __commonJS(function(exports) {
|
|
|
8452
8462
|
if (parentJsonPtr === undefined)
|
|
8453
8463
|
return;
|
|
8454
8464
|
const fullPath = pathPrefix + jsonPtr;
|
|
8455
|
-
let
|
|
8465
|
+
let baseId = baseIds[parentJsonPtr];
|
|
8456
8466
|
if (typeof sch[schemaId] == "string")
|
|
8457
|
-
|
|
8467
|
+
baseId = addRef.call(this, sch[schemaId]);
|
|
8458
8468
|
addAnchor.call(this, sch.$anchor);
|
|
8459
8469
|
addAnchor.call(this, sch.$dynamicAnchor);
|
|
8460
|
-
baseIds[jsonPtr] =
|
|
8470
|
+
baseIds[jsonPtr] = baseId;
|
|
8461
8471
|
function addRef(ref) {
|
|
8462
8472
|
const _resolve = this.opts.uriResolver.resolve;
|
|
8463
|
-
ref = normalizeId(
|
|
8473
|
+
ref = normalizeId(baseId ? _resolve(baseId, ref) : ref);
|
|
8464
8474
|
if (schemaRefs.has(ref))
|
|
8465
8475
|
throw ambiguos(ref);
|
|
8466
8476
|
schemaRefs.add(ref);
|
|
@@ -9313,22 +9323,22 @@ var require_uri_all = __commonJS(function(exports, module) {
|
|
|
9313
9323
|
}
|
|
9314
9324
|
return obj;
|
|
9315
9325
|
}
|
|
9316
|
-
function buildExps(
|
|
9317
|
-
var ALPHA$$ = "[A-Za-z]", CR$ = "[\\x0D]", DIGIT$$ = "[0-9]", DQUOTE$$ = "[\\x22]", HEXDIG$$
|
|
9326
|
+
function buildExps(isIRI) {
|
|
9327
|
+
var ALPHA$$ = "[A-Za-z]", CR$ = "[\\x0D]", DIGIT$$ = "[0-9]", DQUOTE$$ = "[\\x22]", HEXDIG$$ = merge(DIGIT$$, "[A-Fa-f]"), LF$$ = "[\\x0A]", SP$$ = "[\\x20]", PCT_ENCODED$ = subexp(subexp("%[EFef]" + HEXDIG$$ + "%" + HEXDIG$$ + HEXDIG$$ + "%" + HEXDIG$$ + HEXDIG$$) + "|" + subexp("%[89A-Fa-f]" + HEXDIG$$ + "%" + HEXDIG$$ + HEXDIG$$) + "|" + subexp("%" + HEXDIG$$ + HEXDIG$$)), GEN_DELIMS$$ = "[\\:\\/\\?\\#\\[\\]\\@]", SUB_DELIMS$$ = "[\\!\\$\\&\\'\\(\\)\\*\\+\\,\\;\\=]", RESERVED$$ = merge(GEN_DELIMS$$, SUB_DELIMS$$), UCSCHAR$$ = isIRI ? "[\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]" : "[]", IPRIVATE$$ = isIRI ? "[\\uE000-\\uF8FF]" : "[]", UNRESERVED$$ = merge(ALPHA$$, DIGIT$$, "[\\-\\.\\_\\~]", UCSCHAR$$), SCHEME$ = subexp(ALPHA$$ + merge(ALPHA$$, DIGIT$$, "[\\+\\-\\.]") + "*"), USERINFO$ = subexp(subexp(PCT_ENCODED$ + "|" + merge(UNRESERVED$$, SUB_DELIMS$$, "[\\:]")) + "*"), DEC_OCTET$ = subexp(subexp("25[0-5]") + "|" + subexp("2[0-4]" + DIGIT$$) + "|" + subexp("1" + DIGIT$$ + DIGIT$$) + "|" + subexp("[1-9]" + DIGIT$$) + "|" + DIGIT$$), DEC_OCTET_RELAXED$ = subexp(subexp("25[0-5]") + "|" + subexp("2[0-4]" + DIGIT$$) + "|" + subexp("1" + DIGIT$$ + DIGIT$$) + "|" + subexp("0?[1-9]" + DIGIT$$) + "|0?0?" + DIGIT$$), IPV4ADDRESS$ = subexp(DEC_OCTET_RELAXED$ + "\\." + DEC_OCTET_RELAXED$ + "\\." + DEC_OCTET_RELAXED$ + "\\." + DEC_OCTET_RELAXED$), H16$ = subexp(HEXDIG$$ + "{1,4}"), LS32$ = subexp(subexp(H16$ + "\\:" + H16$) + "|" + IPV4ADDRESS$), IPV6ADDRESS1$ = subexp(subexp(H16$ + "\\:") + "{6}" + LS32$), IPV6ADDRESS2$ = subexp("\\:\\:" + subexp(H16$ + "\\:") + "{5}" + LS32$), IPV6ADDRESS3$ = subexp(subexp(H16$) + "?\\:\\:" + subexp(H16$ + "\\:") + "{4}" + LS32$), IPV6ADDRESS4$ = subexp(subexp(subexp(H16$ + "\\:") + "{0,1}" + H16$) + "?\\:\\:" + subexp(H16$ + "\\:") + "{3}" + LS32$), IPV6ADDRESS5$ = subexp(subexp(subexp(H16$ + "\\:") + "{0,2}" + H16$) + "?\\:\\:" + subexp(H16$ + "\\:") + "{2}" + LS32$), IPV6ADDRESS6$ = subexp(subexp(subexp(H16$ + "\\:") + "{0,3}" + H16$) + "?\\:\\:" + H16$ + "\\:" + LS32$), IPV6ADDRESS7$ = subexp(subexp(subexp(H16$ + "\\:") + "{0,4}" + H16$) + "?\\:\\:" + LS32$), IPV6ADDRESS8$ = subexp(subexp(subexp(H16$ + "\\:") + "{0,5}" + H16$) + "?\\:\\:" + H16$), IPV6ADDRESS9$ = subexp(subexp(subexp(H16$ + "\\:") + "{0,6}" + H16$) + "?\\:\\:"), IPV6ADDRESS$ = subexp([IPV6ADDRESS1$, IPV6ADDRESS2$, IPV6ADDRESS3$, IPV6ADDRESS4$, IPV6ADDRESS5$, IPV6ADDRESS6$, IPV6ADDRESS7$, IPV6ADDRESS8$, IPV6ADDRESS9$].join("|")), ZONEID$ = subexp(subexp(UNRESERVED$$ + "|" + PCT_ENCODED$) + "+"), IPV6ADDRZ$ = subexp(IPV6ADDRESS$ + "\\%25" + ZONEID$), IPV6ADDRZ_RELAXED$ = subexp(IPV6ADDRESS$ + subexp("\\%25|\\%(?!" + HEXDIG$$ + "{2})") + ZONEID$), IPVFUTURE$ = subexp("[vV]" + HEXDIG$$ + "+\\." + merge(UNRESERVED$$, SUB_DELIMS$$, "[\\:]") + "+"), IP_LITERAL$ = subexp("\\[" + subexp(IPV6ADDRZ_RELAXED$ + "|" + IPV6ADDRESS$ + "|" + IPVFUTURE$) + "\\]"), REG_NAME$ = subexp(subexp(PCT_ENCODED$ + "|" + merge(UNRESERVED$$, SUB_DELIMS$$)) + "*"), HOST$ = subexp(IP_LITERAL$ + "|" + IPV4ADDRESS$ + "(?!" + REG_NAME$ + ")" + "|" + REG_NAME$), PORT$ = subexp(DIGIT$$ + "*"), AUTHORITY$ = subexp(subexp(USERINFO$ + "@") + "?" + HOST$ + subexp("\\:" + PORT$) + "?"), PCHAR$ = subexp(PCT_ENCODED$ + "|" + merge(UNRESERVED$$, SUB_DELIMS$$, "[\\:\\@]")), SEGMENT$ = subexp(PCHAR$ + "*"), SEGMENT_NZ$ = subexp(PCHAR$ + "+"), SEGMENT_NZ_NC$ = subexp(subexp(PCT_ENCODED$ + "|" + merge(UNRESERVED$$, SUB_DELIMS$$, "[\\@]")) + "+"), PATH_ABEMPTY$ = subexp(subexp("\\/" + SEGMENT$) + "*"), PATH_ABSOLUTE$ = subexp("\\/" + subexp(SEGMENT_NZ$ + PATH_ABEMPTY$) + "?"), PATH_NOSCHEME$ = subexp(SEGMENT_NZ_NC$ + PATH_ABEMPTY$), PATH_ROOTLESS$ = subexp(SEGMENT_NZ$ + PATH_ABEMPTY$), PATH_EMPTY$ = "(?!" + PCHAR$ + ")", PATH$ = subexp(PATH_ABEMPTY$ + "|" + PATH_ABSOLUTE$ + "|" + PATH_NOSCHEME$ + "|" + PATH_ROOTLESS$ + "|" + PATH_EMPTY$), QUERY$ = subexp(subexp(PCHAR$ + "|" + merge("[\\/\\?]", IPRIVATE$$)) + "*"), FRAGMENT$ = subexp(subexp(PCHAR$ + "|[\\/\\?]") + "*"), HIER_PART$ = subexp(subexp("\\/\\/" + AUTHORITY$ + PATH_ABEMPTY$) + "|" + PATH_ABSOLUTE$ + "|" + PATH_ROOTLESS$ + "|" + PATH_EMPTY$), URI$ = subexp(SCHEME$ + "\\:" + HIER_PART$ + subexp("\\?" + QUERY$) + "?" + subexp("\\#" + FRAGMENT$) + "?"), RELATIVE_PART$ = subexp(subexp("\\/\\/" + AUTHORITY$ + PATH_ABEMPTY$) + "|" + PATH_ABSOLUTE$ + "|" + PATH_NOSCHEME$ + "|" + PATH_EMPTY$), RELATIVE$ = subexp(RELATIVE_PART$ + subexp("\\?" + QUERY$) + "?" + subexp("\\#" + FRAGMENT$) + "?"), URI_REFERENCE$ = subexp(URI$ + "|" + RELATIVE$), ABSOLUTE_URI$ = subexp(SCHEME$ + "\\:" + HIER_PART$ + subexp("\\?" + QUERY$) + "?"), GENERIC_REF$ = "^(" + SCHEME$ + ")\\:" + subexp(subexp("\\/\\/(" + subexp("(" + USERINFO$ + ")@") + "?(" + HOST$ + ")" + subexp("\\:(" + PORT$ + ")") + "?)") + "?(" + PATH_ABEMPTY$ + "|" + PATH_ABSOLUTE$ + "|" + PATH_ROOTLESS$ + "|" + PATH_EMPTY$ + ")") + subexp("\\?(" + QUERY$ + ")") + "?" + subexp("\\#(" + FRAGMENT$ + ")") + "?$", RELATIVE_REF$ = "^(){0}" + subexp(subexp("\\/\\/(" + subexp("(" + USERINFO$ + ")@") + "?(" + HOST$ + ")" + subexp("\\:(" + PORT$ + ")") + "?)") + "?(" + PATH_ABEMPTY$ + "|" + PATH_ABSOLUTE$ + "|" + PATH_NOSCHEME$ + "|" + PATH_EMPTY$ + ")") + subexp("\\?(" + QUERY$ + ")") + "?" + subexp("\\#(" + FRAGMENT$ + ")") + "?$", ABSOLUTE_REF$ = "^(" + SCHEME$ + ")\\:" + subexp(subexp("\\/\\/(" + subexp("(" + USERINFO$ + ")@") + "?(" + HOST$ + ")" + subexp("\\:(" + PORT$ + ")") + "?)") + "?(" + PATH_ABEMPTY$ + "|" + PATH_ABSOLUTE$ + "|" + PATH_ROOTLESS$ + "|" + PATH_EMPTY$ + ")") + subexp("\\?(" + QUERY$ + ")") + "?$", SAMEDOC_REF$ = "^" + subexp("\\#(" + FRAGMENT$ + ")") + "?$", AUTHORITY_REF$ = "^" + subexp("(" + USERINFO$ + ")@") + "?(" + HOST$ + ")" + subexp("\\:(" + PORT$ + ")") + "?$";
|
|
9318
9328
|
return {
|
|
9319
9329
|
NOT_SCHEME: new RegExp(merge("[^]", ALPHA$$, DIGIT$$, "[\\+\\-\\.]"), "g"),
|
|
9320
|
-
NOT_USERINFO: new RegExp(merge("[^\\%\\:]", UNRESERVED
|
|
9321
|
-
NOT_HOST: new RegExp(merge("[^\\%\\[\\]\\:]", UNRESERVED
|
|
9322
|
-
NOT_PATH: new RegExp(merge("[^\\%\\/\\:\\@]", UNRESERVED
|
|
9323
|
-
NOT_PATH_NOSCHEME: new RegExp(merge("[^\\%\\/\\@]", UNRESERVED
|
|
9324
|
-
NOT_QUERY: new RegExp(merge("[^\\%]", UNRESERVED
|
|
9325
|
-
NOT_FRAGMENT: new RegExp(merge("[^\\%]", UNRESERVED
|
|
9326
|
-
ESCAPE: new RegExp(merge("[^]", UNRESERVED
|
|
9327
|
-
UNRESERVED: new RegExp(UNRESERVED
|
|
9328
|
-
OTHER_CHARS: new RegExp(merge("[^\\%]", UNRESERVED
|
|
9329
|
-
PCT_ENCODED: new RegExp(PCT_ENCODED
|
|
9330
|
+
NOT_USERINFO: new RegExp(merge("[^\\%\\:]", UNRESERVED$$, SUB_DELIMS$$), "g"),
|
|
9331
|
+
NOT_HOST: new RegExp(merge("[^\\%\\[\\]\\:]", UNRESERVED$$, SUB_DELIMS$$), "g"),
|
|
9332
|
+
NOT_PATH: new RegExp(merge("[^\\%\\/\\:\\@]", UNRESERVED$$, SUB_DELIMS$$), "g"),
|
|
9333
|
+
NOT_PATH_NOSCHEME: new RegExp(merge("[^\\%\\/\\@]", UNRESERVED$$, SUB_DELIMS$$), "g"),
|
|
9334
|
+
NOT_QUERY: new RegExp(merge("[^\\%]", UNRESERVED$$, SUB_DELIMS$$, "[\\:\\@\\/\\?]", IPRIVATE$$), "g"),
|
|
9335
|
+
NOT_FRAGMENT: new RegExp(merge("[^\\%]", UNRESERVED$$, SUB_DELIMS$$, "[\\:\\@\\/\\?]"), "g"),
|
|
9336
|
+
ESCAPE: new RegExp(merge("[^]", UNRESERVED$$, SUB_DELIMS$$), "g"),
|
|
9337
|
+
UNRESERVED: new RegExp(UNRESERVED$$, "g"),
|
|
9338
|
+
OTHER_CHARS: new RegExp(merge("[^\\%]", UNRESERVED$$, RESERVED$$), "g"),
|
|
9339
|
+
PCT_ENCODED: new RegExp(PCT_ENCODED$, "g"),
|
|
9330
9340
|
IPV4ADDRESS: new RegExp("^(" + IPV4ADDRESS$ + ")$"),
|
|
9331
|
-
IPV6ADDRESS: new RegExp("^\\[?(" + IPV6ADDRESS$ + ")" + subexp(subexp("\\%25|\\%(?!" + HEXDIG$$
|
|
9341
|
+
IPV6ADDRESS: new RegExp("^\\[?(" + IPV6ADDRESS$ + ")" + subexp(subexp("\\%25|\\%(?!" + HEXDIG$$ + "{2})") + "(" + ZONEID$ + ")") + "?\\]?$")
|
|
9332
9342
|
};
|
|
9333
9343
|
}
|
|
9334
9344
|
var URI_PROTOCOL = buildExps(false);
|
|
@@ -9441,10 +9451,10 @@ var require_uri_all = __commonJS(function(exports, module) {
|
|
|
9441
9451
|
}
|
|
9442
9452
|
return output;
|
|
9443
9453
|
}
|
|
9444
|
-
var ucs2encode = function
|
|
9454
|
+
var ucs2encode = function ucs2encode(array) {
|
|
9445
9455
|
return String.fromCodePoint.apply(String, toConsumableArray(array));
|
|
9446
9456
|
};
|
|
9447
|
-
var basicToDigit = function
|
|
9457
|
+
var basicToDigit = function basicToDigit(codePoint) {
|
|
9448
9458
|
if (codePoint - 48 < 10) {
|
|
9449
9459
|
return codePoint - 22;
|
|
9450
9460
|
}
|
|
@@ -9456,10 +9466,10 @@ var require_uri_all = __commonJS(function(exports, module) {
|
|
|
9456
9466
|
}
|
|
9457
9467
|
return base;
|
|
9458
9468
|
};
|
|
9459
|
-
var digitToBasic = function
|
|
9469
|
+
var digitToBasic = function digitToBasic(digit, flag) {
|
|
9460
9470
|
return digit + 22 + 75 * (digit < 26) - ((flag != 0) << 5);
|
|
9461
9471
|
};
|
|
9462
|
-
var adapt = function
|
|
9472
|
+
var adapt = function adapt(delta, numPoints, firstTime) {
|
|
9463
9473
|
var k = 0;
|
|
9464
9474
|
delta = firstTime ? floor(delta / damp) : delta >> 1;
|
|
9465
9475
|
delta += floor(delta / numPoints);
|
|
@@ -9468,7 +9478,7 @@ var require_uri_all = __commonJS(function(exports, module) {
|
|
|
9468
9478
|
}
|
|
9469
9479
|
return floor(k + (baseMinusTMin + 1) * delta / (delta + skew));
|
|
9470
9480
|
};
|
|
9471
|
-
var decode = function
|
|
9481
|
+
var decode = function decode(input) {
|
|
9472
9482
|
var output = [];
|
|
9473
9483
|
var inputLength = input.length;
|
|
9474
9484
|
var i = 0;
|
|
@@ -9516,7 +9526,7 @@ var require_uri_all = __commonJS(function(exports, module) {
|
|
|
9516
9526
|
}
|
|
9517
9527
|
return String.fromCodePoint.apply(String, output);
|
|
9518
9528
|
};
|
|
9519
|
-
var encode = function
|
|
9529
|
+
var encode = function encode(input) {
|
|
9520
9530
|
var output = [];
|
|
9521
9531
|
input = ucs2decode(input);
|
|
9522
9532
|
var inputLength = input.length;
|
|
@@ -9630,12 +9640,12 @@ var require_uri_all = __commonJS(function(exports, module) {
|
|
|
9630
9640
|
}
|
|
9631
9641
|
return output.join("");
|
|
9632
9642
|
};
|
|
9633
|
-
var toUnicode = function
|
|
9643
|
+
var toUnicode = function toUnicode(input) {
|
|
9634
9644
|
return mapDomain(input, function(string) {
|
|
9635
9645
|
return regexPunycode.test(string) ? decode(string.slice(4).toLowerCase()) : string;
|
|
9636
9646
|
});
|
|
9637
9647
|
};
|
|
9638
|
-
var toASCII = function
|
|
9648
|
+
var toASCII = function toASCII(input) {
|
|
9639
9649
|
return mapDomain(input, function(string) {
|
|
9640
9650
|
return regexNonASCII.test(string) ? "xn--" + encode(string) : string;
|
|
9641
9651
|
});
|
|
@@ -9699,22 +9709,22 @@ var require_uri_all = __commonJS(function(exports, module) {
|
|
|
9699
9709
|
return newStr;
|
|
9700
9710
|
}
|
|
9701
9711
|
function _normalizeComponentEncoding(components, protocol) {
|
|
9702
|
-
function
|
|
9712
|
+
function decodeUnreserved(str) {
|
|
9703
9713
|
var decStr = pctDecChars(str);
|
|
9704
9714
|
return !decStr.match(protocol.UNRESERVED) ? str : decStr;
|
|
9705
9715
|
}
|
|
9706
9716
|
if (components.scheme)
|
|
9707
|
-
components.scheme = String(components.scheme).replace(protocol.PCT_ENCODED,
|
|
9717
|
+
components.scheme = String(components.scheme).replace(protocol.PCT_ENCODED, decodeUnreserved).toLowerCase().replace(protocol.NOT_SCHEME, "");
|
|
9708
9718
|
if (components.userinfo !== undefined)
|
|
9709
|
-
components.userinfo = String(components.userinfo).replace(protocol.PCT_ENCODED,
|
|
9719
|
+
components.userinfo = String(components.userinfo).replace(protocol.PCT_ENCODED, decodeUnreserved).replace(protocol.NOT_USERINFO, pctEncChar).replace(protocol.PCT_ENCODED, toUpperCase);
|
|
9710
9720
|
if (components.host !== undefined)
|
|
9711
|
-
components.host = String(components.host).replace(protocol.PCT_ENCODED,
|
|
9721
|
+
components.host = String(components.host).replace(protocol.PCT_ENCODED, decodeUnreserved).toLowerCase().replace(protocol.NOT_HOST, pctEncChar).replace(protocol.PCT_ENCODED, toUpperCase);
|
|
9712
9722
|
if (components.path !== undefined)
|
|
9713
|
-
components.path = String(components.path).replace(protocol.PCT_ENCODED,
|
|
9723
|
+
components.path = String(components.path).replace(protocol.PCT_ENCODED, decodeUnreserved).replace(components.scheme ? protocol.NOT_PATH : protocol.NOT_PATH_NOSCHEME, pctEncChar).replace(protocol.PCT_ENCODED, toUpperCase);
|
|
9714
9724
|
if (components.query !== undefined)
|
|
9715
|
-
components.query = String(components.query).replace(protocol.PCT_ENCODED,
|
|
9725
|
+
components.query = String(components.query).replace(protocol.PCT_ENCODED, decodeUnreserved).replace(protocol.NOT_QUERY, pctEncChar).replace(protocol.PCT_ENCODED, toUpperCase);
|
|
9716
9726
|
if (components.fragment !== undefined)
|
|
9717
|
-
components.fragment = String(components.fragment).replace(protocol.PCT_ENCODED,
|
|
9727
|
+
components.fragment = String(components.fragment).replace(protocol.PCT_ENCODED, decodeUnreserved).replace(protocol.NOT_FRAGMENT, pctEncChar).replace(protocol.PCT_ENCODED, toUpperCase);
|
|
9718
9728
|
return components;
|
|
9719
9729
|
}
|
|
9720
9730
|
function _stripLeadingZeros(str) {
|
|
@@ -9943,12 +9953,12 @@ var require_uri_all = __commonJS(function(exports, module) {
|
|
|
9943
9953
|
}
|
|
9944
9954
|
return uriTokens.join("");
|
|
9945
9955
|
}
|
|
9946
|
-
function resolveComponents(
|
|
9956
|
+
function resolveComponents(base, relative) {
|
|
9947
9957
|
var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
|
9948
9958
|
var skipNormalization = arguments[3];
|
|
9949
9959
|
var target = {};
|
|
9950
9960
|
if (!skipNormalization) {
|
|
9951
|
-
|
|
9961
|
+
base = parse(serialize(base, options), options);
|
|
9952
9962
|
relative = parse(serialize(relative, options), options);
|
|
9953
9963
|
}
|
|
9954
9964
|
options = options || {};
|
|
@@ -9968,32 +9978,32 @@ var require_uri_all = __commonJS(function(exports, module) {
|
|
|
9968
9978
|
target.query = relative.query;
|
|
9969
9979
|
} else {
|
|
9970
9980
|
if (!relative.path) {
|
|
9971
|
-
target.path =
|
|
9981
|
+
target.path = base.path;
|
|
9972
9982
|
if (relative.query !== undefined) {
|
|
9973
9983
|
target.query = relative.query;
|
|
9974
9984
|
} else {
|
|
9975
|
-
target.query =
|
|
9985
|
+
target.query = base.query;
|
|
9976
9986
|
}
|
|
9977
9987
|
} else {
|
|
9978
9988
|
if (relative.path.charAt(0) === "/") {
|
|
9979
9989
|
target.path = removeDotSegments(relative.path);
|
|
9980
9990
|
} else {
|
|
9981
|
-
if ((
|
|
9991
|
+
if ((base.userinfo !== undefined || base.host !== undefined || base.port !== undefined) && !base.path) {
|
|
9982
9992
|
target.path = "/" + relative.path;
|
|
9983
|
-
} else if (!
|
|
9993
|
+
} else if (!base.path) {
|
|
9984
9994
|
target.path = relative.path;
|
|
9985
9995
|
} else {
|
|
9986
|
-
target.path =
|
|
9996
|
+
target.path = base.path.slice(0, base.path.lastIndexOf("/") + 1) + relative.path;
|
|
9987
9997
|
}
|
|
9988
9998
|
target.path = removeDotSegments(target.path);
|
|
9989
9999
|
}
|
|
9990
10000
|
target.query = relative.query;
|
|
9991
10001
|
}
|
|
9992
|
-
target.userinfo =
|
|
9993
|
-
target.host =
|
|
9994
|
-
target.port =
|
|
10002
|
+
target.userinfo = base.userinfo;
|
|
10003
|
+
target.host = base.host;
|
|
10004
|
+
target.port = base.port;
|
|
9995
10005
|
}
|
|
9996
|
-
target.scheme =
|
|
10006
|
+
target.scheme = base.scheme;
|
|
9997
10007
|
}
|
|
9998
10008
|
target.fragment = relative.fragment;
|
|
9999
10009
|
return target;
|
|
@@ -10032,13 +10042,13 @@ var require_uri_all = __commonJS(function(exports, module) {
|
|
|
10032
10042
|
var handler = {
|
|
10033
10043
|
scheme: "http",
|
|
10034
10044
|
domainHost: true,
|
|
10035
|
-
parse: function
|
|
10045
|
+
parse: function parse(components, options) {
|
|
10036
10046
|
if (!components.host) {
|
|
10037
10047
|
components.error = components.error || "HTTP URIs must have a host.";
|
|
10038
10048
|
}
|
|
10039
10049
|
return components;
|
|
10040
10050
|
},
|
|
10041
|
-
serialize: function
|
|
10051
|
+
serialize: function serialize(components, options) {
|
|
10042
10052
|
var secure = String(components.scheme).toLowerCase() === "https";
|
|
10043
10053
|
if (components.port === (secure ? 443 : 80) || components.port === "") {
|
|
10044
10054
|
components.port = undefined;
|
|
@@ -10061,7 +10071,7 @@ var require_uri_all = __commonJS(function(exports, module) {
|
|
|
10061
10071
|
var handler$2 = {
|
|
10062
10072
|
scheme: "ws",
|
|
10063
10073
|
domainHost: true,
|
|
10064
|
-
parse: function
|
|
10074
|
+
parse: function parse(components, options) {
|
|
10065
10075
|
var wsComponents = components;
|
|
10066
10076
|
wsComponents.secure = isSecure(wsComponents);
|
|
10067
10077
|
wsComponents.resourceName = (wsComponents.path || "/") + (wsComponents.query ? "?" + wsComponents.query : "");
|
|
@@ -10069,7 +10079,7 @@ var require_uri_all = __commonJS(function(exports, module) {
|
|
|
10069
10079
|
wsComponents.query = undefined;
|
|
10070
10080
|
return wsComponents;
|
|
10071
10081
|
},
|
|
10072
|
-
serialize: function
|
|
10082
|
+
serialize: function serialize(wsComponents, options) {
|
|
10073
10083
|
if (wsComponents.port === (isSecure(wsComponents) ? 443 : 80) || wsComponents.port === "") {
|
|
10074
10084
|
wsComponents.port = undefined;
|
|
10075
10085
|
}
|
|
@@ -10237,7 +10247,7 @@ var require_uri_all = __commonJS(function(exports, module) {
|
|
|
10237
10247
|
var UUID = /^[0-9A-Fa-f]{8}(?:\-[0-9A-Fa-f]{4}){3}\-[0-9A-Fa-f]{12}$/;
|
|
10238
10248
|
var handler$6 = {
|
|
10239
10249
|
scheme: "urn:uuid",
|
|
10240
|
-
parse: function
|
|
10250
|
+
parse: function parse(urnComponents, options) {
|
|
10241
10251
|
var uuidComponents = urnComponents;
|
|
10242
10252
|
uuidComponents.uuid = uuidComponents.nss;
|
|
10243
10253
|
uuidComponents.nss = undefined;
|
|
@@ -10246,7 +10256,7 @@ var require_uri_all = __commonJS(function(exports, module) {
|
|
|
10246
10256
|
}
|
|
10247
10257
|
return uuidComponents;
|
|
10248
10258
|
},
|
|
10249
|
-
serialize: function
|
|
10259
|
+
serialize: function serialize(uuidComponents, options) {
|
|
10250
10260
|
var urnComponents = uuidComponents;
|
|
10251
10261
|
urnComponents.nss = (uuidComponents.uuid || "").toLowerCase();
|
|
10252
10262
|
return urnComponents;
|
|
@@ -10390,7 +10400,7 @@ var require_core3 = __commonJS(function(exports) {
|
|
|
10390
10400
|
};
|
|
10391
10401
|
}
|
|
10392
10402
|
|
|
10393
|
-
class
|
|
10403
|
+
class Ajv {
|
|
10394
10404
|
constructor(opts = {}) {
|
|
10395
10405
|
this.schemas = {};
|
|
10396
10406
|
this.refs = {};
|
|
@@ -10747,9 +10757,9 @@ var require_core3 = __commonJS(function(exports) {
|
|
|
10747
10757
|
}
|
|
10748
10758
|
}
|
|
10749
10759
|
}
|
|
10750
|
-
exports.default =
|
|
10751
|
-
|
|
10752
|
-
|
|
10760
|
+
exports.default = Ajv;
|
|
10761
|
+
Ajv.ValidationError = validation_error_1.default;
|
|
10762
|
+
Ajv.MissingRefError = ref_error_1.default;
|
|
10753
10763
|
function checkOptions(checkOpts, options, msg, log = "error") {
|
|
10754
10764
|
for (const key in checkOpts) {
|
|
10755
10765
|
const opt = key;
|
|
@@ -12440,9 +12450,9 @@ var require_types2 = __commonJS(function(exports) {
|
|
|
12440
12450
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12441
12451
|
exports.DiscrError = undefined;
|
|
12442
12452
|
var DiscrError;
|
|
12443
|
-
(function(
|
|
12444
|
-
|
|
12445
|
-
|
|
12453
|
+
(function(DiscrError) {
|
|
12454
|
+
DiscrError["Tag"] = "tag";
|
|
12455
|
+
DiscrError["Mapping"] = "mapping";
|
|
12446
12456
|
})(DiscrError = exports.DiscrError || (exports.DiscrError = {}));
|
|
12447
12457
|
});
|
|
12448
12458
|
|
|
@@ -12710,7 +12720,7 @@ var require_ajv2 = __commonJS(function(exports, module) {
|
|
|
12710
12720
|
var META_SUPPORT_DATA = ["/properties"];
|
|
12711
12721
|
var META_SCHEMA_ID = "http://json-schema.org/draft-07/schema";
|
|
12712
12722
|
|
|
12713
|
-
class
|
|
12723
|
+
class Ajv extends core_1.default {
|
|
12714
12724
|
_addVocabularies() {
|
|
12715
12725
|
super._addVocabularies();
|
|
12716
12726
|
draft7_1.default.forEach((v) => this.addVocabulary(v));
|
|
@@ -12729,9 +12739,9 @@ var require_ajv2 = __commonJS(function(exports, module) {
|
|
|
12729
12739
|
return this.opts.defaultMeta = super.defaultMeta() || (this.getSchema(META_SCHEMA_ID) ? META_SCHEMA_ID : undefined);
|
|
12730
12740
|
}
|
|
12731
12741
|
}
|
|
12732
|
-
module.exports = exports =
|
|
12742
|
+
module.exports = exports = Ajv;
|
|
12733
12743
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12734
|
-
exports.default =
|
|
12744
|
+
exports.default = Ajv;
|
|
12735
12745
|
var validate_1 = require_validate2();
|
|
12736
12746
|
Object.defineProperty(exports, "KeywordCxt", { enumerable: true, get: function() {
|
|
12737
12747
|
return validate_1.KeywordCxt;
|
|
@@ -12827,9 +12837,9 @@ var require_limit = __commonJS(function(exports) {
|
|
|
12827
12837
|
},
|
|
12828
12838
|
dependencies: ["format"]
|
|
12829
12839
|
};
|
|
12830
|
-
var formatLimitPlugin = (
|
|
12831
|
-
|
|
12832
|
-
return
|
|
12840
|
+
var formatLimitPlugin = (ajv) => {
|
|
12841
|
+
ajv.addKeyword(exports.formatLimitDefinition);
|
|
12842
|
+
return ajv;
|
|
12833
12843
|
};
|
|
12834
12844
|
exports.default = formatLimitPlugin;
|
|
12835
12845
|
});
|
|
@@ -12842,17 +12852,17 @@ var require_dist = __commonJS(function(exports, module) {
|
|
|
12842
12852
|
var codegen_1 = require_codegen2();
|
|
12843
12853
|
var fullName = new codegen_1.Name("fullFormats");
|
|
12844
12854
|
var fastName = new codegen_1.Name("fastFormats");
|
|
12845
|
-
var formatsPlugin = (
|
|
12855
|
+
var formatsPlugin = (ajv, opts = { keywords: true }) => {
|
|
12846
12856
|
if (Array.isArray(opts)) {
|
|
12847
|
-
addFormats(
|
|
12848
|
-
return
|
|
12857
|
+
addFormats(ajv, opts, formats_1.fullFormats, fullName);
|
|
12858
|
+
return ajv;
|
|
12849
12859
|
}
|
|
12850
12860
|
const [formats, exportName] = opts.mode === "fast" ? [formats_1.fastFormats, fastName] : [formats_1.fullFormats, fullName];
|
|
12851
12861
|
const list = opts.formats || formats_1.formatNames;
|
|
12852
|
-
addFormats(
|
|
12862
|
+
addFormats(ajv, list, formats, exportName);
|
|
12853
12863
|
if (opts.keywords)
|
|
12854
|
-
limit_1.default(
|
|
12855
|
-
return
|
|
12864
|
+
limit_1.default(ajv);
|
|
12865
|
+
return ajv;
|
|
12856
12866
|
};
|
|
12857
12867
|
formatsPlugin.get = (name, mode = "full") => {
|
|
12858
12868
|
const formats = mode === "fast" ? formats_1.fastFormats : formats_1.fullFormats;
|
|
@@ -12861,12 +12871,12 @@ var require_dist = __commonJS(function(exports, module) {
|
|
|
12861
12871
|
throw new Error(`Unknown format "${name}"`);
|
|
12862
12872
|
return f;
|
|
12863
12873
|
};
|
|
12864
|
-
function addFormats(
|
|
12874
|
+
function addFormats(ajv, list, fs, exportName) {
|
|
12865
12875
|
var _a;
|
|
12866
12876
|
var _b;
|
|
12867
|
-
(_a = (_b =
|
|
12877
|
+
(_a = (_b = ajv.opts.code).formats) !== null && _a !== undefined || (_b.formats = codegen_1._`require("ajv-formats/dist/formats").${exportName}`);
|
|
12868
12878
|
for (const f of list)
|
|
12869
|
-
|
|
12879
|
+
ajv.addFormat(f, fs[f]);
|
|
12870
12880
|
}
|
|
12871
12881
|
module.exports = exports = formatsPlugin;
|
|
12872
12882
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -13584,13 +13594,13 @@ var require_extend = __commonJS(function(exports, module) {
|
|
|
13584
13594
|
var toStr = Object.prototype.toString;
|
|
13585
13595
|
var defineProperty = Object.defineProperty;
|
|
13586
13596
|
var gOPD = Object.getOwnPropertyDescriptor;
|
|
13587
|
-
var isArray = function
|
|
13597
|
+
var isArray = function isArray(arr) {
|
|
13588
13598
|
if (typeof Array.isArray === "function") {
|
|
13589
13599
|
return Array.isArray(arr);
|
|
13590
13600
|
}
|
|
13591
13601
|
return toStr.call(arr) === "[object Array]";
|
|
13592
13602
|
};
|
|
13593
|
-
var isPlainObject = function
|
|
13603
|
+
var isPlainObject = function isPlainObject(obj) {
|
|
13594
13604
|
if (!obj || toStr.call(obj) !== "[object Object]") {
|
|
13595
13605
|
return false;
|
|
13596
13606
|
}
|
|
@@ -13603,7 +13613,7 @@ var require_extend = __commonJS(function(exports, module) {
|
|
|
13603
13613
|
for (key in obj) {}
|
|
13604
13614
|
return typeof key === "undefined" || hasOwn.call(obj, key);
|
|
13605
13615
|
};
|
|
13606
|
-
var setProperty = function
|
|
13616
|
+
var setProperty = function setProperty(target, options) {
|
|
13607
13617
|
if (defineProperty && options.name === "__proto__") {
|
|
13608
13618
|
defineProperty(target, options.name, {
|
|
13609
13619
|
enumerable: true,
|
|
@@ -13615,7 +13625,7 @@ var require_extend = __commonJS(function(exports, module) {
|
|
|
13615
13625
|
target[options.name] = options.newValue;
|
|
13616
13626
|
}
|
|
13617
13627
|
};
|
|
13618
|
-
var getProperty = function
|
|
13628
|
+
var getProperty = function getProperty(obj, name) {
|
|
13619
13629
|
if (name === "__proto__") {
|
|
13620
13630
|
if (!hasOwn.call(obj, name)) {
|
|
13621
13631
|
return;
|
|
@@ -15777,7 +15787,7 @@ var require_formats2 = __commonJS(function(exports, module) {
|
|
|
15777
15787
|
// ../../node_modules/ajv-formats-draft2019/index.js
|
|
15778
15788
|
var require_ajv_formats_draft2019 = __commonJS(function(exports, module) {
|
|
15779
15789
|
var formats = require_formats2();
|
|
15780
|
-
module.exports = (
|
|
15790
|
+
module.exports = (ajv, options = {}) => {
|
|
15781
15791
|
const allFormats = Object.keys(formats);
|
|
15782
15792
|
let formatsToInstall = allFormats;
|
|
15783
15793
|
if (options.formats) {
|
|
@@ -15786,9 +15796,9 @@ var require_ajv_formats_draft2019 = __commonJS(function(exports, module) {
|
|
|
15786
15796
|
formatsToInstall = options.formats;
|
|
15787
15797
|
}
|
|
15788
15798
|
allFormats.filter((format) => formatsToInstall.includes(format)).forEach((key) => {
|
|
15789
|
-
|
|
15799
|
+
ajv.addFormat(key, formats[key]);
|
|
15790
15800
|
});
|
|
15791
|
-
return
|
|
15801
|
+
return ajv;
|
|
15792
15802
|
};
|
|
15793
15803
|
});
|
|
15794
15804
|
|
|
@@ -15956,17 +15966,17 @@ var require_JID = __commonJS(function(exports, module) {
|
|
|
15956
15966
|
equals(other) {
|
|
15957
15967
|
return this._local === other._local && this._domain === other._domain && this._resource === other._resource;
|
|
15958
15968
|
}
|
|
15959
|
-
setLocal(local,
|
|
15960
|
-
|
|
15961
|
-
if (
|
|
15969
|
+
setLocal(local, escape3) {
|
|
15970
|
+
escape3 = escape3 || escaping.detect(local);
|
|
15971
|
+
if (escape3) {
|
|
15962
15972
|
local = escaping.escape(local);
|
|
15963
15973
|
}
|
|
15964
15974
|
this._local = local && local.toLowerCase();
|
|
15965
15975
|
return this;
|
|
15966
15976
|
}
|
|
15967
|
-
getLocal(
|
|
15977
|
+
getLocal(unescape3 = false) {
|
|
15968
15978
|
let local = null;
|
|
15969
|
-
local =
|
|
15979
|
+
local = unescape3 ? escaping.unescape(this._local) : this._local;
|
|
15970
15980
|
return local;
|
|
15971
15981
|
}
|
|
15972
15982
|
setDomain(domain) {
|
|
@@ -16419,14 +16429,14 @@ var require_ltx = __commonJS(function(exports, module) {
|
|
|
16419
16429
|
let attrQuoteChar;
|
|
16420
16430
|
let recordStart = 0;
|
|
16421
16431
|
let attrName;
|
|
16422
|
-
this._handleTagOpening = function _handleTagOpening(
|
|
16423
|
-
if (!
|
|
16424
|
-
this.emit("startElement",
|
|
16432
|
+
this._handleTagOpening = function _handleTagOpening(endTag, tagName, attrs) {
|
|
16433
|
+
if (!endTag) {
|
|
16434
|
+
this.emit("startElement", tagName, attrs);
|
|
16425
16435
|
if (selfClosing) {
|
|
16426
|
-
this.emit("endElement",
|
|
16436
|
+
this.emit("endElement", tagName, true);
|
|
16427
16437
|
}
|
|
16428
16438
|
} else {
|
|
16429
|
-
this.emit("endElement",
|
|
16439
|
+
this.emit("endElement", tagName, false);
|
|
16430
16440
|
}
|
|
16431
16441
|
};
|
|
16432
16442
|
this.write = function write(data) {
|
|
@@ -17242,12 +17252,12 @@ var require_node_gyp_build = __commonJS(function(exports, module) {
|
|
|
17242
17252
|
throw new Error("No native build was found for " + target + `
|
|
17243
17253
|
loaded from: ` + dir + `
|
|
17244
17254
|
`);
|
|
17245
|
-
function resolve(
|
|
17246
|
-
var tuples = readdirSync(path.join(
|
|
17255
|
+
function resolve(dir) {
|
|
17256
|
+
var tuples = readdirSync(path.join(dir, "prebuilds")).map(parseTuple);
|
|
17247
17257
|
var tuple = tuples.filter(matchTuple(platform, arch)).sort(compareTuples)[0];
|
|
17248
17258
|
if (!tuple)
|
|
17249
17259
|
return;
|
|
17250
|
-
var prebuilds = path.join(
|
|
17260
|
+
var prebuilds = path.join(dir, "prebuilds", tuple.name);
|
|
17251
17261
|
var parsed = readdirSync(prebuilds).map(parseTags);
|
|
17252
17262
|
var candidates = parsed.filter(matchTags(runtime, abi));
|
|
17253
17263
|
var winner = candidates.sort(compareTags(runtime))[0];
|
|
@@ -17273,23 +17283,23 @@ var require_node_gyp_build = __commonJS(function(exports, module) {
|
|
|
17273
17283
|
var arr = name.split("-");
|
|
17274
17284
|
if (arr.length !== 2)
|
|
17275
17285
|
return;
|
|
17276
|
-
var
|
|
17286
|
+
var platform = arr[0];
|
|
17277
17287
|
var architectures = arr[1].split("+");
|
|
17278
|
-
if (!
|
|
17288
|
+
if (!platform)
|
|
17279
17289
|
return;
|
|
17280
17290
|
if (!architectures.length)
|
|
17281
17291
|
return;
|
|
17282
17292
|
if (!architectures.every(Boolean))
|
|
17283
17293
|
return;
|
|
17284
|
-
return { name, platform
|
|
17294
|
+
return { name, platform, architectures };
|
|
17285
17295
|
}
|
|
17286
|
-
function matchTuple(
|
|
17296
|
+
function matchTuple(platform, arch) {
|
|
17287
17297
|
return function(tuple) {
|
|
17288
17298
|
if (tuple == null)
|
|
17289
17299
|
return false;
|
|
17290
|
-
if (tuple.platform !==
|
|
17300
|
+
if (tuple.platform !== platform)
|
|
17291
17301
|
return false;
|
|
17292
|
-
return tuple.architectures.includes(
|
|
17302
|
+
return tuple.architectures.includes(arch);
|
|
17293
17303
|
};
|
|
17294
17304
|
}
|
|
17295
17305
|
function compareTuples(a, b) {
|
|
@@ -17322,13 +17332,13 @@ var require_node_gyp_build = __commonJS(function(exports, module) {
|
|
|
17322
17332
|
}
|
|
17323
17333
|
return tags;
|
|
17324
17334
|
}
|
|
17325
|
-
function matchTags(
|
|
17335
|
+
function matchTags(runtime, abi) {
|
|
17326
17336
|
return function(tags) {
|
|
17327
17337
|
if (tags == null)
|
|
17328
17338
|
return false;
|
|
17329
|
-
if (tags.runtime && tags.runtime !==
|
|
17339
|
+
if (tags.runtime && tags.runtime !== runtime && !runtimeAgnostic(tags))
|
|
17330
17340
|
return false;
|
|
17331
|
-
if (tags.abi && tags.abi !==
|
|
17341
|
+
if (tags.abi && tags.abi !== abi && !tags.napi)
|
|
17332
17342
|
return false;
|
|
17333
17343
|
if (tags.uv && tags.uv !== uv)
|
|
17334
17344
|
return false;
|
|
@@ -17342,10 +17352,10 @@ var require_node_gyp_build = __commonJS(function(exports, module) {
|
|
|
17342
17352
|
function runtimeAgnostic(tags) {
|
|
17343
17353
|
return tags.runtime === "node" && tags.napi;
|
|
17344
17354
|
}
|
|
17345
|
-
function compareTags(
|
|
17355
|
+
function compareTags(runtime) {
|
|
17346
17356
|
return function(a, b) {
|
|
17347
17357
|
if (a.runtime !== b.runtime) {
|
|
17348
|
-
return a.runtime ===
|
|
17358
|
+
return a.runtime === runtime ? -1 : 1;
|
|
17349
17359
|
} else if (a.abi !== b.abi) {
|
|
17350
17360
|
return a.abi ? -1 : 1;
|
|
17351
17361
|
} else if (a.specificity !== b.specificity) {
|
|
@@ -17365,8 +17375,8 @@ var require_node_gyp_build = __commonJS(function(exports, module) {
|
|
|
17365
17375
|
return true;
|
|
17366
17376
|
return typeof window !== "undefined" && window.process && window.process.type === "renderer";
|
|
17367
17377
|
}
|
|
17368
|
-
function isAlpine(
|
|
17369
|
-
return
|
|
17378
|
+
function isAlpine(platform) {
|
|
17379
|
+
return platform === "linux" && fs.existsSync("/etc/alpine-release");
|
|
17370
17380
|
}
|
|
17371
17381
|
load.parseTags = parseTags;
|
|
17372
17382
|
load.matchTags = matchTags;
|
|
@@ -17388,15 +17398,15 @@ var require_node_gyp_build2 = __commonJS(function(exports, module) {
|
|
|
17388
17398
|
|
|
17389
17399
|
// ../../node_modules/bufferutil/fallback.js
|
|
17390
17400
|
var require_fallback = __commonJS(function(exports, module) {
|
|
17391
|
-
var mask = (source,
|
|
17401
|
+
var mask = (source, mask, output, offset, length) => {
|
|
17392
17402
|
for (var i = 0;i < length; i++) {
|
|
17393
|
-
output[offset + i] = source[i] ^
|
|
17403
|
+
output[offset + i] = source[i] ^ mask[i & 3];
|
|
17394
17404
|
}
|
|
17395
17405
|
};
|
|
17396
|
-
var unmask = (buffer,
|
|
17406
|
+
var unmask = (buffer, mask) => {
|
|
17397
17407
|
const length = buffer.length;
|
|
17398
17408
|
for (var i = 0;i < length; i++) {
|
|
17399
|
-
buffer[i] ^=
|
|
17409
|
+
buffer[i] ^= mask[i & 3];
|
|
17400
17410
|
}
|
|
17401
17411
|
};
|
|
17402
17412
|
module.exports = { mask, unmask };
|
|
@@ -17474,11 +17484,11 @@ var require_buffer_util = __commonJS(function(exports, module) {
|
|
|
17474
17484
|
if (!process.env.WS_NO_BUFFER_UTIL) {
|
|
17475
17485
|
try {
|
|
17476
17486
|
const bufferUtil = require_bufferutil();
|
|
17477
|
-
module.exports.mask = function(source,
|
|
17487
|
+
module.exports.mask = function(source, mask2, output, offset, length) {
|
|
17478
17488
|
if (length < 48)
|
|
17479
|
-
_mask(source,
|
|
17489
|
+
_mask(source, mask2, output, offset, length);
|
|
17480
17490
|
else
|
|
17481
|
-
bufferUtil.mask(source,
|
|
17491
|
+
bufferUtil.mask(source, mask2, output, offset, length);
|
|
17482
17492
|
};
|
|
17483
17493
|
module.exports.unmask = function(buffer, mask) {
|
|
17484
17494
|
if (buffer.length < 32)
|
|
@@ -17711,7 +17721,7 @@ var require_permessage_deflate = __commonJS(function(exports, module) {
|
|
|
17711
17721
|
callback(err);
|
|
17712
17722
|
return;
|
|
17713
17723
|
}
|
|
17714
|
-
const
|
|
17724
|
+
const data = bufferUtil.concat(this._inflate[kBuffers], this._inflate[kTotalLength]);
|
|
17715
17725
|
if (this._inflate._readableState.endEmitted) {
|
|
17716
17726
|
this._inflate.close();
|
|
17717
17727
|
this._inflate = null;
|
|
@@ -17722,7 +17732,7 @@ var require_permessage_deflate = __commonJS(function(exports, module) {
|
|
|
17722
17732
|
this._inflate.reset();
|
|
17723
17733
|
}
|
|
17724
17734
|
}
|
|
17725
|
-
callback(null,
|
|
17735
|
+
callback(null, data);
|
|
17726
17736
|
});
|
|
17727
17737
|
}
|
|
17728
17738
|
_compress(data, fin, callback) {
|
|
@@ -17744,9 +17754,9 @@ var require_permessage_deflate = __commonJS(function(exports, module) {
|
|
|
17744
17754
|
if (!this._deflate) {
|
|
17745
17755
|
return;
|
|
17746
17756
|
}
|
|
17747
|
-
let
|
|
17757
|
+
let data = bufferUtil.concat(this._deflate[kBuffers], this._deflate[kTotalLength]);
|
|
17748
17758
|
if (fin) {
|
|
17749
|
-
|
|
17759
|
+
data = new FastBuffer(data.buffer, data.byteOffset, data.length - 4);
|
|
17750
17760
|
}
|
|
17751
17761
|
this._deflate[kCallback] = null;
|
|
17752
17762
|
this._deflate[kTotalLength] = 0;
|
|
@@ -17754,7 +17764,7 @@ var require_permessage_deflate = __commonJS(function(exports, module) {
|
|
|
17754
17764
|
if (fin && this.params[`${endpoint}_no_context_takeover`]) {
|
|
17755
17765
|
this._deflate.reset();
|
|
17756
17766
|
}
|
|
17757
|
-
callback(null,
|
|
17767
|
+
callback(null, data);
|
|
17758
17768
|
});
|
|
17759
17769
|
}
|
|
17760
17770
|
}
|
|
@@ -19479,7 +19489,7 @@ var require_websocket = __commonJS(function(exports, module) {
|
|
|
19479
19489
|
}
|
|
19480
19490
|
const defaultPort = isSecure ? 443 : 80;
|
|
19481
19491
|
const key = randomBytes(16).toString("base64");
|
|
19482
|
-
const
|
|
19492
|
+
const request3 = isSecure ? https.request : http.request;
|
|
19483
19493
|
const protocolSet = new Set;
|
|
19484
19494
|
let perMessageDeflate;
|
|
19485
19495
|
opts.createConnection = opts.createConnection || (isSecure ? tlsConnect : netConnect);
|
|
@@ -19534,8 +19544,8 @@ var require_websocket = __commonJS(function(exports, module) {
|
|
|
19534
19544
|
const headers = options && options.headers;
|
|
19535
19545
|
options = { ...options, headers: {} };
|
|
19536
19546
|
if (headers) {
|
|
19537
|
-
for (const [
|
|
19538
|
-
options.headers[
|
|
19547
|
+
for (const [key, value] of Object.entries(headers)) {
|
|
19548
|
+
options.headers[key.toLowerCase()] = value;
|
|
19539
19549
|
}
|
|
19540
19550
|
}
|
|
19541
19551
|
} else if (websocket.listenerCount("redirect") === 0) {
|
|
@@ -19551,12 +19561,12 @@ var require_websocket = __commonJS(function(exports, module) {
|
|
|
19551
19561
|
if (opts.auth && !options.headers.authorization) {
|
|
19552
19562
|
options.headers.authorization = "Basic " + Buffer.from(opts.auth).toString("base64");
|
|
19553
19563
|
}
|
|
19554
|
-
req = websocket._req =
|
|
19564
|
+
req = websocket._req = request3(opts);
|
|
19555
19565
|
if (websocket._redirects) {
|
|
19556
19566
|
websocket.emit("redirect", websocket.url, req);
|
|
19557
19567
|
}
|
|
19558
19568
|
} else {
|
|
19559
|
-
req = websocket._req =
|
|
19569
|
+
req = websocket._req = request3(opts);
|
|
19560
19570
|
}
|
|
19561
19571
|
if (opts.timeout) {
|
|
19562
19572
|
req.on("timeout", () => {
|
|
@@ -19872,9 +19882,9 @@ var require_stream = __commonJS(function(exports, module) {
|
|
|
19872
19882
|
return;
|
|
19873
19883
|
}
|
|
19874
19884
|
let called = false;
|
|
19875
|
-
ws.once("error", function error(
|
|
19885
|
+
ws.once("error", function error(err) {
|
|
19876
19886
|
called = true;
|
|
19877
|
-
callback(
|
|
19887
|
+
callback(err);
|
|
19878
19888
|
});
|
|
19879
19889
|
ws.once("close", function close() {
|
|
19880
19890
|
if (!called)
|
|
@@ -19946,11 +19956,11 @@ var require_subprotocol = __commonJS(function(exports, module) {
|
|
|
19946
19956
|
}
|
|
19947
19957
|
if (end === -1)
|
|
19948
19958
|
end = i;
|
|
19949
|
-
const
|
|
19950
|
-
if (protocols.has(
|
|
19951
|
-
throw new SyntaxError(`The "${
|
|
19959
|
+
const protocol = header.slice(start, end);
|
|
19960
|
+
if (protocols.has(protocol)) {
|
|
19961
|
+
throw new SyntaxError(`The "${protocol}" subprotocol is duplicated`);
|
|
19952
19962
|
}
|
|
19953
|
-
protocols.add(
|
|
19963
|
+
protocols.add(protocol);
|
|
19954
19964
|
start = end = -1;
|
|
19955
19965
|
} else {
|
|
19956
19966
|
throw new SyntaxError(`Unexpected character at index ${i}`);
|
|
@@ -20856,9 +20866,9 @@ var require_caller = __commonJS(function(exports, module) {
|
|
|
20856
20866
|
}
|
|
20857
20867
|
}
|
|
20858
20868
|
module.exports = function iqCaller(...args) {
|
|
20859
|
-
const
|
|
20860
|
-
|
|
20861
|
-
return
|
|
20869
|
+
const iqCaller = new IQCaller(...args);
|
|
20870
|
+
iqCaller.start();
|
|
20871
|
+
return iqCaller;
|
|
20862
20872
|
};
|
|
20863
20873
|
});
|
|
20864
20874
|
|
|
@@ -20910,7 +20920,7 @@ var require_callee = __commonJS(function(exports, module) {
|
|
|
20910
20920
|
return xml("error", { type }, xml(condition, NS_STANZA));
|
|
20911
20921
|
}
|
|
20912
20922
|
function iqHandler(entity) {
|
|
20913
|
-
return async function
|
|
20923
|
+
return async function iqHandler(ctx, next) {
|
|
20914
20924
|
if (!isQuery(ctx))
|
|
20915
20925
|
return next();
|
|
20916
20926
|
const { stanza } = ctx;
|
|
@@ -20962,7 +20972,7 @@ var require_dns = __commonJS(function(exports, module) {
|
|
|
20962
20972
|
var IGNORE_CODES = ["ENOTFOUND", "ENODATA"];
|
|
20963
20973
|
function lookup(domain, options = {}) {
|
|
20964
20974
|
options.all = true;
|
|
20965
|
-
return new Promise((
|
|
20975
|
+
return new Promise((resolve, reject) => {
|
|
20966
20976
|
dns.lookup(domain, options, (err, addresses) => {
|
|
20967
20977
|
if (err) {
|
|
20968
20978
|
return reject(err);
|
|
@@ -20980,19 +20990,19 @@ var require_dns = __commonJS(function(exports, module) {
|
|
|
20980
20990
|
uri: "xmpp" + uri + "5222"
|
|
20981
20991
|
});
|
|
20982
20992
|
}
|
|
20983
|
-
|
|
20993
|
+
resolve(result);
|
|
20984
20994
|
});
|
|
20985
20995
|
});
|
|
20986
20996
|
}
|
|
20987
20997
|
function resolveSrv(domain, { service, protocol }) {
|
|
20988
|
-
return new Promise((
|
|
20998
|
+
return new Promise((resolve, reject) => {
|
|
20989
20999
|
dns.resolveSrv(`_${service}._${protocol}.${domain}`, (err, records) => {
|
|
20990
21000
|
if (err && IGNORE_CODES.includes(err.code)) {
|
|
20991
|
-
|
|
21001
|
+
resolve([]);
|
|
20992
21002
|
} else if (err) {
|
|
20993
21003
|
reject(err);
|
|
20994
21004
|
} else {
|
|
20995
|
-
|
|
21005
|
+
resolve(records.map((record) => {
|
|
20996
21006
|
return Object.assign(record, { service, protocol });
|
|
20997
21007
|
}));
|
|
20998
21008
|
}
|
|
@@ -21148,7 +21158,7 @@ var require_ponyfill_es2018 = __commonJS(function(exports, module) {
|
|
|
21148
21158
|
value: name,
|
|
21149
21159
|
configurable: true
|
|
21150
21160
|
});
|
|
21151
|
-
} catch (
|
|
21161
|
+
} catch (_a) {}
|
|
21152
21162
|
}
|
|
21153
21163
|
const originalPromise = Promise;
|
|
21154
21164
|
const originalPromiseThen = Promise.prototype.then;
|
|
@@ -21644,7 +21654,7 @@ var require_ponyfill_es2018 = __commonJS(function(exports, module) {
|
|
|
21644
21654
|
}
|
|
21645
21655
|
try {
|
|
21646
21656
|
return x._asyncIteratorImpl instanceof ReadableStreamAsyncIteratorImpl;
|
|
21647
|
-
} catch (
|
|
21657
|
+
} catch (_a) {
|
|
21648
21658
|
return false;
|
|
21649
21659
|
}
|
|
21650
21660
|
}
|
|
@@ -22469,9 +22479,9 @@ var require_ponyfill_es2018 = __commonJS(function(exports, module) {
|
|
|
22469
22479
|
return mode;
|
|
22470
22480
|
}
|
|
22471
22481
|
function convertByobReadOptions(options, context) {
|
|
22472
|
-
var
|
|
22482
|
+
var _a;
|
|
22473
22483
|
assertDictionary(options, context);
|
|
22474
|
-
const min = (
|
|
22484
|
+
const min = (_a = options === null || options === undefined ? undefined : options.min) !== null && _a !== undefined ? _a : 1;
|
|
22475
22485
|
return {
|
|
22476
22486
|
min: convertUnsignedLongLongWithEnforceRange(min, `${context} has member 'min' that`)
|
|
22477
22487
|
};
|
|
@@ -22713,7 +22723,7 @@ var require_ponyfill_es2018 = __commonJS(function(exports, module) {
|
|
|
22713
22723
|
}
|
|
22714
22724
|
try {
|
|
22715
22725
|
return typeof value.aborted === "boolean";
|
|
22716
|
-
} catch (
|
|
22726
|
+
} catch (_a) {
|
|
22717
22727
|
return false;
|
|
22718
22728
|
}
|
|
22719
22729
|
}
|
|
@@ -22830,12 +22840,12 @@ var require_ponyfill_es2018 = __commonJS(function(exports, module) {
|
|
|
22830
22840
|
return true;
|
|
22831
22841
|
}
|
|
22832
22842
|
function WritableStreamAbort(stream, reason) {
|
|
22833
|
-
var
|
|
22843
|
+
var _a;
|
|
22834
22844
|
if (stream._state === "closed" || stream._state === "errored") {
|
|
22835
22845
|
return promiseResolvedWith(undefined);
|
|
22836
22846
|
}
|
|
22837
22847
|
stream._writableStreamController._abortReason = reason;
|
|
22838
|
-
(
|
|
22848
|
+
(_a = stream._writableStreamController._abortController) === null || _a === undefined || _a.abort(reason);
|
|
22839
22849
|
const state = stream._state;
|
|
22840
22850
|
if (state === "closed" || state === "errored") {
|
|
22841
22851
|
return promiseResolvedWith(undefined);
|
|
@@ -23547,7 +23557,7 @@ var require_ponyfill_es2018 = __commonJS(function(exports, module) {
|
|
|
23547
23557
|
try {
|
|
23548
23558
|
new ctor;
|
|
23549
23559
|
return true;
|
|
23550
|
-
} catch (
|
|
23560
|
+
} catch (_a) {
|
|
23551
23561
|
return false;
|
|
23552
23562
|
}
|
|
23553
23563
|
}
|
|
@@ -23556,7 +23566,7 @@ var require_ponyfill_es2018 = __commonJS(function(exports, module) {
|
|
|
23556
23566
|
return isDOMExceptionConstructor(ctor) ? ctor : undefined;
|
|
23557
23567
|
}
|
|
23558
23568
|
function createPolyfill() {
|
|
23559
|
-
const ctor = function
|
|
23569
|
+
const ctor = function DOMException(message, name) {
|
|
23560
23570
|
this.message = message || "";
|
|
23561
23571
|
this.name = name || "Error";
|
|
23562
23572
|
if (Error.captureStackTrace) {
|
|
@@ -25264,7 +25274,7 @@ async function* toIterator(parts, clone = true) {
|
|
|
25264
25274
|
}
|
|
25265
25275
|
}
|
|
25266
25276
|
}
|
|
25267
|
-
var import_streams, POOL_SIZE = 65536, _Blob,
|
|
25277
|
+
var import_streams, POOL_SIZE = 65536, _Blob, Blob2, fetch_blob_default;
|
|
25268
25278
|
var init_fetch_blob = __esm(() => {
|
|
25269
25279
|
import_streams = __toESM(require_streams(), 1);
|
|
25270
25280
|
/*! fetch-blob. MIT License. Jimmy Wärting <https://jimmy.warting.se/opensource> */
|
|
@@ -25353,20 +25363,20 @@ var init_fetch_blob = __esm(() => {
|
|
|
25353
25363
|
if (added >= span) {
|
|
25354
25364
|
break;
|
|
25355
25365
|
}
|
|
25356
|
-
const
|
|
25357
|
-
if (relativeStart &&
|
|
25358
|
-
relativeStart -=
|
|
25359
|
-
relativeEnd -=
|
|
25366
|
+
const size = ArrayBuffer.isView(part) ? part.byteLength : part.size;
|
|
25367
|
+
if (relativeStart && size <= relativeStart) {
|
|
25368
|
+
relativeStart -= size;
|
|
25369
|
+
relativeEnd -= size;
|
|
25360
25370
|
} else {
|
|
25361
25371
|
let chunk;
|
|
25362
25372
|
if (ArrayBuffer.isView(part)) {
|
|
25363
|
-
chunk = part.subarray(relativeStart, Math.min(
|
|
25373
|
+
chunk = part.subarray(relativeStart, Math.min(size, relativeEnd));
|
|
25364
25374
|
added += chunk.byteLength;
|
|
25365
25375
|
} else {
|
|
25366
|
-
chunk = part.slice(relativeStart, Math.min(
|
|
25376
|
+
chunk = part.slice(relativeStart, Math.min(size, relativeEnd));
|
|
25367
25377
|
added += chunk.size;
|
|
25368
25378
|
}
|
|
25369
|
-
relativeEnd -=
|
|
25379
|
+
relativeEnd -= size;
|
|
25370
25380
|
blobParts.push(chunk);
|
|
25371
25381
|
relativeStart = 0;
|
|
25372
25382
|
}
|
|
@@ -25388,12 +25398,12 @@ var init_fetch_blob = __esm(() => {
|
|
|
25388
25398
|
type: { enumerable: true },
|
|
25389
25399
|
slice: { enumerable: true }
|
|
25390
25400
|
});
|
|
25391
|
-
|
|
25392
|
-
fetch_blob_default =
|
|
25401
|
+
Blob2 = _Blob;
|
|
25402
|
+
fetch_blob_default = Blob2;
|
|
25393
25403
|
});
|
|
25394
25404
|
|
|
25395
25405
|
// ../../node_modules/fetch-blob/file.js
|
|
25396
|
-
var _File,
|
|
25406
|
+
var _File, File, file_default;
|
|
25397
25407
|
var init_file = __esm(() => {
|
|
25398
25408
|
init_fetch_blob();
|
|
25399
25409
|
_File = class File extends fetch_blob_default {
|
|
@@ -25425,8 +25435,8 @@ var init_file = __esm(() => {
|
|
|
25425
25435
|
return !!object && object instanceof fetch_blob_default && /^(File)$/.test(object[Symbol.toStringTag]);
|
|
25426
25436
|
}
|
|
25427
25437
|
};
|
|
25428
|
-
|
|
25429
|
-
file_default =
|
|
25438
|
+
File = _File;
|
|
25439
|
+
file_default = File;
|
|
25430
25440
|
});
|
|
25431
25441
|
|
|
25432
25442
|
// ../../node_modules/formdata-polyfill/esm.min.js
|
|
@@ -25445,10 +25455,10 @@ Content-Type: ${v.type || "application/octet-stream"}\r
|
|
|
25445
25455
|
c.push(`--${b}--`);
|
|
25446
25456
|
return new B(c, { type: "multipart/form-data; boundary=" + b });
|
|
25447
25457
|
}
|
|
25448
|
-
var t, i, h, r, m, f = (a, b, c) => (a += "", /^(Blob|File)$/.test(b && b[t]) ? [(c = c !== undefined ? c + "" : b[t] == "File" ? b.name : "blob", a), b.name !== c || b[t] == "blob" ? new file_default([b], c, b) : b] : [a, b + ""]), e = (c,
|
|
25449
|
-
`)).replace(/\n/g, "%0A").replace(/\r/g, "%0D").replace(/"/g, "%22"), x = (n, a,
|
|
25450
|
-
if (a.length <
|
|
25451
|
-
throw new TypeError(`Failed to execute '${n}' on 'FormData': ${
|
|
25458
|
+
var t, i, h, r, m, f = (a, b, c) => (a += "", /^(Blob|File)$/.test(b && b[t]) ? [(c = c !== undefined ? c + "" : b[t] == "File" ? b.name : "blob", a), b.name !== c || b[t] == "blob" ? new file_default([b], c, b) : b] : [a, b + ""]), e = (c, f) => (f ? c : c.replace(/\r?\n|\r/g, `\r
|
|
25459
|
+
`)).replace(/\n/g, "%0A").replace(/\r/g, "%0D").replace(/"/g, "%22"), x = (n, a, e) => {
|
|
25460
|
+
if (a.length < e) {
|
|
25461
|
+
throw new TypeError(`Failed to execute '${n}' on 'FormData': ${e} arguments required, but only ${a.length} present.`);
|
|
25452
25462
|
}
|
|
25453
25463
|
}, FormData;
|
|
25454
25464
|
var init_esm_min = __esm(() => {
|
|
@@ -25458,7 +25468,7 @@ var init_esm_min = __esm(() => {
|
|
|
25458
25468
|
({ toStringTag: t, iterator: i, hasInstance: h } = Symbol);
|
|
25459
25469
|
r = Math.random;
|
|
25460
25470
|
m = "append,set,get,getAll,delete,keys,values,entries,forEach,constructor".split(",");
|
|
25461
|
-
FormData = class
|
|
25471
|
+
FormData = class FormData {
|
|
25462
25472
|
#d = [];
|
|
25463
25473
|
constructor(...a) {
|
|
25464
25474
|
if (a.length)
|
|
@@ -25471,7 +25481,7 @@ var init_esm_min = __esm(() => {
|
|
|
25471
25481
|
return this.entries();
|
|
25472
25482
|
}
|
|
25473
25483
|
static [h](o) {
|
|
25474
|
-
return o && typeof o === "object" && o[t] === "FormData" && !m.some((
|
|
25484
|
+
return o && typeof o === "object" && o[t] === "FormData" && !m.some((m) => typeof o[m] != "function");
|
|
25475
25485
|
}
|
|
25476
25486
|
append(...a) {
|
|
25477
25487
|
x("append", arguments, 2);
|
|
@@ -25601,17 +25611,17 @@ var require_node_domexception = __commonJS(function(exports, module) {
|
|
|
25601
25611
|
// ../../node_modules/fetch-blob/from.js
|
|
25602
25612
|
import { statSync, createReadStream, promises as fs } from "node:fs";
|
|
25603
25613
|
import { basename } from "node:path";
|
|
25604
|
-
var import_node_domexception, stat, blobFromSync = (path, type) => fromBlob(statSync(path), path, type), blobFrom = (path, type) => stat(path).then((
|
|
25614
|
+
var import_node_domexception, stat, blobFromSync = (path, type) => fromBlob(statSync(path), path, type), blobFrom = (path, type) => stat(path).then((stat) => fromBlob(stat, path, type)), fileFrom = (path, type) => stat(path).then((stat) => fromFile(stat, path, type)), fileFromSync = (path, type) => fromFile(statSync(path), path, type), fromBlob = (stat, path, type = "") => new fetch_blob_default([new BlobDataItem({
|
|
25605
25615
|
path,
|
|
25606
|
-
size:
|
|
25607
|
-
lastModified:
|
|
25616
|
+
size: stat.size,
|
|
25617
|
+
lastModified: stat.mtimeMs,
|
|
25608
25618
|
start: 0
|
|
25609
|
-
})], { type }), fromFile = (
|
|
25619
|
+
})], { type }), fromFile = (stat, path, type = "") => new file_default([new BlobDataItem({
|
|
25610
25620
|
path,
|
|
25611
|
-
size:
|
|
25612
|
-
lastModified:
|
|
25621
|
+
size: stat.size,
|
|
25622
|
+
lastModified: stat.mtimeMs,
|
|
25613
25623
|
start: 0
|
|
25614
|
-
})], basename(path), { type, lastModified:
|
|
25624
|
+
})], basename(path), { type, lastModified: stat.mtimeMs }), BlobDataItem;
|
|
25615
25625
|
var init_from = __esm(() => {
|
|
25616
25626
|
init_file();
|
|
25617
25627
|
init_fetch_blob();
|
|
@@ -25651,11 +25661,6 @@ var init_from = __esm(() => {
|
|
|
25651
25661
|
});
|
|
25652
25662
|
|
|
25653
25663
|
// ../../node_modules/node-fetch/src/utils/multipart-parser.js
|
|
25654
|
-
var exports_multipart_parser = {};
|
|
25655
|
-
__export(exports_multipart_parser, {
|
|
25656
|
-
toFormData: () => toFormData
|
|
25657
|
-
});
|
|
25658
|
-
|
|
25659
25664
|
class MultipartParser {
|
|
25660
25665
|
constructor(boundary) {
|
|
25661
25666
|
this.index = 0;
|
|
@@ -25671,16 +25676,16 @@ class MultipartParser {
|
|
|
25671
25676
|
boundary = `\r
|
|
25672
25677
|
--` + boundary;
|
|
25673
25678
|
const ui8a = new Uint8Array(boundary.length);
|
|
25674
|
-
for (let
|
|
25675
|
-
ui8a[
|
|
25676
|
-
this.boundaryChars[ui8a[
|
|
25679
|
+
for (let i = 0;i < boundary.length; i++) {
|
|
25680
|
+
ui8a[i] = boundary.charCodeAt(i);
|
|
25681
|
+
this.boundaryChars[ui8a[i]] = true;
|
|
25677
25682
|
}
|
|
25678
25683
|
this.boundary = ui8a;
|
|
25679
25684
|
this.lookbehind = new Uint8Array(this.boundary.length + 8);
|
|
25680
25685
|
this.state = S.START_BOUNDARY;
|
|
25681
25686
|
}
|
|
25682
25687
|
write(data) {
|
|
25683
|
-
let
|
|
25688
|
+
let i = 0;
|
|
25684
25689
|
const length_ = data.length;
|
|
25685
25690
|
let previousIndex = this.index;
|
|
25686
25691
|
let { lookbehind, boundary, boundaryChars, index, state, flags } = this;
|
|
@@ -25690,7 +25695,7 @@ class MultipartParser {
|
|
|
25690
25695
|
let c;
|
|
25691
25696
|
let cl;
|
|
25692
25697
|
const mark = (name) => {
|
|
25693
|
-
this[name + "Mark"] =
|
|
25698
|
+
this[name + "Mark"] = i;
|
|
25694
25699
|
};
|
|
25695
25700
|
const clear = (name) => {
|
|
25696
25701
|
delete this[name + "Mark"];
|
|
@@ -25700,21 +25705,21 @@ class MultipartParser {
|
|
|
25700
25705
|
this[callbackSymbol](ui8a && ui8a.subarray(start, end));
|
|
25701
25706
|
}
|
|
25702
25707
|
};
|
|
25703
|
-
const dataCallback = (name,
|
|
25708
|
+
const dataCallback = (name, clear) => {
|
|
25704
25709
|
const markSymbol = name + "Mark";
|
|
25705
25710
|
if (!(markSymbol in this)) {
|
|
25706
25711
|
return;
|
|
25707
25712
|
}
|
|
25708
|
-
if (
|
|
25709
|
-
callback(name, this[markSymbol],
|
|
25713
|
+
if (clear) {
|
|
25714
|
+
callback(name, this[markSymbol], i, data);
|
|
25710
25715
|
delete this[markSymbol];
|
|
25711
25716
|
} else {
|
|
25712
25717
|
callback(name, this[markSymbol], data.length, data);
|
|
25713
25718
|
this[markSymbol] = 0;
|
|
25714
25719
|
}
|
|
25715
25720
|
};
|
|
25716
|
-
for (
|
|
25717
|
-
c = data[
|
|
25721
|
+
for (i = 0;i < length_; i++) {
|
|
25722
|
+
c = data[i];
|
|
25718
25723
|
switch (state) {
|
|
25719
25724
|
case S.START_BOUNDARY:
|
|
25720
25725
|
if (index === boundary.length - 2) {
|
|
@@ -25804,12 +25809,12 @@ class MultipartParser {
|
|
|
25804
25809
|
case S.PART_DATA:
|
|
25805
25810
|
previousIndex = index;
|
|
25806
25811
|
if (index === 0) {
|
|
25807
|
-
|
|
25808
|
-
while (
|
|
25809
|
-
|
|
25812
|
+
i += boundaryEnd;
|
|
25813
|
+
while (i < bufferLength && !(data[i] in boundaryChars)) {
|
|
25814
|
+
i += boundaryLength;
|
|
25810
25815
|
}
|
|
25811
|
-
|
|
25812
|
-
c = data[
|
|
25816
|
+
i -= boundaryEnd;
|
|
25817
|
+
c = data[i];
|
|
25813
25818
|
}
|
|
25814
25819
|
if (index < boundary.length) {
|
|
25815
25820
|
if (boundary[index] === c) {
|
|
@@ -25858,7 +25863,7 @@ class MultipartParser {
|
|
|
25858
25863
|
callback("onPartData", 0, previousIndex, _lookbehind);
|
|
25859
25864
|
previousIndex = 0;
|
|
25860
25865
|
mark("onPartData");
|
|
25861
|
-
|
|
25866
|
+
i--;
|
|
25862
25867
|
}
|
|
25863
25868
|
break;
|
|
25864
25869
|
case S.END:
|
|
@@ -25883,14 +25888,14 @@ class MultipartParser {
|
|
|
25883
25888
|
}
|
|
25884
25889
|
}
|
|
25885
25890
|
function _fileName(headerValue) {
|
|
25886
|
-
const
|
|
25887
|
-
if (!
|
|
25891
|
+
const m = headerValue.match(/\bfilename=("(.*?)"|([^()<>@,;:\\"/[\]?={}\s\t]+))($|;\s)/i);
|
|
25892
|
+
if (!m) {
|
|
25888
25893
|
return;
|
|
25889
25894
|
}
|
|
25890
|
-
const match =
|
|
25895
|
+
const match = m[2] || m[3] || "";
|
|
25891
25896
|
let filename = match.slice(match.lastIndexOf("\\") + 1);
|
|
25892
25897
|
filename = filename.replace(/%22/g, '"');
|
|
25893
|
-
filename = filename.replace(/&#(\d{4});/g, (
|
|
25898
|
+
filename = filename.replace(/&#(\d{4});/g, (m, code) => {
|
|
25894
25899
|
return String.fromCharCode(code);
|
|
25895
25900
|
});
|
|
25896
25901
|
return filename;
|
|
@@ -25899,11 +25904,11 @@ async function toFormData(Body, ct) {
|
|
|
25899
25904
|
if (!/multipart/i.test(ct)) {
|
|
25900
25905
|
throw new TypeError("Failed to fetch");
|
|
25901
25906
|
}
|
|
25902
|
-
const
|
|
25903
|
-
if (!
|
|
25907
|
+
const m = ct.match(/boundary=(?:"([^"]+)"|([^;]+))/i);
|
|
25908
|
+
if (!m) {
|
|
25904
25909
|
throw new TypeError("no or bad content-type header, no multipart boundary");
|
|
25905
25910
|
}
|
|
25906
|
-
const parser = new MultipartParser(
|
|
25911
|
+
const parser = new MultipartParser(m[1] || m[2]);
|
|
25907
25912
|
let headerField;
|
|
25908
25913
|
let headerValue;
|
|
25909
25914
|
let entryValue;
|
|
@@ -25948,9 +25953,9 @@ async function toFormData(Body, ct) {
|
|
|
25948
25953
|
headerValue += decoder.decode();
|
|
25949
25954
|
headerField = headerField.toLowerCase();
|
|
25950
25955
|
if (headerField === "content-disposition") {
|
|
25951
|
-
const
|
|
25952
|
-
if (
|
|
25953
|
-
entryName =
|
|
25956
|
+
const m = headerValue.match(/\bname=("([^"]*)"|([^()<>@,;:\\"/[\]?={}\s\t]+))/i);
|
|
25957
|
+
if (m) {
|
|
25958
|
+
entryName = m[2] || m[3] || "";
|
|
25954
25959
|
}
|
|
25955
25960
|
filename = _fileName(headerValue);
|
|
25956
25961
|
if (filename) {
|
|
@@ -26056,8 +26061,8 @@ class Body {
|
|
|
26056
26061
|
}
|
|
26057
26062
|
return formData;
|
|
26058
26063
|
}
|
|
26059
|
-
|
|
26060
|
-
return
|
|
26064
|
+
await Promise.resolve().then(() => init_multipart_parser());
|
|
26065
|
+
return toFormData(this.body, ct);
|
|
26061
26066
|
}
|
|
26062
26067
|
async blob() {
|
|
26063
26068
|
const ct = this.headers && this.headers.get("content-type") || this[INTERNALS].body && this[INTERNALS].body.type || "";
|
|
@@ -26862,8 +26867,8 @@ async function fetch(url, options_) {
|
|
|
26862
26867
|
}
|
|
26863
26868
|
if (parsedURL.protocol === "data:") {
|
|
26864
26869
|
const data = dist_default(request.url);
|
|
26865
|
-
const
|
|
26866
|
-
resolve(
|
|
26870
|
+
const response = new Response(data, { headers: { "Content-Type": data.typeFull } });
|
|
26871
|
+
resolve(response);
|
|
26867
26872
|
return;
|
|
26868
26873
|
}
|
|
26869
26874
|
const send = (parsedURL.protocol === "https:" ? https : http2).request;
|
|
@@ -26908,13 +26913,13 @@ async function fetch(url, options_) {
|
|
|
26908
26913
|
}
|
|
26909
26914
|
});
|
|
26910
26915
|
if (process.version < "v14") {
|
|
26911
|
-
request_.on("socket", (
|
|
26916
|
+
request_.on("socket", (s) => {
|
|
26912
26917
|
let endedWithEventsCount;
|
|
26913
|
-
|
|
26914
|
-
endedWithEventsCount =
|
|
26918
|
+
s.prependListener("end", () => {
|
|
26919
|
+
endedWithEventsCount = s._eventsCount;
|
|
26915
26920
|
});
|
|
26916
|
-
|
|
26917
|
-
if (response && endedWithEventsCount <
|
|
26921
|
+
s.prependListener("close", (hadError) => {
|
|
26922
|
+
if (response && endedWithEventsCount < s._eventsCount && !hadError) {
|
|
26918
26923
|
const error = new Error("Premature close");
|
|
26919
26924
|
error.code = "ERR_STREAM_PREMATURE_CLOSE";
|
|
26920
26925
|
response.body.emit("error", error);
|
|
@@ -27203,11 +27208,11 @@ var require_alt_connections = __commonJS(function(exports, module) {
|
|
|
27203
27208
|
|
|
27204
27209
|
// ../../node_modules/@xmpp/resolve/lib/http.js
|
|
27205
27210
|
var require_http = __commonJS(function(exports, module) {
|
|
27206
|
-
var
|
|
27211
|
+
var fetch = globalThis.fetch || (init_src(), __toCommonJS(exports_src));
|
|
27207
27212
|
var parse = require_parse2();
|
|
27208
27213
|
var compareAltConnections = require_alt_connections().compare;
|
|
27209
27214
|
function resolve(domain) {
|
|
27210
|
-
return
|
|
27215
|
+
return fetch(`https://${domain}/.well-known/host-meta`).then((res) => res.text()).then((res) => {
|
|
27211
27216
|
return parse(res).getChildren("Link").filter((link) => [
|
|
27212
27217
|
"urn:xmpp:alt-connections:websocket",
|
|
27213
27218
|
"urn:xmpp:alt-connections:httppoll",
|
|
@@ -27228,17 +27233,17 @@ var require_http = __commonJS(function(exports, module) {
|
|
|
27228
27233
|
// ../../node_modules/@xmpp/resolve/resolve.js
|
|
27229
27234
|
var require_resolve3 = __commonJS(function(exports, module) {
|
|
27230
27235
|
var dns = require_dns();
|
|
27231
|
-
var
|
|
27232
|
-
module.exports = function
|
|
27236
|
+
var http = require_http();
|
|
27237
|
+
module.exports = function resolve3(...args) {
|
|
27233
27238
|
return Promise.all([
|
|
27234
27239
|
dns.resolve ? dns.resolve(...args) : Promise.resolve([]),
|
|
27235
|
-
|
|
27240
|
+
http.resolve(...args)
|
|
27236
27241
|
]).then(([records, endpoints]) => [...records, ...endpoints]);
|
|
27237
27242
|
};
|
|
27238
27243
|
if (dns.resolve) {
|
|
27239
27244
|
module.exports.dns = dns;
|
|
27240
27245
|
}
|
|
27241
|
-
module.exports.http =
|
|
27246
|
+
module.exports.http = http;
|
|
27242
27247
|
});
|
|
27243
27248
|
|
|
27244
27249
|
// ../../node_modules/@xmpp/resolve/index.js
|
|
@@ -27289,7 +27294,7 @@ var require_resolve4 = __commonJS(function(exports, module) {
|
|
|
27289
27294
|
entity.Socket = Transport.prototype.Socket;
|
|
27290
27295
|
entity.Parser = Transport.prototype.Parser;
|
|
27291
27296
|
}
|
|
27292
|
-
module.exports = function
|
|
27297
|
+
module.exports = function resolve({ entity }) {
|
|
27293
27298
|
const _connect = entity.connect;
|
|
27294
27299
|
entity.connect = async function connect(service) {
|
|
27295
27300
|
if (!service || /:\/\//.test(service)) {
|
|
@@ -27494,9 +27499,9 @@ var require_factory = __commonJS(function(exports, module) {
|
|
|
27494
27499
|
return this;
|
|
27495
27500
|
};
|
|
27496
27501
|
Factory.prototype.create = function(mechs) {
|
|
27497
|
-
for (var
|
|
27502
|
+
for (var i = 0, len = this._mechs.length;i < len; i++) {
|
|
27498
27503
|
for (var j = 0, jlen = mechs.length;j < jlen; j++) {
|
|
27499
|
-
var entry = this._mechs[
|
|
27504
|
+
var entry = this._mechs[i];
|
|
27500
27505
|
if (entry.name == mechs[j]) {
|
|
27501
27506
|
return new entry.mech;
|
|
27502
27507
|
}
|
|
@@ -27581,8 +27586,8 @@ var require_sasl = __commonJS(function(exports, module) {
|
|
|
27581
27586
|
streamFeatures.use("mechanisms", NS, async ({ stanza, entity }) => {
|
|
27582
27587
|
const offered = getMechanismNames(stanza);
|
|
27583
27588
|
const supported = SASL._mechs.map(({ name }) => name);
|
|
27584
|
-
const intersection = supported.filter((
|
|
27585
|
-
return offered.includes(
|
|
27589
|
+
const intersection = supported.filter((mech) => {
|
|
27590
|
+
return offered.includes(mech);
|
|
27586
27591
|
});
|
|
27587
27592
|
let mech = intersection[0];
|
|
27588
27593
|
if (typeof credentials === "function") {
|
|
@@ -27618,7 +27623,7 @@ var require_resource_binding = __commonJS(function(exports, module) {
|
|
|
27618
27623
|
}
|
|
27619
27624
|
function route({ iqCaller }, resource) {
|
|
27620
27625
|
return async ({ entity }, next) => {
|
|
27621
|
-
await (typeof resource === "function" ? resource((
|
|
27626
|
+
await (typeof resource === "function" ? resource((resource) => bind(entity, iqCaller, resource)) : bind(entity, iqCaller, resource));
|
|
27622
27627
|
next();
|
|
27623
27628
|
};
|
|
27624
27629
|
}
|
|
@@ -27645,8 +27650,8 @@ var require_session_establishment = __commonJS(function(exports, module) {
|
|
|
27645
27650
|
var require_stream_management = __commonJS(function(exports, module) {
|
|
27646
27651
|
var xml = require_xml();
|
|
27647
27652
|
var NS = "urn:xmpp:sm:3";
|
|
27648
|
-
async function enable(entity,
|
|
27649
|
-
await entity.send(xml("enable", { xmlns: NS, max, resume:
|
|
27653
|
+
async function enable(entity, resume, max) {
|
|
27654
|
+
await entity.send(xml("enable", { xmlns: NS, max, resume: resume ? "true" : undefined }));
|
|
27650
27655
|
return new Promise((resolve, reject) => {
|
|
27651
27656
|
function listener(nonza) {
|
|
27652
27657
|
if (nonza.is("enabled", NS)) {
|
|
@@ -27661,8 +27666,8 @@ var require_stream_management = __commonJS(function(exports, module) {
|
|
|
27661
27666
|
entity.on("nonza", listener);
|
|
27662
27667
|
});
|
|
27663
27668
|
}
|
|
27664
|
-
async function resume(entity,
|
|
27665
|
-
const response = await entity.sendReceive(xml("resume", { xmlns: NS, h
|
|
27669
|
+
async function resume(entity, h, previd) {
|
|
27670
|
+
const response = await entity.sendReceive(xml("resume", { xmlns: NS, h, previd }));
|
|
27666
27671
|
if (!response.is("resumed", NS)) {
|
|
27667
27672
|
throw response;
|
|
27668
27673
|
}
|
|
@@ -27753,8 +27758,8 @@ var require_bitops = __commonJS(function(exports) {
|
|
|
27753
27758
|
exports.XOR = function(a, b) {
|
|
27754
27759
|
var res = [];
|
|
27755
27760
|
if (a.length > b.length) {
|
|
27756
|
-
for (var
|
|
27757
|
-
res.push(a[
|
|
27761
|
+
for (var i = 0;i < b.length; i++) {
|
|
27762
|
+
res.push(a[i] ^ b[i]);
|
|
27758
27763
|
}
|
|
27759
27764
|
} else {
|
|
27760
27765
|
for (var j = 0;j < a.length; j++) {
|
|
@@ -27775,7 +27780,7 @@ var require_bitops = __commonJS(function(exports) {
|
|
|
27775
27780
|
concat.set(new Uint8Array([0, 0, 0, 1]), salt.length);
|
|
27776
27781
|
var ui1 = exports.HMAC(text, concat);
|
|
27777
27782
|
var ui = ui1;
|
|
27778
|
-
for (var
|
|
27783
|
+
for (var i = 0;i < iterations - 1; i++) {
|
|
27779
27784
|
ui1 = exports.HMAC(text, ui1);
|
|
27780
27785
|
ui = exports.XOR(ui, ui1);
|
|
27781
27786
|
}
|
|
@@ -27794,8 +27799,8 @@ var require_utils2 = __commonJS(function(exports) {
|
|
|
27794
27799
|
exports.parse = function(chal) {
|
|
27795
27800
|
var dtives = {};
|
|
27796
27801
|
var tokens = chal.split(/,(?=(?:[^"]|"[^"]*")*$)/);
|
|
27797
|
-
for (var
|
|
27798
|
-
var dtiv = /(\w+)=["]?([^"]+)["]?$/.exec(tokens[
|
|
27802
|
+
for (var i = 0, len = tokens.length;i < len; i++) {
|
|
27803
|
+
var dtiv = /(\w+)=["]?([^"]+)["]?$/.exec(tokens[i]);
|
|
27799
27804
|
if (dtiv) {
|
|
27800
27805
|
dtives[dtiv[1]] = dtiv[2];
|
|
27801
27806
|
}
|
|
@@ -27805,8 +27810,8 @@ var require_utils2 = __commonJS(function(exports) {
|
|
|
27805
27810
|
exports.saslname = function(name) {
|
|
27806
27811
|
var escaped = [];
|
|
27807
27812
|
var curr = "";
|
|
27808
|
-
for (var
|
|
27809
|
-
curr = name[
|
|
27813
|
+
for (var i = 0;i < name.length; i++) {
|
|
27814
|
+
curr = name[i];
|
|
27810
27815
|
if (curr === ",") {
|
|
27811
27816
|
escaped.push("=2C");
|
|
27812
27817
|
} else if (curr === "=") {
|
|
@@ -27829,20 +27834,20 @@ var require_sasl_scram_sha_1 = __commonJS(function(exports, module) {
|
|
|
27829
27834
|
var RESP = {};
|
|
27830
27835
|
var CLIENT_KEY = "Client Key";
|
|
27831
27836
|
var SERVER_KEY = "Server Key";
|
|
27832
|
-
function base64decode(
|
|
27837
|
+
function base64decode(s) {
|
|
27833
27838
|
if (atob) {
|
|
27834
|
-
return Uint8Array.from(atob(
|
|
27839
|
+
return Uint8Array.from(atob(s), function(c) {
|
|
27835
27840
|
return c.charCodeAt(0);
|
|
27836
27841
|
});
|
|
27837
27842
|
} else {
|
|
27838
|
-
return Uint8Array.from(Buffer.from(
|
|
27843
|
+
return Uint8Array.from(Buffer.from(s, "base64"));
|
|
27839
27844
|
}
|
|
27840
27845
|
}
|
|
27841
|
-
function base64encode(
|
|
27846
|
+
function base64encode(s) {
|
|
27842
27847
|
if (btoa) {
|
|
27843
|
-
return btoa(
|
|
27848
|
+
return btoa(s);
|
|
27844
27849
|
} else {
|
|
27845
|
-
return Buffer.from(
|
|
27850
|
+
return Buffer.from(s).toString("base64");
|
|
27846
27851
|
}
|
|
27847
27852
|
}
|
|
27848
27853
|
function Mechanism(options) {
|
|
@@ -28292,7 +28297,7 @@ var ActivityStreamSchema = {
|
|
|
28292
28297
|
var package_default = {
|
|
28293
28298
|
name: "@sockethub/schemas",
|
|
28294
28299
|
description: "JSON schema files for validating Sockethub Activity Streams",
|
|
28295
|
-
version: "3.0.0-alpha.
|
|
28300
|
+
version: "3.0.0-alpha.25",
|
|
28296
28301
|
type: "module",
|
|
28297
28302
|
private: false,
|
|
28298
28303
|
author: "Nick Jennings <nick@silverbucket.net>",
|
|
@@ -28323,11 +28328,20 @@ var package_default = {
|
|
|
28323
28328
|
import: "./dist/examples-config.js",
|
|
28324
28329
|
default: "./dist/examples-config.js"
|
|
28325
28330
|
},
|
|
28331
|
+
"./service-descriptor": {
|
|
28332
|
+
types: "./dist/service-descriptor.d.ts",
|
|
28333
|
+
bun: "./src/service-descriptor.ts",
|
|
28334
|
+
import: "./dist/service-descriptor.js",
|
|
28335
|
+
default: "./dist/service-descriptor.js"
|
|
28336
|
+
},
|
|
28326
28337
|
"./schemas/json/sockethub-config.json": {
|
|
28327
28338
|
default: "./dist/schemas/json/sockethub-config.json"
|
|
28328
28339
|
},
|
|
28329
28340
|
"./schemas/json/examples-config.json": {
|
|
28330
28341
|
default: "./dist/schemas/json/examples-config.json"
|
|
28342
|
+
},
|
|
28343
|
+
"./schemas/json/service-descriptor.json": {
|
|
28344
|
+
default: "./dist/schemas/json/service-descriptor.json"
|
|
28331
28345
|
}
|
|
28332
28346
|
},
|
|
28333
28347
|
files: [
|
|
@@ -28353,7 +28367,7 @@ var package_default = {
|
|
|
28353
28367
|
"@types/bun": "latest"
|
|
28354
28368
|
},
|
|
28355
28369
|
scripts: {
|
|
28356
|
-
build: "bun ./scripts/export-json-schema.ts && bun ./scripts/export-canonical-assets.ts && bun build src/index.ts src/object-types.ts --outdir dist --target node --format esm --sourcemap=external && bun build src/context.ts src/activity-stream-helper.ts src/examples-config.ts --outdir dist --target browser --format esm --sourcemap=external",
|
|
28370
|
+
build: "bun ./scripts/export-json-schema.ts && bun ./scripts/export-canonical-assets.ts && bun build src/index.ts src/object-types.ts --outdir dist --target node --format esm --sourcemap=external && bun build src/context.ts src/activity-stream-helper.ts src/examples-config.ts src/service-descriptor.ts --outdir dist --target browser --format esm --sourcemap=external",
|
|
28357
28371
|
clean: "rm -rf dist",
|
|
28358
28372
|
"clean:deps": "rm -rf node_modules"
|
|
28359
28373
|
},
|
|
@@ -28362,7 +28376,7 @@ var package_default = {
|
|
|
28362
28376
|
"ajv-formats": "^2.1.1",
|
|
28363
28377
|
"ajv-formats-draft2019": "^1.6.1"
|
|
28364
28378
|
},
|
|
28365
|
-
gitHead: "
|
|
28379
|
+
gitHead: "45acaca6570f8e8429d996ec1d3b95979e8c54a9",
|
|
28366
28380
|
types: "./dist/index.d.ts"
|
|
28367
28381
|
};
|
|
28368
28382
|
|
|
@@ -28755,29 +28769,33 @@ var SockethubConfigSchema = {
|
|
|
28755
28769
|
};
|
|
28756
28770
|
var SockethubConfigSchemaId = versionedSchemaId(SockethubConfigSchema.$id, package_default.version);
|
|
28757
28771
|
|
|
28758
|
-
// ../schemas/src/
|
|
28772
|
+
// ../schemas/src/service-descriptor.ts
|
|
28759
28773
|
var import_ajv2 = __toESM(require_ajv(), 1);
|
|
28774
|
+
var ajv2 = new import_ajv2.default({ strictTypes: false, allErrors: true });
|
|
28775
|
+
|
|
28776
|
+
// ../schemas/src/validator.ts
|
|
28777
|
+
var import_ajv3 = __toESM(require_ajv(), 1);
|
|
28760
28778
|
var import_ajv_formats = __toESM(require_dist(), 1);
|
|
28761
28779
|
var import_ajv_formats_draft2019 = __toESM(require_ajv_formats_draft2019(), 1);
|
|
28762
|
-
var
|
|
28763
|
-
import_ajv_formats.default(
|
|
28764
|
-
import_ajv_formats_draft2019.default(
|
|
28780
|
+
var ajv3 = new import_ajv3.default({ strictTypes: false, allErrors: true });
|
|
28781
|
+
import_ajv_formats.default(ajv3);
|
|
28782
|
+
import_ajv_formats_draft2019.default(ajv3);
|
|
28765
28783
|
var schemaURL = "https://sockethub.org/schemas/v0";
|
|
28766
28784
|
var schemas = {};
|
|
28767
28785
|
var systemContextsRegistered = false;
|
|
28768
28786
|
schemas[`${schemaURL}/activity-stream`] = ActivityStreamSchema;
|
|
28769
28787
|
for (const uri in schemas) {
|
|
28770
|
-
|
|
28788
|
+
ajv3.addSchema(schemas[uri], uri);
|
|
28771
28789
|
}
|
|
28772
28790
|
function registerSystemContext(platformId, contextUrl) {
|
|
28773
28791
|
registerPlatformContext(platformId, contextUrl, `${schemaURL}/context/${platformId}/messages`, `${schemaURL}/context/${platformId}/credentials`);
|
|
28774
28792
|
const messageSchemaRef = `${schemaURL}/context/${platformId}/messages`;
|
|
28775
|
-
if (!
|
|
28776
|
-
|
|
28793
|
+
if (!ajv3.getSchema(messageSchemaRef)) {
|
|
28794
|
+
ajv3.addSchema({}, messageSchemaRef);
|
|
28777
28795
|
}
|
|
28778
28796
|
const credentialsSchemaRef = `${schemaURL}/context/${platformId}/credentials`;
|
|
28779
|
-
if (!
|
|
28780
|
-
|
|
28797
|
+
if (!ajv3.getSchema(credentialsSchemaRef)) {
|
|
28798
|
+
ajv3.addSchema({}, credentialsSchemaRef);
|
|
28781
28799
|
}
|
|
28782
28800
|
}
|
|
28783
28801
|
function registerSystemPlatformContexts() {
|
|
@@ -28882,7 +28900,7 @@ var $client = client;
|
|
|
28882
28900
|
var package_default2 = {
|
|
28883
28901
|
name: "@sockethub/platform-xmpp",
|
|
28884
28902
|
description: "A sockethub platform module implementing XMPP functionality",
|
|
28885
|
-
version: "5.0.0-alpha.
|
|
28903
|
+
version: "5.0.0-alpha.25",
|
|
28886
28904
|
private: false,
|
|
28887
28905
|
type: "module",
|
|
28888
28906
|
author: "Nick Jennings <nick@silverbucket.net>",
|
|
@@ -28926,11 +28944,11 @@ var package_default2 = {
|
|
|
28926
28944
|
doc: "typedoc --options typedoc.json"
|
|
28927
28945
|
},
|
|
28928
28946
|
dependencies: {
|
|
28929
|
-
"@sockethub/util": "^1.0.0-alpha.
|
|
28947
|
+
"@sockethub/util": "^1.0.0-alpha.13",
|
|
28930
28948
|
"@xmpp/client": "^0.13.6"
|
|
28931
28949
|
},
|
|
28932
28950
|
devDependencies: {
|
|
28933
|
-
"@sockethub/schemas": "^3.0.0-alpha.
|
|
28951
|
+
"@sockethub/schemas": "^3.0.0-alpha.25",
|
|
28934
28952
|
"@types/bun": "latest",
|
|
28935
28953
|
"@xmpp/xml": "^0.13.2",
|
|
28936
28954
|
ajv: "^8.17.1",
|
|
@@ -28938,14 +28956,14 @@ var package_default2 = {
|
|
|
28938
28956
|
typedoc: "^0.28.14"
|
|
28939
28957
|
},
|
|
28940
28958
|
peerDependencies: {
|
|
28941
|
-
"@sockethub/server": "^5.0.0-alpha.
|
|
28959
|
+
"@sockethub/server": "^5.0.0-alpha.25"
|
|
28942
28960
|
},
|
|
28943
28961
|
peerDependenciesMeta: {
|
|
28944
28962
|
"@sockethub/server": {
|
|
28945
28963
|
optional: true
|
|
28946
28964
|
}
|
|
28947
28965
|
},
|
|
28948
|
-
gitHead: "
|
|
28966
|
+
gitHead: "45acaca6570f8e8429d996ec1d3b95979e8c54a9",
|
|
28949
28967
|
types: "./dist/index.d.ts"
|
|
28950
28968
|
};
|
|
28951
28969
|
|
|
@@ -29276,7 +29294,7 @@ var utils = {
|
|
|
29276
29294
|
}
|
|
29277
29295
|
const type = field.attrs.type || "text-single";
|
|
29278
29296
|
const label = field.attrs.label;
|
|
29279
|
-
const values = field.getChildren("value").map((v) => v.getText()).filter((
|
|
29297
|
+
const values = field.getChildren("value").map((v) => v.getText()).filter((t) => t !== undefined && t !== null);
|
|
29280
29298
|
let value = null;
|
|
29281
29299
|
if (type === "boolean") {
|
|
29282
29300
|
if (values.length > 0) {
|
|
@@ -29403,8 +29421,8 @@ class IncomingHandlers {
|
|
|
29403
29421
|
condition: err.condition || "unknown"
|
|
29404
29422
|
}
|
|
29405
29423
|
});
|
|
29406
|
-
} catch (
|
|
29407
|
-
this.session?.log.debug("*** XMPP ERROR (rl catch): ", { e
|
|
29424
|
+
} catch (e) {
|
|
29425
|
+
this.session?.log.debug("*** XMPP ERROR (rl catch): ", { e });
|
|
29408
29426
|
}
|
|
29409
29427
|
}
|
|
29410
29428
|
presence(stanza) {
|
|
@@ -29525,11 +29543,11 @@ class IncomingHandlers {
|
|
|
29525
29543
|
if (query) {
|
|
29526
29544
|
const members = [];
|
|
29527
29545
|
const entries = query.getChildren("item");
|
|
29528
|
-
for (const
|
|
29529
|
-
if (!Object.hasOwn(entries,
|
|
29546
|
+
for (const e in entries) {
|
|
29547
|
+
if (!Object.hasOwn(entries, e)) {
|
|
29530
29548
|
continue;
|
|
29531
29549
|
}
|
|
29532
|
-
members.push(entries[
|
|
29550
|
+
members.push(entries[e].attrs.name ?? "");
|
|
29533
29551
|
}
|
|
29534
29552
|
this.session?.sendToClient({
|
|
29535
29553
|
"@context": XMPP_CONTEXT,
|
|
@@ -29566,9 +29584,9 @@ class IncomingHandlers {
|
|
|
29566
29584
|
if (identities.length > 0) {
|
|
29567
29585
|
object.identities = identities;
|
|
29568
29586
|
}
|
|
29569
|
-
const
|
|
29570
|
-
if (
|
|
29571
|
-
const fields =
|
|
29587
|
+
const x = query.getChildren("x").find((el) => el.attrs.xmlns === "jabber:x:data");
|
|
29588
|
+
if (x) {
|
|
29589
|
+
const fields = x.getChildren("field");
|
|
29572
29590
|
for (const field of fields) {
|
|
29573
29591
|
const parsed = utils.parseXDataField(field);
|
|
29574
29592
|
if (!parsed) {
|
|
@@ -29659,18 +29677,18 @@ class IncomingHandlers {
|
|
|
29659
29677
|
const query = stanza.getChild("query");
|
|
29660
29678
|
if (query) {
|
|
29661
29679
|
const entries = query.getChildren("item");
|
|
29662
|
-
for (const
|
|
29663
|
-
if (!Object.hasOwn(entries,
|
|
29680
|
+
for (const e in entries) {
|
|
29681
|
+
if (!Object.hasOwn(entries, e)) {
|
|
29664
29682
|
continue;
|
|
29665
29683
|
}
|
|
29666
|
-
this.session?.log.debug("STANZA ATTRS: ", entries[
|
|
29667
|
-
if (entries[
|
|
29684
|
+
this.session?.log.debug("STANZA ATTRS: ", entries[e].attrs);
|
|
29685
|
+
if (entries[e].attrs.subscription === "both") {
|
|
29668
29686
|
this.session?.sendToClient({
|
|
29669
29687
|
"@context": XMPP_CONTEXT,
|
|
29670
29688
|
type: "update",
|
|
29671
29689
|
actor: {
|
|
29672
|
-
id: entries[
|
|
29673
|
-
name: entries[
|
|
29690
|
+
id: entries[e].attrs.jid ?? "",
|
|
29691
|
+
name: entries[e].attrs.name,
|
|
29674
29692
|
type: "person"
|
|
29675
29693
|
},
|
|
29676
29694
|
target: this.session?.actor ?? {
|
|
@@ -29680,16 +29698,16 @@ class IncomingHandlers {
|
|
|
29680
29698
|
object: {
|
|
29681
29699
|
type: "presence",
|
|
29682
29700
|
status: "",
|
|
29683
|
-
presence: getPresence(entries[
|
|
29701
|
+
presence: getPresence(entries[e])
|
|
29684
29702
|
}
|
|
29685
29703
|
});
|
|
29686
|
-
} else if (entries[
|
|
29704
|
+
} else if (entries[e].attrs.subscription === "from" && entries[e].attrs.ask && entries[e].attrs.ask === "subscribe") {
|
|
29687
29705
|
this.session?.sendToClient({
|
|
29688
29706
|
"@context": XMPP_CONTEXT,
|
|
29689
29707
|
type: "update",
|
|
29690
29708
|
actor: {
|
|
29691
|
-
id: entries[
|
|
29692
|
-
name: entries[
|
|
29709
|
+
id: entries[e].attrs.jid ?? "",
|
|
29710
|
+
name: entries[e].attrs.name,
|
|
29693
29711
|
type: "person"
|
|
29694
29712
|
},
|
|
29695
29713
|
target: this.session?.actor ?? {
|
|
@@ -29703,7 +29721,7 @@ class IncomingHandlers {
|
|
|
29703
29721
|
}
|
|
29704
29722
|
});
|
|
29705
29723
|
} else {
|
|
29706
|
-
this.subscribe(this.session?.actor ?? { id: "", type: "person" }, entries[
|
|
29724
|
+
this.subscribe(this.session?.actor ?? { id: "", type: "person" }, entries[e].attrs.jid ?? "", entries[e].attrs.name);
|
|
29707
29725
|
}
|
|
29708
29726
|
}
|
|
29709
29727
|
}
|
|
@@ -29815,11 +29833,11 @@ class XMPP {
|
|
|
29815
29833
|
});
|
|
29816
29834
|
this.log.debug(`XMPP client created successfully for ${job.actor.id}`);
|
|
29817
29835
|
} catch (err) {
|
|
29818
|
-
const
|
|
29836
|
+
const e = err;
|
|
29819
29837
|
this.log.debug(`XMPP client creation failed for ${job.actor.id}:`, {
|
|
29820
29838
|
err
|
|
29821
29839
|
});
|
|
29822
|
-
done(`client creation failed: ${
|
|
29840
|
+
done(`client creation failed: ${e.message}`);
|
|
29823
29841
|
return;
|
|
29824
29842
|
}
|
|
29825
29843
|
this.__client.on("offline", () => {
|
|
@@ -29832,15 +29850,15 @@ class XMPP {
|
|
|
29832
29850
|
}
|
|
29833
29851
|
});
|
|
29834
29852
|
this.__client.on("error", (err) => {
|
|
29835
|
-
const
|
|
29836
|
-
if (
|
|
29837
|
-
this.log.error(`FATAL: Internal code error in XMPP platform: ${
|
|
29838
|
-
this.log.error(
|
|
29853
|
+
const e = err;
|
|
29854
|
+
if (e instanceof TypeError || e instanceof ReferenceError || e instanceof SyntaxError) {
|
|
29855
|
+
this.log.error(`FATAL: Internal code error in XMPP platform: ${e.toString()}`);
|
|
29856
|
+
this.log.error(e.stack ?? "");
|
|
29839
29857
|
this.cleanup(() => process.exit(1));
|
|
29840
29858
|
return;
|
|
29841
29859
|
}
|
|
29842
|
-
this.log.debug(`network error event for ${job.actor.id}:${
|
|
29843
|
-
const errorType = this.__classifyError(
|
|
29860
|
+
this.log.debug(`network error event for ${job.actor.id}:${e.toString()}`);
|
|
29861
|
+
const errorType = this.__classifyError(e);
|
|
29844
29862
|
if (errorType !== "RECOVERABLE") {
|
|
29845
29863
|
this.__markDisconnected(true);
|
|
29846
29864
|
}
|
|
@@ -29848,11 +29866,11 @@ class XMPP {
|
|
|
29848
29866
|
"@context": this.schema.contextUrl ? buildCanonicalContext(this.schema.contextUrl) : [],
|
|
29849
29867
|
type: "connect",
|
|
29850
29868
|
actor: { id: job.actor.id, type: "person" },
|
|
29851
|
-
error: errorType === "RECOVERABLE" ? `Connection lost: ${
|
|
29869
|
+
error: errorType === "RECOVERABLE" ? `Connection lost: ${e.toString()}. Attempting automatic reconnection...` : `Connection failed: ${e.toString()}. Manual reconnection required.`,
|
|
29852
29870
|
object: {
|
|
29853
29871
|
type: "connect",
|
|
29854
29872
|
status: errorType === "RECOVERABLE" ? "reconnecting" : "failed",
|
|
29855
|
-
condition:
|
|
29873
|
+
condition: e.condition || (errorType === "RECOVERABLE" ? "network" : "protocol")
|
|
29856
29874
|
}
|
|
29857
29875
|
});
|
|
29858
29876
|
});
|
|
@@ -29868,16 +29886,16 @@ class XMPP {
|
|
|
29868
29886
|
this.__registerHandlers();
|
|
29869
29887
|
return done();
|
|
29870
29888
|
}).catch((err) => {
|
|
29871
|
-
const
|
|
29889
|
+
const e = err;
|
|
29872
29890
|
const duration = Date.now() - startTime;
|
|
29873
29891
|
this.log.debug(`connection failed for ${job.actor.id} after ${duration}ms:`, {
|
|
29874
|
-
error:
|
|
29875
|
-
message:
|
|
29876
|
-
code:
|
|
29877
|
-
stack:
|
|
29892
|
+
error: e,
|
|
29893
|
+
message: e?.message,
|
|
29894
|
+
code: e?.code,
|
|
29895
|
+
stack: e?.stack
|
|
29878
29896
|
});
|
|
29879
29897
|
this.__client = undefined;
|
|
29880
|
-
return done(`connection failed: ${
|
|
29898
|
+
return done(`connection failed: ${e?.message || e}. (service: ${xmppCreds.service})`);
|
|
29881
29899
|
});
|
|
29882
29900
|
}
|
|
29883
29901
|
async join(job, done) {
|
|
@@ -30043,4 +30061,4 @@ export {
|
|
|
30043
30061
|
XMPP as default
|
|
30044
30062
|
};
|
|
30045
30063
|
|
|
30046
|
-
//# debugId=
|
|
30064
|
+
//# debugId=8E744CD7CCE8119064756E2164756E21
|