@builderbot/provider-sherpa 1.3.13 → 1.3.14
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.cjs +588 -1363
- package/dist/index.mjs +588 -1363
- package/dist/sherpa.d.ts.map +1 -1
- package/package.json +3 -3
package/dist/index.mjs
CHANGED
|
@@ -16,13 +16,13 @@ import require$$7 from 'url';
|
|
|
16
16
|
import require$$0$9 from 'buffer';
|
|
17
17
|
import require$$4$1 from 'http';
|
|
18
18
|
import require$$5$1 from 'https';
|
|
19
|
-
import require$$
|
|
20
|
-
import require$$1$
|
|
21
|
-
import require$$0$
|
|
22
|
-
import require$$0$
|
|
19
|
+
import require$$1$2 from 'tty';
|
|
20
|
+
import require$$1$3 from 'crypto';
|
|
21
|
+
import require$$0$c from 'sharp';
|
|
22
|
+
import require$$0$b from 'fluent-ffmpeg';
|
|
23
23
|
import require$$8 from 'qrcode-terminal';
|
|
24
|
-
import require$$1$
|
|
25
|
-
import require$$1$
|
|
24
|
+
import require$$1$5 from 'child_process';
|
|
25
|
+
import require$$1$4 from 'string_decoder';
|
|
26
26
|
import require$$4$2 from 'timers';
|
|
27
27
|
import require$$3$1 from 'readline';
|
|
28
28
|
import require$$3$2 from 'net';
|
|
@@ -16497,7 +16497,7 @@ function specialSet (store, o, k, path, afterPath, censor, isCensorFct, censorFc
|
|
|
16497
16497
|
wcov = n[wck];
|
|
16498
16498
|
kIsWc = k === '*';
|
|
16499
16499
|
if (consecutive) {
|
|
16500
|
-
redactPathCurrent = node$
|
|
16500
|
+
redactPathCurrent = node$1(redactPathCurrent, wck, depth);
|
|
16501
16501
|
level = i;
|
|
16502
16502
|
ov = iterateNthLevel(wcov, level - 1, k, path, afterPath, censor, isCensorFct, censorFctTakesPath, originalKey, n, nv, ov, kIsWc, wck, i, lastPathIndex, redactPathCurrent, store, o[originalKey], depth + 1);
|
|
16503
16503
|
} else {
|
|
@@ -16513,15 +16513,15 @@ function specialSet (store, o, k, path, afterPath, censor, isCensorFct, censorFc
|
|
|
16513
16513
|
? (censorFctTakesPath ? censor(ov, [...path, originalKey, ...afterPath]) : censor(ov))
|
|
16514
16514
|
: censor);
|
|
16515
16515
|
if (kIsWc) {
|
|
16516
|
-
const rv = restoreInstr(node$
|
|
16516
|
+
const rv = restoreInstr(node$1(redactPathCurrent, wck, depth), ov, o[originalKey]);
|
|
16517
16517
|
store.push(rv);
|
|
16518
16518
|
n[wck] = nv;
|
|
16519
16519
|
} else {
|
|
16520
16520
|
if (wcov[k] === nv) ; else if ((nv === undefined && censor !== undefined) || (has(wcov, k) && nv === ov)) {
|
|
16521
|
-
redactPathCurrent = node$
|
|
16521
|
+
redactPathCurrent = node$1(redactPathCurrent, wck, depth);
|
|
16522
16522
|
} else {
|
|
16523
|
-
redactPathCurrent = node$
|
|
16524
|
-
const rv = restoreInstr(node$
|
|
16523
|
+
redactPathCurrent = node$1(redactPathCurrent, wck, depth);
|
|
16524
|
+
const rv = restoreInstr(node$1(redactPathCurrent, k, depth + 1), ov, o[originalKey]);
|
|
16525
16525
|
store.push(rv);
|
|
16526
16526
|
wcov[k] = nv;
|
|
16527
16527
|
}
|
|
@@ -16532,7 +16532,7 @@ function specialSet (store, o, k, path, afterPath, censor, isCensorFct, censorFc
|
|
|
16532
16532
|
wc = null;
|
|
16533
16533
|
} else {
|
|
16534
16534
|
ov = n[k];
|
|
16535
|
-
redactPathCurrent = node$
|
|
16535
|
+
redactPathCurrent = node$1(redactPathCurrent, k, depth);
|
|
16536
16536
|
nv = (i !== lastPathIndex)
|
|
16537
16537
|
? ov
|
|
16538
16538
|
: (isCensorFct
|
|
@@ -16578,7 +16578,7 @@ function iterateNthLevel (wcov, level, k, path, afterPath, censor, isCensorFct,
|
|
|
16578
16578
|
n[wck] = nv;
|
|
16579
16579
|
} else {
|
|
16580
16580
|
if (wcov[k] === nv) ; else if ((nv === undefined && censor !== undefined) || (has(wcov, k) && nv === ov)) ; else {
|
|
16581
|
-
const rv = restoreInstr(node$
|
|
16581
|
+
const rv = restoreInstr(node$1(redactPathCurrent, k, depth + 1), ov, parent);
|
|
16582
16582
|
store.push(rv);
|
|
16583
16583
|
wcov[k] = nv;
|
|
16584
16584
|
}
|
|
@@ -16587,7 +16587,7 @@ function iterateNthLevel (wcov, level, k, path, afterPath, censor, isCensorFct,
|
|
|
16587
16587
|
}
|
|
16588
16588
|
for (const key in wcov) {
|
|
16589
16589
|
if (typeof wcov[key] === 'object') {
|
|
16590
|
-
redactPathCurrent = node$
|
|
16590
|
+
redactPathCurrent = node$1(redactPathCurrent, key, depth);
|
|
16591
16591
|
iterateNthLevel(wcov[key], level - 1, k, path, afterPath, censor, isCensorFct, censorFctTakesPath, originalKey, n, nv, ov, kIsWc, wck, i, lastPathIndex, redactPathCurrent, store, parent, depth + 1);
|
|
16592
16592
|
}
|
|
16593
16593
|
}
|
|
@@ -16617,9 +16617,9 @@ function tree () {
|
|
|
16617
16617
|
* @param {number} depth the depth of the new node in the tree - used to determing whether to add the new node as a child or sibling of the provided `parent` node
|
|
16618
16618
|
* @returns {TreeNode} a reference to the newly created node in the tree
|
|
16619
16619
|
*/
|
|
16620
|
-
function node$
|
|
16620
|
+
function node$1 (parent, key, depth) {
|
|
16621
16621
|
if (parent.depth === depth) {
|
|
16622
|
-
return node$
|
|
16622
|
+
return node$1(parent.parent, key, depth)
|
|
16623
16623
|
}
|
|
16624
16624
|
|
|
16625
16625
|
var child = {
|
|
@@ -23289,9 +23289,9 @@ function requireXhr$1 () {
|
|
|
23289
23289
|
|
|
23290
23290
|
var followRedirects = {exports: {}};
|
|
23291
23291
|
|
|
23292
|
-
var src$
|
|
23292
|
+
var src$1 = {exports: {}};
|
|
23293
23293
|
|
|
23294
|
-
var browser
|
|
23294
|
+
var browser = {exports: {}};
|
|
23295
23295
|
|
|
23296
23296
|
/**
|
|
23297
23297
|
* Helpers.
|
|
@@ -23464,12 +23464,12 @@ function requireMs () {
|
|
|
23464
23464
|
return ms;
|
|
23465
23465
|
}
|
|
23466
23466
|
|
|
23467
|
-
var common$
|
|
23468
|
-
var hasRequiredCommon$
|
|
23467
|
+
var common$1;
|
|
23468
|
+
var hasRequiredCommon$1;
|
|
23469
23469
|
|
|
23470
|
-
function requireCommon$
|
|
23471
|
-
if (hasRequiredCommon$
|
|
23472
|
-
hasRequiredCommon$
|
|
23470
|
+
function requireCommon$1 () {
|
|
23471
|
+
if (hasRequiredCommon$1) return common$1;
|
|
23472
|
+
hasRequiredCommon$1 = 1;
|
|
23473
23473
|
/**
|
|
23474
23474
|
* This is the common logic for both the Node.js and web browser
|
|
23475
23475
|
* implementations of `debug()`.
|
|
@@ -23760,17 +23760,17 @@ function requireCommon$2 () {
|
|
|
23760
23760
|
return createDebug;
|
|
23761
23761
|
}
|
|
23762
23762
|
|
|
23763
|
-
common$
|
|
23764
|
-
return common$
|
|
23763
|
+
common$1 = setup;
|
|
23764
|
+
return common$1;
|
|
23765
23765
|
}
|
|
23766
23766
|
|
|
23767
23767
|
/* eslint-env browser */
|
|
23768
23768
|
|
|
23769
|
-
var hasRequiredBrowser
|
|
23769
|
+
var hasRequiredBrowser;
|
|
23770
23770
|
|
|
23771
|
-
function requireBrowser
|
|
23772
|
-
if (hasRequiredBrowser
|
|
23773
|
-
hasRequiredBrowser
|
|
23771
|
+
function requireBrowser () {
|
|
23772
|
+
if (hasRequiredBrowser) return browser.exports;
|
|
23773
|
+
hasRequiredBrowser = 1;
|
|
23774
23774
|
(function (module, exports$1) {
|
|
23775
23775
|
/**
|
|
23776
23776
|
* This is the web browser implementation of `debug()`.
|
|
@@ -24027,7 +24027,7 @@ function requireBrowser$1 () {
|
|
|
24027
24027
|
}
|
|
24028
24028
|
}
|
|
24029
24029
|
|
|
24030
|
-
module.exports = requireCommon$
|
|
24030
|
+
module.exports = requireCommon$1()(exports$1);
|
|
24031
24031
|
|
|
24032
24032
|
const {formatters} = module.exports;
|
|
24033
24033
|
|
|
@@ -24042,11 +24042,11 @@ function requireBrowser$1 () {
|
|
|
24042
24042
|
return '[UnexpectedJSONParseError]: ' + error.message;
|
|
24043
24043
|
}
|
|
24044
24044
|
};
|
|
24045
|
-
} (browser
|
|
24046
|
-
return browser
|
|
24045
|
+
} (browser, browser.exports));
|
|
24046
|
+
return browser.exports;
|
|
24047
24047
|
}
|
|
24048
24048
|
|
|
24049
|
-
var node
|
|
24049
|
+
var node = {exports: {}};
|
|
24050
24050
|
|
|
24051
24051
|
var hasFlag;
|
|
24052
24052
|
var hasRequiredHasFlag;
|
|
@@ -24071,7 +24071,7 @@ function requireSupportsColor () {
|
|
|
24071
24071
|
if (hasRequiredSupportsColor) return supportsColor_1;
|
|
24072
24072
|
hasRequiredSupportsColor = 1;
|
|
24073
24073
|
const os = require$$2;
|
|
24074
|
-
const tty = require$$
|
|
24074
|
+
const tty = require$$1$2;
|
|
24075
24075
|
const hasFlag = requireHasFlag();
|
|
24076
24076
|
|
|
24077
24077
|
const {env} = process;
|
|
@@ -24211,13 +24211,13 @@ function requireSupportsColor () {
|
|
|
24211
24211
|
* Module dependencies.
|
|
24212
24212
|
*/
|
|
24213
24213
|
|
|
24214
|
-
var hasRequiredNode
|
|
24214
|
+
var hasRequiredNode;
|
|
24215
24215
|
|
|
24216
|
-
function requireNode
|
|
24217
|
-
if (hasRequiredNode
|
|
24218
|
-
hasRequiredNode
|
|
24216
|
+
function requireNode () {
|
|
24217
|
+
if (hasRequiredNode) return node.exports;
|
|
24218
|
+
hasRequiredNode = 1;
|
|
24219
24219
|
(function (module, exports$1) {
|
|
24220
|
-
const tty = require$$
|
|
24220
|
+
const tty = require$$1$2;
|
|
24221
24221
|
const util = require$$0$6;
|
|
24222
24222
|
|
|
24223
24223
|
/**
|
|
@@ -24452,7 +24452,7 @@ function requireNode$1 () {
|
|
|
24452
24452
|
}
|
|
24453
24453
|
}
|
|
24454
24454
|
|
|
24455
|
-
module.exports = requireCommon$
|
|
24455
|
+
module.exports = requireCommon$1()(exports$1);
|
|
24456
24456
|
|
|
24457
24457
|
const {formatters} = module.exports;
|
|
24458
24458
|
|
|
@@ -24476,8 +24476,8 @@ function requireNode$1 () {
|
|
|
24476
24476
|
this.inspectOpts.colors = this.useColors;
|
|
24477
24477
|
return util.inspect(v, this.inspectOpts);
|
|
24478
24478
|
};
|
|
24479
|
-
} (node
|
|
24480
|
-
return node
|
|
24479
|
+
} (node, node.exports));
|
|
24480
|
+
return node.exports;
|
|
24481
24481
|
}
|
|
24482
24482
|
|
|
24483
24483
|
/**
|
|
@@ -24485,17 +24485,17 @@ function requireNode$1 () {
|
|
|
24485
24485
|
* treat as a browser.
|
|
24486
24486
|
*/
|
|
24487
24487
|
|
|
24488
|
-
var hasRequiredSrc$
|
|
24488
|
+
var hasRequiredSrc$1;
|
|
24489
24489
|
|
|
24490
|
-
function requireSrc$
|
|
24491
|
-
if (hasRequiredSrc$
|
|
24492
|
-
hasRequiredSrc$
|
|
24490
|
+
function requireSrc$1 () {
|
|
24491
|
+
if (hasRequiredSrc$1) return src$1.exports;
|
|
24492
|
+
hasRequiredSrc$1 = 1;
|
|
24493
24493
|
if (typeof process === 'undefined' || process.type === 'renderer' || process.browser === true || process.__nwjs) {
|
|
24494
|
-
src$
|
|
24494
|
+
src$1.exports = requireBrowser();
|
|
24495
24495
|
} else {
|
|
24496
|
-
src$
|
|
24496
|
+
src$1.exports = requireNode();
|
|
24497
24497
|
}
|
|
24498
|
-
return src$
|
|
24498
|
+
return src$1.exports;
|
|
24499
24499
|
}
|
|
24500
24500
|
|
|
24501
24501
|
var debug_1;
|
|
@@ -24510,7 +24510,7 @@ function requireDebug () {
|
|
|
24510
24510
|
if (!debug) {
|
|
24511
24511
|
try {
|
|
24512
24512
|
/* eslint global-require: off */
|
|
24513
|
-
debug = requireSrc$
|
|
24513
|
+
debug = requireSrc$1()("follow-redirects");
|
|
24514
24514
|
}
|
|
24515
24515
|
catch (error) { /* */ }
|
|
24516
24516
|
if (typeof debug !== "function") {
|
|
@@ -26351,7 +26351,7 @@ var Utils$5 = {};
|
|
|
26351
26351
|
|
|
26352
26352
|
Object.defineProperty(Utils$5, "__esModule", { value: true });
|
|
26353
26353
|
Utils$5.defaultBg = void 0;
|
|
26354
|
-
const crypto_1$2 = require$$1$
|
|
26354
|
+
const crypto_1$2 = require$$1$3;
|
|
26355
26355
|
let Utils$4 = class Utils {
|
|
26356
26356
|
};
|
|
26357
26357
|
Utils$5.default = Utils$4;
|
|
@@ -29412,7 +29412,7 @@ var __importDefault$b = (commonjsGlobal && commonjsGlobal.__importDefault) || fu
|
|
|
29412
29412
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
29413
29413
|
};
|
|
29414
29414
|
Object.defineProperty(videoToGif$1, "__esModule", { value: true });
|
|
29415
|
-
const fluent_ffmpeg_1$1 = __importDefault$b(require$$0$
|
|
29415
|
+
const fluent_ffmpeg_1$1 = __importDefault$b(require$$0$b);
|
|
29416
29416
|
const fs_extra_1$2 = lib$a;
|
|
29417
29417
|
const os_1$2 = require$$2;
|
|
29418
29418
|
/** https://stackoverflow.com/questions/52156713/fluent-ffmpeg-h264-to-gif-throwing-error-1 */
|
|
@@ -29444,7 +29444,7 @@ var __importDefault$a = (commonjsGlobal && commonjsGlobal.__importDefault) || fu
|
|
|
29444
29444
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
29445
29445
|
};
|
|
29446
29446
|
Object.defineProperty(crop$1, "__esModule", { value: true });
|
|
29447
|
-
const fluent_ffmpeg_1 = __importDefault$a(require$$0$
|
|
29447
|
+
const fluent_ffmpeg_1 = __importDefault$a(require$$0$b);
|
|
29448
29448
|
const fs_extra_1$1 = lib$a;
|
|
29449
29449
|
const os_1$1 = require$$2;
|
|
29450
29450
|
const crop = (filename) => __awaiter$3(void 0, void 0, void 0, function* () {
|
|
@@ -29521,7 +29521,7 @@ var __importDefault$9 = (commonjsGlobal && commonjsGlobal.__importDefault) || fu
|
|
|
29521
29521
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
29522
29522
|
};
|
|
29523
29523
|
Object.defineProperty(convert$1, "__esModule", { value: true });
|
|
29524
|
-
const sharp_1 = __importStar(require$$0$
|
|
29524
|
+
const sharp_1 = __importStar(require$$0$c);
|
|
29525
29525
|
const videoToGif_1 = __importDefault$9(videoToGif$1);
|
|
29526
29526
|
const fs_extra_1 = lib$a;
|
|
29527
29527
|
const os_1 = require$$2;
|
|
@@ -212200,7 +212200,7 @@ Object.defineProperty(types$4, "__esModule", { value: true });
|
|
|
212200
212200
|
exports$1.bytesToCrockford = exports$1.trimUndefineds = exports$1.isWABusinessPlatform = exports$1.getCodeFromWSError = exports$1.getCallStatusFromNode = exports$1.getErrorCodeFromStreamError = exports$1.getStatusFromReceiptType = exports$1.generateMdTagPrefix = exports$1.fetchLatestWaWebVersion = exports$1.fetchLatestBaileysVersion = exports$1.printQRIfNecessaryListener = exports$1.bindWaitForConnectionUpdate = exports$1.bindWaitForEvent = exports$1.generateMessageID = exports$1.generateMessageIDV2 = exports$1.promiseTimeout = exports$1.delayCancellable = exports$1.delay = exports$1.debouncedTimeout = exports$1.unixTimestampSeconds = exports$1.toNumber = exports$1.encodeBigEndian = exports$1.generateRegistrationId = exports$1.encodeWAMessage = exports$1.unpadRandomMax16 = exports$1.writeRandomPadMax16 = exports$1.BufferJSON = exports$1.Browsers = void 0;
|
|
212201
212201
|
const boom_1 = lib$5;
|
|
212202
212202
|
const axios_1 = __importDefault(axios);
|
|
212203
|
-
const crypto_1 = require$$1$
|
|
212203
|
+
const crypto_1 = require$$1$3;
|
|
212204
212204
|
const os_1 = require$$2;
|
|
212205
212205
|
const WAProto_1 = WAProto;
|
|
212206
212206
|
const baileys_version_json_1 = require$$4;
|
|
@@ -212614,7 +212614,7 @@ var signal = {};
|
|
|
212614
212614
|
|
|
212615
212615
|
var libsignal = {};
|
|
212616
212616
|
|
|
212617
|
-
const nodeCrypto$3 = require$$1$
|
|
212617
|
+
const nodeCrypto$3 = require$$1$3;
|
|
212618
212618
|
const assert = require$$5;
|
|
212619
212619
|
|
|
212620
212620
|
|
|
@@ -214381,7 +214381,7 @@ lib$3.generateKeyPair = generateKeyPair;
|
|
|
214381
214381
|
lib$3.default = {};
|
|
214382
214382
|
|
|
214383
214383
|
const curveJs = lib$3;
|
|
214384
|
-
const nodeCrypto$2 = require$$1$
|
|
214384
|
+
const nodeCrypto$2 = require$$1$3;
|
|
214385
214385
|
// from: https://github.com/digitalbazaar/x25519-key-agreement-key-2019/blob/master/lib/crypto.js
|
|
214386
214386
|
const PUBLIC_KEY_DER_PREFIX = Buffer.from([
|
|
214387
214387
|
48, 42, 48, 5, 6, 3, 43, 101, 110, 3, 33, 0
|
|
@@ -214503,7 +214503,7 @@ var keyhelper$2 = {};
|
|
|
214503
214503
|
// vim: ts=4:sw=4:expandtab
|
|
214504
214504
|
|
|
214505
214505
|
const curve$4 = curve$5;
|
|
214506
|
-
const nodeCrypto$1 = require$$1$
|
|
214506
|
+
const nodeCrypto$1 = require$$1$3;
|
|
214507
214507
|
|
|
214508
214508
|
function isNonNegativeInteger(n) {
|
|
214509
214509
|
return (typeof n === 'number' && (n % 1) === 0 && n >= 0);
|
|
@@ -237296,7 +237296,7 @@ var sender_key_distribution_message = SenderKeyDistributionMessage$1;
|
|
|
237296
237296
|
var keyhelper$1 = {};
|
|
237297
237297
|
|
|
237298
237298
|
const curve$1 = curve$5;
|
|
237299
|
-
const nodeCrypto = require$$1$
|
|
237299
|
+
const nodeCrypto = require$$1$3;
|
|
237300
237300
|
|
|
237301
237301
|
keyhelper$1.generateSenderKey = function() {
|
|
237302
237302
|
return nodeCrypto.randomBytes(32);
|
|
@@ -237939,7 +237939,7 @@ var crypto = {};
|
|
|
237939
237939
|
*/
|
|
237940
237940
|
|
|
237941
237941
|
const { Buffer: Buffer$1 } = require$$0$9;
|
|
237942
|
-
const { createHash: createHash$2, createHmac } = require$$1$
|
|
237942
|
+
const { createHash: createHash$2, createHmac } = require$$1$3;
|
|
237943
237943
|
|
|
237944
237944
|
const g_digestLenCache = {};
|
|
237945
237945
|
|
|
@@ -238127,7 +238127,7 @@ function requireCrypto () {
|
|
|
238127
238127
|
};
|
|
238128
238128
|
Object.defineProperty(exports$1, "__esModule", { value: true });
|
|
238129
238129
|
exports$1.aesDecryptCTR = exports$1.aesEncryptCTR = exports$1.derivePairingCodeKey = exports$1.hkdf = exports$1.sha256 = exports$1.hmacSign = exports$1.aesEncrypWithIV = exports$1.aesEncrypt = exports$1.aesDecryptWithIV = exports$1.aesDecrypt = exports$1.aesDecryptGCM = exports$1.aesEncryptGCM = exports$1.signedKeyPair = exports$1.Curve = exports$1.generateSignalPubKey = void 0;
|
|
238130
|
-
const crypto_1 = require$$1$
|
|
238130
|
+
const crypto_1 = require$$1$3;
|
|
238131
238131
|
const futoin_hkdf_1 = __importDefault(hkdf_1);
|
|
238132
238132
|
const libsignal$1 = __importStar(libsignal);
|
|
238133
238133
|
const Defaults_1 = requireDefaults();
|
|
@@ -246163,12 +246163,12 @@ function requireGifcodec () {
|
|
|
246163
246163
|
return gifcodec;
|
|
246164
246164
|
}
|
|
246165
246165
|
|
|
246166
|
-
var src
|
|
246167
|
-
var hasRequiredSrc
|
|
246166
|
+
var src;
|
|
246167
|
+
var hasRequiredSrc;
|
|
246168
246168
|
|
|
246169
|
-
function requireSrc
|
|
246170
|
-
if (hasRequiredSrc
|
|
246171
|
-
hasRequiredSrc
|
|
246169
|
+
function requireSrc () {
|
|
246170
|
+
if (hasRequiredSrc) return src;
|
|
246171
|
+
hasRequiredSrc = 1;
|
|
246172
246172
|
|
|
246173
246173
|
const BitmapImage = requireBitmapimage();
|
|
246174
246174
|
const { Gif, GifError } = requireGif();
|
|
@@ -246176,7 +246176,7 @@ function requireSrc$1 () {
|
|
|
246176
246176
|
const { GifFrame } = requireGifframe();
|
|
246177
246177
|
const GifUtil = requireGifutil();
|
|
246178
246178
|
|
|
246179
|
-
src
|
|
246179
|
+
src = {
|
|
246180
246180
|
BitmapImage,
|
|
246181
246181
|
Gif,
|
|
246182
246182
|
GifCodec,
|
|
@@ -246184,7 +246184,7 @@ function requireSrc$1 () {
|
|
|
246184
246184
|
GifUtil,
|
|
246185
246185
|
GifError
|
|
246186
246186
|
};
|
|
246187
|
-
return src
|
|
246187
|
+
return src;
|
|
246188
246188
|
}
|
|
246189
246189
|
|
|
246190
246190
|
var hasRequiredCommonjs$q;
|
|
@@ -246198,7 +246198,7 @@ function requireCommonjs$q () {
|
|
|
246198
246198
|
Object.defineProperty(commonjs$p, "__esModule", { value: true });
|
|
246199
246199
|
commonjs$p.default = gif;
|
|
246200
246200
|
const omggif_1 = __importDefault(requireOmggif());
|
|
246201
|
-
const gifwrap_1 = requireSrc
|
|
246201
|
+
const gifwrap_1 = requireSrc();
|
|
246202
246202
|
function gif() {
|
|
246203
246203
|
return {
|
|
246204
246204
|
mime: "image/gif",
|
|
@@ -251023,13 +251023,13 @@ function commonjsRequire(path) {
|
|
|
251023
251023
|
|
|
251024
251024
|
var UTIF = {exports: {}};
|
|
251025
251025
|
|
|
251026
|
-
var common
|
|
251026
|
+
var common = {};
|
|
251027
251027
|
|
|
251028
|
-
var hasRequiredCommon
|
|
251028
|
+
var hasRequiredCommon;
|
|
251029
251029
|
|
|
251030
|
-
function requireCommon
|
|
251031
|
-
if (hasRequiredCommon
|
|
251032
|
-
hasRequiredCommon
|
|
251030
|
+
function requireCommon () {
|
|
251031
|
+
if (hasRequiredCommon) return common;
|
|
251032
|
+
hasRequiredCommon = 1;
|
|
251033
251033
|
(function (exports$1) {
|
|
251034
251034
|
|
|
251035
251035
|
|
|
@@ -251135,8 +251135,8 @@ function requireCommon$1 () {
|
|
|
251135
251135
|
};
|
|
251136
251136
|
|
|
251137
251137
|
exports$1.setTyped(TYPED_OK);
|
|
251138
|
-
} (common
|
|
251139
|
-
return common
|
|
251138
|
+
} (common));
|
|
251139
|
+
return common;
|
|
251140
251140
|
}
|
|
251141
251141
|
|
|
251142
251142
|
var deflate$1 = {};
|
|
@@ -251172,7 +251172,7 @@ function requireTrees () {
|
|
|
251172
251172
|
|
|
251173
251173
|
/* eslint-disable space-unary-ops */
|
|
251174
251174
|
|
|
251175
|
-
var utils = requireCommon
|
|
251175
|
+
var utils = requireCommon();
|
|
251176
251176
|
|
|
251177
251177
|
/* Public constants ==========================================================*/
|
|
251178
251178
|
/* ===========================================================================*/
|
|
@@ -252565,7 +252565,7 @@ function requireDeflate$1 () {
|
|
|
252565
252565
|
// misrepresented as being the original software.
|
|
252566
252566
|
// 3. This notice may not be removed or altered from any source distribution.
|
|
252567
252567
|
|
|
252568
|
-
var utils = requireCommon
|
|
252568
|
+
var utils = requireCommon();
|
|
252569
252569
|
var trees = requireTrees();
|
|
252570
252570
|
var adler32 = requireAdler32();
|
|
252571
252571
|
var crc32 = requireCrc32();
|
|
@@ -254430,7 +254430,7 @@ function requireStrings () {
|
|
|
254430
254430
|
hasRequiredStrings = 1;
|
|
254431
254431
|
|
|
254432
254432
|
|
|
254433
|
-
var utils = requireCommon
|
|
254433
|
+
var utils = requireCommon();
|
|
254434
254434
|
|
|
254435
254435
|
|
|
254436
254436
|
// Quick check if we can use fast array to bin string conversion
|
|
@@ -254679,7 +254679,7 @@ function requireDeflate () {
|
|
|
254679
254679
|
|
|
254680
254680
|
|
|
254681
254681
|
var zlib_deflate = requireDeflate$1();
|
|
254682
|
-
var utils = requireCommon
|
|
254682
|
+
var utils = requireCommon();
|
|
254683
254683
|
var strings = requireStrings();
|
|
254684
254684
|
var msg = requireMessages$1();
|
|
254685
254685
|
var ZStream = requireZstream();
|
|
@@ -255461,7 +255461,7 @@ function requireInftrees () {
|
|
|
255461
255461
|
// misrepresented as being the original software.
|
|
255462
255462
|
// 3. This notice may not be removed or altered from any source distribution.
|
|
255463
255463
|
|
|
255464
|
-
var utils = requireCommon
|
|
255464
|
+
var utils = requireCommon();
|
|
255465
255465
|
|
|
255466
255466
|
var MAXBITS = 15;
|
|
255467
255467
|
var ENOUGH_LENS = 852;
|
|
@@ -255811,7 +255811,7 @@ function requireInflate$1 () {
|
|
|
255811
255811
|
// misrepresented as being the original software.
|
|
255812
255812
|
// 3. This notice may not be removed or altered from any source distribution.
|
|
255813
255813
|
|
|
255814
|
-
var utils = requireCommon
|
|
255814
|
+
var utils = requireCommon();
|
|
255815
255815
|
var adler32 = requireAdler32();
|
|
255816
255816
|
var crc32 = requireCrc32();
|
|
255817
255817
|
var inflate_fast = requireInffast();
|
|
@@ -257496,7 +257496,7 @@ function requireInflate () {
|
|
|
257496
257496
|
|
|
257497
257497
|
|
|
257498
257498
|
var zlib_inflate = requireInflate$1();
|
|
257499
|
-
var utils = requireCommon
|
|
257499
|
+
var utils = requireCommon();
|
|
257500
257500
|
var strings = requireStrings();
|
|
257501
257501
|
var c = requireConstants$2();
|
|
257502
257502
|
var msg = requireMessages$1();
|
|
@@ -257925,7 +257925,7 @@ function requirePako () {
|
|
|
257925
257925
|
if (hasRequiredPako) return pako_1;
|
|
257926
257926
|
hasRequiredPako = 1;
|
|
257927
257927
|
|
|
257928
|
-
var assign = requireCommon
|
|
257928
|
+
var assign = requireCommon().assign;
|
|
257929
257929
|
|
|
257930
257930
|
var deflate = requireDeflate();
|
|
257931
257931
|
var inflate = requireInflate();
|
|
@@ -275206,8 +275206,11 @@ function requireSax () {
|
|
|
275206
275206
|
if (hasRequiredSax) return sax;
|
|
275207
275207
|
hasRequiredSax = 1;
|
|
275208
275208
|
(function (exports$1) {
|
|
275209
|
-
(function (sax) {
|
|
275210
|
-
|
|
275209
|
+
(function (sax) {
|
|
275210
|
+
// wrapper for non-node envs
|
|
275211
|
+
sax.parser = function (strict, opt) {
|
|
275212
|
+
return new SAXParser(strict, opt)
|
|
275213
|
+
};
|
|
275211
275214
|
sax.SAXParser = SAXParser;
|
|
275212
275215
|
sax.SAXStream = SAXStream;
|
|
275213
275216
|
sax.createStream = createStream;
|
|
@@ -275224,9 +275227,18 @@ function requireSax () {
|
|
|
275224
275227
|
sax.MAX_BUFFER_LENGTH = 64 * 1024;
|
|
275225
275228
|
|
|
275226
275229
|
var buffers = [
|
|
275227
|
-
'comment',
|
|
275228
|
-
'
|
|
275229
|
-
'
|
|
275230
|
+
'comment',
|
|
275231
|
+
'sgmlDecl',
|
|
275232
|
+
'textNode',
|
|
275233
|
+
'tagName',
|
|
275234
|
+
'doctype',
|
|
275235
|
+
'procInstName',
|
|
275236
|
+
'procInstBody',
|
|
275237
|
+
'entity',
|
|
275238
|
+
'attribName',
|
|
275239
|
+
'attribValue',
|
|
275240
|
+
'cdata',
|
|
275241
|
+
'script',
|
|
275230
275242
|
];
|
|
275231
275243
|
|
|
275232
275244
|
sax.EVENTS = [
|
|
@@ -275247,10 +275259,10 @@ function requireSax () {
|
|
|
275247
275259
|
'ready',
|
|
275248
275260
|
'script',
|
|
275249
275261
|
'opennamespace',
|
|
275250
|
-
'closenamespace'
|
|
275262
|
+
'closenamespace',
|
|
275251
275263
|
];
|
|
275252
275264
|
|
|
275253
|
-
function SAXParser
|
|
275265
|
+
function SAXParser(strict, opt) {
|
|
275254
275266
|
if (!(this instanceof SAXParser)) {
|
|
275255
275267
|
return new SAXParser(strict, opt)
|
|
275256
275268
|
}
|
|
@@ -275269,7 +275281,10 @@ function requireSax () {
|
|
|
275269
275281
|
parser.noscript = !!(strict || parser.opt.noscript);
|
|
275270
275282
|
parser.state = S.BEGIN;
|
|
275271
275283
|
parser.strictEntities = parser.opt.strictEntities;
|
|
275272
|
-
parser.ENTITIES =
|
|
275284
|
+
parser.ENTITIES =
|
|
275285
|
+
parser.strictEntities ?
|
|
275286
|
+
Object.create(sax.XML_ENTITIES)
|
|
275287
|
+
: Object.create(sax.ENTITIES);
|
|
275273
275288
|
parser.attribList = [];
|
|
275274
275289
|
|
|
275275
275290
|
// namespaces form a prototype chain.
|
|
@@ -275295,7 +275310,7 @@ function requireSax () {
|
|
|
275295
275310
|
|
|
275296
275311
|
if (!Object.create) {
|
|
275297
275312
|
Object.create = function (o) {
|
|
275298
|
-
function F
|
|
275313
|
+
function F() {}
|
|
275299
275314
|
F.prototype = o;
|
|
275300
275315
|
var newf = new F();
|
|
275301
275316
|
return newf
|
|
@@ -275310,7 +275325,7 @@ function requireSax () {
|
|
|
275310
275325
|
};
|
|
275311
275326
|
}
|
|
275312
275327
|
|
|
275313
|
-
function checkBufferLength
|
|
275328
|
+
function checkBufferLength(parser) {
|
|
275314
275329
|
var maxAllowed = Math.max(sax.MAX_BUFFER_LENGTH, 10);
|
|
275315
275330
|
var maxActual = 0;
|
|
275316
275331
|
for (var i = 0, l = buffers.length; i < l; i++) {
|
|
@@ -275346,13 +275361,13 @@ function requireSax () {
|
|
|
275346
275361
|
parser.bufferCheckPosition = m + parser.position;
|
|
275347
275362
|
}
|
|
275348
275363
|
|
|
275349
|
-
function clearBuffers
|
|
275364
|
+
function clearBuffers(parser) {
|
|
275350
275365
|
for (var i = 0, l = buffers.length; i < l; i++) {
|
|
275351
275366
|
parser[buffers[i]] = '';
|
|
275352
275367
|
}
|
|
275353
275368
|
}
|
|
275354
275369
|
|
|
275355
|
-
function flushBuffers
|
|
275370
|
+
function flushBuffers(parser) {
|
|
275356
275371
|
closeText(parser);
|
|
275357
275372
|
if (parser.cdata !== '') {
|
|
275358
275373
|
emitNode(parser, 'oncdata', parser.cdata);
|
|
@@ -275365,11 +275380,20 @@ function requireSax () {
|
|
|
275365
275380
|
}
|
|
275366
275381
|
|
|
275367
275382
|
SAXParser.prototype = {
|
|
275368
|
-
end: function () {
|
|
275383
|
+
end: function () {
|
|
275384
|
+
end(this);
|
|
275385
|
+
},
|
|
275369
275386
|
write: write,
|
|
275370
|
-
resume: function () {
|
|
275371
|
-
|
|
275372
|
-
|
|
275387
|
+
resume: function () {
|
|
275388
|
+
this.error = null;
|
|
275389
|
+
return this
|
|
275390
|
+
},
|
|
275391
|
+
close: function () {
|
|
275392
|
+
return this.write(null)
|
|
275393
|
+
},
|
|
275394
|
+
flush: function () {
|
|
275395
|
+
flushBuffers(this);
|
|
275396
|
+
},
|
|
275373
275397
|
};
|
|
275374
275398
|
|
|
275375
275399
|
var Stream;
|
|
@@ -275384,11 +275408,11 @@ function requireSax () {
|
|
|
275384
275408
|
return ev !== 'error' && ev !== 'end'
|
|
275385
275409
|
});
|
|
275386
275410
|
|
|
275387
|
-
function createStream
|
|
275411
|
+
function createStream(strict, opt) {
|
|
275388
275412
|
return new SAXStream(strict, opt)
|
|
275389
275413
|
}
|
|
275390
275414
|
|
|
275391
|
-
function SAXStream
|
|
275415
|
+
function SAXStream(strict, opt) {
|
|
275392
275416
|
if (!(this instanceof SAXStream)) {
|
|
275393
275417
|
return new SAXStream(strict, opt)
|
|
275394
275418
|
}
|
|
@@ -275429,23 +275453,25 @@ function requireSax () {
|
|
|
275429
275453
|
me.on(ev, h);
|
|
275430
275454
|
},
|
|
275431
275455
|
enumerable: true,
|
|
275432
|
-
configurable: false
|
|
275456
|
+
configurable: false,
|
|
275433
275457
|
});
|
|
275434
275458
|
});
|
|
275435
275459
|
}
|
|
275436
275460
|
|
|
275437
275461
|
SAXStream.prototype = Object.create(Stream.prototype, {
|
|
275438
275462
|
constructor: {
|
|
275439
|
-
value: SAXStream
|
|
275440
|
-
}
|
|
275463
|
+
value: SAXStream,
|
|
275464
|
+
},
|
|
275441
275465
|
});
|
|
275442
275466
|
|
|
275443
275467
|
SAXStream.prototype.write = function (data) {
|
|
275444
|
-
if (
|
|
275468
|
+
if (
|
|
275469
|
+
typeof Buffer === 'function' &&
|
|
275445
275470
|
typeof Buffer.isBuffer === 'function' &&
|
|
275446
|
-
Buffer.isBuffer(data)
|
|
275471
|
+
Buffer.isBuffer(data)
|
|
275472
|
+
) {
|
|
275447
275473
|
if (!this._decoder) {
|
|
275448
|
-
var SD = require$$1$
|
|
275474
|
+
var SD = require$$1$4.StringDecoder;
|
|
275449
275475
|
this._decoder = new SD('utf8');
|
|
275450
275476
|
}
|
|
275451
275477
|
data = this._decoder.write(data);
|
|
@@ -275468,7 +275494,10 @@ function requireSax () {
|
|
|
275468
275494
|
var me = this;
|
|
275469
275495
|
if (!me._parser['on' + ev] && streamWraps.indexOf(ev) !== -1) {
|
|
275470
275496
|
me._parser['on' + ev] = function () {
|
|
275471
|
-
var args =
|
|
275497
|
+
var args =
|
|
275498
|
+
arguments.length === 1 ?
|
|
275499
|
+
[arguments[0]]
|
|
275500
|
+
: Array.apply(null, arguments);
|
|
275472
275501
|
args.splice(0, 0, ev);
|
|
275473
275502
|
me.emit.apply(me, args);
|
|
275474
275503
|
};
|
|
@@ -275491,30 +275520,34 @@ function requireSax () {
|
|
|
275491
275520
|
// without a significant breaking change to either this parser, or the
|
|
275492
275521
|
// JavaScript language. Implementation of an emoji-capable xml parser
|
|
275493
275522
|
// is left as an exercise for the reader.
|
|
275494
|
-
var nameStart =
|
|
275523
|
+
var nameStart =
|
|
275524
|
+
/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/;
|
|
275495
275525
|
|
|
275496
|
-
var nameBody =
|
|
275526
|
+
var nameBody =
|
|
275527
|
+
/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/;
|
|
275497
275528
|
|
|
275498
|
-
var entityStart =
|
|
275499
|
-
|
|
275529
|
+
var entityStart =
|
|
275530
|
+
/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/;
|
|
275531
|
+
var entityBody =
|
|
275532
|
+
/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/;
|
|
275500
275533
|
|
|
275501
|
-
function isWhitespace
|
|
275534
|
+
function isWhitespace(c) {
|
|
275502
275535
|
return c === ' ' || c === '\n' || c === '\r' || c === '\t'
|
|
275503
275536
|
}
|
|
275504
275537
|
|
|
275505
|
-
function isQuote
|
|
275506
|
-
return c === '"' || c === '
|
|
275538
|
+
function isQuote(c) {
|
|
275539
|
+
return c === '"' || c === "'"
|
|
275507
275540
|
}
|
|
275508
275541
|
|
|
275509
|
-
function isAttribEnd
|
|
275542
|
+
function isAttribEnd(c) {
|
|
275510
275543
|
return c === '>' || isWhitespace(c)
|
|
275511
275544
|
}
|
|
275512
275545
|
|
|
275513
|
-
function isMatch
|
|
275546
|
+
function isMatch(regex, c) {
|
|
275514
275547
|
return regex.test(c)
|
|
275515
275548
|
}
|
|
275516
275549
|
|
|
275517
|
-
function notMatch
|
|
275550
|
+
function notMatch(regex, c) {
|
|
275518
275551
|
return !isMatch(regex, c)
|
|
275519
275552
|
}
|
|
275520
275553
|
|
|
@@ -275555,271 +275588,271 @@ function requireSax () {
|
|
|
275555
275588
|
CLOSE_TAG: S++, // </a
|
|
275556
275589
|
CLOSE_TAG_SAW_WHITE: S++, // </a >
|
|
275557
275590
|
SCRIPT: S++, // <script> ...
|
|
275558
|
-
SCRIPT_ENDING: S
|
|
275591
|
+
SCRIPT_ENDING: S++, // <script> ... <
|
|
275559
275592
|
};
|
|
275560
275593
|
|
|
275561
275594
|
sax.XML_ENTITIES = {
|
|
275562
|
-
|
|
275563
|
-
|
|
275564
|
-
|
|
275565
|
-
|
|
275566
|
-
|
|
275595
|
+
amp: '&',
|
|
275596
|
+
gt: '>',
|
|
275597
|
+
lt: '<',
|
|
275598
|
+
quot: '"',
|
|
275599
|
+
apos: "'",
|
|
275567
275600
|
};
|
|
275568
275601
|
|
|
275569
275602
|
sax.ENTITIES = {
|
|
275570
|
-
|
|
275571
|
-
|
|
275572
|
-
|
|
275573
|
-
|
|
275574
|
-
|
|
275575
|
-
|
|
275576
|
-
|
|
275577
|
-
|
|
275578
|
-
|
|
275579
|
-
|
|
275580
|
-
|
|
275581
|
-
|
|
275582
|
-
|
|
275583
|
-
|
|
275584
|
-
|
|
275585
|
-
|
|
275586
|
-
|
|
275587
|
-
|
|
275588
|
-
|
|
275589
|
-
|
|
275590
|
-
|
|
275591
|
-
|
|
275592
|
-
|
|
275593
|
-
|
|
275594
|
-
|
|
275595
|
-
|
|
275596
|
-
|
|
275597
|
-
|
|
275598
|
-
|
|
275599
|
-
|
|
275600
|
-
|
|
275601
|
-
|
|
275602
|
-
|
|
275603
|
-
|
|
275604
|
-
|
|
275605
|
-
|
|
275606
|
-
|
|
275607
|
-
|
|
275608
|
-
|
|
275609
|
-
|
|
275610
|
-
|
|
275611
|
-
|
|
275612
|
-
|
|
275613
|
-
|
|
275614
|
-
|
|
275615
|
-
|
|
275616
|
-
|
|
275617
|
-
|
|
275618
|
-
|
|
275619
|
-
|
|
275620
|
-
|
|
275621
|
-
|
|
275622
|
-
|
|
275623
|
-
|
|
275624
|
-
|
|
275625
|
-
|
|
275626
|
-
|
|
275627
|
-
|
|
275628
|
-
|
|
275629
|
-
|
|
275630
|
-
|
|
275631
|
-
|
|
275632
|
-
|
|
275633
|
-
|
|
275634
|
-
|
|
275635
|
-
|
|
275636
|
-
|
|
275637
|
-
|
|
275638
|
-
|
|
275639
|
-
|
|
275640
|
-
|
|
275641
|
-
|
|
275642
|
-
|
|
275643
|
-
|
|
275644
|
-
|
|
275645
|
-
|
|
275646
|
-
|
|
275647
|
-
|
|
275648
|
-
|
|
275649
|
-
|
|
275650
|
-
|
|
275651
|
-
|
|
275652
|
-
|
|
275653
|
-
|
|
275654
|
-
|
|
275655
|
-
|
|
275656
|
-
|
|
275657
|
-
|
|
275658
|
-
|
|
275659
|
-
|
|
275660
|
-
|
|
275661
|
-
|
|
275662
|
-
|
|
275663
|
-
|
|
275664
|
-
|
|
275665
|
-
|
|
275666
|
-
|
|
275667
|
-
|
|
275668
|
-
|
|
275669
|
-
|
|
275670
|
-
|
|
275671
|
-
|
|
275672
|
-
|
|
275673
|
-
|
|
275674
|
-
|
|
275675
|
-
|
|
275676
|
-
|
|
275677
|
-
|
|
275678
|
-
|
|
275679
|
-
|
|
275680
|
-
|
|
275681
|
-
|
|
275682
|
-
|
|
275683
|
-
|
|
275684
|
-
|
|
275685
|
-
|
|
275686
|
-
|
|
275687
|
-
|
|
275688
|
-
|
|
275689
|
-
|
|
275690
|
-
|
|
275691
|
-
|
|
275692
|
-
|
|
275693
|
-
|
|
275694
|
-
|
|
275695
|
-
|
|
275696
|
-
|
|
275697
|
-
|
|
275698
|
-
|
|
275699
|
-
|
|
275700
|
-
|
|
275701
|
-
|
|
275702
|
-
|
|
275703
|
-
|
|
275704
|
-
|
|
275705
|
-
|
|
275706
|
-
|
|
275707
|
-
|
|
275708
|
-
|
|
275709
|
-
|
|
275710
|
-
|
|
275711
|
-
|
|
275712
|
-
|
|
275713
|
-
|
|
275714
|
-
|
|
275715
|
-
|
|
275716
|
-
|
|
275717
|
-
|
|
275718
|
-
|
|
275719
|
-
|
|
275720
|
-
|
|
275721
|
-
|
|
275722
|
-
|
|
275723
|
-
|
|
275724
|
-
|
|
275725
|
-
|
|
275726
|
-
|
|
275727
|
-
|
|
275728
|
-
|
|
275729
|
-
|
|
275730
|
-
|
|
275731
|
-
|
|
275732
|
-
|
|
275733
|
-
|
|
275734
|
-
|
|
275735
|
-
|
|
275736
|
-
|
|
275737
|
-
|
|
275738
|
-
|
|
275739
|
-
|
|
275740
|
-
|
|
275741
|
-
|
|
275742
|
-
|
|
275743
|
-
|
|
275744
|
-
|
|
275745
|
-
|
|
275746
|
-
|
|
275747
|
-
|
|
275748
|
-
|
|
275749
|
-
|
|
275750
|
-
|
|
275751
|
-
|
|
275752
|
-
|
|
275753
|
-
|
|
275754
|
-
|
|
275755
|
-
|
|
275756
|
-
|
|
275757
|
-
|
|
275758
|
-
|
|
275759
|
-
|
|
275760
|
-
|
|
275761
|
-
|
|
275762
|
-
|
|
275763
|
-
|
|
275764
|
-
|
|
275765
|
-
|
|
275766
|
-
|
|
275767
|
-
|
|
275768
|
-
|
|
275769
|
-
|
|
275770
|
-
|
|
275771
|
-
|
|
275772
|
-
|
|
275773
|
-
|
|
275774
|
-
|
|
275775
|
-
|
|
275776
|
-
|
|
275777
|
-
|
|
275778
|
-
|
|
275779
|
-
|
|
275780
|
-
|
|
275781
|
-
|
|
275782
|
-
|
|
275783
|
-
|
|
275784
|
-
|
|
275785
|
-
|
|
275786
|
-
|
|
275787
|
-
|
|
275788
|
-
|
|
275789
|
-
|
|
275790
|
-
|
|
275791
|
-
|
|
275792
|
-
|
|
275793
|
-
|
|
275794
|
-
|
|
275795
|
-
|
|
275796
|
-
|
|
275797
|
-
|
|
275798
|
-
|
|
275799
|
-
|
|
275800
|
-
|
|
275801
|
-
|
|
275802
|
-
|
|
275803
|
-
|
|
275804
|
-
|
|
275805
|
-
|
|
275806
|
-
|
|
275807
|
-
|
|
275808
|
-
|
|
275809
|
-
|
|
275810
|
-
|
|
275811
|
-
|
|
275812
|
-
|
|
275813
|
-
|
|
275814
|
-
|
|
275815
|
-
|
|
275816
|
-
|
|
275817
|
-
|
|
275818
|
-
|
|
275819
|
-
|
|
275820
|
-
|
|
275821
|
-
|
|
275822
|
-
|
|
275603
|
+
amp: '&',
|
|
275604
|
+
gt: '>',
|
|
275605
|
+
lt: '<',
|
|
275606
|
+
quot: '"',
|
|
275607
|
+
apos: "'",
|
|
275608
|
+
AElig: 198,
|
|
275609
|
+
Aacute: 193,
|
|
275610
|
+
Acirc: 194,
|
|
275611
|
+
Agrave: 192,
|
|
275612
|
+
Aring: 197,
|
|
275613
|
+
Atilde: 195,
|
|
275614
|
+
Auml: 196,
|
|
275615
|
+
Ccedil: 199,
|
|
275616
|
+
ETH: 208,
|
|
275617
|
+
Eacute: 201,
|
|
275618
|
+
Ecirc: 202,
|
|
275619
|
+
Egrave: 200,
|
|
275620
|
+
Euml: 203,
|
|
275621
|
+
Iacute: 205,
|
|
275622
|
+
Icirc: 206,
|
|
275623
|
+
Igrave: 204,
|
|
275624
|
+
Iuml: 207,
|
|
275625
|
+
Ntilde: 209,
|
|
275626
|
+
Oacute: 211,
|
|
275627
|
+
Ocirc: 212,
|
|
275628
|
+
Ograve: 210,
|
|
275629
|
+
Oslash: 216,
|
|
275630
|
+
Otilde: 213,
|
|
275631
|
+
Ouml: 214,
|
|
275632
|
+
THORN: 222,
|
|
275633
|
+
Uacute: 218,
|
|
275634
|
+
Ucirc: 219,
|
|
275635
|
+
Ugrave: 217,
|
|
275636
|
+
Uuml: 220,
|
|
275637
|
+
Yacute: 221,
|
|
275638
|
+
aacute: 225,
|
|
275639
|
+
acirc: 226,
|
|
275640
|
+
aelig: 230,
|
|
275641
|
+
agrave: 224,
|
|
275642
|
+
aring: 229,
|
|
275643
|
+
atilde: 227,
|
|
275644
|
+
auml: 228,
|
|
275645
|
+
ccedil: 231,
|
|
275646
|
+
eacute: 233,
|
|
275647
|
+
ecirc: 234,
|
|
275648
|
+
egrave: 232,
|
|
275649
|
+
eth: 240,
|
|
275650
|
+
euml: 235,
|
|
275651
|
+
iacute: 237,
|
|
275652
|
+
icirc: 238,
|
|
275653
|
+
igrave: 236,
|
|
275654
|
+
iuml: 239,
|
|
275655
|
+
ntilde: 241,
|
|
275656
|
+
oacute: 243,
|
|
275657
|
+
ocirc: 244,
|
|
275658
|
+
ograve: 242,
|
|
275659
|
+
oslash: 248,
|
|
275660
|
+
otilde: 245,
|
|
275661
|
+
ouml: 246,
|
|
275662
|
+
szlig: 223,
|
|
275663
|
+
thorn: 254,
|
|
275664
|
+
uacute: 250,
|
|
275665
|
+
ucirc: 251,
|
|
275666
|
+
ugrave: 249,
|
|
275667
|
+
uuml: 252,
|
|
275668
|
+
yacute: 253,
|
|
275669
|
+
yuml: 255,
|
|
275670
|
+
copy: 169,
|
|
275671
|
+
reg: 174,
|
|
275672
|
+
nbsp: 160,
|
|
275673
|
+
iexcl: 161,
|
|
275674
|
+
cent: 162,
|
|
275675
|
+
pound: 163,
|
|
275676
|
+
curren: 164,
|
|
275677
|
+
yen: 165,
|
|
275678
|
+
brvbar: 166,
|
|
275679
|
+
sect: 167,
|
|
275680
|
+
uml: 168,
|
|
275681
|
+
ordf: 170,
|
|
275682
|
+
laquo: 171,
|
|
275683
|
+
not: 172,
|
|
275684
|
+
shy: 173,
|
|
275685
|
+
macr: 175,
|
|
275686
|
+
deg: 176,
|
|
275687
|
+
plusmn: 177,
|
|
275688
|
+
sup1: 185,
|
|
275689
|
+
sup2: 178,
|
|
275690
|
+
sup3: 179,
|
|
275691
|
+
acute: 180,
|
|
275692
|
+
micro: 181,
|
|
275693
|
+
para: 182,
|
|
275694
|
+
middot: 183,
|
|
275695
|
+
cedil: 184,
|
|
275696
|
+
ordm: 186,
|
|
275697
|
+
raquo: 187,
|
|
275698
|
+
frac14: 188,
|
|
275699
|
+
frac12: 189,
|
|
275700
|
+
frac34: 190,
|
|
275701
|
+
iquest: 191,
|
|
275702
|
+
times: 215,
|
|
275703
|
+
divide: 247,
|
|
275704
|
+
OElig: 338,
|
|
275705
|
+
oelig: 339,
|
|
275706
|
+
Scaron: 352,
|
|
275707
|
+
scaron: 353,
|
|
275708
|
+
Yuml: 376,
|
|
275709
|
+
fnof: 402,
|
|
275710
|
+
circ: 710,
|
|
275711
|
+
tilde: 732,
|
|
275712
|
+
Alpha: 913,
|
|
275713
|
+
Beta: 914,
|
|
275714
|
+
Gamma: 915,
|
|
275715
|
+
Delta: 916,
|
|
275716
|
+
Epsilon: 917,
|
|
275717
|
+
Zeta: 918,
|
|
275718
|
+
Eta: 919,
|
|
275719
|
+
Theta: 920,
|
|
275720
|
+
Iota: 921,
|
|
275721
|
+
Kappa: 922,
|
|
275722
|
+
Lambda: 923,
|
|
275723
|
+
Mu: 924,
|
|
275724
|
+
Nu: 925,
|
|
275725
|
+
Xi: 926,
|
|
275726
|
+
Omicron: 927,
|
|
275727
|
+
Pi: 928,
|
|
275728
|
+
Rho: 929,
|
|
275729
|
+
Sigma: 931,
|
|
275730
|
+
Tau: 932,
|
|
275731
|
+
Upsilon: 933,
|
|
275732
|
+
Phi: 934,
|
|
275733
|
+
Chi: 935,
|
|
275734
|
+
Psi: 936,
|
|
275735
|
+
Omega: 937,
|
|
275736
|
+
alpha: 945,
|
|
275737
|
+
beta: 946,
|
|
275738
|
+
gamma: 947,
|
|
275739
|
+
delta: 948,
|
|
275740
|
+
epsilon: 949,
|
|
275741
|
+
zeta: 950,
|
|
275742
|
+
eta: 951,
|
|
275743
|
+
theta: 952,
|
|
275744
|
+
iota: 953,
|
|
275745
|
+
kappa: 954,
|
|
275746
|
+
lambda: 955,
|
|
275747
|
+
mu: 956,
|
|
275748
|
+
nu: 957,
|
|
275749
|
+
xi: 958,
|
|
275750
|
+
omicron: 959,
|
|
275751
|
+
pi: 960,
|
|
275752
|
+
rho: 961,
|
|
275753
|
+
sigmaf: 962,
|
|
275754
|
+
sigma: 963,
|
|
275755
|
+
tau: 964,
|
|
275756
|
+
upsilon: 965,
|
|
275757
|
+
phi: 966,
|
|
275758
|
+
chi: 967,
|
|
275759
|
+
psi: 968,
|
|
275760
|
+
omega: 969,
|
|
275761
|
+
thetasym: 977,
|
|
275762
|
+
upsih: 978,
|
|
275763
|
+
piv: 982,
|
|
275764
|
+
ensp: 8194,
|
|
275765
|
+
emsp: 8195,
|
|
275766
|
+
thinsp: 8201,
|
|
275767
|
+
zwnj: 8204,
|
|
275768
|
+
zwj: 8205,
|
|
275769
|
+
lrm: 8206,
|
|
275770
|
+
rlm: 8207,
|
|
275771
|
+
ndash: 8211,
|
|
275772
|
+
mdash: 8212,
|
|
275773
|
+
lsquo: 8216,
|
|
275774
|
+
rsquo: 8217,
|
|
275775
|
+
sbquo: 8218,
|
|
275776
|
+
ldquo: 8220,
|
|
275777
|
+
rdquo: 8221,
|
|
275778
|
+
bdquo: 8222,
|
|
275779
|
+
dagger: 8224,
|
|
275780
|
+
Dagger: 8225,
|
|
275781
|
+
bull: 8226,
|
|
275782
|
+
hellip: 8230,
|
|
275783
|
+
permil: 8240,
|
|
275784
|
+
prime: 8242,
|
|
275785
|
+
Prime: 8243,
|
|
275786
|
+
lsaquo: 8249,
|
|
275787
|
+
rsaquo: 8250,
|
|
275788
|
+
oline: 8254,
|
|
275789
|
+
frasl: 8260,
|
|
275790
|
+
euro: 8364,
|
|
275791
|
+
image: 8465,
|
|
275792
|
+
weierp: 8472,
|
|
275793
|
+
real: 8476,
|
|
275794
|
+
trade: 8482,
|
|
275795
|
+
alefsym: 8501,
|
|
275796
|
+
larr: 8592,
|
|
275797
|
+
uarr: 8593,
|
|
275798
|
+
rarr: 8594,
|
|
275799
|
+
darr: 8595,
|
|
275800
|
+
harr: 8596,
|
|
275801
|
+
crarr: 8629,
|
|
275802
|
+
lArr: 8656,
|
|
275803
|
+
uArr: 8657,
|
|
275804
|
+
rArr: 8658,
|
|
275805
|
+
dArr: 8659,
|
|
275806
|
+
hArr: 8660,
|
|
275807
|
+
forall: 8704,
|
|
275808
|
+
part: 8706,
|
|
275809
|
+
exist: 8707,
|
|
275810
|
+
empty: 8709,
|
|
275811
|
+
nabla: 8711,
|
|
275812
|
+
isin: 8712,
|
|
275813
|
+
notin: 8713,
|
|
275814
|
+
ni: 8715,
|
|
275815
|
+
prod: 8719,
|
|
275816
|
+
sum: 8721,
|
|
275817
|
+
minus: 8722,
|
|
275818
|
+
lowast: 8727,
|
|
275819
|
+
radic: 8730,
|
|
275820
|
+
prop: 8733,
|
|
275821
|
+
infin: 8734,
|
|
275822
|
+
ang: 8736,
|
|
275823
|
+
and: 8743,
|
|
275824
|
+
or: 8744,
|
|
275825
|
+
cap: 8745,
|
|
275826
|
+
cup: 8746,
|
|
275827
|
+
int: 8747,
|
|
275828
|
+
there4: 8756,
|
|
275829
|
+
sim: 8764,
|
|
275830
|
+
cong: 8773,
|
|
275831
|
+
asymp: 8776,
|
|
275832
|
+
ne: 8800,
|
|
275833
|
+
equiv: 8801,
|
|
275834
|
+
le: 8804,
|
|
275835
|
+
ge: 8805,
|
|
275836
|
+
sub: 8834,
|
|
275837
|
+
sup: 8835,
|
|
275838
|
+
nsub: 8836,
|
|
275839
|
+
sube: 8838,
|
|
275840
|
+
supe: 8839,
|
|
275841
|
+
oplus: 8853,
|
|
275842
|
+
otimes: 8855,
|
|
275843
|
+
perp: 8869,
|
|
275844
|
+
sdot: 8901,
|
|
275845
|
+
lceil: 8968,
|
|
275846
|
+
rceil: 8969,
|
|
275847
|
+
lfloor: 8970,
|
|
275848
|
+
rfloor: 8971,
|
|
275849
|
+
lang: 9001,
|
|
275850
|
+
rang: 9002,
|
|
275851
|
+
loz: 9674,
|
|
275852
|
+
spades: 9824,
|
|
275853
|
+
clubs: 9827,
|
|
275854
|
+
hearts: 9829,
|
|
275855
|
+
diams: 9830,
|
|
275823
275856
|
};
|
|
275824
275857
|
|
|
275825
275858
|
Object.keys(sax.ENTITIES).forEach(function (key) {
|
|
@@ -275835,33 +275868,37 @@ function requireSax () {
|
|
|
275835
275868
|
// shorthand
|
|
275836
275869
|
S = sax.STATE;
|
|
275837
275870
|
|
|
275838
|
-
function emit
|
|
275871
|
+
function emit(parser, event, data) {
|
|
275839
275872
|
parser[event] && parser[event](data);
|
|
275840
275873
|
}
|
|
275841
275874
|
|
|
275842
|
-
function emitNode
|
|
275875
|
+
function emitNode(parser, nodeType, data) {
|
|
275843
275876
|
if (parser.textNode) closeText(parser);
|
|
275844
275877
|
emit(parser, nodeType, data);
|
|
275845
275878
|
}
|
|
275846
275879
|
|
|
275847
|
-
function closeText
|
|
275880
|
+
function closeText(parser) {
|
|
275848
275881
|
parser.textNode = textopts(parser.opt, parser.textNode);
|
|
275849
275882
|
if (parser.textNode) emit(parser, 'ontext', parser.textNode);
|
|
275850
275883
|
parser.textNode = '';
|
|
275851
275884
|
}
|
|
275852
275885
|
|
|
275853
|
-
function textopts
|
|
275886
|
+
function textopts(opt, text) {
|
|
275854
275887
|
if (opt.trim) text = text.trim();
|
|
275855
275888
|
if (opt.normalize) text = text.replace(/\s+/g, ' ');
|
|
275856
275889
|
return text
|
|
275857
275890
|
}
|
|
275858
275891
|
|
|
275859
|
-
function error
|
|
275892
|
+
function error(parser, er) {
|
|
275860
275893
|
closeText(parser);
|
|
275861
275894
|
if (parser.trackPosition) {
|
|
275862
|
-
er +=
|
|
275863
|
-
'\
|
|
275864
|
-
|
|
275895
|
+
er +=
|
|
275896
|
+
'\nLine: ' +
|
|
275897
|
+
parser.line +
|
|
275898
|
+
'\nColumn: ' +
|
|
275899
|
+
parser.column +
|
|
275900
|
+
'\nChar: ' +
|
|
275901
|
+
parser.c;
|
|
275865
275902
|
}
|
|
275866
275903
|
er = new Error(er);
|
|
275867
275904
|
parser.error = er;
|
|
@@ -275869,11 +275906,14 @@ function requireSax () {
|
|
|
275869
275906
|
return parser
|
|
275870
275907
|
}
|
|
275871
275908
|
|
|
275872
|
-
function end
|
|
275873
|
-
if (parser.sawRoot && !parser.closedRoot)
|
|
275874
|
-
|
|
275875
|
-
|
|
275876
|
-
|
|
275909
|
+
function end(parser) {
|
|
275910
|
+
if (parser.sawRoot && !parser.closedRoot)
|
|
275911
|
+
strictFail(parser, 'Unclosed root tag');
|
|
275912
|
+
if (
|
|
275913
|
+
parser.state !== S.BEGIN &&
|
|
275914
|
+
parser.state !== S.BEGIN_WHITESPACE &&
|
|
275915
|
+
parser.state !== S.TEXT
|
|
275916
|
+
) {
|
|
275877
275917
|
error(parser, 'Unexpected end');
|
|
275878
275918
|
}
|
|
275879
275919
|
closeText(parser);
|
|
@@ -275884,7 +275924,7 @@ function requireSax () {
|
|
|
275884
275924
|
return parser
|
|
275885
275925
|
}
|
|
275886
275926
|
|
|
275887
|
-
function strictFail
|
|
275927
|
+
function strictFail(parser, message) {
|
|
275888
275928
|
if (typeof parser !== 'object' || !(parser instanceof SAXParser)) {
|
|
275889
275929
|
throw new Error('bad call to strictFail')
|
|
275890
275930
|
}
|
|
@@ -275893,10 +275933,10 @@ function requireSax () {
|
|
|
275893
275933
|
}
|
|
275894
275934
|
}
|
|
275895
275935
|
|
|
275896
|
-
function newTag
|
|
275936
|
+
function newTag(parser) {
|
|
275897
275937
|
if (!parser.strict) parser.tagName = parser.tagName[parser.looseCase]();
|
|
275898
275938
|
var parent = parser.tags[parser.tags.length - 1] || parser;
|
|
275899
|
-
var tag = parser.tag = { name: parser.tagName, attributes: {} };
|
|
275939
|
+
var tag = (parser.tag = { name: parser.tagName, attributes: {} });
|
|
275900
275940
|
|
|
275901
275941
|
// will be overridden if tag contails an xmlns="foo" or xmlns:foo="bar"
|
|
275902
275942
|
if (parser.opt.xmlns) {
|
|
@@ -275906,9 +275946,9 @@ function requireSax () {
|
|
|
275906
275946
|
emitNode(parser, 'onopentagstart', tag);
|
|
275907
275947
|
}
|
|
275908
275948
|
|
|
275909
|
-
function qname
|
|
275949
|
+
function qname(name, attribute) {
|
|
275910
275950
|
var i = name.indexOf(':');
|
|
275911
|
-
var qualName = i < 0 ? [
|
|
275951
|
+
var qualName = i < 0 ? ['', name] : name.split(':');
|
|
275912
275952
|
var prefix = qualName[0];
|
|
275913
275953
|
var local = qualName[1];
|
|
275914
275954
|
|
|
@@ -275921,13 +275961,15 @@ function requireSax () {
|
|
|
275921
275961
|
return { prefix: prefix, local: local }
|
|
275922
275962
|
}
|
|
275923
275963
|
|
|
275924
|
-
function attrib
|
|
275964
|
+
function attrib(parser) {
|
|
275925
275965
|
if (!parser.strict) {
|
|
275926
275966
|
parser.attribName = parser.attribName[parser.looseCase]();
|
|
275927
275967
|
}
|
|
275928
275968
|
|
|
275929
|
-
if (
|
|
275930
|
-
parser.
|
|
275969
|
+
if (
|
|
275970
|
+
parser.attribList.indexOf(parser.attribName) !== -1 ||
|
|
275971
|
+
parser.tag.attributes.hasOwnProperty(parser.attribName)
|
|
275972
|
+
) {
|
|
275931
275973
|
parser.attribName = parser.attribValue = '';
|
|
275932
275974
|
return
|
|
275933
275975
|
}
|
|
@@ -275940,13 +275982,26 @@ function requireSax () {
|
|
|
275940
275982
|
if (prefix === 'xmlns') {
|
|
275941
275983
|
// namespace binding attribute. push the binding into scope
|
|
275942
275984
|
if (local === 'xml' && parser.attribValue !== XML_NAMESPACE) {
|
|
275943
|
-
strictFail(
|
|
275944
|
-
|
|
275945
|
-
'
|
|
275946
|
-
|
|
275947
|
-
|
|
275948
|
-
|
|
275949
|
-
|
|
275985
|
+
strictFail(
|
|
275986
|
+
parser,
|
|
275987
|
+
'xml: prefix must be bound to ' +
|
|
275988
|
+
XML_NAMESPACE +
|
|
275989
|
+
'\n' +
|
|
275990
|
+
'Actual: ' +
|
|
275991
|
+
parser.attribValue
|
|
275992
|
+
);
|
|
275993
|
+
} else if (
|
|
275994
|
+
local === 'xmlns' &&
|
|
275995
|
+
parser.attribValue !== XMLNS_NAMESPACE
|
|
275996
|
+
) {
|
|
275997
|
+
strictFail(
|
|
275998
|
+
parser,
|
|
275999
|
+
'xmlns: prefix must be bound to ' +
|
|
276000
|
+
XMLNS_NAMESPACE +
|
|
276001
|
+
'\n' +
|
|
276002
|
+
'Actual: ' +
|
|
276003
|
+
parser.attribValue
|
|
276004
|
+
);
|
|
275950
276005
|
} else {
|
|
275951
276006
|
var tag = parser.tag;
|
|
275952
276007
|
var parent = parser.tags[parser.tags.length - 1] || parser;
|
|
@@ -275966,14 +276021,14 @@ function requireSax () {
|
|
|
275966
276021
|
parser.tag.attributes[parser.attribName] = parser.attribValue;
|
|
275967
276022
|
emitNode(parser, 'onattribute', {
|
|
275968
276023
|
name: parser.attribName,
|
|
275969
|
-
value: parser.attribValue
|
|
276024
|
+
value: parser.attribValue,
|
|
275970
276025
|
});
|
|
275971
276026
|
}
|
|
275972
276027
|
|
|
275973
276028
|
parser.attribName = parser.attribValue = '';
|
|
275974
276029
|
}
|
|
275975
276030
|
|
|
275976
|
-
function openTag
|
|
276031
|
+
function openTag(parser, selfClosing) {
|
|
275977
276032
|
if (parser.opt.xmlns) {
|
|
275978
276033
|
// emit namespace binding events
|
|
275979
276034
|
var tag = parser.tag;
|
|
@@ -275985,8 +276040,10 @@ function requireSax () {
|
|
|
275985
276040
|
tag.uri = tag.ns[qn.prefix] || '';
|
|
275986
276041
|
|
|
275987
276042
|
if (tag.prefix && !tag.uri) {
|
|
275988
|
-
strictFail(
|
|
275989
|
-
|
|
276043
|
+
strictFail(
|
|
276044
|
+
parser,
|
|
276045
|
+
'Unbound namespace prefix: ' + JSON.stringify(parser.tagName)
|
|
276046
|
+
);
|
|
275990
276047
|
tag.uri = qn.prefix;
|
|
275991
276048
|
}
|
|
275992
276049
|
|
|
@@ -275995,7 +276052,7 @@ function requireSax () {
|
|
|
275995
276052
|
Object.keys(tag.ns).forEach(function (p) {
|
|
275996
276053
|
emitNode(parser, 'onopennamespace', {
|
|
275997
276054
|
prefix: p,
|
|
275998
|
-
uri: tag.ns[p]
|
|
276055
|
+
uri: tag.ns[p],
|
|
275999
276056
|
});
|
|
276000
276057
|
});
|
|
276001
276058
|
}
|
|
@@ -276010,20 +276067,22 @@ function requireSax () {
|
|
|
276010
276067
|
var qualName = qname(name, true);
|
|
276011
276068
|
var prefix = qualName.prefix;
|
|
276012
276069
|
var local = qualName.local;
|
|
276013
|
-
var uri = prefix === '' ? '' :
|
|
276070
|
+
var uri = prefix === '' ? '' : tag.ns[prefix] || '';
|
|
276014
276071
|
var a = {
|
|
276015
276072
|
name: name,
|
|
276016
276073
|
value: value,
|
|
276017
276074
|
prefix: prefix,
|
|
276018
276075
|
local: local,
|
|
276019
|
-
uri: uri
|
|
276076
|
+
uri: uri,
|
|
276020
276077
|
};
|
|
276021
276078
|
|
|
276022
276079
|
// if there's any attributes with an undefined namespace,
|
|
276023
276080
|
// then fail on them now.
|
|
276024
276081
|
if (prefix && prefix !== 'xmlns' && !uri) {
|
|
276025
|
-
strictFail(
|
|
276026
|
-
|
|
276082
|
+
strictFail(
|
|
276083
|
+
parser,
|
|
276084
|
+
'Unbound namespace prefix: ' + JSON.stringify(prefix)
|
|
276085
|
+
);
|
|
276027
276086
|
a.uri = prefix;
|
|
276028
276087
|
}
|
|
276029
276088
|
parser.tag.attributes[name] = a;
|
|
@@ -276052,7 +276111,7 @@ function requireSax () {
|
|
|
276052
276111
|
parser.attribList.length = 0;
|
|
276053
276112
|
}
|
|
276054
276113
|
|
|
276055
|
-
function closeTag
|
|
276114
|
+
function closeTag(parser) {
|
|
276056
276115
|
if (!parser.tagName) {
|
|
276057
276116
|
strictFail(parser, 'Weird empty close tag.');
|
|
276058
276117
|
parser.textNode += '</>';
|
|
@@ -276099,7 +276158,7 @@ function requireSax () {
|
|
|
276099
276158
|
parser.tagName = tagName;
|
|
276100
276159
|
var s = parser.tags.length;
|
|
276101
276160
|
while (s-- > t) {
|
|
276102
|
-
var tag = parser.tag = parser.tags.pop();
|
|
276161
|
+
var tag = (parser.tag = parser.tags.pop());
|
|
276103
276162
|
parser.tagName = parser.tag.name;
|
|
276104
276163
|
emitNode(parser, 'onclosetag', parser.tagName);
|
|
276105
276164
|
|
|
@@ -276123,7 +276182,7 @@ function requireSax () {
|
|
|
276123
276182
|
parser.state = S.TEXT;
|
|
276124
276183
|
}
|
|
276125
276184
|
|
|
276126
|
-
function parseEntity
|
|
276185
|
+
function parseEntity(parser) {
|
|
276127
276186
|
var entity = parser.entity;
|
|
276128
276187
|
var entityLC = entity.toLowerCase();
|
|
276129
276188
|
var num;
|
|
@@ -276148,7 +276207,12 @@ function requireSax () {
|
|
|
276148
276207
|
}
|
|
276149
276208
|
}
|
|
276150
276209
|
entity = entity.replace(/^0+/, '');
|
|
276151
|
-
if (
|
|
276210
|
+
if (
|
|
276211
|
+
isNaN(num) ||
|
|
276212
|
+
numStr.toLowerCase() !== entity ||
|
|
276213
|
+
num < 0 ||
|
|
276214
|
+
num > 0x10ffff
|
|
276215
|
+
) {
|
|
276152
276216
|
strictFail(parser, 'Invalid character entity');
|
|
276153
276217
|
return '&' + parser.entity + ';'
|
|
276154
276218
|
}
|
|
@@ -276156,7 +276220,7 @@ function requireSax () {
|
|
|
276156
276220
|
return String.fromCodePoint(num)
|
|
276157
276221
|
}
|
|
276158
276222
|
|
|
276159
|
-
function beginWhiteSpace
|
|
276223
|
+
function beginWhiteSpace(parser, c) {
|
|
276160
276224
|
if (c === '<') {
|
|
276161
276225
|
parser.state = S.OPEN_WAKA;
|
|
276162
276226
|
parser.startTagPosition = parser.position;
|
|
@@ -276169,7 +276233,7 @@ function requireSax () {
|
|
|
276169
276233
|
}
|
|
276170
276234
|
}
|
|
276171
276235
|
|
|
276172
|
-
function charAt
|
|
276236
|
+
function charAt(chunk, i) {
|
|
276173
276237
|
var result = '';
|
|
276174
276238
|
if (i < chunk.length) {
|
|
276175
276239
|
result = chunk.charAt(i);
|
|
@@ -276177,14 +276241,16 @@ function requireSax () {
|
|
|
276177
276241
|
return result
|
|
276178
276242
|
}
|
|
276179
276243
|
|
|
276180
|
-
function write
|
|
276244
|
+
function write(chunk) {
|
|
276181
276245
|
var parser = this;
|
|
276182
276246
|
if (this.error) {
|
|
276183
276247
|
throw this.error
|
|
276184
276248
|
}
|
|
276185
276249
|
if (parser.closed) {
|
|
276186
|
-
return error(
|
|
276187
|
-
|
|
276250
|
+
return error(
|
|
276251
|
+
parser,
|
|
276252
|
+
'Cannot write after close. Assign an onready handler.'
|
|
276253
|
+
)
|
|
276188
276254
|
}
|
|
276189
276255
|
if (chunk === null) {
|
|
276190
276256
|
return end(parser)
|
|
@@ -276242,11 +276308,17 @@ function requireSax () {
|
|
|
276242
276308
|
}
|
|
276243
276309
|
parser.textNode += chunk.substring(starti, i - 1);
|
|
276244
276310
|
}
|
|
276245
|
-
if (
|
|
276311
|
+
if (
|
|
276312
|
+
c === '<' &&
|
|
276313
|
+
!(parser.sawRoot && parser.closedRoot && !parser.strict)
|
|
276314
|
+
) {
|
|
276246
276315
|
parser.state = S.OPEN_WAKA;
|
|
276247
276316
|
parser.startTagPosition = parser.position;
|
|
276248
276317
|
} else {
|
|
276249
|
-
if (
|
|
276318
|
+
if (
|
|
276319
|
+
!isWhitespace(c) &&
|
|
276320
|
+
(!parser.sawRoot || parser.closedRoot)
|
|
276321
|
+
) {
|
|
276250
276322
|
strictFail(parser, 'Text data outside of root node.');
|
|
276251
276323
|
}
|
|
276252
276324
|
if (c === '&') {
|
|
@@ -276306,10 +276378,14 @@ function requireSax () {
|
|
|
276306
276378
|
parser.state = S.COMMENT;
|
|
276307
276379
|
parser.comment = '';
|
|
276308
276380
|
parser.sgmlDecl = '';
|
|
276309
|
-
continue
|
|
276381
|
+
continue
|
|
276310
276382
|
}
|
|
276311
276383
|
|
|
276312
|
-
if (
|
|
276384
|
+
if (
|
|
276385
|
+
parser.doctype &&
|
|
276386
|
+
parser.doctype !== true &&
|
|
276387
|
+
parser.sgmlDecl
|
|
276388
|
+
) {
|
|
276313
276389
|
parser.state = S.DOCTYPE_DTD;
|
|
276314
276390
|
parser.doctype += '<!' + parser.sgmlDecl + c;
|
|
276315
276391
|
parser.sgmlDecl = '';
|
|
@@ -276321,8 +276397,10 @@ function requireSax () {
|
|
|
276321
276397
|
} else if ((parser.sgmlDecl + c).toUpperCase() === DOCTYPE) {
|
|
276322
276398
|
parser.state = S.DOCTYPE;
|
|
276323
276399
|
if (parser.doctype || parser.sawRoot) {
|
|
276324
|
-
strictFail(
|
|
276325
|
-
|
|
276400
|
+
strictFail(
|
|
276401
|
+
parser,
|
|
276402
|
+
'Inappropriately located doctype declaration'
|
|
276403
|
+
);
|
|
276326
276404
|
}
|
|
276327
276405
|
parser.doctype = '';
|
|
276328
276406
|
parser.sgmlDecl = '';
|
|
@@ -276431,10 +276509,22 @@ function requireSax () {
|
|
|
276431
276509
|
continue
|
|
276432
276510
|
|
|
276433
276511
|
case S.CDATA:
|
|
276512
|
+
var starti = i - 1;
|
|
276513
|
+
while (c && c !== ']') {
|
|
276514
|
+
c = charAt(chunk, i++);
|
|
276515
|
+
if (c && parser.trackPosition) {
|
|
276516
|
+
parser.position++;
|
|
276517
|
+
if (c === '\n') {
|
|
276518
|
+
parser.line++;
|
|
276519
|
+
parser.column = 0;
|
|
276520
|
+
} else {
|
|
276521
|
+
parser.column++;
|
|
276522
|
+
}
|
|
276523
|
+
}
|
|
276524
|
+
}
|
|
276525
|
+
parser.cdata += chunk.substring(starti, i - 1);
|
|
276434
276526
|
if (c === ']') {
|
|
276435
276527
|
parser.state = S.CDATA_ENDING;
|
|
276436
|
-
} else {
|
|
276437
|
-
parser.cdata += c;
|
|
276438
276528
|
}
|
|
276439
276529
|
continue
|
|
276440
276530
|
|
|
@@ -276487,7 +276577,7 @@ function requireSax () {
|
|
|
276487
276577
|
if (c === '>') {
|
|
276488
276578
|
emitNode(parser, 'onprocessinginstruction', {
|
|
276489
276579
|
name: parser.procInstName,
|
|
276490
|
-
body: parser.procInstBody
|
|
276580
|
+
body: parser.procInstBody,
|
|
276491
276581
|
});
|
|
276492
276582
|
parser.procInstName = parser.procInstBody = '';
|
|
276493
276583
|
parser.state = S.TEXT;
|
|
@@ -276520,7 +276610,10 @@ function requireSax () {
|
|
|
276520
276610
|
openTag(parser, true);
|
|
276521
276611
|
closeTag(parser);
|
|
276522
276612
|
} else {
|
|
276523
|
-
strictFail(
|
|
276613
|
+
strictFail(
|
|
276614
|
+
parser,
|
|
276615
|
+
'Forward-slash in opening tag not followed by >'
|
|
276616
|
+
);
|
|
276524
276617
|
parser.state = S.ATTRIB;
|
|
276525
276618
|
}
|
|
276526
276619
|
continue
|
|
@@ -276570,7 +276663,7 @@ function requireSax () {
|
|
|
276570
276663
|
parser.attribValue = '';
|
|
276571
276664
|
emitNode(parser, 'onattribute', {
|
|
276572
276665
|
name: parser.attribName,
|
|
276573
|
-
value: ''
|
|
276666
|
+
value: '',
|
|
276574
276667
|
});
|
|
276575
276668
|
parser.attribName = '';
|
|
276576
276669
|
if (c === '>') {
|
|
@@ -276713,7 +276806,10 @@ function requireSax () {
|
|
|
276713
276806
|
|
|
276714
276807
|
if (c === ';') {
|
|
276715
276808
|
var parsedEntity = parseEntity(parser);
|
|
276716
|
-
if (
|
|
276809
|
+
if (
|
|
276810
|
+
parser.opt.unparsedEntities &&
|
|
276811
|
+
!Object.values(sax.XML_ENTITIES).includes(parsedEntity)
|
|
276812
|
+
) {
|
|
276717
276813
|
parser.entity = '';
|
|
276718
276814
|
parser.state = returnState;
|
|
276719
276815
|
parser.write(parsedEntity);
|
|
@@ -276722,7 +276818,9 @@ function requireSax () {
|
|
|
276722
276818
|
parser.entity = '';
|
|
276723
276819
|
parser.state = returnState;
|
|
276724
276820
|
}
|
|
276725
|
-
} else if (
|
|
276821
|
+
} else if (
|
|
276822
|
+
isMatch(parser.entity.length ? entityBody : entityStart, c)
|
|
276823
|
+
) {
|
|
276726
276824
|
parser.entity += c;
|
|
276727
276825
|
} else {
|
|
276728
276826
|
strictFail(parser, 'Invalid character in entity name');
|
|
@@ -276748,7 +276846,7 @@ function requireSax () {
|
|
|
276748
276846
|
/*! http://mths.be/fromcodepoint v0.1.0 by @mathias */
|
|
276749
276847
|
/* istanbul ignore next */
|
|
276750
276848
|
if (!String.fromCodePoint) {
|
|
276751
|
-
|
|
276849
|
+
(function () {
|
|
276752
276850
|
var stringFromCharCode = String.fromCharCode;
|
|
276753
276851
|
var floor = Math.floor;
|
|
276754
276852
|
var fromCodePoint = function () {
|
|
@@ -276767,18 +276865,20 @@ function requireSax () {
|
|
|
276767
276865
|
if (
|
|
276768
276866
|
!isFinite(codePoint) || // `NaN`, `+Infinity`, or `-Infinity`
|
|
276769
276867
|
codePoint < 0 || // not a valid Unicode code point
|
|
276770
|
-
codePoint >
|
|
276868
|
+
codePoint > 0x10ffff || // not a valid Unicode code point
|
|
276771
276869
|
floor(codePoint) !== codePoint // not an integer
|
|
276772
276870
|
) {
|
|
276773
276871
|
throw RangeError('Invalid code point: ' + codePoint)
|
|
276774
276872
|
}
|
|
276775
|
-
if (codePoint <=
|
|
276873
|
+
if (codePoint <= 0xffff) {
|
|
276874
|
+
// BMP code point
|
|
276776
276875
|
codeUnits.push(codePoint);
|
|
276777
|
-
} else {
|
|
276876
|
+
} else {
|
|
276877
|
+
// Astral code point; split in surrogate halves
|
|
276778
276878
|
// http://mathiasbynens.be/notes/javascript-encoding#surrogate-formulae
|
|
276779
276879
|
codePoint -= 0x10000;
|
|
276780
|
-
highSurrogate = (codePoint >> 10) +
|
|
276781
|
-
lowSurrogate = (codePoint % 0x400) +
|
|
276880
|
+
highSurrogate = (codePoint >> 10) + 0xd800;
|
|
276881
|
+
lowSurrogate = (codePoint % 0x400) + 0xdc00;
|
|
276782
276882
|
codeUnits.push(highSurrogate, lowSurrogate);
|
|
276783
276883
|
}
|
|
276784
276884
|
if (index + 1 === length || codeUnits.length > MAX_SIZE) {
|
|
@@ -276793,12 +276893,12 @@ function requireSax () {
|
|
|
276793
276893
|
Object.defineProperty(String, 'fromCodePoint', {
|
|
276794
276894
|
value: fromCodePoint,
|
|
276795
276895
|
configurable: true,
|
|
276796
|
-
writable: true
|
|
276896
|
+
writable: true,
|
|
276797
276897
|
});
|
|
276798
276898
|
} else {
|
|
276799
276899
|
String.fromCodePoint = fromCodePoint;
|
|
276800
276900
|
}
|
|
276801
|
-
}()
|
|
276901
|
+
})();
|
|
276802
276902
|
}
|
|
276803
276903
|
})(exports$1);
|
|
276804
276904
|
} (sax));
|
|
@@ -278663,885 +278763,6 @@ function requireMediaTyper () {
|
|
|
278663
278763
|
return mediaTyper;
|
|
278664
278764
|
}
|
|
278665
278765
|
|
|
278666
|
-
var src = {exports: {}};
|
|
278667
|
-
|
|
278668
|
-
var browser = {exports: {}};
|
|
278669
|
-
|
|
278670
|
-
var common;
|
|
278671
|
-
var hasRequiredCommon;
|
|
278672
|
-
|
|
278673
|
-
function requireCommon () {
|
|
278674
|
-
if (hasRequiredCommon) return common;
|
|
278675
|
-
hasRequiredCommon = 1;
|
|
278676
|
-
/**
|
|
278677
|
-
* This is the common logic for both the Node.js and web browser
|
|
278678
|
-
* implementations of `debug()`.
|
|
278679
|
-
*/
|
|
278680
|
-
|
|
278681
|
-
function setup(env) {
|
|
278682
|
-
createDebug.debug = createDebug;
|
|
278683
|
-
createDebug.default = createDebug;
|
|
278684
|
-
createDebug.coerce = coerce;
|
|
278685
|
-
createDebug.disable = disable;
|
|
278686
|
-
createDebug.enable = enable;
|
|
278687
|
-
createDebug.enabled = enabled;
|
|
278688
|
-
createDebug.humanize = requireMs();
|
|
278689
|
-
createDebug.destroy = destroy;
|
|
278690
|
-
|
|
278691
|
-
Object.keys(env).forEach(key => {
|
|
278692
|
-
createDebug[key] = env[key];
|
|
278693
|
-
});
|
|
278694
|
-
|
|
278695
|
-
/**
|
|
278696
|
-
* The currently active debug mode names, and names to skip.
|
|
278697
|
-
*/
|
|
278698
|
-
|
|
278699
|
-
createDebug.names = [];
|
|
278700
|
-
createDebug.skips = [];
|
|
278701
|
-
|
|
278702
|
-
/**
|
|
278703
|
-
* Map of special "%n" handling functions, for the debug "format" argument.
|
|
278704
|
-
*
|
|
278705
|
-
* Valid key names are a single, lower or upper-case letter, i.e. "n" and "N".
|
|
278706
|
-
*/
|
|
278707
|
-
createDebug.formatters = {};
|
|
278708
|
-
|
|
278709
|
-
/**
|
|
278710
|
-
* Selects a color for a debug namespace
|
|
278711
|
-
* @param {String} namespace The namespace string for the debug instance to be colored
|
|
278712
|
-
* @return {Number|String} An ANSI color code for the given namespace
|
|
278713
|
-
* @api private
|
|
278714
|
-
*/
|
|
278715
|
-
function selectColor(namespace) {
|
|
278716
|
-
let hash = 0;
|
|
278717
|
-
|
|
278718
|
-
for (let i = 0; i < namespace.length; i++) {
|
|
278719
|
-
hash = ((hash << 5) - hash) + namespace.charCodeAt(i);
|
|
278720
|
-
hash |= 0; // Convert to 32bit integer
|
|
278721
|
-
}
|
|
278722
|
-
|
|
278723
|
-
return createDebug.colors[Math.abs(hash) % createDebug.colors.length];
|
|
278724
|
-
}
|
|
278725
|
-
createDebug.selectColor = selectColor;
|
|
278726
|
-
|
|
278727
|
-
/**
|
|
278728
|
-
* Create a debugger with the given `namespace`.
|
|
278729
|
-
*
|
|
278730
|
-
* @param {String} namespace
|
|
278731
|
-
* @return {Function}
|
|
278732
|
-
* @api public
|
|
278733
|
-
*/
|
|
278734
|
-
function createDebug(namespace) {
|
|
278735
|
-
let prevTime;
|
|
278736
|
-
let enableOverride = null;
|
|
278737
|
-
let namespacesCache;
|
|
278738
|
-
let enabledCache;
|
|
278739
|
-
|
|
278740
|
-
function debug(...args) {
|
|
278741
|
-
// Disabled?
|
|
278742
|
-
if (!debug.enabled) {
|
|
278743
|
-
return;
|
|
278744
|
-
}
|
|
278745
|
-
|
|
278746
|
-
const self = debug;
|
|
278747
|
-
|
|
278748
|
-
// Set `diff` timestamp
|
|
278749
|
-
const curr = Number(new Date());
|
|
278750
|
-
const ms = curr - (prevTime || curr);
|
|
278751
|
-
self.diff = ms;
|
|
278752
|
-
self.prev = prevTime;
|
|
278753
|
-
self.curr = curr;
|
|
278754
|
-
prevTime = curr;
|
|
278755
|
-
|
|
278756
|
-
args[0] = createDebug.coerce(args[0]);
|
|
278757
|
-
|
|
278758
|
-
if (typeof args[0] !== 'string') {
|
|
278759
|
-
// Anything else let's inspect with %O
|
|
278760
|
-
args.unshift('%O');
|
|
278761
|
-
}
|
|
278762
|
-
|
|
278763
|
-
// Apply any `formatters` transformations
|
|
278764
|
-
let index = 0;
|
|
278765
|
-
args[0] = args[0].replace(/%([a-zA-Z%])/g, (match, format) => {
|
|
278766
|
-
// If we encounter an escaped % then don't increase the array index
|
|
278767
|
-
if (match === '%%') {
|
|
278768
|
-
return '%';
|
|
278769
|
-
}
|
|
278770
|
-
index++;
|
|
278771
|
-
const formatter = createDebug.formatters[format];
|
|
278772
|
-
if (typeof formatter === 'function') {
|
|
278773
|
-
const val = args[index];
|
|
278774
|
-
match = formatter.call(self, val);
|
|
278775
|
-
|
|
278776
|
-
// Now we need to remove `args[index]` since it's inlined in the `format`
|
|
278777
|
-
args.splice(index, 1);
|
|
278778
|
-
index--;
|
|
278779
|
-
}
|
|
278780
|
-
return match;
|
|
278781
|
-
});
|
|
278782
|
-
|
|
278783
|
-
// Apply env-specific formatting (colors, etc.)
|
|
278784
|
-
createDebug.formatArgs.call(self, args);
|
|
278785
|
-
|
|
278786
|
-
const logFn = self.log || createDebug.log;
|
|
278787
|
-
logFn.apply(self, args);
|
|
278788
|
-
}
|
|
278789
|
-
|
|
278790
|
-
debug.namespace = namespace;
|
|
278791
|
-
debug.useColors = createDebug.useColors();
|
|
278792
|
-
debug.color = createDebug.selectColor(namespace);
|
|
278793
|
-
debug.extend = extend;
|
|
278794
|
-
debug.destroy = createDebug.destroy; // XXX Temporary. Will be removed in the next major release.
|
|
278795
|
-
|
|
278796
|
-
Object.defineProperty(debug, 'enabled', {
|
|
278797
|
-
enumerable: true,
|
|
278798
|
-
configurable: false,
|
|
278799
|
-
get: () => {
|
|
278800
|
-
if (enableOverride !== null) {
|
|
278801
|
-
return enableOverride;
|
|
278802
|
-
}
|
|
278803
|
-
if (namespacesCache !== createDebug.namespaces) {
|
|
278804
|
-
namespacesCache = createDebug.namespaces;
|
|
278805
|
-
enabledCache = createDebug.enabled(namespace);
|
|
278806
|
-
}
|
|
278807
|
-
|
|
278808
|
-
return enabledCache;
|
|
278809
|
-
},
|
|
278810
|
-
set: v => {
|
|
278811
|
-
enableOverride = v;
|
|
278812
|
-
}
|
|
278813
|
-
});
|
|
278814
|
-
|
|
278815
|
-
// Env-specific initialization logic for debug instances
|
|
278816
|
-
if (typeof createDebug.init === 'function') {
|
|
278817
|
-
createDebug.init(debug);
|
|
278818
|
-
}
|
|
278819
|
-
|
|
278820
|
-
return debug;
|
|
278821
|
-
}
|
|
278822
|
-
|
|
278823
|
-
function extend(namespace, delimiter) {
|
|
278824
|
-
const newDebug = createDebug(this.namespace + (typeof delimiter === 'undefined' ? ':' : delimiter) + namespace);
|
|
278825
|
-
newDebug.log = this.log;
|
|
278826
|
-
return newDebug;
|
|
278827
|
-
}
|
|
278828
|
-
|
|
278829
|
-
/**
|
|
278830
|
-
* Enables a debug mode by namespaces. This can include modes
|
|
278831
|
-
* separated by a colon and wildcards.
|
|
278832
|
-
*
|
|
278833
|
-
* @param {String} namespaces
|
|
278834
|
-
* @api public
|
|
278835
|
-
*/
|
|
278836
|
-
function enable(namespaces) {
|
|
278837
|
-
createDebug.save(namespaces);
|
|
278838
|
-
createDebug.namespaces = namespaces;
|
|
278839
|
-
|
|
278840
|
-
createDebug.names = [];
|
|
278841
|
-
createDebug.skips = [];
|
|
278842
|
-
|
|
278843
|
-
const split = (typeof namespaces === 'string' ? namespaces : '')
|
|
278844
|
-
.trim()
|
|
278845
|
-
.replace(/\s+/g, ',')
|
|
278846
|
-
.split(',')
|
|
278847
|
-
.filter(Boolean);
|
|
278848
|
-
|
|
278849
|
-
for (const ns of split) {
|
|
278850
|
-
if (ns[0] === '-') {
|
|
278851
|
-
createDebug.skips.push(ns.slice(1));
|
|
278852
|
-
} else {
|
|
278853
|
-
createDebug.names.push(ns);
|
|
278854
|
-
}
|
|
278855
|
-
}
|
|
278856
|
-
}
|
|
278857
|
-
|
|
278858
|
-
/**
|
|
278859
|
-
* Checks if the given string matches a namespace template, honoring
|
|
278860
|
-
* asterisks as wildcards.
|
|
278861
|
-
*
|
|
278862
|
-
* @param {String} search
|
|
278863
|
-
* @param {String} template
|
|
278864
|
-
* @return {Boolean}
|
|
278865
|
-
*/
|
|
278866
|
-
function matchesTemplate(search, template) {
|
|
278867
|
-
let searchIndex = 0;
|
|
278868
|
-
let templateIndex = 0;
|
|
278869
|
-
let starIndex = -1;
|
|
278870
|
-
let matchIndex = 0;
|
|
278871
|
-
|
|
278872
|
-
while (searchIndex < search.length) {
|
|
278873
|
-
if (templateIndex < template.length && (template[templateIndex] === search[searchIndex] || template[templateIndex] === '*')) {
|
|
278874
|
-
// Match character or proceed with wildcard
|
|
278875
|
-
if (template[templateIndex] === '*') {
|
|
278876
|
-
starIndex = templateIndex;
|
|
278877
|
-
matchIndex = searchIndex;
|
|
278878
|
-
templateIndex++; // Skip the '*'
|
|
278879
|
-
} else {
|
|
278880
|
-
searchIndex++;
|
|
278881
|
-
templateIndex++;
|
|
278882
|
-
}
|
|
278883
|
-
} else if (starIndex !== -1) { // eslint-disable-line no-negated-condition
|
|
278884
|
-
// Backtrack to the last '*' and try to match more characters
|
|
278885
|
-
templateIndex = starIndex + 1;
|
|
278886
|
-
matchIndex++;
|
|
278887
|
-
searchIndex = matchIndex;
|
|
278888
|
-
} else {
|
|
278889
|
-
return false; // No match
|
|
278890
|
-
}
|
|
278891
|
-
}
|
|
278892
|
-
|
|
278893
|
-
// Handle trailing '*' in template
|
|
278894
|
-
while (templateIndex < template.length && template[templateIndex] === '*') {
|
|
278895
|
-
templateIndex++;
|
|
278896
|
-
}
|
|
278897
|
-
|
|
278898
|
-
return templateIndex === template.length;
|
|
278899
|
-
}
|
|
278900
|
-
|
|
278901
|
-
/**
|
|
278902
|
-
* Disable debug output.
|
|
278903
|
-
*
|
|
278904
|
-
* @return {String} namespaces
|
|
278905
|
-
* @api public
|
|
278906
|
-
*/
|
|
278907
|
-
function disable() {
|
|
278908
|
-
const namespaces = [
|
|
278909
|
-
...createDebug.names,
|
|
278910
|
-
...createDebug.skips.map(namespace => '-' + namespace)
|
|
278911
|
-
].join(',');
|
|
278912
|
-
createDebug.enable('');
|
|
278913
|
-
return namespaces;
|
|
278914
|
-
}
|
|
278915
|
-
|
|
278916
|
-
/**
|
|
278917
|
-
* Returns true if the given mode name is enabled, false otherwise.
|
|
278918
|
-
*
|
|
278919
|
-
* @param {String} name
|
|
278920
|
-
* @return {Boolean}
|
|
278921
|
-
* @api public
|
|
278922
|
-
*/
|
|
278923
|
-
function enabled(name) {
|
|
278924
|
-
for (const skip of createDebug.skips) {
|
|
278925
|
-
if (matchesTemplate(name, skip)) {
|
|
278926
|
-
return false;
|
|
278927
|
-
}
|
|
278928
|
-
}
|
|
278929
|
-
|
|
278930
|
-
for (const ns of createDebug.names) {
|
|
278931
|
-
if (matchesTemplate(name, ns)) {
|
|
278932
|
-
return true;
|
|
278933
|
-
}
|
|
278934
|
-
}
|
|
278935
|
-
|
|
278936
|
-
return false;
|
|
278937
|
-
}
|
|
278938
|
-
|
|
278939
|
-
/**
|
|
278940
|
-
* Coerce `val`.
|
|
278941
|
-
*
|
|
278942
|
-
* @param {Mixed} val
|
|
278943
|
-
* @return {Mixed}
|
|
278944
|
-
* @api private
|
|
278945
|
-
*/
|
|
278946
|
-
function coerce(val) {
|
|
278947
|
-
if (val instanceof Error) {
|
|
278948
|
-
return val.stack || val.message;
|
|
278949
|
-
}
|
|
278950
|
-
return val;
|
|
278951
|
-
}
|
|
278952
|
-
|
|
278953
|
-
/**
|
|
278954
|
-
* XXX DO NOT USE. This is a temporary stub function.
|
|
278955
|
-
* XXX It WILL be removed in the next major release.
|
|
278956
|
-
*/
|
|
278957
|
-
function destroy() {
|
|
278958
|
-
console.warn('Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.');
|
|
278959
|
-
}
|
|
278960
|
-
|
|
278961
|
-
createDebug.enable(createDebug.load());
|
|
278962
|
-
|
|
278963
|
-
return createDebug;
|
|
278964
|
-
}
|
|
278965
|
-
|
|
278966
|
-
common = setup;
|
|
278967
|
-
return common;
|
|
278968
|
-
}
|
|
278969
|
-
|
|
278970
|
-
/* eslint-env browser */
|
|
278971
|
-
|
|
278972
|
-
var hasRequiredBrowser;
|
|
278973
|
-
|
|
278974
|
-
function requireBrowser () {
|
|
278975
|
-
if (hasRequiredBrowser) return browser.exports;
|
|
278976
|
-
hasRequiredBrowser = 1;
|
|
278977
|
-
(function (module, exports$1) {
|
|
278978
|
-
/**
|
|
278979
|
-
* This is the web browser implementation of `debug()`.
|
|
278980
|
-
*/
|
|
278981
|
-
|
|
278982
|
-
exports$1.formatArgs = formatArgs;
|
|
278983
|
-
exports$1.save = save;
|
|
278984
|
-
exports$1.load = load;
|
|
278985
|
-
exports$1.useColors = useColors;
|
|
278986
|
-
exports$1.storage = localstorage();
|
|
278987
|
-
exports$1.destroy = (() => {
|
|
278988
|
-
let warned = false;
|
|
278989
|
-
|
|
278990
|
-
return () => {
|
|
278991
|
-
if (!warned) {
|
|
278992
|
-
warned = true;
|
|
278993
|
-
console.warn('Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.');
|
|
278994
|
-
}
|
|
278995
|
-
};
|
|
278996
|
-
})();
|
|
278997
|
-
|
|
278998
|
-
/**
|
|
278999
|
-
* Colors.
|
|
279000
|
-
*/
|
|
279001
|
-
|
|
279002
|
-
exports$1.colors = [
|
|
279003
|
-
'#0000CC',
|
|
279004
|
-
'#0000FF',
|
|
279005
|
-
'#0033CC',
|
|
279006
|
-
'#0033FF',
|
|
279007
|
-
'#0066CC',
|
|
279008
|
-
'#0066FF',
|
|
279009
|
-
'#0099CC',
|
|
279010
|
-
'#0099FF',
|
|
279011
|
-
'#00CC00',
|
|
279012
|
-
'#00CC33',
|
|
279013
|
-
'#00CC66',
|
|
279014
|
-
'#00CC99',
|
|
279015
|
-
'#00CCCC',
|
|
279016
|
-
'#00CCFF',
|
|
279017
|
-
'#3300CC',
|
|
279018
|
-
'#3300FF',
|
|
279019
|
-
'#3333CC',
|
|
279020
|
-
'#3333FF',
|
|
279021
|
-
'#3366CC',
|
|
279022
|
-
'#3366FF',
|
|
279023
|
-
'#3399CC',
|
|
279024
|
-
'#3399FF',
|
|
279025
|
-
'#33CC00',
|
|
279026
|
-
'#33CC33',
|
|
279027
|
-
'#33CC66',
|
|
279028
|
-
'#33CC99',
|
|
279029
|
-
'#33CCCC',
|
|
279030
|
-
'#33CCFF',
|
|
279031
|
-
'#6600CC',
|
|
279032
|
-
'#6600FF',
|
|
279033
|
-
'#6633CC',
|
|
279034
|
-
'#6633FF',
|
|
279035
|
-
'#66CC00',
|
|
279036
|
-
'#66CC33',
|
|
279037
|
-
'#9900CC',
|
|
279038
|
-
'#9900FF',
|
|
279039
|
-
'#9933CC',
|
|
279040
|
-
'#9933FF',
|
|
279041
|
-
'#99CC00',
|
|
279042
|
-
'#99CC33',
|
|
279043
|
-
'#CC0000',
|
|
279044
|
-
'#CC0033',
|
|
279045
|
-
'#CC0066',
|
|
279046
|
-
'#CC0099',
|
|
279047
|
-
'#CC00CC',
|
|
279048
|
-
'#CC00FF',
|
|
279049
|
-
'#CC3300',
|
|
279050
|
-
'#CC3333',
|
|
279051
|
-
'#CC3366',
|
|
279052
|
-
'#CC3399',
|
|
279053
|
-
'#CC33CC',
|
|
279054
|
-
'#CC33FF',
|
|
279055
|
-
'#CC6600',
|
|
279056
|
-
'#CC6633',
|
|
279057
|
-
'#CC9900',
|
|
279058
|
-
'#CC9933',
|
|
279059
|
-
'#CCCC00',
|
|
279060
|
-
'#CCCC33',
|
|
279061
|
-
'#FF0000',
|
|
279062
|
-
'#FF0033',
|
|
279063
|
-
'#FF0066',
|
|
279064
|
-
'#FF0099',
|
|
279065
|
-
'#FF00CC',
|
|
279066
|
-
'#FF00FF',
|
|
279067
|
-
'#FF3300',
|
|
279068
|
-
'#FF3333',
|
|
279069
|
-
'#FF3366',
|
|
279070
|
-
'#FF3399',
|
|
279071
|
-
'#FF33CC',
|
|
279072
|
-
'#FF33FF',
|
|
279073
|
-
'#FF6600',
|
|
279074
|
-
'#FF6633',
|
|
279075
|
-
'#FF9900',
|
|
279076
|
-
'#FF9933',
|
|
279077
|
-
'#FFCC00',
|
|
279078
|
-
'#FFCC33'
|
|
279079
|
-
];
|
|
279080
|
-
|
|
279081
|
-
/**
|
|
279082
|
-
* Currently only WebKit-based Web Inspectors, Firefox >= v31,
|
|
279083
|
-
* and the Firebug extension (any Firefox version) are known
|
|
279084
|
-
* to support "%c" CSS customizations.
|
|
279085
|
-
*
|
|
279086
|
-
* TODO: add a `localStorage` variable to explicitly enable/disable colors
|
|
279087
|
-
*/
|
|
279088
|
-
|
|
279089
|
-
// eslint-disable-next-line complexity
|
|
279090
|
-
function useColors() {
|
|
279091
|
-
// NB: In an Electron preload script, document will be defined but not fully
|
|
279092
|
-
// initialized. Since we know we're in Chrome, we'll just detect this case
|
|
279093
|
-
// explicitly
|
|
279094
|
-
if (typeof window !== 'undefined' && window.process && (window.process.type === 'renderer' || window.process.__nwjs)) {
|
|
279095
|
-
return true;
|
|
279096
|
-
}
|
|
279097
|
-
|
|
279098
|
-
// Internet Explorer and Edge do not support colors.
|
|
279099
|
-
if (typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)) {
|
|
279100
|
-
return false;
|
|
279101
|
-
}
|
|
279102
|
-
|
|
279103
|
-
let m;
|
|
279104
|
-
|
|
279105
|
-
// Is webkit? http://stackoverflow.com/a/16459606/376773
|
|
279106
|
-
// document is undefined in react-native: https://github.com/facebook/react-native/pull/1632
|
|
279107
|
-
// eslint-disable-next-line no-return-assign
|
|
279108
|
-
return (typeof document !== 'undefined' && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance) ||
|
|
279109
|
-
// Is firebug? http://stackoverflow.com/a/398120/376773
|
|
279110
|
-
(typeof window !== 'undefined' && window.console && (window.console.firebug || (window.console.exception && window.console.table))) ||
|
|
279111
|
-
// Is firefox >= v31?
|
|
279112
|
-
// https://developer.mozilla.org/en-US/docs/Tools/Web_Console#Styling_messages
|
|
279113
|
-
(typeof navigator !== 'undefined' && navigator.userAgent && (m = navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)) && parseInt(m[1], 10) >= 31) ||
|
|
279114
|
-
// Double check webkit in userAgent just in case we are in a worker
|
|
279115
|
-
(typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/));
|
|
279116
|
-
}
|
|
279117
|
-
|
|
279118
|
-
/**
|
|
279119
|
-
* Colorize log arguments if enabled.
|
|
279120
|
-
*
|
|
279121
|
-
* @api public
|
|
279122
|
-
*/
|
|
279123
|
-
|
|
279124
|
-
function formatArgs(args) {
|
|
279125
|
-
args[0] = (this.useColors ? '%c' : '') +
|
|
279126
|
-
this.namespace +
|
|
279127
|
-
(this.useColors ? ' %c' : ' ') +
|
|
279128
|
-
args[0] +
|
|
279129
|
-
(this.useColors ? '%c ' : ' ') +
|
|
279130
|
-
'+' + module.exports.humanize(this.diff);
|
|
279131
|
-
|
|
279132
|
-
if (!this.useColors) {
|
|
279133
|
-
return;
|
|
279134
|
-
}
|
|
279135
|
-
|
|
279136
|
-
const c = 'color: ' + this.color;
|
|
279137
|
-
args.splice(1, 0, c, 'color: inherit');
|
|
279138
|
-
|
|
279139
|
-
// The final "%c" is somewhat tricky, because there could be other
|
|
279140
|
-
// arguments passed either before or after the %c, so we need to
|
|
279141
|
-
// figure out the correct index to insert the CSS into
|
|
279142
|
-
let index = 0;
|
|
279143
|
-
let lastC = 0;
|
|
279144
|
-
args[0].replace(/%[a-zA-Z%]/g, match => {
|
|
279145
|
-
if (match === '%%') {
|
|
279146
|
-
return;
|
|
279147
|
-
}
|
|
279148
|
-
index++;
|
|
279149
|
-
if (match === '%c') {
|
|
279150
|
-
// We only are interested in the *last* %c
|
|
279151
|
-
// (the user may have provided their own)
|
|
279152
|
-
lastC = index;
|
|
279153
|
-
}
|
|
279154
|
-
});
|
|
279155
|
-
|
|
279156
|
-
args.splice(lastC, 0, c);
|
|
279157
|
-
}
|
|
279158
|
-
|
|
279159
|
-
/**
|
|
279160
|
-
* Invokes `console.debug()` when available.
|
|
279161
|
-
* No-op when `console.debug` is not a "function".
|
|
279162
|
-
* If `console.debug` is not available, falls back
|
|
279163
|
-
* to `console.log`.
|
|
279164
|
-
*
|
|
279165
|
-
* @api public
|
|
279166
|
-
*/
|
|
279167
|
-
exports$1.log = console.debug || console.log || (() => {});
|
|
279168
|
-
|
|
279169
|
-
/**
|
|
279170
|
-
* Save `namespaces`.
|
|
279171
|
-
*
|
|
279172
|
-
* @param {String} namespaces
|
|
279173
|
-
* @api private
|
|
279174
|
-
*/
|
|
279175
|
-
function save(namespaces) {
|
|
279176
|
-
try {
|
|
279177
|
-
if (namespaces) {
|
|
279178
|
-
exports$1.storage.setItem('debug', namespaces);
|
|
279179
|
-
} else {
|
|
279180
|
-
exports$1.storage.removeItem('debug');
|
|
279181
|
-
}
|
|
279182
|
-
} catch (error) {
|
|
279183
|
-
// Swallow
|
|
279184
|
-
// XXX (@Qix-) should we be logging these?
|
|
279185
|
-
}
|
|
279186
|
-
}
|
|
279187
|
-
|
|
279188
|
-
/**
|
|
279189
|
-
* Load `namespaces`.
|
|
279190
|
-
*
|
|
279191
|
-
* @return {String} returns the previously persisted debug modes
|
|
279192
|
-
* @api private
|
|
279193
|
-
*/
|
|
279194
|
-
function load() {
|
|
279195
|
-
let r;
|
|
279196
|
-
try {
|
|
279197
|
-
r = exports$1.storage.getItem('debug') || exports$1.storage.getItem('DEBUG') ;
|
|
279198
|
-
} catch (error) {
|
|
279199
|
-
// Swallow
|
|
279200
|
-
// XXX (@Qix-) should we be logging these?
|
|
279201
|
-
}
|
|
279202
|
-
|
|
279203
|
-
// If debug isn't set in LS, and we're in Electron, try to load $DEBUG
|
|
279204
|
-
if (!r && typeof process !== 'undefined' && 'env' in process) {
|
|
279205
|
-
r = process.env.DEBUG;
|
|
279206
|
-
}
|
|
279207
|
-
|
|
279208
|
-
return r;
|
|
279209
|
-
}
|
|
279210
|
-
|
|
279211
|
-
/**
|
|
279212
|
-
* Localstorage attempts to return the localstorage.
|
|
279213
|
-
*
|
|
279214
|
-
* This is necessary because safari throws
|
|
279215
|
-
* when a user disables cookies/localstorage
|
|
279216
|
-
* and you attempt to access it.
|
|
279217
|
-
*
|
|
279218
|
-
* @return {LocalStorage}
|
|
279219
|
-
* @api private
|
|
279220
|
-
*/
|
|
279221
|
-
|
|
279222
|
-
function localstorage() {
|
|
279223
|
-
try {
|
|
279224
|
-
// TVMLKit (Apple TV JS Runtime) does not have a window object, just localStorage in the global context
|
|
279225
|
-
// The Browser also has localStorage in the global context.
|
|
279226
|
-
return localStorage;
|
|
279227
|
-
} catch (error) {
|
|
279228
|
-
// Swallow
|
|
279229
|
-
// XXX (@Qix-) should we be logging these?
|
|
279230
|
-
}
|
|
279231
|
-
}
|
|
279232
|
-
|
|
279233
|
-
module.exports = requireCommon()(exports$1);
|
|
279234
|
-
|
|
279235
|
-
const {formatters} = module.exports;
|
|
279236
|
-
|
|
279237
|
-
/**
|
|
279238
|
-
* Map %j to `JSON.stringify()`, since no Web Inspectors do that by default.
|
|
279239
|
-
*/
|
|
279240
|
-
|
|
279241
|
-
formatters.j = function (v) {
|
|
279242
|
-
try {
|
|
279243
|
-
return JSON.stringify(v);
|
|
279244
|
-
} catch (error) {
|
|
279245
|
-
return '[UnexpectedJSONParseError]: ' + error.message;
|
|
279246
|
-
}
|
|
279247
|
-
};
|
|
279248
|
-
} (browser, browser.exports));
|
|
279249
|
-
return browser.exports;
|
|
279250
|
-
}
|
|
279251
|
-
|
|
279252
|
-
var node = {exports: {}};
|
|
279253
|
-
|
|
279254
|
-
/**
|
|
279255
|
-
* Module dependencies.
|
|
279256
|
-
*/
|
|
279257
|
-
|
|
279258
|
-
var hasRequiredNode;
|
|
279259
|
-
|
|
279260
|
-
function requireNode () {
|
|
279261
|
-
if (hasRequiredNode) return node.exports;
|
|
279262
|
-
hasRequiredNode = 1;
|
|
279263
|
-
(function (module, exports$1) {
|
|
279264
|
-
const tty = require$$0$b;
|
|
279265
|
-
const util = require$$0$6;
|
|
279266
|
-
|
|
279267
|
-
/**
|
|
279268
|
-
* This is the Node.js implementation of `debug()`.
|
|
279269
|
-
*/
|
|
279270
|
-
|
|
279271
|
-
exports$1.init = init;
|
|
279272
|
-
exports$1.log = log;
|
|
279273
|
-
exports$1.formatArgs = formatArgs;
|
|
279274
|
-
exports$1.save = save;
|
|
279275
|
-
exports$1.load = load;
|
|
279276
|
-
exports$1.useColors = useColors;
|
|
279277
|
-
exports$1.destroy = util.deprecate(
|
|
279278
|
-
() => {},
|
|
279279
|
-
'Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.'
|
|
279280
|
-
);
|
|
279281
|
-
|
|
279282
|
-
/**
|
|
279283
|
-
* Colors.
|
|
279284
|
-
*/
|
|
279285
|
-
|
|
279286
|
-
exports$1.colors = [6, 2, 3, 4, 5, 1];
|
|
279287
|
-
|
|
279288
|
-
try {
|
|
279289
|
-
// Optional dependency (as in, doesn't need to be installed, NOT like optionalDependencies in package.json)
|
|
279290
|
-
// eslint-disable-next-line import/no-extraneous-dependencies
|
|
279291
|
-
const supportsColor = requireSupportsColor();
|
|
279292
|
-
|
|
279293
|
-
if (supportsColor && (supportsColor.stderr || supportsColor).level >= 2) {
|
|
279294
|
-
exports$1.colors = [
|
|
279295
|
-
20,
|
|
279296
|
-
21,
|
|
279297
|
-
26,
|
|
279298
|
-
27,
|
|
279299
|
-
32,
|
|
279300
|
-
33,
|
|
279301
|
-
38,
|
|
279302
|
-
39,
|
|
279303
|
-
40,
|
|
279304
|
-
41,
|
|
279305
|
-
42,
|
|
279306
|
-
43,
|
|
279307
|
-
44,
|
|
279308
|
-
45,
|
|
279309
|
-
56,
|
|
279310
|
-
57,
|
|
279311
|
-
62,
|
|
279312
|
-
63,
|
|
279313
|
-
68,
|
|
279314
|
-
69,
|
|
279315
|
-
74,
|
|
279316
|
-
75,
|
|
279317
|
-
76,
|
|
279318
|
-
77,
|
|
279319
|
-
78,
|
|
279320
|
-
79,
|
|
279321
|
-
80,
|
|
279322
|
-
81,
|
|
279323
|
-
92,
|
|
279324
|
-
93,
|
|
279325
|
-
98,
|
|
279326
|
-
99,
|
|
279327
|
-
112,
|
|
279328
|
-
113,
|
|
279329
|
-
128,
|
|
279330
|
-
129,
|
|
279331
|
-
134,
|
|
279332
|
-
135,
|
|
279333
|
-
148,
|
|
279334
|
-
149,
|
|
279335
|
-
160,
|
|
279336
|
-
161,
|
|
279337
|
-
162,
|
|
279338
|
-
163,
|
|
279339
|
-
164,
|
|
279340
|
-
165,
|
|
279341
|
-
166,
|
|
279342
|
-
167,
|
|
279343
|
-
168,
|
|
279344
|
-
169,
|
|
279345
|
-
170,
|
|
279346
|
-
171,
|
|
279347
|
-
172,
|
|
279348
|
-
173,
|
|
279349
|
-
178,
|
|
279350
|
-
179,
|
|
279351
|
-
184,
|
|
279352
|
-
185,
|
|
279353
|
-
196,
|
|
279354
|
-
197,
|
|
279355
|
-
198,
|
|
279356
|
-
199,
|
|
279357
|
-
200,
|
|
279358
|
-
201,
|
|
279359
|
-
202,
|
|
279360
|
-
203,
|
|
279361
|
-
204,
|
|
279362
|
-
205,
|
|
279363
|
-
206,
|
|
279364
|
-
207,
|
|
279365
|
-
208,
|
|
279366
|
-
209,
|
|
279367
|
-
214,
|
|
279368
|
-
215,
|
|
279369
|
-
220,
|
|
279370
|
-
221
|
|
279371
|
-
];
|
|
279372
|
-
}
|
|
279373
|
-
} catch (error) {
|
|
279374
|
-
// Swallow - we only care if `supports-color` is available; it doesn't have to be.
|
|
279375
|
-
}
|
|
279376
|
-
|
|
279377
|
-
/**
|
|
279378
|
-
* Build up the default `inspectOpts` object from the environment variables.
|
|
279379
|
-
*
|
|
279380
|
-
* $ DEBUG_COLORS=no DEBUG_DEPTH=10 DEBUG_SHOW_HIDDEN=enabled node script.js
|
|
279381
|
-
*/
|
|
279382
|
-
|
|
279383
|
-
exports$1.inspectOpts = Object.keys(process.env).filter(key => {
|
|
279384
|
-
return /^debug_/i.test(key);
|
|
279385
|
-
}).reduce((obj, key) => {
|
|
279386
|
-
// Camel-case
|
|
279387
|
-
const prop = key
|
|
279388
|
-
.substring(6)
|
|
279389
|
-
.toLowerCase()
|
|
279390
|
-
.replace(/_([a-z])/g, (_, k) => {
|
|
279391
|
-
return k.toUpperCase();
|
|
279392
|
-
});
|
|
279393
|
-
|
|
279394
|
-
// Coerce string value into JS value
|
|
279395
|
-
let val = process.env[key];
|
|
279396
|
-
if (/^(yes|on|true|enabled)$/i.test(val)) {
|
|
279397
|
-
val = true;
|
|
279398
|
-
} else if (/^(no|off|false|disabled)$/i.test(val)) {
|
|
279399
|
-
val = false;
|
|
279400
|
-
} else if (val === 'null') {
|
|
279401
|
-
val = null;
|
|
279402
|
-
} else {
|
|
279403
|
-
val = Number(val);
|
|
279404
|
-
}
|
|
279405
|
-
|
|
279406
|
-
obj[prop] = val;
|
|
279407
|
-
return obj;
|
|
279408
|
-
}, {});
|
|
279409
|
-
|
|
279410
|
-
/**
|
|
279411
|
-
* Is stdout a TTY? Colored output is enabled when `true`.
|
|
279412
|
-
*/
|
|
279413
|
-
|
|
279414
|
-
function useColors() {
|
|
279415
|
-
return 'colors' in exports$1.inspectOpts ?
|
|
279416
|
-
Boolean(exports$1.inspectOpts.colors) :
|
|
279417
|
-
tty.isatty(process.stderr.fd);
|
|
279418
|
-
}
|
|
279419
|
-
|
|
279420
|
-
/**
|
|
279421
|
-
* Adds ANSI color escape codes if enabled.
|
|
279422
|
-
*
|
|
279423
|
-
* @api public
|
|
279424
|
-
*/
|
|
279425
|
-
|
|
279426
|
-
function formatArgs(args) {
|
|
279427
|
-
const {namespace: name, useColors} = this;
|
|
279428
|
-
|
|
279429
|
-
if (useColors) {
|
|
279430
|
-
const c = this.color;
|
|
279431
|
-
const colorCode = '\u001B[3' + (c < 8 ? c : '8;5;' + c);
|
|
279432
|
-
const prefix = ` ${colorCode};1m${name} \u001B[0m`;
|
|
279433
|
-
|
|
279434
|
-
args[0] = prefix + args[0].split('\n').join('\n' + prefix);
|
|
279435
|
-
args.push(colorCode + 'm+' + module.exports.humanize(this.diff) + '\u001B[0m');
|
|
279436
|
-
} else {
|
|
279437
|
-
args[0] = getDate() + name + ' ' + args[0];
|
|
279438
|
-
}
|
|
279439
|
-
}
|
|
279440
|
-
|
|
279441
|
-
function getDate() {
|
|
279442
|
-
if (exports$1.inspectOpts.hideDate) {
|
|
279443
|
-
return '';
|
|
279444
|
-
}
|
|
279445
|
-
return new Date().toISOString() + ' ';
|
|
279446
|
-
}
|
|
279447
|
-
|
|
279448
|
-
/**
|
|
279449
|
-
* Invokes `util.formatWithOptions()` with the specified arguments and writes to stderr.
|
|
279450
|
-
*/
|
|
279451
|
-
|
|
279452
|
-
function log(...args) {
|
|
279453
|
-
return process.stderr.write(util.formatWithOptions(exports$1.inspectOpts, ...args) + '\n');
|
|
279454
|
-
}
|
|
279455
|
-
|
|
279456
|
-
/**
|
|
279457
|
-
* Save `namespaces`.
|
|
279458
|
-
*
|
|
279459
|
-
* @param {String} namespaces
|
|
279460
|
-
* @api private
|
|
279461
|
-
*/
|
|
279462
|
-
function save(namespaces) {
|
|
279463
|
-
if (namespaces) {
|
|
279464
|
-
process.env.DEBUG = namespaces;
|
|
279465
|
-
} else {
|
|
279466
|
-
// If you set a process.env field to null or undefined, it gets cast to the
|
|
279467
|
-
// string 'null' or 'undefined'. Just delete instead.
|
|
279468
|
-
delete process.env.DEBUG;
|
|
279469
|
-
}
|
|
279470
|
-
}
|
|
279471
|
-
|
|
279472
|
-
/**
|
|
279473
|
-
* Load `namespaces`.
|
|
279474
|
-
*
|
|
279475
|
-
* @return {String} returns the previously persisted debug modes
|
|
279476
|
-
* @api private
|
|
279477
|
-
*/
|
|
279478
|
-
|
|
279479
|
-
function load() {
|
|
279480
|
-
return process.env.DEBUG;
|
|
279481
|
-
}
|
|
279482
|
-
|
|
279483
|
-
/**
|
|
279484
|
-
* Init logic for `debug` instances.
|
|
279485
|
-
*
|
|
279486
|
-
* Create a new `inspectOpts` object in case `useColors` is set
|
|
279487
|
-
* differently for a particular `debug` instance.
|
|
279488
|
-
*/
|
|
279489
|
-
|
|
279490
|
-
function init(debug) {
|
|
279491
|
-
debug.inspectOpts = {};
|
|
279492
|
-
|
|
279493
|
-
const keys = Object.keys(exports$1.inspectOpts);
|
|
279494
|
-
for (let i = 0; i < keys.length; i++) {
|
|
279495
|
-
debug.inspectOpts[keys[i]] = exports$1.inspectOpts[keys[i]];
|
|
279496
|
-
}
|
|
279497
|
-
}
|
|
279498
|
-
|
|
279499
|
-
module.exports = requireCommon()(exports$1);
|
|
279500
|
-
|
|
279501
|
-
const {formatters} = module.exports;
|
|
279502
|
-
|
|
279503
|
-
/**
|
|
279504
|
-
* Map %o to `util.inspect()`, all on a single line.
|
|
279505
|
-
*/
|
|
279506
|
-
|
|
279507
|
-
formatters.o = function (v) {
|
|
279508
|
-
this.inspectOpts.colors = this.useColors;
|
|
279509
|
-
return util.inspect(v, this.inspectOpts)
|
|
279510
|
-
.split('\n')
|
|
279511
|
-
.map(str => str.trim())
|
|
279512
|
-
.join(' ');
|
|
279513
|
-
};
|
|
279514
|
-
|
|
279515
|
-
/**
|
|
279516
|
-
* Map %O to `util.inspect()`, allowing multiple lines if needed.
|
|
279517
|
-
*/
|
|
279518
|
-
|
|
279519
|
-
formatters.O = function (v) {
|
|
279520
|
-
this.inspectOpts.colors = this.useColors;
|
|
279521
|
-
return util.inspect(v, this.inspectOpts);
|
|
279522
|
-
};
|
|
279523
|
-
} (node, node.exports));
|
|
279524
|
-
return node.exports;
|
|
279525
|
-
}
|
|
279526
|
-
|
|
279527
|
-
/**
|
|
279528
|
-
* Detect Electron renderer / nwjs process, which is node, but we should
|
|
279529
|
-
* treat as a browser.
|
|
279530
|
-
*/
|
|
279531
|
-
|
|
279532
|
-
var hasRequiredSrc;
|
|
279533
|
-
|
|
279534
|
-
function requireSrc () {
|
|
279535
|
-
if (hasRequiredSrc) return src.exports;
|
|
279536
|
-
hasRequiredSrc = 1;
|
|
279537
|
-
if (typeof process === 'undefined' || process.type === 'renderer' || process.browser === true || process.__nwjs) {
|
|
279538
|
-
src.exports = requireBrowser();
|
|
279539
|
-
} else {
|
|
279540
|
-
src.exports = requireNode();
|
|
279541
|
-
}
|
|
279542
|
-
return src.exports;
|
|
279543
|
-
}
|
|
279544
|
-
|
|
279545
278766
|
var MetadataCollector = {};
|
|
279546
278767
|
|
|
279547
278768
|
var type = {};
|
|
@@ -280988,7 +280209,7 @@ function requireMetadataCollector () {
|
|
|
280988
280209
|
Object.defineProperty(MetadataCollector, "__esModule", { value: true });
|
|
280989
280210
|
MetadataCollector.joinArtists = MetadataCollector.MetadataCollector = void 0;
|
|
280990
280211
|
const type_1 = requireType();
|
|
280991
|
-
const debug_1 = requireSrc();
|
|
280212
|
+
const debug_1 = requireSrc$1();
|
|
280992
280213
|
const GenericTagTypes_1 = requireGenericTagTypes();
|
|
280993
280214
|
const CombinedTagMapper_1 = requireCombinedTagMapper();
|
|
280994
280215
|
const GenericTagMapper_1 = requireGenericTagMapper();
|
|
@@ -281592,7 +280813,7 @@ function requireAPEv2Parser () {
|
|
|
281592
280813
|
hasRequiredAPEv2Parser = 1;
|
|
281593
280814
|
Object.defineProperty(APEv2Parser, "__esModule", { value: true });
|
|
281594
280815
|
APEv2Parser.APEv2Parser = void 0;
|
|
281595
|
-
const debug_1 = requireSrc();
|
|
280816
|
+
const debug_1 = requireSrc$1();
|
|
281596
280817
|
const strtok3 = requireCore$1();
|
|
281597
280818
|
const token_types_1 = lib$7;
|
|
281598
280819
|
const util = requireUtil();
|
|
@@ -281764,7 +280985,7 @@ function requireID3v1Parser () {
|
|
|
281764
280985
|
(function (exports$1) {
|
|
281765
280986
|
Object.defineProperty(exports$1, "__esModule", { value: true });
|
|
281766
280987
|
exports$1.hasID3v1Header = exports$1.ID3v1Parser = exports$1.Genres = void 0;
|
|
281767
|
-
const debug_1 = requireSrc();
|
|
280988
|
+
const debug_1 = requireSrc$1();
|
|
281768
280989
|
const token_types_1 = lib$7;
|
|
281769
280990
|
const util = requireUtil();
|
|
281770
280991
|
const BasicParser_1 = requireBasicParser();
|
|
@@ -281906,7 +281127,7 @@ function requireFrameParser () {
|
|
|
281906
281127
|
hasRequiredFrameParser = 1;
|
|
281907
281128
|
Object.defineProperty(FrameParser, "__esModule", { value: true });
|
|
281908
281129
|
FrameParser.FrameParser = FrameParser.parseGenre = void 0;
|
|
281909
|
-
const debug_1 = requireSrc();
|
|
281130
|
+
const debug_1 = requireSrc$1();
|
|
281910
281131
|
const Token = lib$7;
|
|
281911
281132
|
const util = requireUtil();
|
|
281912
281133
|
const ID3v2Token_1 = requireID3v2Token();
|
|
@@ -282517,7 +281738,7 @@ function requireAiffParser () {
|
|
|
282517
281738
|
Object.defineProperty(AiffParser, "__esModule", { value: true });
|
|
282518
281739
|
AiffParser.AIFFParser = void 0;
|
|
282519
281740
|
const Token = lib$7;
|
|
282520
|
-
const debug_1 = requireSrc();
|
|
281741
|
+
const debug_1 = requireSrc$1();
|
|
282521
281742
|
const strtok3 = requireCore$1();
|
|
282522
281743
|
const ID3v2Parser_1 = requireID3v2Parser();
|
|
282523
281744
|
const FourCC_1 = requireFourCC();
|
|
@@ -283198,7 +282419,7 @@ function requireAsfParser () {
|
|
|
283198
282419
|
hasRequiredAsfParser = 1;
|
|
283199
282420
|
Object.defineProperty(AsfParser, "__esModule", { value: true });
|
|
283200
282421
|
AsfParser.AsfParser = void 0;
|
|
283201
|
-
const debug_1 = requireSrc();
|
|
282422
|
+
const debug_1 = requireSrc$1();
|
|
283202
282423
|
const type_1 = requireType();
|
|
283203
282424
|
const GUID_1 = requireGUID();
|
|
283204
282425
|
const AsfObject = requireAsfObject();
|
|
@@ -283432,7 +282653,7 @@ function requireAbstractID3Parser () {
|
|
|
283432
282653
|
Object.defineProperty(AbstractID3Parser, "__esModule", { value: true });
|
|
283433
282654
|
AbstractID3Parser.AbstractID3Parser = void 0;
|
|
283434
282655
|
const core_1 = requireCore$1();
|
|
283435
|
-
const debug_1 = requireSrc();
|
|
282656
|
+
const debug_1 = requireSrc$1();
|
|
283436
282657
|
const ID3v2Token_1 = requireID3v2Token();
|
|
283437
282658
|
const ID3v2Parser_1 = requireID3v2Parser();
|
|
283438
282659
|
const ID3v1Parser_1 = requireID3v1Parser();
|
|
@@ -283542,7 +282763,7 @@ function requireVorbisParser () {
|
|
|
283542
282763
|
Object.defineProperty(VorbisParser, "__esModule", { value: true });
|
|
283543
282764
|
VorbisParser.VorbisParser = void 0;
|
|
283544
282765
|
const Token = lib$7;
|
|
283545
|
-
const debug_1 = requireSrc();
|
|
282766
|
+
const debug_1 = requireSrc$1();
|
|
283546
282767
|
const VorbisDecoder_1 = requireVorbisDecoder();
|
|
283547
282768
|
const Vorbis_1 = requireVorbis();
|
|
283548
282769
|
const debug = (0, debug_1.default)('music-metadata:parser:ogg:vorbis1');
|
|
@@ -283674,7 +282895,7 @@ function requireFlacParser () {
|
|
|
283674
282895
|
Object.defineProperty(FlacParser, "__esModule", { value: true });
|
|
283675
282896
|
FlacParser.FlacParser = void 0;
|
|
283676
282897
|
const token_types_1 = lib$7;
|
|
283677
|
-
const debug_1 = requireSrc();
|
|
282898
|
+
const debug_1 = requireSrc$1();
|
|
283678
282899
|
const util = requireUtil();
|
|
283679
282900
|
const Vorbis_1 = requireVorbis();
|
|
283680
282901
|
const AbstractID3Parser_1 = requireAbstractID3Parser();
|
|
@@ -283863,7 +283084,7 @@ function requireAtomToken () {
|
|
|
283863
283084
|
Object.defineProperty(exports$1, "__esModule", { value: true });
|
|
283864
283085
|
exports$1.ChapterText = exports$1.StcoAtom = exports$1.StszAtom = exports$1.StscAtom = exports$1.SampleToChunkToken = exports$1.SttsAtom = exports$1.TimeToSampleToken = exports$1.SoundSampleDescriptionV0 = exports$1.SoundSampleDescriptionVersion = exports$1.StsdAtom = exports$1.TrackHeaderAtom = exports$1.NameAtom = exports$1.DataAtom = exports$1.MvhdAtom = exports$1.MdhdAtom = exports$1.FixedLengthAtom = exports$1.mhdr = exports$1.tkhd = exports$1.ftyp = exports$1.ExtendedSize = exports$1.Header = void 0;
|
|
283865
283086
|
const Token = lib$7;
|
|
283866
|
-
const debug_1 = requireSrc();
|
|
283087
|
+
const debug_1 = requireSrc$1();
|
|
283867
283088
|
const FourCC_1 = requireFourCC();
|
|
283868
283089
|
const debug = (0, debug_1.default)('music-metadata:parser:MP4:atom');
|
|
283869
283090
|
exports$1.Header = {
|
|
@@ -284276,7 +283497,7 @@ function requireAtom () {
|
|
|
284276
283497
|
hasRequiredAtom = 1;
|
|
284277
283498
|
Object.defineProperty(Atom, "__esModule", { value: true });
|
|
284278
283499
|
Atom.Atom = void 0;
|
|
284279
|
-
const debug_1 = requireSrc();
|
|
283500
|
+
const debug_1 = requireSrc$1();
|
|
284280
283501
|
const AtomToken = requireAtomToken();
|
|
284281
283502
|
const debug = (0, debug_1.default)('music-metadata:parser:MP4:Atom');
|
|
284282
283503
|
let Atom$1 = class Atom {
|
|
@@ -284355,7 +283576,7 @@ function requireMP4Parser () {
|
|
|
284355
283576
|
hasRequiredMP4Parser = 1;
|
|
284356
283577
|
Object.defineProperty(MP4Parser, "__esModule", { value: true });
|
|
284357
283578
|
MP4Parser.MP4Parser = void 0;
|
|
284358
|
-
const debug_1 = requireSrc();
|
|
283579
|
+
const debug_1 = requireSrc$1();
|
|
284359
283580
|
const Token = lib$7;
|
|
284360
283581
|
const BasicParser_1 = requireBasicParser();
|
|
284361
283582
|
const ID3v1Parser_1 = requireID3v1Parser();
|
|
@@ -285084,7 +284305,7 @@ function requireMpegParser () {
|
|
|
285084
284305
|
MpegParser.MpegParser = void 0;
|
|
285085
284306
|
const Token = lib$7;
|
|
285086
284307
|
const core_1 = requireCore$1();
|
|
285087
|
-
const debug_1 = requireSrc();
|
|
284308
|
+
const debug_1 = requireSrc$1();
|
|
285088
284309
|
const common = requireUtil();
|
|
285089
284310
|
const AbstractID3Parser_1 = requireAbstractID3Parser();
|
|
285090
284311
|
const XingTag_1 = requireXingTag();
|
|
@@ -285620,7 +284841,7 @@ function requireStreamVersion8 () {
|
|
|
285620
284841
|
Object.defineProperty(StreamVersion8, "__esModule", { value: true });
|
|
285621
284842
|
StreamVersion8.StreamReader = void 0;
|
|
285622
284843
|
const Token = lib$7;
|
|
285623
|
-
const debug_1 = requireSrc();
|
|
284844
|
+
const debug_1 = requireSrc$1();
|
|
285624
284845
|
const util = requireUtil();
|
|
285625
284846
|
const debug = (0, debug_1.default)('music-metadata:parser:musepack:sv8');
|
|
285626
284847
|
const PacketKey = new Token.StringType(2, 'binary');
|
|
@@ -285706,7 +284927,7 @@ function requireMpcSv8Parser () {
|
|
|
285706
284927
|
hasRequiredMpcSv8Parser = 1;
|
|
285707
284928
|
Object.defineProperty(MpcSv8Parser, "__esModule", { value: true });
|
|
285708
284929
|
MpcSv8Parser.MpcSv8Parser = void 0;
|
|
285709
|
-
const debug_1 = requireSrc();
|
|
284930
|
+
const debug_1 = requireSrc$1();
|
|
285710
284931
|
const BasicParser_1 = requireBasicParser();
|
|
285711
284932
|
const APEv2Parser_1 = requireAPEv2Parser();
|
|
285712
284933
|
const FourCC_1 = requireFourCC();
|
|
@@ -285883,7 +285104,7 @@ function requireMpcSv7Parser () {
|
|
|
285883
285104
|
hasRequiredMpcSv7Parser = 1;
|
|
285884
285105
|
Object.defineProperty(MpcSv7Parser, "__esModule", { value: true });
|
|
285885
285106
|
MpcSv7Parser.MpcSv7Parser = void 0;
|
|
285886
|
-
const debug_1 = requireSrc();
|
|
285107
|
+
const debug_1 = requireSrc$1();
|
|
285887
285108
|
const BasicParser_1 = requireBasicParser();
|
|
285888
285109
|
const APEv2Parser_1 = requireAPEv2Parser();
|
|
285889
285110
|
const BitReader_1 = requireBitReader();
|
|
@@ -285935,7 +285156,7 @@ function requireMusepack () {
|
|
|
285935
285156
|
if (hasRequiredMusepack) return musepack;
|
|
285936
285157
|
hasRequiredMusepack = 1;
|
|
285937
285158
|
Object.defineProperty(musepack, "__esModule", { value: true });
|
|
285938
|
-
const debug_1 = requireSrc();
|
|
285159
|
+
const debug_1 = requireSrc$1();
|
|
285939
285160
|
const Token = lib$7;
|
|
285940
285161
|
const AbstractID3Parser_1 = requireAbstractID3Parser();
|
|
285941
285162
|
const MpcSv8Parser_1 = requireMpcSv8Parser();
|
|
@@ -286119,7 +285340,7 @@ function requireSpeexParser () {
|
|
|
286119
285340
|
hasRequiredSpeexParser = 1;
|
|
286120
285341
|
Object.defineProperty(SpeexParser, "__esModule", { value: true });
|
|
286121
285342
|
SpeexParser.SpeexParser = void 0;
|
|
286122
|
-
const debug_1 = requireSrc();
|
|
285343
|
+
const debug_1 = requireSrc$1();
|
|
286123
285344
|
const VorbisParser_1 = requireVorbisParser();
|
|
286124
285345
|
const Speex = requireSpeex();
|
|
286125
285346
|
const debug = (0, debug_1.default)('music-metadata:parser:ogg:speex');
|
|
@@ -286195,7 +285416,7 @@ function requireTheoraParser () {
|
|
|
286195
285416
|
hasRequiredTheoraParser = 1;
|
|
286196
285417
|
Object.defineProperty(TheoraParser, "__esModule", { value: true });
|
|
286197
285418
|
TheoraParser.TheoraParser = void 0;
|
|
286198
|
-
const debug_1 = requireSrc();
|
|
285419
|
+
const debug_1 = requireSrc$1();
|
|
286199
285420
|
const Theora_1 = requireTheora();
|
|
286200
285421
|
const debug = (0, debug_1.default)('music-metadata:parser:ogg:theora');
|
|
286201
285422
|
/**
|
|
@@ -286248,7 +285469,7 @@ function requireOggParser () {
|
|
|
286248
285469
|
OggParser.OggParser = OggParser.SegmentTable = void 0;
|
|
286249
285470
|
const Token = lib$7;
|
|
286250
285471
|
const core_1 = requireCore$1();
|
|
286251
|
-
const debug_1 = requireSrc();
|
|
285472
|
+
const debug_1 = requireSrc$1();
|
|
286252
285473
|
const util = requireUtil();
|
|
286253
285474
|
const FourCC_1 = requireFourCC();
|
|
286254
285475
|
const BasicParser_1 = requireBasicParser();
|
|
@@ -286534,7 +285755,7 @@ function requireWaveParser () {
|
|
|
286534
285755
|
WaveParser.WaveParser = void 0;
|
|
286535
285756
|
const strtok3 = requireCore$1();
|
|
286536
285757
|
const Token = lib$7;
|
|
286537
|
-
const debug_1 = requireSrc();
|
|
285758
|
+
const debug_1 = requireSrc$1();
|
|
286538
285759
|
const riff = requireRiffChunk();
|
|
286539
285760
|
const WaveChunk = requireWaveChunk();
|
|
286540
285761
|
const ID3v2Parser_1 = requireID3v2Parser();
|
|
@@ -286794,7 +286015,7 @@ function requireWavPackParser () {
|
|
|
286794
286015
|
const FourCC_1 = requireFourCC();
|
|
286795
286016
|
const BasicParser_1 = requireBasicParser();
|
|
286796
286017
|
const WavPackToken_1 = requireWavPackToken();
|
|
286797
|
-
const debug_1 = requireSrc();
|
|
286018
|
+
const debug_1 = requireSrc$1();
|
|
286798
286019
|
const debug = (0, debug_1.default)('music-metadata:parser:WavPack');
|
|
286799
286020
|
/**
|
|
286800
286021
|
* WavPack Parser
|
|
@@ -286961,7 +286182,7 @@ function requireDsfParser () {
|
|
|
286961
286182
|
hasRequiredDsfParser = 1;
|
|
286962
286183
|
Object.defineProperty(DsfParser, "__esModule", { value: true });
|
|
286963
286184
|
DsfParser.DsfParser = void 0;
|
|
286964
|
-
const debug_1 = requireSrc();
|
|
286185
|
+
const debug_1 = requireSrc$1();
|
|
286965
286186
|
const AbstractID3Parser_1 = requireAbstractID3Parser();
|
|
286966
286187
|
const DsfChunk_1 = requireDsfChunk();
|
|
286967
286188
|
const ID3v2Parser_1 = requireID3v2Parser();
|
|
@@ -287057,7 +286278,7 @@ function requireDsdiffParser () {
|
|
|
287057
286278
|
Object.defineProperty(DsdiffParser, "__esModule", { value: true });
|
|
287058
286279
|
DsdiffParser.DsdiffParser = void 0;
|
|
287059
286280
|
const Token = lib$7;
|
|
287060
|
-
const debug_1 = requireSrc();
|
|
286281
|
+
const debug_1 = requireSrc$1();
|
|
287061
286282
|
const strtok3 = requireCore$1();
|
|
287062
286283
|
const FourCC_1 = requireFourCC();
|
|
287063
286284
|
const BasicParser_1 = requireBasicParser();
|
|
@@ -287497,7 +286718,7 @@ function requireMatroskaParser () {
|
|
|
287497
286718
|
Object.defineProperty(MatroskaParser, "__esModule", { value: true });
|
|
287498
286719
|
MatroskaParser.MatroskaParser = void 0;
|
|
287499
286720
|
const token_types_1 = lib$7;
|
|
287500
|
-
const debug_1 = requireSrc();
|
|
286721
|
+
const debug_1 = requireSrc$1();
|
|
287501
286722
|
const BasicParser_1 = requireBasicParser();
|
|
287502
286723
|
const types_1 = requireTypes();
|
|
287503
286724
|
const matroskaDtd = requireMatroskaDtd();
|
|
@@ -287743,7 +286964,7 @@ function requireParserFactory () {
|
|
|
287743
286964
|
const FileType = core$2;
|
|
287744
286965
|
const ContentType = requireContentType();
|
|
287745
286966
|
const MimeType = requireMediaTyper();
|
|
287746
|
-
const debug_1 = requireSrc();
|
|
286967
|
+
const debug_1 = requireSrc$1();
|
|
287747
286968
|
const MetadataCollector_1 = requireMetadataCollector();
|
|
287748
286969
|
const AiffParser_1 = requireAiffParser();
|
|
287749
286970
|
const APEv2Parser_1 = requireAPEv2Parser();
|
|
@@ -288205,7 +287426,7 @@ function requireLib () {
|
|
|
288205
287426
|
const strtok3 = lib$9;
|
|
288206
287427
|
const Core = requireCore();
|
|
288207
287428
|
const ParserFactory_1 = requireParserFactory();
|
|
288208
|
-
const debug_1 = requireSrc();
|
|
287429
|
+
const debug_1 = requireSrc$1();
|
|
288209
287430
|
const RandomFileReader_1 = requireRandomFileReader();
|
|
288210
287431
|
const debug = (0, debug_1.default)("music-metadata:parser");
|
|
288211
287432
|
var core_1 = requireCore();
|
|
@@ -288309,8 +287530,8 @@ function requireMessagesMedia () {
|
|
|
288309
287530
|
Object.defineProperty(exports$1, "__esModule", { value: true });
|
|
288310
287531
|
exports$1.getStatusCodeForMediaRetry = exports$1.decryptMediaRetryData = exports$1.decodeMediaRetryNode = exports$1.encryptMediaRetryRequest = exports$1.getWAUploadToServer = exports$1.extensionForMediaMessage = exports$1.downloadEncryptedContent = exports$1.downloadContentFromMessage = exports$1.getUrlFromDirectPath = exports$1.encryptedStream = exports$1.getHttpStream = exports$1.generateThumbnail = exports$1.getStream = exports$1.toBuffer = exports$1.toReadable = exports$1.getAudioDuration = exports$1.mediaMessageSHA256B64 = exports$1.generateProfilePicture = exports$1.encodeBase64EncodedStringForUpload = exports$1.extractImageThumb = exports$1.getMediaKeys = exports$1.hkdfInfoKey = void 0;
|
|
288311
287532
|
const boom_1 = lib$5;
|
|
288312
|
-
const child_process_1 = require$$1$
|
|
288313
|
-
const Crypto = __importStar(require$$1$
|
|
287533
|
+
const child_process_1 = require$$1$5;
|
|
287534
|
+
const Crypto = __importStar(require$$1$3);
|
|
288314
287535
|
const events_1 = require$$0$8;
|
|
288315
287536
|
const fs_1 = require$$0$5;
|
|
288316
287537
|
const os_1 = require$$2;
|
|
@@ -288329,7 +287550,7 @@ function requireMessagesMedia () {
|
|
|
288329
287550
|
return jimp;
|
|
288330
287551
|
})(),
|
|
288331
287552
|
(async () => {
|
|
288332
|
-
const sharp = await Promise.resolve().then(() => __importStar(require$$0$
|
|
287553
|
+
const sharp = await Promise.resolve().then(() => __importStar(require$$0$c)).catch(() => { });
|
|
288333
287554
|
return sharp;
|
|
288334
287555
|
})()
|
|
288335
287556
|
]);
|
|
@@ -289641,7 +288862,7 @@ function requireValidateConnection () {
|
|
|
289641
288862
|
Object.defineProperty(exports$1, "__esModule", { value: true });
|
|
289642
288863
|
exports$1.encodeSignedDeviceIdentity = exports$1.configureSuccessfulPairing = exports$1.generateRegistrationNode = exports$1.generateLoginNode = void 0;
|
|
289643
288864
|
const boom_1 = lib$5;
|
|
289644
|
-
const crypto_1 = require$$1$
|
|
288865
|
+
const crypto_1 = require$$1$3;
|
|
289645
288866
|
const WAProto_1 = WAProto;
|
|
289646
288867
|
const Defaults_1 = requireDefaults();
|
|
289647
288868
|
const WABinary_1 = WABinary;
|
|
@@ -290844,7 +290065,7 @@ function requireAuthUtils () {
|
|
|
290844
290065
|
};
|
|
290845
290066
|
Object.defineProperty(authUtils, "__esModule", { value: true });
|
|
290846
290067
|
authUtils.initAuthCreds = authUtils.addTransactionCapability = authUtils.makeCacheableSignalKeyStore = void 0;
|
|
290847
|
-
const crypto_1 = require$$1$
|
|
290068
|
+
const crypto_1 = require$$1$3;
|
|
290848
290069
|
const node_cache_1 = __importDefault(nodeCacheExports);
|
|
290849
290070
|
const crypto_2 = requireCrypto();
|
|
290850
290071
|
const generics_1 = generics;
|
|
@@ -292349,7 +291570,7 @@ var business = {};
|
|
|
292349
291570
|
Object.defineProperty(exports$1, "__esModule", { value: true });
|
|
292350
291571
|
exports$1.uploadingNecessaryImages = exports$1.uploadingNecessaryImagesOfProduct = exports$1.parseProductNode = exports$1.toProductNode = exports$1.parseOrderDetailsNode = exports$1.parseCollectionsNode = exports$1.parseCatalogNode = void 0;
|
|
292351
291572
|
const boom_1 = lib$5;
|
|
292352
|
-
const crypto_1 = require$$1$
|
|
291573
|
+
const crypto_1 = require$$1$3;
|
|
292353
291574
|
const os_1 = require$$2;
|
|
292354
291575
|
const path_1 = require$$1;
|
|
292355
291576
|
const fs_1 = require$$0$5;
|
|
@@ -294571,7 +293792,7 @@ var receiver = Receiver$1;
|
|
|
294571
293792
|
/* eslint no-unused-vars: ["error", { "varsIgnorePattern": "^Duplex" }] */
|
|
294572
293793
|
|
|
294573
293794
|
const { Duplex: Duplex$3 } = require$$0$4;
|
|
294574
|
-
const { randomFillSync } = require$$1$
|
|
293795
|
+
const { randomFillSync } = require$$1$3;
|
|
294575
293796
|
|
|
294576
293797
|
const PerMessageDeflate$2 = permessageDeflate;
|
|
294577
293798
|
const { EMPTY_BUFFER: EMPTY_BUFFER$1, kWebSocket: kWebSocket$2, NOOP: NOOP$1 } = constants;
|
|
@@ -295664,7 +294885,7 @@ const https = require$$5$1;
|
|
|
295664
294885
|
const http$1 = require$$4$1;
|
|
295665
294886
|
const net = require$$3$2;
|
|
295666
294887
|
const tls = require$$4$3;
|
|
295667
|
-
const { randomBytes, createHash: createHash$1 } = require$$1$
|
|
294888
|
+
const { randomBytes, createHash: createHash$1 } = require$$1$3;
|
|
295668
294889
|
const { Duplex: Duplex$2, Readable } = require$$0$4;
|
|
295669
294890
|
const { URL: URL$1 } = require$$7;
|
|
295670
294891
|
|
|
@@ -297269,7 +296490,7 @@ var subprotocol$1 = { parse };
|
|
|
297269
296490
|
const EventEmitter = require$$0$8;
|
|
297270
296491
|
const http = require$$4$1;
|
|
297271
296492
|
const { Duplex } = require$$0$4;
|
|
297272
|
-
const { createHash } = require$$1$
|
|
296493
|
+
const { createHash } = require$$1$3;
|
|
297273
296494
|
|
|
297274
296495
|
const extension = extension$1;
|
|
297275
296496
|
const PerMessageDeflate = permessageDeflate;
|
|
@@ -297839,7 +297060,7 @@ const Types_1$2 = Types;
|
|
|
297839
297060
|
const Utils_1$3 = requireUtils();
|
|
297840
297061
|
const event_buffer_1 = requireEventBuffer();
|
|
297841
297062
|
const WABinary_1$4 = WABinary;
|
|
297842
|
-
const crypto_1$1 = require$$1$
|
|
297063
|
+
const crypto_1$1 = require$$1$3;
|
|
297843
297064
|
/**
|
|
297844
297065
|
* Connects to WA servers and performs:
|
|
297845
297066
|
* - simple queries (no retry mechanism, wait for connection establishment)
|
|
@@ -300131,7 +299352,7 @@ const process_message_1 = requireProcessMessage();
|
|
|
300131
299352
|
const WABinary_1$1 = WABinary;
|
|
300132
299353
|
const groups_1 = groups;
|
|
300133
299354
|
const messages_send_1 = messagesSend;
|
|
300134
|
-
const crypto_1 = require$$1$
|
|
299355
|
+
const crypto_1 = require$$1$3;
|
|
300135
299356
|
const makeMessagesRecvSocket = (config) => {
|
|
300136
299357
|
const { logger, retryRequestDelayMs, getMessage, sentMessagesCache, shouldIgnoreJid } = config;
|
|
300137
299358
|
const sock = (0, messages_send_1.makeMessagesSocket)(config);
|
|
@@ -301868,11 +301089,15 @@ class SherpaProvider extends ProviderClass {
|
|
|
301868
301089
|
this.logger.log(`[${new Date().toISOString()}] Message received from phone, id=${messageCtx.requestId}`, messageCtx);
|
|
301869
301090
|
}
|
|
301870
301091
|
}
|
|
301092
|
+
// Buscar siempre el que tenga formato @s.whatsapp.net (puede estar en remoteJid o remoteJidAlt)
|
|
301093
|
+
const remoteJid = messageCtx?.key?.remoteJid;
|
|
301094
|
+
const remoteJidAlt = messageCtx?.key?.remoteJidAlt;
|
|
301095
|
+
const fromParse = remoteJid?.includes('@lid') ? remoteJidAlt : remoteJid;
|
|
301871
301096
|
let payload = {
|
|
301872
301097
|
...messageCtx,
|
|
301873
301098
|
body: textToBody,
|
|
301874
301099
|
name: messageCtx?.pushName,
|
|
301875
|
-
from:
|
|
301100
|
+
from: baileyCleanNumber(fromParse),
|
|
301876
301101
|
};
|
|
301877
301102
|
if (messageCtx.message?.locationMessage) {
|
|
301878
301103
|
const { degreesLatitude, degreesLongitude } = messageCtx.message.locationMessage;
|