@d-i-t-a/reader 2.3.14 → 2.3.15
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/esm/index.js +39871 -32243
- package/dist/esm/index.js.map +4 -4
- package/dist/injectables/click/click.js +372 -156
- package/dist/injectables/click/click.js.map +4 -4
- package/dist/reader.css +1 -1
- package/dist/reader.css.map +1 -1
- package/dist/reader.js +109 -106
- package/dist/reader.js.map +4 -4
- package/dist/types/model/user-settings/UserProperties.d.ts +1 -1
- package/dist/types/modules/AnnotationModule.d.ts +1 -1
- package/dist/types/modules/TTS/TTSSettings.d.ts +1 -1
- package/dist/types/modules/mediaoverlays/MediaOverlaySettings.d.ts +1 -1
- package/dist/types/modules/protection/ContentProtectionModule.d.ts +1 -0
- package/dist/types/navigator/IFrameNavigator.d.ts +2 -2
- package/dist/types/reader.d.ts +1 -1
- package/dist/types/utils/JsonUtil.d.ts +3 -3
- package/package.json +36 -35
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
(() => {
|
|
2
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
2
3
|
var __esm = (fn, res) => function __init() {
|
|
3
|
-
return fn && (res = (0, fn[
|
|
4
|
+
return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
|
|
4
5
|
};
|
|
5
6
|
var __commonJS = (cb, mod) => function __require() {
|
|
6
|
-
return mod || (0, cb[
|
|
7
|
+
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
7
8
|
};
|
|
8
9
|
|
|
9
10
|
// node_modules/process/browser.js
|
|
@@ -172,8 +173,8 @@
|
|
|
172
173
|
// node_modules/has-symbols/shams.js
|
|
173
174
|
var require_shams = __commonJS({
|
|
174
175
|
"node_modules/has-symbols/shams.js"(exports, module) {
|
|
175
|
-
init_polyfills();
|
|
176
176
|
"use strict";
|
|
177
|
+
init_polyfills();
|
|
177
178
|
module.exports = function hasSymbols() {
|
|
178
179
|
if (typeof Symbol !== "function" || typeof Object.getOwnPropertySymbols !== "function") {
|
|
179
180
|
return false;
|
|
@@ -225,8 +226,8 @@
|
|
|
225
226
|
// node_modules/has-symbols/index.js
|
|
226
227
|
var require_has_symbols = __commonJS({
|
|
227
228
|
"node_modules/has-symbols/index.js"(exports, module) {
|
|
228
|
-
init_polyfills();
|
|
229
229
|
"use strict";
|
|
230
|
+
init_polyfills();
|
|
230
231
|
var origSymbol = typeof Symbol !== "undefined" && Symbol;
|
|
231
232
|
var hasSymbolSham = require_shams();
|
|
232
233
|
module.exports = function hasNativeSymbols() {
|
|
@@ -247,11 +248,26 @@
|
|
|
247
248
|
}
|
|
248
249
|
});
|
|
249
250
|
|
|
251
|
+
// node_modules/has-proto/index.js
|
|
252
|
+
var require_has_proto = __commonJS({
|
|
253
|
+
"node_modules/has-proto/index.js"(exports, module) {
|
|
254
|
+
"use strict";
|
|
255
|
+
init_polyfills();
|
|
256
|
+
var test = {
|
|
257
|
+
foo: {}
|
|
258
|
+
};
|
|
259
|
+
var $Object = Object;
|
|
260
|
+
module.exports = function hasProto() {
|
|
261
|
+
return { __proto__: test }.foo === test.foo && !({ __proto__: null } instanceof $Object);
|
|
262
|
+
};
|
|
263
|
+
}
|
|
264
|
+
});
|
|
265
|
+
|
|
250
266
|
// node_modules/function-bind/implementation.js
|
|
251
267
|
var require_implementation = __commonJS({
|
|
252
268
|
"node_modules/function-bind/implementation.js"(exports, module) {
|
|
253
|
-
init_polyfills();
|
|
254
269
|
"use strict";
|
|
270
|
+
init_polyfills();
|
|
255
271
|
var ERROR_MESSAGE = "Function.prototype.bind called on incompatible ";
|
|
256
272
|
var slice = Array.prototype.slice;
|
|
257
273
|
var toStr = Object.prototype.toString;
|
|
@@ -265,13 +281,19 @@
|
|
|
265
281
|
var bound;
|
|
266
282
|
var binder = function() {
|
|
267
283
|
if (this instanceof bound) {
|
|
268
|
-
var result = target.apply(
|
|
284
|
+
var result = target.apply(
|
|
285
|
+
this,
|
|
286
|
+
args.concat(slice.call(arguments))
|
|
287
|
+
);
|
|
269
288
|
if (Object(result) === result) {
|
|
270
289
|
return result;
|
|
271
290
|
}
|
|
272
291
|
return this;
|
|
273
292
|
} else {
|
|
274
|
-
return target.apply(
|
|
293
|
+
return target.apply(
|
|
294
|
+
that,
|
|
295
|
+
args.concat(slice.call(arguments))
|
|
296
|
+
);
|
|
275
297
|
}
|
|
276
298
|
};
|
|
277
299
|
var boundLength = Math.max(0, target.length - args.length);
|
|
@@ -295,8 +317,8 @@
|
|
|
295
317
|
// node_modules/function-bind/index.js
|
|
296
318
|
var require_function_bind = __commonJS({
|
|
297
319
|
"node_modules/function-bind/index.js"(exports, module) {
|
|
298
|
-
init_polyfills();
|
|
299
320
|
"use strict";
|
|
321
|
+
init_polyfills();
|
|
300
322
|
var implementation = require_implementation();
|
|
301
323
|
module.exports = Function.prototype.bind || implementation;
|
|
302
324
|
}
|
|
@@ -305,8 +327,8 @@
|
|
|
305
327
|
// node_modules/has/src/index.js
|
|
306
328
|
var require_src = __commonJS({
|
|
307
329
|
"node_modules/has/src/index.js"(exports, module) {
|
|
308
|
-
init_polyfills();
|
|
309
330
|
"use strict";
|
|
331
|
+
init_polyfills();
|
|
310
332
|
var bind = require_function_bind();
|
|
311
333
|
module.exports = bind.call(Function.call, Object.prototype.hasOwnProperty);
|
|
312
334
|
}
|
|
@@ -315,8 +337,8 @@
|
|
|
315
337
|
// node_modules/get-intrinsic/index.js
|
|
316
338
|
var require_get_intrinsic = __commonJS({
|
|
317
339
|
"node_modules/get-intrinsic/index.js"(exports, module) {
|
|
318
|
-
init_polyfills();
|
|
319
340
|
"use strict";
|
|
341
|
+
init_polyfills();
|
|
320
342
|
var undefined2;
|
|
321
343
|
var $SyntaxError = SyntaxError;
|
|
322
344
|
var $Function = Function;
|
|
@@ -351,16 +373,17 @@
|
|
|
351
373
|
}
|
|
352
374
|
}() : throwTypeError;
|
|
353
375
|
var hasSymbols = require_has_symbols()();
|
|
354
|
-
var
|
|
376
|
+
var hasProto = require_has_proto()();
|
|
377
|
+
var getProto = Object.getPrototypeOf || (hasProto ? function(x) {
|
|
355
378
|
return x.__proto__;
|
|
356
|
-
};
|
|
379
|
+
} : null);
|
|
357
380
|
var needsEval = {};
|
|
358
|
-
var TypedArray = typeof Uint8Array === "undefined" ? undefined2 : getProto(Uint8Array);
|
|
381
|
+
var TypedArray = typeof Uint8Array === "undefined" || !getProto ? undefined2 : getProto(Uint8Array);
|
|
359
382
|
var INTRINSICS = {
|
|
360
383
|
"%AggregateError%": typeof AggregateError === "undefined" ? undefined2 : AggregateError,
|
|
361
384
|
"%Array%": Array,
|
|
362
385
|
"%ArrayBuffer%": typeof ArrayBuffer === "undefined" ? undefined2 : ArrayBuffer,
|
|
363
|
-
"%ArrayIteratorPrototype%": hasSymbols ? getProto([][Symbol.iterator]()) : undefined2,
|
|
386
|
+
"%ArrayIteratorPrototype%": hasSymbols && getProto ? getProto([][Symbol.iterator]()) : undefined2,
|
|
364
387
|
"%AsyncFromSyncIteratorPrototype%": undefined2,
|
|
365
388
|
"%AsyncFunction%": needsEval,
|
|
366
389
|
"%AsyncGenerator%": needsEval,
|
|
@@ -368,6 +391,8 @@
|
|
|
368
391
|
"%AsyncIteratorPrototype%": needsEval,
|
|
369
392
|
"%Atomics%": typeof Atomics === "undefined" ? undefined2 : Atomics,
|
|
370
393
|
"%BigInt%": typeof BigInt === "undefined" ? undefined2 : BigInt,
|
|
394
|
+
"%BigInt64Array%": typeof BigInt64Array === "undefined" ? undefined2 : BigInt64Array,
|
|
395
|
+
"%BigUint64Array%": typeof BigUint64Array === "undefined" ? undefined2 : BigUint64Array,
|
|
371
396
|
"%Boolean%": Boolean,
|
|
372
397
|
"%DataView%": typeof DataView === "undefined" ? undefined2 : DataView,
|
|
373
398
|
"%Date%": Date,
|
|
@@ -377,6 +402,7 @@
|
|
|
377
402
|
"%encodeURIComponent%": encodeURIComponent,
|
|
378
403
|
"%Error%": Error,
|
|
379
404
|
"%eval%": eval,
|
|
405
|
+
// eslint-disable-line no-eval
|
|
380
406
|
"%EvalError%": EvalError,
|
|
381
407
|
"%Float32Array%": typeof Float32Array === "undefined" ? undefined2 : Float32Array,
|
|
382
408
|
"%Float64Array%": typeof Float64Array === "undefined" ? undefined2 : Float64Array,
|
|
@@ -388,10 +414,10 @@
|
|
|
388
414
|
"%Int32Array%": typeof Int32Array === "undefined" ? undefined2 : Int32Array,
|
|
389
415
|
"%isFinite%": isFinite,
|
|
390
416
|
"%isNaN%": isNaN,
|
|
391
|
-
"%IteratorPrototype%": hasSymbols ? getProto(getProto([][Symbol.iterator]())) : undefined2,
|
|
417
|
+
"%IteratorPrototype%": hasSymbols && getProto ? getProto(getProto([][Symbol.iterator]())) : undefined2,
|
|
392
418
|
"%JSON%": typeof JSON === "object" ? JSON : undefined2,
|
|
393
419
|
"%Map%": typeof Map === "undefined" ? undefined2 : Map,
|
|
394
|
-
"%MapIteratorPrototype%": typeof Map === "undefined" || !hasSymbols ? undefined2 : getProto(new Map()[Symbol.iterator]()),
|
|
420
|
+
"%MapIteratorPrototype%": typeof Map === "undefined" || !hasSymbols || !getProto ? undefined2 : getProto((/* @__PURE__ */ new Map())[Symbol.iterator]()),
|
|
395
421
|
"%Math%": Math,
|
|
396
422
|
"%Number%": Number,
|
|
397
423
|
"%Object%": Object,
|
|
@@ -404,10 +430,10 @@
|
|
|
404
430
|
"%Reflect%": typeof Reflect === "undefined" ? undefined2 : Reflect,
|
|
405
431
|
"%RegExp%": RegExp,
|
|
406
432
|
"%Set%": typeof Set === "undefined" ? undefined2 : Set,
|
|
407
|
-
"%SetIteratorPrototype%": typeof Set === "undefined" || !hasSymbols ? undefined2 : getProto(new Set()[Symbol.iterator]()),
|
|
433
|
+
"%SetIteratorPrototype%": typeof Set === "undefined" || !hasSymbols || !getProto ? undefined2 : getProto((/* @__PURE__ */ new Set())[Symbol.iterator]()),
|
|
408
434
|
"%SharedArrayBuffer%": typeof SharedArrayBuffer === "undefined" ? undefined2 : SharedArrayBuffer,
|
|
409
435
|
"%String%": String,
|
|
410
|
-
"%StringIteratorPrototype%": hasSymbols ? getProto(""[Symbol.iterator]()) : undefined2,
|
|
436
|
+
"%StringIteratorPrototype%": hasSymbols && getProto ? getProto(""[Symbol.iterator]()) : undefined2,
|
|
411
437
|
"%Symbol%": hasSymbols ? Symbol : undefined2,
|
|
412
438
|
"%SyntaxError%": $SyntaxError,
|
|
413
439
|
"%ThrowTypeError%": ThrowTypeError,
|
|
@@ -422,6 +448,15 @@
|
|
|
422
448
|
"%WeakRef%": typeof WeakRef === "undefined" ? undefined2 : WeakRef,
|
|
423
449
|
"%WeakSet%": typeof WeakSet === "undefined" ? undefined2 : WeakSet
|
|
424
450
|
};
|
|
451
|
+
if (getProto) {
|
|
452
|
+
try {
|
|
453
|
+
null.error;
|
|
454
|
+
} catch (e) {
|
|
455
|
+
errorProto = getProto(getProto(e));
|
|
456
|
+
INTRINSICS["%Error.prototype%"] = errorProto;
|
|
457
|
+
}
|
|
458
|
+
}
|
|
459
|
+
var errorProto;
|
|
425
460
|
var doEval = function doEval2(name) {
|
|
426
461
|
var value;
|
|
427
462
|
if (name === "%AsyncFunction%") {
|
|
@@ -437,7 +472,7 @@
|
|
|
437
472
|
}
|
|
438
473
|
} else if (name === "%AsyncIteratorPrototype%") {
|
|
439
474
|
var gen = doEval2("%AsyncGenerator%");
|
|
440
|
-
if (gen) {
|
|
475
|
+
if (gen && getProto) {
|
|
441
476
|
value = getProto(gen.prototype);
|
|
442
477
|
}
|
|
443
478
|
}
|
|
@@ -503,6 +538,7 @@
|
|
|
503
538
|
var $spliceApply = bind.call(Function.apply, Array.prototype.splice);
|
|
504
539
|
var $replace = bind.call(Function.call, String.prototype.replace);
|
|
505
540
|
var $strSlice = bind.call(Function.call, String.prototype.slice);
|
|
541
|
+
var $exec = bind.call(Function.call, RegExp.prototype.exec);
|
|
506
542
|
var rePropName = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
|
|
507
543
|
var reEscapeChar = /\\(\\)?/g;
|
|
508
544
|
var stringToPath = function stringToPath2(string) {
|
|
@@ -549,6 +585,9 @@
|
|
|
549
585
|
if (arguments.length > 1 && typeof allowMissing !== "boolean") {
|
|
550
586
|
throw new $TypeError('"allowMissing" argument must be a boolean');
|
|
551
587
|
}
|
|
588
|
+
if ($exec(/^%?[^%]*%?$/, name) === null) {
|
|
589
|
+
throw new $SyntaxError("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
|
|
590
|
+
}
|
|
552
591
|
var parts = stringToPath(name);
|
|
553
592
|
var intrinsicBaseName = parts.length > 0 ? parts[0] : "";
|
|
554
593
|
var intrinsic = getBaseIntrinsic("%" + intrinsicBaseName + "%", allowMissing);
|
|
@@ -606,8 +645,8 @@
|
|
|
606
645
|
// node_modules/call-bind/index.js
|
|
607
646
|
var require_call_bind = __commonJS({
|
|
608
647
|
"node_modules/call-bind/index.js"(exports, module) {
|
|
609
|
-
init_polyfills();
|
|
610
648
|
"use strict";
|
|
649
|
+
init_polyfills();
|
|
611
650
|
var bind = require_function_bind();
|
|
612
651
|
var GetIntrinsic = require_get_intrinsic();
|
|
613
652
|
var $apply = GetIntrinsic("%Function.prototype.apply%");
|
|
@@ -628,7 +667,11 @@
|
|
|
628
667
|
if ($gOPD && $defineProperty) {
|
|
629
668
|
var desc = $gOPD(func, "length");
|
|
630
669
|
if (desc.configurable) {
|
|
631
|
-
$defineProperty(
|
|
670
|
+
$defineProperty(
|
|
671
|
+
func,
|
|
672
|
+
"length",
|
|
673
|
+
{ value: 1 + $max(0, originalFunction.length - (arguments.length - 1)) }
|
|
674
|
+
);
|
|
632
675
|
}
|
|
633
676
|
}
|
|
634
677
|
return func;
|
|
@@ -647,8 +690,8 @@
|
|
|
647
690
|
// node_modules/call-bind/callBound.js
|
|
648
691
|
var require_callBound = __commonJS({
|
|
649
692
|
"node_modules/call-bind/callBound.js"(exports, module) {
|
|
650
|
-
init_polyfills();
|
|
651
693
|
"use strict";
|
|
694
|
+
init_polyfills();
|
|
652
695
|
var GetIntrinsic = require_get_intrinsic();
|
|
653
696
|
var callBind = require_call_bind();
|
|
654
697
|
var $indexOf = callBind(GetIntrinsic("String.prototype.indexOf"));
|
|
@@ -665,8 +708,8 @@
|
|
|
665
708
|
// node_modules/is-arguments/index.js
|
|
666
709
|
var require_is_arguments = __commonJS({
|
|
667
710
|
"node_modules/is-arguments/index.js"(exports, module) {
|
|
668
|
-
init_polyfills();
|
|
669
711
|
"use strict";
|
|
712
|
+
init_polyfills();
|
|
670
713
|
var hasToStringTag = typeof Symbol === "function" && typeof Symbol.toStringTag === "symbol";
|
|
671
714
|
var callBound = require_callBound();
|
|
672
715
|
var $toString = callBound("Object.prototype.toString");
|
|
@@ -690,15 +733,27 @@
|
|
|
690
733
|
}
|
|
691
734
|
});
|
|
692
735
|
|
|
736
|
+
// node_modules/has-tostringtag/shams.js
|
|
737
|
+
var require_shams2 = __commonJS({
|
|
738
|
+
"node_modules/has-tostringtag/shams.js"(exports, module) {
|
|
739
|
+
"use strict";
|
|
740
|
+
init_polyfills();
|
|
741
|
+
var hasSymbols = require_shams();
|
|
742
|
+
module.exports = function hasToStringTagShams() {
|
|
743
|
+
return hasSymbols() && !!Symbol.toStringTag;
|
|
744
|
+
};
|
|
745
|
+
}
|
|
746
|
+
});
|
|
747
|
+
|
|
693
748
|
// node_modules/is-generator-function/index.js
|
|
694
749
|
var require_is_generator_function = __commonJS({
|
|
695
750
|
"node_modules/is-generator-function/index.js"(exports, module) {
|
|
696
|
-
init_polyfills();
|
|
697
751
|
"use strict";
|
|
752
|
+
init_polyfills();
|
|
698
753
|
var toStr = Object.prototype.toString;
|
|
699
754
|
var fnToStr = Function.prototype.toString;
|
|
700
755
|
var isFnRegex = /^\s*(?:function)?\*/;
|
|
701
|
-
var hasToStringTag =
|
|
756
|
+
var hasToStringTag = require_shams2()();
|
|
702
757
|
var getProto = Object.getPrototypeOf;
|
|
703
758
|
var getGeneratorFunc = function() {
|
|
704
759
|
if (!hasToStringTag) {
|
|
@@ -733,37 +788,189 @@
|
|
|
733
788
|
}
|
|
734
789
|
});
|
|
735
790
|
|
|
736
|
-
// node_modules/
|
|
737
|
-
var
|
|
738
|
-
"node_modules/
|
|
791
|
+
// node_modules/is-callable/index.js
|
|
792
|
+
var require_is_callable = __commonJS({
|
|
793
|
+
"node_modules/is-callable/index.js"(exports, module) {
|
|
794
|
+
"use strict";
|
|
739
795
|
init_polyfills();
|
|
740
|
-
var
|
|
741
|
-
var
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
796
|
+
var fnToStr = Function.prototype.toString;
|
|
797
|
+
var reflectApply = typeof Reflect === "object" && Reflect !== null && Reflect.apply;
|
|
798
|
+
var badArrayLike;
|
|
799
|
+
var isCallableMarker;
|
|
800
|
+
if (typeof reflectApply === "function" && typeof Object.defineProperty === "function") {
|
|
801
|
+
try {
|
|
802
|
+
badArrayLike = Object.defineProperty({}, "length", {
|
|
803
|
+
get: function() {
|
|
804
|
+
throw isCallableMarker;
|
|
805
|
+
}
|
|
806
|
+
});
|
|
807
|
+
isCallableMarker = {};
|
|
808
|
+
reflectApply(function() {
|
|
809
|
+
throw 42;
|
|
810
|
+
}, null, badArrayLike);
|
|
811
|
+
} catch (_) {
|
|
812
|
+
if (_ !== isCallableMarker) {
|
|
813
|
+
reflectApply = null;
|
|
814
|
+
}
|
|
745
815
|
}
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
816
|
+
} else {
|
|
817
|
+
reflectApply = null;
|
|
818
|
+
}
|
|
819
|
+
var constructorRegex = /^\s*class\b/;
|
|
820
|
+
var isES6ClassFn = function isES6ClassFunction(value) {
|
|
821
|
+
try {
|
|
822
|
+
var fnStr = fnToStr.call(value);
|
|
823
|
+
return constructorRegex.test(fnStr);
|
|
824
|
+
} catch (e) {
|
|
825
|
+
return false;
|
|
826
|
+
}
|
|
827
|
+
};
|
|
828
|
+
var tryFunctionObject = function tryFunctionToStr(value) {
|
|
829
|
+
try {
|
|
830
|
+
if (isES6ClassFn(value)) {
|
|
831
|
+
return false;
|
|
750
832
|
}
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
833
|
+
fnToStr.call(value);
|
|
834
|
+
return true;
|
|
835
|
+
} catch (e) {
|
|
836
|
+
return false;
|
|
837
|
+
}
|
|
838
|
+
};
|
|
839
|
+
var toStr = Object.prototype.toString;
|
|
840
|
+
var objectClass = "[object Object]";
|
|
841
|
+
var fnClass = "[object Function]";
|
|
842
|
+
var genClass = "[object GeneratorFunction]";
|
|
843
|
+
var ddaClass = "[object HTMLAllCollection]";
|
|
844
|
+
var ddaClass2 = "[object HTML document.all class]";
|
|
845
|
+
var ddaClass3 = "[object HTMLCollection]";
|
|
846
|
+
var hasToStringTag = typeof Symbol === "function" && !!Symbol.toStringTag;
|
|
847
|
+
var isIE68 = !(0 in [,]);
|
|
848
|
+
var isDDA = function isDocumentDotAll() {
|
|
849
|
+
return false;
|
|
850
|
+
};
|
|
851
|
+
if (typeof document === "object") {
|
|
852
|
+
all = document.all;
|
|
853
|
+
if (toStr.call(all) === toStr.call(document.all)) {
|
|
854
|
+
isDDA = function isDocumentDotAll(value) {
|
|
855
|
+
if ((isIE68 || !value) && (typeof value === "undefined" || typeof value === "object")) {
|
|
856
|
+
try {
|
|
857
|
+
var str = toStr.call(value);
|
|
858
|
+
return (str === ddaClass || str === ddaClass2 || str === ddaClass3 || str === objectClass) && value("") == null;
|
|
859
|
+
} catch (e) {
|
|
860
|
+
}
|
|
755
861
|
}
|
|
862
|
+
return false;
|
|
863
|
+
};
|
|
864
|
+
}
|
|
865
|
+
}
|
|
866
|
+
var all;
|
|
867
|
+
module.exports = reflectApply ? function isCallable(value) {
|
|
868
|
+
if (isDDA(value)) {
|
|
869
|
+
return true;
|
|
870
|
+
}
|
|
871
|
+
if (!value) {
|
|
872
|
+
return false;
|
|
873
|
+
}
|
|
874
|
+
if (typeof value !== "function" && typeof value !== "object") {
|
|
875
|
+
return false;
|
|
876
|
+
}
|
|
877
|
+
try {
|
|
878
|
+
reflectApply(value, null, badArrayLike);
|
|
879
|
+
} catch (e) {
|
|
880
|
+
if (e !== isCallableMarker) {
|
|
881
|
+
return false;
|
|
756
882
|
}
|
|
757
883
|
}
|
|
884
|
+
return !isES6ClassFn(value) && tryFunctionObject(value);
|
|
885
|
+
} : function isCallable(value) {
|
|
886
|
+
if (isDDA(value)) {
|
|
887
|
+
return true;
|
|
888
|
+
}
|
|
889
|
+
if (!value) {
|
|
890
|
+
return false;
|
|
891
|
+
}
|
|
892
|
+
if (typeof value !== "function" && typeof value !== "object") {
|
|
893
|
+
return false;
|
|
894
|
+
}
|
|
895
|
+
if (hasToStringTag) {
|
|
896
|
+
return tryFunctionObject(value);
|
|
897
|
+
}
|
|
898
|
+
if (isES6ClassFn(value)) {
|
|
899
|
+
return false;
|
|
900
|
+
}
|
|
901
|
+
var strClass = toStr.call(value);
|
|
902
|
+
if (strClass !== fnClass && strClass !== genClass && !/^\[object HTML/.test(strClass)) {
|
|
903
|
+
return false;
|
|
904
|
+
}
|
|
905
|
+
return tryFunctionObject(value);
|
|
758
906
|
};
|
|
759
907
|
}
|
|
760
908
|
});
|
|
761
909
|
|
|
910
|
+
// node_modules/for-each/index.js
|
|
911
|
+
var require_for_each = __commonJS({
|
|
912
|
+
"node_modules/for-each/index.js"(exports, module) {
|
|
913
|
+
"use strict";
|
|
914
|
+
init_polyfills();
|
|
915
|
+
var isCallable = require_is_callable();
|
|
916
|
+
var toStr = Object.prototype.toString;
|
|
917
|
+
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
918
|
+
var forEachArray = function forEachArray2(array, iterator, receiver) {
|
|
919
|
+
for (var i = 0, len = array.length; i < len; i++) {
|
|
920
|
+
if (hasOwnProperty.call(array, i)) {
|
|
921
|
+
if (receiver == null) {
|
|
922
|
+
iterator(array[i], i, array);
|
|
923
|
+
} else {
|
|
924
|
+
iterator.call(receiver, array[i], i, array);
|
|
925
|
+
}
|
|
926
|
+
}
|
|
927
|
+
}
|
|
928
|
+
};
|
|
929
|
+
var forEachString = function forEachString2(string, iterator, receiver) {
|
|
930
|
+
for (var i = 0, len = string.length; i < len; i++) {
|
|
931
|
+
if (receiver == null) {
|
|
932
|
+
iterator(string.charAt(i), i, string);
|
|
933
|
+
} else {
|
|
934
|
+
iterator.call(receiver, string.charAt(i), i, string);
|
|
935
|
+
}
|
|
936
|
+
}
|
|
937
|
+
};
|
|
938
|
+
var forEachObject = function forEachObject2(object, iterator, receiver) {
|
|
939
|
+
for (var k in object) {
|
|
940
|
+
if (hasOwnProperty.call(object, k)) {
|
|
941
|
+
if (receiver == null) {
|
|
942
|
+
iterator(object[k], k, object);
|
|
943
|
+
} else {
|
|
944
|
+
iterator.call(receiver, object[k], k, object);
|
|
945
|
+
}
|
|
946
|
+
}
|
|
947
|
+
}
|
|
948
|
+
};
|
|
949
|
+
var forEach = function forEach2(list, iterator, thisArg) {
|
|
950
|
+
if (!isCallable(iterator)) {
|
|
951
|
+
throw new TypeError("iterator must be a function");
|
|
952
|
+
}
|
|
953
|
+
var receiver;
|
|
954
|
+
if (arguments.length >= 3) {
|
|
955
|
+
receiver = thisArg;
|
|
956
|
+
}
|
|
957
|
+
if (toStr.call(list) === "[object Array]") {
|
|
958
|
+
forEachArray(list, iterator, receiver);
|
|
959
|
+
} else if (typeof list === "string") {
|
|
960
|
+
forEachString(list, iterator, receiver);
|
|
961
|
+
} else {
|
|
962
|
+
forEachObject(list, iterator, receiver);
|
|
963
|
+
}
|
|
964
|
+
};
|
|
965
|
+
module.exports = forEach;
|
|
966
|
+
}
|
|
967
|
+
});
|
|
968
|
+
|
|
762
969
|
// node_modules/available-typed-arrays/index.js
|
|
763
970
|
var require_available_typed_arrays = __commonJS({
|
|
764
971
|
"node_modules/available-typed-arrays/index.js"(exports, module) {
|
|
765
|
-
init_polyfills();
|
|
766
972
|
"use strict";
|
|
973
|
+
init_polyfills();
|
|
767
974
|
var possibleNames = [
|
|
768
975
|
"BigInt64Array",
|
|
769
976
|
"BigUint64Array",
|
|
@@ -777,10 +984,11 @@
|
|
|
777
984
|
"Uint8Array",
|
|
778
985
|
"Uint8ClampedArray"
|
|
779
986
|
];
|
|
987
|
+
var g = typeof globalThis === "undefined" ? globalThis : globalThis;
|
|
780
988
|
module.exports = function availableTypedArrays() {
|
|
781
989
|
var out = [];
|
|
782
990
|
for (var i = 0; i < possibleNames.length; i++) {
|
|
783
|
-
if (typeof
|
|
991
|
+
if (typeof g[possibleNames[i]] === "function") {
|
|
784
992
|
out[out.length] = possibleNames[i];
|
|
785
993
|
}
|
|
786
994
|
}
|
|
@@ -789,11 +997,11 @@
|
|
|
789
997
|
}
|
|
790
998
|
});
|
|
791
999
|
|
|
792
|
-
// node_modules/
|
|
793
|
-
var
|
|
794
|
-
"node_modules/
|
|
795
|
-
init_polyfills();
|
|
1000
|
+
// node_modules/gopd/index.js
|
|
1001
|
+
var require_gopd = __commonJS({
|
|
1002
|
+
"node_modules/gopd/index.js"(exports, module) {
|
|
796
1003
|
"use strict";
|
|
1004
|
+
init_polyfills();
|
|
797
1005
|
var GetIntrinsic = require_get_intrinsic();
|
|
798
1006
|
var $gOPD = GetIntrinsic("%Object.getOwnPropertyDescriptor%", true);
|
|
799
1007
|
if ($gOPD) {
|
|
@@ -807,18 +1015,22 @@
|
|
|
807
1015
|
}
|
|
808
1016
|
});
|
|
809
1017
|
|
|
810
|
-
// node_modules/
|
|
811
|
-
var
|
|
812
|
-
"node_modules/
|
|
813
|
-
init_polyfills();
|
|
1018
|
+
// node_modules/which-typed-array/index.js
|
|
1019
|
+
var require_which_typed_array = __commonJS({
|
|
1020
|
+
"node_modules/which-typed-array/index.js"(exports, module) {
|
|
814
1021
|
"use strict";
|
|
815
|
-
|
|
1022
|
+
init_polyfills();
|
|
1023
|
+
var forEach = require_for_each();
|
|
816
1024
|
var availableTypedArrays = require_available_typed_arrays();
|
|
1025
|
+
var callBind = require_call_bind();
|
|
817
1026
|
var callBound = require_callBound();
|
|
1027
|
+
var gOPD = require_gopd();
|
|
818
1028
|
var $toString = callBound("Object.prototype.toString");
|
|
819
|
-
var
|
|
820
|
-
var
|
|
1029
|
+
var hasToStringTag = require_shams2()();
|
|
1030
|
+
var g = typeof globalThis === "undefined" ? globalThis : globalThis;
|
|
821
1031
|
var typedArrays = availableTypedArrays();
|
|
1032
|
+
var $slice = callBound("String.prototype.slice");
|
|
1033
|
+
var getPrototypeOf = Object.getPrototypeOf;
|
|
822
1034
|
var $indexOf = callBound("Array.prototype.indexOf", true) || function indexOf(array, value) {
|
|
823
1035
|
for (var i = 0; i < array.length; i += 1) {
|
|
824
1036
|
if (array[i] === value) {
|
|
@@ -827,110 +1039,83 @@
|
|
|
827
1039
|
}
|
|
828
1040
|
return -1;
|
|
829
1041
|
};
|
|
830
|
-
var
|
|
831
|
-
var toStrTags = {};
|
|
832
|
-
var gOPD = require_getOwnPropertyDescriptor();
|
|
833
|
-
var getPrototypeOf = Object.getPrototypeOf;
|
|
1042
|
+
var cache = { __proto__: null };
|
|
834
1043
|
if (hasToStringTag && gOPD && getPrototypeOf) {
|
|
835
1044
|
forEach(typedArrays, function(typedArray) {
|
|
836
|
-
var arr = new
|
|
837
|
-
if (
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
1045
|
+
var arr = new g[typedArray]();
|
|
1046
|
+
if (Symbol.toStringTag in arr) {
|
|
1047
|
+
var proto = getPrototypeOf(arr);
|
|
1048
|
+
var descriptor = gOPD(proto, Symbol.toStringTag);
|
|
1049
|
+
if (!descriptor) {
|
|
1050
|
+
var superProto = getPrototypeOf(proto);
|
|
1051
|
+
descriptor = gOPD(superProto, Symbol.toStringTag);
|
|
1052
|
+
}
|
|
1053
|
+
cache["$" + typedArray] = callBind(descriptor.get);
|
|
845
1054
|
}
|
|
846
|
-
|
|
1055
|
+
});
|
|
1056
|
+
} else {
|
|
1057
|
+
forEach(typedArrays, function(typedArray) {
|
|
1058
|
+
var arr = new g[typedArray]();
|
|
1059
|
+
cache["$" + typedArray] = callBind(arr.slice);
|
|
847
1060
|
});
|
|
848
1061
|
}
|
|
849
1062
|
var tryTypedArrays = function tryAllTypedArrays(value) {
|
|
850
|
-
var
|
|
851
|
-
forEach(
|
|
852
|
-
if (!
|
|
1063
|
+
var found = false;
|
|
1064
|
+
forEach(cache, function(getter, typedArray) {
|
|
1065
|
+
if (!found) {
|
|
853
1066
|
try {
|
|
854
|
-
|
|
1067
|
+
if ("$" + getter(value) === typedArray) {
|
|
1068
|
+
found = $slice(typedArray, 1);
|
|
1069
|
+
}
|
|
855
1070
|
} catch (e) {
|
|
856
1071
|
}
|
|
857
1072
|
}
|
|
858
1073
|
});
|
|
859
|
-
return
|
|
1074
|
+
return found;
|
|
860
1075
|
};
|
|
861
|
-
|
|
1076
|
+
var trySlices = function tryAllSlices(value) {
|
|
1077
|
+
var found = false;
|
|
1078
|
+
forEach(cache, function(getter, name) {
|
|
1079
|
+
if (!found) {
|
|
1080
|
+
try {
|
|
1081
|
+
getter(value);
|
|
1082
|
+
found = $slice(name, 1);
|
|
1083
|
+
} catch (e) {
|
|
1084
|
+
}
|
|
1085
|
+
}
|
|
1086
|
+
});
|
|
1087
|
+
return found;
|
|
1088
|
+
};
|
|
1089
|
+
module.exports = function whichTypedArray(value) {
|
|
862
1090
|
if (!value || typeof value !== "object") {
|
|
863
1091
|
return false;
|
|
864
1092
|
}
|
|
865
1093
|
if (!hasToStringTag) {
|
|
866
1094
|
var tag = $slice($toString(value), 8, -1);
|
|
867
|
-
|
|
1095
|
+
if ($indexOf(typedArrays, tag) > -1) {
|
|
1096
|
+
return tag;
|
|
1097
|
+
}
|
|
1098
|
+
if (tag !== "Object") {
|
|
1099
|
+
return false;
|
|
1100
|
+
}
|
|
1101
|
+
return trySlices(value);
|
|
868
1102
|
}
|
|
869
1103
|
if (!gOPD) {
|
|
870
|
-
return
|
|
1104
|
+
return null;
|
|
871
1105
|
}
|
|
872
1106
|
return tryTypedArrays(value);
|
|
873
1107
|
};
|
|
874
1108
|
}
|
|
875
1109
|
});
|
|
876
1110
|
|
|
877
|
-
// node_modules/
|
|
878
|
-
var
|
|
879
|
-
"node_modules/
|
|
880
|
-
init_polyfills();
|
|
1111
|
+
// node_modules/is-typed-array/index.js
|
|
1112
|
+
var require_is_typed_array = __commonJS({
|
|
1113
|
+
"node_modules/is-typed-array/index.js"(exports, module) {
|
|
881
1114
|
"use strict";
|
|
882
|
-
|
|
883
|
-
var
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
var hasSymbols = require_has_symbols()();
|
|
887
|
-
var hasToStringTag = hasSymbols && typeof Symbol.toStringTag === "symbol";
|
|
888
|
-
var typedArrays = availableTypedArrays();
|
|
889
|
-
var $slice = callBound("String.prototype.slice");
|
|
890
|
-
var toStrTags = {};
|
|
891
|
-
var gOPD = require_getOwnPropertyDescriptor();
|
|
892
|
-
var getPrototypeOf = Object.getPrototypeOf;
|
|
893
|
-
if (hasToStringTag && gOPD && getPrototypeOf) {
|
|
894
|
-
forEach(typedArrays, function(typedArray) {
|
|
895
|
-
if (typeof globalThis[typedArray] === "function") {
|
|
896
|
-
var arr = new globalThis[typedArray]();
|
|
897
|
-
if (!(Symbol.toStringTag in arr)) {
|
|
898
|
-
throw new EvalError("this engine has support for Symbol.toStringTag, but " + typedArray + " does not have the property! Please report this.");
|
|
899
|
-
}
|
|
900
|
-
var proto = getPrototypeOf(arr);
|
|
901
|
-
var descriptor = gOPD(proto, Symbol.toStringTag);
|
|
902
|
-
if (!descriptor) {
|
|
903
|
-
var superProto = getPrototypeOf(proto);
|
|
904
|
-
descriptor = gOPD(superProto, Symbol.toStringTag);
|
|
905
|
-
}
|
|
906
|
-
toStrTags[typedArray] = descriptor.get;
|
|
907
|
-
}
|
|
908
|
-
});
|
|
909
|
-
}
|
|
910
|
-
var tryTypedArrays = function tryAllTypedArrays(value) {
|
|
911
|
-
var foundName = false;
|
|
912
|
-
forEach(toStrTags, function(getter, typedArray) {
|
|
913
|
-
if (!foundName) {
|
|
914
|
-
try {
|
|
915
|
-
var name = getter.call(value);
|
|
916
|
-
if (name === typedArray) {
|
|
917
|
-
foundName = name;
|
|
918
|
-
}
|
|
919
|
-
} catch (e) {
|
|
920
|
-
}
|
|
921
|
-
}
|
|
922
|
-
});
|
|
923
|
-
return foundName;
|
|
924
|
-
};
|
|
925
|
-
var isTypedArray = require_is_typed_array();
|
|
926
|
-
module.exports = function whichTypedArray(value) {
|
|
927
|
-
if (!isTypedArray(value)) {
|
|
928
|
-
return false;
|
|
929
|
-
}
|
|
930
|
-
if (!hasToStringTag) {
|
|
931
|
-
return $slice($toString(value), 8, -1);
|
|
932
|
-
}
|
|
933
|
-
return tryTypedArrays(value);
|
|
1115
|
+
init_polyfills();
|
|
1116
|
+
var whichTypedArray = require_which_typed_array();
|
|
1117
|
+
module.exports = function isTypedArray(value) {
|
|
1118
|
+
return !!whichTypedArray(value);
|
|
934
1119
|
};
|
|
935
1120
|
}
|
|
936
1121
|
});
|
|
@@ -938,8 +1123,8 @@
|
|
|
938
1123
|
// node_modules/util/support/types.js
|
|
939
1124
|
var require_types = __commonJS({
|
|
940
1125
|
"node_modules/util/support/types.js"(exports) {
|
|
941
|
-
init_polyfills();
|
|
942
1126
|
"use strict";
|
|
1127
|
+
init_polyfills();
|
|
943
1128
|
var isArgumentsObject = require_is_arguments();
|
|
944
1129
|
var isGeneratorFunction = require_is_generator_function();
|
|
945
1130
|
var whichTypedArray = require_which_typed_array();
|
|
@@ -1033,7 +1218,7 @@
|
|
|
1033
1218
|
function isMapToString(value) {
|
|
1034
1219
|
return ObjectToString(value) === "[object Map]";
|
|
1035
1220
|
}
|
|
1036
|
-
isMapToString.working = typeof Map !== "undefined" && isMapToString(new Map());
|
|
1221
|
+
isMapToString.working = typeof Map !== "undefined" && isMapToString(/* @__PURE__ */ new Map());
|
|
1037
1222
|
function isMap(value) {
|
|
1038
1223
|
if (typeof Map === "undefined") {
|
|
1039
1224
|
return false;
|
|
@@ -1044,7 +1229,7 @@
|
|
|
1044
1229
|
function isSetToString(value) {
|
|
1045
1230
|
return ObjectToString(value) === "[object Set]";
|
|
1046
1231
|
}
|
|
1047
|
-
isSetToString.working = typeof Set !== "undefined" && isSetToString(new Set());
|
|
1232
|
+
isSetToString.working = typeof Set !== "undefined" && isSetToString(/* @__PURE__ */ new Set());
|
|
1048
1233
|
function isSet(value) {
|
|
1049
1234
|
if (typeof Set === "undefined") {
|
|
1050
1235
|
return false;
|
|
@@ -1055,7 +1240,7 @@
|
|
|
1055
1240
|
function isWeakMapToString(value) {
|
|
1056
1241
|
return ObjectToString(value) === "[object WeakMap]";
|
|
1057
1242
|
}
|
|
1058
|
-
isWeakMapToString.working = typeof WeakMap !== "undefined" && isWeakMapToString(new WeakMap());
|
|
1243
|
+
isWeakMapToString.working = typeof WeakMap !== "undefined" && isWeakMapToString(/* @__PURE__ */ new WeakMap());
|
|
1059
1244
|
function isWeakMap(value) {
|
|
1060
1245
|
if (typeof WeakMap === "undefined") {
|
|
1061
1246
|
return false;
|
|
@@ -1066,7 +1251,7 @@
|
|
|
1066
1251
|
function isWeakSetToString(value) {
|
|
1067
1252
|
return ObjectToString(value) === "[object WeakSet]";
|
|
1068
1253
|
}
|
|
1069
|
-
isWeakSetToString.working = typeof WeakSet !== "undefined" && isWeakSetToString(new WeakSet());
|
|
1254
|
+
isWeakSetToString.working = typeof WeakSet !== "undefined" && isWeakSetToString(/* @__PURE__ */ new WeakSet());
|
|
1070
1255
|
function isWeakSet(value) {
|
|
1071
1256
|
return isWeakSetToString(value);
|
|
1072
1257
|
}
|
|
@@ -1361,12 +1546,13 @@
|
|
|
1361
1546
|
"null": "bold",
|
|
1362
1547
|
"string": "green",
|
|
1363
1548
|
"date": "magenta",
|
|
1549
|
+
// "name": intentionally not styling
|
|
1364
1550
|
"regexp": "red"
|
|
1365
1551
|
};
|
|
1366
1552
|
function stylizeWithColor(str, styleType) {
|
|
1367
1553
|
var style = inspect.styles[styleType];
|
|
1368
1554
|
if (style) {
|
|
1369
|
-
return "
|
|
1555
|
+
return "\x1B[" + inspect.colors[style][0] + "m" + str + "\x1B[" + inspect.colors[style][1] + "m";
|
|
1370
1556
|
} else {
|
|
1371
1557
|
return str;
|
|
1372
1558
|
}
|
|
@@ -1382,7 +1568,9 @@
|
|
|
1382
1568
|
return hash;
|
|
1383
1569
|
}
|
|
1384
1570
|
function formatValue(ctx, value, recurseTimes) {
|
|
1385
|
-
if (ctx.customInspect && value && isFunction(value.inspect) &&
|
|
1571
|
+
if (ctx.customInspect && value && isFunction(value.inspect) && // Filter out the util module, it's inspect function is special
|
|
1572
|
+
value.inspect !== exports.inspect && // Also filter out any prototype objects using the circular check.
|
|
1573
|
+
!(value.constructor && value.constructor.prototype === value)) {
|
|
1386
1574
|
var ret = value.inspect(recurseTimes, ctx);
|
|
1387
1575
|
if (!isString(ret)) {
|
|
1388
1576
|
ret = formatValue(ctx, ret, recurseTimes);
|
|
@@ -1477,14 +1665,28 @@
|
|
|
1477
1665
|
var output = [];
|
|
1478
1666
|
for (var i = 0, l = value.length; i < l; ++i) {
|
|
1479
1667
|
if (hasOwnProperty(value, String(i))) {
|
|
1480
|
-
output.push(formatProperty(
|
|
1668
|
+
output.push(formatProperty(
|
|
1669
|
+
ctx,
|
|
1670
|
+
value,
|
|
1671
|
+
recurseTimes,
|
|
1672
|
+
visibleKeys,
|
|
1673
|
+
String(i),
|
|
1674
|
+
true
|
|
1675
|
+
));
|
|
1481
1676
|
} else {
|
|
1482
1677
|
output.push("");
|
|
1483
1678
|
}
|
|
1484
1679
|
}
|
|
1485
1680
|
keys.forEach(function(key) {
|
|
1486
1681
|
if (!key.match(/^\d+$/)) {
|
|
1487
|
-
output.push(formatProperty(
|
|
1682
|
+
output.push(formatProperty(
|
|
1683
|
+
ctx,
|
|
1684
|
+
value,
|
|
1685
|
+
recurseTimes,
|
|
1686
|
+
visibleKeys,
|
|
1687
|
+
key,
|
|
1688
|
+
true
|
|
1689
|
+
));
|
|
1488
1690
|
}
|
|
1489
1691
|
});
|
|
1490
1692
|
return output;
|
|
@@ -1517,7 +1719,7 @@
|
|
|
1517
1719
|
if (array) {
|
|
1518
1720
|
str = str.split("\n").map(function(line) {
|
|
1519
1721
|
return " " + line;
|
|
1520
|
-
}).join("\n").
|
|
1722
|
+
}).join("\n").slice(2);
|
|
1521
1723
|
} else {
|
|
1522
1724
|
str = "\n" + str.split("\n").map(function(line) {
|
|
1523
1725
|
return " " + line;
|
|
@@ -1534,7 +1736,7 @@
|
|
|
1534
1736
|
}
|
|
1535
1737
|
name = JSON.stringify("" + key);
|
|
1536
1738
|
if (name.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)) {
|
|
1537
|
-
name = name.
|
|
1739
|
+
name = name.slice(1, -1);
|
|
1538
1740
|
name = ctx.stylize(name, "name");
|
|
1539
1741
|
} else {
|
|
1540
1742
|
name = name.replace(/'/g, "\\'").replace(/\\"/g, '"').replace(/(^"|"$)/g, "'");
|
|
@@ -1613,7 +1815,8 @@
|
|
|
1613
1815
|
}
|
|
1614
1816
|
exports.isFunction = isFunction;
|
|
1615
1817
|
function isPrimitive(arg) {
|
|
1616
|
-
return arg === null || typeof arg === "boolean" || typeof arg === "number" || typeof arg === "string" || typeof arg === "symbol" ||
|
|
1818
|
+
return arg === null || typeof arg === "boolean" || typeof arg === "number" || typeof arg === "string" || typeof arg === "symbol" || // ES6 symbol
|
|
1819
|
+
typeof arg === "undefined";
|
|
1617
1820
|
}
|
|
1618
1821
|
exports.isPrimitive = isPrimitive;
|
|
1619
1822
|
exports.isBuffer = require_isBufferBrowser();
|
|
@@ -1638,7 +1841,7 @@
|
|
|
1638
1841
|
"Dec"
|
|
1639
1842
|
];
|
|
1640
1843
|
function timestamp() {
|
|
1641
|
-
var d = new Date();
|
|
1844
|
+
var d = /* @__PURE__ */ new Date();
|
|
1642
1845
|
var time = [
|
|
1643
1846
|
pad(d.getHours()),
|
|
1644
1847
|
pad(d.getMinutes()),
|
|
@@ -1712,7 +1915,10 @@
|
|
|
1712
1915
|
writable: false,
|
|
1713
1916
|
configurable: true
|
|
1714
1917
|
});
|
|
1715
|
-
return Object.defineProperties(
|
|
1918
|
+
return Object.defineProperties(
|
|
1919
|
+
fn,
|
|
1920
|
+
getOwnPropertyDescriptors(original)
|
|
1921
|
+
);
|
|
1716
1922
|
};
|
|
1717
1923
|
exports.promisify.custom = kCustomPromisifiedSymbol;
|
|
1718
1924
|
function callbackifyOnRejected(reason, cb) {
|
|
@@ -1740,14 +1946,20 @@
|
|
|
1740
1946
|
var cb = function() {
|
|
1741
1947
|
return maybeCb.apply(self, arguments);
|
|
1742
1948
|
};
|
|
1743
|
-
original.apply(this, args).then(
|
|
1744
|
-
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
|
|
1949
|
+
original.apply(this, args).then(
|
|
1950
|
+
function(ret) {
|
|
1951
|
+
process.nextTick(cb.bind(null, null, ret));
|
|
1952
|
+
},
|
|
1953
|
+
function(rej) {
|
|
1954
|
+
process.nextTick(callbackifyOnRejected.bind(null, rej, cb));
|
|
1955
|
+
}
|
|
1956
|
+
);
|
|
1748
1957
|
}
|
|
1749
1958
|
Object.setPrototypeOf(callbackified, Object.getPrototypeOf(original));
|
|
1750
|
-
Object.defineProperties(
|
|
1959
|
+
Object.defineProperties(
|
|
1960
|
+
callbackified,
|
|
1961
|
+
getOwnPropertyDescriptors(original)
|
|
1962
|
+
);
|
|
1751
1963
|
return callbackified;
|
|
1752
1964
|
}
|
|
1753
1965
|
exports.callbackify = callbackify;
|
|
@@ -1766,9 +1978,13 @@
|
|
|
1766
1978
|
// injectables/click/click.ts
|
|
1767
1979
|
init_polyfills();
|
|
1768
1980
|
var IS_DEV = false;
|
|
1769
|
-
document.addEventListener(
|
|
1770
|
-
|
|
1771
|
-
|
|
1772
|
-
|
|
1981
|
+
document.addEventListener(
|
|
1982
|
+
"click",
|
|
1983
|
+
async (_event) => {
|
|
1984
|
+
if (IS_DEV)
|
|
1985
|
+
console.log("Empty Click Handler");
|
|
1986
|
+
},
|
|
1987
|
+
true
|
|
1988
|
+
);
|
|
1773
1989
|
})();
|
|
1774
1990
|
//# sourceMappingURL=click.js.map
|