@tamagui/code-to-html 1.99.0 → 1.100.0
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 +7 -14
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/index.mjs +7 -14
- package/dist/esm/index.native.js +71 -142
- package/dist/esm/index.native.js.map +1 -1
- package/package.json +2 -2
package/dist/esm/index.mjs
CHANGED
|
@@ -38,8 +38,7 @@ var require_parse_numeric_range = __commonJS({
|
|
|
38
38
|
lhs = parseInt(lhs), rhs = parseInt(rhs);
|
|
39
39
|
let incr = lhs < rhs ? 1 : -1;
|
|
40
40
|
(sep === "-" || sep === ".." || sep === "\u2025") && (rhs += incr);
|
|
41
|
-
for (let i = lhs; i !== rhs; i += incr)
|
|
42
|
-
res.push(i);
|
|
41
|
+
for (let i = lhs; i !== rhs; i += incr) res.push(i);
|
|
43
42
|
}
|
|
44
43
|
}
|
|
45
44
|
return res;
|
|
@@ -3590,8 +3589,7 @@ var require_parser = __commonJS({
|
|
|
3590
3589
|
if (tn === $.OPTGROUP) {
|
|
3591
3590
|
let prevOpenElement = p2.openElements.items[p2.openElements.stackTop - 1], prevOpenElementTn = prevOpenElement && p2.treeAdapter.getTagName(prevOpenElement);
|
|
3592
3591
|
p2.openElements.currentTagName === $.OPTION && prevOpenElementTn === $.OPTGROUP && p2.openElements.pop(), p2.openElements.currentTagName === $.OPTGROUP && p2.openElements.pop();
|
|
3593
|
-
} else
|
|
3594
|
-
tn === $.OPTION ? p2.openElements.currentTagName === $.OPTION && p2.openElements.pop() : tn === $.SELECT && p2.openElements.hasInSelectScope($.SELECT) ? (p2.openElements.popUntilTagNamePopped($.SELECT), p2._resetInsertionMode()) : tn === $.TEMPLATE && endTagInHead(p2, token);
|
|
3592
|
+
} else tn === $.OPTION ? p2.openElements.currentTagName === $.OPTION && p2.openElements.pop() : tn === $.SELECT && p2.openElements.hasInSelectScope($.SELECT) ? (p2.openElements.popUntilTagNamePopped($.SELECT), p2._resetInsertionMode()) : tn === $.TEMPLATE && endTagInHead(p2, token);
|
|
3595
3593
|
}
|
|
3596
3594
|
function startTagInSelectInTable(p2, token) {
|
|
3597
3595
|
let tn = token.tagName;
|
|
@@ -3718,8 +3716,7 @@ var require_extend = __commonJS({
|
|
|
3718
3716
|
if (hasOwn.call(obj, name)) {
|
|
3719
3717
|
if (gOPD)
|
|
3720
3718
|
return gOPD(obj, name).value;
|
|
3721
|
-
} else
|
|
3722
|
-
return;
|
|
3719
|
+
} else return;
|
|
3723
3720
|
return obj[name];
|
|
3724
3721
|
};
|
|
3725
3722
|
module.exports = function extend2() {
|
|
@@ -5583,8 +5580,7 @@ function head(node) {
|
|
|
5583
5580
|
for (; ++index2 < children.length; ) {
|
|
5584
5581
|
let child = children[index2];
|
|
5585
5582
|
if (child.type === "element" && (child.tagName === "title" || child.tagName === "base")) {
|
|
5586
|
-
if (seen.includes(child.tagName))
|
|
5587
|
-
return !1;
|
|
5583
|
+
if (seen.includes(child.tagName)) return !1;
|
|
5588
5584
|
seen.push(child.tagName);
|
|
5589
5585
|
}
|
|
5590
5586
|
}
|
|
@@ -8188,8 +8184,7 @@ function markupTemplating(Prism2) {
|
|
|
8188
8184
|
), after = s2.substring(index2 + placeholder.length), replacement = [];
|
|
8189
8185
|
before && replacement.push.apply(replacement, walkTokens([before])), replacement.push(middle), after && replacement.push.apply(replacement, walkTokens([after])), typeof token == "string" ? tokens.splice.apply(tokens, [i, 1].concat(replacement)) : token.content = replacement;
|
|
8190
8186
|
}
|
|
8191
|
-
} else
|
|
8192
|
-
token.content && walkTokens(token.content);
|
|
8187
|
+
} else token.content && walkTokens(token.content);
|
|
8193
8188
|
}
|
|
8194
8189
|
return tokens;
|
|
8195
8190
|
}
|
|
@@ -9396,11 +9391,9 @@ function addProperty(schema, properties, key2, value) {
|
|
|
9396
9391
|
let info = find(schema, key2), index2 = -1, result;
|
|
9397
9392
|
if (value != null) {
|
|
9398
9393
|
if (typeof value == "number") {
|
|
9399
|
-
if (Number.isNaN(value))
|
|
9400
|
-
return;
|
|
9394
|
+
if (Number.isNaN(value)) return;
|
|
9401
9395
|
result = value;
|
|
9402
|
-
} else
|
|
9403
|
-
typeof value == "boolean" ? result = value : typeof value == "string" ? info.spaceSeparated ? result = parse2(value) : info.commaSeparated ? result = parse(value) : info.commaOrSpaceSeparated ? result = parse2(parse(value).join(" ")) : result = parsePrimitive(info, info.property, value) : Array.isArray(value) ? result = value.concat() : result = info.property === "style" ? style(value) : String(value);
|
|
9396
|
+
} else typeof value == "boolean" ? result = value : typeof value == "string" ? info.spaceSeparated ? result = parse2(value) : info.commaSeparated ? result = parse(value) : info.commaOrSpaceSeparated ? result = parse2(parse(value).join(" ")) : result = parsePrimitive(info, info.property, value) : Array.isArray(value) ? result = value.concat() : result = info.property === "style" ? style(value) : String(value);
|
|
9404
9397
|
if (Array.isArray(result)) {
|
|
9405
9398
|
let finalResult = [];
|
|
9406
9399
|
for (; ++index2 < result.length; )
|
package/dist/esm/index.native.js
CHANGED
|
@@ -29,13 +29,11 @@ var require_parse_numeric_range = __commonJS({
|
|
|
29
29
|
"../../node_modules/parse-numeric-range/index.js"(exports, module) {
|
|
30
30
|
function _array_like_to_array7(arr, len) {
|
|
31
31
|
(len == null || len > arr.length) && (len = arr.length);
|
|
32
|
-
for (var i = 0, arr2 = new Array(len); i < len; i++)
|
|
33
|
-
arr2[i] = arr[i];
|
|
32
|
+
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
34
33
|
return arr2;
|
|
35
34
|
}
|
|
36
35
|
function _array_with_holes2(arr) {
|
|
37
|
-
if (Array.isArray(arr))
|
|
38
|
-
return arr;
|
|
36
|
+
if (Array.isArray(arr)) return arr;
|
|
39
37
|
}
|
|
40
38
|
function _iterable_to_array_limit(arr, i) {
|
|
41
39
|
var _i = arr == null ? null : typeof Symbol < "u" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
@@ -50,8 +48,7 @@ var require_parse_numeric_range = __commonJS({
|
|
|
50
48
|
try {
|
|
51
49
|
!_n && _i.return != null && _i.return();
|
|
52
50
|
} finally {
|
|
53
|
-
if (_d)
|
|
54
|
-
throw _e;
|
|
51
|
+
if (_d) throw _e;
|
|
55
52
|
}
|
|
56
53
|
}
|
|
57
54
|
return _arr;
|
|
@@ -65,13 +62,10 @@ var require_parse_numeric_range = __commonJS({
|
|
|
65
62
|
}
|
|
66
63
|
function _unsupported_iterable_to_array7(o, minLen) {
|
|
67
64
|
if (o) {
|
|
68
|
-
if (typeof o == "string")
|
|
69
|
-
return _array_like_to_array7(o, minLen);
|
|
65
|
+
if (typeof o == "string") return _array_like_to_array7(o, minLen);
|
|
70
66
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
71
|
-
if (n === "Object" && o.constructor && (n = o.constructor.name), n === "Map" || n === "Set")
|
|
72
|
-
|
|
73
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
|
|
74
|
-
return _array_like_to_array7(o, minLen);
|
|
67
|
+
if (n === "Object" && o.constructor && (n = o.constructor.name), n === "Map" || n === "Set") return Array.from(n);
|
|
68
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array7(o, minLen);
|
|
75
69
|
}
|
|
76
70
|
}
|
|
77
71
|
function parsePart(string) {
|
|
@@ -89,8 +83,7 @@ var require_parse_numeric_range = __commonJS({
|
|
|
89
83
|
lhs = parseInt(lhs), rhs = parseInt(rhs);
|
|
90
84
|
var incr = lhs < rhs ? 1 : -1;
|
|
91
85
|
(sep === "-" || sep === ".." || sep === "\u2025") && (rhs += incr);
|
|
92
|
-
for (var i = lhs; i !== rhs; i += incr)
|
|
93
|
-
res.push(i);
|
|
86
|
+
for (var i = lhs; i !== rhs; i += incr) res.push(i);
|
|
94
87
|
}
|
|
95
88
|
}
|
|
96
89
|
}
|
|
@@ -21895,10 +21888,8 @@ var require_preprocessor_mixin = __commonJS({
|
|
|
21895
21888
|
return obj && typeof Symbol < "u" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
21896
21889
|
}
|
|
21897
21890
|
function _is_native_reflect_construct3() {
|
|
21898
|
-
if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham)
|
|
21899
|
-
|
|
21900
|
-
if (typeof Proxy == "function")
|
|
21901
|
-
return !0;
|
|
21891
|
+
if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham) return !1;
|
|
21892
|
+
if (typeof Proxy == "function") return !0;
|
|
21902
21893
|
try {
|
|
21903
21894
|
return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
|
|
21904
21895
|
})), !0;
|
|
@@ -22006,10 +21997,8 @@ var require_tokenizer_mixin = __commonJS({
|
|
|
22006
21997
|
return obj && typeof Symbol < "u" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
22007
21998
|
}
|
|
22008
21999
|
function _is_native_reflect_construct3() {
|
|
22009
|
-
if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham)
|
|
22010
|
-
|
|
22011
|
-
if (typeof Proxy == "function")
|
|
22012
|
-
return !0;
|
|
22000
|
+
if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham) return !1;
|
|
22001
|
+
if (typeof Proxy == "function") return !0;
|
|
22013
22002
|
try {
|
|
22014
22003
|
return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
|
|
22015
22004
|
})), !0;
|
|
@@ -22164,10 +22153,8 @@ var require_open_element_stack_mixin = __commonJS({
|
|
|
22164
22153
|
return obj && typeof Symbol < "u" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
22165
22154
|
}
|
|
22166
22155
|
function _is_native_reflect_construct3() {
|
|
22167
|
-
if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham)
|
|
22168
|
-
|
|
22169
|
-
if (typeof Proxy == "function")
|
|
22170
|
-
return !0;
|
|
22156
|
+
if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham) return !1;
|
|
22157
|
+
if (typeof Proxy == "function") return !0;
|
|
22171
22158
|
try {
|
|
22172
22159
|
return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
|
|
22173
22160
|
})), !0;
|
|
@@ -22271,10 +22258,8 @@ var require_parser_mixin = __commonJS({
|
|
|
22271
22258
|
return obj && typeof Symbol < "u" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
22272
22259
|
}
|
|
22273
22260
|
function _is_native_reflect_construct3() {
|
|
22274
|
-
if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham)
|
|
22275
|
-
|
|
22276
|
-
if (typeof Proxy == "function")
|
|
22277
|
-
return !0;
|
|
22261
|
+
if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham) return !1;
|
|
22262
|
+
if (typeof Proxy == "function") return !0;
|
|
22278
22263
|
try {
|
|
22279
22264
|
return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
|
|
22280
22265
|
})), !0;
|
|
@@ -22466,10 +22451,8 @@ var require_mixin_base = __commonJS({
|
|
|
22466
22451
|
return obj && typeof Symbol < "u" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
22467
22452
|
}
|
|
22468
22453
|
function _is_native_reflect_construct3() {
|
|
22469
|
-
if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham)
|
|
22470
|
-
|
|
22471
|
-
if (typeof Proxy == "function")
|
|
22472
|
-
return !0;
|
|
22454
|
+
if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham) return !1;
|
|
22455
|
+
if (typeof Proxy == "function") return !0;
|
|
22473
22456
|
try {
|
|
22474
22457
|
return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
|
|
22475
22458
|
})), !0;
|
|
@@ -22600,10 +22583,8 @@ var require_preprocessor_mixin2 = __commonJS({
|
|
|
22600
22583
|
return obj && typeof Symbol < "u" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
22601
22584
|
}
|
|
22602
22585
|
function _is_native_reflect_construct3() {
|
|
22603
|
-
if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham)
|
|
22604
|
-
|
|
22605
|
-
if (typeof Proxy == "function")
|
|
22606
|
-
return !0;
|
|
22586
|
+
if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham) return !1;
|
|
22587
|
+
if (typeof Proxy == "function") return !0;
|
|
22607
22588
|
try {
|
|
22608
22589
|
return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
|
|
22609
22590
|
})), !0;
|
|
@@ -22686,10 +22667,8 @@ var require_tokenizer_mixin2 = __commonJS({
|
|
|
22686
22667
|
return obj && typeof Symbol < "u" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
22687
22668
|
}
|
|
22688
22669
|
function _is_native_reflect_construct3() {
|
|
22689
|
-
if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham)
|
|
22690
|
-
|
|
22691
|
-
if (typeof Proxy == "function")
|
|
22692
|
-
return !0;
|
|
22670
|
+
if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham) return !1;
|
|
22671
|
+
if (typeof Proxy == "function") return !0;
|
|
22693
22672
|
try {
|
|
22694
22673
|
return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
|
|
22695
22674
|
})), !0;
|
|
@@ -22776,10 +22755,8 @@ var require_parser_mixin2 = __commonJS({
|
|
|
22776
22755
|
return obj && typeof Symbol < "u" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
22777
22756
|
}
|
|
22778
22757
|
function _is_native_reflect_construct3() {
|
|
22779
|
-
if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham)
|
|
22780
|
-
|
|
22781
|
-
if (typeof Proxy == "function")
|
|
22782
|
-
return !0;
|
|
22758
|
+
if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham) return !1;
|
|
22759
|
+
if (typeof Proxy == "function") return !0;
|
|
22783
22760
|
try {
|
|
22784
22761
|
return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
|
|
22785
22762
|
})), !0;
|
|
@@ -24273,8 +24250,7 @@ var require_parser = __commonJS({
|
|
|
24273
24250
|
if (tn === $.OPTGROUP) {
|
|
24274
24251
|
var prevOpenElement = p2.openElements.items[p2.openElements.stackTop - 1], prevOpenElementTn = prevOpenElement && p2.treeAdapter.getTagName(prevOpenElement);
|
|
24275
24252
|
p2.openElements.currentTagName === $.OPTION && prevOpenElementTn === $.OPTGROUP && p2.openElements.pop(), p2.openElements.currentTagName === $.OPTGROUP && p2.openElements.pop();
|
|
24276
|
-
} else
|
|
24277
|
-
tn === $.OPTION ? p2.openElements.currentTagName === $.OPTION && p2.openElements.pop() : tn === $.SELECT && p2.openElements.hasInSelectScope($.SELECT) ? (p2.openElements.popUntilTagNamePopped($.SELECT), p2._resetInsertionMode()) : tn === $.TEMPLATE && endTagInHead(p2, token);
|
|
24253
|
+
} else tn === $.OPTION ? p2.openElements.currentTagName === $.OPTION && p2.openElements.pop() : tn === $.SELECT && p2.openElements.hasInSelectScope($.SELECT) ? (p2.openElements.popUntilTagNamePopped($.SELECT), p2._resetInsertionMode()) : tn === $.TEMPLATE && endTagInHead(p2, token);
|
|
24278
24254
|
}
|
|
24279
24255
|
function startTagInSelectInTable(p2, token) {
|
|
24280
24256
|
var tn = token.tagName;
|
|
@@ -24401,8 +24377,7 @@ var require_extend = __commonJS({
|
|
|
24401
24377
|
if (hasOwn.call(obj, name)) {
|
|
24402
24378
|
if (gOPD)
|
|
24403
24379
|
return gOPD(obj, name).value;
|
|
24404
|
-
} else
|
|
24405
|
-
return;
|
|
24380
|
+
} else return;
|
|
24406
24381
|
return obj[name];
|
|
24407
24382
|
};
|
|
24408
24383
|
module.exports = function extend3() {
|
|
@@ -24522,10 +24497,8 @@ function _type_of(obj) {
|
|
|
24522
24497
|
return obj && typeof Symbol < "u" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
24523
24498
|
}
|
|
24524
24499
|
function _is_native_reflect_construct() {
|
|
24525
|
-
if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham)
|
|
24526
|
-
|
|
24527
|
-
if (typeof Proxy == "function")
|
|
24528
|
-
return !0;
|
|
24500
|
+
if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham) return !1;
|
|
24501
|
+
if (typeof Proxy == "function") return !0;
|
|
24529
24502
|
try {
|
|
24530
24503
|
return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
|
|
24531
24504
|
})), !0;
|
|
@@ -25680,17 +25653,14 @@ var htmlVoidElements = [
|
|
|
25680
25653
|
// ../../node_modules/zwitch/index.js
|
|
25681
25654
|
function _array_like_to_array(arr, len) {
|
|
25682
25655
|
(len == null || len > arr.length) && (len = arr.length);
|
|
25683
|
-
for (var i = 0, arr2 = new Array(len); i < len; i++)
|
|
25684
|
-
arr2[i] = arr[i];
|
|
25656
|
+
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
25685
25657
|
return arr2;
|
|
25686
25658
|
}
|
|
25687
25659
|
function _array_without_holes(arr) {
|
|
25688
|
-
if (Array.isArray(arr))
|
|
25689
|
-
return _array_like_to_array(arr);
|
|
25660
|
+
if (Array.isArray(arr)) return _array_like_to_array(arr);
|
|
25690
25661
|
}
|
|
25691
25662
|
function _iterable_to_array(iter) {
|
|
25692
|
-
if (typeof Symbol < "u" && iter[Symbol.iterator] != null || iter["@@iterator"] != null)
|
|
25693
|
-
return Array.from(iter);
|
|
25663
|
+
if (typeof Symbol < "u" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
25694
25664
|
}
|
|
25695
25665
|
function _non_iterable_spread() {
|
|
25696
25666
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
@@ -25700,13 +25670,10 @@ function _to_consumable_array(arr) {
|
|
|
25700
25670
|
}
|
|
25701
25671
|
function _unsupported_iterable_to_array(o, minLen) {
|
|
25702
25672
|
if (o) {
|
|
25703
|
-
if (typeof o == "string")
|
|
25704
|
-
return _array_like_to_array(o, minLen);
|
|
25673
|
+
if (typeof o == "string") return _array_like_to_array(o, minLen);
|
|
25705
25674
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
25706
|
-
if (n === "Object" && o.constructor && (n = o.constructor.name), n === "Map" || n === "Set")
|
|
25707
|
-
|
|
25708
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
|
|
25709
|
-
return _array_like_to_array(o, minLen);
|
|
25675
|
+
if (n === "Object" && o.constructor && (n = o.constructor.name), n === "Map" || n === "Set") return Array.from(n);
|
|
25676
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
|
|
25710
25677
|
}
|
|
25711
25678
|
}
|
|
25712
25679
|
var own2 = {}.hasOwnProperty;
|
|
@@ -26209,17 +26176,14 @@ function ccount(value, character) {
|
|
|
26209
26176
|
// ../../node_modules/comma-separated-tokens/index.js
|
|
26210
26177
|
function _array_like_to_array2(arr, len) {
|
|
26211
26178
|
(len == null || len > arr.length) && (len = arr.length);
|
|
26212
|
-
for (var i = 0, arr2 = new Array(len); i < len; i++)
|
|
26213
|
-
arr2[i] = arr[i];
|
|
26179
|
+
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
26214
26180
|
return arr2;
|
|
26215
26181
|
}
|
|
26216
26182
|
function _array_without_holes2(arr) {
|
|
26217
|
-
if (Array.isArray(arr))
|
|
26218
|
-
return _array_like_to_array2(arr);
|
|
26183
|
+
if (Array.isArray(arr)) return _array_like_to_array2(arr);
|
|
26219
26184
|
}
|
|
26220
26185
|
function _iterable_to_array2(iter) {
|
|
26221
|
-
if (typeof Symbol < "u" && iter[Symbol.iterator] != null || iter["@@iterator"] != null)
|
|
26222
|
-
return Array.from(iter);
|
|
26186
|
+
if (typeof Symbol < "u" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
26223
26187
|
}
|
|
26224
26188
|
function _non_iterable_spread2() {
|
|
26225
26189
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
@@ -26229,13 +26193,10 @@ function _to_consumable_array2(arr) {
|
|
|
26229
26193
|
}
|
|
26230
26194
|
function _unsupported_iterable_to_array2(o, minLen) {
|
|
26231
26195
|
if (o) {
|
|
26232
|
-
if (typeof o == "string")
|
|
26233
|
-
return _array_like_to_array2(o, minLen);
|
|
26196
|
+
if (typeof o == "string") return _array_like_to_array2(o, minLen);
|
|
26234
26197
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
26235
|
-
if (n === "Object" && o.constructor && (n = o.constructor.name), n === "Map" || n === "Set")
|
|
26236
|
-
|
|
26237
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
|
|
26238
|
-
return _array_like_to_array2(o, minLen);
|
|
26198
|
+
if (n === "Object" && o.constructor && (n = o.constructor.name), n === "Map" || n === "Set") return Array.from(n);
|
|
26199
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array2(o, minLen);
|
|
26239
26200
|
}
|
|
26240
26201
|
}
|
|
26241
26202
|
function parse(value) {
|
|
@@ -26400,8 +26361,7 @@ function head(node) {
|
|
|
26400
26361
|
for (var children = node.children, seen = [], index2 = -1; ++index2 < children.length; ) {
|
|
26401
26362
|
var child = children[index2];
|
|
26402
26363
|
if (child.type === "element" && (child.tagName === "title" || child.tagName === "base")) {
|
|
26403
|
-
if (seen.includes(child.tagName))
|
|
26404
|
-
return !1;
|
|
26364
|
+
if (seen.includes(child.tagName)) return !1;
|
|
26405
26365
|
seen.push(child.tagName);
|
|
26406
26366
|
}
|
|
26407
26367
|
}
|
|
@@ -28990,8 +28950,7 @@ function markupTemplating(Prism2) {
|
|
|
28990
28950
|
1
|
|
28991
28951
|
].concat(replacement)) : token.content = replacement;
|
|
28992
28952
|
}
|
|
28993
|
-
} else
|
|
28994
|
-
token.content && walkTokens(token.content);
|
|
28953
|
+
} else token.content && walkTokens(token.content);
|
|
28995
28954
|
}
|
|
28996
28955
|
return tokens;
|
|
28997
28956
|
}
|
|
@@ -30222,8 +30181,7 @@ function addProperty(schema, properties, key2, value) {
|
|
|
30222
30181
|
var info = find(schema, key2), index2 = -1, result;
|
|
30223
30182
|
if (value != null) {
|
|
30224
30183
|
if (typeof value == "number") {
|
|
30225
|
-
if (Number.isNaN(value))
|
|
30226
|
-
return;
|
|
30184
|
+
if (Number.isNaN(value)) return;
|
|
30227
30185
|
result = value;
|
|
30228
30186
|
} else
|
|
30229
30187
|
typeof value == "boolean" ? result = value : typeof value == "string" ? info.spaceSeparated ? result = parse2(value) : info.commaSeparated ? result = parse(value) : info.commaOrSpaceSeparated ? result = parse2(parse(value).join(" ")) : result = parsePrimitive(info, info.property, value) : Array.isArray(value) ? result = value.concat() : result = info.property === "style" ? style(value) : String(value);
|
|
@@ -33105,17 +33063,14 @@ var Prism = _;
|
|
|
33105
33063
|
// ../../node_modules/refractor/lib/core.js
|
|
33106
33064
|
function _array_like_to_array3(arr, len) {
|
|
33107
33065
|
(len == null || len > arr.length) && (len = arr.length);
|
|
33108
|
-
for (var i = 0, arr2 = new Array(len); i < len; i++)
|
|
33109
|
-
arr2[i] = arr[i];
|
|
33066
|
+
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
33110
33067
|
return arr2;
|
|
33111
33068
|
}
|
|
33112
33069
|
function _array_without_holes3(arr) {
|
|
33113
|
-
if (Array.isArray(arr))
|
|
33114
|
-
return _array_like_to_array3(arr);
|
|
33070
|
+
if (Array.isArray(arr)) return _array_like_to_array3(arr);
|
|
33115
33071
|
}
|
|
33116
33072
|
function _iterable_to_array3(iter) {
|
|
33117
|
-
if (typeof Symbol < "u" && iter[Symbol.iterator] != null || iter["@@iterator"] != null)
|
|
33118
|
-
return Array.from(iter);
|
|
33073
|
+
if (typeof Symbol < "u" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
33119
33074
|
}
|
|
33120
33075
|
function _non_iterable_spread3() {
|
|
33121
33076
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
@@ -33125,13 +33080,10 @@ function _to_consumable_array3(arr) {
|
|
|
33125
33080
|
}
|
|
33126
33081
|
function _unsupported_iterable_to_array3(o, minLen) {
|
|
33127
33082
|
if (o) {
|
|
33128
|
-
if (typeof o == "string")
|
|
33129
|
-
return _array_like_to_array3(o, minLen);
|
|
33083
|
+
if (typeof o == "string") return _array_like_to_array3(o, minLen);
|
|
33130
33084
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
33131
|
-
if (n === "Object" && o.constructor && (n = o.constructor.name), n === "Map" || n === "Set")
|
|
33132
|
-
|
|
33133
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
|
|
33134
|
-
return _array_like_to_array3(o, minLen);
|
|
33085
|
+
if (n === "Object" && o.constructor && (n = o.constructor.name), n === "Map" || n === "Set") return Array.from(n);
|
|
33086
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array3(o, minLen);
|
|
33135
33087
|
}
|
|
33136
33088
|
}
|
|
33137
33089
|
var own7 = {}.hasOwnProperty;
|
|
@@ -33872,20 +33824,17 @@ function isPlainObject(value) {
|
|
|
33872
33824
|
// ../../node_modules/trough/index.js
|
|
33873
33825
|
function _array_like_to_array4(arr, len) {
|
|
33874
33826
|
(len == null || len > arr.length) && (len = arr.length);
|
|
33875
|
-
for (var i = 0, arr2 = new Array(len); i < len; i++)
|
|
33876
|
-
arr2[i] = arr[i];
|
|
33827
|
+
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
33877
33828
|
return arr2;
|
|
33878
33829
|
}
|
|
33879
33830
|
function _array_without_holes4(arr) {
|
|
33880
|
-
if (Array.isArray(arr))
|
|
33881
|
-
return _array_like_to_array4(arr);
|
|
33831
|
+
if (Array.isArray(arr)) return _array_like_to_array4(arr);
|
|
33882
33832
|
}
|
|
33883
33833
|
function _instanceof2(left, right) {
|
|
33884
33834
|
return right != null && typeof Symbol < "u" && right[Symbol.hasInstance] ? !!right[Symbol.hasInstance](left) : left instanceof right;
|
|
33885
33835
|
}
|
|
33886
33836
|
function _iterable_to_array4(iter) {
|
|
33887
|
-
if (typeof Symbol < "u" && iter[Symbol.iterator] != null || iter["@@iterator"] != null)
|
|
33888
|
-
return Array.from(iter);
|
|
33837
|
+
if (typeof Symbol < "u" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
33889
33838
|
}
|
|
33890
33839
|
function _non_iterable_spread4() {
|
|
33891
33840
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
@@ -33895,13 +33844,10 @@ function _to_consumable_array4(arr) {
|
|
|
33895
33844
|
}
|
|
33896
33845
|
function _unsupported_iterable_to_array4(o, minLen) {
|
|
33897
33846
|
if (o) {
|
|
33898
|
-
if (typeof o == "string")
|
|
33899
|
-
return _array_like_to_array4(o, minLen);
|
|
33847
|
+
if (typeof o == "string") return _array_like_to_array4(o, minLen);
|
|
33900
33848
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
33901
|
-
if (n === "Object" && o.constructor && (n = o.constructor.name), n === "Map" || n === "Set")
|
|
33902
|
-
|
|
33903
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
|
|
33904
|
-
return _array_like_to_array4(o, minLen);
|
|
33849
|
+
if (n === "Object" && o.constructor && (n = o.constructor.name), n === "Map" || n === "Set") return Array.from(n);
|
|
33850
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array4(o, minLen);
|
|
33905
33851
|
}
|
|
33906
33852
|
}
|
|
33907
33853
|
function trough() {
|
|
@@ -34044,13 +33990,11 @@ function _type_of2(obj) {
|
|
|
34044
33990
|
function _wrap_native_super(Class) {
|
|
34045
33991
|
var _cache = typeof Map == "function" ? /* @__PURE__ */ new Map() : void 0;
|
|
34046
33992
|
return _wrap_native_super = function(Class2) {
|
|
34047
|
-
if (Class2 === null || !_is_native_function(Class2))
|
|
34048
|
-
return Class2;
|
|
33993
|
+
if (Class2 === null || !_is_native_function(Class2)) return Class2;
|
|
34049
33994
|
if (typeof Class2 != "function")
|
|
34050
33995
|
throw new TypeError("Super expression must either be null or a function");
|
|
34051
33996
|
if (typeof _cache < "u") {
|
|
34052
|
-
if (_cache.has(Class2))
|
|
34053
|
-
return _cache.get(Class2);
|
|
33997
|
+
if (_cache.has(Class2)) return _cache.get(Class2);
|
|
34054
33998
|
_cache.set(Class2, Wrapper);
|
|
34055
33999
|
}
|
|
34056
34000
|
function Wrapper() {
|
|
@@ -34067,10 +34011,8 @@ function _wrap_native_super(Class) {
|
|
|
34067
34011
|
}, _wrap_native_super(Class);
|
|
34068
34012
|
}
|
|
34069
34013
|
function _is_native_reflect_construct2() {
|
|
34070
|
-
if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham)
|
|
34071
|
-
|
|
34072
|
-
if (typeof Proxy == "function")
|
|
34073
|
-
return !0;
|
|
34014
|
+
if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham) return !1;
|
|
34015
|
+
if (typeof Proxy == "function") return !0;
|
|
34074
34016
|
try {
|
|
34075
34017
|
return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
|
|
34076
34018
|
})), !0;
|
|
@@ -34150,13 +34092,11 @@ function isUrl(fileUrlOrPath) {
|
|
|
34150
34092
|
// ../../node_modules/unified/node_modules/vfile/lib/index.js
|
|
34151
34093
|
function _array_like_to_array5(arr, len) {
|
|
34152
34094
|
(len == null || len > arr.length) && (len = arr.length);
|
|
34153
|
-
for (var i = 0, arr2 = new Array(len); i < len; i++)
|
|
34154
|
-
arr2[i] = arr[i];
|
|
34095
|
+
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
34155
34096
|
return arr2;
|
|
34156
34097
|
}
|
|
34157
34098
|
function _array_without_holes5(arr) {
|
|
34158
|
-
if (Array.isArray(arr))
|
|
34159
|
-
return _array_like_to_array5(arr);
|
|
34099
|
+
if (Array.isArray(arr)) return _array_like_to_array5(arr);
|
|
34160
34100
|
}
|
|
34161
34101
|
function _class_call_check5(instance, Constructor) {
|
|
34162
34102
|
if (!(instance instanceof Constructor))
|
|
@@ -34172,8 +34112,7 @@ function _create_class(Constructor, protoProps, staticProps) {
|
|
|
34172
34112
|
return protoProps && _defineProperties(Constructor.prototype, protoProps), staticProps && _defineProperties(Constructor, staticProps), Constructor;
|
|
34173
34113
|
}
|
|
34174
34114
|
function _iterable_to_array5(iter) {
|
|
34175
|
-
if (typeof Symbol < "u" && iter[Symbol.iterator] != null || iter["@@iterator"] != null)
|
|
34176
|
-
return Array.from(iter);
|
|
34115
|
+
if (typeof Symbol < "u" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
34177
34116
|
}
|
|
34178
34117
|
function _non_iterable_spread5() {
|
|
34179
34118
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
@@ -34183,13 +34122,10 @@ function _to_consumable_array5(arr) {
|
|
|
34183
34122
|
}
|
|
34184
34123
|
function _unsupported_iterable_to_array5(o, minLen) {
|
|
34185
34124
|
if (o) {
|
|
34186
|
-
if (typeof o == "string")
|
|
34187
|
-
return _array_like_to_array5(o, minLen);
|
|
34125
|
+
if (typeof o == "string") return _array_like_to_array5(o, minLen);
|
|
34188
34126
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
34189
|
-
if (n === "Object" && o.constructor && (n = o.constructor.name), n === "Map" || n === "Set")
|
|
34190
|
-
|
|
34191
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
|
|
34192
|
-
return _array_like_to_array5(o, minLen);
|
|
34127
|
+
if (n === "Object" && o.constructor && (n = o.constructor.name), n === "Map" || n === "Set") return Array.from(n);
|
|
34128
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array5(o, minLen);
|
|
34193
34129
|
}
|
|
34194
34130
|
}
|
|
34195
34131
|
var order = [
|
|
@@ -34450,21 +34386,17 @@ function buffer(value) {
|
|
|
34450
34386
|
// ../../node_modules/unified/lib/index.js
|
|
34451
34387
|
function _array_like_to_array6(arr, len) {
|
|
34452
34388
|
(len == null || len > arr.length) && (len = arr.length);
|
|
34453
|
-
for (var i = 0, arr2 = new Array(len); i < len; i++)
|
|
34454
|
-
arr2[i] = arr[i];
|
|
34389
|
+
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
34455
34390
|
return arr2;
|
|
34456
34391
|
}
|
|
34457
34392
|
function _array_with_holes(arr) {
|
|
34458
|
-
if (Array.isArray(arr))
|
|
34459
|
-
return arr;
|
|
34393
|
+
if (Array.isArray(arr)) return arr;
|
|
34460
34394
|
}
|
|
34461
34395
|
function _array_without_holes6(arr) {
|
|
34462
|
-
if (Array.isArray(arr))
|
|
34463
|
-
return _array_like_to_array6(arr);
|
|
34396
|
+
if (Array.isArray(arr)) return _array_like_to_array6(arr);
|
|
34464
34397
|
}
|
|
34465
34398
|
function _iterable_to_array6(iter) {
|
|
34466
|
-
if (typeof Symbol < "u" && iter[Symbol.iterator] != null || iter["@@iterator"] != null)
|
|
34467
|
-
return Array.from(iter);
|
|
34399
|
+
if (typeof Symbol < "u" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
34468
34400
|
}
|
|
34469
34401
|
function _non_iterable_rest() {
|
|
34470
34402
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
@@ -34480,13 +34412,10 @@ function _to_consumable_array6(arr) {
|
|
|
34480
34412
|
}
|
|
34481
34413
|
function _unsupported_iterable_to_array6(o, minLen) {
|
|
34482
34414
|
if (o) {
|
|
34483
|
-
if (typeof o == "string")
|
|
34484
|
-
return _array_like_to_array6(o, minLen);
|
|
34415
|
+
if (typeof o == "string") return _array_like_to_array6(o, minLen);
|
|
34485
34416
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
34486
|
-
if (n === "Object" && o.constructor && (n = o.constructor.name), n === "Map" || n === "Set")
|
|
34487
|
-
|
|
34488
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
|
|
34489
|
-
return _array_like_to_array6(o, minLen);
|
|
34417
|
+
if (n === "Object" && o.constructor && (n = o.constructor.name), n === "Map" || n === "Set") return Array.from(n);
|
|
34418
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array6(o, minLen);
|
|
34490
34419
|
}
|
|
34491
34420
|
}
|
|
34492
34421
|
var unified = base2().freeze(), own9 = {}.hasOwnProperty;
|