@builderbot/provider-baileys 1.3.13 → 1.3.14-alpha.148
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/bailey.d.ts.map +1 -1
- package/dist/index.cjs +160 -156
- package/dist/index.mjs +166 -162
- package/package.json +3 -3
package/dist/index.mjs
CHANGED
|
@@ -1001,7 +1001,7 @@ function retry () {
|
|
|
1001
1001
|
}
|
|
1002
1002
|
}
|
|
1003
1003
|
|
|
1004
|
-
(function (exports) {
|
|
1004
|
+
(function (exports$1) {
|
|
1005
1005
|
// This is adapted from https://github.com/normalize/mz
|
|
1006
1006
|
// Copyright (c) 2014-2016 Jonathan Ong me@jongleberry.com and Contributors
|
|
1007
1007
|
const u = universalify$1.fromCallback;
|
|
@@ -1056,16 +1056,16 @@ function retry () {
|
|
|
1056
1056
|
});
|
|
1057
1057
|
|
|
1058
1058
|
// Export cloned fs:
|
|
1059
|
-
Object.assign(exports, fs);
|
|
1059
|
+
Object.assign(exports$1, fs);
|
|
1060
1060
|
|
|
1061
1061
|
// Universalify async methods:
|
|
1062
1062
|
api.forEach(method => {
|
|
1063
|
-
exports[method] = u(fs[method]);
|
|
1063
|
+
exports$1[method] = u(fs[method]);
|
|
1064
1064
|
});
|
|
1065
1065
|
|
|
1066
1066
|
// We differ from mz/fs in that we still ship the old, broken, fs.exists()
|
|
1067
1067
|
// since we are a drop-in replacement for the native module
|
|
1068
|
-
exports.exists = function (filename, callback) {
|
|
1068
|
+
exports$1.exists = function (filename, callback) {
|
|
1069
1069
|
if (typeof callback === 'function') {
|
|
1070
1070
|
return fs.exists(filename, callback)
|
|
1071
1071
|
}
|
|
@@ -1076,7 +1076,7 @@ function retry () {
|
|
|
1076
1076
|
|
|
1077
1077
|
// fs.read(), fs.write(), fs.readv(), & fs.writev() need special treatment due to multiple callback args
|
|
1078
1078
|
|
|
1079
|
-
exports.read = function (fd, buffer, offset, length, position, callback) {
|
|
1079
|
+
exports$1.read = function (fd, buffer, offset, length, position, callback) {
|
|
1080
1080
|
if (typeof callback === 'function') {
|
|
1081
1081
|
return fs.read(fd, buffer, offset, length, position, callback)
|
|
1082
1082
|
}
|
|
@@ -1093,7 +1093,7 @@ function retry () {
|
|
|
1093
1093
|
// OR
|
|
1094
1094
|
// fs.write(fd, string[, position[, encoding]], callback)
|
|
1095
1095
|
// We need to handle both cases, so we use ...args
|
|
1096
|
-
exports.write = function (fd, buffer, ...args) {
|
|
1096
|
+
exports$1.write = function (fd, buffer, ...args) {
|
|
1097
1097
|
if (typeof args[args.length - 1] === 'function') {
|
|
1098
1098
|
return fs.write(fd, buffer, ...args)
|
|
1099
1099
|
}
|
|
@@ -1109,7 +1109,7 @@ function retry () {
|
|
|
1109
1109
|
// Function signature is
|
|
1110
1110
|
// s.readv(fd, buffers[, position], callback)
|
|
1111
1111
|
// We need to handle the optional arg, so we use ...args
|
|
1112
|
-
exports.readv = function (fd, buffers, ...args) {
|
|
1112
|
+
exports$1.readv = function (fd, buffers, ...args) {
|
|
1113
1113
|
if (typeof args[args.length - 1] === 'function') {
|
|
1114
1114
|
return fs.readv(fd, buffers, ...args)
|
|
1115
1115
|
}
|
|
@@ -1125,7 +1125,7 @@ function retry () {
|
|
|
1125
1125
|
// Function signature is
|
|
1126
1126
|
// s.writev(fd, buffers[, position], callback)
|
|
1127
1127
|
// We need to handle the optional arg, so we use ...args
|
|
1128
|
-
exports.writev = function (fd, buffers, ...args) {
|
|
1128
|
+
exports$1.writev = function (fd, buffers, ...args) {
|
|
1129
1129
|
if (typeof args[args.length - 1] === 'function') {
|
|
1130
1130
|
return fs.writev(fd, buffers, ...args)
|
|
1131
1131
|
}
|
|
@@ -1140,7 +1140,7 @@ function retry () {
|
|
|
1140
1140
|
|
|
1141
1141
|
// fs.realpath.native sometimes not available if fs is monkey-patched
|
|
1142
1142
|
if (typeof fs.realpath.native === 'function') {
|
|
1143
|
-
exports.realpath.native = u(fs.realpath.native);
|
|
1143
|
+
exports$1.realpath.native = u(fs.realpath.native);
|
|
1144
1144
|
} else {
|
|
1145
1145
|
process.emitWarning(
|
|
1146
1146
|
'fs.realpath.native is not a function. Is fs being monkey-patched?',
|
|
@@ -14611,7 +14611,7 @@ var mimeDb = require$$0$2;
|
|
|
14611
14611
|
* MIT Licensed
|
|
14612
14612
|
*/
|
|
14613
14613
|
|
|
14614
|
-
(function (exports) {
|
|
14614
|
+
(function (exports$1) {
|
|
14615
14615
|
|
|
14616
14616
|
/**
|
|
14617
14617
|
* Module dependencies.
|
|
@@ -14634,16 +14634,16 @@ var mimeDb = require$$0$2;
|
|
|
14634
14634
|
* @public
|
|
14635
14635
|
*/
|
|
14636
14636
|
|
|
14637
|
-
exports.charset = charset;
|
|
14638
|
-
exports.charsets = { lookup: charset };
|
|
14639
|
-
exports.contentType = contentType;
|
|
14640
|
-
exports.extension = extension;
|
|
14641
|
-
exports.extensions = Object.create(null);
|
|
14642
|
-
exports.lookup = lookup;
|
|
14643
|
-
exports.types = Object.create(null);
|
|
14637
|
+
exports$1.charset = charset;
|
|
14638
|
+
exports$1.charsets = { lookup: charset };
|
|
14639
|
+
exports$1.contentType = contentType;
|
|
14640
|
+
exports$1.extension = extension;
|
|
14641
|
+
exports$1.extensions = Object.create(null);
|
|
14642
|
+
exports$1.lookup = lookup;
|
|
14643
|
+
exports$1.types = Object.create(null);
|
|
14644
14644
|
|
|
14645
14645
|
// Populate the extensions/types maps
|
|
14646
|
-
populateMaps(exports.extensions, exports.types);
|
|
14646
|
+
populateMaps(exports$1.extensions, exports$1.types);
|
|
14647
14647
|
|
|
14648
14648
|
/**
|
|
14649
14649
|
* Get the default charset for a MIME type.
|
|
@@ -14687,7 +14687,7 @@ var mimeDb = require$$0$2;
|
|
|
14687
14687
|
}
|
|
14688
14688
|
|
|
14689
14689
|
var mime = str.indexOf('/') === -1
|
|
14690
|
-
? exports.lookup(str)
|
|
14690
|
+
? exports$1.lookup(str)
|
|
14691
14691
|
: str;
|
|
14692
14692
|
|
|
14693
14693
|
if (!mime) {
|
|
@@ -14696,7 +14696,7 @@ var mimeDb = require$$0$2;
|
|
|
14696
14696
|
|
|
14697
14697
|
// TODO: use content-type or other module
|
|
14698
14698
|
if (mime.indexOf('charset') === -1) {
|
|
14699
|
-
var charset = exports.charset(mime);
|
|
14699
|
+
var charset = exports$1.charset(mime);
|
|
14700
14700
|
if (charset) mime += '; charset=' + charset.toLowerCase();
|
|
14701
14701
|
}
|
|
14702
14702
|
|
|
@@ -14719,7 +14719,7 @@ var mimeDb = require$$0$2;
|
|
|
14719
14719
|
var match = EXTRACT_TYPE_REGEXP.exec(type);
|
|
14720
14720
|
|
|
14721
14721
|
// get extensions
|
|
14722
|
-
var exts = match && exports.extensions[match[1].toLowerCase()];
|
|
14722
|
+
var exts = match && exports$1.extensions[match[1].toLowerCase()];
|
|
14723
14723
|
|
|
14724
14724
|
if (!exts || !exts.length) {
|
|
14725
14725
|
return false
|
|
@@ -14749,7 +14749,7 @@ var mimeDb = require$$0$2;
|
|
|
14749
14749
|
return false
|
|
14750
14750
|
}
|
|
14751
14751
|
|
|
14752
|
-
return exports.types[extension] || false
|
|
14752
|
+
return exports$1.types[extension] || false
|
|
14753
14753
|
}
|
|
14754
14754
|
|
|
14755
14755
|
/**
|
|
@@ -15889,11 +15889,11 @@ function requireNode_cache () {
|
|
|
15889
15889
|
*/
|
|
15890
15890
|
|
|
15891
15891
|
(function() {
|
|
15892
|
-
var exports;
|
|
15892
|
+
var exports$1;
|
|
15893
15893
|
|
|
15894
|
-
exports = nodeCache.exports = requireNode_cache();
|
|
15894
|
+
exports$1 = nodeCache.exports = requireNode_cache();
|
|
15895
15895
|
|
|
15896
|
-
exports.version = '5.1.2';
|
|
15896
|
+
exports$1.version = '5.1.2';
|
|
15897
15897
|
|
|
15898
15898
|
}).call(commonjsGlobal);
|
|
15899
15899
|
|
|
@@ -19437,7 +19437,7 @@ function flush () {
|
|
|
19437
19437
|
|
|
19438
19438
|
var safeStableStringify = {exports: {}};
|
|
19439
19439
|
|
|
19440
|
-
(function (module, exports) {
|
|
19440
|
+
(function (module, exports$1) {
|
|
19441
19441
|
|
|
19442
19442
|
const { hasOwnProperty } = Object.prototype;
|
|
19443
19443
|
|
|
@@ -19452,9 +19452,9 @@ var safeStableStringify = {exports: {}};
|
|
|
19452
19452
|
stringify.default = stringify;
|
|
19453
19453
|
|
|
19454
19454
|
// @ts-expect-error used for named export
|
|
19455
|
-
exports.stringify = stringify;
|
|
19455
|
+
exports$1.stringify = stringify;
|
|
19456
19456
|
// @ts-expect-error used for named export
|
|
19457
|
-
exports.configure = configure;
|
|
19457
|
+
exports$1.configure = configure;
|
|
19458
19458
|
|
|
19459
19459
|
module.exports = stringify;
|
|
19460
19460
|
|
|
@@ -20312,7 +20312,7 @@ const normalize = createArgsNormalizer(defaultOptions);
|
|
|
20312
20312
|
|
|
20313
20313
|
const serializers = Object.assign(Object.create(null), stdSerializers);
|
|
20314
20314
|
|
|
20315
|
-
function pino (...args) {
|
|
20315
|
+
function pino$1 (...args) {
|
|
20316
20316
|
const instance = {};
|
|
20317
20317
|
const { opts, stream } = normalize(instance, caller(), ...args);
|
|
20318
20318
|
const {
|
|
@@ -20416,7 +20416,7 @@ function pino (...args) {
|
|
|
20416
20416
|
return instance
|
|
20417
20417
|
}
|
|
20418
20418
|
|
|
20419
|
-
pino$2.exports = pino;
|
|
20419
|
+
pino$2.exports = pino$1;
|
|
20420
20420
|
|
|
20421
20421
|
pino$2.exports.destination = (dest = process.stdout.fd) => {
|
|
20422
20422
|
if (typeof dest === 'object') {
|
|
@@ -20438,11 +20438,11 @@ pino$2.exports.symbols = symbols;
|
|
|
20438
20438
|
pino$2.exports.version = version$1;
|
|
20439
20439
|
|
|
20440
20440
|
// Enables default and name export with TypeScript and Babel
|
|
20441
|
-
pino$2.exports.default = pino;
|
|
20442
|
-
pino$2.exports.pino = pino;
|
|
20441
|
+
pino$2.exports.default = pino$1;
|
|
20442
|
+
pino$2.exports.pino = pino$1;
|
|
20443
20443
|
|
|
20444
20444
|
var pinoExports = pino$2.exports;
|
|
20445
|
-
var pino
|
|
20445
|
+
var pino = /*@__PURE__*/getDefaultExportFromCjs(pinoExports);
|
|
20446
20446
|
|
|
20447
20447
|
var dist = {};
|
|
20448
20448
|
|
|
@@ -20450,7 +20450,7 @@ var Sticker = {};
|
|
|
20450
20450
|
|
|
20451
20451
|
var fs$k = {};
|
|
20452
20452
|
|
|
20453
|
-
(function (exports) {
|
|
20453
|
+
(function (exports$1) {
|
|
20454
20454
|
// This is adapted from https://github.com/normalize/mz
|
|
20455
20455
|
// Copyright (c) 2014-2016 Jonathan Ong me@jongleberry.com and Contributors
|
|
20456
20456
|
const u = universalify$1.fromCallback;
|
|
@@ -20500,16 +20500,16 @@ var fs$k = {};
|
|
|
20500
20500
|
});
|
|
20501
20501
|
|
|
20502
20502
|
// Export cloned fs:
|
|
20503
|
-
Object.assign(exports, fs);
|
|
20503
|
+
Object.assign(exports$1, fs);
|
|
20504
20504
|
|
|
20505
20505
|
// Universalify async methods:
|
|
20506
20506
|
api.forEach(method => {
|
|
20507
|
-
exports[method] = u(fs[method]);
|
|
20507
|
+
exports$1[method] = u(fs[method]);
|
|
20508
20508
|
});
|
|
20509
20509
|
|
|
20510
20510
|
// We differ from mz/fs in that we still ship the old, broken, fs.exists()
|
|
20511
20511
|
// since we are a drop-in replacement for the native module
|
|
20512
|
-
exports.exists = function (filename, callback) {
|
|
20512
|
+
exports$1.exists = function (filename, callback) {
|
|
20513
20513
|
if (typeof callback === 'function') {
|
|
20514
20514
|
return fs.exists(filename, callback)
|
|
20515
20515
|
}
|
|
@@ -20520,7 +20520,7 @@ var fs$k = {};
|
|
|
20520
20520
|
|
|
20521
20521
|
// fs.read(), fs.write(), & fs.writev() need special treatment due to multiple callback args
|
|
20522
20522
|
|
|
20523
|
-
exports.read = function (fd, buffer, offset, length, position, callback) {
|
|
20523
|
+
exports$1.read = function (fd, buffer, offset, length, position, callback) {
|
|
20524
20524
|
if (typeof callback === 'function') {
|
|
20525
20525
|
return fs.read(fd, buffer, offset, length, position, callback)
|
|
20526
20526
|
}
|
|
@@ -20537,7 +20537,7 @@ var fs$k = {};
|
|
|
20537
20537
|
// OR
|
|
20538
20538
|
// fs.write(fd, string[, position[, encoding]], callback)
|
|
20539
20539
|
// We need to handle both cases, so we use ...args
|
|
20540
|
-
exports.write = function (fd, buffer, ...args) {
|
|
20540
|
+
exports$1.write = function (fd, buffer, ...args) {
|
|
20541
20541
|
if (typeof args[args.length - 1] === 'function') {
|
|
20542
20542
|
return fs.write(fd, buffer, ...args)
|
|
20543
20543
|
}
|
|
@@ -20555,7 +20555,7 @@ var fs$k = {};
|
|
|
20555
20555
|
// Function signature is
|
|
20556
20556
|
// s.writev(fd, buffers[, position], callback)
|
|
20557
20557
|
// We need to handle the optional arg, so we use ...args
|
|
20558
|
-
exports.writev = function (fd, buffers, ...args) {
|
|
20558
|
+
exports$1.writev = function (fd, buffers, ...args) {
|
|
20559
20559
|
if (typeof args[args.length - 1] === 'function') {
|
|
20560
20560
|
return fs.writev(fd, buffers, ...args)
|
|
20561
20561
|
}
|
|
@@ -20571,7 +20571,7 @@ var fs$k = {};
|
|
|
20571
20571
|
|
|
20572
20572
|
// fs.realpath.native sometimes not available if fs is monkey-patched
|
|
20573
20573
|
if (typeof fs.realpath.native === 'function') {
|
|
20574
|
-
exports.realpath.native = u(fs.realpath.native);
|
|
20574
|
+
exports$1.realpath.native = u(fs.realpath.native);
|
|
20575
20575
|
} else {
|
|
20576
20576
|
process.emitWarning(
|
|
20577
20577
|
'fs.realpath.native is not a function. Is fs being monkey-patched?',
|
|
@@ -23739,17 +23739,17 @@ var hasRequiredBrowser;
|
|
|
23739
23739
|
function requireBrowser () {
|
|
23740
23740
|
if (hasRequiredBrowser) return browser.exports;
|
|
23741
23741
|
hasRequiredBrowser = 1;
|
|
23742
|
-
(function (module, exports) {
|
|
23742
|
+
(function (module, exports$1) {
|
|
23743
23743
|
/**
|
|
23744
23744
|
* This is the web browser implementation of `debug()`.
|
|
23745
23745
|
*/
|
|
23746
23746
|
|
|
23747
|
-
exports.formatArgs = formatArgs;
|
|
23748
|
-
exports.save = save;
|
|
23749
|
-
exports.load = load;
|
|
23750
|
-
exports.useColors = useColors;
|
|
23751
|
-
exports.storage = localstorage();
|
|
23752
|
-
exports.destroy = (() => {
|
|
23747
|
+
exports$1.formatArgs = formatArgs;
|
|
23748
|
+
exports$1.save = save;
|
|
23749
|
+
exports$1.load = load;
|
|
23750
|
+
exports$1.useColors = useColors;
|
|
23751
|
+
exports$1.storage = localstorage();
|
|
23752
|
+
exports$1.destroy = (() => {
|
|
23753
23753
|
let warned = false;
|
|
23754
23754
|
|
|
23755
23755
|
return () => {
|
|
@@ -23764,7 +23764,7 @@ function requireBrowser () {
|
|
|
23764
23764
|
* Colors.
|
|
23765
23765
|
*/
|
|
23766
23766
|
|
|
23767
|
-
exports.colors = [
|
|
23767
|
+
exports$1.colors = [
|
|
23768
23768
|
'#0000CC',
|
|
23769
23769
|
'#0000FF',
|
|
23770
23770
|
'#0033CC',
|
|
@@ -23929,7 +23929,7 @@ function requireBrowser () {
|
|
|
23929
23929
|
*
|
|
23930
23930
|
* @api public
|
|
23931
23931
|
*/
|
|
23932
|
-
exports.log = console.debug || console.log || (() => {});
|
|
23932
|
+
exports$1.log = console.debug || console.log || (() => {});
|
|
23933
23933
|
|
|
23934
23934
|
/**
|
|
23935
23935
|
* Save `namespaces`.
|
|
@@ -23940,9 +23940,9 @@ function requireBrowser () {
|
|
|
23940
23940
|
function save(namespaces) {
|
|
23941
23941
|
try {
|
|
23942
23942
|
if (namespaces) {
|
|
23943
|
-
exports.storage.setItem('debug', namespaces);
|
|
23943
|
+
exports$1.storage.setItem('debug', namespaces);
|
|
23944
23944
|
} else {
|
|
23945
|
-
exports.storage.removeItem('debug');
|
|
23945
|
+
exports$1.storage.removeItem('debug');
|
|
23946
23946
|
}
|
|
23947
23947
|
} catch (error) {
|
|
23948
23948
|
// Swallow
|
|
@@ -23959,7 +23959,7 @@ function requireBrowser () {
|
|
|
23959
23959
|
function load() {
|
|
23960
23960
|
let r;
|
|
23961
23961
|
try {
|
|
23962
|
-
r = exports.storage.getItem('debug') || exports.storage.getItem('DEBUG') ;
|
|
23962
|
+
r = exports$1.storage.getItem('debug') || exports$1.storage.getItem('DEBUG') ;
|
|
23963
23963
|
} catch (error) {
|
|
23964
23964
|
// Swallow
|
|
23965
23965
|
// XXX (@Qix-) should we be logging these?
|
|
@@ -23995,7 +23995,7 @@ function requireBrowser () {
|
|
|
23995
23995
|
}
|
|
23996
23996
|
}
|
|
23997
23997
|
|
|
23998
|
-
module.exports = requireCommon()(exports);
|
|
23998
|
+
module.exports = requireCommon()(exports$1);
|
|
23999
23999
|
|
|
24000
24000
|
const {formatters} = module.exports;
|
|
24001
24001
|
|
|
@@ -24184,7 +24184,7 @@ var hasRequiredNode;
|
|
|
24184
24184
|
function requireNode () {
|
|
24185
24185
|
if (hasRequiredNode) return node.exports;
|
|
24186
24186
|
hasRequiredNode = 1;
|
|
24187
|
-
(function (module, exports) {
|
|
24187
|
+
(function (module, exports$1) {
|
|
24188
24188
|
const tty = require$$1$4;
|
|
24189
24189
|
const util = require$$1;
|
|
24190
24190
|
|
|
@@ -24192,13 +24192,13 @@ function requireNode () {
|
|
|
24192
24192
|
* This is the Node.js implementation of `debug()`.
|
|
24193
24193
|
*/
|
|
24194
24194
|
|
|
24195
|
-
exports.init = init;
|
|
24196
|
-
exports.log = log;
|
|
24197
|
-
exports.formatArgs = formatArgs;
|
|
24198
|
-
exports.save = save;
|
|
24199
|
-
exports.load = load;
|
|
24200
|
-
exports.useColors = useColors;
|
|
24201
|
-
exports.destroy = util.deprecate(
|
|
24195
|
+
exports$1.init = init;
|
|
24196
|
+
exports$1.log = log;
|
|
24197
|
+
exports$1.formatArgs = formatArgs;
|
|
24198
|
+
exports$1.save = save;
|
|
24199
|
+
exports$1.load = load;
|
|
24200
|
+
exports$1.useColors = useColors;
|
|
24201
|
+
exports$1.destroy = util.deprecate(
|
|
24202
24202
|
() => {},
|
|
24203
24203
|
'Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.'
|
|
24204
24204
|
);
|
|
@@ -24207,7 +24207,7 @@ function requireNode () {
|
|
|
24207
24207
|
* Colors.
|
|
24208
24208
|
*/
|
|
24209
24209
|
|
|
24210
|
-
exports.colors = [6, 2, 3, 4, 5, 1];
|
|
24210
|
+
exports$1.colors = [6, 2, 3, 4, 5, 1];
|
|
24211
24211
|
|
|
24212
24212
|
try {
|
|
24213
24213
|
// Optional dependency (as in, doesn't need to be installed, NOT like optionalDependencies in package.json)
|
|
@@ -24215,7 +24215,7 @@ function requireNode () {
|
|
|
24215
24215
|
const supportsColor = requireSupportsColor();
|
|
24216
24216
|
|
|
24217
24217
|
if (supportsColor && (supportsColor.stderr || supportsColor).level >= 2) {
|
|
24218
|
-
exports.colors = [
|
|
24218
|
+
exports$1.colors = [
|
|
24219
24219
|
20,
|
|
24220
24220
|
21,
|
|
24221
24221
|
26,
|
|
@@ -24304,7 +24304,7 @@ function requireNode () {
|
|
|
24304
24304
|
* $ DEBUG_COLORS=no DEBUG_DEPTH=10 DEBUG_SHOW_HIDDEN=enabled node script.js
|
|
24305
24305
|
*/
|
|
24306
24306
|
|
|
24307
|
-
exports.inspectOpts = Object.keys(process.env).filter(key => {
|
|
24307
|
+
exports$1.inspectOpts = Object.keys(process.env).filter(key => {
|
|
24308
24308
|
return /^debug_/i.test(key);
|
|
24309
24309
|
}).reduce((obj, key) => {
|
|
24310
24310
|
// Camel-case
|
|
@@ -24336,8 +24336,8 @@ function requireNode () {
|
|
|
24336
24336
|
*/
|
|
24337
24337
|
|
|
24338
24338
|
function useColors() {
|
|
24339
|
-
return 'colors' in exports.inspectOpts ?
|
|
24340
|
-
Boolean(exports.inspectOpts.colors) :
|
|
24339
|
+
return 'colors' in exports$1.inspectOpts ?
|
|
24340
|
+
Boolean(exports$1.inspectOpts.colors) :
|
|
24341
24341
|
tty.isatty(process.stderr.fd);
|
|
24342
24342
|
}
|
|
24343
24343
|
|
|
@@ -24363,7 +24363,7 @@ function requireNode () {
|
|
|
24363
24363
|
}
|
|
24364
24364
|
|
|
24365
24365
|
function getDate() {
|
|
24366
|
-
if (exports.inspectOpts.hideDate) {
|
|
24366
|
+
if (exports$1.inspectOpts.hideDate) {
|
|
24367
24367
|
return '';
|
|
24368
24368
|
}
|
|
24369
24369
|
return new Date().toISOString() + ' ';
|
|
@@ -24374,7 +24374,7 @@ function requireNode () {
|
|
|
24374
24374
|
*/
|
|
24375
24375
|
|
|
24376
24376
|
function log(...args) {
|
|
24377
|
-
return process.stderr.write(util.formatWithOptions(exports.inspectOpts, ...args) + '\n');
|
|
24377
|
+
return process.stderr.write(util.formatWithOptions(exports$1.inspectOpts, ...args) + '\n');
|
|
24378
24378
|
}
|
|
24379
24379
|
|
|
24380
24380
|
/**
|
|
@@ -24414,13 +24414,13 @@ function requireNode () {
|
|
|
24414
24414
|
function init(debug) {
|
|
24415
24415
|
debug.inspectOpts = {};
|
|
24416
24416
|
|
|
24417
|
-
const keys = Object.keys(exports.inspectOpts);
|
|
24417
|
+
const keys = Object.keys(exports$1.inspectOpts);
|
|
24418
24418
|
for (let i = 0; i < keys.length; i++) {
|
|
24419
|
-
debug.inspectOpts[keys[i]] = exports.inspectOpts[keys[i]];
|
|
24419
|
+
debug.inspectOpts[keys[i]] = exports$1.inspectOpts[keys[i]];
|
|
24420
24420
|
}
|
|
24421
24421
|
}
|
|
24422
24422
|
|
|
24423
|
-
module.exports = requireCommon()(exports);
|
|
24423
|
+
module.exports = requireCommon()(exports$1);
|
|
24424
24424
|
|
|
24425
24425
|
const {formatters} = module.exports;
|
|
24426
24426
|
|
|
@@ -24994,7 +24994,7 @@ function requireFollowRedirects () {
|
|
|
24994
24994
|
// Wraps the key/value object of protocols with redirect functionality
|
|
24995
24995
|
function wrap(protocols) {
|
|
24996
24996
|
// Default settings
|
|
24997
|
-
var exports = {
|
|
24997
|
+
var exports$1 = {
|
|
24998
24998
|
maxRedirects: 21,
|
|
24999
24999
|
maxBodyLength: 10 * 1024 * 1024,
|
|
25000
25000
|
};
|
|
@@ -25004,7 +25004,7 @@ function requireFollowRedirects () {
|
|
|
25004
25004
|
Object.keys(protocols).forEach(function (scheme) {
|
|
25005
25005
|
var protocol = scheme + ":";
|
|
25006
25006
|
var nativeProtocol = nativeProtocols[protocol] = protocols[scheme];
|
|
25007
|
-
var wrappedProtocol = exports[scheme] = Object.create(nativeProtocol);
|
|
25007
|
+
var wrappedProtocol = exports$1[scheme] = Object.create(nativeProtocol);
|
|
25008
25008
|
|
|
25009
25009
|
// Executes a request, following redirects
|
|
25010
25010
|
function request(input, options, callback) {
|
|
@@ -25027,8 +25027,8 @@ function requireFollowRedirects () {
|
|
|
25027
25027
|
|
|
25028
25028
|
// Set defaults
|
|
25029
25029
|
options = Object.assign({
|
|
25030
|
-
maxRedirects: exports.maxRedirects,
|
|
25031
|
-
maxBodyLength: exports.maxBodyLength,
|
|
25030
|
+
maxRedirects: exports$1.maxRedirects,
|
|
25031
|
+
maxBodyLength: exports$1.maxBodyLength,
|
|
25032
25032
|
}, input, options);
|
|
25033
25033
|
options.nativeProtocols = nativeProtocols;
|
|
25034
25034
|
if (!isString(options.host) && !isString(options.hostname)) {
|
|
@@ -25053,7 +25053,7 @@ function requireFollowRedirects () {
|
|
|
25053
25053
|
get: { value: get, configurable: true, enumerable: true, writable: true },
|
|
25054
25054
|
});
|
|
25055
25055
|
});
|
|
25056
|
-
return exports;
|
|
25056
|
+
return exports$1;
|
|
25057
25057
|
}
|
|
25058
25058
|
|
|
25059
25059
|
function noop() { /* empty */ }
|
|
@@ -26424,19 +26424,19 @@ var lib$1 = {};
|
|
|
26424
26424
|
|
|
26425
26425
|
var EndOfFileStream = {};
|
|
26426
26426
|
|
|
26427
|
-
(function (exports) {
|
|
26428
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26429
|
-
exports.EndOfStreamError = exports.defaultMessages = void 0;
|
|
26430
|
-
exports.defaultMessages = 'End-Of-Stream';
|
|
26427
|
+
(function (exports$1) {
|
|
26428
|
+
Object.defineProperty(exports$1, "__esModule", { value: true });
|
|
26429
|
+
exports$1.EndOfStreamError = exports$1.defaultMessages = void 0;
|
|
26430
|
+
exports$1.defaultMessages = 'End-Of-Stream';
|
|
26431
26431
|
/**
|
|
26432
26432
|
* Thrown on read operation of the end of file or stream has been reached
|
|
26433
26433
|
*/
|
|
26434
26434
|
class EndOfStreamError extends Error {
|
|
26435
26435
|
constructor() {
|
|
26436
|
-
super(exports.defaultMessages);
|
|
26436
|
+
super(exports$1.defaultMessages);
|
|
26437
26437
|
}
|
|
26438
26438
|
}
|
|
26439
|
-
exports.EndOfStreamError = EndOfStreamError;
|
|
26439
|
+
exports$1.EndOfStreamError = EndOfStreamError;
|
|
26440
26440
|
} (EndOfFileStream));
|
|
26441
26441
|
|
|
26442
26442
|
var StreamReader = {};
|
|
@@ -26457,13 +26457,13 @@ class Deferred {
|
|
|
26457
26457
|
}
|
|
26458
26458
|
Deferred$1.Deferred = Deferred;
|
|
26459
26459
|
|
|
26460
|
-
(function (exports) {
|
|
26461
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26462
|
-
exports.StreamReader = exports.EndOfStreamError = void 0;
|
|
26460
|
+
(function (exports$1) {
|
|
26461
|
+
Object.defineProperty(exports$1, "__esModule", { value: true });
|
|
26462
|
+
exports$1.StreamReader = exports$1.EndOfStreamError = void 0;
|
|
26463
26463
|
const EndOfFileStream_1 = EndOfFileStream;
|
|
26464
26464
|
const Deferred_1 = Deferred$1;
|
|
26465
26465
|
var EndOfFileStream_2 = EndOfFileStream;
|
|
26466
|
-
Object.defineProperty(exports, "EndOfStreamError", { enumerable: true, get: function () { return EndOfFileStream_2.EndOfStreamError; } });
|
|
26466
|
+
Object.defineProperty(exports$1, "EndOfStreamError", { enumerable: true, get: function () { return EndOfFileStream_2.EndOfStreamError; } });
|
|
26467
26467
|
const maxStreamReadSize = 1 * 1024 * 1024; // Maximum request length on read-stream operation
|
|
26468
26468
|
class StreamReader {
|
|
26469
26469
|
constructor(s) {
|
|
@@ -26590,16 +26590,16 @@ Deferred$1.Deferred = Deferred;
|
|
|
26590
26590
|
}
|
|
26591
26591
|
}
|
|
26592
26592
|
}
|
|
26593
|
-
exports.StreamReader = StreamReader;
|
|
26593
|
+
exports$1.StreamReader = StreamReader;
|
|
26594
26594
|
} (StreamReader));
|
|
26595
26595
|
|
|
26596
|
-
(function (exports) {
|
|
26597
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26598
|
-
exports.StreamReader = exports.EndOfStreamError = void 0;
|
|
26596
|
+
(function (exports$1) {
|
|
26597
|
+
Object.defineProperty(exports$1, "__esModule", { value: true });
|
|
26598
|
+
exports$1.StreamReader = exports$1.EndOfStreamError = void 0;
|
|
26599
26599
|
var EndOfFileStream_1 = EndOfFileStream;
|
|
26600
|
-
Object.defineProperty(exports, "EndOfStreamError", { enumerable: true, get: function () { return EndOfFileStream_1.EndOfStreamError; } });
|
|
26600
|
+
Object.defineProperty(exports$1, "EndOfStreamError", { enumerable: true, get: function () { return EndOfFileStream_1.EndOfStreamError; } });
|
|
26601
26601
|
var StreamReader_1 = StreamReader;
|
|
26602
|
-
Object.defineProperty(exports, "StreamReader", { enumerable: true, get: function () { return StreamReader_1.StreamReader; } });
|
|
26602
|
+
Object.defineProperty(exports$1, "StreamReader", { enumerable: true, get: function () { return StreamReader_1.StreamReader; } });
|
|
26603
26603
|
} (lib$1));
|
|
26604
26604
|
|
|
26605
26605
|
Object.defineProperty(AbstractTokenizer$1, "__esModule", { value: true });
|
|
@@ -26861,13 +26861,13 @@ class BufferTokenizer extends AbstractTokenizer_1$1.AbstractTokenizer {
|
|
|
26861
26861
|
}
|
|
26862
26862
|
BufferTokenizer$1.BufferTokenizer = BufferTokenizer;
|
|
26863
26863
|
|
|
26864
|
-
(function (exports) {
|
|
26865
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26866
|
-
exports.fromBuffer = exports.fromStream = exports.EndOfStreamError = void 0;
|
|
26864
|
+
(function (exports$1) {
|
|
26865
|
+
Object.defineProperty(exports$1, "__esModule", { value: true });
|
|
26866
|
+
exports$1.fromBuffer = exports$1.fromStream = exports$1.EndOfStreamError = void 0;
|
|
26867
26867
|
const ReadStreamTokenizer_1 = ReadStreamTokenizer$1;
|
|
26868
26868
|
const BufferTokenizer_1 = BufferTokenizer$1;
|
|
26869
26869
|
var peek_readable_1 = lib$1;
|
|
26870
|
-
Object.defineProperty(exports, "EndOfStreamError", { enumerable: true, get: function () { return peek_readable_1.EndOfStreamError; } });
|
|
26870
|
+
Object.defineProperty(exports$1, "EndOfStreamError", { enumerable: true, get: function () { return peek_readable_1.EndOfStreamError; } });
|
|
26871
26871
|
/**
|
|
26872
26872
|
* Construct ReadStreamTokenizer from given Stream.
|
|
26873
26873
|
* Will set fileSize, if provided given Stream has set the .path property/
|
|
@@ -26879,7 +26879,7 @@ BufferTokenizer$1.BufferTokenizer = BufferTokenizer;
|
|
|
26879
26879
|
fileInfo = fileInfo ? fileInfo : {};
|
|
26880
26880
|
return new ReadStreamTokenizer_1.ReadStreamTokenizer(stream, fileInfo);
|
|
26881
26881
|
}
|
|
26882
|
-
exports.fromStream = fromStream;
|
|
26882
|
+
exports$1.fromStream = fromStream;
|
|
26883
26883
|
/**
|
|
26884
26884
|
* Construct ReadStreamTokenizer from given Buffer.
|
|
26885
26885
|
* @param uint8Array - Uint8Array to tokenize
|
|
@@ -26889,7 +26889,7 @@ BufferTokenizer$1.BufferTokenizer = BufferTokenizer;
|
|
|
26889
26889
|
function fromBuffer(uint8Array, fileInfo) {
|
|
26890
26890
|
return new BufferTokenizer_1.BufferTokenizer(uint8Array, fileInfo);
|
|
26891
26891
|
}
|
|
26892
|
-
exports.fromBuffer = fromBuffer;
|
|
26892
|
+
exports$1.fromBuffer = fromBuffer;
|
|
26893
26893
|
} (core$2));
|
|
26894
26894
|
|
|
26895
26895
|
var FileTokenizer$1 = {};
|
|
@@ -26949,16 +26949,16 @@ async function fromFile$1(sourceFilePath) {
|
|
|
26949
26949
|
}
|
|
26950
26950
|
FileTokenizer$1.fromFile = fromFile$1;
|
|
26951
26951
|
|
|
26952
|
-
(function (exports) {
|
|
26953
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26954
|
-
exports.fromStream = exports.fromBuffer = exports.EndOfStreamError = exports.fromFile = void 0;
|
|
26952
|
+
(function (exports$1) {
|
|
26953
|
+
Object.defineProperty(exports$1, "__esModule", { value: true });
|
|
26954
|
+
exports$1.fromStream = exports$1.fromBuffer = exports$1.EndOfStreamError = exports$1.fromFile = void 0;
|
|
26955
26955
|
const fs = FsPromise;
|
|
26956
26956
|
const core = core$2;
|
|
26957
26957
|
var FileTokenizer_1 = FileTokenizer$1;
|
|
26958
|
-
Object.defineProperty(exports, "fromFile", { enumerable: true, get: function () { return FileTokenizer_1.fromFile; } });
|
|
26958
|
+
Object.defineProperty(exports$1, "fromFile", { enumerable: true, get: function () { return FileTokenizer_1.fromFile; } });
|
|
26959
26959
|
var core_1 = core$2;
|
|
26960
|
-
Object.defineProperty(exports, "EndOfStreamError", { enumerable: true, get: function () { return core_1.EndOfStreamError; } });
|
|
26961
|
-
Object.defineProperty(exports, "fromBuffer", { enumerable: true, get: function () { return core_1.fromBuffer; } });
|
|
26960
|
+
Object.defineProperty(exports$1, "EndOfStreamError", { enumerable: true, get: function () { return core_1.EndOfStreamError; } });
|
|
26961
|
+
Object.defineProperty(exports$1, "fromBuffer", { enumerable: true, get: function () { return core_1.fromBuffer; } });
|
|
26962
26962
|
/**
|
|
26963
26963
|
* Construct ReadStreamTokenizer from given Stream.
|
|
26964
26964
|
* Will set fileSize, if provided given Stream has set the .path property.
|
|
@@ -26975,7 +26975,7 @@ FileTokenizer$1.fromFile = fromFile$1;
|
|
|
26975
26975
|
}
|
|
26976
26976
|
return core.fromStream(stream, fileInfo);
|
|
26977
26977
|
}
|
|
26978
|
-
exports.fromStream = fromStream;
|
|
26978
|
+
exports$1.fromStream = fromStream;
|
|
26979
26979
|
} (lib$2));
|
|
26980
26980
|
|
|
26981
26981
|
var lib = {};
|
|
@@ -27069,9 +27069,9 @@ ieee754.write = function (buffer, value, offset, isLE, mLen, nBytes) {
|
|
|
27069
27069
|
buffer[offset + i - d] |= s * 128;
|
|
27070
27070
|
};
|
|
27071
27071
|
|
|
27072
|
-
(function (exports) {
|
|
27073
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27074
|
-
exports.AnsiStringType = exports.StringType = exports.BufferType = exports.Uint8ArrayType = exports.IgnoreType = exports.Float80_LE = exports.Float80_BE = exports.Float64_LE = exports.Float64_BE = exports.Float32_LE = exports.Float32_BE = exports.Float16_LE = exports.Float16_BE = exports.INT64_BE = exports.UINT64_BE = exports.INT64_LE = exports.UINT64_LE = exports.INT32_LE = exports.INT32_BE = exports.INT24_BE = exports.INT24_LE = exports.INT16_LE = exports.INT16_BE = exports.INT8 = exports.UINT32_BE = exports.UINT32_LE = exports.UINT24_BE = exports.UINT24_LE = exports.UINT16_BE = exports.UINT16_LE = exports.UINT8 = void 0;
|
|
27072
|
+
(function (exports$1) {
|
|
27073
|
+
Object.defineProperty(exports$1, "__esModule", { value: true });
|
|
27074
|
+
exports$1.AnsiStringType = exports$1.StringType = exports$1.BufferType = exports$1.Uint8ArrayType = exports$1.IgnoreType = exports$1.Float80_LE = exports$1.Float80_BE = exports$1.Float64_LE = exports$1.Float64_BE = exports$1.Float32_LE = exports$1.Float32_BE = exports$1.Float16_LE = exports$1.Float16_BE = exports$1.INT64_BE = exports$1.UINT64_BE = exports$1.INT64_LE = exports$1.UINT64_LE = exports$1.INT32_LE = exports$1.INT32_BE = exports$1.INT24_BE = exports$1.INT24_LE = exports$1.INT16_LE = exports$1.INT16_BE = exports$1.INT8 = exports$1.UINT32_BE = exports$1.UINT32_LE = exports$1.UINT24_BE = exports$1.UINT24_LE = exports$1.UINT16_BE = exports$1.UINT16_LE = exports$1.UINT8 = void 0;
|
|
27075
27075
|
const ieee754$1 = ieee754;
|
|
27076
27076
|
// Primitive types
|
|
27077
27077
|
function dv(array) {
|
|
@@ -27080,7 +27080,7 @@ ieee754.write = function (buffer, value, offset, isLE, mLen, nBytes) {
|
|
|
27080
27080
|
/**
|
|
27081
27081
|
* 8-bit unsigned integer
|
|
27082
27082
|
*/
|
|
27083
|
-
exports.UINT8 = {
|
|
27083
|
+
exports$1.UINT8 = {
|
|
27084
27084
|
len: 1,
|
|
27085
27085
|
get(array, offset) {
|
|
27086
27086
|
return dv(array).getUint8(offset);
|
|
@@ -27093,7 +27093,7 @@ ieee754.write = function (buffer, value, offset, isLE, mLen, nBytes) {
|
|
|
27093
27093
|
/**
|
|
27094
27094
|
* 16-bit unsigned integer, Little Endian byte order
|
|
27095
27095
|
*/
|
|
27096
|
-
exports.UINT16_LE = {
|
|
27096
|
+
exports$1.UINT16_LE = {
|
|
27097
27097
|
len: 2,
|
|
27098
27098
|
get(array, offset) {
|
|
27099
27099
|
return dv(array).getUint16(offset, true);
|
|
@@ -27106,7 +27106,7 @@ ieee754.write = function (buffer, value, offset, isLE, mLen, nBytes) {
|
|
|
27106
27106
|
/**
|
|
27107
27107
|
* 16-bit unsigned integer, Big Endian byte order
|
|
27108
27108
|
*/
|
|
27109
|
-
exports.UINT16_BE = {
|
|
27109
|
+
exports$1.UINT16_BE = {
|
|
27110
27110
|
len: 2,
|
|
27111
27111
|
get(array, offset) {
|
|
27112
27112
|
return dv(array).getUint16(offset);
|
|
@@ -27119,7 +27119,7 @@ ieee754.write = function (buffer, value, offset, isLE, mLen, nBytes) {
|
|
|
27119
27119
|
/**
|
|
27120
27120
|
* 24-bit unsigned integer, Little Endian byte order
|
|
27121
27121
|
*/
|
|
27122
|
-
exports.UINT24_LE = {
|
|
27122
|
+
exports$1.UINT24_LE = {
|
|
27123
27123
|
len: 3,
|
|
27124
27124
|
get(array, offset) {
|
|
27125
27125
|
const dataView = dv(array);
|
|
@@ -27135,7 +27135,7 @@ ieee754.write = function (buffer, value, offset, isLE, mLen, nBytes) {
|
|
|
27135
27135
|
/**
|
|
27136
27136
|
* 24-bit unsigned integer, Big Endian byte order
|
|
27137
27137
|
*/
|
|
27138
|
-
exports.UINT24_BE = {
|
|
27138
|
+
exports$1.UINT24_BE = {
|
|
27139
27139
|
len: 3,
|
|
27140
27140
|
get(array, offset) {
|
|
27141
27141
|
const dataView = dv(array);
|
|
@@ -27151,7 +27151,7 @@ ieee754.write = function (buffer, value, offset, isLE, mLen, nBytes) {
|
|
|
27151
27151
|
/**
|
|
27152
27152
|
* 32-bit unsigned integer, Little Endian byte order
|
|
27153
27153
|
*/
|
|
27154
|
-
exports.UINT32_LE = {
|
|
27154
|
+
exports$1.UINT32_LE = {
|
|
27155
27155
|
len: 4,
|
|
27156
27156
|
get(array, offset) {
|
|
27157
27157
|
return dv(array).getUint32(offset, true);
|
|
@@ -27164,7 +27164,7 @@ ieee754.write = function (buffer, value, offset, isLE, mLen, nBytes) {
|
|
|
27164
27164
|
/**
|
|
27165
27165
|
* 32-bit unsigned integer, Big Endian byte order
|
|
27166
27166
|
*/
|
|
27167
|
-
exports.UINT32_BE = {
|
|
27167
|
+
exports$1.UINT32_BE = {
|
|
27168
27168
|
len: 4,
|
|
27169
27169
|
get(array, offset) {
|
|
27170
27170
|
return dv(array).getUint32(offset);
|
|
@@ -27177,7 +27177,7 @@ ieee754.write = function (buffer, value, offset, isLE, mLen, nBytes) {
|
|
|
27177
27177
|
/**
|
|
27178
27178
|
* 8-bit signed integer
|
|
27179
27179
|
*/
|
|
27180
|
-
exports.INT8 = {
|
|
27180
|
+
exports$1.INT8 = {
|
|
27181
27181
|
len: 1,
|
|
27182
27182
|
get(array, offset) {
|
|
27183
27183
|
return dv(array).getInt8(offset);
|
|
@@ -27190,7 +27190,7 @@ ieee754.write = function (buffer, value, offset, isLE, mLen, nBytes) {
|
|
|
27190
27190
|
/**
|
|
27191
27191
|
* 16-bit signed integer, Big Endian byte order
|
|
27192
27192
|
*/
|
|
27193
|
-
exports.INT16_BE = {
|
|
27193
|
+
exports$1.INT16_BE = {
|
|
27194
27194
|
len: 2,
|
|
27195
27195
|
get(array, offset) {
|
|
27196
27196
|
return dv(array).getInt16(offset);
|
|
@@ -27203,7 +27203,7 @@ ieee754.write = function (buffer, value, offset, isLE, mLen, nBytes) {
|
|
|
27203
27203
|
/**
|
|
27204
27204
|
* 16-bit signed integer, Little Endian byte order
|
|
27205
27205
|
*/
|
|
27206
|
-
exports.INT16_LE = {
|
|
27206
|
+
exports$1.INT16_LE = {
|
|
27207
27207
|
len: 2,
|
|
27208
27208
|
get(array, offset) {
|
|
27209
27209
|
return dv(array).getInt16(offset, true);
|
|
@@ -27216,10 +27216,10 @@ ieee754.write = function (buffer, value, offset, isLE, mLen, nBytes) {
|
|
|
27216
27216
|
/**
|
|
27217
27217
|
* 24-bit signed integer, Little Endian byte order
|
|
27218
27218
|
*/
|
|
27219
|
-
exports.INT24_LE = {
|
|
27219
|
+
exports$1.INT24_LE = {
|
|
27220
27220
|
len: 3,
|
|
27221
27221
|
get(array, offset) {
|
|
27222
|
-
const unsigned = exports.UINT24_LE.get(array, offset);
|
|
27222
|
+
const unsigned = exports$1.UINT24_LE.get(array, offset);
|
|
27223
27223
|
return unsigned > 0x7fffff ? unsigned - 0x1000000 : unsigned;
|
|
27224
27224
|
},
|
|
27225
27225
|
put(array, offset, value) {
|
|
@@ -27232,10 +27232,10 @@ ieee754.write = function (buffer, value, offset, isLE, mLen, nBytes) {
|
|
|
27232
27232
|
/**
|
|
27233
27233
|
* 24-bit signed integer, Big Endian byte order
|
|
27234
27234
|
*/
|
|
27235
|
-
exports.INT24_BE = {
|
|
27235
|
+
exports$1.INT24_BE = {
|
|
27236
27236
|
len: 3,
|
|
27237
27237
|
get(array, offset) {
|
|
27238
|
-
const unsigned = exports.UINT24_BE.get(array, offset);
|
|
27238
|
+
const unsigned = exports$1.UINT24_BE.get(array, offset);
|
|
27239
27239
|
return unsigned > 0x7fffff ? unsigned - 0x1000000 : unsigned;
|
|
27240
27240
|
},
|
|
27241
27241
|
put(array, offset, value) {
|
|
@@ -27248,7 +27248,7 @@ ieee754.write = function (buffer, value, offset, isLE, mLen, nBytes) {
|
|
|
27248
27248
|
/**
|
|
27249
27249
|
* 32-bit signed integer, Big Endian byte order
|
|
27250
27250
|
*/
|
|
27251
|
-
exports.INT32_BE = {
|
|
27251
|
+
exports$1.INT32_BE = {
|
|
27252
27252
|
len: 4,
|
|
27253
27253
|
get(array, offset) {
|
|
27254
27254
|
return dv(array).getInt32(offset);
|
|
@@ -27261,7 +27261,7 @@ ieee754.write = function (buffer, value, offset, isLE, mLen, nBytes) {
|
|
|
27261
27261
|
/**
|
|
27262
27262
|
* 32-bit signed integer, Big Endian byte order
|
|
27263
27263
|
*/
|
|
27264
|
-
exports.INT32_LE = {
|
|
27264
|
+
exports$1.INT32_LE = {
|
|
27265
27265
|
len: 4,
|
|
27266
27266
|
get(array, offset) {
|
|
27267
27267
|
return dv(array).getInt32(offset, true);
|
|
@@ -27274,7 +27274,7 @@ ieee754.write = function (buffer, value, offset, isLE, mLen, nBytes) {
|
|
|
27274
27274
|
/**
|
|
27275
27275
|
* 64-bit unsigned integer, Little Endian byte order
|
|
27276
27276
|
*/
|
|
27277
|
-
exports.UINT64_LE = {
|
|
27277
|
+
exports$1.UINT64_LE = {
|
|
27278
27278
|
len: 8,
|
|
27279
27279
|
get(array, offset) {
|
|
27280
27280
|
return dv(array).getBigUint64(offset, true);
|
|
@@ -27287,7 +27287,7 @@ ieee754.write = function (buffer, value, offset, isLE, mLen, nBytes) {
|
|
|
27287
27287
|
/**
|
|
27288
27288
|
* 64-bit signed integer, Little Endian byte order
|
|
27289
27289
|
*/
|
|
27290
|
-
exports.INT64_LE = {
|
|
27290
|
+
exports$1.INT64_LE = {
|
|
27291
27291
|
len: 8,
|
|
27292
27292
|
get(array, offset) {
|
|
27293
27293
|
return dv(array).getBigInt64(offset, true);
|
|
@@ -27300,7 +27300,7 @@ ieee754.write = function (buffer, value, offset, isLE, mLen, nBytes) {
|
|
|
27300
27300
|
/**
|
|
27301
27301
|
* 64-bit unsigned integer, Big Endian byte order
|
|
27302
27302
|
*/
|
|
27303
|
-
exports.UINT64_BE = {
|
|
27303
|
+
exports$1.UINT64_BE = {
|
|
27304
27304
|
len: 8,
|
|
27305
27305
|
get(array, offset) {
|
|
27306
27306
|
return dv(array).getBigUint64(offset);
|
|
@@ -27313,7 +27313,7 @@ ieee754.write = function (buffer, value, offset, isLE, mLen, nBytes) {
|
|
|
27313
27313
|
/**
|
|
27314
27314
|
* 64-bit signed integer, Big Endian byte order
|
|
27315
27315
|
*/
|
|
27316
|
-
exports.INT64_BE = {
|
|
27316
|
+
exports$1.INT64_BE = {
|
|
27317
27317
|
len: 8,
|
|
27318
27318
|
get(array, offset) {
|
|
27319
27319
|
return dv(array).getBigInt64(offset);
|
|
@@ -27326,7 +27326,7 @@ ieee754.write = function (buffer, value, offset, isLE, mLen, nBytes) {
|
|
|
27326
27326
|
/**
|
|
27327
27327
|
* IEEE 754 16-bit (half precision) float, big endian
|
|
27328
27328
|
*/
|
|
27329
|
-
exports.Float16_BE = {
|
|
27329
|
+
exports$1.Float16_BE = {
|
|
27330
27330
|
len: 2,
|
|
27331
27331
|
get(dataView, offset) {
|
|
27332
27332
|
return ieee754$1.read(dataView, offset, false, 10, this.len);
|
|
@@ -27339,7 +27339,7 @@ ieee754.write = function (buffer, value, offset, isLE, mLen, nBytes) {
|
|
|
27339
27339
|
/**
|
|
27340
27340
|
* IEEE 754 16-bit (half precision) float, little endian
|
|
27341
27341
|
*/
|
|
27342
|
-
exports.Float16_LE = {
|
|
27342
|
+
exports$1.Float16_LE = {
|
|
27343
27343
|
len: 2,
|
|
27344
27344
|
get(array, offset) {
|
|
27345
27345
|
return ieee754$1.read(array, offset, true, 10, this.len);
|
|
@@ -27352,7 +27352,7 @@ ieee754.write = function (buffer, value, offset, isLE, mLen, nBytes) {
|
|
|
27352
27352
|
/**
|
|
27353
27353
|
* IEEE 754 32-bit (single precision) float, big endian
|
|
27354
27354
|
*/
|
|
27355
|
-
exports.Float32_BE = {
|
|
27355
|
+
exports$1.Float32_BE = {
|
|
27356
27356
|
len: 4,
|
|
27357
27357
|
get(array, offset) {
|
|
27358
27358
|
return dv(array).getFloat32(offset);
|
|
@@ -27365,7 +27365,7 @@ ieee754.write = function (buffer, value, offset, isLE, mLen, nBytes) {
|
|
|
27365
27365
|
/**
|
|
27366
27366
|
* IEEE 754 32-bit (single precision) float, little endian
|
|
27367
27367
|
*/
|
|
27368
|
-
exports.Float32_LE = {
|
|
27368
|
+
exports$1.Float32_LE = {
|
|
27369
27369
|
len: 4,
|
|
27370
27370
|
get(array, offset) {
|
|
27371
27371
|
return dv(array).getFloat32(offset, true);
|
|
@@ -27378,7 +27378,7 @@ ieee754.write = function (buffer, value, offset, isLE, mLen, nBytes) {
|
|
|
27378
27378
|
/**
|
|
27379
27379
|
* IEEE 754 64-bit (double precision) float, big endian
|
|
27380
27380
|
*/
|
|
27381
|
-
exports.Float64_BE = {
|
|
27381
|
+
exports$1.Float64_BE = {
|
|
27382
27382
|
len: 8,
|
|
27383
27383
|
get(array, offset) {
|
|
27384
27384
|
return dv(array).getFloat64(offset);
|
|
@@ -27391,7 +27391,7 @@ ieee754.write = function (buffer, value, offset, isLE, mLen, nBytes) {
|
|
|
27391
27391
|
/**
|
|
27392
27392
|
* IEEE 754 64-bit (double precision) float, little endian
|
|
27393
27393
|
*/
|
|
27394
|
-
exports.Float64_LE = {
|
|
27394
|
+
exports$1.Float64_LE = {
|
|
27395
27395
|
len: 8,
|
|
27396
27396
|
get(array, offset) {
|
|
27397
27397
|
return dv(array).getFloat64(offset, true);
|
|
@@ -27404,7 +27404,7 @@ ieee754.write = function (buffer, value, offset, isLE, mLen, nBytes) {
|
|
|
27404
27404
|
/**
|
|
27405
27405
|
* IEEE 754 80-bit (extended precision) float, big endian
|
|
27406
27406
|
*/
|
|
27407
|
-
exports.Float80_BE = {
|
|
27407
|
+
exports$1.Float80_BE = {
|
|
27408
27408
|
len: 10,
|
|
27409
27409
|
get(array, offset) {
|
|
27410
27410
|
return ieee754$1.read(array, offset, false, 63, this.len);
|
|
@@ -27417,7 +27417,7 @@ ieee754.write = function (buffer, value, offset, isLE, mLen, nBytes) {
|
|
|
27417
27417
|
/**
|
|
27418
27418
|
* IEEE 754 80-bit (extended precision) float, little endian
|
|
27419
27419
|
*/
|
|
27420
|
-
exports.Float80_LE = {
|
|
27420
|
+
exports$1.Float80_LE = {
|
|
27421
27421
|
len: 10,
|
|
27422
27422
|
get(array, offset) {
|
|
27423
27423
|
return ieee754$1.read(array, offset, true, 63, this.len);
|
|
@@ -27441,7 +27441,7 @@ ieee754.write = function (buffer, value, offset, isLE, mLen, nBytes) {
|
|
|
27441
27441
|
get(array, off) {
|
|
27442
27442
|
}
|
|
27443
27443
|
}
|
|
27444
|
-
exports.IgnoreType = IgnoreType;
|
|
27444
|
+
exports$1.IgnoreType = IgnoreType;
|
|
27445
27445
|
class Uint8ArrayType {
|
|
27446
27446
|
constructor(len) {
|
|
27447
27447
|
this.len = len;
|
|
@@ -27450,7 +27450,7 @@ ieee754.write = function (buffer, value, offset, isLE, mLen, nBytes) {
|
|
|
27450
27450
|
return array.subarray(offset, offset + this.len);
|
|
27451
27451
|
}
|
|
27452
27452
|
}
|
|
27453
|
-
exports.Uint8ArrayType = Uint8ArrayType;
|
|
27453
|
+
exports$1.Uint8ArrayType = Uint8ArrayType;
|
|
27454
27454
|
class BufferType {
|
|
27455
27455
|
constructor(len) {
|
|
27456
27456
|
this.len = len;
|
|
@@ -27459,7 +27459,7 @@ ieee754.write = function (buffer, value, offset, isLE, mLen, nBytes) {
|
|
|
27459
27459
|
return Buffer.from(uint8Array.subarray(off, off + this.len));
|
|
27460
27460
|
}
|
|
27461
27461
|
}
|
|
27462
|
-
exports.BufferType = BufferType;
|
|
27462
|
+
exports$1.BufferType = BufferType;
|
|
27463
27463
|
/**
|
|
27464
27464
|
* Consume a fixed number of bytes from the stream and return a string with a specified encoding.
|
|
27465
27465
|
*/
|
|
@@ -27472,7 +27472,7 @@ ieee754.write = function (buffer, value, offset, isLE, mLen, nBytes) {
|
|
|
27472
27472
|
return Buffer.from(uint8Array).toString(this.encoding, offset, offset + this.len);
|
|
27473
27473
|
}
|
|
27474
27474
|
}
|
|
27475
|
-
exports.StringType = StringType;
|
|
27475
|
+
exports$1.StringType = StringType;
|
|
27476
27476
|
/**
|
|
27477
27477
|
* ANSI Latin 1 String
|
|
27478
27478
|
* Using windows-1252 / ISO 8859-1 decoding
|
|
@@ -27514,7 +27514,7 @@ ieee754.write = function (buffer, value, offset, isLE, mLen, nBytes) {
|
|
|
27514
27514
|
return AnsiStringType.decode(buffer, offset, offset + this.len);
|
|
27515
27515
|
}
|
|
27516
27516
|
}
|
|
27517
|
-
exports.AnsiStringType = AnsiStringType;
|
|
27517
|
+
exports$1.AnsiStringType = AnsiStringType;
|
|
27518
27518
|
AnsiStringType.windows1252 = [8364, 129, 8218, 402, 8222, 8230, 8224, 8225, 710, 8240, 352,
|
|
27519
27519
|
8249, 338, 141, 381, 143, 144, 8216, 8217, 8220, 8221, 8226, 8211, 8212, 732,
|
|
27520
27520
|
8482, 353, 8250, 339, 157, 382, 376, 160, 161, 162, 163, 164, 165, 166, 167, 168,
|
|
@@ -29424,16 +29424,16 @@ crop$1.default = crop;
|
|
|
29424
29424
|
|
|
29425
29425
|
var StickerTypes = {};
|
|
29426
29426
|
|
|
29427
|
-
(function (exports) {
|
|
29428
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29429
|
-
exports.StickerTypes = void 0;
|
|
29427
|
+
(function (exports$1) {
|
|
29428
|
+
Object.defineProperty(exports$1, "__esModule", { value: true });
|
|
29429
|
+
exports$1.StickerTypes = void 0;
|
|
29430
29430
|
(function (StickerTypes) {
|
|
29431
29431
|
StickerTypes["DEFAULT"] = "default";
|
|
29432
29432
|
StickerTypes["CROPPED"] = "crop";
|
|
29433
29433
|
StickerTypes["FULL"] = "full";
|
|
29434
29434
|
StickerTypes["CIRCLE"] = "circle";
|
|
29435
29435
|
StickerTypes["ROUNDED"] = "rounded";
|
|
29436
|
-
})(exports.StickerTypes || (exports.StickerTypes = {}));
|
|
29436
|
+
})(exports$1.StickerTypes || (exports$1.StickerTypes = {}));
|
|
29437
29437
|
} (StickerTypes));
|
|
29438
29438
|
|
|
29439
29439
|
var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
@@ -29966,7 +29966,7 @@ var hasRequiredLibwebp$1;
|
|
|
29966
29966
|
function requireLibwebp$1 () {
|
|
29967
29967
|
if (hasRequiredLibwebp$1) return libwebp$1.exports;
|
|
29968
29968
|
hasRequiredLibwebp$1 = 1;
|
|
29969
|
-
(function (module, exports) {
|
|
29969
|
+
(function (module, exports$1) {
|
|
29970
29970
|
var LibWebP = (() => {
|
|
29971
29971
|
var _scriptDir = typeof document !== 'undefined' && document.currentScript ? document.currentScript.src : undefined;
|
|
29972
29972
|
if (typeof __filename !== 'undefined') _scriptDir = _scriptDir || __filename;
|
|
@@ -29974,7 +29974,7 @@ function requireLibwebp$1 () {
|
|
|
29974
29974
|
function(LibWebP) {
|
|
29975
29975
|
LibWebP = LibWebP || {};
|
|
29976
29976
|
|
|
29977
|
-
var Module=typeof LibWebP!="undefined"?LibWebP:{};var readyPromiseResolve,readyPromiseReject;Module["ready"]=new Promise(function(resolve,reject){readyPromiseResolve=resolve;readyPromiseReject=reject;});var moduleOverrides=Object.assign({},Module);var ENVIRONMENT_IS_WEB=typeof window=="object";var ENVIRONMENT_IS_WORKER=typeof importScripts=="function";var ENVIRONMENT_IS_NODE=typeof process=="object"&&typeof process.versions=="object"&&typeof process.versions.node=="string";var scriptDirectory="";function locateFile(path){if(Module["locateFile"]){return Module["locateFile"](path,scriptDirectory)}return scriptDirectory+path}var read_,readAsync,readBinary;var fs;var nodePath;var requireNodeFS;if(ENVIRONMENT_IS_NODE){if(ENVIRONMENT_IS_WORKER){scriptDirectory=require$$1$1.dirname(scriptDirectory)+"/";}else {scriptDirectory=__dirname+"/";}requireNodeFS=(()=>{if(!nodePath){fs=require$$0$5;nodePath=require$$1$1;}});read_=function shell_read(filename,binary){requireNodeFS();filename=nodePath["normalize"](filename);return fs.readFileSync(filename,binary?undefined:"utf8")};readBinary=(filename=>{var ret=read_(filename,true);if(!ret.buffer){ret=new Uint8Array(ret);}return ret});readAsync=((filename,onload,onerror)=>{requireNodeFS();filename=nodePath["normalize"](filename);fs.readFile(filename,function(err,data){if(err)onerror(err);else onload(data.buffer);});});if(process["argv"].length>1){process["argv"][1].replace(/\\/g,"/");}process["argv"].slice(2);process["on"]("uncaughtException",function(ex){if(!(ex instanceof ExitStatus)){throw ex}});process["on"]("unhandledRejection",function(reason){throw reason});Module["inspect"]=function(){return "[Emscripten Module object]"};}else if(ENVIRONMENT_IS_WEB||ENVIRONMENT_IS_WORKER){if(ENVIRONMENT_IS_WORKER){scriptDirectory=self.location.href;}else if(typeof document!="undefined"&&document.currentScript){scriptDirectory=document.currentScript.src;}if(_scriptDir){scriptDirectory=_scriptDir;}if(scriptDirectory.indexOf("blob:")!==0){scriptDirectory=scriptDirectory.substr(0,scriptDirectory.replace(/[?#].*/,"").lastIndexOf("/")+1);}else {scriptDirectory="";}{read_=(url=>{var xhr=new XMLHttpRequest;xhr.open("GET",url,false);xhr.send(null);return xhr.responseText});if(ENVIRONMENT_IS_WORKER){readBinary=(url=>{var xhr=new XMLHttpRequest;xhr.open("GET",url,false);xhr.responseType="arraybuffer";xhr.send(null);return new Uint8Array(xhr.response)});}readAsync=((url,onload,onerror)=>{var xhr=new XMLHttpRequest;xhr.open("GET",url,true);xhr.responseType="arraybuffer";xhr.onload=(()=>{if(xhr.status==200||xhr.status==0&&xhr.response){onload(xhr.response);return}onerror();});xhr.onerror=onerror;xhr.send(null);});}}else;Module["print"]||console.log.bind(console);var err=Module["printErr"]||console.warn.bind(console);Object.assign(Module,moduleOverrides);moduleOverrides=null;if(Module["arguments"])Module["arguments"];if(Module["thisProgram"])Module["thisProgram"];if(Module["quit"])Module["quit"];var wasmBinary;if(Module["wasmBinary"])wasmBinary=Module["wasmBinary"];Module["noExitRuntime"]||true;if(typeof WebAssembly!="object"){abort("no native wasm support detected");}var wasmMemory;var ABORT=false;function assert(condition,text){if(!condition){abort(text);}}function getCFunc(ident){var func=Module["_"+ident];return func}function ccall(ident,returnType,argTypes,args,opts){var toC={"string":function(str){var ret=0;if(str!==null&&str!==undefined&&str!==0){var len=(str.length<<2)+1;ret=stackAlloc(len);stringToUTF8(str,ret,len);}return ret},"array":function(arr){var ret=stackAlloc(arr.length);writeArrayToMemory(arr,ret);return ret}};function convertReturnValue(ret){if(returnType==="string")return UTF8ToString(ret);if(returnType==="boolean")return Boolean(ret);return ret}var func=getCFunc(ident);var cArgs=[];var stack=0;if(args){for(var i=0;i<args.length;i++){var converter=toC[argTypes[i]];if(converter){if(stack===0)stack=stackSave();cArgs[i]=converter(args[i]);}else {cArgs[i]=args[i];}}}var ret=func.apply(null,cArgs);function onDone(ret){if(stack!==0)stackRestore(stack);return convertReturnValue(ret)}ret=onDone(ret);return ret}function cwrap(ident,returnType,argTypes,opts){argTypes=argTypes||[];var numericArgs=argTypes.every(function(type){return type==="number"});var numericRet=returnType!=="string";if(numericRet&&numericArgs&&!opts){return getCFunc(ident)}return function(){return ccall(ident,returnType,argTypes,arguments)}}var UTF8Decoder=typeof TextDecoder!="undefined"?new TextDecoder("utf8"):undefined;function UTF8ArrayToString(heap,idx,maxBytesToRead){var endIdx=idx+maxBytesToRead;var endPtr=idx;while(heap[endPtr]&&!(endPtr>=endIdx))++endPtr;if(endPtr-idx>16&&heap.subarray&&UTF8Decoder){return UTF8Decoder.decode(heap.subarray(idx,endPtr))}else {var str="";while(idx<endPtr){var u0=heap[idx++];if(!(u0&128)){str+=String.fromCharCode(u0);continue}var u1=heap[idx++]&63;if((u0&224)==192){str+=String.fromCharCode((u0&31)<<6|u1);continue}var u2=heap[idx++]&63;if((u0&240)==224){u0=(u0&15)<<12|u1<<6|u2;}else {u0=(u0&7)<<18|u1<<12|u2<<6|heap[idx++]&63;}if(u0<65536){str+=String.fromCharCode(u0);}else {var ch=u0-65536;str+=String.fromCharCode(55296|ch>>10,56320|ch&1023);}}}return str}function UTF8ToString(ptr,maxBytesToRead){return ptr?UTF8ArrayToString(HEAPU8,ptr,maxBytesToRead):""}function stringToUTF8Array(str,heap,outIdx,maxBytesToWrite){if(!(maxBytesToWrite>0))return 0;var startIdx=outIdx;var endIdx=outIdx+maxBytesToWrite-1;for(var i=0;i<str.length;++i){var u=str.charCodeAt(i);if(u>=55296&&u<=57343){var u1=str.charCodeAt(++i);u=65536+((u&1023)<<10)|u1&1023;}if(u<=127){if(outIdx>=endIdx)break;heap[outIdx++]=u;}else if(u<=2047){if(outIdx+1>=endIdx)break;heap[outIdx++]=192|u>>6;heap[outIdx++]=128|u&63;}else if(u<=65535){if(outIdx+2>=endIdx)break;heap[outIdx++]=224|u>>12;heap[outIdx++]=128|u>>6&63;heap[outIdx++]=128|u&63;}else {if(outIdx+3>=endIdx)break;heap[outIdx++]=240|u>>18;heap[outIdx++]=128|u>>12&63;heap[outIdx++]=128|u>>6&63;heap[outIdx++]=128|u&63;}}heap[outIdx]=0;return outIdx-startIdx}function stringToUTF8(str,outPtr,maxBytesToWrite){return stringToUTF8Array(str,HEAPU8,outPtr,maxBytesToWrite)}function lengthBytesUTF8(str){var len=0;for(var i=0;i<str.length;++i){var u=str.charCodeAt(i);if(u>=55296&&u<=57343)u=65536+((u&1023)<<10)|str.charCodeAt(++i)&1023;if(u<=127)++len;else if(u<=2047)len+=2;else if(u<=65535)len+=3;else len+=4;}return len}var UTF16Decoder=typeof TextDecoder!="undefined"?new TextDecoder("utf-16le"):undefined;function UTF16ToString(ptr,maxBytesToRead){var endPtr=ptr;var idx=endPtr>>1;var maxIdx=idx+maxBytesToRead/2;while(!(idx>=maxIdx)&&HEAPU16[idx])++idx;endPtr=idx<<1;if(endPtr-ptr>32&&UTF16Decoder){return UTF16Decoder.decode(HEAPU8.subarray(ptr,endPtr))}else {var str="";for(var i=0;!(i>=maxBytesToRead/2);++i){var codeUnit=HEAP16[ptr+i*2>>1];if(codeUnit==0)break;str+=String.fromCharCode(codeUnit);}return str}}function stringToUTF16(str,outPtr,maxBytesToWrite){if(maxBytesToWrite===undefined){maxBytesToWrite=2147483647;}if(maxBytesToWrite<2)return 0;maxBytesToWrite-=2;var startPtr=outPtr;var numCharsToWrite=maxBytesToWrite<str.length*2?maxBytesToWrite/2:str.length;for(var i=0;i<numCharsToWrite;++i){var codeUnit=str.charCodeAt(i);HEAP16[outPtr>>1]=codeUnit;outPtr+=2;}HEAP16[outPtr>>1]=0;return outPtr-startPtr}function lengthBytesUTF16(str){return str.length*2}function UTF32ToString(ptr,maxBytesToRead){var i=0;var str="";while(!(i>=maxBytesToRead/4)){var utf32=HEAP32[ptr+i*4>>2];if(utf32==0)break;++i;if(utf32>=65536){var ch=utf32-65536;str+=String.fromCharCode(55296|ch>>10,56320|ch&1023);}else {str+=String.fromCharCode(utf32);}}return str}function stringToUTF32(str,outPtr,maxBytesToWrite){if(maxBytesToWrite===undefined){maxBytesToWrite=2147483647;}if(maxBytesToWrite<4)return 0;var startPtr=outPtr;var endPtr=startPtr+maxBytesToWrite-4;for(var i=0;i<str.length;++i){var codeUnit=str.charCodeAt(i);if(codeUnit>=55296&&codeUnit<=57343){var trailSurrogate=str.charCodeAt(++i);codeUnit=65536+((codeUnit&1023)<<10)|trailSurrogate&1023;}HEAP32[outPtr>>2]=codeUnit;outPtr+=4;if(outPtr+4>endPtr)break}HEAP32[outPtr>>2]=0;return outPtr-startPtr}function lengthBytesUTF32(str){var len=0;for(var i=0;i<str.length;++i){var codeUnit=str.charCodeAt(i);if(codeUnit>=55296&&codeUnit<=57343)++i;len+=4;}return len}function writeArrayToMemory(array,buffer){HEAP8.set(array,buffer);}var buffer,HEAP8,HEAPU8,HEAP16,HEAPU16,HEAP32,HEAPU32,HEAPF32,HEAPF64;function updateGlobalBufferAndViews(buf){buffer=buf;Module["HEAP8"]=HEAP8=new Int8Array(buf);Module["HEAP16"]=HEAP16=new Int16Array(buf);Module["HEAP32"]=HEAP32=new Int32Array(buf);Module["HEAPU8"]=HEAPU8=new Uint8Array(buf);Module["HEAPU16"]=HEAPU16=new Uint16Array(buf);Module["HEAPU32"]=HEAPU32=new Uint32Array(buf);Module["HEAPF32"]=HEAPF32=new Float32Array(buf);Module["HEAPF64"]=HEAPF64=new Float64Array(buf);}Module["INITIAL_MEMORY"]||16777216;var wasmTable;var __ATPRERUN__=[];var __ATINIT__=[];var __ATPOSTRUN__=[];function preRun(){if(Module["preRun"]){if(typeof Module["preRun"]=="function")Module["preRun"]=[Module["preRun"]];while(Module["preRun"].length){addOnPreRun(Module["preRun"].shift());}}callRuntimeCallbacks(__ATPRERUN__);}function initRuntime(){callRuntimeCallbacks(__ATINIT__);}function postRun(){if(Module["postRun"]){if(typeof Module["postRun"]=="function")Module["postRun"]=[Module["postRun"]];while(Module["postRun"].length){addOnPostRun(Module["postRun"].shift());}}callRuntimeCallbacks(__ATPOSTRUN__);}function addOnPreRun(cb){__ATPRERUN__.unshift(cb);}function addOnInit(cb){__ATINIT__.unshift(cb);}function addOnPostRun(cb){__ATPOSTRUN__.unshift(cb);}var runDependencies=0;var dependenciesFulfilled=null;function addRunDependency(id){runDependencies++;if(Module["monitorRunDependencies"]){Module["monitorRunDependencies"](runDependencies);}}function removeRunDependency(id){runDependencies--;if(Module["monitorRunDependencies"]){Module["monitorRunDependencies"](runDependencies);}if(runDependencies==0){if(dependenciesFulfilled){var callback=dependenciesFulfilled;dependenciesFulfilled=null;callback();}}}Module["preloadedImages"]={};Module["preloadedAudios"]={};function abort(what){{if(Module["onAbort"]){Module["onAbort"](what);}}what="Aborted("+what+")";err(what);ABORT=true;what+=". Build with -s ASSERTIONS=1 for more info.";var e=new WebAssembly.RuntimeError(what);readyPromiseReject(e);throw e}var dataURIPrefix="data:application/octet-stream;base64,";function isDataURI(filename){return filename.startsWith(dataURIPrefix)}function isFileURI(filename){return filename.startsWith("file://")}var wasmBinaryFile;wasmBinaryFile="libwebp.wasm";if(!isDataURI(wasmBinaryFile)){wasmBinaryFile=locateFile(wasmBinaryFile);}function getBinary(file){try{if(file==wasmBinaryFile&&wasmBinary){return new Uint8Array(wasmBinary)}if(readBinary){return readBinary(file)}else {throw "both async and sync fetching of the wasm failed"}}catch(err){abort(err);}}function getBinaryPromise(){if(!wasmBinary&&(ENVIRONMENT_IS_WEB||ENVIRONMENT_IS_WORKER)){if(typeof fetch=="function"&&!isFileURI(wasmBinaryFile)){return fetch(wasmBinaryFile,{credentials:"same-origin"}).then(function(response){if(!response["ok"]){throw "failed to load wasm binary file at '"+wasmBinaryFile+"'"}return response["arrayBuffer"]()}).catch(function(){return getBinary(wasmBinaryFile)})}else {if(readAsync){return new Promise(function(resolve,reject){readAsync(wasmBinaryFile,function(response){resolve(new Uint8Array(response));},reject);})}}}return Promise.resolve().then(function(){return getBinary(wasmBinaryFile)})}function createWasm(){var info={"a":asmLibraryArg};function receiveInstance(instance,module){var exports=instance.exports;Module["asm"]=exports;wasmMemory=Module["asm"]["r"];updateGlobalBufferAndViews(wasmMemory.buffer);wasmTable=Module["asm"]["z"];addOnInit(Module["asm"]["s"]);removeRunDependency();}addRunDependency();function receiveInstantiationResult(result){receiveInstance(result["instance"]);}function instantiateArrayBuffer(receiver){return getBinaryPromise().then(function(binary){return WebAssembly.instantiate(binary,info)}).then(function(instance){return instance}).then(receiver,function(reason){err("failed to asynchronously prepare wasm: "+reason);abort(reason);})}function instantiateAsync(){if(!wasmBinary&&typeof WebAssembly.instantiateStreaming=="function"&&!isDataURI(wasmBinaryFile)&&!isFileURI(wasmBinaryFile)&&!ENVIRONMENT_IS_NODE&&typeof fetch=="function"){return fetch(wasmBinaryFile,{credentials:"same-origin"}).then(function(response){var result=WebAssembly.instantiateStreaming(response,info);return result.then(receiveInstantiationResult,function(reason){err("wasm streaming compile failed: "+reason);err("falling back to ArrayBuffer instantiation");return instantiateArrayBuffer(receiveInstantiationResult)})})}else {return instantiateArrayBuffer(receiveInstantiationResult)}}if(Module["instantiateWasm"]){try{var exports=Module["instantiateWasm"](info,receiveInstance);return exports}catch(e){err("Module.instantiateWasm callback failed with error: "+e);return false}}instantiateAsync().catch(readyPromiseReject);return {}}function callRuntimeCallbacks(callbacks){while(callbacks.length>0){var callback=callbacks.shift();if(typeof callback=="function"){callback(Module);continue}var func=callback.func;if(typeof func=="number"){if(callback.arg===undefined){getWasmTableEntry(func)();}else {getWasmTableEntry(func)(callback.arg);}}else {func(callback.arg===undefined?null:callback.arg);}}}var wasmTableMirror=[];function getWasmTableEntry(funcPtr){var func=wasmTableMirror[funcPtr];if(!func){if(funcPtr>=wasmTableMirror.length)wasmTableMirror.length=funcPtr+1;wasmTableMirror[funcPtr]=func=wasmTable.get(funcPtr);}return func}function ___assert_fail(condition,filename,line,func){abort("Assertion failed: "+UTF8ToString(condition)+", at: "+[filename?UTF8ToString(filename):"unknown filename",line,func?UTF8ToString(func):"unknown function"]);}function __embind_register_bigint(primitiveType,name,size,minRange,maxRange){}function getShiftFromSize(size){switch(size){case 1:return 0;case 2:return 1;case 4:return 2;case 8:return 3;default:throw new TypeError("Unknown type size: "+size)}}function embind_init_charCodes(){var codes=new Array(256);for(var i=0;i<256;++i){codes[i]=String.fromCharCode(i);}embind_charCodes=codes;}var embind_charCodes=undefined;function readLatin1String(ptr){var ret="";var c=ptr;while(HEAPU8[c]){ret+=embind_charCodes[HEAPU8[c++]];}return ret}var awaitingDependencies={};var registeredTypes={};var typeDependencies={};var char_0=48;var char_9=57;function makeLegalFunctionName(name){if(undefined===name){return "_unknown"}name=name.replace(/[^a-zA-Z0-9_]/g,"$");var f=name.charCodeAt(0);if(f>=char_0&&f<=char_9){return "_"+name}else {return name}}function createNamedFunction(name,body){name=makeLegalFunctionName(name);return new Function("body","return function "+name+"() {\n"+' "use strict";'+" return body.apply(this, arguments);\n"+"};\n")(body)}function extendError(baseErrorType,errorName){var errorClass=createNamedFunction(errorName,function(message){this.name=errorName;this.message=message;var stack=new Error(message).stack;if(stack!==undefined){this.stack=this.toString()+"\n"+stack.replace(/^Error(:[^\n]*)?\n/,"");}});errorClass.prototype=Object.create(baseErrorType.prototype);errorClass.prototype.constructor=errorClass;errorClass.prototype.toString=function(){if(this.message===undefined){return this.name}else {return this.name+": "+this.message}};return errorClass}var BindingError=undefined;function throwBindingError(message){throw new BindingError(message)}var InternalError=undefined;function throwInternalError(message){throw new InternalError(message)}function whenDependentTypesAreResolved(myTypes,dependentTypes,getTypeConverters){myTypes.forEach(function(type){typeDependencies[type]=dependentTypes;});function onComplete(typeConverters){var myTypeConverters=getTypeConverters(typeConverters);if(myTypeConverters.length!==myTypes.length){throwInternalError("Mismatched type converter count");}for(var i=0;i<myTypes.length;++i){registerType(myTypes[i],myTypeConverters[i]);}}var typeConverters=new Array(dependentTypes.length);var unregisteredTypes=[];var registered=0;dependentTypes.forEach(function(dt,i){if(registeredTypes.hasOwnProperty(dt)){typeConverters[i]=registeredTypes[dt];}else {unregisteredTypes.push(dt);if(!awaitingDependencies.hasOwnProperty(dt)){awaitingDependencies[dt]=[];}awaitingDependencies[dt].push(function(){typeConverters[i]=registeredTypes[dt];++registered;if(registered===unregisteredTypes.length){onComplete(typeConverters);}});}});if(0===unregisteredTypes.length){onComplete(typeConverters);}}function registerType(rawType,registeredInstance,options={}){if(!("argPackAdvance"in registeredInstance)){throw new TypeError("registerType registeredInstance requires argPackAdvance")}var name=registeredInstance.name;if(!rawType){throwBindingError('type "'+name+'" must have a positive integer typeid pointer');}if(registeredTypes.hasOwnProperty(rawType)){if(options.ignoreDuplicateRegistrations){return}else {throwBindingError("Cannot register type '"+name+"' twice");}}registeredTypes[rawType]=registeredInstance;delete typeDependencies[rawType];if(awaitingDependencies.hasOwnProperty(rawType)){var callbacks=awaitingDependencies[rawType];delete awaitingDependencies[rawType];callbacks.forEach(function(cb){cb();});}}function __embind_register_bool(rawType,name,size,trueValue,falseValue){var shift=getShiftFromSize(size);name=readLatin1String(name);registerType(rawType,{name:name,"fromWireType":function(wt){return !!wt},"toWireType":function(destructors,o){return o?trueValue:falseValue},"argPackAdvance":8,"readValueFromPointer":function(pointer){var heap;if(size===1){heap=HEAP8;}else if(size===2){heap=HEAP16;}else if(size===4){heap=HEAP32;}else {throw new TypeError("Unknown boolean type size: "+name)}return this["fromWireType"](heap[pointer>>shift])},destructorFunction:null});}function ClassHandle_isAliasOf(other){if(!(this instanceof ClassHandle)){return false}if(!(other instanceof ClassHandle)){return false}var leftClass=this.$$.ptrType.registeredClass;var left=this.$$.ptr;var rightClass=other.$$.ptrType.registeredClass;var right=other.$$.ptr;while(leftClass.baseClass){left=leftClass.upcast(left);leftClass=leftClass.baseClass;}while(rightClass.baseClass){right=rightClass.upcast(right);rightClass=rightClass.baseClass;}return leftClass===rightClass&&left===right}function shallowCopyInternalPointer(o){return {count:o.count,deleteScheduled:o.deleteScheduled,preservePointerOnDelete:o.preservePointerOnDelete,ptr:o.ptr,ptrType:o.ptrType,smartPtr:o.smartPtr,smartPtrType:o.smartPtrType}}function throwInstanceAlreadyDeleted(obj){function getInstanceTypeName(handle){return handle.$$.ptrType.registeredClass.name}throwBindingError(getInstanceTypeName(obj)+" instance already deleted");}var finalizationRegistry=false;function detachFinalizer(handle){}function runDestructor($$){if($$.smartPtr){$$.smartPtrType.rawDestructor($$.smartPtr);}else {$$.ptrType.registeredClass.rawDestructor($$.ptr);}}function releaseClassHandle($$){$$.count.value-=1;var toDelete=0===$$.count.value;if(toDelete){runDestructor($$);}}function downcastPointer(ptr,ptrClass,desiredClass){if(ptrClass===desiredClass){return ptr}if(undefined===desiredClass.baseClass){return null}var rv=downcastPointer(ptr,ptrClass,desiredClass.baseClass);if(rv===null){return null}return desiredClass.downcast(rv)}var registeredPointers={};function getInheritedInstanceCount(){return Object.keys(registeredInstances).length}function getLiveInheritedInstances(){var rv=[];for(var k in registeredInstances){if(registeredInstances.hasOwnProperty(k)){rv.push(registeredInstances[k]);}}return rv}var deletionQueue=[];function flushPendingDeletes(){while(deletionQueue.length){var obj=deletionQueue.pop();obj.$$.deleteScheduled=false;obj["delete"]();}}var delayFunction=undefined;function setDelayFunction(fn){delayFunction=fn;if(deletionQueue.length&&delayFunction){delayFunction(flushPendingDeletes);}}function init_embind(){Module["getInheritedInstanceCount"]=getInheritedInstanceCount;Module["getLiveInheritedInstances"]=getLiveInheritedInstances;Module["flushPendingDeletes"]=flushPendingDeletes;Module["setDelayFunction"]=setDelayFunction;}var registeredInstances={};function getBasestPointer(class_,ptr){if(ptr===undefined){throwBindingError("ptr should not be undefined");}while(class_.baseClass){ptr=class_.upcast(ptr);class_=class_.baseClass;}return ptr}function getInheritedInstance(class_,ptr){ptr=getBasestPointer(class_,ptr);return registeredInstances[ptr]}function makeClassHandle(prototype,record){if(!record.ptrType||!record.ptr){throwInternalError("makeClassHandle requires ptr and ptrType");}var hasSmartPtrType=!!record.smartPtrType;var hasSmartPtr=!!record.smartPtr;if(hasSmartPtrType!==hasSmartPtr){throwInternalError("Both smartPtrType and smartPtr must be specified");}record.count={value:1};return attachFinalizer(Object.create(prototype,{$$:{value:record}}))}function RegisteredPointer_fromWireType(ptr){var rawPointer=this.getPointee(ptr);if(!rawPointer){this.destructor(ptr);return null}var registeredInstance=getInheritedInstance(this.registeredClass,rawPointer);if(undefined!==registeredInstance){if(0===registeredInstance.$$.count.value){registeredInstance.$$.ptr=rawPointer;registeredInstance.$$.smartPtr=ptr;return registeredInstance["clone"]()}else {var rv=registeredInstance["clone"]();this.destructor(ptr);return rv}}function makeDefaultHandle(){if(this.isSmartPointer){return makeClassHandle(this.registeredClass.instancePrototype,{ptrType:this.pointeeType,ptr:rawPointer,smartPtrType:this,smartPtr:ptr})}else {return makeClassHandle(this.registeredClass.instancePrototype,{ptrType:this,ptr:ptr})}}var actualType=this.registeredClass.getActualType(rawPointer);var registeredPointerRecord=registeredPointers[actualType];if(!registeredPointerRecord){return makeDefaultHandle.call(this)}var toType;if(this.isConst){toType=registeredPointerRecord.constPointerType;}else {toType=registeredPointerRecord.pointerType;}var dp=downcastPointer(rawPointer,this.registeredClass,toType.registeredClass);if(dp===null){return makeDefaultHandle.call(this)}if(this.isSmartPointer){return makeClassHandle(toType.registeredClass.instancePrototype,{ptrType:toType,ptr:dp,smartPtrType:this,smartPtr:ptr})}else {return makeClassHandle(toType.registeredClass.instancePrototype,{ptrType:toType,ptr:dp})}}function attachFinalizer(handle){if("undefined"===typeof FinalizationRegistry){attachFinalizer=(handle=>handle);return handle}finalizationRegistry=new FinalizationRegistry(info=>{releaseClassHandle(info.$$);});attachFinalizer=(handle=>{var $$=handle.$$;var hasSmartPtr=!!$$.smartPtr;if(hasSmartPtr){var info={$$:$$};finalizationRegistry.register(handle,info,handle);}return handle});detachFinalizer=(handle=>finalizationRegistry.unregister(handle));return attachFinalizer(handle)}function ClassHandle_clone(){if(!this.$$.ptr){throwInstanceAlreadyDeleted(this);}if(this.$$.preservePointerOnDelete){this.$$.count.value+=1;return this}else {var clone=attachFinalizer(Object.create(Object.getPrototypeOf(this),{$$:{value:shallowCopyInternalPointer(this.$$)}}));clone.$$.count.value+=1;clone.$$.deleteScheduled=false;return clone}}function ClassHandle_delete(){if(!this.$$.ptr){throwInstanceAlreadyDeleted(this);}if(this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete){throwBindingError("Object already scheduled for deletion");}detachFinalizer(this);releaseClassHandle(this.$$);if(!this.$$.preservePointerOnDelete){this.$$.smartPtr=undefined;this.$$.ptr=undefined;}}function ClassHandle_isDeleted(){return !this.$$.ptr}function ClassHandle_deleteLater(){if(!this.$$.ptr){throwInstanceAlreadyDeleted(this);}if(this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete){throwBindingError("Object already scheduled for deletion");}deletionQueue.push(this);if(deletionQueue.length===1&&delayFunction){delayFunction(flushPendingDeletes);}this.$$.deleteScheduled=true;return this}function init_ClassHandle(){ClassHandle.prototype["isAliasOf"]=ClassHandle_isAliasOf;ClassHandle.prototype["clone"]=ClassHandle_clone;ClassHandle.prototype["delete"]=ClassHandle_delete;ClassHandle.prototype["isDeleted"]=ClassHandle_isDeleted;ClassHandle.prototype["deleteLater"]=ClassHandle_deleteLater;}function ClassHandle(){}function ensureOverloadTable(proto,methodName,humanName){if(undefined===proto[methodName].overloadTable){var prevFunc=proto[methodName];proto[methodName]=function(){if(!proto[methodName].overloadTable.hasOwnProperty(arguments.length)){throwBindingError("Function '"+humanName+"' called with an invalid number of arguments ("+arguments.length+") - expects one of ("+proto[methodName].overloadTable+")!");}return proto[methodName].overloadTable[arguments.length].apply(this,arguments)};proto[methodName].overloadTable=[];proto[methodName].overloadTable[prevFunc.argCount]=prevFunc;}}function exposePublicSymbol(name,value,numArguments){if(Module.hasOwnProperty(name)){{throwBindingError("Cannot register public name '"+name+"' twice");}ensureOverloadTable(Module,name,name);if(Module.hasOwnProperty(numArguments)){throwBindingError("Cannot register multiple overloads of a function with the same number of arguments ("+numArguments+")!");}Module[name].overloadTable[numArguments]=value;}else {Module[name]=value;}}function RegisteredClass(name,constructor,instancePrototype,rawDestructor,baseClass,getActualType,upcast,downcast){this.name=name;this.constructor=constructor;this.instancePrototype=instancePrototype;this.rawDestructor=rawDestructor;this.baseClass=baseClass;this.getActualType=getActualType;this.upcast=upcast;this.downcast=downcast;this.pureVirtualFunctions=[];}function upcastPointer(ptr,ptrClass,desiredClass){while(ptrClass!==desiredClass){if(!ptrClass.upcast){throwBindingError("Expected null or instance of "+desiredClass.name+", got an instance of "+ptrClass.name);}ptr=ptrClass.upcast(ptr);ptrClass=ptrClass.baseClass;}return ptr}function constNoSmartPtrRawPointerToWireType(destructors,handle){if(handle===null){if(this.isReference){throwBindingError("null is not a valid "+this.name);}return 0}if(!handle.$$){throwBindingError('Cannot pass "'+_embind_repr(handle)+'" as a '+this.name);}if(!handle.$$.ptr){throwBindingError("Cannot pass deleted object as a pointer of type "+this.name);}var handleClass=handle.$$.ptrType.registeredClass;var ptr=upcastPointer(handle.$$.ptr,handleClass,this.registeredClass);return ptr}function genericPointerToWireType(destructors,handle){var ptr;if(handle===null){if(this.isReference){throwBindingError("null is not a valid "+this.name);}if(this.isSmartPointer){ptr=this.rawConstructor();if(destructors!==null){destructors.push(this.rawDestructor,ptr);}return ptr}else {return 0}}if(!handle.$$){throwBindingError('Cannot pass "'+_embind_repr(handle)+'" as a '+this.name);}if(!handle.$$.ptr){throwBindingError("Cannot pass deleted object as a pointer of type "+this.name);}if(!this.isConst&&handle.$$.ptrType.isConst){throwBindingError("Cannot convert argument of type "+(handle.$$.smartPtrType?handle.$$.smartPtrType.name:handle.$$.ptrType.name)+" to parameter type "+this.name);}var handleClass=handle.$$.ptrType.registeredClass;ptr=upcastPointer(handle.$$.ptr,handleClass,this.registeredClass);if(this.isSmartPointer){if(undefined===handle.$$.smartPtr){throwBindingError("Passing raw pointer to smart pointer is illegal");}switch(this.sharingPolicy){case 0:if(handle.$$.smartPtrType===this){ptr=handle.$$.smartPtr;}else {throwBindingError("Cannot convert argument of type "+(handle.$$.smartPtrType?handle.$$.smartPtrType.name:handle.$$.ptrType.name)+" to parameter type "+this.name);}break;case 1:ptr=handle.$$.smartPtr;break;case 2:if(handle.$$.smartPtrType===this){ptr=handle.$$.smartPtr;}else {var clonedHandle=handle["clone"]();ptr=this.rawShare(ptr,Emval.toHandle(function(){clonedHandle["delete"]();}));if(destructors!==null){destructors.push(this.rawDestructor,ptr);}}break;default:throwBindingError("Unsupporting sharing policy");}}return ptr}function nonConstNoSmartPtrRawPointerToWireType(destructors,handle){if(handle===null){if(this.isReference){throwBindingError("null is not a valid "+this.name);}return 0}if(!handle.$$){throwBindingError('Cannot pass "'+_embind_repr(handle)+'" as a '+this.name);}if(!handle.$$.ptr){throwBindingError("Cannot pass deleted object as a pointer of type "+this.name);}if(handle.$$.ptrType.isConst){throwBindingError("Cannot convert argument of type "+handle.$$.ptrType.name+" to parameter type "+this.name);}var handleClass=handle.$$.ptrType.registeredClass;var ptr=upcastPointer(handle.$$.ptr,handleClass,this.registeredClass);return ptr}function simpleReadValueFromPointer(pointer){return this["fromWireType"](HEAPU32[pointer>>2])}function RegisteredPointer_getPointee(ptr){if(this.rawGetPointee){ptr=this.rawGetPointee(ptr);}return ptr}function RegisteredPointer_destructor(ptr){if(this.rawDestructor){this.rawDestructor(ptr);}}function RegisteredPointer_deleteObject(handle){if(handle!==null){handle["delete"]();}}function init_RegisteredPointer(){RegisteredPointer.prototype.getPointee=RegisteredPointer_getPointee;RegisteredPointer.prototype.destructor=RegisteredPointer_destructor;RegisteredPointer.prototype["argPackAdvance"]=8;RegisteredPointer.prototype["readValueFromPointer"]=simpleReadValueFromPointer;RegisteredPointer.prototype["deleteObject"]=RegisteredPointer_deleteObject;RegisteredPointer.prototype["fromWireType"]=RegisteredPointer_fromWireType;}function RegisteredPointer(name,registeredClass,isReference,isConst,isSmartPointer,pointeeType,sharingPolicy,rawGetPointee,rawConstructor,rawShare,rawDestructor){this.name=name;this.registeredClass=registeredClass;this.isReference=isReference;this.isConst=isConst;this.isSmartPointer=isSmartPointer;this.pointeeType=pointeeType;this.sharingPolicy=sharingPolicy;this.rawGetPointee=rawGetPointee;this.rawConstructor=rawConstructor;this.rawShare=rawShare;this.rawDestructor=rawDestructor;if(!isSmartPointer&®isteredClass.baseClass===undefined){if(isConst){this["toWireType"]=constNoSmartPtrRawPointerToWireType;this.destructorFunction=null;}else {this["toWireType"]=nonConstNoSmartPtrRawPointerToWireType;this.destructorFunction=null;}}else {this["toWireType"]=genericPointerToWireType;}}function replacePublicSymbol(name,value,numArguments){if(!Module.hasOwnProperty(name)){throwInternalError("Replacing nonexistant public symbol");}if(undefined!==Module[name].overloadTable&&undefined!==numArguments);else {Module[name]=value;Module[name].argCount=numArguments;}}function dynCallLegacy(sig,ptr,args){var f=Module["dynCall_"+sig];return args&&args.length?f.apply(null,[ptr].concat(args)):f.call(null,ptr)}function dynCall(sig,ptr,args){if(sig.includes("j")){return dynCallLegacy(sig,ptr,args)}return getWasmTableEntry(ptr).apply(null,args)}function getDynCaller(sig,ptr){var argCache=[];return function(){argCache.length=0;Object.assign(argCache,arguments);return dynCall(sig,ptr,argCache)}}function embind__requireFunction(signature,rawFunction){signature=readLatin1String(signature);function makeDynCaller(){if(signature.includes("j")){return getDynCaller(signature,rawFunction)}return getWasmTableEntry(rawFunction)}var fp=makeDynCaller();if(typeof fp!="function"){throwBindingError("unknown function pointer with signature "+signature+": "+rawFunction);}return fp}var UnboundTypeError=undefined;function getTypeName(type){var ptr=___getTypeName(type);var rv=readLatin1String(ptr);_free(ptr);return rv}function throwUnboundTypeError(message,types){var unboundTypes=[];var seen={};function visit(type){if(seen[type]){return}if(registeredTypes[type]){return}if(typeDependencies[type]){typeDependencies[type].forEach(visit);return}unboundTypes.push(type);seen[type]=true;}types.forEach(visit);throw new UnboundTypeError(message+": "+unboundTypes.map(getTypeName).join([", "]))}function __embind_register_class(rawType,rawPointerType,rawConstPointerType,baseClassRawType,getActualTypeSignature,getActualType,upcastSignature,upcast,downcastSignature,downcast,name,destructorSignature,rawDestructor){name=readLatin1String(name);getActualType=embind__requireFunction(getActualTypeSignature,getActualType);if(upcast){upcast=embind__requireFunction(upcastSignature,upcast);}if(downcast){downcast=embind__requireFunction(downcastSignature,downcast);}rawDestructor=embind__requireFunction(destructorSignature,rawDestructor);var legalFunctionName=makeLegalFunctionName(name);exposePublicSymbol(legalFunctionName,function(){throwUnboundTypeError("Cannot construct "+name+" due to unbound types",[baseClassRawType]);});whenDependentTypesAreResolved([rawType,rawPointerType,rawConstPointerType],baseClassRawType?[baseClassRawType]:[],function(base){base=base[0];var baseClass;var basePrototype;if(baseClassRawType){baseClass=base.registeredClass;basePrototype=baseClass.instancePrototype;}else {basePrototype=ClassHandle.prototype;}var constructor=createNamedFunction(legalFunctionName,function(){if(Object.getPrototypeOf(this)!==instancePrototype){throw new BindingError("Use 'new' to construct "+name)}if(undefined===registeredClass.constructor_body){throw new BindingError(name+" has no accessible constructor")}var body=registeredClass.constructor_body[arguments.length];if(undefined===body){throw new BindingError("Tried to invoke ctor of "+name+" with invalid number of parameters ("+arguments.length+") - expected ("+Object.keys(registeredClass.constructor_body).toString()+") parameters instead!")}return body.apply(this,arguments)});var instancePrototype=Object.create(basePrototype,{constructor:{value:constructor}});constructor.prototype=instancePrototype;var registeredClass=new RegisteredClass(name,constructor,instancePrototype,rawDestructor,baseClass,getActualType,upcast,downcast);var referenceConverter=new RegisteredPointer(name,registeredClass,true,false,false);var pointerConverter=new RegisteredPointer(name+"*",registeredClass,false,false,false);var constPointerConverter=new RegisteredPointer(name+" const*",registeredClass,false,true,false);registeredPointers[rawType]={pointerType:pointerConverter,constPointerType:constPointerConverter};replacePublicSymbol(legalFunctionName,constructor);return [referenceConverter,pointerConverter,constPointerConverter]});}function heap32VectorToArray(count,firstElement){var array=[];for(var i=0;i<count;i++){array.push(HEAP32[(firstElement>>2)+i]);}return array}function runDestructors(destructors){while(destructors.length){var ptr=destructors.pop();var del=destructors.pop();del(ptr);}}function __embind_register_class_constructor(rawClassType,argCount,rawArgTypesAddr,invokerSignature,invoker,rawConstructor){assert(argCount>0);var rawArgTypes=heap32VectorToArray(argCount,rawArgTypesAddr);invoker=embind__requireFunction(invokerSignature,invoker);whenDependentTypesAreResolved([],[rawClassType],function(classType){classType=classType[0];var humanName="constructor "+classType.name;if(undefined===classType.registeredClass.constructor_body){classType.registeredClass.constructor_body=[];}if(undefined!==classType.registeredClass.constructor_body[argCount-1]){throw new BindingError("Cannot register multiple constructors with identical number of parameters ("+(argCount-1)+") for class '"+classType.name+"'! Overload resolution is currently only performed using the parameter count, not actual type info!")}classType.registeredClass.constructor_body[argCount-1]=(()=>{throwUnboundTypeError("Cannot construct "+classType.name+" due to unbound types",rawArgTypes);});whenDependentTypesAreResolved([],rawArgTypes,function(argTypes){argTypes.splice(1,0,null);classType.registeredClass.constructor_body[argCount-1]=craftInvokerFunction(humanName,argTypes,null,invoker,rawConstructor);return []});return []});}function new_(constructor,argumentList){if(!(constructor instanceof Function)){throw new TypeError("new_ called with constructor type "+typeof constructor+" which is not a function")}var dummy=createNamedFunction(constructor.name||"unknownFunctionName",function(){});dummy.prototype=constructor.prototype;var obj=new dummy;var r=constructor.apply(obj,argumentList);return r instanceof Object?r:obj}function craftInvokerFunction(humanName,argTypes,classType,cppInvokerFunc,cppTargetFunc){var argCount=argTypes.length;if(argCount<2){throwBindingError("argTypes array size mismatch! Must at least get return value and 'this' types!");}var isClassMethodFunc=argTypes[1]!==null&&classType!==null;var needsDestructorStack=false;for(var i=1;i<argTypes.length;++i){if(argTypes[i]!==null&&argTypes[i].destructorFunction===undefined){needsDestructorStack=true;break}}var returns=argTypes[0].name!=="void";var argsList="";var argsListWired="";for(var i=0;i<argCount-2;++i){argsList+=(i!==0?", ":"")+"arg"+i;argsListWired+=(i!==0?", ":"")+"arg"+i+"Wired";}var invokerFnBody="return function "+makeLegalFunctionName(humanName)+"("+argsList+") {\n"+"if (arguments.length !== "+(argCount-2)+") {\n"+"throwBindingError('function "+humanName+" called with ' + arguments.length + ' arguments, expected "+(argCount-2)+" args!');\n"+"}\n";if(needsDestructorStack){invokerFnBody+="var destructors = [];\n";}var dtorStack=needsDestructorStack?"destructors":"null";var args1=["throwBindingError","invoker","fn","runDestructors","retType","classParam"];var args2=[throwBindingError,cppInvokerFunc,cppTargetFunc,runDestructors,argTypes[0],argTypes[1]];if(isClassMethodFunc){invokerFnBody+="var thisWired = classParam.toWireType("+dtorStack+", this);\n";}for(var i=0;i<argCount-2;++i){invokerFnBody+="var arg"+i+"Wired = argType"+i+".toWireType("+dtorStack+", arg"+i+"); // "+argTypes[i+2].name+"\n";args1.push("argType"+i);args2.push(argTypes[i+2]);}if(isClassMethodFunc){argsListWired="thisWired"+(argsListWired.length>0?", ":"")+argsListWired;}invokerFnBody+=(returns?"var rv = ":"")+"invoker(fn"+(argsListWired.length>0?", ":"")+argsListWired+");\n";if(needsDestructorStack){invokerFnBody+="runDestructors(destructors);\n";}else {for(var i=isClassMethodFunc?1:2;i<argTypes.length;++i){var paramName=i===1?"thisWired":"arg"+(i-2)+"Wired";if(argTypes[i].destructorFunction!==null){invokerFnBody+=paramName+"_dtor("+paramName+"); // "+argTypes[i].name+"\n";args1.push(paramName+"_dtor");args2.push(argTypes[i].destructorFunction);}}}if(returns){invokerFnBody+="var ret = retType.fromWireType(rv);\n"+"return ret;\n";}invokerFnBody+="}\n";args1.push(invokerFnBody);var invokerFunction=new_(Function,args1).apply(null,args2);return invokerFunction}function __embind_register_class_function(rawClassType,methodName,argCount,rawArgTypesAddr,invokerSignature,rawInvoker,context,isPureVirtual){var rawArgTypes=heap32VectorToArray(argCount,rawArgTypesAddr);methodName=readLatin1String(methodName);rawInvoker=embind__requireFunction(invokerSignature,rawInvoker);whenDependentTypesAreResolved([],[rawClassType],function(classType){classType=classType[0];var humanName=classType.name+"."+methodName;if(methodName.startsWith("@@")){methodName=Symbol[methodName.substring(2)];}if(isPureVirtual){classType.registeredClass.pureVirtualFunctions.push(methodName);}function unboundTypesHandler(){throwUnboundTypeError("Cannot call "+humanName+" due to unbound types",rawArgTypes);}var proto=classType.registeredClass.instancePrototype;var method=proto[methodName];if(undefined===method||undefined===method.overloadTable&&method.className!==classType.name&&method.argCount===argCount-2){unboundTypesHandler.argCount=argCount-2;unboundTypesHandler.className=classType.name;proto[methodName]=unboundTypesHandler;}else {ensureOverloadTable(proto,methodName,humanName);proto[methodName].overloadTable[argCount-2]=unboundTypesHandler;}whenDependentTypesAreResolved([],rawArgTypes,function(argTypes){var memberFunction=craftInvokerFunction(humanName,argTypes,classType,rawInvoker,context);if(undefined===proto[methodName].overloadTable){memberFunction.argCount=argCount-2;proto[methodName]=memberFunction;}else {proto[methodName].overloadTable[argCount-2]=memberFunction;}return []});return []});}var emval_free_list=[];var emval_handle_array=[{},{value:undefined},{value:null},{value:true},{value:false}];function __emval_decref(handle){if(handle>4&&0===--emval_handle_array[handle].refcount){emval_handle_array[handle]=undefined;emval_free_list.push(handle);}}function count_emval_handles(){var count=0;for(var i=5;i<emval_handle_array.length;++i){if(emval_handle_array[i]!==undefined){++count;}}return count}function get_first_emval(){for(var i=5;i<emval_handle_array.length;++i){if(emval_handle_array[i]!==undefined){return emval_handle_array[i]}}return null}function init_emval(){Module["count_emval_handles"]=count_emval_handles;Module["get_first_emval"]=get_first_emval;}var Emval={toValue:function(handle){if(!handle){throwBindingError("Cannot use deleted val. handle = "+handle);}return emval_handle_array[handle].value},toHandle:function(value){switch(value){case undefined:{return 1}case null:{return 2}case true:{return 3}case false:{return 4}default:{var handle=emval_free_list.length?emval_free_list.pop():emval_handle_array.length;emval_handle_array[handle]={refcount:1,value:value};return handle}}}};function __embind_register_emval(rawType,name){name=readLatin1String(name);registerType(rawType,{name:name,"fromWireType":function(handle){var rv=Emval.toValue(handle);__emval_decref(handle);return rv},"toWireType":function(destructors,value){return Emval.toHandle(value)},"argPackAdvance":8,"readValueFromPointer":simpleReadValueFromPointer,destructorFunction:null});}function _embind_repr(v){if(v===null){return "null"}var t=typeof v;if(t==="object"||t==="array"||t==="function"){return v.toString()}else {return ""+v}}function floatReadValueFromPointer(name,shift){switch(shift){case 2:return function(pointer){return this["fromWireType"](HEAPF32[pointer>>2])};case 3:return function(pointer){return this["fromWireType"](HEAPF64[pointer>>3])};default:throw new TypeError("Unknown float type: "+name)}}function __embind_register_float(rawType,name,size){var shift=getShiftFromSize(size);name=readLatin1String(name);registerType(rawType,{name:name,"fromWireType":function(value){return value},"toWireType":function(destructors,value){return value},"argPackAdvance":8,"readValueFromPointer":floatReadValueFromPointer(name,shift),destructorFunction:null});}function integerReadValueFromPointer(name,shift,signed){switch(shift){case 0:return signed?function readS8FromPointer(pointer){return HEAP8[pointer]}:function readU8FromPointer(pointer){return HEAPU8[pointer]};case 1:return signed?function readS16FromPointer(pointer){return HEAP16[pointer>>1]}:function readU16FromPointer(pointer){return HEAPU16[pointer>>1]};case 2:return signed?function readS32FromPointer(pointer){return HEAP32[pointer>>2]}:function readU32FromPointer(pointer){return HEAPU32[pointer>>2]};default:throw new TypeError("Unknown integer type: "+name)}}function __embind_register_integer(primitiveType,name,size,minRange,maxRange){name=readLatin1String(name);var shift=getShiftFromSize(size);var fromWireType=value=>value;if(minRange===0){var bitshift=32-8*size;fromWireType=(value=>value<<bitshift>>>bitshift);}var isUnsignedType=name.includes("unsigned");var checkAssertions=(value,toTypeName)=>{};var toWireType;if(isUnsignedType){toWireType=function(destructors,value){checkAssertions(value,this.name);return value>>>0};}else {toWireType=function(destructors,value){checkAssertions(value,this.name);return value};}registerType(primitiveType,{name:name,"fromWireType":fromWireType,"toWireType":toWireType,"argPackAdvance":8,"readValueFromPointer":integerReadValueFromPointer(name,shift,minRange!==0),destructorFunction:null});}function __embind_register_memory_view(rawType,dataTypeIndex,name){var typeMapping=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array];var TA=typeMapping[dataTypeIndex];function decodeMemoryView(handle){handle=handle>>2;var heap=HEAPU32;var size=heap[handle];var data=heap[handle+1];return new TA(buffer,data,size)}name=readLatin1String(name);registerType(rawType,{name:name,"fromWireType":decodeMemoryView,"argPackAdvance":8,"readValueFromPointer":decodeMemoryView},{ignoreDuplicateRegistrations:true});}function __embind_register_std_string(rawType,name){name=readLatin1String(name);var stdStringIsUTF8=name==="std::string";registerType(rawType,{name:name,"fromWireType":function(value){var length=HEAPU32[value>>2];var str;if(stdStringIsUTF8){var decodeStartPtr=value+4;for(var i=0;i<=length;++i){var currentBytePtr=value+4+i;if(i==length||HEAPU8[currentBytePtr]==0){var maxRead=currentBytePtr-decodeStartPtr;var stringSegment=UTF8ToString(decodeStartPtr,maxRead);if(str===undefined){str=stringSegment;}else {str+=String.fromCharCode(0);str+=stringSegment;}decodeStartPtr=currentBytePtr+1;}}}else {var a=new Array(length);for(var i=0;i<length;++i){a[i]=String.fromCharCode(HEAPU8[value+4+i]);}str=a.join("");}_free(value);return str},"toWireType":function(destructors,value){if(value instanceof ArrayBuffer){value=new Uint8Array(value);}var getLength;var valueIsOfTypeString=typeof value=="string";if(!(valueIsOfTypeString||value instanceof Uint8Array||value instanceof Uint8ClampedArray||value instanceof Int8Array)){throwBindingError("Cannot pass non-string to std::string");}if(stdStringIsUTF8&&valueIsOfTypeString){getLength=(()=>lengthBytesUTF8(value));}else {getLength=(()=>value.length);}var length=getLength();var ptr=_malloc(4+length+1);HEAPU32[ptr>>2]=length;if(stdStringIsUTF8&&valueIsOfTypeString){stringToUTF8(value,ptr+4,length+1);}else {if(valueIsOfTypeString){for(var i=0;i<length;++i){var charCode=value.charCodeAt(i);if(charCode>255){_free(ptr);throwBindingError("String has UTF-16 code units that do not fit in 8 bits");}HEAPU8[ptr+4+i]=charCode;}}else {for(var i=0;i<length;++i){HEAPU8[ptr+4+i]=value[i];}}}if(destructors!==null){destructors.push(_free,ptr);}return ptr},"argPackAdvance":8,"readValueFromPointer":simpleReadValueFromPointer,destructorFunction:function(ptr){_free(ptr);}});}function __embind_register_std_wstring(rawType,charSize,name){name=readLatin1String(name);var decodeString,encodeString,getHeap,lengthBytesUTF,shift;if(charSize===2){decodeString=UTF16ToString;encodeString=stringToUTF16;lengthBytesUTF=lengthBytesUTF16;getHeap=(()=>HEAPU16);shift=1;}else if(charSize===4){decodeString=UTF32ToString;encodeString=stringToUTF32;lengthBytesUTF=lengthBytesUTF32;getHeap=(()=>HEAPU32);shift=2;}registerType(rawType,{name:name,"fromWireType":function(value){var length=HEAPU32[value>>2];var HEAP=getHeap();var str;var decodeStartPtr=value+4;for(var i=0;i<=length;++i){var currentBytePtr=value+4+i*charSize;if(i==length||HEAP[currentBytePtr>>shift]==0){var maxReadBytes=currentBytePtr-decodeStartPtr;var stringSegment=decodeString(decodeStartPtr,maxReadBytes);if(str===undefined){str=stringSegment;}else {str+=String.fromCharCode(0);str+=stringSegment;}decodeStartPtr=currentBytePtr+charSize;}}_free(value);return str},"toWireType":function(destructors,value){if(!(typeof value=="string")){throwBindingError("Cannot pass non-string to C++ string type "+name);}var length=lengthBytesUTF(value);var ptr=_malloc(4+length+charSize);HEAPU32[ptr>>2]=length>>shift;encodeString(value,ptr+4,length+charSize);if(destructors!==null){destructors.push(_free,ptr);}return ptr},"argPackAdvance":8,"readValueFromPointer":simpleReadValueFromPointer,destructorFunction:function(ptr){_free(ptr);}});}function __embind_register_void(rawType,name){name=readLatin1String(name);registerType(rawType,{isVoid:true,name:name,"argPackAdvance":0,"fromWireType":function(){return undefined},"toWireType":function(destructors,o){return undefined}});}function _abort(){abort("");}function _emscripten_memcpy_big(dest,src,num){HEAPU8.copyWithin(dest,src,src+num);}function _emscripten_get_heap_max(){return 2147483648}function emscripten_realloc_buffer(size){try{wasmMemory.grow(size-buffer.byteLength+65535>>>16);updateGlobalBufferAndViews(wasmMemory.buffer);return 1}catch(e){}}function _emscripten_resize_heap(requestedSize){var oldSize=HEAPU8.length;requestedSize=requestedSize>>>0;var maxHeapSize=_emscripten_get_heap_max();if(requestedSize>maxHeapSize){return false}let alignUp=(x,multiple)=>x+(multiple-x%multiple)%multiple;for(var cutDown=1;cutDown<=4;cutDown*=2){var overGrownHeapSize=oldSize*(1+.2/cutDown);overGrownHeapSize=Math.min(overGrownHeapSize,requestedSize+100663296);var newSize=Math.min(maxHeapSize,alignUp(Math.max(requestedSize,overGrownHeapSize),65536));var replacement=emscripten_realloc_buffer(newSize);if(replacement){return true}}return false}function _setTempRet0(val){}embind_init_charCodes();BindingError=Module["BindingError"]=extendError(Error,"BindingError");InternalError=Module["InternalError"]=extendError(Error,"InternalError");init_ClassHandle();init_embind();init_RegisteredPointer();UnboundTypeError=Module["UnboundTypeError"]=extendError(Error,"UnboundTypeError");init_emval();var asmLibraryArg={"a":___assert_fail,"k":__embind_register_bigint,"i":__embind_register_bool,"q":__embind_register_class,"p":__embind_register_class_constructor,"b":__embind_register_class_function,"o":__embind_register_emval,"h":__embind_register_float,"d":__embind_register_integer,"c":__embind_register_memory_view,"g":__embind_register_std_string,"e":__embind_register_std_wstring,"j":__embind_register_void,"l":_abort,"n":_emscripten_memcpy_big,"m":_emscripten_resize_heap,"f":_setTempRet0};createWasm();Module["___wasm_call_ctors"]=function(){return (Module["___wasm_call_ctors"]=Module["asm"]["s"]).apply(null,arguments)};Module["_decodeRGBA"]=function(){return (Module["_decodeRGBA"]=Module["asm"]["t"]).apply(null,arguments)};Module["_decodeFree"]=function(){return (Module["_decodeFree"]=Module["asm"]["u"]).apply(null,arguments)};Module["_allocBuffer"]=function(){return (Module["_allocBuffer"]=Module["asm"]["v"]).apply(null,arguments)};var _malloc=Module["_malloc"]=function(){return (_malloc=Module["_malloc"]=Module["asm"]["w"]).apply(null,arguments)};Module["_destroyBuffer"]=function(){return (Module["_destroyBuffer"]=Module["asm"]["x"]).apply(null,arguments)};var _free=Module["_free"]=function(){return (_free=Module["_free"]=Module["asm"]["y"]).apply(null,arguments)};var ___getTypeName=Module["___getTypeName"]=function(){return (___getTypeName=Module["___getTypeName"]=Module["asm"]["A"]).apply(null,arguments)};Module["___embind_register_native_and_builtin_types"]=function(){return (Module["___embind_register_native_and_builtin_types"]=Module["asm"]["B"]).apply(null,arguments)};var stackSave=Module["stackSave"]=function(){return (stackSave=Module["stackSave"]=Module["asm"]["C"]).apply(null,arguments)};var stackRestore=Module["stackRestore"]=function(){return (stackRestore=Module["stackRestore"]=Module["asm"]["D"]).apply(null,arguments)};var stackAlloc=Module["stackAlloc"]=function(){return (stackAlloc=Module["stackAlloc"]=Module["asm"]["E"]).apply(null,arguments)};Module["dynCall_ji"]=function(){return (Module["dynCall_ji"]=Module["asm"]["F"]).apply(null,arguments)};Module["dynCall_jii"]=function(){return (Module["dynCall_jii"]=Module["asm"]["G"]).apply(null,arguments)};Module["dynCall_jiiiii"]=function(){return (Module["dynCall_jiiiii"]=Module["asm"]["H"]).apply(null,arguments)};Module["cwrap"]=cwrap;var calledRun;function ExitStatus(status){this.name="ExitStatus";this.message="Program terminated with exit("+status+")";this.status=status;}dependenciesFulfilled=function runCaller(){if(!calledRun)run();if(!calledRun)dependenciesFulfilled=runCaller;};function run(args){if(runDependencies>0){return}preRun();if(runDependencies>0){return}function doRun(){if(calledRun)return;calledRun=true;Module["calledRun"]=true;if(ABORT)return;initRuntime();readyPromiseResolve(Module);if(Module["onRuntimeInitialized"])Module["onRuntimeInitialized"]();postRun();}if(Module["setStatus"]){Module["setStatus"]("Running...");setTimeout(function(){setTimeout(function(){Module["setStatus"]("");},1);doRun();},1);}else {doRun();}}Module["run"]=run;if(Module["preInit"]){if(typeof Module["preInit"]=="function")Module["preInit"]=[Module["preInit"]];while(Module["preInit"].length>0){Module["preInit"].pop()();}}run();
|
|
29977
|
+
var Module=typeof LibWebP!="undefined"?LibWebP:{};var readyPromiseResolve,readyPromiseReject;Module["ready"]=new Promise(function(resolve,reject){readyPromiseResolve=resolve;readyPromiseReject=reject;});var moduleOverrides=Object.assign({},Module);var ENVIRONMENT_IS_WEB=typeof window=="object";var ENVIRONMENT_IS_WORKER=typeof importScripts=="function";var ENVIRONMENT_IS_NODE=typeof process=="object"&&typeof process.versions=="object"&&typeof process.versions.node=="string";var scriptDirectory="";function locateFile(path){if(Module["locateFile"]){return Module["locateFile"](path,scriptDirectory)}return scriptDirectory+path}var read_,readAsync,readBinary;var fs;var nodePath;var requireNodeFS;if(ENVIRONMENT_IS_NODE){if(ENVIRONMENT_IS_WORKER){scriptDirectory=require$$1$1.dirname(scriptDirectory)+"/";}else {scriptDirectory=__dirname+"/";}requireNodeFS=(()=>{if(!nodePath){fs=require$$0$5;nodePath=require$$1$1;}});read_=function shell_read(filename,binary){requireNodeFS();filename=nodePath["normalize"](filename);return fs.readFileSync(filename,binary?undefined:"utf8")};readBinary=(filename=>{var ret=read_(filename,true);if(!ret.buffer){ret=new Uint8Array(ret);}return ret});readAsync=((filename,onload,onerror)=>{requireNodeFS();filename=nodePath["normalize"](filename);fs.readFile(filename,function(err,data){if(err)onerror(err);else onload(data.buffer);});});if(process["argv"].length>1){process["argv"][1].replace(/\\/g,"/");}process["argv"].slice(2);process["on"]("uncaughtException",function(ex){if(!(ex instanceof ExitStatus)){throw ex}});process["on"]("unhandledRejection",function(reason){throw reason});Module["inspect"]=function(){return "[Emscripten Module object]"};}else if(ENVIRONMENT_IS_WEB||ENVIRONMENT_IS_WORKER){if(ENVIRONMENT_IS_WORKER){scriptDirectory=self.location.href;}else if(typeof document!="undefined"&&document.currentScript){scriptDirectory=document.currentScript.src;}if(_scriptDir){scriptDirectory=_scriptDir;}if(scriptDirectory.indexOf("blob:")!==0){scriptDirectory=scriptDirectory.substr(0,scriptDirectory.replace(/[?#].*/,"").lastIndexOf("/")+1);}else {scriptDirectory="";}{read_=(url=>{var xhr=new XMLHttpRequest;xhr.open("GET",url,false);xhr.send(null);return xhr.responseText});if(ENVIRONMENT_IS_WORKER){readBinary=(url=>{var xhr=new XMLHttpRequest;xhr.open("GET",url,false);xhr.responseType="arraybuffer";xhr.send(null);return new Uint8Array(xhr.response)});}readAsync=((url,onload,onerror)=>{var xhr=new XMLHttpRequest;xhr.open("GET",url,true);xhr.responseType="arraybuffer";xhr.onload=(()=>{if(xhr.status==200||xhr.status==0&&xhr.response){onload(xhr.response);return}onerror();});xhr.onerror=onerror;xhr.send(null);});}}else;Module["print"]||console.log.bind(console);var err=Module["printErr"]||console.warn.bind(console);Object.assign(Module,moduleOverrides);moduleOverrides=null;if(Module["arguments"])Module["arguments"];if(Module["thisProgram"])Module["thisProgram"];if(Module["quit"])Module["quit"];var wasmBinary;if(Module["wasmBinary"])wasmBinary=Module["wasmBinary"];Module["noExitRuntime"]||true;if(typeof WebAssembly!="object"){abort("no native wasm support detected");}var wasmMemory;var ABORT=false;function assert(condition,text){if(!condition){abort(text);}}function getCFunc(ident){var func=Module["_"+ident];return func}function ccall(ident,returnType,argTypes,args,opts){var toC={"string":function(str){var ret=0;if(str!==null&&str!==undefined&&str!==0){var len=(str.length<<2)+1;ret=stackAlloc(len);stringToUTF8(str,ret,len);}return ret},"array":function(arr){var ret=stackAlloc(arr.length);writeArrayToMemory(arr,ret);return ret}};function convertReturnValue(ret){if(returnType==="string")return UTF8ToString(ret);if(returnType==="boolean")return Boolean(ret);return ret}var func=getCFunc(ident);var cArgs=[];var stack=0;if(args){for(var i=0;i<args.length;i++){var converter=toC[argTypes[i]];if(converter){if(stack===0)stack=stackSave();cArgs[i]=converter(args[i]);}else {cArgs[i]=args[i];}}}var ret=func.apply(null,cArgs);function onDone(ret){if(stack!==0)stackRestore(stack);return convertReturnValue(ret)}ret=onDone(ret);return ret}function cwrap(ident,returnType,argTypes,opts){argTypes=argTypes||[];var numericArgs=argTypes.every(function(type){return type==="number"});var numericRet=returnType!=="string";if(numericRet&&numericArgs&&!opts){return getCFunc(ident)}return function(){return ccall(ident,returnType,argTypes,arguments)}}var UTF8Decoder=typeof TextDecoder!="undefined"?new TextDecoder("utf8"):undefined;function UTF8ArrayToString(heap,idx,maxBytesToRead){var endIdx=idx+maxBytesToRead;var endPtr=idx;while(heap[endPtr]&&!(endPtr>=endIdx))++endPtr;if(endPtr-idx>16&&heap.subarray&&UTF8Decoder){return UTF8Decoder.decode(heap.subarray(idx,endPtr))}else {var str="";while(idx<endPtr){var u0=heap[idx++];if(!(u0&128)){str+=String.fromCharCode(u0);continue}var u1=heap[idx++]&63;if((u0&224)==192){str+=String.fromCharCode((u0&31)<<6|u1);continue}var u2=heap[idx++]&63;if((u0&240)==224){u0=(u0&15)<<12|u1<<6|u2;}else {u0=(u0&7)<<18|u1<<12|u2<<6|heap[idx++]&63;}if(u0<65536){str+=String.fromCharCode(u0);}else {var ch=u0-65536;str+=String.fromCharCode(55296|ch>>10,56320|ch&1023);}}}return str}function UTF8ToString(ptr,maxBytesToRead){return ptr?UTF8ArrayToString(HEAPU8,ptr,maxBytesToRead):""}function stringToUTF8Array(str,heap,outIdx,maxBytesToWrite){if(!(maxBytesToWrite>0))return 0;var startIdx=outIdx;var endIdx=outIdx+maxBytesToWrite-1;for(var i=0;i<str.length;++i){var u=str.charCodeAt(i);if(u>=55296&&u<=57343){var u1=str.charCodeAt(++i);u=65536+((u&1023)<<10)|u1&1023;}if(u<=127){if(outIdx>=endIdx)break;heap[outIdx++]=u;}else if(u<=2047){if(outIdx+1>=endIdx)break;heap[outIdx++]=192|u>>6;heap[outIdx++]=128|u&63;}else if(u<=65535){if(outIdx+2>=endIdx)break;heap[outIdx++]=224|u>>12;heap[outIdx++]=128|u>>6&63;heap[outIdx++]=128|u&63;}else {if(outIdx+3>=endIdx)break;heap[outIdx++]=240|u>>18;heap[outIdx++]=128|u>>12&63;heap[outIdx++]=128|u>>6&63;heap[outIdx++]=128|u&63;}}heap[outIdx]=0;return outIdx-startIdx}function stringToUTF8(str,outPtr,maxBytesToWrite){return stringToUTF8Array(str,HEAPU8,outPtr,maxBytesToWrite)}function lengthBytesUTF8(str){var len=0;for(var i=0;i<str.length;++i){var u=str.charCodeAt(i);if(u>=55296&&u<=57343)u=65536+((u&1023)<<10)|str.charCodeAt(++i)&1023;if(u<=127)++len;else if(u<=2047)len+=2;else if(u<=65535)len+=3;else len+=4;}return len}var UTF16Decoder=typeof TextDecoder!="undefined"?new TextDecoder("utf-16le"):undefined;function UTF16ToString(ptr,maxBytesToRead){var endPtr=ptr;var idx=endPtr>>1;var maxIdx=idx+maxBytesToRead/2;while(!(idx>=maxIdx)&&HEAPU16[idx])++idx;endPtr=idx<<1;if(endPtr-ptr>32&&UTF16Decoder){return UTF16Decoder.decode(HEAPU8.subarray(ptr,endPtr))}else {var str="";for(var i=0;!(i>=maxBytesToRead/2);++i){var codeUnit=HEAP16[ptr+i*2>>1];if(codeUnit==0)break;str+=String.fromCharCode(codeUnit);}return str}}function stringToUTF16(str,outPtr,maxBytesToWrite){if(maxBytesToWrite===undefined){maxBytesToWrite=2147483647;}if(maxBytesToWrite<2)return 0;maxBytesToWrite-=2;var startPtr=outPtr;var numCharsToWrite=maxBytesToWrite<str.length*2?maxBytesToWrite/2:str.length;for(var i=0;i<numCharsToWrite;++i){var codeUnit=str.charCodeAt(i);HEAP16[outPtr>>1]=codeUnit;outPtr+=2;}HEAP16[outPtr>>1]=0;return outPtr-startPtr}function lengthBytesUTF16(str){return str.length*2}function UTF32ToString(ptr,maxBytesToRead){var i=0;var str="";while(!(i>=maxBytesToRead/4)){var utf32=HEAP32[ptr+i*4>>2];if(utf32==0)break;++i;if(utf32>=65536){var ch=utf32-65536;str+=String.fromCharCode(55296|ch>>10,56320|ch&1023);}else {str+=String.fromCharCode(utf32);}}return str}function stringToUTF32(str,outPtr,maxBytesToWrite){if(maxBytesToWrite===undefined){maxBytesToWrite=2147483647;}if(maxBytesToWrite<4)return 0;var startPtr=outPtr;var endPtr=startPtr+maxBytesToWrite-4;for(var i=0;i<str.length;++i){var codeUnit=str.charCodeAt(i);if(codeUnit>=55296&&codeUnit<=57343){var trailSurrogate=str.charCodeAt(++i);codeUnit=65536+((codeUnit&1023)<<10)|trailSurrogate&1023;}HEAP32[outPtr>>2]=codeUnit;outPtr+=4;if(outPtr+4>endPtr)break}HEAP32[outPtr>>2]=0;return outPtr-startPtr}function lengthBytesUTF32(str){var len=0;for(var i=0;i<str.length;++i){var codeUnit=str.charCodeAt(i);if(codeUnit>=55296&&codeUnit<=57343)++i;len+=4;}return len}function writeArrayToMemory(array,buffer){HEAP8.set(array,buffer);}var buffer,HEAP8,HEAPU8,HEAP16,HEAPU16,HEAP32,HEAPU32,HEAPF32,HEAPF64;function updateGlobalBufferAndViews(buf){buffer=buf;Module["HEAP8"]=HEAP8=new Int8Array(buf);Module["HEAP16"]=HEAP16=new Int16Array(buf);Module["HEAP32"]=HEAP32=new Int32Array(buf);Module["HEAPU8"]=HEAPU8=new Uint8Array(buf);Module["HEAPU16"]=HEAPU16=new Uint16Array(buf);Module["HEAPU32"]=HEAPU32=new Uint32Array(buf);Module["HEAPF32"]=HEAPF32=new Float32Array(buf);Module["HEAPF64"]=HEAPF64=new Float64Array(buf);}Module["INITIAL_MEMORY"]||16777216;var wasmTable;var __ATPRERUN__=[];var __ATINIT__=[];var __ATPOSTRUN__=[];function preRun(){if(Module["preRun"]){if(typeof Module["preRun"]=="function")Module["preRun"]=[Module["preRun"]];while(Module["preRun"].length){addOnPreRun(Module["preRun"].shift());}}callRuntimeCallbacks(__ATPRERUN__);}function initRuntime(){callRuntimeCallbacks(__ATINIT__);}function postRun(){if(Module["postRun"]){if(typeof Module["postRun"]=="function")Module["postRun"]=[Module["postRun"]];while(Module["postRun"].length){addOnPostRun(Module["postRun"].shift());}}callRuntimeCallbacks(__ATPOSTRUN__);}function addOnPreRun(cb){__ATPRERUN__.unshift(cb);}function addOnInit(cb){__ATINIT__.unshift(cb);}function addOnPostRun(cb){__ATPOSTRUN__.unshift(cb);}var runDependencies=0;var dependenciesFulfilled=null;function addRunDependency(id){runDependencies++;if(Module["monitorRunDependencies"]){Module["monitorRunDependencies"](runDependencies);}}function removeRunDependency(id){runDependencies--;if(Module["monitorRunDependencies"]){Module["monitorRunDependencies"](runDependencies);}if(runDependencies==0){if(dependenciesFulfilled){var callback=dependenciesFulfilled;dependenciesFulfilled=null;callback();}}}Module["preloadedImages"]={};Module["preloadedAudios"]={};function abort(what){{if(Module["onAbort"]){Module["onAbort"](what);}}what="Aborted("+what+")";err(what);ABORT=true;what+=". Build with -s ASSERTIONS=1 for more info.";var e=new WebAssembly.RuntimeError(what);readyPromiseReject(e);throw e}var dataURIPrefix="data:application/octet-stream;base64,";function isDataURI(filename){return filename.startsWith(dataURIPrefix)}function isFileURI(filename){return filename.startsWith("file://")}var wasmBinaryFile;wasmBinaryFile="libwebp.wasm";if(!isDataURI(wasmBinaryFile)){wasmBinaryFile=locateFile(wasmBinaryFile);}function getBinary(file){try{if(file==wasmBinaryFile&&wasmBinary){return new Uint8Array(wasmBinary)}if(readBinary){return readBinary(file)}else {throw "both async and sync fetching of the wasm failed"}}catch(err){abort(err);}}function getBinaryPromise(){if(!wasmBinary&&(ENVIRONMENT_IS_WEB||ENVIRONMENT_IS_WORKER)){if(typeof fetch=="function"&&!isFileURI(wasmBinaryFile)){return fetch(wasmBinaryFile,{credentials:"same-origin"}).then(function(response){if(!response["ok"]){throw "failed to load wasm binary file at '"+wasmBinaryFile+"'"}return response["arrayBuffer"]()}).catch(function(){return getBinary(wasmBinaryFile)})}else {if(readAsync){return new Promise(function(resolve,reject){readAsync(wasmBinaryFile,function(response){resolve(new Uint8Array(response));},reject);})}}}return Promise.resolve().then(function(){return getBinary(wasmBinaryFile)})}function createWasm(){var info={"a":asmLibraryArg};function receiveInstance(instance,module){var exports$1=instance.exports;Module["asm"]=exports$1;wasmMemory=Module["asm"]["r"];updateGlobalBufferAndViews(wasmMemory.buffer);wasmTable=Module["asm"]["z"];addOnInit(Module["asm"]["s"]);removeRunDependency();}addRunDependency();function receiveInstantiationResult(result){receiveInstance(result["instance"]);}function instantiateArrayBuffer(receiver){return getBinaryPromise().then(function(binary){return WebAssembly.instantiate(binary,info)}).then(function(instance){return instance}).then(receiver,function(reason){err("failed to asynchronously prepare wasm: "+reason);abort(reason);})}function instantiateAsync(){if(!wasmBinary&&typeof WebAssembly.instantiateStreaming=="function"&&!isDataURI(wasmBinaryFile)&&!isFileURI(wasmBinaryFile)&&!ENVIRONMENT_IS_NODE&&typeof fetch=="function"){return fetch(wasmBinaryFile,{credentials:"same-origin"}).then(function(response){var result=WebAssembly.instantiateStreaming(response,info);return result.then(receiveInstantiationResult,function(reason){err("wasm streaming compile failed: "+reason);err("falling back to ArrayBuffer instantiation");return instantiateArrayBuffer(receiveInstantiationResult)})})}else {return instantiateArrayBuffer(receiveInstantiationResult)}}if(Module["instantiateWasm"]){try{var exports$1=Module["instantiateWasm"](info,receiveInstance);return exports$1}catch(e){err("Module.instantiateWasm callback failed with error: "+e);return false}}instantiateAsync().catch(readyPromiseReject);return {}}function callRuntimeCallbacks(callbacks){while(callbacks.length>0){var callback=callbacks.shift();if(typeof callback=="function"){callback(Module);continue}var func=callback.func;if(typeof func=="number"){if(callback.arg===undefined){getWasmTableEntry(func)();}else {getWasmTableEntry(func)(callback.arg);}}else {func(callback.arg===undefined?null:callback.arg);}}}var wasmTableMirror=[];function getWasmTableEntry(funcPtr){var func=wasmTableMirror[funcPtr];if(!func){if(funcPtr>=wasmTableMirror.length)wasmTableMirror.length=funcPtr+1;wasmTableMirror[funcPtr]=func=wasmTable.get(funcPtr);}return func}function ___assert_fail(condition,filename,line,func){abort("Assertion failed: "+UTF8ToString(condition)+", at: "+[filename?UTF8ToString(filename):"unknown filename",line,func?UTF8ToString(func):"unknown function"]);}function __embind_register_bigint(primitiveType,name,size,minRange,maxRange){}function getShiftFromSize(size){switch(size){case 1:return 0;case 2:return 1;case 4:return 2;case 8:return 3;default:throw new TypeError("Unknown type size: "+size)}}function embind_init_charCodes(){var codes=new Array(256);for(var i=0;i<256;++i){codes[i]=String.fromCharCode(i);}embind_charCodes=codes;}var embind_charCodes=undefined;function readLatin1String(ptr){var ret="";var c=ptr;while(HEAPU8[c]){ret+=embind_charCodes[HEAPU8[c++]];}return ret}var awaitingDependencies={};var registeredTypes={};var typeDependencies={};var char_0=48;var char_9=57;function makeLegalFunctionName(name){if(undefined===name){return "_unknown"}name=name.replace(/[^a-zA-Z0-9_]/g,"$");var f=name.charCodeAt(0);if(f>=char_0&&f<=char_9){return "_"+name}else {return name}}function createNamedFunction(name,body){name=makeLegalFunctionName(name);return new Function("body","return function "+name+"() {\n"+' "use strict";'+" return body.apply(this, arguments);\n"+"};\n")(body)}function extendError(baseErrorType,errorName){var errorClass=createNamedFunction(errorName,function(message){this.name=errorName;this.message=message;var stack=new Error(message).stack;if(stack!==undefined){this.stack=this.toString()+"\n"+stack.replace(/^Error(:[^\n]*)?\n/,"");}});errorClass.prototype=Object.create(baseErrorType.prototype);errorClass.prototype.constructor=errorClass;errorClass.prototype.toString=function(){if(this.message===undefined){return this.name}else {return this.name+": "+this.message}};return errorClass}var BindingError=undefined;function throwBindingError(message){throw new BindingError(message)}var InternalError=undefined;function throwInternalError(message){throw new InternalError(message)}function whenDependentTypesAreResolved(myTypes,dependentTypes,getTypeConverters){myTypes.forEach(function(type){typeDependencies[type]=dependentTypes;});function onComplete(typeConverters){var myTypeConverters=getTypeConverters(typeConverters);if(myTypeConverters.length!==myTypes.length){throwInternalError("Mismatched type converter count");}for(var i=0;i<myTypes.length;++i){registerType(myTypes[i],myTypeConverters[i]);}}var typeConverters=new Array(dependentTypes.length);var unregisteredTypes=[];var registered=0;dependentTypes.forEach(function(dt,i){if(registeredTypes.hasOwnProperty(dt)){typeConverters[i]=registeredTypes[dt];}else {unregisteredTypes.push(dt);if(!awaitingDependencies.hasOwnProperty(dt)){awaitingDependencies[dt]=[];}awaitingDependencies[dt].push(function(){typeConverters[i]=registeredTypes[dt];++registered;if(registered===unregisteredTypes.length){onComplete(typeConverters);}});}});if(0===unregisteredTypes.length){onComplete(typeConverters);}}function registerType(rawType,registeredInstance,options={}){if(!("argPackAdvance"in registeredInstance)){throw new TypeError("registerType registeredInstance requires argPackAdvance")}var name=registeredInstance.name;if(!rawType){throwBindingError('type "'+name+'" must have a positive integer typeid pointer');}if(registeredTypes.hasOwnProperty(rawType)){if(options.ignoreDuplicateRegistrations){return}else {throwBindingError("Cannot register type '"+name+"' twice");}}registeredTypes[rawType]=registeredInstance;delete typeDependencies[rawType];if(awaitingDependencies.hasOwnProperty(rawType)){var callbacks=awaitingDependencies[rawType];delete awaitingDependencies[rawType];callbacks.forEach(function(cb){cb();});}}function __embind_register_bool(rawType,name,size,trueValue,falseValue){var shift=getShiftFromSize(size);name=readLatin1String(name);registerType(rawType,{name:name,"fromWireType":function(wt){return !!wt},"toWireType":function(destructors,o){return o?trueValue:falseValue},"argPackAdvance":8,"readValueFromPointer":function(pointer){var heap;if(size===1){heap=HEAP8;}else if(size===2){heap=HEAP16;}else if(size===4){heap=HEAP32;}else {throw new TypeError("Unknown boolean type size: "+name)}return this["fromWireType"](heap[pointer>>shift])},destructorFunction:null});}function ClassHandle_isAliasOf(other){if(!(this instanceof ClassHandle)){return false}if(!(other instanceof ClassHandle)){return false}var leftClass=this.$$.ptrType.registeredClass;var left=this.$$.ptr;var rightClass=other.$$.ptrType.registeredClass;var right=other.$$.ptr;while(leftClass.baseClass){left=leftClass.upcast(left);leftClass=leftClass.baseClass;}while(rightClass.baseClass){right=rightClass.upcast(right);rightClass=rightClass.baseClass;}return leftClass===rightClass&&left===right}function shallowCopyInternalPointer(o){return {count:o.count,deleteScheduled:o.deleteScheduled,preservePointerOnDelete:o.preservePointerOnDelete,ptr:o.ptr,ptrType:o.ptrType,smartPtr:o.smartPtr,smartPtrType:o.smartPtrType}}function throwInstanceAlreadyDeleted(obj){function getInstanceTypeName(handle){return handle.$$.ptrType.registeredClass.name}throwBindingError(getInstanceTypeName(obj)+" instance already deleted");}var finalizationRegistry=false;function detachFinalizer(handle){}function runDestructor($$){if($$.smartPtr){$$.smartPtrType.rawDestructor($$.smartPtr);}else {$$.ptrType.registeredClass.rawDestructor($$.ptr);}}function releaseClassHandle($$){$$.count.value-=1;var toDelete=0===$$.count.value;if(toDelete){runDestructor($$);}}function downcastPointer(ptr,ptrClass,desiredClass){if(ptrClass===desiredClass){return ptr}if(undefined===desiredClass.baseClass){return null}var rv=downcastPointer(ptr,ptrClass,desiredClass.baseClass);if(rv===null){return null}return desiredClass.downcast(rv)}var registeredPointers={};function getInheritedInstanceCount(){return Object.keys(registeredInstances).length}function getLiveInheritedInstances(){var rv=[];for(var k in registeredInstances){if(registeredInstances.hasOwnProperty(k)){rv.push(registeredInstances[k]);}}return rv}var deletionQueue=[];function flushPendingDeletes(){while(deletionQueue.length){var obj=deletionQueue.pop();obj.$$.deleteScheduled=false;obj["delete"]();}}var delayFunction=undefined;function setDelayFunction(fn){delayFunction=fn;if(deletionQueue.length&&delayFunction){delayFunction(flushPendingDeletes);}}function init_embind(){Module["getInheritedInstanceCount"]=getInheritedInstanceCount;Module["getLiveInheritedInstances"]=getLiveInheritedInstances;Module["flushPendingDeletes"]=flushPendingDeletes;Module["setDelayFunction"]=setDelayFunction;}var registeredInstances={};function getBasestPointer(class_,ptr){if(ptr===undefined){throwBindingError("ptr should not be undefined");}while(class_.baseClass){ptr=class_.upcast(ptr);class_=class_.baseClass;}return ptr}function getInheritedInstance(class_,ptr){ptr=getBasestPointer(class_,ptr);return registeredInstances[ptr]}function makeClassHandle(prototype,record){if(!record.ptrType||!record.ptr){throwInternalError("makeClassHandle requires ptr and ptrType");}var hasSmartPtrType=!!record.smartPtrType;var hasSmartPtr=!!record.smartPtr;if(hasSmartPtrType!==hasSmartPtr){throwInternalError("Both smartPtrType and smartPtr must be specified");}record.count={value:1};return attachFinalizer(Object.create(prototype,{$$:{value:record}}))}function RegisteredPointer_fromWireType(ptr){var rawPointer=this.getPointee(ptr);if(!rawPointer){this.destructor(ptr);return null}var registeredInstance=getInheritedInstance(this.registeredClass,rawPointer);if(undefined!==registeredInstance){if(0===registeredInstance.$$.count.value){registeredInstance.$$.ptr=rawPointer;registeredInstance.$$.smartPtr=ptr;return registeredInstance["clone"]()}else {var rv=registeredInstance["clone"]();this.destructor(ptr);return rv}}function makeDefaultHandle(){if(this.isSmartPointer){return makeClassHandle(this.registeredClass.instancePrototype,{ptrType:this.pointeeType,ptr:rawPointer,smartPtrType:this,smartPtr:ptr})}else {return makeClassHandle(this.registeredClass.instancePrototype,{ptrType:this,ptr:ptr})}}var actualType=this.registeredClass.getActualType(rawPointer);var registeredPointerRecord=registeredPointers[actualType];if(!registeredPointerRecord){return makeDefaultHandle.call(this)}var toType;if(this.isConst){toType=registeredPointerRecord.constPointerType;}else {toType=registeredPointerRecord.pointerType;}var dp=downcastPointer(rawPointer,this.registeredClass,toType.registeredClass);if(dp===null){return makeDefaultHandle.call(this)}if(this.isSmartPointer){return makeClassHandle(toType.registeredClass.instancePrototype,{ptrType:toType,ptr:dp,smartPtrType:this,smartPtr:ptr})}else {return makeClassHandle(toType.registeredClass.instancePrototype,{ptrType:toType,ptr:dp})}}function attachFinalizer(handle){if("undefined"===typeof FinalizationRegistry){attachFinalizer=(handle=>handle);return handle}finalizationRegistry=new FinalizationRegistry(info=>{releaseClassHandle(info.$$);});attachFinalizer=(handle=>{var $$=handle.$$;var hasSmartPtr=!!$$.smartPtr;if(hasSmartPtr){var info={$$:$$};finalizationRegistry.register(handle,info,handle);}return handle});detachFinalizer=(handle=>finalizationRegistry.unregister(handle));return attachFinalizer(handle)}function ClassHandle_clone(){if(!this.$$.ptr){throwInstanceAlreadyDeleted(this);}if(this.$$.preservePointerOnDelete){this.$$.count.value+=1;return this}else {var clone=attachFinalizer(Object.create(Object.getPrototypeOf(this),{$$:{value:shallowCopyInternalPointer(this.$$)}}));clone.$$.count.value+=1;clone.$$.deleteScheduled=false;return clone}}function ClassHandle_delete(){if(!this.$$.ptr){throwInstanceAlreadyDeleted(this);}if(this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete){throwBindingError("Object already scheduled for deletion");}detachFinalizer(this);releaseClassHandle(this.$$);if(!this.$$.preservePointerOnDelete){this.$$.smartPtr=undefined;this.$$.ptr=undefined;}}function ClassHandle_isDeleted(){return !this.$$.ptr}function ClassHandle_deleteLater(){if(!this.$$.ptr){throwInstanceAlreadyDeleted(this);}if(this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete){throwBindingError("Object already scheduled for deletion");}deletionQueue.push(this);if(deletionQueue.length===1&&delayFunction){delayFunction(flushPendingDeletes);}this.$$.deleteScheduled=true;return this}function init_ClassHandle(){ClassHandle.prototype["isAliasOf"]=ClassHandle_isAliasOf;ClassHandle.prototype["clone"]=ClassHandle_clone;ClassHandle.prototype["delete"]=ClassHandle_delete;ClassHandle.prototype["isDeleted"]=ClassHandle_isDeleted;ClassHandle.prototype["deleteLater"]=ClassHandle_deleteLater;}function ClassHandle(){}function ensureOverloadTable(proto,methodName,humanName){if(undefined===proto[methodName].overloadTable){var prevFunc=proto[methodName];proto[methodName]=function(){if(!proto[methodName].overloadTable.hasOwnProperty(arguments.length)){throwBindingError("Function '"+humanName+"' called with an invalid number of arguments ("+arguments.length+") - expects one of ("+proto[methodName].overloadTable+")!");}return proto[methodName].overloadTable[arguments.length].apply(this,arguments)};proto[methodName].overloadTable=[];proto[methodName].overloadTable[prevFunc.argCount]=prevFunc;}}function exposePublicSymbol(name,value,numArguments){if(Module.hasOwnProperty(name)){{throwBindingError("Cannot register public name '"+name+"' twice");}ensureOverloadTable(Module,name,name);if(Module.hasOwnProperty(numArguments)){throwBindingError("Cannot register multiple overloads of a function with the same number of arguments ("+numArguments+")!");}Module[name].overloadTable[numArguments]=value;}else {Module[name]=value;}}function RegisteredClass(name,constructor,instancePrototype,rawDestructor,baseClass,getActualType,upcast,downcast){this.name=name;this.constructor=constructor;this.instancePrototype=instancePrototype;this.rawDestructor=rawDestructor;this.baseClass=baseClass;this.getActualType=getActualType;this.upcast=upcast;this.downcast=downcast;this.pureVirtualFunctions=[];}function upcastPointer(ptr,ptrClass,desiredClass){while(ptrClass!==desiredClass){if(!ptrClass.upcast){throwBindingError("Expected null or instance of "+desiredClass.name+", got an instance of "+ptrClass.name);}ptr=ptrClass.upcast(ptr);ptrClass=ptrClass.baseClass;}return ptr}function constNoSmartPtrRawPointerToWireType(destructors,handle){if(handle===null){if(this.isReference){throwBindingError("null is not a valid "+this.name);}return 0}if(!handle.$$){throwBindingError('Cannot pass "'+_embind_repr(handle)+'" as a '+this.name);}if(!handle.$$.ptr){throwBindingError("Cannot pass deleted object as a pointer of type "+this.name);}var handleClass=handle.$$.ptrType.registeredClass;var ptr=upcastPointer(handle.$$.ptr,handleClass,this.registeredClass);return ptr}function genericPointerToWireType(destructors,handle){var ptr;if(handle===null){if(this.isReference){throwBindingError("null is not a valid "+this.name);}if(this.isSmartPointer){ptr=this.rawConstructor();if(destructors!==null){destructors.push(this.rawDestructor,ptr);}return ptr}else {return 0}}if(!handle.$$){throwBindingError('Cannot pass "'+_embind_repr(handle)+'" as a '+this.name);}if(!handle.$$.ptr){throwBindingError("Cannot pass deleted object as a pointer of type "+this.name);}if(!this.isConst&&handle.$$.ptrType.isConst){throwBindingError("Cannot convert argument of type "+(handle.$$.smartPtrType?handle.$$.smartPtrType.name:handle.$$.ptrType.name)+" to parameter type "+this.name);}var handleClass=handle.$$.ptrType.registeredClass;ptr=upcastPointer(handle.$$.ptr,handleClass,this.registeredClass);if(this.isSmartPointer){if(undefined===handle.$$.smartPtr){throwBindingError("Passing raw pointer to smart pointer is illegal");}switch(this.sharingPolicy){case 0:if(handle.$$.smartPtrType===this){ptr=handle.$$.smartPtr;}else {throwBindingError("Cannot convert argument of type "+(handle.$$.smartPtrType?handle.$$.smartPtrType.name:handle.$$.ptrType.name)+" to parameter type "+this.name);}break;case 1:ptr=handle.$$.smartPtr;break;case 2:if(handle.$$.smartPtrType===this){ptr=handle.$$.smartPtr;}else {var clonedHandle=handle["clone"]();ptr=this.rawShare(ptr,Emval.toHandle(function(){clonedHandle["delete"]();}));if(destructors!==null){destructors.push(this.rawDestructor,ptr);}}break;default:throwBindingError("Unsupporting sharing policy");}}return ptr}function nonConstNoSmartPtrRawPointerToWireType(destructors,handle){if(handle===null){if(this.isReference){throwBindingError("null is not a valid "+this.name);}return 0}if(!handle.$$){throwBindingError('Cannot pass "'+_embind_repr(handle)+'" as a '+this.name);}if(!handle.$$.ptr){throwBindingError("Cannot pass deleted object as a pointer of type "+this.name);}if(handle.$$.ptrType.isConst){throwBindingError("Cannot convert argument of type "+handle.$$.ptrType.name+" to parameter type "+this.name);}var handleClass=handle.$$.ptrType.registeredClass;var ptr=upcastPointer(handle.$$.ptr,handleClass,this.registeredClass);return ptr}function simpleReadValueFromPointer(pointer){return this["fromWireType"](HEAPU32[pointer>>2])}function RegisteredPointer_getPointee(ptr){if(this.rawGetPointee){ptr=this.rawGetPointee(ptr);}return ptr}function RegisteredPointer_destructor(ptr){if(this.rawDestructor){this.rawDestructor(ptr);}}function RegisteredPointer_deleteObject(handle){if(handle!==null){handle["delete"]();}}function init_RegisteredPointer(){RegisteredPointer.prototype.getPointee=RegisteredPointer_getPointee;RegisteredPointer.prototype.destructor=RegisteredPointer_destructor;RegisteredPointer.prototype["argPackAdvance"]=8;RegisteredPointer.prototype["readValueFromPointer"]=simpleReadValueFromPointer;RegisteredPointer.prototype["deleteObject"]=RegisteredPointer_deleteObject;RegisteredPointer.prototype["fromWireType"]=RegisteredPointer_fromWireType;}function RegisteredPointer(name,registeredClass,isReference,isConst,isSmartPointer,pointeeType,sharingPolicy,rawGetPointee,rawConstructor,rawShare,rawDestructor){this.name=name;this.registeredClass=registeredClass;this.isReference=isReference;this.isConst=isConst;this.isSmartPointer=isSmartPointer;this.pointeeType=pointeeType;this.sharingPolicy=sharingPolicy;this.rawGetPointee=rawGetPointee;this.rawConstructor=rawConstructor;this.rawShare=rawShare;this.rawDestructor=rawDestructor;if(!isSmartPointer&®isteredClass.baseClass===undefined){if(isConst){this["toWireType"]=constNoSmartPtrRawPointerToWireType;this.destructorFunction=null;}else {this["toWireType"]=nonConstNoSmartPtrRawPointerToWireType;this.destructorFunction=null;}}else {this["toWireType"]=genericPointerToWireType;}}function replacePublicSymbol(name,value,numArguments){if(!Module.hasOwnProperty(name)){throwInternalError("Replacing nonexistant public symbol");}if(undefined!==Module[name].overloadTable&&undefined!==numArguments);else {Module[name]=value;Module[name].argCount=numArguments;}}function dynCallLegacy(sig,ptr,args){var f=Module["dynCall_"+sig];return args&&args.length?f.apply(null,[ptr].concat(args)):f.call(null,ptr)}function dynCall(sig,ptr,args){if(sig.includes("j")){return dynCallLegacy(sig,ptr,args)}return getWasmTableEntry(ptr).apply(null,args)}function getDynCaller(sig,ptr){var argCache=[];return function(){argCache.length=0;Object.assign(argCache,arguments);return dynCall(sig,ptr,argCache)}}function embind__requireFunction(signature,rawFunction){signature=readLatin1String(signature);function makeDynCaller(){if(signature.includes("j")){return getDynCaller(signature,rawFunction)}return getWasmTableEntry(rawFunction)}var fp=makeDynCaller();if(typeof fp!="function"){throwBindingError("unknown function pointer with signature "+signature+": "+rawFunction);}return fp}var UnboundTypeError=undefined;function getTypeName(type){var ptr=___getTypeName(type);var rv=readLatin1String(ptr);_free(ptr);return rv}function throwUnboundTypeError(message,types){var unboundTypes=[];var seen={};function visit(type){if(seen[type]){return}if(registeredTypes[type]){return}if(typeDependencies[type]){typeDependencies[type].forEach(visit);return}unboundTypes.push(type);seen[type]=true;}types.forEach(visit);throw new UnboundTypeError(message+": "+unboundTypes.map(getTypeName).join([", "]))}function __embind_register_class(rawType,rawPointerType,rawConstPointerType,baseClassRawType,getActualTypeSignature,getActualType,upcastSignature,upcast,downcastSignature,downcast,name,destructorSignature,rawDestructor){name=readLatin1String(name);getActualType=embind__requireFunction(getActualTypeSignature,getActualType);if(upcast){upcast=embind__requireFunction(upcastSignature,upcast);}if(downcast){downcast=embind__requireFunction(downcastSignature,downcast);}rawDestructor=embind__requireFunction(destructorSignature,rawDestructor);var legalFunctionName=makeLegalFunctionName(name);exposePublicSymbol(legalFunctionName,function(){throwUnboundTypeError("Cannot construct "+name+" due to unbound types",[baseClassRawType]);});whenDependentTypesAreResolved([rawType,rawPointerType,rawConstPointerType],baseClassRawType?[baseClassRawType]:[],function(base){base=base[0];var baseClass;var basePrototype;if(baseClassRawType){baseClass=base.registeredClass;basePrototype=baseClass.instancePrototype;}else {basePrototype=ClassHandle.prototype;}var constructor=createNamedFunction(legalFunctionName,function(){if(Object.getPrototypeOf(this)!==instancePrototype){throw new BindingError("Use 'new' to construct "+name)}if(undefined===registeredClass.constructor_body){throw new BindingError(name+" has no accessible constructor")}var body=registeredClass.constructor_body[arguments.length];if(undefined===body){throw new BindingError("Tried to invoke ctor of "+name+" with invalid number of parameters ("+arguments.length+") - expected ("+Object.keys(registeredClass.constructor_body).toString()+") parameters instead!")}return body.apply(this,arguments)});var instancePrototype=Object.create(basePrototype,{constructor:{value:constructor}});constructor.prototype=instancePrototype;var registeredClass=new RegisteredClass(name,constructor,instancePrototype,rawDestructor,baseClass,getActualType,upcast,downcast);var referenceConverter=new RegisteredPointer(name,registeredClass,true,false,false);var pointerConverter=new RegisteredPointer(name+"*",registeredClass,false,false,false);var constPointerConverter=new RegisteredPointer(name+" const*",registeredClass,false,true,false);registeredPointers[rawType]={pointerType:pointerConverter,constPointerType:constPointerConverter};replacePublicSymbol(legalFunctionName,constructor);return [referenceConverter,pointerConverter,constPointerConverter]});}function heap32VectorToArray(count,firstElement){var array=[];for(var i=0;i<count;i++){array.push(HEAP32[(firstElement>>2)+i]);}return array}function runDestructors(destructors){while(destructors.length){var ptr=destructors.pop();var del=destructors.pop();del(ptr);}}function __embind_register_class_constructor(rawClassType,argCount,rawArgTypesAddr,invokerSignature,invoker,rawConstructor){assert(argCount>0);var rawArgTypes=heap32VectorToArray(argCount,rawArgTypesAddr);invoker=embind__requireFunction(invokerSignature,invoker);whenDependentTypesAreResolved([],[rawClassType],function(classType){classType=classType[0];var humanName="constructor "+classType.name;if(undefined===classType.registeredClass.constructor_body){classType.registeredClass.constructor_body=[];}if(undefined!==classType.registeredClass.constructor_body[argCount-1]){throw new BindingError("Cannot register multiple constructors with identical number of parameters ("+(argCount-1)+") for class '"+classType.name+"'! Overload resolution is currently only performed using the parameter count, not actual type info!")}classType.registeredClass.constructor_body[argCount-1]=(()=>{throwUnboundTypeError("Cannot construct "+classType.name+" due to unbound types",rawArgTypes);});whenDependentTypesAreResolved([],rawArgTypes,function(argTypes){argTypes.splice(1,0,null);classType.registeredClass.constructor_body[argCount-1]=craftInvokerFunction(humanName,argTypes,null,invoker,rawConstructor);return []});return []});}function new_(constructor,argumentList){if(!(constructor instanceof Function)){throw new TypeError("new_ called with constructor type "+typeof constructor+" which is not a function")}var dummy=createNamedFunction(constructor.name||"unknownFunctionName",function(){});dummy.prototype=constructor.prototype;var obj=new dummy;var r=constructor.apply(obj,argumentList);return r instanceof Object?r:obj}function craftInvokerFunction(humanName,argTypes,classType,cppInvokerFunc,cppTargetFunc){var argCount=argTypes.length;if(argCount<2){throwBindingError("argTypes array size mismatch! Must at least get return value and 'this' types!");}var isClassMethodFunc=argTypes[1]!==null&&classType!==null;var needsDestructorStack=false;for(var i=1;i<argTypes.length;++i){if(argTypes[i]!==null&&argTypes[i].destructorFunction===undefined){needsDestructorStack=true;break}}var returns=argTypes[0].name!=="void";var argsList="";var argsListWired="";for(var i=0;i<argCount-2;++i){argsList+=(i!==0?", ":"")+"arg"+i;argsListWired+=(i!==0?", ":"")+"arg"+i+"Wired";}var invokerFnBody="return function "+makeLegalFunctionName(humanName)+"("+argsList+") {\n"+"if (arguments.length !== "+(argCount-2)+") {\n"+"throwBindingError('function "+humanName+" called with ' + arguments.length + ' arguments, expected "+(argCount-2)+" args!');\n"+"}\n";if(needsDestructorStack){invokerFnBody+="var destructors = [];\n";}var dtorStack=needsDestructorStack?"destructors":"null";var args1=["throwBindingError","invoker","fn","runDestructors","retType","classParam"];var args2=[throwBindingError,cppInvokerFunc,cppTargetFunc,runDestructors,argTypes[0],argTypes[1]];if(isClassMethodFunc){invokerFnBody+="var thisWired = classParam.toWireType("+dtorStack+", this);\n";}for(var i=0;i<argCount-2;++i){invokerFnBody+="var arg"+i+"Wired = argType"+i+".toWireType("+dtorStack+", arg"+i+"); // "+argTypes[i+2].name+"\n";args1.push("argType"+i);args2.push(argTypes[i+2]);}if(isClassMethodFunc){argsListWired="thisWired"+(argsListWired.length>0?", ":"")+argsListWired;}invokerFnBody+=(returns?"var rv = ":"")+"invoker(fn"+(argsListWired.length>0?", ":"")+argsListWired+");\n";if(needsDestructorStack){invokerFnBody+="runDestructors(destructors);\n";}else {for(var i=isClassMethodFunc?1:2;i<argTypes.length;++i){var paramName=i===1?"thisWired":"arg"+(i-2)+"Wired";if(argTypes[i].destructorFunction!==null){invokerFnBody+=paramName+"_dtor("+paramName+"); // "+argTypes[i].name+"\n";args1.push(paramName+"_dtor");args2.push(argTypes[i].destructorFunction);}}}if(returns){invokerFnBody+="var ret = retType.fromWireType(rv);\n"+"return ret;\n";}invokerFnBody+="}\n";args1.push(invokerFnBody);var invokerFunction=new_(Function,args1).apply(null,args2);return invokerFunction}function __embind_register_class_function(rawClassType,methodName,argCount,rawArgTypesAddr,invokerSignature,rawInvoker,context,isPureVirtual){var rawArgTypes=heap32VectorToArray(argCount,rawArgTypesAddr);methodName=readLatin1String(methodName);rawInvoker=embind__requireFunction(invokerSignature,rawInvoker);whenDependentTypesAreResolved([],[rawClassType],function(classType){classType=classType[0];var humanName=classType.name+"."+methodName;if(methodName.startsWith("@@")){methodName=Symbol[methodName.substring(2)];}if(isPureVirtual){classType.registeredClass.pureVirtualFunctions.push(methodName);}function unboundTypesHandler(){throwUnboundTypeError("Cannot call "+humanName+" due to unbound types",rawArgTypes);}var proto=classType.registeredClass.instancePrototype;var method=proto[methodName];if(undefined===method||undefined===method.overloadTable&&method.className!==classType.name&&method.argCount===argCount-2){unboundTypesHandler.argCount=argCount-2;unboundTypesHandler.className=classType.name;proto[methodName]=unboundTypesHandler;}else {ensureOverloadTable(proto,methodName,humanName);proto[methodName].overloadTable[argCount-2]=unboundTypesHandler;}whenDependentTypesAreResolved([],rawArgTypes,function(argTypes){var memberFunction=craftInvokerFunction(humanName,argTypes,classType,rawInvoker,context);if(undefined===proto[methodName].overloadTable){memberFunction.argCount=argCount-2;proto[methodName]=memberFunction;}else {proto[methodName].overloadTable[argCount-2]=memberFunction;}return []});return []});}var emval_free_list=[];var emval_handle_array=[{},{value:undefined},{value:null},{value:true},{value:false}];function __emval_decref(handle){if(handle>4&&0===--emval_handle_array[handle].refcount){emval_handle_array[handle]=undefined;emval_free_list.push(handle);}}function count_emval_handles(){var count=0;for(var i=5;i<emval_handle_array.length;++i){if(emval_handle_array[i]!==undefined){++count;}}return count}function get_first_emval(){for(var i=5;i<emval_handle_array.length;++i){if(emval_handle_array[i]!==undefined){return emval_handle_array[i]}}return null}function init_emval(){Module["count_emval_handles"]=count_emval_handles;Module["get_first_emval"]=get_first_emval;}var Emval={toValue:function(handle){if(!handle){throwBindingError("Cannot use deleted val. handle = "+handle);}return emval_handle_array[handle].value},toHandle:function(value){switch(value){case undefined:{return 1}case null:{return 2}case true:{return 3}case false:{return 4}default:{var handle=emval_free_list.length?emval_free_list.pop():emval_handle_array.length;emval_handle_array[handle]={refcount:1,value:value};return handle}}}};function __embind_register_emval(rawType,name){name=readLatin1String(name);registerType(rawType,{name:name,"fromWireType":function(handle){var rv=Emval.toValue(handle);__emval_decref(handle);return rv},"toWireType":function(destructors,value){return Emval.toHandle(value)},"argPackAdvance":8,"readValueFromPointer":simpleReadValueFromPointer,destructorFunction:null});}function _embind_repr(v){if(v===null){return "null"}var t=typeof v;if(t==="object"||t==="array"||t==="function"){return v.toString()}else {return ""+v}}function floatReadValueFromPointer(name,shift){switch(shift){case 2:return function(pointer){return this["fromWireType"](HEAPF32[pointer>>2])};case 3:return function(pointer){return this["fromWireType"](HEAPF64[pointer>>3])};default:throw new TypeError("Unknown float type: "+name)}}function __embind_register_float(rawType,name,size){var shift=getShiftFromSize(size);name=readLatin1String(name);registerType(rawType,{name:name,"fromWireType":function(value){return value},"toWireType":function(destructors,value){return value},"argPackAdvance":8,"readValueFromPointer":floatReadValueFromPointer(name,shift),destructorFunction:null});}function integerReadValueFromPointer(name,shift,signed){switch(shift){case 0:return signed?function readS8FromPointer(pointer){return HEAP8[pointer]}:function readU8FromPointer(pointer){return HEAPU8[pointer]};case 1:return signed?function readS16FromPointer(pointer){return HEAP16[pointer>>1]}:function readU16FromPointer(pointer){return HEAPU16[pointer>>1]};case 2:return signed?function readS32FromPointer(pointer){return HEAP32[pointer>>2]}:function readU32FromPointer(pointer){return HEAPU32[pointer>>2]};default:throw new TypeError("Unknown integer type: "+name)}}function __embind_register_integer(primitiveType,name,size,minRange,maxRange){name=readLatin1String(name);var shift=getShiftFromSize(size);var fromWireType=value=>value;if(minRange===0){var bitshift=32-8*size;fromWireType=(value=>value<<bitshift>>>bitshift);}var isUnsignedType=name.includes("unsigned");var checkAssertions=(value,toTypeName)=>{};var toWireType;if(isUnsignedType){toWireType=function(destructors,value){checkAssertions(value,this.name);return value>>>0};}else {toWireType=function(destructors,value){checkAssertions(value,this.name);return value};}registerType(primitiveType,{name:name,"fromWireType":fromWireType,"toWireType":toWireType,"argPackAdvance":8,"readValueFromPointer":integerReadValueFromPointer(name,shift,minRange!==0),destructorFunction:null});}function __embind_register_memory_view(rawType,dataTypeIndex,name){var typeMapping=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array];var TA=typeMapping[dataTypeIndex];function decodeMemoryView(handle){handle=handle>>2;var heap=HEAPU32;var size=heap[handle];var data=heap[handle+1];return new TA(buffer,data,size)}name=readLatin1String(name);registerType(rawType,{name:name,"fromWireType":decodeMemoryView,"argPackAdvance":8,"readValueFromPointer":decodeMemoryView},{ignoreDuplicateRegistrations:true});}function __embind_register_std_string(rawType,name){name=readLatin1String(name);var stdStringIsUTF8=name==="std::string";registerType(rawType,{name:name,"fromWireType":function(value){var length=HEAPU32[value>>2];var str;if(stdStringIsUTF8){var decodeStartPtr=value+4;for(var i=0;i<=length;++i){var currentBytePtr=value+4+i;if(i==length||HEAPU8[currentBytePtr]==0){var maxRead=currentBytePtr-decodeStartPtr;var stringSegment=UTF8ToString(decodeStartPtr,maxRead);if(str===undefined){str=stringSegment;}else {str+=String.fromCharCode(0);str+=stringSegment;}decodeStartPtr=currentBytePtr+1;}}}else {var a=new Array(length);for(var i=0;i<length;++i){a[i]=String.fromCharCode(HEAPU8[value+4+i]);}str=a.join("");}_free(value);return str},"toWireType":function(destructors,value){if(value instanceof ArrayBuffer){value=new Uint8Array(value);}var getLength;var valueIsOfTypeString=typeof value=="string";if(!(valueIsOfTypeString||value instanceof Uint8Array||value instanceof Uint8ClampedArray||value instanceof Int8Array)){throwBindingError("Cannot pass non-string to std::string");}if(stdStringIsUTF8&&valueIsOfTypeString){getLength=(()=>lengthBytesUTF8(value));}else {getLength=(()=>value.length);}var length=getLength();var ptr=_malloc(4+length+1);HEAPU32[ptr>>2]=length;if(stdStringIsUTF8&&valueIsOfTypeString){stringToUTF8(value,ptr+4,length+1);}else {if(valueIsOfTypeString){for(var i=0;i<length;++i){var charCode=value.charCodeAt(i);if(charCode>255){_free(ptr);throwBindingError("String has UTF-16 code units that do not fit in 8 bits");}HEAPU8[ptr+4+i]=charCode;}}else {for(var i=0;i<length;++i){HEAPU8[ptr+4+i]=value[i];}}}if(destructors!==null){destructors.push(_free,ptr);}return ptr},"argPackAdvance":8,"readValueFromPointer":simpleReadValueFromPointer,destructorFunction:function(ptr){_free(ptr);}});}function __embind_register_std_wstring(rawType,charSize,name){name=readLatin1String(name);var decodeString,encodeString,getHeap,lengthBytesUTF,shift;if(charSize===2){decodeString=UTF16ToString;encodeString=stringToUTF16;lengthBytesUTF=lengthBytesUTF16;getHeap=(()=>HEAPU16);shift=1;}else if(charSize===4){decodeString=UTF32ToString;encodeString=stringToUTF32;lengthBytesUTF=lengthBytesUTF32;getHeap=(()=>HEAPU32);shift=2;}registerType(rawType,{name:name,"fromWireType":function(value){var length=HEAPU32[value>>2];var HEAP=getHeap();var str;var decodeStartPtr=value+4;for(var i=0;i<=length;++i){var currentBytePtr=value+4+i*charSize;if(i==length||HEAP[currentBytePtr>>shift]==0){var maxReadBytes=currentBytePtr-decodeStartPtr;var stringSegment=decodeString(decodeStartPtr,maxReadBytes);if(str===undefined){str=stringSegment;}else {str+=String.fromCharCode(0);str+=stringSegment;}decodeStartPtr=currentBytePtr+charSize;}}_free(value);return str},"toWireType":function(destructors,value){if(!(typeof value=="string")){throwBindingError("Cannot pass non-string to C++ string type "+name);}var length=lengthBytesUTF(value);var ptr=_malloc(4+length+charSize);HEAPU32[ptr>>2]=length>>shift;encodeString(value,ptr+4,length+charSize);if(destructors!==null){destructors.push(_free,ptr);}return ptr},"argPackAdvance":8,"readValueFromPointer":simpleReadValueFromPointer,destructorFunction:function(ptr){_free(ptr);}});}function __embind_register_void(rawType,name){name=readLatin1String(name);registerType(rawType,{isVoid:true,name:name,"argPackAdvance":0,"fromWireType":function(){return undefined},"toWireType":function(destructors,o){return undefined}});}function _abort(){abort("");}function _emscripten_memcpy_big(dest,src,num){HEAPU8.copyWithin(dest,src,src+num);}function _emscripten_get_heap_max(){return 2147483648}function emscripten_realloc_buffer(size){try{wasmMemory.grow(size-buffer.byteLength+65535>>>16);updateGlobalBufferAndViews(wasmMemory.buffer);return 1}catch(e){}}function _emscripten_resize_heap(requestedSize){var oldSize=HEAPU8.length;requestedSize=requestedSize>>>0;var maxHeapSize=_emscripten_get_heap_max();if(requestedSize>maxHeapSize){return false}let alignUp=(x,multiple)=>x+(multiple-x%multiple)%multiple;for(var cutDown=1;cutDown<=4;cutDown*=2){var overGrownHeapSize=oldSize*(1+.2/cutDown);overGrownHeapSize=Math.min(overGrownHeapSize,requestedSize+100663296);var newSize=Math.min(maxHeapSize,alignUp(Math.max(requestedSize,overGrownHeapSize),65536));var replacement=emscripten_realloc_buffer(newSize);if(replacement){return true}}return false}function _setTempRet0(val){}embind_init_charCodes();BindingError=Module["BindingError"]=extendError(Error,"BindingError");InternalError=Module["InternalError"]=extendError(Error,"InternalError");init_ClassHandle();init_embind();init_RegisteredPointer();UnboundTypeError=Module["UnboundTypeError"]=extendError(Error,"UnboundTypeError");init_emval();var asmLibraryArg={"a":___assert_fail,"k":__embind_register_bigint,"i":__embind_register_bool,"q":__embind_register_class,"p":__embind_register_class_constructor,"b":__embind_register_class_function,"o":__embind_register_emval,"h":__embind_register_float,"d":__embind_register_integer,"c":__embind_register_memory_view,"g":__embind_register_std_string,"e":__embind_register_std_wstring,"j":__embind_register_void,"l":_abort,"n":_emscripten_memcpy_big,"m":_emscripten_resize_heap,"f":_setTempRet0};createWasm();Module["___wasm_call_ctors"]=function(){return (Module["___wasm_call_ctors"]=Module["asm"]["s"]).apply(null,arguments)};Module["_decodeRGBA"]=function(){return (Module["_decodeRGBA"]=Module["asm"]["t"]).apply(null,arguments)};Module["_decodeFree"]=function(){return (Module["_decodeFree"]=Module["asm"]["u"]).apply(null,arguments)};Module["_allocBuffer"]=function(){return (Module["_allocBuffer"]=Module["asm"]["v"]).apply(null,arguments)};var _malloc=Module["_malloc"]=function(){return (_malloc=Module["_malloc"]=Module["asm"]["w"]).apply(null,arguments)};Module["_destroyBuffer"]=function(){return (Module["_destroyBuffer"]=Module["asm"]["x"]).apply(null,arguments)};var _free=Module["_free"]=function(){return (_free=Module["_free"]=Module["asm"]["y"]).apply(null,arguments)};var ___getTypeName=Module["___getTypeName"]=function(){return (___getTypeName=Module["___getTypeName"]=Module["asm"]["A"]).apply(null,arguments)};Module["___embind_register_native_and_builtin_types"]=function(){return (Module["___embind_register_native_and_builtin_types"]=Module["asm"]["B"]).apply(null,arguments)};var stackSave=Module["stackSave"]=function(){return (stackSave=Module["stackSave"]=Module["asm"]["C"]).apply(null,arguments)};var stackRestore=Module["stackRestore"]=function(){return (stackRestore=Module["stackRestore"]=Module["asm"]["D"]).apply(null,arguments)};var stackAlloc=Module["stackAlloc"]=function(){return (stackAlloc=Module["stackAlloc"]=Module["asm"]["E"]).apply(null,arguments)};Module["dynCall_ji"]=function(){return (Module["dynCall_ji"]=Module["asm"]["F"]).apply(null,arguments)};Module["dynCall_jii"]=function(){return (Module["dynCall_jii"]=Module["asm"]["G"]).apply(null,arguments)};Module["dynCall_jiiiii"]=function(){return (Module["dynCall_jiiiii"]=Module["asm"]["H"]).apply(null,arguments)};Module["cwrap"]=cwrap;var calledRun;function ExitStatus(status){this.name="ExitStatus";this.message="Program terminated with exit("+status+")";this.status=status;}dependenciesFulfilled=function runCaller(){if(!calledRun)run();if(!calledRun)dependenciesFulfilled=runCaller;};function run(args){if(runDependencies>0){return}preRun();if(runDependencies>0){return}function doRun(){if(calledRun)return;calledRun=true;Module["calledRun"]=true;if(ABORT)return;initRuntime();readyPromiseResolve(Module);if(Module["onRuntimeInitialized"])Module["onRuntimeInitialized"]();postRun();}if(Module["setStatus"]){Module["setStatus"]("Running...");setTimeout(function(){setTimeout(function(){Module["setStatus"]("");},1);doRun();},1);}else {doRun();}}Module["run"]=run;if(Module["preInit"]){if(typeof Module["preInit"]=="function")Module["preInit"]=[Module["preInit"]];while(Module["preInit"].length>0){Module["preInit"].pop()();}}run();
|
|
29978
29978
|
|
|
29979
29979
|
|
|
29980
29980
|
return LibWebP.ready
|
|
@@ -30891,7 +30891,7 @@ var hasRequiredDist;
|
|
|
30891
30891
|
function requireDist () {
|
|
30892
30892
|
if (hasRequiredDist) return dist;
|
|
30893
30893
|
hasRequiredDist = 1;
|
|
30894
|
-
(function (exports) {
|
|
30894
|
+
(function (exports$1) {
|
|
30895
30895
|
var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
30896
30896
|
if (k2 === undefined) k2 = k;
|
|
30897
30897
|
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
@@ -30899,24 +30899,24 @@ function requireDist () {
|
|
|
30899
30899
|
if (k2 === undefined) k2 = k;
|
|
30900
30900
|
o[k2] = m[k];
|
|
30901
30901
|
}));
|
|
30902
|
-
var __exportStar = (commonjsGlobal && commonjsGlobal.__exportStar) || function(m, exports) {
|
|
30903
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
30902
|
+
var __exportStar = (commonjsGlobal && commonjsGlobal.__exportStar) || function(m, exports$1) {
|
|
30903
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports$1, p)) __createBinding(exports$1, m, p);
|
|
30904
30904
|
};
|
|
30905
30905
|
var __importDefault = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
30906
30906
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
30907
30907
|
};
|
|
30908
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
30909
|
-
exports.Exif = exports.StickerMetadata = void 0;
|
|
30908
|
+
Object.defineProperty(exports$1, "__esModule", { value: true });
|
|
30909
|
+
exports$1.Exif = exports$1.StickerMetadata = void 0;
|
|
30910
30910
|
const Sticker_1 = requireSticker();
|
|
30911
|
-
__exportStar(requireSticker(), exports);
|
|
30912
|
-
__exportStar(extractMetadata$1, exports);
|
|
30913
|
-
__exportStar(Types, exports);
|
|
30911
|
+
__exportStar(requireSticker(), exports$1);
|
|
30912
|
+
__exportStar(extractMetadata$1, exports$1);
|
|
30913
|
+
__exportStar(Types, exports$1);
|
|
30914
30914
|
var StickerMetadata_1 = StickerMetadata$1;
|
|
30915
|
-
Object.defineProperty(exports, "StickerMetadata", { enumerable: true, get: function () { return __importDefault(StickerMetadata_1).default; } });
|
|
30915
|
+
Object.defineProperty(exports$1, "StickerMetadata", { enumerable: true, get: function () { return __importDefault(StickerMetadata_1).default; } });
|
|
30916
30916
|
var Exif_1 = Exif$1;
|
|
30917
|
-
Object.defineProperty(exports, "Exif", { enumerable: true, get: function () { return __importDefault(Exif_1).default; } });
|
|
30918
|
-
__exportStar(StickerTypes, exports);
|
|
30919
|
-
exports.default = Sticker_1.Sticker;
|
|
30917
|
+
Object.defineProperty(exports$1, "Exif", { enumerable: true, get: function () { return __importDefault(Exif_1).default; } });
|
|
30918
|
+
__exportStar(StickerTypes, exports$1);
|
|
30919
|
+
exports$1.default = Sticker_1.Sticker;
|
|
30920
30920
|
} (dist));
|
|
30921
30921
|
return dist;
|
|
30922
30922
|
}
|
|
@@ -31016,7 +31016,7 @@ class BaileysProvider extends ProviderClass {
|
|
|
31016
31016
|
this.initVendor = async () => {
|
|
31017
31017
|
const NAME_DIR_SESSION = `${this.globalVendorArgs.name}_sessions`;
|
|
31018
31018
|
const { state, saveCreds } = await useMultiFileAuthState(NAME_DIR_SESSION);
|
|
31019
|
-
const loggerBaileys = pino
|
|
31019
|
+
const loggerBaileys = pino({ level: 'fatal' });
|
|
31020
31020
|
this.saveCredsGlobal = saveCreds;
|
|
31021
31021
|
try {
|
|
31022
31022
|
if (this.globalVendorArgs.useBaileysStore) {
|
|
@@ -31247,11 +31247,15 @@ class BaileysProvider extends ProviderClass {
|
|
|
31247
31247
|
this.logger.log(`[${new Date().toISOString()}] Message received from phone, id=${messageCtx.requestId}`, messageCtx);
|
|
31248
31248
|
}
|
|
31249
31249
|
}
|
|
31250
|
+
// Buscar siempre el que tenga formato @s.whatsapp.net (puede estar en remoteJid o remoteJidAlt)
|
|
31251
|
+
const remoteJid = messageCtx?.key?.remoteJid;
|
|
31252
|
+
const remoteJidAlt = messageCtx?.key?.remoteJidAlt;
|
|
31253
|
+
const fromParse = remoteJid?.includes('@lid') ? remoteJidAlt : remoteJid;
|
|
31250
31254
|
let payload = {
|
|
31251
31255
|
...messageCtx,
|
|
31252
31256
|
body: textToBody,
|
|
31253
31257
|
name: messageCtx?.pushName,
|
|
31254
|
-
from:
|
|
31258
|
+
from: baileyCleanNumber(fromParse),
|
|
31255
31259
|
};
|
|
31256
31260
|
if (messageCtx.message?.locationMessage) {
|
|
31257
31261
|
const { degreesLatitude, degreesLongitude } = messageCtx.message.locationMessage;
|