@stencil/core 4.18.0 → 4.18.1
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/cli/index.cjs +106 -215
- package/cli/index.js +107 -217
- package/cli/package.json +1 -1
- package/compiler/package.json +1 -1
- package/compiler/stencil.js +1686 -2826
- package/dev-server/client/index.js +1 -1
- package/dev-server/client/package.json +1 -1
- package/dev-server/connector.html +2 -2
- package/dev-server/index.js +1 -1
- package/dev-server/package.json +1 -1
- package/dev-server/server-process.js +117 -227
- package/internal/app-data/index.cjs +1 -0
- package/internal/app-data/index.js +1 -0
- package/internal/app-data/package.json +1 -1
- package/internal/client/index.js +53 -36
- package/internal/client/package.json +1 -1
- package/internal/client/patch-browser.js +1 -1
- package/internal/client/shadow-css.js +1 -2
- package/internal/hydrate/index.js +53 -36
- package/internal/hydrate/package.json +1 -1
- package/internal/hydrate/runner.js +52 -89
- package/internal/package.json +1 -1
- package/internal/stencil-public-compiler.d.ts +12 -1
- package/internal/stencil-public-runtime.d.ts +1 -0
- package/internal/testing/index.js +52 -35
- package/internal/testing/package.json +1 -1
- package/mock-doc/index.cjs +378 -493
- package/mock-doc/index.d.ts +1 -1
- package/mock-doc/index.js +378 -493
- package/mock-doc/package.json +1 -1
- package/package.json +5 -6
- package/screenshot/index.js +43 -85
- package/screenshot/package.json +1 -1
- package/screenshot/pixel-match.js +14 -27
- package/sys/node/glob.js +1 -1
- package/sys/node/index.js +42 -42
- package/sys/node/package.json +1 -1
- package/sys/node/worker.js +1 -1
- package/testing/index.js +148 -268
- package/testing/jest/jest-27-and-under/jest-facade.d.ts +1 -1
- package/testing/jest/jest-28/jest-facade.d.ts +5 -5
- package/testing/jest/jest-29/jest-facade.d.ts +5 -5
- package/testing/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
Stencil Dev Server Process v4.18.
|
|
2
|
+
Stencil Dev Server Process v4.18.1 | MIT Licensed | https://stenciljs.com
|
|
3
3
|
*/
|
|
4
4
|
"use strict";
|
|
5
5
|
var __create = Object.create;
|
|
@@ -102,10 +102,8 @@ var require_BigInteger = __commonJS({
|
|
|
102
102
|
var BASE = 1e7, LOG_BASE = 7, MAX_INT = 9007199254740992, MAX_INT_ARR = smallToArray(MAX_INT), DEFAULT_ALPHABET = "0123456789abcdefghijklmnopqrstuvwxyz";
|
|
103
103
|
var supportsNativeBigInt = typeof BigInt === "function";
|
|
104
104
|
function Integer(v, radix, alphabet, caseSensitive) {
|
|
105
|
-
if (typeof v === "undefined")
|
|
106
|
-
|
|
107
|
-
if (typeof radix !== "undefined")
|
|
108
|
-
return +radix === 10 && !alphabet ? parseValue(v) : parseBase(v, radix, alphabet, caseSensitive);
|
|
105
|
+
if (typeof v === "undefined") return Integer[0];
|
|
106
|
+
if (typeof radix !== "undefined") return +radix === 10 && !alphabet ? parseValue(v) : parseBase(v, radix, alphabet, caseSensitive);
|
|
109
107
|
return parseValue(v);
|
|
110
108
|
}
|
|
111
109
|
function BigInteger(value, sign) {
|
|
@@ -153,8 +151,7 @@ var require_BigInteger = __commonJS({
|
|
|
153
151
|
}
|
|
154
152
|
function trim(v) {
|
|
155
153
|
var i2 = v.length;
|
|
156
|
-
while (v[--i2] === 0)
|
|
157
|
-
;
|
|
154
|
+
while (v[--i2] === 0) ;
|
|
158
155
|
v.length = i2 + 1;
|
|
159
156
|
}
|
|
160
157
|
function createArray(length) {
|
|
@@ -166,8 +163,7 @@ var require_BigInteger = __commonJS({
|
|
|
166
163
|
return x;
|
|
167
164
|
}
|
|
168
165
|
function truncate(n) {
|
|
169
|
-
if (n > 0)
|
|
170
|
-
return Math.floor(n);
|
|
166
|
+
if (n > 0) return Math.floor(n);
|
|
171
167
|
return Math.ceil(n);
|
|
172
168
|
}
|
|
173
169
|
function add(a, b) {
|
|
@@ -182,13 +178,11 @@ var require_BigInteger = __commonJS({
|
|
|
182
178
|
carry = sum === base ? 1 : 0;
|
|
183
179
|
r[i2++] = sum - carry * base;
|
|
184
180
|
}
|
|
185
|
-
if (carry > 0)
|
|
186
|
-
r.push(carry);
|
|
181
|
+
if (carry > 0) r.push(carry);
|
|
187
182
|
return r;
|
|
188
183
|
}
|
|
189
184
|
function addAny(a, b) {
|
|
190
|
-
if (a.length >= b.length)
|
|
191
|
-
return add(a, b);
|
|
185
|
+
if (a.length >= b.length) return add(a, b);
|
|
192
186
|
return add(b, a);
|
|
193
187
|
}
|
|
194
188
|
function addSmall(a, carry) {
|
|
@@ -225,8 +219,7 @@ var require_BigInteger = __commonJS({
|
|
|
225
219
|
}
|
|
226
220
|
var b = n.value;
|
|
227
221
|
if (n.isSmall) {
|
|
228
|
-
if (isPrecise(a + b))
|
|
229
|
-
return new SmallInteger(a + b);
|
|
222
|
+
if (isPrecise(a + b)) return new SmallInteger(a + b);
|
|
230
223
|
b = smallToArray(Math.abs(b));
|
|
231
224
|
}
|
|
232
225
|
return new BigInteger(addSmall(b, Math.abs(a)), a < 0);
|
|
@@ -243,14 +236,12 @@ var require_BigInteger = __commonJS({
|
|
|
243
236
|
if (difference < 0) {
|
|
244
237
|
difference += base;
|
|
245
238
|
borrow = 1;
|
|
246
|
-
} else
|
|
247
|
-
borrow = 0;
|
|
239
|
+
} else borrow = 0;
|
|
248
240
|
r[i2] = difference;
|
|
249
241
|
}
|
|
250
242
|
for (i2 = b_l; i2 < a_l; i2++) {
|
|
251
243
|
difference = a[i2] - borrow;
|
|
252
|
-
if (difference < 0)
|
|
253
|
-
difference += base;
|
|
244
|
+
if (difference < 0) difference += base;
|
|
254
245
|
else {
|
|
255
246
|
r[i2++] = difference;
|
|
256
247
|
break;
|
|
@@ -273,8 +264,7 @@ var require_BigInteger = __commonJS({
|
|
|
273
264
|
}
|
|
274
265
|
value = arrayToSmall(value);
|
|
275
266
|
if (typeof value === "number") {
|
|
276
|
-
if (sign)
|
|
277
|
-
value = -value;
|
|
267
|
+
if (sign) value = -value;
|
|
278
268
|
return new SmallInteger(value);
|
|
279
269
|
}
|
|
280
270
|
return new BigInteger(value, sign);
|
|
@@ -289,8 +279,7 @@ var require_BigInteger = __commonJS({
|
|
|
289
279
|
}
|
|
290
280
|
r = arrayToSmall(r);
|
|
291
281
|
if (typeof r === "number") {
|
|
292
|
-
if (sign)
|
|
293
|
-
r = -r;
|
|
282
|
+
if (sign) r = -r;
|
|
294
283
|
return new SmallInteger(r);
|
|
295
284
|
}
|
|
296
285
|
return new BigInteger(r, sign);
|
|
@@ -374,14 +363,12 @@ var require_BigInteger = __commonJS({
|
|
|
374
363
|
}
|
|
375
364
|
function shiftLeft(x, n) {
|
|
376
365
|
var r = [];
|
|
377
|
-
while (n-- > 0)
|
|
378
|
-
r.push(0);
|
|
366
|
+
while (n-- > 0) r.push(0);
|
|
379
367
|
return r.concat(x);
|
|
380
368
|
}
|
|
381
369
|
function multiplyKaratsuba(x, y) {
|
|
382
370
|
var n = Math.max(x.length, y.length);
|
|
383
|
-
if (n <= 30)
|
|
384
|
-
return multiplyLong(x, y);
|
|
371
|
+
if (n <= 30) return multiplyLong(x, y);
|
|
385
372
|
n = Math.ceil(n / 2);
|
|
386
373
|
var b = x.slice(n), a = x.slice(0, n), d = y.slice(n), c = y.slice(0, n);
|
|
387
374
|
var ac = multiplyKaratsuba(a, c), bd = multiplyKaratsuba(b, d), abcd = multiplyKaratsuba(addAny(a, b), addAny(c, d));
|
|
@@ -395,12 +382,9 @@ var require_BigInteger = __commonJS({
|
|
|
395
382
|
BigInteger.prototype.multiply = function(v) {
|
|
396
383
|
var n = parseValue(v), a = this.value, b = n.value, sign = this.sign !== n.sign, abs;
|
|
397
384
|
if (n.isSmall) {
|
|
398
|
-
if (b === 0)
|
|
399
|
-
|
|
400
|
-
if (b === 1)
|
|
401
|
-
return this;
|
|
402
|
-
if (b === -1)
|
|
403
|
-
return this.negate();
|
|
385
|
+
if (b === 0) return Integer[0];
|
|
386
|
+
if (b === 1) return this;
|
|
387
|
+
if (b === -1) return this.negate();
|
|
404
388
|
abs = Math.abs(b);
|
|
405
389
|
if (abs < BASE) {
|
|
406
390
|
return new BigInteger(multiplySmall(a, abs), sign);
|
|
@@ -425,12 +409,9 @@ var require_BigInteger = __commonJS({
|
|
|
425
409
|
return multiplySmallAndArray(Math.abs(a.value), smallToArray(Math.abs(this.value)), this.sign !== a.sign);
|
|
426
410
|
};
|
|
427
411
|
BigInteger.prototype._multiplyBySmall = function(a) {
|
|
428
|
-
if (a.value === 0)
|
|
429
|
-
|
|
430
|
-
if (a.value === 1)
|
|
431
|
-
return this;
|
|
432
|
-
if (a.value === -1)
|
|
433
|
-
return this.negate();
|
|
412
|
+
if (a.value === 0) return Integer[0];
|
|
413
|
+
if (a.value === 1) return this;
|
|
414
|
+
if (a.value === -1) return this.negate();
|
|
434
415
|
return multiplySmallAndArray(Math.abs(a.value), this.value, this.sign !== a.sign);
|
|
435
416
|
};
|
|
436
417
|
SmallInteger.prototype.multiply = function(v) {
|
|
@@ -462,8 +443,7 @@ var require_BigInteger = __commonJS({
|
|
|
462
443
|
};
|
|
463
444
|
SmallInteger.prototype.square = function() {
|
|
464
445
|
var value = this.value * this.value;
|
|
465
|
-
if (isPrecise(value))
|
|
466
|
-
return new SmallInteger(value);
|
|
446
|
+
if (isPrecise(value)) return new SmallInteger(value);
|
|
467
447
|
return new BigInteger(square(smallToArray(Math.abs(this.value))), false);
|
|
468
448
|
};
|
|
469
449
|
NativeBigInt.prototype.square = function(v) {
|
|
@@ -471,8 +451,7 @@ var require_BigInteger = __commonJS({
|
|
|
471
451
|
};
|
|
472
452
|
function divMod1(a, b) {
|
|
473
453
|
var a_l = a.length, b_l = b.length, base = BASE, result = createArray(b.length), divisorMostSignificantDigit = b[b_l - 1], lambda = Math.ceil(base / (2 * divisorMostSignificantDigit)), remainder = multiplySmall(a, lambda), divisor = multiplySmall(b, lambda), quotientDigit, shift, carry, borrow, i2, l, q;
|
|
474
|
-
if (remainder.length <= a_l)
|
|
475
|
-
remainder.push(0);
|
|
454
|
+
if (remainder.length <= a_l) remainder.push(0);
|
|
476
455
|
divisor.push(0);
|
|
477
456
|
divisorMostSignificantDigit = divisor[b_l - 1];
|
|
478
457
|
for (shift = a_l - b_l; shift >= 0; shift--) {
|
|
@@ -534,8 +513,7 @@ var require_BigInteger = __commonJS({
|
|
|
534
513
|
guess = Math.ceil(highx / highy);
|
|
535
514
|
do {
|
|
536
515
|
check = multiplySmall(b, guess);
|
|
537
|
-
if (compareAbs(check, part) <= 0)
|
|
538
|
-
break;
|
|
516
|
+
if (compareAbs(check, part) <= 0) break;
|
|
539
517
|
guess--;
|
|
540
518
|
} while (guess);
|
|
541
519
|
result.push(guess);
|
|
@@ -562,8 +540,7 @@ var require_BigInteger = __commonJS({
|
|
|
562
540
|
}
|
|
563
541
|
var a = self.value, b = n.value;
|
|
564
542
|
var quotient;
|
|
565
|
-
if (b === 0)
|
|
566
|
-
throw new Error("Cannot divide by zero");
|
|
543
|
+
if (b === 0) throw new Error("Cannot divide by zero");
|
|
567
544
|
if (self.isSmall) {
|
|
568
545
|
if (n.isSmall) {
|
|
569
546
|
return [new SmallInteger(truncate(a / b)), new SmallInteger(a % b)];
|
|
@@ -571,20 +548,16 @@ var require_BigInteger = __commonJS({
|
|
|
571
548
|
return [Integer[0], self];
|
|
572
549
|
}
|
|
573
550
|
if (n.isSmall) {
|
|
574
|
-
if (b === 1)
|
|
575
|
-
|
|
576
|
-
if (b == -1)
|
|
577
|
-
return [self.negate(), Integer[0]];
|
|
551
|
+
if (b === 1) return [self, Integer[0]];
|
|
552
|
+
if (b == -1) return [self.negate(), Integer[0]];
|
|
578
553
|
var abs = Math.abs(b);
|
|
579
554
|
if (abs < BASE) {
|
|
580
555
|
value = divModSmall(a, abs);
|
|
581
556
|
quotient = arrayToSmall(value[0]);
|
|
582
557
|
var remainder = value[1];
|
|
583
|
-
if (self.sign)
|
|
584
|
-
remainder = -remainder;
|
|
558
|
+
if (self.sign) remainder = -remainder;
|
|
585
559
|
if (typeof quotient === "number") {
|
|
586
|
-
if (self.sign !== n.sign)
|
|
587
|
-
quotient = -quotient;
|
|
560
|
+
if (self.sign !== n.sign) quotient = -quotient;
|
|
588
561
|
return [new SmallInteger(quotient), new SmallInteger(remainder)];
|
|
589
562
|
}
|
|
590
563
|
return [new BigInteger(quotient, self.sign !== n.sign), new SmallInteger(remainder)];
|
|
@@ -592,28 +565,21 @@ var require_BigInteger = __commonJS({
|
|
|
592
565
|
b = smallToArray(abs);
|
|
593
566
|
}
|
|
594
567
|
var comparison = compareAbs(a, b);
|
|
595
|
-
if (comparison === -1)
|
|
596
|
-
|
|
597
|
-
if (comparison === 0)
|
|
598
|
-
return [Integer[self.sign === n.sign ? 1 : -1], Integer[0]];
|
|
568
|
+
if (comparison === -1) return [Integer[0], self];
|
|
569
|
+
if (comparison === 0) return [Integer[self.sign === n.sign ? 1 : -1], Integer[0]];
|
|
599
570
|
if (a.length + b.length <= 200)
|
|
600
571
|
value = divMod1(a, b);
|
|
601
|
-
else
|
|
602
|
-
value = divMod2(a, b);
|
|
572
|
+
else value = divMod2(a, b);
|
|
603
573
|
quotient = value[0];
|
|
604
574
|
var qSign = self.sign !== n.sign, mod = value[1], mSign = self.sign;
|
|
605
575
|
if (typeof quotient === "number") {
|
|
606
|
-
if (qSign)
|
|
607
|
-
quotient = -quotient;
|
|
576
|
+
if (qSign) quotient = -quotient;
|
|
608
577
|
quotient = new SmallInteger(quotient);
|
|
609
|
-
} else
|
|
610
|
-
quotient = new BigInteger(quotient, qSign);
|
|
578
|
+
} else quotient = new BigInteger(quotient, qSign);
|
|
611
579
|
if (typeof mod === "number") {
|
|
612
|
-
if (mSign)
|
|
613
|
-
mod = -mod;
|
|
580
|
+
if (mSign) mod = -mod;
|
|
614
581
|
mod = new SmallInteger(mod);
|
|
615
|
-
} else
|
|
616
|
-
mod = new BigInteger(mod, mSign);
|
|
582
|
+
} else mod = new BigInteger(mod, mSign);
|
|
617
583
|
return [quotient, mod];
|
|
618
584
|
}
|
|
619
585
|
BigInteger.prototype.divmod = function(v) {
|
|
@@ -640,19 +606,14 @@ var require_BigInteger = __commonJS({
|
|
|
640
606
|
SmallInteger.prototype.remainder = SmallInteger.prototype.mod = BigInteger.prototype.remainder = BigInteger.prototype.mod;
|
|
641
607
|
BigInteger.prototype.pow = function(v) {
|
|
642
608
|
var n = parseValue(v), a = this.value, b = n.value, value, x, y;
|
|
643
|
-
if (b === 0)
|
|
644
|
-
|
|
645
|
-
if (a ===
|
|
646
|
-
|
|
647
|
-
if (a === 1)
|
|
648
|
-
return Integer[1];
|
|
649
|
-
if (a === -1)
|
|
650
|
-
return n.isEven() ? Integer[1] : Integer[-1];
|
|
609
|
+
if (b === 0) return Integer[1];
|
|
610
|
+
if (a === 0) return Integer[0];
|
|
611
|
+
if (a === 1) return Integer[1];
|
|
612
|
+
if (a === -1) return n.isEven() ? Integer[1] : Integer[-1];
|
|
651
613
|
if (n.sign) {
|
|
652
614
|
return Integer[0];
|
|
653
615
|
}
|
|
654
|
-
if (!n.isSmall)
|
|
655
|
-
throw new Error("The exponent " + n.toString() + " is too large.");
|
|
616
|
+
if (!n.isSmall) throw new Error("The exponent " + n.toString() + " is too large.");
|
|
656
617
|
if (this.isSmall) {
|
|
657
618
|
if (isPrecise(value = Math.pow(a, b)))
|
|
658
619
|
return new SmallInteger(truncate(value));
|
|
@@ -664,8 +625,7 @@ var require_BigInteger = __commonJS({
|
|
|
664
625
|
y = y.times(x);
|
|
665
626
|
--b;
|
|
666
627
|
}
|
|
667
|
-
if (b === 0)
|
|
668
|
-
break;
|
|
628
|
+
if (b === 0) break;
|
|
669
629
|
b /= 2;
|
|
670
630
|
x = x.square();
|
|
671
631
|
}
|
|
@@ -676,16 +636,11 @@ var require_BigInteger = __commonJS({
|
|
|
676
636
|
var n = parseValue(v);
|
|
677
637
|
var a = this.value, b = n.value;
|
|
678
638
|
var _0 = BigInt(0), _1 = BigInt(1), _2 = BigInt(2);
|
|
679
|
-
if (b === _0)
|
|
680
|
-
|
|
681
|
-
if (a ===
|
|
682
|
-
|
|
683
|
-
if (
|
|
684
|
-
return Integer[1];
|
|
685
|
-
if (a === BigInt(-1))
|
|
686
|
-
return n.isEven() ? Integer[1] : Integer[-1];
|
|
687
|
-
if (n.isNegative())
|
|
688
|
-
return new NativeBigInt(_0);
|
|
639
|
+
if (b === _0) return Integer[1];
|
|
640
|
+
if (a === _0) return Integer[0];
|
|
641
|
+
if (a === _1) return Integer[1];
|
|
642
|
+
if (a === BigInt(-1)) return n.isEven() ? Integer[1] : Integer[-1];
|
|
643
|
+
if (n.isNegative()) return new NativeBigInt(_0);
|
|
689
644
|
var x = this;
|
|
690
645
|
var y = Integer[1];
|
|
691
646
|
while (true) {
|
|
@@ -693,8 +648,7 @@ var require_BigInteger = __commonJS({
|
|
|
693
648
|
y = y.times(x);
|
|
694
649
|
--b;
|
|
695
650
|
}
|
|
696
|
-
if (b === _0)
|
|
697
|
-
break;
|
|
651
|
+
if (b === _0) break;
|
|
698
652
|
b /= _2;
|
|
699
653
|
x = x.square();
|
|
700
654
|
}
|
|
@@ -703,18 +657,15 @@ var require_BigInteger = __commonJS({
|
|
|
703
657
|
BigInteger.prototype.modPow = function(exp, mod) {
|
|
704
658
|
exp = parseValue(exp);
|
|
705
659
|
mod = parseValue(mod);
|
|
706
|
-
if (mod.isZero())
|
|
707
|
-
throw new Error("Cannot take modPow with modulus 0");
|
|
660
|
+
if (mod.isZero()) throw new Error("Cannot take modPow with modulus 0");
|
|
708
661
|
var r = Integer[1], base = this.mod(mod);
|
|
709
662
|
if (exp.isNegative()) {
|
|
710
663
|
exp = exp.multiply(Integer[-1]);
|
|
711
664
|
base = base.modInv(mod);
|
|
712
665
|
}
|
|
713
666
|
while (exp.isPositive()) {
|
|
714
|
-
if (base.isZero())
|
|
715
|
-
|
|
716
|
-
if (exp.isOdd())
|
|
717
|
-
r = r.multiply(base).mod(mod);
|
|
667
|
+
if (base.isZero()) return Integer[0];
|
|
668
|
+
if (exp.isOdd()) r = r.multiply(base).mod(mod);
|
|
718
669
|
exp = exp.divide(2);
|
|
719
670
|
base = base.square().mod(mod);
|
|
720
671
|
}
|
|
@@ -726,15 +677,13 @@ var require_BigInteger = __commonJS({
|
|
|
726
677
|
return a.length > b.length ? 1 : -1;
|
|
727
678
|
}
|
|
728
679
|
for (var i2 = a.length - 1; i2 >= 0; i2--) {
|
|
729
|
-
if (a[i2] !== b[i2])
|
|
730
|
-
return a[i2] > b[i2] ? 1 : -1;
|
|
680
|
+
if (a[i2] !== b[i2]) return a[i2] > b[i2] ? 1 : -1;
|
|
731
681
|
}
|
|
732
682
|
return 0;
|
|
733
683
|
}
|
|
734
684
|
BigInteger.prototype.compareAbs = function(v) {
|
|
735
685
|
var n = parseValue(v), a = this.value, b = n.value;
|
|
736
|
-
if (n.isSmall)
|
|
737
|
-
return 1;
|
|
686
|
+
if (n.isSmall) return 1;
|
|
738
687
|
return compareAbs(a, b);
|
|
739
688
|
};
|
|
740
689
|
SmallInteger.prototype.compareAbs = function(v) {
|
|
@@ -874,52 +823,38 @@ var require_BigInteger = __commonJS({
|
|
|
874
823
|
};
|
|
875
824
|
BigInteger.prototype.isDivisibleBy = function(v) {
|
|
876
825
|
var n = parseValue(v);
|
|
877
|
-
if (n.isZero())
|
|
878
|
-
|
|
879
|
-
if (n.
|
|
880
|
-
return true;
|
|
881
|
-
if (n.compareAbs(2) === 0)
|
|
882
|
-
return this.isEven();
|
|
826
|
+
if (n.isZero()) return false;
|
|
827
|
+
if (n.isUnit()) return true;
|
|
828
|
+
if (n.compareAbs(2) === 0) return this.isEven();
|
|
883
829
|
return this.mod(n).isZero();
|
|
884
830
|
};
|
|
885
831
|
NativeBigInt.prototype.isDivisibleBy = SmallInteger.prototype.isDivisibleBy = BigInteger.prototype.isDivisibleBy;
|
|
886
832
|
function isBasicPrime(v) {
|
|
887
833
|
var n = v.abs();
|
|
888
|
-
if (n.isUnit())
|
|
889
|
-
|
|
890
|
-
if (n.
|
|
891
|
-
|
|
892
|
-
if (n.isEven() || n.isDivisibleBy(3) || n.isDivisibleBy(5))
|
|
893
|
-
return false;
|
|
894
|
-
if (n.lesser(49))
|
|
895
|
-
return true;
|
|
834
|
+
if (n.isUnit()) return false;
|
|
835
|
+
if (n.equals(2) || n.equals(3) || n.equals(5)) return true;
|
|
836
|
+
if (n.isEven() || n.isDivisibleBy(3) || n.isDivisibleBy(5)) return false;
|
|
837
|
+
if (n.lesser(49)) return true;
|
|
896
838
|
}
|
|
897
839
|
function millerRabinTest(n, a) {
|
|
898
840
|
var nPrev = n.prev(), b = nPrev, r = 0, d, t, i2, x;
|
|
899
|
-
while (b.isEven())
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
x =
|
|
906
|
-
if (x.isUnit()
|
|
907
|
-
|
|
908
|
-
for (d = r - 1; d != 0; d--) {
|
|
909
|
-
x = x.square().mod(n);
|
|
910
|
-
if (x.isUnit())
|
|
911
|
-
return false;
|
|
912
|
-
if (x.equals(nPrev))
|
|
913
|
-
continue next;
|
|
914
|
-
}
|
|
915
|
-
return false;
|
|
841
|
+
while (b.isEven()) b = b.divide(2), r++;
|
|
842
|
+
next: for (i2 = 0; i2 < a.length; i2++) {
|
|
843
|
+
if (n.lesser(a[i2])) continue;
|
|
844
|
+
x = bigInt(a[i2]).modPow(b, n);
|
|
845
|
+
if (x.isUnit() || x.equals(nPrev)) continue;
|
|
846
|
+
for (d = r - 1; d != 0; d--) {
|
|
847
|
+
x = x.square().mod(n);
|
|
848
|
+
if (x.isUnit()) return false;
|
|
849
|
+
if (x.equals(nPrev)) continue next;
|
|
916
850
|
}
|
|
851
|
+
return false;
|
|
852
|
+
}
|
|
917
853
|
return true;
|
|
918
854
|
}
|
|
919
855
|
BigInteger.prototype.isPrime = function(strict) {
|
|
920
856
|
var isPrime = isBasicPrime(this);
|
|
921
|
-
if (isPrime !== undefined2)
|
|
922
|
-
return isPrime;
|
|
857
|
+
if (isPrime !== undefined2) return isPrime;
|
|
923
858
|
var n = this.abs();
|
|
924
859
|
var bits = n.bitLength();
|
|
925
860
|
if (bits <= 64)
|
|
@@ -934,8 +869,7 @@ var require_BigInteger = __commonJS({
|
|
|
934
869
|
NativeBigInt.prototype.isPrime = SmallInteger.prototype.isPrime = BigInteger.prototype.isPrime;
|
|
935
870
|
BigInteger.prototype.isProbablePrime = function(iterations, rng) {
|
|
936
871
|
var isPrime = isBasicPrime(this);
|
|
937
|
-
if (isPrime !== undefined2)
|
|
938
|
-
return isPrime;
|
|
872
|
+
if (isPrime !== undefined2) return isPrime;
|
|
939
873
|
var n = this.abs();
|
|
940
874
|
var t = iterations === undefined2 ? 5 : iterations;
|
|
941
875
|
for (var a = [], i2 = 0; i2 < t; i2++) {
|
|
@@ -955,8 +889,7 @@ var require_BigInteger = __commonJS({
|
|
|
955
889
|
newT = lastT.subtract(q.multiply(newT));
|
|
956
890
|
newR = lastR.subtract(q.multiply(newR));
|
|
957
891
|
}
|
|
958
|
-
if (!r.isUnit())
|
|
959
|
-
throw new Error(this.toString() + " and " + n.toString() + " are not co-prime");
|
|
892
|
+
if (!r.isUnit()) throw new Error(this.toString() + " and " + n.toString() + " are not co-prime");
|
|
960
893
|
if (t.compare(0) === -1) {
|
|
961
894
|
t = t.add(n);
|
|
962
895
|
}
|
|
@@ -975,8 +908,7 @@ var require_BigInteger = __commonJS({
|
|
|
975
908
|
};
|
|
976
909
|
SmallInteger.prototype.next = function() {
|
|
977
910
|
var value = this.value;
|
|
978
|
-
if (value + 1 < MAX_INT)
|
|
979
|
-
return new SmallInteger(value + 1);
|
|
911
|
+
if (value + 1 < MAX_INT) return new SmallInteger(value + 1);
|
|
980
912
|
return new BigInteger(MAX_INT_ARR, false);
|
|
981
913
|
};
|
|
982
914
|
NativeBigInt.prototype.next = function() {
|
|
@@ -991,16 +923,14 @@ var require_BigInteger = __commonJS({
|
|
|
991
923
|
};
|
|
992
924
|
SmallInteger.prototype.prev = function() {
|
|
993
925
|
var value = this.value;
|
|
994
|
-
if (value - 1 > -MAX_INT)
|
|
995
|
-
return new SmallInteger(value - 1);
|
|
926
|
+
if (value - 1 > -MAX_INT) return new SmallInteger(value - 1);
|
|
996
927
|
return new BigInteger(MAX_INT_ARR, true);
|
|
997
928
|
};
|
|
998
929
|
NativeBigInt.prototype.prev = function() {
|
|
999
930
|
return new NativeBigInt(this.value - BigInt(1));
|
|
1000
931
|
};
|
|
1001
932
|
var powersOfTwo = [1];
|
|
1002
|
-
while (2 * powersOfTwo[powersOfTwo.length - 1] <= BASE)
|
|
1003
|
-
powersOfTwo.push(2 * powersOfTwo[powersOfTwo.length - 1]);
|
|
933
|
+
while (2 * powersOfTwo[powersOfTwo.length - 1] <= BASE) powersOfTwo.push(2 * powersOfTwo[powersOfTwo.length - 1]);
|
|
1004
934
|
var powers2Length = powersOfTwo.length, highestPower2 = powersOfTwo[powers2Length - 1];
|
|
1005
935
|
function shift_isSmall(n) {
|
|
1006
936
|
return Math.abs(n) <= BASE;
|
|
@@ -1010,11 +940,9 @@ var require_BigInteger = __commonJS({
|
|
|
1010
940
|
if (!shift_isSmall(n)) {
|
|
1011
941
|
throw new Error(String(n) + " is too large for shifting.");
|
|
1012
942
|
}
|
|
1013
|
-
if (n < 0)
|
|
1014
|
-
return this.shiftRight(-n);
|
|
943
|
+
if (n < 0) return this.shiftRight(-n);
|
|
1015
944
|
var result = this;
|
|
1016
|
-
if (result.isZero())
|
|
1017
|
-
return result;
|
|
945
|
+
if (result.isZero()) return result;
|
|
1018
946
|
while (n >= powers2Length) {
|
|
1019
947
|
result = result.multiply(highestPower2);
|
|
1020
948
|
n -= powers2Length - 1;
|
|
@@ -1028,12 +956,10 @@ var require_BigInteger = __commonJS({
|
|
|
1028
956
|
if (!shift_isSmall(n)) {
|
|
1029
957
|
throw new Error(String(n) + " is too large for shifting.");
|
|
1030
958
|
}
|
|
1031
|
-
if (n < 0)
|
|
1032
|
-
return this.shiftLeft(-n);
|
|
959
|
+
if (n < 0) return this.shiftLeft(-n);
|
|
1033
960
|
var result = this;
|
|
1034
961
|
while (n >= powers2Length) {
|
|
1035
|
-
if (result.isZero() || result.isNegative() && result.isUnit())
|
|
1036
|
-
return result;
|
|
962
|
+
if (result.isZero() || result.isNegative() && result.isUnit()) return result;
|
|
1037
963
|
remQuo = divModAny(result, highestPower2);
|
|
1038
964
|
result = remQuo[1].isNegative() ? remQuo[0].prev() : remQuo[0];
|
|
1039
965
|
n -= powers2Length - 1;
|
|
@@ -1131,12 +1057,9 @@ var require_BigInteger = __commonJS({
|
|
|
1131
1057
|
function gcd(a, b) {
|
|
1132
1058
|
a = parseValue(a).abs();
|
|
1133
1059
|
b = parseValue(b).abs();
|
|
1134
|
-
if (a.equals(b))
|
|
1135
|
-
|
|
1136
|
-
if (
|
|
1137
|
-
return b;
|
|
1138
|
-
if (b.isZero())
|
|
1139
|
-
return a;
|
|
1060
|
+
if (a.equals(b)) return a;
|
|
1061
|
+
if (a.isZero()) return b;
|
|
1062
|
+
if (b.isZero()) return a;
|
|
1140
1063
|
var c = Integer[1], d, t;
|
|
1141
1064
|
while (a.isEven() && b.isEven()) {
|
|
1142
1065
|
d = min(roughLOB(a), roughLOB(b));
|
|
@@ -1171,16 +1094,14 @@ var require_BigInteger = __commonJS({
|
|
|
1171
1094
|
var usedRNG = rng || Math.random;
|
|
1172
1095
|
var low = min(a, b), high = max(a, b);
|
|
1173
1096
|
var range = high.subtract(low).add(1);
|
|
1174
|
-
if (range.isSmall)
|
|
1175
|
-
return low.add(Math.floor(usedRNG() * range));
|
|
1097
|
+
if (range.isSmall) return low.add(Math.floor(usedRNG() * range));
|
|
1176
1098
|
var digits = toBase(range, BASE).value;
|
|
1177
1099
|
var result = [], restricted = true;
|
|
1178
1100
|
for (var i2 = 0; i2 < digits.length; i2++) {
|
|
1179
1101
|
var top = restricted ? digits[i2] + (i2 + 1 < digits.length ? digits[i2 + 1] / BASE : 0) : BASE;
|
|
1180
1102
|
var digit = truncate(usedRNG() * top);
|
|
1181
1103
|
result.push(digit);
|
|
1182
|
-
if (digit < digits[i2])
|
|
1183
|
-
restricted = false;
|
|
1104
|
+
if (digit < digits[i2]) restricted = false;
|
|
1184
1105
|
}
|
|
1185
1106
|
return low.add(Integer.fromArray(result, BASE, false));
|
|
1186
1107
|
}
|
|
@@ -1200,12 +1121,10 @@ var require_BigInteger = __commonJS({
|
|
|
1200
1121
|
}
|
|
1201
1122
|
for (i2 = 0; i2 < length; i2++) {
|
|
1202
1123
|
var c = text[i2];
|
|
1203
|
-
if (c === "-")
|
|
1204
|
-
continue;
|
|
1124
|
+
if (c === "-") continue;
|
|
1205
1125
|
if (c in alphabetValues) {
|
|
1206
1126
|
if (alphabetValues[c] >= absBase) {
|
|
1207
|
-
if (c === "1" && absBase === 1)
|
|
1208
|
-
continue;
|
|
1127
|
+
if (c === "1" && absBase === 1) continue;
|
|
1209
1128
|
throw new Error(c + " is not a valid digit in base " + base + ".");
|
|
1210
1129
|
}
|
|
1211
1130
|
}
|
|
@@ -1215,16 +1134,14 @@ var require_BigInteger = __commonJS({
|
|
|
1215
1134
|
var isNegative = text[0] === "-";
|
|
1216
1135
|
for (i2 = isNegative ? 1 : 0; i2 < text.length; i2++) {
|
|
1217
1136
|
var c = text[i2];
|
|
1218
|
-
if (c in alphabetValues)
|
|
1219
|
-
digits.push(parseValue(alphabetValues[c]));
|
|
1137
|
+
if (c in alphabetValues) digits.push(parseValue(alphabetValues[c]));
|
|
1220
1138
|
else if (c === "<") {
|
|
1221
1139
|
var start = i2;
|
|
1222
1140
|
do {
|
|
1223
1141
|
i2++;
|
|
1224
1142
|
} while (text[i2] !== ">" && i2 < text.length);
|
|
1225
1143
|
digits.push(parseValue(text.slice(start + 1, i2)));
|
|
1226
|
-
} else
|
|
1227
|
-
throw new Error(c + " is not a valid character");
|
|
1144
|
+
} else throw new Error(c + " is not a valid character");
|
|
1228
1145
|
}
|
|
1229
1146
|
return parseBaseFromArray(digits, base, isNegative);
|
|
1230
1147
|
};
|
|
@@ -1246,13 +1163,11 @@ var require_BigInteger = __commonJS({
|
|
|
1246
1163
|
function toBase(n, base) {
|
|
1247
1164
|
base = bigInt(base);
|
|
1248
1165
|
if (base.isZero()) {
|
|
1249
|
-
if (n.isZero())
|
|
1250
|
-
return { value: [0], isNegative: false };
|
|
1166
|
+
if (n.isZero()) return { value: [0], isNegative: false };
|
|
1251
1167
|
throw new Error("Cannot convert nonzero numbers to base 0.");
|
|
1252
1168
|
}
|
|
1253
1169
|
if (base.equals(-1)) {
|
|
1254
|
-
if (n.isZero())
|
|
1255
|
-
return { value: [0], isNegative: false };
|
|
1170
|
+
if (n.isZero()) return { value: [0], isNegative: false };
|
|
1256
1171
|
if (n.isNegative())
|
|
1257
1172
|
return {
|
|
1258
1173
|
value: [].concat.apply(
|
|
@@ -1274,8 +1189,7 @@ var require_BigInteger = __commonJS({
|
|
|
1274
1189
|
n = n.abs();
|
|
1275
1190
|
}
|
|
1276
1191
|
if (base.isUnit()) {
|
|
1277
|
-
if (n.isZero())
|
|
1278
|
-
return { value: [0], isNegative: false };
|
|
1192
|
+
if (n.isZero()) return { value: [0], isNegative: false };
|
|
1279
1193
|
return {
|
|
1280
1194
|
value: Array.apply(null, Array(n.toJSNumber())).map(Number.prototype.valueOf, 1),
|
|
1281
1195
|
isNegative: neg
|
|
@@ -1312,10 +1226,8 @@ var require_BigInteger = __commonJS({
|
|
|
1312
1226
|
return toBase(this, radix);
|
|
1313
1227
|
};
|
|
1314
1228
|
BigInteger.prototype.toString = function(radix, alphabet) {
|
|
1315
|
-
if (radix === undefined2)
|
|
1316
|
-
|
|
1317
|
-
if (radix !== 10 || alphabet)
|
|
1318
|
-
return toBaseString(this, radix, alphabet);
|
|
1229
|
+
if (radix === undefined2) radix = 10;
|
|
1230
|
+
if (radix !== 10 || alphabet) return toBaseString(this, radix, alphabet);
|
|
1319
1231
|
var v = this.value, l = v.length, str = String(v[--l]), zeros = "0000000", digit;
|
|
1320
1232
|
while (--l >= 0) {
|
|
1321
1233
|
digit = String(v[l]);
|
|
@@ -1325,10 +1237,8 @@ var require_BigInteger = __commonJS({
|
|
|
1325
1237
|
return sign + str;
|
|
1326
1238
|
};
|
|
1327
1239
|
SmallInteger.prototype.toString = function(radix, alphabet) {
|
|
1328
|
-
if (radix === undefined2)
|
|
1329
|
-
|
|
1330
|
-
if (radix != 10 || alphabet)
|
|
1331
|
-
return toBaseString(this, radix, alphabet);
|
|
1240
|
+
if (radix === undefined2) radix = 10;
|
|
1241
|
+
if (radix != 10 || alphabet) return toBaseString(this, radix, alphabet);
|
|
1332
1242
|
return String(this.value);
|
|
1333
1243
|
};
|
|
1334
1244
|
NativeBigInt.prototype.toString = SmallInteger.prototype.toString;
|
|
@@ -1354,32 +1264,26 @@ var require_BigInteger = __commonJS({
|
|
|
1354
1264
|
throw new Error("Invalid integer: " + v);
|
|
1355
1265
|
}
|
|
1356
1266
|
var sign = v[0] === "-";
|
|
1357
|
-
if (sign)
|
|
1358
|
-
v = v.slice(1);
|
|
1267
|
+
if (sign) v = v.slice(1);
|
|
1359
1268
|
var split = v.split(/e/i);
|
|
1360
|
-
if (split.length > 2)
|
|
1361
|
-
throw new Error("Invalid integer: " + split.join("e"));
|
|
1269
|
+
if (split.length > 2) throw new Error("Invalid integer: " + split.join("e"));
|
|
1362
1270
|
if (split.length === 2) {
|
|
1363
1271
|
var exp = split[1];
|
|
1364
|
-
if (exp[0] === "+")
|
|
1365
|
-
exp = exp.slice(1);
|
|
1272
|
+
if (exp[0] === "+") exp = exp.slice(1);
|
|
1366
1273
|
exp = +exp;
|
|
1367
|
-
if (exp !== truncate(exp) || !isPrecise(exp))
|
|
1368
|
-
throw new Error("Invalid integer: " + exp + " is not a valid exponent.");
|
|
1274
|
+
if (exp !== truncate(exp) || !isPrecise(exp)) throw new Error("Invalid integer: " + exp + " is not a valid exponent.");
|
|
1369
1275
|
var text = split[0];
|
|
1370
1276
|
var decimalPlace = text.indexOf(".");
|
|
1371
1277
|
if (decimalPlace >= 0) {
|
|
1372
1278
|
exp -= text.length - decimalPlace - 1;
|
|
1373
1279
|
text = text.slice(0, decimalPlace) + text.slice(decimalPlace + 1);
|
|
1374
1280
|
}
|
|
1375
|
-
if (exp < 0)
|
|
1376
|
-
throw new Error("Cannot include negative exponent part for integers");
|
|
1281
|
+
if (exp < 0) throw new Error("Cannot include negative exponent part for integers");
|
|
1377
1282
|
text += new Array(exp + 1).join("0");
|
|
1378
1283
|
v = text;
|
|
1379
1284
|
}
|
|
1380
1285
|
var isValid = /^([0-9][0-9]*)$/.test(v);
|
|
1381
|
-
if (!isValid)
|
|
1382
|
-
throw new Error("Invalid integer: " + v);
|
|
1286
|
+
if (!isValid) throw new Error("Invalid integer: " + v);
|
|
1383
1287
|
if (supportsNativeBigInt) {
|
|
1384
1288
|
return new NativeBigInt(BigInt(sign ? "-" + v : v));
|
|
1385
1289
|
}
|
|
@@ -1387,8 +1291,7 @@ var require_BigInteger = __commonJS({
|
|
|
1387
1291
|
while (max2 > 0) {
|
|
1388
1292
|
r.push(+v.slice(min2, max2));
|
|
1389
1293
|
min2 -= l;
|
|
1390
|
-
if (min2 < 0)
|
|
1391
|
-
min2 = 0;
|
|
1294
|
+
if (min2 < 0) min2 = 0;
|
|
1392
1295
|
max2 -= l;
|
|
1393
1296
|
}
|
|
1394
1297
|
trim(r);
|
|
@@ -1399,8 +1302,7 @@ var require_BigInteger = __commonJS({
|
|
|
1399
1302
|
return new NativeBigInt(BigInt(v));
|
|
1400
1303
|
}
|
|
1401
1304
|
if (isPrecise(v)) {
|
|
1402
|
-
if (v !== truncate(v))
|
|
1403
|
-
throw new Error(v + " is not an integer.");
|
|
1305
|
+
if (v !== truncate(v)) throw new Error(v + " is not an integer.");
|
|
1404
1306
|
return new SmallInteger(v);
|
|
1405
1307
|
}
|
|
1406
1308
|
return parseStringValue(v.toString());
|
|
@@ -1419,8 +1321,7 @@ var require_BigInteger = __commonJS({
|
|
|
1419
1321
|
}
|
|
1420
1322
|
for (var i = 0; i < 1e3; i++) {
|
|
1421
1323
|
Integer[i] = parseValue(i);
|
|
1422
|
-
if (i > 0)
|
|
1423
|
-
Integer[-i] = parseValue(-i);
|
|
1324
|
+
if (i > 0) Integer[-i] = parseValue(-i);
|
|
1424
1325
|
}
|
|
1425
1326
|
Integer.one = Integer[1];
|
|
1426
1327
|
Integer.zero = Integer[0];
|
|
@@ -1474,8 +1375,7 @@ var require_bplistParser = __commonJS({
|
|
|
1474
1375
|
err2 = ex;
|
|
1475
1376
|
reject(err2);
|
|
1476
1377
|
} finally {
|
|
1477
|
-
if (callback)
|
|
1478
|
-
callback(err2, result);
|
|
1378
|
+
if (callback) callback(err2, result);
|
|
1479
1379
|
}
|
|
1480
1380
|
}
|
|
1481
1381
|
if (Buffer.isBuffer(fileNameOrBuffer)) {
|
|
@@ -4118,18 +4018,15 @@ var reducePathComponents = (components) => {
|
|
|
4118
4018
|
const reduced = [components[0]];
|
|
4119
4019
|
for (let i = 1; i < components.length; i++) {
|
|
4120
4020
|
const component = components[i];
|
|
4121
|
-
if (!component)
|
|
4122
|
-
|
|
4123
|
-
if (component === ".")
|
|
4124
|
-
continue;
|
|
4021
|
+
if (!component) continue;
|
|
4022
|
+
if (component === ".") continue;
|
|
4125
4023
|
if (component === "..") {
|
|
4126
4024
|
if (reduced.length > 1) {
|
|
4127
4025
|
if (reduced[reduced.length - 1] !== "..") {
|
|
4128
4026
|
reduced.pop();
|
|
4129
4027
|
continue;
|
|
4130
4028
|
}
|
|
4131
|
-
} else if (reduced[0])
|
|
4132
|
-
continue;
|
|
4029
|
+
} else if (reduced[0]) continue;
|
|
4133
4030
|
}
|
|
4134
4031
|
reduced.push(component);
|
|
4135
4032
|
}
|
|
@@ -4140,23 +4037,18 @@ var getRootLength = (path11) => {
|
|
|
4140
4037
|
return rootLength < 0 ? ~rootLength : rootLength;
|
|
4141
4038
|
};
|
|
4142
4039
|
var getEncodedRootLength = (path11) => {
|
|
4143
|
-
if (!path11)
|
|
4144
|
-
return 0;
|
|
4040
|
+
if (!path11) return 0;
|
|
4145
4041
|
const ch0 = path11.charCodeAt(0);
|
|
4146
4042
|
if (ch0 === 47 /* slash */ || ch0 === 92 /* backslash */) {
|
|
4147
|
-
if (path11.charCodeAt(1) !== ch0)
|
|
4148
|
-
return 1;
|
|
4043
|
+
if (path11.charCodeAt(1) !== ch0) return 1;
|
|
4149
4044
|
const p1 = path11.indexOf(ch0 === 47 /* slash */ ? "/" : altDirectorySeparator, 2);
|
|
4150
|
-
if (p1 < 0)
|
|
4151
|
-
return path11.length;
|
|
4045
|
+
if (p1 < 0) return path11.length;
|
|
4152
4046
|
return p1 + 1;
|
|
4153
4047
|
}
|
|
4154
4048
|
if (isVolumeCharacter(ch0) && path11.charCodeAt(1) === 58 /* colon */) {
|
|
4155
4049
|
const ch2 = path11.charCodeAt(2);
|
|
4156
|
-
if (ch2 === 47 /* slash */ || ch2 === 92 /* backslash */)
|
|
4157
|
-
|
|
4158
|
-
if (path11.length === 2)
|
|
4159
|
-
return 2;
|
|
4050
|
+
if (ch2 === 47 /* slash */ || ch2 === 92 /* backslash */) return 3;
|
|
4051
|
+
if (path11.length === 2) return 2;
|
|
4160
4052
|
}
|
|
4161
4053
|
const schemeEnd = path11.indexOf(urlSchemeSeparator);
|
|
4162
4054
|
if (schemeEnd !== -1) {
|
|
@@ -4185,12 +4077,10 @@ var getEncodedRootLength = (path11) => {
|
|
|
4185
4077
|
var isVolumeCharacter = (charCode) => charCode >= 97 /* a */ && charCode <= 122 /* z */ || charCode >= 65 /* A */ && charCode <= 90 /* Z */;
|
|
4186
4078
|
var getFileUrlVolumeSeparatorEnd = (url2, start) => {
|
|
4187
4079
|
const ch0 = url2.charCodeAt(start);
|
|
4188
|
-
if (ch0 === 58 /* colon */)
|
|
4189
|
-
return start + 1;
|
|
4080
|
+
if (ch0 === 58 /* colon */) return start + 1;
|
|
4190
4081
|
if (ch0 === 37 /* percent */ && url2.charCodeAt(start + 1) === 51 /* _3 */) {
|
|
4191
4082
|
const ch2 = url2.charCodeAt(start + 2);
|
|
4192
|
-
if (ch2 === 97 /* a */ || ch2 === 65 /* A */)
|
|
4193
|
-
return start + 3;
|
|
4083
|
+
if (ch2 === 97 /* a */ || ch2 === 65 /* A */) return start + 3;
|
|
4194
4084
|
}
|
|
4195
4085
|
return -1;
|
|
4196
4086
|
};
|
|
@@ -4263,7 +4153,7 @@ var DEV_SERVER_INIT_URL = `${DEV_SERVER_URL}-init`;
|
|
|
4263
4153
|
var OPEN_IN_EDITOR_URL = `${DEV_SERVER_URL}-open-in-editor`;
|
|
4264
4154
|
|
|
4265
4155
|
// build/version.js
|
|
4266
|
-
var version = "4.18.
|
|
4156
|
+
var version = "4.18.1";
|
|
4267
4157
|
|
|
4268
4158
|
// build/dev-server/content-types-db.json
|
|
4269
4159
|
var content_types_db_default = { "123": "application/vnd.lotus-1-2-3", "1km": "application/vnd.1000minds.decision-model+xml", "3dml": "text/vnd.in3d.3dml", "3ds": "image/x-3ds", "3g2": "video/3gpp2", "3gp": "video/3gpp", "3gpp": "video/3gpp", "3mf": "model/3mf", "7z": "application/x-7z-compressed", "aab": "application/x-authorware-bin", "aac": "audio/x-aac", "aam": "application/x-authorware-map", "aas": "application/x-authorware-seg", "abw": "application/x-abiword", "ac": "application/vnd.nokia.n-gage.ac+xml", "acc": "application/vnd.americandynamics.acc", "ace": "application/x-ace-compressed", "acu": "application/vnd.acucobol", "acutc": "application/vnd.acucorp", "adp": "audio/adpcm", "aep": "application/vnd.audiograph", "afm": "application/x-font-type1", "afp": "application/vnd.ibm.modcap", "age": "application/vnd.age", "ahead": "application/vnd.ahead.space", "ai": "application/postscript", "aif": "audio/x-aiff", "aifc": "audio/x-aiff", "aiff": "audio/x-aiff", "air": "application/vnd.adobe.air-application-installer-package+zip", "ait": "application/vnd.dvb.ait", "ami": "application/vnd.amiga.ami", "amr": "audio/amr", "apk": "application/vnd.android.package-archive", "apng": "image/apng", "appcache": "text/cache-manifest", "application": "application/x-ms-application", "apr": "application/vnd.lotus-approach", "arc": "application/x-freearc", "arj": "application/x-arj", "asc": "application/pgp-signature", "asf": "video/x-ms-asf", "asm": "text/x-asm", "aso": "application/vnd.accpac.simply.aso", "asx": "video/x-ms-asf", "atc": "application/vnd.acucorp", "atom": "application/atom+xml", "atomcat": "application/atomcat+xml", "atomdeleted": "application/atomdeleted+xml", "atomsvc": "application/atomsvc+xml", "atx": "application/vnd.antix.game-component", "au": "audio/basic", "avci": "image/avci", "avcs": "image/avcs", "avi": "video/x-msvideo", "avif": "image/avif", "aw": "application/applixware", "azf": "application/vnd.airzip.filesecure.azf", "azs": "application/vnd.airzip.filesecure.azs", "azv": "image/vnd.airzip.accelerator.azv", "azw": "application/vnd.amazon.ebook", "b16": "image/vnd.pco.b16", "bat": "application/x-msdownload", "bcpio": "application/x-bcpio", "bdf": "application/x-font-bdf", "bdm": "application/vnd.syncml.dm+wbxml", "bdoc": "application/x-bdoc", "bed": "application/vnd.realvnc.bed", "bh2": "application/vnd.fujitsu.oasysprs", "bin": "application/octet-stream", "blb": "application/x-blorb", "blorb": "application/x-blorb", "bmi": "application/vnd.bmi", "bmml": "application/vnd.balsamiq.bmml+xml", "bmp": "image/x-ms-bmp", "book": "application/vnd.framemaker", "box": "application/vnd.previewsystems.box", "boz": "application/x-bzip2", "bpk": "application/octet-stream", "bsp": "model/vnd.valve.source.compiled-map", "btif": "image/prs.btif", "buffer": "application/octet-stream", "bz": "application/x-bzip", "bz2": "application/x-bzip2", "c": "text/x-c", "c11amc": "application/vnd.cluetrust.cartomobile-config", "c11amz": "application/vnd.cluetrust.cartomobile-config-pkg", "c4d": "application/vnd.clonk.c4group", "c4f": "application/vnd.clonk.c4group", "c4g": "application/vnd.clonk.c4group", "c4p": "application/vnd.clonk.c4group", "c4u": "application/vnd.clonk.c4group", "cab": "application/vnd.ms-cab-compressed", "caf": "audio/x-caf", "cap": "application/vnd.tcpdump.pcap", "car": "application/vnd.curl.car", "cat": "application/vnd.ms-pki.seccat", "cb7": "application/x-cbr", "cba": "application/x-cbr", "cbr": "application/x-cbr", "cbt": "application/x-cbr", "cbz": "application/x-cbr", "cc": "text/x-c", "cco": "application/x-cocoa", "cct": "application/x-director", "ccxml": "application/ccxml+xml", "cdbcmsg": "application/vnd.contact.cmsg", "cdf": "application/x-netcdf", "cdfx": "application/cdfx+xml", "cdkey": "application/vnd.mediastation.cdkey", "cdmia": "application/cdmi-capability", "cdmic": "application/cdmi-container", "cdmid": "application/cdmi-domain", "cdmio": "application/cdmi-object", "cdmiq": "application/cdmi-queue", "cdx": "chemical/x-cdx", "cdxml": "application/vnd.chemdraw+xml", "cdy": "application/vnd.cinderella", "cer": "application/pkix-cert", "cfs": "application/x-cfs-compressed", "cgm": "image/cgm", "chat": "application/x-chat", "chm": "application/vnd.ms-htmlhelp", "chrt": "application/vnd.kde.kchart", "cif": "chemical/x-cif", "cii": "application/vnd.anser-web-certificate-issue-initiation", "cil": "application/vnd.ms-artgalry", "cjs": "application/node", "cla": "application/vnd.claymore", "class": "application/java-vm", "clkk": "application/vnd.crick.clicker.keyboard", "clkp": "application/vnd.crick.clicker.palette", "clkt": "application/vnd.crick.clicker.template", "clkw": "application/vnd.crick.clicker.wordbank", "clkx": "application/vnd.crick.clicker", "clp": "application/x-msclip", "cmc": "application/vnd.cosmocaller", "cmdf": "chemical/x-cmdf", "cml": "chemical/x-cml", "cmp": "application/vnd.yellowriver-custom-menu", "cmx": "image/x-cmx", "cod": "application/vnd.rim.cod", "coffee": "text/coffeescript", "com": "application/x-msdownload", "conf": "text/plain", "cpio": "application/x-cpio", "cpl": "application/cpl+xml", "cpp": "text/x-c", "cpt": "application/mac-compactpro", "crd": "application/x-mscardfile", "crl": "application/pkix-crl", "crt": "application/x-x509-ca-cert", "crx": "application/x-chrome-extension", "cryptonote": "application/vnd.rig.cryptonote", "csh": "application/x-csh", "csl": "application/vnd.citationstyles.style+xml", "csml": "chemical/x-csml", "csp": "application/vnd.commonspace", "css": "text/css", "cst": "application/x-director", "csv": "text/csv", "cu": "application/cu-seeme", "curl": "text/vnd.curl", "cww": "application/prs.cww", "cxt": "application/x-director", "cxx": "text/x-c", "dae": "model/vnd.collada+xml", "daf": "application/vnd.mobius.daf", "dart": "application/vnd.dart", "dataless": "application/vnd.fdsn.seed", "davmount": "application/davmount+xml", "dbf": "application/vnd.dbf", "dbk": "application/docbook+xml", "dcr": "application/x-director", "dcurl": "text/vnd.curl.dcurl", "dd2": "application/vnd.oma.dd2+xml", "ddd": "application/vnd.fujixerox.ddd", "ddf": "application/vnd.syncml.dmddf+xml", "dds": "image/vnd.ms-dds", "deb": "application/x-debian-package", "def": "text/plain", "deploy": "application/octet-stream", "der": "application/x-x509-ca-cert", "dfac": "application/vnd.dreamfactory", "dgc": "application/x-dgc-compressed", "dic": "text/x-c", "dir": "application/x-director", "dis": "application/vnd.mobius.dis", "disposition-notification": "message/disposition-notification", "dist": "application/octet-stream", "distz": "application/octet-stream", "djv": "image/vnd.djvu", "djvu": "image/vnd.djvu", "dll": "application/x-msdownload", "dmg": "application/x-apple-diskimage", "dmp": "application/vnd.tcpdump.pcap", "dms": "application/octet-stream", "dna": "application/vnd.dna", "doc": "application/msword", "docm": "application/vnd.ms-word.document.macroenabled.12", "docx": "application/vnd.openxmlformats-officedocument.wordprocessingml.document", "dot": "application/msword", "dotm": "application/vnd.ms-word.template.macroenabled.12", "dotx": "application/vnd.openxmlformats-officedocument.wordprocessingml.template", "dp": "application/vnd.osgi.dp", "dpg": "application/vnd.dpgraph", "dra": "audio/vnd.dra", "drle": "image/dicom-rle", "dsc": "text/prs.lines.tag", "dssc": "application/dssc+der", "dtb": "application/x-dtbook+xml", "dtd": "application/xml-dtd", "dts": "audio/vnd.dts", "dtshd": "audio/vnd.dts.hd", "dump": "application/octet-stream", "dvb": "video/vnd.dvb.file", "dvi": "application/x-dvi", "dwd": "application/atsc-dwd+xml", "dwf": "model/vnd.dwf", "dwg": "image/vnd.dwg", "dxf": "image/vnd.dxf", "dxp": "application/vnd.spotfire.dxp", "dxr": "application/x-director", "ear": "application/java-archive", "ecelp4800": "audio/vnd.nuera.ecelp4800", "ecelp7470": "audio/vnd.nuera.ecelp7470", "ecelp9600": "audio/vnd.nuera.ecelp9600", "ecma": "application/ecmascript", "edm": "application/vnd.novadigm.edm", "edx": "application/vnd.novadigm.edx", "efif": "application/vnd.picsel", "ei6": "application/vnd.pg.osasli", "elc": "application/octet-stream", "emf": "image/emf", "eml": "message/rfc822", "emma": "application/emma+xml", "emotionml": "application/emotionml+xml", "emz": "application/x-msmetafile", "eol": "audio/vnd.digital-winds", "eot": "application/vnd.ms-fontobject", "eps": "application/postscript", "epub": "application/epub+zip", "es": "application/ecmascript", "es3": "application/vnd.eszigno3+xml", "esa": "application/vnd.osgi.subsystem", "esf": "application/vnd.epson.esf", "et3": "application/vnd.eszigno3+xml", "etx": "text/x-setext", "eva": "application/x-eva", "evy": "application/x-envoy", "exe": "application/x-msdownload", "exi": "application/exi", "exp": "application/express", "exr": "image/aces", "ext": "application/vnd.novadigm.ext", "ez": "application/andrew-inset", "ez2": "application/vnd.ezpix-album", "ez3": "application/vnd.ezpix-package", "f": "text/x-fortran", "f4v": "video/x-f4v", "f77": "text/x-fortran", "f90": "text/x-fortran", "fbs": "image/vnd.fastbidsheet", "fcdt": "application/vnd.adobe.formscentral.fcdt", "fcs": "application/vnd.isac.fcs", "fdf": "application/vnd.fdf", "fdt": "application/fdt+xml", "fe_launch": "application/vnd.denovo.fcselayout-link", "fg5": "application/vnd.fujitsu.oasysgp", "fgd": "application/x-director", "fh": "image/x-freehand", "fh4": "image/x-freehand", "fh5": "image/x-freehand", "fh7": "image/x-freehand", "fhc": "image/x-freehand", "fig": "application/x-xfig", "fits": "image/fits", "flac": "audio/x-flac", "fli": "video/x-fli", "flo": "application/vnd.micrografx.flo", "flv": "video/x-flv", "flw": "application/vnd.kde.kivio", "flx": "text/vnd.fmi.flexstor", "fly": "text/vnd.fly", "fm": "application/vnd.framemaker", "fnc": "application/vnd.frogans.fnc", "fo": "application/vnd.software602.filler.form+xml", "for": "text/x-fortran", "fpx": "image/vnd.fpx", "frame": "application/vnd.framemaker", "fsc": "application/vnd.fsc.weblaunch", "fst": "image/vnd.fst", "ftc": "application/vnd.fluxtime.clip", "fti": "application/vnd.anser-web-funds-transfer-initiation", "fvt": "video/vnd.fvt", "fxp": "application/vnd.adobe.fxp", "fxpl": "application/vnd.adobe.fxp", "fzs": "application/vnd.fuzzysheet", "g2w": "application/vnd.geoplan", "g3": "image/g3fax", "g3w": "application/vnd.geospace", "gac": "application/vnd.groove-account", "gam": "application/x-tads", "gbr": "application/rpki-ghostbusters", "gca": "application/x-gca-compressed", "gdl": "model/vnd.gdl", "gdoc": "application/vnd.google-apps.document", "ged": "text/vnd.familysearch.gedcom", "geo": "application/vnd.dynageo", "geojson": "application/geo+json", "gex": "application/vnd.geometry-explorer", "ggb": "application/vnd.geogebra.file", "ggt": "application/vnd.geogebra.tool", "ghf": "application/vnd.groove-help", "gif": "image/gif", "gim": "application/vnd.groove-identity-message", "glb": "model/gltf-binary", "gltf": "model/gltf+json", "gml": "application/gml+xml", "gmx": "application/vnd.gmx", "gnumeric": "application/x-gnumeric", "gph": "application/vnd.flographit", "gpx": "application/gpx+xml", "gqf": "application/vnd.grafeq", "gqs": "application/vnd.grafeq", "gram": "application/srgs", "gramps": "application/x-gramps-xml", "gre": "application/vnd.geometry-explorer", "grv": "application/vnd.groove-injector", "grxml": "application/srgs+xml", "gsf": "application/x-font-ghostscript", "gsheet": "application/vnd.google-apps.spreadsheet", "gslides": "application/vnd.google-apps.presentation", "gtar": "application/x-gtar", "gtm": "application/vnd.groove-tool-message", "gtw": "model/vnd.gtw", "gv": "text/vnd.graphviz", "gxf": "application/gxf", "gxt": "application/vnd.geonext", "gz": "application/gzip", "h": "text/x-c", "h261": "video/h261", "h263": "video/h263", "h264": "video/h264", "hal": "application/vnd.hal+xml", "hbci": "application/vnd.hbci", "hbs": "text/x-handlebars-template", "hdd": "application/x-virtualbox-hdd", "hdf": "application/x-hdf", "heic": "image/heic", "heics": "image/heic-sequence", "heif": "image/heif", "heifs": "image/heif-sequence", "hej2": "image/hej2k", "held": "application/atsc-held+xml", "hh": "text/x-c", "hjson": "application/hjson", "hlp": "application/winhlp", "hpgl": "application/vnd.hp-hpgl", "hpid": "application/vnd.hp-hpid", "hps": "application/vnd.hp-hps", "hqx": "application/mac-binhex40", "hsj2": "image/hsj2", "htc": "text/x-component", "htke": "application/vnd.kenameaapp", "htm": "text/html", "html": "text/html", "hvd": "application/vnd.yamaha.hv-dic", "hvp": "application/vnd.yamaha.hv-voice", "hvs": "application/vnd.yamaha.hv-script", "i2g": "application/vnd.intergeo", "icc": "application/vnd.iccprofile", "ice": "x-conference/x-cooltalk", "icm": "application/vnd.iccprofile", "ico": "image/x-icon", "ics": "text/calendar", "ief": "image/ief", "ifb": "text/calendar", "ifm": "application/vnd.shana.informed.formdata", "iges": "model/iges", "igl": "application/vnd.igloader", "igm": "application/vnd.insors.igm", "igs": "model/iges", "igx": "application/vnd.micrografx.igx", "iif": "application/vnd.shana.informed.interchange", "img": "application/octet-stream", "imp": "application/vnd.accpac.simply.imp", "ims": "application/vnd.ms-ims", "in": "text/plain", "ini": "text/plain", "ink": "application/inkml+xml", "inkml": "application/inkml+xml", "install": "application/x-install-instructions", "iota": "application/vnd.astraea-software.iota", "ipfix": "application/ipfix", "ipk": "application/vnd.shana.informed.package", "irm": "application/vnd.ibm.rights-management", "irp": "application/vnd.irepository.package+xml", "iso": "application/x-iso9660-image", "itp": "application/vnd.shana.informed.formtemplate", "its": "application/its+xml", "ivp": "application/vnd.immervision-ivp", "ivu": "application/vnd.immervision-ivu", "jad": "text/vnd.sun.j2me.app-descriptor", "jade": "text/jade", "jam": "application/vnd.jam", "jar": "application/java-archive", "jardiff": "application/x-java-archive-diff", "java": "text/x-java-source", "jhc": "image/jphc", "jisp": "application/vnd.jisp", "jls": "image/jls", "jlt": "application/vnd.hp-jlyt", "jng": "image/x-jng", "jnlp": "application/x-java-jnlp-file", "joda": "application/vnd.joost.joda-archive", "jp2": "image/jp2", "jpe": "image/jpeg", "jpeg": "image/jpeg", "jpf": "image/jpx", "jpg": "image/jpeg", "jpg2": "image/jp2", "jpgm": "video/jpm", "jpgv": "video/jpeg", "jph": "image/jph", "jpm": "video/jpm", "jpx": "image/jpx", "js": "application/javascript", "json": "application/json", "json5": "application/json5", "jsonld": "application/ld+json", "jsonml": "application/jsonml+json", "jsx": "text/jsx", "jxr": "image/jxr", "jxra": "image/jxra", "jxrs": "image/jxrs", "jxs": "image/jxs", "jxsc": "image/jxsc", "jxsi": "image/jxsi", "jxss": "image/jxss", "kar": "audio/midi", "karbon": "application/vnd.kde.karbon", "kdbx": "application/x-keepass2", "key": "application/x-iwork-keynote-sffkey", "kfo": "application/vnd.kde.kformula", "kia": "application/vnd.kidspiration", "kml": "application/vnd.google-earth.kml+xml", "kmz": "application/vnd.google-earth.kmz", "kne": "application/vnd.kinar", "knp": "application/vnd.kinar", "kon": "application/vnd.kde.kontour", "kpr": "application/vnd.kde.kpresenter", "kpt": "application/vnd.kde.kpresenter", "kpxx": "application/vnd.ds-keypoint", "ksp": "application/vnd.kde.kspread", "ktr": "application/vnd.kahootz", "ktx": "image/ktx", "ktx2": "image/ktx2", "ktz": "application/vnd.kahootz", "kwd": "application/vnd.kde.kword", "kwt": "application/vnd.kde.kword", "lasxml": "application/vnd.las.las+xml", "latex": "application/x-latex", "lbd": "application/vnd.llamagraphics.life-balance.desktop", "lbe": "application/vnd.llamagraphics.life-balance.exchange+xml", "les": "application/vnd.hhe.lesson-player", "less": "text/less", "lgr": "application/lgr+xml", "lha": "application/x-lzh-compressed", "link66": "application/vnd.route66.link66+xml", "list": "text/plain", "list3820": "application/vnd.ibm.modcap", "listafp": "application/vnd.ibm.modcap", "litcoffee": "text/coffeescript", "lnk": "application/x-ms-shortcut", "log": "text/plain", "lostxml": "application/lost+xml", "lrf": "application/octet-stream", "lrm": "application/vnd.ms-lrm", "ltf": "application/vnd.frogans.ltf", "lua": "text/x-lua", "luac": "application/x-lua-bytecode", "lvp": "audio/vnd.lucent.voice", "lwp": "application/vnd.lotus-wordpro", "lzh": "application/x-lzh-compressed", "m13": "application/x-msmediaview", "m14": "application/x-msmediaview", "m1v": "video/mpeg", "m21": "application/mp21", "m2a": "audio/mpeg", "m2v": "video/mpeg", "m3a": "audio/mpeg", "m3u": "audio/x-mpegurl", "m3u8": "application/vnd.apple.mpegurl", "m4a": "audio/x-m4a", "m4p": "application/mp4", "m4s": "video/iso.segment", "m4u": "video/vnd.mpegurl", "m4v": "video/x-m4v", "ma": "application/mathematica", "mads": "application/mads+xml", "maei": "application/mmt-aei+xml", "mag": "application/vnd.ecowin.chart", "maker": "application/vnd.framemaker", "man": "text/troff", "manifest": "text/cache-manifest", "map": "application/json", "mar": "application/octet-stream", "markdown": "text/markdown", "mathml": "application/mathml+xml", "mb": "application/mathematica", "mbk": "application/vnd.mobius.mbk", "mbox": "application/mbox", "mc1": "application/vnd.medcalcdata", "mcd": "application/vnd.mcd", "mcurl": "text/vnd.curl.mcurl", "md": "text/markdown", "mdb": "application/x-msaccess", "mdi": "image/vnd.ms-modi", "mdx": "text/mdx", "me": "text/troff", "mesh": "model/mesh", "meta4": "application/metalink4+xml", "metalink": "application/metalink+xml", "mets": "application/mets+xml", "mfm": "application/vnd.mfmp", "mft": "application/rpki-manifest", "mgp": "application/vnd.osgeo.mapguide.package", "mgz": "application/vnd.proteus.magazine", "mid": "audio/midi", "midi": "audio/midi", "mie": "application/x-mie", "mif": "application/vnd.mif", "mime": "message/rfc822", "mj2": "video/mj2", "mjp2": "video/mj2", "mjs": "application/javascript", "mk3d": "video/x-matroska", "mka": "audio/x-matroska", "mkd": "text/x-markdown", "mks": "video/x-matroska", "mkv": "video/x-matroska", "mlp": "application/vnd.dolby.mlp", "mmd": "application/vnd.chipnuts.karaoke-mmd", "mmf": "application/vnd.smaf", "mml": "text/mathml", "mmr": "image/vnd.fujixerox.edmics-mmr", "mng": "video/x-mng", "mny": "application/x-msmoney", "mobi": "application/x-mobipocket-ebook", "mods": "application/mods+xml", "mov": "video/quicktime", "movie": "video/x-sgi-movie", "mp2": "audio/mpeg", "mp21": "application/mp21", "mp2a": "audio/mpeg", "mp3": "audio/mpeg", "mp4": "video/mp4", "mp4a": "audio/mp4", "mp4s": "application/mp4", "mp4v": "video/mp4", "mpc": "application/vnd.mophun.certificate", "mpd": "application/dash+xml", "mpe": "video/mpeg", "mpeg": "video/mpeg", "mpf": "application/media-policy-dataset+xml", "mpg": "video/mpeg", "mpg4": "video/mp4", "mpga": "audio/mpeg", "mpkg": "application/vnd.apple.installer+xml", "mpm": "application/vnd.blueice.multipass", "mpn": "application/vnd.mophun.application", "mpp": "application/vnd.ms-project", "mpt": "application/vnd.ms-project", "mpy": "application/vnd.ibm.minipay", "mqy": "application/vnd.mobius.mqy", "mrc": "application/marc", "mrcx": "application/marcxml+xml", "ms": "text/troff", "mscml": "application/mediaservercontrol+xml", "mseed": "application/vnd.fdsn.mseed", "mseq": "application/vnd.mseq", "msf": "application/vnd.epson.msf", "msg": "application/vnd.ms-outlook", "msh": "model/mesh", "msi": "application/x-msdownload", "msl": "application/vnd.mobius.msl", "msm": "application/octet-stream", "msp": "application/octet-stream", "msty": "application/vnd.muvee.style", "mtl": "model/mtl", "mts": "model/vnd.mts", "mus": "application/vnd.musician", "musd": "application/mmt-usd+xml", "musicxml": "application/vnd.recordare.musicxml+xml", "mvb": "application/x-msmediaview", "mvt": "application/vnd.mapbox-vector-tile", "mwf": "application/vnd.mfer", "mxf": "application/mxf", "mxl": "application/vnd.recordare.musicxml", "mxmf": "audio/mobile-xmf", "mxml": "application/xv+xml", "mxs": "application/vnd.triscape.mxs", "mxu": "video/vnd.mpegurl", "n-gage": "application/vnd.nokia.n-gage.symbian.install", "n3": "text/n3", "nb": "application/mathematica", "nbp": "application/vnd.wolfram.player", "nc": "application/x-netcdf", "ncx": "application/x-dtbncx+xml", "nfo": "text/x-nfo", "ngdat": "application/vnd.nokia.n-gage.data", "nitf": "application/vnd.nitf", "nlu": "application/vnd.neurolanguage.nlu", "nml": "application/vnd.enliven", "nnd": "application/vnd.noblenet-directory", "nns": "application/vnd.noblenet-sealer", "nnw": "application/vnd.noblenet-web", "npx": "image/vnd.net-fpx", "nq": "application/n-quads", "nsc": "application/x-conference", "nsf": "application/vnd.lotus-notes", "nt": "application/n-triples", "ntf": "application/vnd.nitf", "numbers": "application/x-iwork-numbers-sffnumbers", "nzb": "application/x-nzb", "oa2": "application/vnd.fujitsu.oasys2", "oa3": "application/vnd.fujitsu.oasys3", "oas": "application/vnd.fujitsu.oasys", "obd": "application/x-msbinder", "obgx": "application/vnd.openblox.game+xml", "obj": "model/obj", "oda": "application/oda", "odb": "application/vnd.oasis.opendocument.database", "odc": "application/vnd.oasis.opendocument.chart", "odf": "application/vnd.oasis.opendocument.formula", "odft": "application/vnd.oasis.opendocument.formula-template", "odg": "application/vnd.oasis.opendocument.graphics", "odi": "application/vnd.oasis.opendocument.image", "odm": "application/vnd.oasis.opendocument.text-master", "odp": "application/vnd.oasis.opendocument.presentation", "ods": "application/vnd.oasis.opendocument.spreadsheet", "odt": "application/vnd.oasis.opendocument.text", "oga": "audio/ogg", "ogex": "model/vnd.opengex", "ogg": "audio/ogg", "ogv": "video/ogg", "ogx": "application/ogg", "omdoc": "application/omdoc+xml", "onepkg": "application/onenote", "onetmp": "application/onenote", "onetoc": "application/onenote", "onetoc2": "application/onenote", "opf": "application/oebps-package+xml", "opml": "text/x-opml", "oprc": "application/vnd.palm", "opus": "audio/ogg", "org": "text/x-org", "osf": "application/vnd.yamaha.openscoreformat", "osfpvg": "application/vnd.yamaha.openscoreformat.osfpvg+xml", "osm": "application/vnd.openstreetmap.data+xml", "otc": "application/vnd.oasis.opendocument.chart-template", "otf": "font/otf", "otg": "application/vnd.oasis.opendocument.graphics-template", "oth": "application/vnd.oasis.opendocument.text-web", "oti": "application/vnd.oasis.opendocument.image-template", "otp": "application/vnd.oasis.opendocument.presentation-template", "ots": "application/vnd.oasis.opendocument.spreadsheet-template", "ott": "application/vnd.oasis.opendocument.text-template", "ova": "application/x-virtualbox-ova", "ovf": "application/x-virtualbox-ovf", "owl": "application/rdf+xml", "oxps": "application/oxps", "oxt": "application/vnd.openofficeorg.extension", "p": "text/x-pascal", "p10": "application/pkcs10", "p12": "application/x-pkcs12", "p7b": "application/x-pkcs7-certificates", "p7c": "application/pkcs7-mime", "p7m": "application/pkcs7-mime", "p7r": "application/x-pkcs7-certreqresp", "p7s": "application/pkcs7-signature", "p8": "application/pkcs8", "pac": "application/x-ns-proxy-autoconfig", "pages": "application/x-iwork-pages-sffpages", "pas": "text/x-pascal", "paw": "application/vnd.pawaafile", "pbd": "application/vnd.powerbuilder6", "pbm": "image/x-portable-bitmap", "pcap": "application/vnd.tcpdump.pcap", "pcf": "application/x-font-pcf", "pcl": "application/vnd.hp-pcl", "pclxl": "application/vnd.hp-pclxl", "pct": "image/x-pict", "pcurl": "application/vnd.curl.pcurl", "pcx": "image/x-pcx", "pdb": "application/x-pilot", "pde": "text/x-processing", "pdf": "application/pdf", "pem": "application/x-x509-ca-cert", "pfa": "application/x-font-type1", "pfb": "application/x-font-type1", "pfm": "application/x-font-type1", "pfr": "application/font-tdpfr", "pfx": "application/x-pkcs12", "pgm": "image/x-portable-graymap", "pgn": "application/x-chess-pgn", "pgp": "application/pgp-encrypted", "php": "application/x-httpd-php", "pic": "image/x-pict", "pkg": "application/octet-stream", "pki": "application/pkixcmp", "pkipath": "application/pkix-pkipath", "pkpass": "application/vnd.apple.pkpass", "pl": "application/x-perl", "plb": "application/vnd.3gpp.pic-bw-large", "plc": "application/vnd.mobius.plc", "plf": "application/vnd.pocketlearn", "pls": "application/pls+xml", "pm": "application/x-perl", "pml": "application/vnd.ctc-posml", "png": "image/png", "pnm": "image/x-portable-anymap", "portpkg": "application/vnd.macports.portpkg", "pot": "application/vnd.ms-powerpoint", "potm": "application/vnd.ms-powerpoint.template.macroenabled.12", "potx": "application/vnd.openxmlformats-officedocument.presentationml.template", "ppam": "application/vnd.ms-powerpoint.addin.macroenabled.12", "ppd": "application/vnd.cups-ppd", "ppm": "image/x-portable-pixmap", "pps": "application/vnd.ms-powerpoint", "ppsm": "application/vnd.ms-powerpoint.slideshow.macroenabled.12", "ppsx": "application/vnd.openxmlformats-officedocument.presentationml.slideshow", "ppt": "application/vnd.ms-powerpoint", "pptm": "application/vnd.ms-powerpoint.presentation.macroenabled.12", "pptx": "application/vnd.openxmlformats-officedocument.presentationml.presentation", "pqa": "application/vnd.palm", "prc": "application/x-pilot", "pre": "application/vnd.lotus-freelance", "prf": "application/pics-rules", "provx": "application/provenance+xml", "ps": "application/postscript", "psb": "application/vnd.3gpp.pic-bw-small", "psd": "image/vnd.adobe.photoshop", "psf": "application/x-font-linux-psf", "pskcxml": "application/pskc+xml", "pti": "image/prs.pti", "ptid": "application/vnd.pvi.ptid1", "pub": "application/x-mspublisher", "pvb": "application/vnd.3gpp.pic-bw-var", "pwn": "application/vnd.3m.post-it-notes", "pya": "audio/vnd.ms-playready.media.pya", "pyv": "video/vnd.ms-playready.media.pyv", "qam": "application/vnd.epson.quickanime", "qbo": "application/vnd.intu.qbo", "qfx": "application/vnd.intu.qfx", "qps": "application/vnd.publishare-delta-tree", "qt": "video/quicktime", "qwd": "application/vnd.quark.quarkxpress", "qwt": "application/vnd.quark.quarkxpress", "qxb": "application/vnd.quark.quarkxpress", "qxd": "application/vnd.quark.quarkxpress", "qxl": "application/vnd.quark.quarkxpress", "qxt": "application/vnd.quark.quarkxpress", "ra": "audio/x-realaudio", "ram": "audio/x-pn-realaudio", "raml": "application/raml+yaml", "rapd": "application/route-apd+xml", "rar": "application/x-rar-compressed", "ras": "image/x-cmu-raster", "rcprofile": "application/vnd.ipunplugged.rcprofile", "rdf": "application/rdf+xml", "rdz": "application/vnd.data-vision.rdz", "relo": "application/p2p-overlay+xml", "rep": "application/vnd.businessobjects", "res": "application/x-dtbresource+xml", "rgb": "image/x-rgb", "rif": "application/reginfo+xml", "rip": "audio/vnd.rip", "ris": "application/x-research-info-systems", "rl": "application/resource-lists+xml", "rlc": "image/vnd.fujixerox.edmics-rlc", "rld": "application/resource-lists-diff+xml", "rm": "application/vnd.rn-realmedia", "rmi": "audio/midi", "rmp": "audio/x-pn-realaudio-plugin", "rms": "application/vnd.jcp.javame.midlet-rms", "rmvb": "application/vnd.rn-realmedia-vbr", "rnc": "application/relax-ng-compact-syntax", "rng": "application/xml", "roa": "application/rpki-roa", "roff": "text/troff", "rp9": "application/vnd.cloanto.rp9", "rpm": "application/x-redhat-package-manager", "rpss": "application/vnd.nokia.radio-presets", "rpst": "application/vnd.nokia.radio-preset", "rq": "application/sparql-query", "rs": "application/rls-services+xml", "rsat": "application/atsc-rsat+xml", "rsd": "application/rsd+xml", "rsheet": "application/urc-ressheet+xml", "rss": "application/rss+xml", "rtf": "text/rtf", "rtx": "text/richtext", "run": "application/x-makeself", "rusd": "application/route-usd+xml", "s": "text/x-asm", "s3m": "audio/s3m", "saf": "application/vnd.yamaha.smaf-audio", "sass": "text/x-sass", "sbml": "application/sbml+xml", "sc": "application/vnd.ibm.secure-container", "scd": "application/x-msschedule", "scm": "application/vnd.lotus-screencam", "scq": "application/scvp-cv-request", "scs": "application/scvp-cv-response", "scss": "text/x-scss", "scurl": "text/vnd.curl.scurl", "sda": "application/vnd.stardivision.draw", "sdc": "application/vnd.stardivision.calc", "sdd": "application/vnd.stardivision.impress", "sdkd": "application/vnd.solent.sdkm+xml", "sdkm": "application/vnd.solent.sdkm+xml", "sdp": "application/sdp", "sdw": "application/vnd.stardivision.writer", "sea": "application/x-sea", "see": "application/vnd.seemail", "seed": "application/vnd.fdsn.seed", "sema": "application/vnd.sema", "semd": "application/vnd.semd", "semf": "application/vnd.semf", "senmlx": "application/senml+xml", "sensmlx": "application/sensml+xml", "ser": "application/java-serialized-object", "setpay": "application/set-payment-initiation", "setreg": "application/set-registration-initiation", "sfd-hdstx": "application/vnd.hydrostatix.sof-data", "sfs": "application/vnd.spotfire.sfs", "sfv": "text/x-sfv", "sgi": "image/sgi", "sgl": "application/vnd.stardivision.writer-global", "sgm": "text/sgml", "sgml": "text/sgml", "sh": "application/x-sh", "shar": "application/x-shar", "shex": "text/shex", "shf": "application/shf+xml", "shtml": "text/html", "sid": "image/x-mrsid-image", "sieve": "application/sieve", "sig": "application/pgp-signature", "sil": "audio/silk", "silo": "model/mesh", "sis": "application/vnd.symbian.install", "sisx": "application/vnd.symbian.install", "sit": "application/x-stuffit", "sitx": "application/x-stuffitx", "siv": "application/sieve", "skd": "application/vnd.koan", "skm": "application/vnd.koan", "skp": "application/vnd.koan", "skt": "application/vnd.koan", "sldm": "application/vnd.ms-powerpoint.slide.macroenabled.12", "sldx": "application/vnd.openxmlformats-officedocument.presentationml.slide", "slim": "text/slim", "slm": "text/slim", "sls": "application/route-s-tsid+xml", "slt": "application/vnd.epson.salt", "sm": "application/vnd.stepmania.stepchart", "smf": "application/vnd.stardivision.math", "smi": "application/smil+xml", "smil": "application/smil+xml", "smv": "video/x-smv", "smzip": "application/vnd.stepmania.package", "snd": "audio/basic", "snf": "application/x-font-snf", "so": "application/octet-stream", "spc": "application/x-pkcs7-certificates", "spdx": "text/spdx", "spf": "application/vnd.yamaha.smaf-phrase", "spl": "application/x-futuresplash", "spot": "text/vnd.in3d.spot", "spp": "application/scvp-vp-response", "spq": "application/scvp-vp-request", "spx": "audio/ogg", "sql": "application/x-sql", "src": "application/x-wais-source", "srt": "application/x-subrip", "sru": "application/sru+xml", "srx": "application/sparql-results+xml", "ssdl": "application/ssdl+xml", "sse": "application/vnd.kodak-descriptor", "ssf": "application/vnd.epson.ssf", "ssml": "application/ssml+xml", "st": "application/vnd.sailingtracker.track", "stc": "application/vnd.sun.xml.calc.template", "std": "application/vnd.sun.xml.draw.template", "stf": "application/vnd.wt.stf", "sti": "application/vnd.sun.xml.impress.template", "stk": "application/hyperstudio", "stl": "model/stl", "stpx": "model/step+xml", "stpxz": "model/step-xml+zip", "stpz": "model/step+zip", "str": "application/vnd.pg.format", "stw": "application/vnd.sun.xml.writer.template", "styl": "text/stylus", "stylus": "text/stylus", "sub": "text/vnd.dvb.subtitle", "sus": "application/vnd.sus-calendar", "susp": "application/vnd.sus-calendar", "sv4cpio": "application/x-sv4cpio", "sv4crc": "application/x-sv4crc", "svc": "application/vnd.dvb.service", "svd": "application/vnd.svd", "svg": "image/svg+xml", "svgz": "image/svg+xml", "swa": "application/x-director", "swf": "application/x-shockwave-flash", "swi": "application/vnd.aristanetworks.swi", "swidtag": "application/swid+xml", "sxc": "application/vnd.sun.xml.calc", "sxd": "application/vnd.sun.xml.draw", "sxg": "application/vnd.sun.xml.writer.global", "sxi": "application/vnd.sun.xml.impress", "sxm": "application/vnd.sun.xml.math", "sxw": "application/vnd.sun.xml.writer", "t": "text/troff", "t3": "application/x-t3vm-image", "t38": "image/t38", "taglet": "application/vnd.mynfc", "tao": "application/vnd.tao.intent-module-archive", "tap": "image/vnd.tencent.tap", "tar": "application/x-tar", "tcap": "application/vnd.3gpp2.tcap", "tcl": "application/x-tcl", "td": "application/urc-targetdesc+xml", "teacher": "application/vnd.smart.teacher", "tei": "application/tei+xml", "teicorpus": "application/tei+xml", "tex": "application/x-tex", "texi": "application/x-texinfo", "texinfo": "application/x-texinfo", "text": "text/plain", "tfi": "application/thraud+xml", "tfm": "application/x-tex-tfm", "tfx": "image/tiff-fx", "tga": "image/x-tga", "thmx": "application/vnd.ms-officetheme", "tif": "image/tiff", "tiff": "image/tiff", "tk": "application/x-tcl", "tmo": "application/vnd.tmobile-livetv", "toml": "application/toml", "torrent": "application/x-bittorrent", "tpl": "application/vnd.groove-tool-template", "tpt": "application/vnd.trid.tpt", "tr": "text/troff", "tra": "application/vnd.trueapp", "trig": "application/trig", "trm": "application/x-msterminal", "ts": "video/mp2t", "tsd": "application/timestamped-data", "tsv": "text/tab-separated-values", "ttc": "font/collection", "ttf": "font/ttf", "ttl": "text/turtle", "ttml": "application/ttml+xml", "twd": "application/vnd.simtech-mindmapper", "twds": "application/vnd.simtech-mindmapper", "txd": "application/vnd.genomatix.tuxedo", "txf": "application/vnd.mobius.txf", "txt": "text/plain", "u32": "application/x-authorware-bin", "u8dsn": "message/global-delivery-status", "u8hdr": "message/global-headers", "u8mdn": "message/global-disposition-notification", "u8msg": "message/global", "ubj": "application/ubjson", "udeb": "application/x-debian-package", "ufd": "application/vnd.ufdl", "ufdl": "application/vnd.ufdl", "ulx": "application/x-glulx", "umj": "application/vnd.umajin", "unityweb": "application/vnd.unity", "uoml": "application/vnd.uoml+xml", "uri": "text/uri-list", "uris": "text/uri-list", "urls": "text/uri-list", "usdz": "model/vnd.usdz+zip", "ustar": "application/x-ustar", "utz": "application/vnd.uiq.theme", "uu": "text/x-uuencode", "uva": "audio/vnd.dece.audio", "uvd": "application/vnd.dece.data", "uvf": "application/vnd.dece.data", "uvg": "image/vnd.dece.graphic", "uvh": "video/vnd.dece.hd", "uvi": "image/vnd.dece.graphic", "uvm": "video/vnd.dece.mobile", "uvp": "video/vnd.dece.pd", "uvs": "video/vnd.dece.sd", "uvt": "application/vnd.dece.ttml+xml", "uvu": "video/vnd.uvvu.mp4", "uvv": "video/vnd.dece.video", "uvva": "audio/vnd.dece.audio", "uvvd": "application/vnd.dece.data", "uvvf": "application/vnd.dece.data", "uvvg": "image/vnd.dece.graphic", "uvvh": "video/vnd.dece.hd", "uvvi": "image/vnd.dece.graphic", "uvvm": "video/vnd.dece.mobile", "uvvp": "video/vnd.dece.pd", "uvvs": "video/vnd.dece.sd", "uvvt": "application/vnd.dece.ttml+xml", "uvvu": "video/vnd.uvvu.mp4", "uvvv": "video/vnd.dece.video", "uvvx": "application/vnd.dece.unspecified", "uvvz": "application/vnd.dece.zip", "uvx": "application/vnd.dece.unspecified", "uvz": "application/vnd.dece.zip", "vbox": "application/x-virtualbox-vbox", "vbox-extpack": "application/x-virtualbox-vbox-extpack", "vcard": "text/vcard", "vcd": "application/x-cdlink", "vcf": "text/x-vcard", "vcg": "application/vnd.groove-vcard", "vcs": "text/x-vcalendar", "vcx": "application/vnd.vcx", "vdi": "application/x-virtualbox-vdi", "vds": "model/vnd.sap.vds", "vhd": "application/x-virtualbox-vhd", "vis": "application/vnd.visionary", "viv": "video/vnd.vivo", "vmdk": "application/x-virtualbox-vmdk", "vob": "video/x-ms-vob", "vor": "application/vnd.stardivision.writer", "vox": "application/x-authorware-bin", "vrml": "model/vrml", "vsd": "application/vnd.visio", "vsf": "application/vnd.vsf", "vss": "application/vnd.visio", "vst": "application/vnd.visio", "vsw": "application/vnd.visio", "vtf": "image/vnd.valve.source.texture", "vtt": "text/vtt", "vtu": "model/vnd.vtu", "vxml": "application/voicexml+xml", "w3d": "application/x-director", "wad": "application/x-doom", "wadl": "application/vnd.sun.wadl+xml", "war": "application/java-archive", "wasm": "application/wasm", "wav": "audio/x-wav", "wax": "audio/x-ms-wax", "wbmp": "image/vnd.wap.wbmp", "wbs": "application/vnd.criticaltools.wbs+xml", "wbxml": "application/vnd.wap.wbxml", "wcm": "application/vnd.ms-works", "wdb": "application/vnd.ms-works", "wdp": "image/vnd.ms-photo", "weba": "audio/webm", "webapp": "application/x-web-app-manifest+json", "webm": "video/webm", "webmanifest": "application/manifest+json", "webp": "image/webp", "wg": "application/vnd.pmi.widget", "wgt": "application/widget", "wif": "application/watcherinfo+xml", "wks": "application/vnd.ms-works", "wm": "video/x-ms-wm", "wma": "audio/x-ms-wma", "wmd": "application/x-ms-wmd", "wmf": "image/wmf", "wml": "text/vnd.wap.wml", "wmlc": "application/vnd.wap.wmlc", "wmls": "text/vnd.wap.wmlscript", "wmlsc": "application/vnd.wap.wmlscriptc", "wmv": "video/x-ms-wmv", "wmx": "video/x-ms-wmx", "wmz": "application/x-msmetafile", "woff": "font/woff", "woff2": "font/woff2", "wpd": "application/vnd.wordperfect", "wpl": "application/vnd.ms-wpl", "wps": "application/vnd.ms-works", "wqd": "application/vnd.wqd", "wri": "application/x-mswrite", "wrl": "model/vrml", "wsc": "message/vnd.wfa.wsc", "wsdl": "application/wsdl+xml", "wspolicy": "application/wspolicy+xml", "wtb": "application/vnd.webturbo", "wvx": "video/x-ms-wvx", "x32": "application/x-authorware-bin", "x3d": "model/x3d+xml", "x3db": "model/x3d+fastinfoset", "x3dbz": "model/x3d+binary", "x3dv": "model/x3d-vrml", "x3dvz": "model/x3d+vrml", "x3dz": "model/x3d+xml", "x_b": "model/vnd.parasolid.transmit.binary", "x_t": "model/vnd.parasolid.transmit.text", "xaml": "application/xaml+xml", "xap": "application/x-silverlight-app", "xar": "application/vnd.xara", "xav": "application/xcap-att+xml", "xbap": "application/x-ms-xbap", "xbd": "application/vnd.fujixerox.docuworks.binder", "xbm": "image/x-xbitmap", "xca": "application/xcap-caps+xml", "xcs": "application/calendar+xml", "xdf": "application/xcap-diff+xml", "xdm": "application/vnd.syncml.dm+xml", "xdp": "application/vnd.adobe.xdp+xml", "xdssc": "application/dssc+xml", "xdw": "application/vnd.fujixerox.docuworks", "xel": "application/xcap-el+xml", "xenc": "application/xenc+xml", "xer": "application/patch-ops-error+xml", "xfdf": "application/vnd.adobe.xfdf", "xfdl": "application/vnd.xfdl", "xht": "application/xhtml+xml", "xhtml": "application/xhtml+xml", "xhvml": "application/xv+xml", "xif": "image/vnd.xiff", "xla": "application/vnd.ms-excel", "xlam": "application/vnd.ms-excel.addin.macroenabled.12", "xlc": "application/vnd.ms-excel", "xlf": "application/xliff+xml", "xlm": "application/vnd.ms-excel", "xls": "application/vnd.ms-excel", "xlsb": "application/vnd.ms-excel.sheet.binary.macroenabled.12", "xlsm": "application/vnd.ms-excel.sheet.macroenabled.12", "xlsx": "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", "xlt": "application/vnd.ms-excel", "xltm": "application/vnd.ms-excel.template.macroenabled.12", "xltx": "application/vnd.openxmlformats-officedocument.spreadsheetml.template", "xlw": "application/vnd.ms-excel", "xm": "audio/xm", "xml": "text/xml", "xns": "application/xcap-ns+xml", "xo": "application/vnd.olpc-sugar", "xop": "application/xop+xml", "xpi": "application/x-xpinstall", "xpl": "application/xproc+xml", "xpm": "image/x-xpixmap", "xpr": "application/vnd.is-xpr", "xps": "application/vnd.ms-xpsdocument", "xpw": "application/vnd.intercon.formnet", "xpx": "application/vnd.intercon.formnet", "xsd": "application/xml", "xsl": "application/xslt+xml", "xslt": "application/xslt+xml", "xsm": "application/vnd.syncml+xml", "xspf": "application/xspf+xml", "xul": "application/vnd.mozilla.xul+xml", "xvm": "application/xv+xml", "xvml": "application/xv+xml", "xwd": "image/x-xwindowdump", "xyz": "chemical/x-xyz", "xz": "application/x-xz", "yaml": "text/yaml", "yang": "application/yang", "yin": "application/yin+xml", "yml": "text/yaml", "ymp": "text/x-suse-ymp", "z1": "application/x-zmachine", "z2": "application/x-zmachine", "z3": "application/x-zmachine", "z4": "application/x-zmachine", "z5": "application/x-zmachine", "z6": "application/x-zmachine", "z7": "application/x-zmachine", "z8": "application/x-zmachine", "zaz": "application/vnd.zzazz.deck+xml", "zip": "application/zip", "zir": "application/vnd.zul", "zirz": "application/vnd.zul", "zmm": "application/vnd.handheld-entertainment+xml" };
|