@biggive/components 202601131242.0.0 → 202601201057.0.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/biggive/biggive.esm.js +1 -1
- package/dist/biggive/{p-883cc8c6.entry.js → p-00bb4f19.entry.js} +1 -1
- package/dist/biggive/p-039ea423.entry.js +1 -0
- package/dist/biggive/{p-b21800fd.entry.js → p-07c4384e.entry.js} +1 -1
- package/dist/biggive/{p-dbf97887.entry.js → p-0ce0f287.entry.js} +1 -1
- package/dist/biggive/{p-da14dd12.entry.js → p-13bb4b28.entry.js} +1 -1
- package/dist/biggive/{p-f7461305.entry.js → p-1ad783ef.entry.js} +1 -1
- package/dist/biggive/{p-37fcee45.entry.js → p-1c647040.entry.js} +1 -1
- package/dist/biggive/{p-06f84b97.entry.js → p-1cc0dad8.entry.js} +1 -1
- package/dist/biggive/{p-27439b4d.entry.js → p-2cd167ed.entry.js} +1 -1
- package/dist/biggive/{p-7f3c8e12.entry.js → p-2d179315.entry.js} +1 -1
- package/dist/biggive/{p-14b8a0ed.entry.js → p-30e5a365.entry.js} +1 -1
- package/dist/biggive/{p-84cd60fe.entry.js → p-34698f02.entry.js} +1 -1
- package/dist/biggive/{p-e734c856.entry.js → p-3b0742b5.entry.js} +1 -1
- package/dist/biggive/{p-245fc9b4.entry.js → p-3ce0e0de.entry.js} +1 -1
- package/dist/biggive/{p-9e7f178c.entry.js → p-3d11a9b4.entry.js} +1 -1
- package/dist/biggive/{p-4ad94941.entry.js → p-3f1ee3dc.entry.js} +1 -1
- package/dist/biggive/p-4635c414.entry.js +1 -0
- package/dist/biggive/{p-d1cb5ed4.entry.js → p-483a97dd.entry.js} +1 -1
- package/dist/biggive/{p-745d5364.entry.js → p-597460ba.entry.js} +1 -1
- package/dist/biggive/{p-c8428569.entry.js → p-5d55839c.entry.js} +1 -1
- package/dist/biggive/{p-34cdb424.entry.js → p-652b9468.entry.js} +1 -1
- package/dist/biggive/{p-afdaa6ed.entry.js → p-665adfd1.entry.js} +1 -1
- package/dist/biggive/{p-033dc823.entry.js → p-7ad65b4c.entry.js} +1 -1
- package/dist/biggive/{p-a4365a45.entry.js → p-7c7f54ca.entry.js} +1 -1
- package/dist/biggive/{p-bbac6ba7.entry.js → p-7cb10bd9.entry.js} +1 -1
- package/dist/biggive/{p-c827231f.entry.js → p-83f2928b.entry.js} +1 -1
- package/dist/biggive/{p-8a6d38c3.entry.js → p-84d42185.entry.js} +1 -1
- package/dist/biggive/{p-314f0d49.entry.js → p-8567e09e.entry.js} +1 -1
- package/dist/biggive/{p-898d3c08.entry.js → p-8b31509b.entry.js} +1 -1
- package/dist/biggive/{p-dc744db4.entry.js → p-914ec938.entry.js} +1 -1
- package/dist/biggive/{p-3345b69d.entry.js → p-96488837.entry.js} +1 -1
- package/dist/biggive/{p-3a6b0d46.entry.js → p-9e102d3e.entry.js} +1 -1
- package/dist/biggive/{p-341fe120.entry.js → p-a08a6522.entry.js} +1 -1
- package/dist/biggive/{p-5c9fb546.entry.js → p-a0c8167c.entry.js} +1 -1
- package/dist/biggive/{p-7994eb80.entry.js → p-a5d402ff.entry.js} +1 -1
- package/dist/biggive/{p-7aca10c5.entry.js → p-a6cc6db0.entry.js} +1 -1
- package/dist/biggive/{p-fc9a2cf8.entry.js → p-a956740f.entry.js} +1 -1
- package/dist/biggive/{p-731d5bac.entry.js → p-aa929d18.entry.js} +1 -1
- package/dist/biggive/p-acf54c24.entry.js +1 -0
- package/dist/biggive/{p-d35170ca.entry.js → p-adf0ac5a.entry.js} +1 -1
- package/dist/biggive/{p-41c31437.entry.js → p-b644b481.entry.js} +1 -1
- package/dist/biggive/{p-fc68f506.entry.js → p-c039f5dc.entry.js} +1 -1
- package/dist/biggive/{p-38fe8830.entry.js → p-c13e69be.entry.js} +1 -1
- package/dist/biggive/{p-d7de8fce.entry.js → p-c1aee468.entry.js} +1 -1
- package/dist/biggive/{p-36ed7b99.entry.js → p-dd93e787.entry.js} +1 -1
- package/dist/biggive/{p-141e2b10.entry.js → p-de5b0605.entry.js} +1 -1
- package/dist/biggive/{p-687415ae.entry.js → p-e505165b.entry.js} +1 -1
- package/dist/biggive/{p-d4104fd3.entry.js → p-ea0fb5ad.entry.js} +1 -1
- package/dist/biggive/{p-e1ca3b18.entry.js → p-ef3ca77f.entry.js} +1 -1
- package/dist/biggive/p-f72f8cdd.entry.js +1 -0
- package/dist/biggive/{p-fed9faa3.entry.js → p-fc0dbbb1.entry.js} +1 -1
- package/dist/biggive/{p-0d0465cb.entry.js → p-fc629e8a.entry.js} +1 -1
- package/dist/biggive/p-l7-FekKE.js +2 -0
- package/dist/cjs/biggive-accordion-entry.cjs.entry.js +1 -1
- package/dist/cjs/biggive-accordion.cjs.entry.js +1 -1
- package/dist/cjs/biggive-article-card.cjs.entry.js +1 -1
- package/dist/cjs/biggive-back-to-top.cjs.entry.js +1 -1
- package/dist/cjs/biggive-basic-card.cjs.entry.js +1 -1
- package/dist/cjs/biggive-biography-card.cjs.entry.js +1 -1
- package/dist/cjs/biggive-boxed-content.cjs.entry.js +1 -1
- package/dist/cjs/biggive-branded-image.cjs.entry.js +1 -1
- package/dist/cjs/biggive-button.cjs.entry.js +1 -1
- package/dist/cjs/biggive-call-to-action.cjs.entry.js +1 -1
- package/dist/cjs/biggive-campaign-card-filter-grid.cjs.entry.js +1 -1
- package/dist/cjs/biggive-campaign-card.cjs.entry.js +1 -1
- package/dist/cjs/biggive-campaign-highlights.cjs.entry.js +1 -1
- package/dist/cjs/biggive-container-card.cjs.entry.js +1 -1
- package/dist/cjs/biggive-cookie-banner.cjs.entry.js +1 -1
- package/dist/cjs/biggive-footer.cjs.entry.js +1 -1
- package/dist/cjs/biggive-form-field-select.cjs.entry.js +1 -1
- package/dist/cjs/biggive-form.cjs.entry.js +1 -1
- package/dist/cjs/biggive-formatted-text.cjs.entry.js +1 -1
- package/dist/cjs/biggive-grid.cjs.entry.js +1 -1
- package/dist/cjs/biggive-heading-banner.cjs.entry.js +1 -1
- package/dist/cjs/biggive-heading.cjs.entry.js +1 -1
- package/dist/cjs/biggive-hero-image.cjs.entry.js +1 -1
- package/dist/cjs/biggive-icon-button.cjs.entry.js +1 -1
- package/dist/cjs/biggive-image-button.cjs.entry.js +1 -1
- package/dist/cjs/biggive-image-card.cjs.entry.js +1 -1
- package/dist/cjs/biggive-image-feature.cjs.entry.js +1 -1
- package/dist/cjs/biggive-image.cjs.entry.js +1 -1
- package/dist/cjs/biggive-main-menu.cjs.entry.js +1 -1
- package/dist/cjs/biggive-misc-icon.cjs.entry.js +1 -1
- package/dist/cjs/biggive-nav-group.cjs.entry.js +1 -1
- package/dist/cjs/biggive-nav-item.cjs.entry.js +1 -1
- package/dist/cjs/biggive-page-column.cjs.entry.js +1 -1
- package/dist/cjs/biggive-page-columns.cjs.entry.js +1 -1
- package/dist/cjs/biggive-page-section.cjs.entry.js +1 -1
- package/dist/cjs/biggive-popup.cjs.entry.js +1 -1
- package/dist/cjs/biggive-progress-bar.cjs.entry.js +1 -1
- package/dist/cjs/biggive-quote.cjs.entry.js +1 -1
- package/dist/cjs/biggive-sheet.cjs.entry.js +1 -1
- package/dist/cjs/biggive-social-icon.cjs.entry.js +1 -1
- package/dist/cjs/biggive-tab.cjs.entry.js +1 -1
- package/dist/cjs/biggive-tabbed-content.cjs.entry.js +1 -1
- package/dist/cjs/biggive-table.cjs.entry.js +1 -1
- package/dist/cjs/biggive-text-input.cjs.entry.js +1 -1
- package/dist/cjs/biggive-timeline-entry.cjs.entry.js +1 -1
- package/dist/cjs/biggive-timeline.cjs.entry.js +1 -1
- package/dist/cjs/biggive-totalizer-ticker-item.cjs.entry.js +1 -1
- package/dist/cjs/biggive-totalizer.cjs.entry.js +1 -1
- package/dist/cjs/biggive-video-feature.cjs.entry.js +1 -1
- package/dist/cjs/biggive-video.cjs.entry.js +1 -1
- package/dist/cjs/biggive.cjs.js +2 -2
- package/dist/cjs/{index-DQ_Q5ber.js → index-9eGSeKBf.js} +229 -1904
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/philco-footer.cjs.entry.js +1 -1
- package/dist/cjs/philco-main-menu.cjs.entry.js +1 -1
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/esm/biggive-accordion-entry.entry.js +1 -1
- package/dist/esm/biggive-accordion.entry.js +1 -1
- package/dist/esm/biggive-article-card.entry.js +1 -1
- package/dist/esm/biggive-back-to-top.entry.js +1 -1
- package/dist/esm/biggive-basic-card.entry.js +1 -1
- package/dist/esm/biggive-biography-card.entry.js +1 -1
- package/dist/esm/biggive-boxed-content.entry.js +1 -1
- package/dist/esm/biggive-branded-image.entry.js +1 -1
- package/dist/esm/biggive-button.entry.js +1 -1
- package/dist/esm/biggive-call-to-action.entry.js +1 -1
- package/dist/esm/biggive-campaign-card-filter-grid.entry.js +1 -1
- package/dist/esm/biggive-campaign-card.entry.js +1 -1
- package/dist/esm/biggive-campaign-highlights.entry.js +1 -1
- package/dist/esm/biggive-container-card.entry.js +1 -1
- package/dist/esm/biggive-cookie-banner.entry.js +1 -1
- package/dist/esm/biggive-footer.entry.js +1 -1
- package/dist/esm/biggive-form-field-select.entry.js +1 -1
- package/dist/esm/biggive-form.entry.js +1 -1
- package/dist/esm/biggive-formatted-text.entry.js +1 -1
- package/dist/esm/biggive-grid.entry.js +1 -1
- package/dist/esm/biggive-heading-banner.entry.js +1 -1
- package/dist/esm/biggive-heading.entry.js +1 -1
- package/dist/esm/biggive-hero-image.entry.js +1 -1
- package/dist/esm/biggive-icon-button.entry.js +1 -1
- package/dist/esm/biggive-image-button.entry.js +1 -1
- package/dist/esm/biggive-image-card.entry.js +1 -1
- package/dist/esm/biggive-image-feature.entry.js +1 -1
- package/dist/esm/biggive-image.entry.js +1 -1
- package/dist/esm/biggive-main-menu.entry.js +1 -1
- package/dist/esm/biggive-misc-icon.entry.js +1 -1
- package/dist/esm/biggive-nav-group.entry.js +1 -1
- package/dist/esm/biggive-nav-item.entry.js +1 -1
- package/dist/esm/biggive-page-column.entry.js +1 -1
- package/dist/esm/biggive-page-columns.entry.js +1 -1
- package/dist/esm/biggive-page-section.entry.js +1 -1
- package/dist/esm/biggive-popup.entry.js +1 -1
- package/dist/esm/biggive-progress-bar.entry.js +1 -1
- package/dist/esm/biggive-quote.entry.js +1 -1
- package/dist/esm/biggive-sheet.entry.js +1 -1
- package/dist/esm/biggive-social-icon.entry.js +1 -1
- package/dist/esm/biggive-tab.entry.js +1 -1
- package/dist/esm/biggive-tabbed-content.entry.js +1 -1
- package/dist/esm/biggive-table.entry.js +1 -1
- package/dist/esm/biggive-text-input.entry.js +1 -1
- package/dist/esm/biggive-timeline-entry.entry.js +1 -1
- package/dist/esm/biggive-timeline.entry.js +1 -1
- package/dist/esm/biggive-totalizer-ticker-item.entry.js +1 -1
- package/dist/esm/biggive-totalizer.entry.js +1 -1
- package/dist/esm/biggive-video-feature.entry.js +1 -1
- package/dist/esm/biggive-video.entry.js +1 -1
- package/dist/esm/biggive.js +3 -3
- package/dist/esm/{index-YKo_OpIM.js → index-l7-FekKE.js} +229 -1904
- package/dist/esm/loader.js +2 -2
- package/dist/esm/philco-footer.entry.js +1 -1
- package/dist/esm/philco-main-menu.entry.js +1 -1
- package/hydrate/index.js +3838 -3848
- package/hydrate/index.mjs +3838 -3848
- package/package.json +1 -1
- package/dist/biggive/p-2b4c37c5.entry.js +0 -1
- package/dist/biggive/p-4ca621e7.entry.js +0 -1
- package/dist/biggive/p-8b8e64db.entry.js +0 -1
- package/dist/biggive/p-YKo_OpIM.js +0 -2
- package/dist/biggive/p-d0113557.entry.js +0 -1
|
@@ -2,254 +2,9 @@ const NAMESPACE = 'biggive';
|
|
|
2
2
|
const BUILD = /* biggive */ { hotModuleReplacement: false, hydratedSelectorName: "hydrated", lazyLoad: true, propChangeCallback: true, shadowDom: true, state: true, updatable: true};
|
|
3
3
|
|
|
4
4
|
/*
|
|
5
|
-
Stencil Client Platform v4.41.
|
|
5
|
+
Stencil Client Platform v4.41.2 | MIT Licensed | https://stenciljs.com
|
|
6
6
|
*/
|
|
7
|
-
var __create = Object.create;
|
|
8
|
-
var __defProp = Object.defineProperty;
|
|
9
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
10
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
11
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
12
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
13
|
-
var __typeError = (msg) => {
|
|
14
|
-
throw TypeError(msg);
|
|
15
|
-
};
|
|
16
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
17
|
-
var __commonJS = (cb, mod) => function __require() {
|
|
18
|
-
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
19
|
-
};
|
|
20
|
-
var __export = (target, all) => {
|
|
21
|
-
for (var name in all)
|
|
22
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
23
|
-
};
|
|
24
|
-
var __copyProps = (to, from, except, desc) => {
|
|
25
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
26
|
-
for (let key of __getOwnPropNames(from))
|
|
27
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
28
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
29
|
-
}
|
|
30
|
-
return to;
|
|
31
|
-
};
|
|
32
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
33
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
34
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
35
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
36
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
37
|
-
__defProp(target, "default", { value: mod, enumerable: true }) ,
|
|
38
|
-
mod
|
|
39
|
-
));
|
|
40
|
-
var __publicField = (obj, key, value) => __defNormalProp(obj, key + "" , value);
|
|
41
|
-
var __accessCheck = (obj, member, msg) => member.has(obj) || __typeError("Cannot " + msg);
|
|
42
|
-
var __privateGet = (obj, member, getter) => (__accessCheck(obj, member, "read from private field"), getter ? getter.call(obj) : member.get(obj));
|
|
43
|
-
var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot add the same private member more than once") : member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
|
|
44
|
-
var __privateSet = (obj, member, value, setter) => (__accessCheck(obj, member, "write to private field"), member.set(obj, value), value);
|
|
45
|
-
var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "access private method"), method);
|
|
46
7
|
|
|
47
|
-
// node_modules/balanced-match/index.js
|
|
48
|
-
var require_balanced_match = __commonJS({
|
|
49
|
-
"node_modules/balanced-match/index.js"(exports, module) {
|
|
50
|
-
module.exports = balanced;
|
|
51
|
-
function balanced(a, b, str) {
|
|
52
|
-
if (a instanceof RegExp) a = maybeMatch(a, str);
|
|
53
|
-
if (b instanceof RegExp) b = maybeMatch(b, str);
|
|
54
|
-
var r = range(a, b, str);
|
|
55
|
-
return r && {
|
|
56
|
-
start: r[0],
|
|
57
|
-
end: r[1],
|
|
58
|
-
pre: str.slice(0, r[0]),
|
|
59
|
-
body: str.slice(r[0] + a.length, r[1]),
|
|
60
|
-
post: str.slice(r[1] + b.length)
|
|
61
|
-
};
|
|
62
|
-
}
|
|
63
|
-
function maybeMatch(reg, str) {
|
|
64
|
-
var m = str.match(reg);
|
|
65
|
-
return m ? m[0] : null;
|
|
66
|
-
}
|
|
67
|
-
balanced.range = range;
|
|
68
|
-
function range(a, b, str) {
|
|
69
|
-
var begs, beg, left, right, result;
|
|
70
|
-
var ai = str.indexOf(a);
|
|
71
|
-
var bi = str.indexOf(b, ai + 1);
|
|
72
|
-
var i2 = ai;
|
|
73
|
-
if (ai >= 0 && bi > 0) {
|
|
74
|
-
if (a === b) {
|
|
75
|
-
return [ai, bi];
|
|
76
|
-
}
|
|
77
|
-
begs = [];
|
|
78
|
-
left = str.length;
|
|
79
|
-
while (i2 >= 0 && !result) {
|
|
80
|
-
if (i2 == ai) {
|
|
81
|
-
begs.push(i2);
|
|
82
|
-
ai = str.indexOf(a, i2 + 1);
|
|
83
|
-
} else if (begs.length == 1) {
|
|
84
|
-
result = [begs.pop(), bi];
|
|
85
|
-
} else {
|
|
86
|
-
beg = begs.pop();
|
|
87
|
-
if (beg < left) {
|
|
88
|
-
left = beg;
|
|
89
|
-
right = bi;
|
|
90
|
-
}
|
|
91
|
-
bi = str.indexOf(b, i2 + 1);
|
|
92
|
-
}
|
|
93
|
-
i2 = ai < bi && ai >= 0 ? ai : bi;
|
|
94
|
-
}
|
|
95
|
-
if (begs.length) {
|
|
96
|
-
result = [left, right];
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
return result;
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
});
|
|
103
|
-
|
|
104
|
-
// node_modules/brace-expansion/index.js
|
|
105
|
-
var require_brace_expansion = __commonJS({
|
|
106
|
-
"node_modules/brace-expansion/index.js"(exports, module) {
|
|
107
|
-
var balanced = require_balanced_match();
|
|
108
|
-
module.exports = expandTop;
|
|
109
|
-
var escSlash = "\0SLASH" + Math.random() + "\0";
|
|
110
|
-
var escOpen = "\0OPEN" + Math.random() + "\0";
|
|
111
|
-
var escClose = "\0CLOSE" + Math.random() + "\0";
|
|
112
|
-
var escComma = "\0COMMA" + Math.random() + "\0";
|
|
113
|
-
var escPeriod = "\0PERIOD" + Math.random() + "\0";
|
|
114
|
-
function numeric(str) {
|
|
115
|
-
return parseInt(str, 10) == str ? parseInt(str, 10) : str.charCodeAt(0);
|
|
116
|
-
}
|
|
117
|
-
function escapeBraces(str) {
|
|
118
|
-
return str.split("\\\\").join(escSlash).split("\\{").join(escOpen).split("\\}").join(escClose).split("\\,").join(escComma).split("\\.").join(escPeriod);
|
|
119
|
-
}
|
|
120
|
-
function unescapeBraces(str) {
|
|
121
|
-
return str.split(escSlash).join("\\").split(escOpen).join("{").split(escClose).join("}").split(escComma).join(",").split(escPeriod).join(".");
|
|
122
|
-
}
|
|
123
|
-
function parseCommaParts(str) {
|
|
124
|
-
if (!str)
|
|
125
|
-
return [""];
|
|
126
|
-
var parts = [];
|
|
127
|
-
var m = balanced("{", "}", str);
|
|
128
|
-
if (!m)
|
|
129
|
-
return str.split(",");
|
|
130
|
-
var pre = m.pre;
|
|
131
|
-
var body = m.body;
|
|
132
|
-
var post = m.post;
|
|
133
|
-
var p = pre.split(",");
|
|
134
|
-
p[p.length - 1] += "{" + body + "}";
|
|
135
|
-
var postParts = parseCommaParts(post);
|
|
136
|
-
if (post.length) {
|
|
137
|
-
p[p.length - 1] += postParts.shift();
|
|
138
|
-
p.push.apply(p, postParts);
|
|
139
|
-
}
|
|
140
|
-
parts.push.apply(parts, p);
|
|
141
|
-
return parts;
|
|
142
|
-
}
|
|
143
|
-
function expandTop(str) {
|
|
144
|
-
if (!str)
|
|
145
|
-
return [];
|
|
146
|
-
if (str.substr(0, 2) === "{}") {
|
|
147
|
-
str = "\\{\\}" + str.substr(2);
|
|
148
|
-
}
|
|
149
|
-
return expand2(escapeBraces(str), true).map(unescapeBraces);
|
|
150
|
-
}
|
|
151
|
-
function embrace(str) {
|
|
152
|
-
return "{" + str + "}";
|
|
153
|
-
}
|
|
154
|
-
function isPadded(el) {
|
|
155
|
-
return /^-?0\d/.test(el);
|
|
156
|
-
}
|
|
157
|
-
function lte(i2, y) {
|
|
158
|
-
return i2 <= y;
|
|
159
|
-
}
|
|
160
|
-
function gte(i2, y) {
|
|
161
|
-
return i2 >= y;
|
|
162
|
-
}
|
|
163
|
-
function expand2(str, isTop) {
|
|
164
|
-
var expansions = [];
|
|
165
|
-
var m = balanced("{", "}", str);
|
|
166
|
-
if (!m) return [str];
|
|
167
|
-
var pre = m.pre;
|
|
168
|
-
var post = m.post.length ? expand2(m.post, false) : [""];
|
|
169
|
-
if (/\$$/.test(m.pre)) {
|
|
170
|
-
for (var k = 0; k < post.length; k++) {
|
|
171
|
-
var expansion = pre + "{" + m.body + "}" + post[k];
|
|
172
|
-
expansions.push(expansion);
|
|
173
|
-
}
|
|
174
|
-
} else {
|
|
175
|
-
var isNumericSequence = /^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(m.body);
|
|
176
|
-
var isAlphaSequence = /^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(m.body);
|
|
177
|
-
var isSequence = isNumericSequence || isAlphaSequence;
|
|
178
|
-
var isOptions = m.body.indexOf(",") >= 0;
|
|
179
|
-
if (!isSequence && !isOptions) {
|
|
180
|
-
if (m.post.match(/,(?!,).*\}/)) {
|
|
181
|
-
str = m.pre + "{" + m.body + escClose + m.post;
|
|
182
|
-
return expand2(str);
|
|
183
|
-
}
|
|
184
|
-
return [str];
|
|
185
|
-
}
|
|
186
|
-
var n;
|
|
187
|
-
if (isSequence) {
|
|
188
|
-
n = m.body.split(/\.\./);
|
|
189
|
-
} else {
|
|
190
|
-
n = parseCommaParts(m.body);
|
|
191
|
-
if (n.length === 1) {
|
|
192
|
-
n = expand2(n[0], false).map(embrace);
|
|
193
|
-
if (n.length === 1) {
|
|
194
|
-
return post.map(function(p) {
|
|
195
|
-
return m.pre + n[0] + p;
|
|
196
|
-
});
|
|
197
|
-
}
|
|
198
|
-
}
|
|
199
|
-
}
|
|
200
|
-
var N;
|
|
201
|
-
if (isSequence) {
|
|
202
|
-
var x = numeric(n[0]);
|
|
203
|
-
var y = numeric(n[1]);
|
|
204
|
-
var width = Math.max(n[0].length, n[1].length);
|
|
205
|
-
var incr = n.length == 3 ? Math.abs(numeric(n[2])) : 1;
|
|
206
|
-
var test = lte;
|
|
207
|
-
var reverse = y < x;
|
|
208
|
-
if (reverse) {
|
|
209
|
-
incr *= -1;
|
|
210
|
-
test = gte;
|
|
211
|
-
}
|
|
212
|
-
var pad = n.some(isPadded);
|
|
213
|
-
N = [];
|
|
214
|
-
for (var i2 = x; test(i2, y); i2 += incr) {
|
|
215
|
-
var c;
|
|
216
|
-
if (isAlphaSequence) {
|
|
217
|
-
c = String.fromCharCode(i2);
|
|
218
|
-
if (c === "\\")
|
|
219
|
-
c = "";
|
|
220
|
-
} else {
|
|
221
|
-
c = String(i2);
|
|
222
|
-
if (pad) {
|
|
223
|
-
var need = width - c.length;
|
|
224
|
-
if (need > 0) {
|
|
225
|
-
var z = new Array(need + 1).join("0");
|
|
226
|
-
if (i2 < 0)
|
|
227
|
-
c = "-" + z + c.slice(1);
|
|
228
|
-
else
|
|
229
|
-
c = z + c;
|
|
230
|
-
}
|
|
231
|
-
}
|
|
232
|
-
}
|
|
233
|
-
N.push(c);
|
|
234
|
-
}
|
|
235
|
-
} else {
|
|
236
|
-
N = [];
|
|
237
|
-
for (var j = 0; j < n.length; j++) {
|
|
238
|
-
N.push.apply(N, expand2(n[j], false));
|
|
239
|
-
}
|
|
240
|
-
}
|
|
241
|
-
for (var j = 0; j < N.length; j++) {
|
|
242
|
-
for (var k = 0; k < post.length; k++) {
|
|
243
|
-
var expansion = pre + N[j] + post[k];
|
|
244
|
-
if (!isTop || isSequence || expansion)
|
|
245
|
-
expansions.push(expansion);
|
|
246
|
-
}
|
|
247
|
-
}
|
|
248
|
-
}
|
|
249
|
-
return expansions;
|
|
250
|
-
}
|
|
251
|
-
}
|
|
252
|
-
});
|
|
253
8
|
|
|
254
9
|
// src/utils/constants.ts
|
|
255
10
|
var SVG_NS = "http://www.w3.org/2000/svg";
|
|
@@ -354,1637 +109,117 @@ var consoleError = (e, el) => (0, console.error)(e, el);
|
|
|
354
109
|
|
|
355
110
|
// src/client/client-load-module.ts
|
|
356
111
|
var cmpModules = /* @__PURE__ */ new Map();
|
|
357
|
-
var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
358
|
-
const exportName = cmpMeta.$tagName$.replace(/-/g, "_");
|
|
359
|
-
const bundleId = cmpMeta.$lazyBundleId$;
|
|
360
|
-
if (!bundleId) {
|
|
361
|
-
return void 0;
|
|
362
|
-
}
|
|
363
|
-
const module = cmpModules.get(bundleId) ;
|
|
364
|
-
if (module) {
|
|
365
|
-
return module[exportName];
|
|
366
|
-
}
|
|
367
|
-
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/
|
|
368
|
-
return import(
|
|
369
|
-
/* @vite-ignore */
|
|
370
|
-
/* webpackInclude: /\.entry\.js$/ */
|
|
371
|
-
/* webpackExclude: /\.system\.entry\.js$/ */
|
|
372
|
-
/* webpackMode: "lazy" */
|
|
373
|
-
`./${bundleId}.entry.js${""}`
|
|
374
|
-
).then(
|
|
375
|
-
(importedModule) => {
|
|
376
|
-
{
|
|
377
|
-
cmpModules.set(bundleId, importedModule);
|
|
378
|
-
}
|
|
379
|
-
return importedModule[exportName];
|
|
380
|
-
},
|
|
381
|
-
(e) => {
|
|
382
|
-
consoleError(e, hostRef.$hostElement$);
|
|
383
|
-
}
|
|
384
|
-
);
|
|
385
|
-
};
|
|
386
|
-
|
|
387
|
-
// src/client/client-style.ts
|
|
388
|
-
var styles = /* @__PURE__ */ new Map();
|
|
389
|
-
|
|
390
|
-
// src/runtime/runtime-constants.ts
|
|
391
|
-
var CONTENT_REF_ID = "r";
|
|
392
|
-
var ORG_LOCATION_ID = "o";
|
|
393
|
-
var SLOT_NODE_ID = "s";
|
|
394
|
-
var TEXT_NODE_ID = "t";
|
|
395
|
-
var COMMENT_NODE_ID = "c";
|
|
396
|
-
var HYDRATE_ID = "s-id";
|
|
397
|
-
var HYDRATED_STYLE_ID = "sty-id";
|
|
398
|
-
var HYDRATE_CHILD_ID = "c-id";
|
|
399
|
-
var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
|
|
400
|
-
var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
|
|
401
|
-
var win = typeof window !== "undefined" ? window : {};
|
|
402
|
-
var H = win.HTMLElement || class {
|
|
403
|
-
};
|
|
404
|
-
var plt = {
|
|
405
|
-
$flags$: 0,
|
|
406
|
-
$resourcesUrl$: "",
|
|
407
|
-
jmp: (h2) => h2(),
|
|
408
|
-
raf: (h2) => requestAnimationFrame(h2),
|
|
409
|
-
ael: (el, eventName, listener, opts) => el.addEventListener(eventName, listener, opts),
|
|
410
|
-
rel: (el, eventName, listener, opts) => el.removeEventListener(eventName, listener, opts),
|
|
411
|
-
ce: (eventName, opts) => new CustomEvent(eventName, opts)
|
|
412
|
-
};
|
|
413
|
-
var supportsShadow = BUILD.shadowDom;
|
|
414
|
-
var promiseResolve = (v) => Promise.resolve(v);
|
|
415
|
-
var supportsConstructableStylesheets = /* @__PURE__ */ (() => {
|
|
416
|
-
try {
|
|
417
|
-
if (!win.document.adoptedStyleSheets) {
|
|
418
|
-
return false;
|
|
419
|
-
}
|
|
420
|
-
new CSSStyleSheet();
|
|
421
|
-
return typeof new CSSStyleSheet().replaceSync === "function";
|
|
422
|
-
} catch (e) {
|
|
423
|
-
}
|
|
424
|
-
return false;
|
|
425
|
-
})() ;
|
|
426
|
-
var supportsMutableAdoptedStyleSheets = supportsConstructableStylesheets ? /* @__PURE__ */ (() => !!win.document && Object.getOwnPropertyDescriptor(win.document.adoptedStyleSheets, "length").writable)() : false;
|
|
427
|
-
var queuePending = false;
|
|
428
|
-
var queueDomReads = [];
|
|
429
|
-
var queueDomWrites = [];
|
|
430
|
-
var queueTask = (queue, write) => (cb) => {
|
|
431
|
-
queue.push(cb);
|
|
432
|
-
if (!queuePending) {
|
|
433
|
-
queuePending = true;
|
|
434
|
-
if (write && plt.$flags$ & 4 /* queueSync */) {
|
|
435
|
-
nextTick(flush);
|
|
436
|
-
} else {
|
|
437
|
-
plt.raf(flush);
|
|
438
|
-
}
|
|
439
|
-
}
|
|
440
|
-
};
|
|
441
|
-
var consume = (queue) => {
|
|
442
|
-
for (let i2 = 0; i2 < queue.length; i2++) {
|
|
443
|
-
try {
|
|
444
|
-
queue[i2](performance.now());
|
|
445
|
-
} catch (e) {
|
|
446
|
-
consoleError(e);
|
|
447
|
-
}
|
|
448
|
-
}
|
|
449
|
-
queue.length = 0;
|
|
450
|
-
};
|
|
451
|
-
var flush = () => {
|
|
452
|
-
consume(queueDomReads);
|
|
453
|
-
{
|
|
454
|
-
consume(queueDomWrites);
|
|
455
|
-
if (queuePending = queueDomReads.length > 0) {
|
|
456
|
-
plt.raf(flush);
|
|
457
|
-
}
|
|
458
|
-
}
|
|
459
|
-
};
|
|
460
|
-
var nextTick = (cb) => promiseResolve().then(cb);
|
|
461
|
-
var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
|
|
462
|
-
|
|
463
|
-
// src/runtime/asset-path.ts
|
|
464
|
-
var getAssetPath = (path2) => {
|
|
465
|
-
const assetUrl = new URL(path2, plt.$resourcesUrl$);
|
|
466
|
-
return assetUrl.origin !== win.location.origin ? assetUrl.href : assetUrl.pathname;
|
|
467
|
-
};
|
|
468
|
-
var isComplexType = (o) => {
|
|
469
|
-
o = typeof o;
|
|
470
|
-
return o === "object" || o === "function";
|
|
471
|
-
};
|
|
472
|
-
|
|
473
|
-
// node_modules/minimatch/dist/esm/index.js
|
|
474
|
-
var import_brace_expansion = __toESM(require_brace_expansion());
|
|
475
|
-
|
|
476
|
-
// node_modules/minimatch/dist/esm/assert-valid-pattern.js
|
|
477
|
-
var MAX_PATTERN_LENGTH = 1024 * 64;
|
|
478
|
-
var assertValidPattern = (pattern) => {
|
|
479
|
-
if (typeof pattern !== "string") {
|
|
480
|
-
throw new TypeError("invalid pattern");
|
|
481
|
-
}
|
|
482
|
-
if (pattern.length > MAX_PATTERN_LENGTH) {
|
|
483
|
-
throw new TypeError("pattern is too long");
|
|
484
|
-
}
|
|
485
|
-
};
|
|
486
|
-
|
|
487
|
-
// node_modules/minimatch/dist/esm/brace-expressions.js
|
|
488
|
-
var posixClasses = {
|
|
489
|
-
"[:alnum:]": ["\\p{L}\\p{Nl}\\p{Nd}", true],
|
|
490
|
-
"[:alpha:]": ["\\p{L}\\p{Nl}", true],
|
|
491
|
-
"[:ascii:]": ["\\x00-\\x7f", false],
|
|
492
|
-
"[:blank:]": ["\\p{Zs}\\t", true],
|
|
493
|
-
"[:cntrl:]": ["\\p{Cc}", true],
|
|
494
|
-
"[:digit:]": ["\\p{Nd}", true],
|
|
495
|
-
"[:graph:]": ["\\p{Z}\\p{C}", true, true],
|
|
496
|
-
"[:lower:]": ["\\p{Ll}", true],
|
|
497
|
-
"[:print:]": ["\\p{C}", true],
|
|
498
|
-
"[:punct:]": ["\\p{P}", true],
|
|
499
|
-
"[:space:]": ["\\p{Z}\\t\\r\\n\\v\\f", true],
|
|
500
|
-
"[:upper:]": ["\\p{Lu}", true],
|
|
501
|
-
"[:word:]": ["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}", true],
|
|
502
|
-
"[:xdigit:]": ["A-Fa-f0-9", false]
|
|
503
|
-
};
|
|
504
|
-
var braceEscape = (s) => s.replace(/[[\]\\-]/g, "\\$&");
|
|
505
|
-
var regexpEscape = (s) => s.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&");
|
|
506
|
-
var rangesToString = (ranges) => ranges.join("");
|
|
507
|
-
var parseClass = (glob, position) => {
|
|
508
|
-
const pos = position;
|
|
509
|
-
if (glob.charAt(pos) !== "[") {
|
|
510
|
-
throw new Error("not in a brace expression");
|
|
511
|
-
}
|
|
512
|
-
const ranges = [];
|
|
513
|
-
const negs = [];
|
|
514
|
-
let i2 = pos + 1;
|
|
515
|
-
let sawStart = false;
|
|
516
|
-
let uflag = false;
|
|
517
|
-
let escaping = false;
|
|
518
|
-
let negate = false;
|
|
519
|
-
let endPos = pos;
|
|
520
|
-
let rangeStart = "";
|
|
521
|
-
WHILE: while (i2 < glob.length) {
|
|
522
|
-
const c = glob.charAt(i2);
|
|
523
|
-
if ((c === "!" || c === "^") && i2 === pos + 1) {
|
|
524
|
-
negate = true;
|
|
525
|
-
i2++;
|
|
526
|
-
continue;
|
|
527
|
-
}
|
|
528
|
-
if (c === "]" && sawStart && !escaping) {
|
|
529
|
-
endPos = i2 + 1;
|
|
530
|
-
break;
|
|
531
|
-
}
|
|
532
|
-
sawStart = true;
|
|
533
|
-
if (c === "\\") {
|
|
534
|
-
if (!escaping) {
|
|
535
|
-
escaping = true;
|
|
536
|
-
i2++;
|
|
537
|
-
continue;
|
|
538
|
-
}
|
|
539
|
-
}
|
|
540
|
-
if (c === "[" && !escaping) {
|
|
541
|
-
for (const [cls, [unip, u, neg]] of Object.entries(posixClasses)) {
|
|
542
|
-
if (glob.startsWith(cls, i2)) {
|
|
543
|
-
if (rangeStart) {
|
|
544
|
-
return ["$.", false, glob.length - pos, true];
|
|
545
|
-
}
|
|
546
|
-
i2 += cls.length;
|
|
547
|
-
if (neg)
|
|
548
|
-
negs.push(unip);
|
|
549
|
-
else
|
|
550
|
-
ranges.push(unip);
|
|
551
|
-
uflag = uflag || u;
|
|
552
|
-
continue WHILE;
|
|
553
|
-
}
|
|
554
|
-
}
|
|
555
|
-
}
|
|
556
|
-
escaping = false;
|
|
557
|
-
if (rangeStart) {
|
|
558
|
-
if (c > rangeStart) {
|
|
559
|
-
ranges.push(braceEscape(rangeStart) + "-" + braceEscape(c));
|
|
560
|
-
} else if (c === rangeStart) {
|
|
561
|
-
ranges.push(braceEscape(c));
|
|
562
|
-
}
|
|
563
|
-
rangeStart = "";
|
|
564
|
-
i2++;
|
|
565
|
-
continue;
|
|
566
|
-
}
|
|
567
|
-
if (glob.startsWith("-]", i2 + 1)) {
|
|
568
|
-
ranges.push(braceEscape(c + "-"));
|
|
569
|
-
i2 += 2;
|
|
570
|
-
continue;
|
|
571
|
-
}
|
|
572
|
-
if (glob.startsWith("-", i2 + 1)) {
|
|
573
|
-
rangeStart = c;
|
|
574
|
-
i2 += 2;
|
|
575
|
-
continue;
|
|
576
|
-
}
|
|
577
|
-
ranges.push(braceEscape(c));
|
|
578
|
-
i2++;
|
|
579
|
-
}
|
|
580
|
-
if (endPos < i2) {
|
|
581
|
-
return ["", false, 0, false];
|
|
582
|
-
}
|
|
583
|
-
if (!ranges.length && !negs.length) {
|
|
584
|
-
return ["$.", false, glob.length - pos, true];
|
|
585
|
-
}
|
|
586
|
-
if (negs.length === 0 && ranges.length === 1 && /^\\?.$/.test(ranges[0]) && !negate) {
|
|
587
|
-
const r = ranges[0].length === 2 ? ranges[0].slice(-1) : ranges[0];
|
|
588
|
-
return [regexpEscape(r), false, endPos - pos, false];
|
|
589
|
-
}
|
|
590
|
-
const sranges = "[" + (negate ? "^" : "") + rangesToString(ranges) + "]";
|
|
591
|
-
const snegs = "[" + (negate ? "" : "^") + rangesToString(negs) + "]";
|
|
592
|
-
const comb = ranges.length && negs.length ? "(" + sranges + "|" + snegs + ")" : ranges.length ? sranges : snegs;
|
|
593
|
-
return [comb, uflag, endPos - pos, true];
|
|
594
|
-
};
|
|
595
|
-
|
|
596
|
-
// node_modules/minimatch/dist/esm/unescape.js
|
|
597
|
-
var unescape = (s, { windowsPathsNoEscape = false } = {}) => {
|
|
598
|
-
return windowsPathsNoEscape ? s.replace(/\[([^\/\\])\]/g, "$1") : s.replace(/((?!\\).|^)\[([^\/\\])\]/g, "$1$2").replace(/\\([^\/])/g, "$1");
|
|
599
|
-
};
|
|
600
|
-
|
|
601
|
-
// node_modules/minimatch/dist/esm/ast.js
|
|
602
|
-
var types = /* @__PURE__ */ new Set(["!", "?", "+", "*", "@"]);
|
|
603
|
-
var isExtglobType = (c) => types.has(c);
|
|
604
|
-
var startNoTraversal = "(?!(?:^|/)\\.\\.?(?:$|/))";
|
|
605
|
-
var startNoDot = "(?!\\.)";
|
|
606
|
-
var addPatternStart = /* @__PURE__ */ new Set(["[", "."]);
|
|
607
|
-
var justDots = /* @__PURE__ */ new Set(["..", "."]);
|
|
608
|
-
var reSpecials = new Set("().*{}+?[]^$\\!");
|
|
609
|
-
var regExpEscape = (s) => s.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&");
|
|
610
|
-
var qmark = "[^/]";
|
|
611
|
-
var star = qmark + "*?";
|
|
612
|
-
var starNoEmpty = qmark + "+?";
|
|
613
|
-
var _root, _hasMagic, _uflag, _parts, _parent, _parentIndex, _negs, _filledNegs, _options, _toString, _emptyExt, _AST_instances, fillNegs_fn, _AST_static, parseAST_fn, partsToRegExp_fn, parseGlob_fn;
|
|
614
|
-
var _AST = class _AST {
|
|
615
|
-
constructor(type, parent, options = {}) {
|
|
616
|
-
__privateAdd(this, _AST_instances);
|
|
617
|
-
__publicField(this, "type");
|
|
618
|
-
__privateAdd(this, _root);
|
|
619
|
-
__privateAdd(this, _hasMagic);
|
|
620
|
-
__privateAdd(this, _uflag, false);
|
|
621
|
-
__privateAdd(this, _parts, []);
|
|
622
|
-
__privateAdd(this, _parent);
|
|
623
|
-
__privateAdd(this, _parentIndex);
|
|
624
|
-
__privateAdd(this, _negs);
|
|
625
|
-
__privateAdd(this, _filledNegs, false);
|
|
626
|
-
__privateAdd(this, _options);
|
|
627
|
-
__privateAdd(this, _toString);
|
|
628
|
-
// set to true if it's an extglob with no children
|
|
629
|
-
// (which really means one child of '')
|
|
630
|
-
__privateAdd(this, _emptyExt, false);
|
|
631
|
-
this.type = type;
|
|
632
|
-
if (type)
|
|
633
|
-
__privateSet(this, _hasMagic, true);
|
|
634
|
-
__privateSet(this, _parent, parent);
|
|
635
|
-
__privateSet(this, _root, __privateGet(this, _parent) ? __privateGet(__privateGet(this, _parent), _root) : this);
|
|
636
|
-
__privateSet(this, _options, __privateGet(this, _root) === this ? options : __privateGet(__privateGet(this, _root), _options));
|
|
637
|
-
__privateSet(this, _negs, __privateGet(this, _root) === this ? [] : __privateGet(__privateGet(this, _root), _negs));
|
|
638
|
-
if (type === "!" && !__privateGet(__privateGet(this, _root), _filledNegs))
|
|
639
|
-
__privateGet(this, _negs).push(this);
|
|
640
|
-
__privateSet(this, _parentIndex, __privateGet(this, _parent) ? __privateGet(__privateGet(this, _parent), _parts).length : 0);
|
|
641
|
-
}
|
|
642
|
-
get hasMagic() {
|
|
643
|
-
if (__privateGet(this, _hasMagic) !== void 0)
|
|
644
|
-
return __privateGet(this, _hasMagic);
|
|
645
|
-
for (const p of __privateGet(this, _parts)) {
|
|
646
|
-
if (typeof p === "string")
|
|
647
|
-
continue;
|
|
648
|
-
if (p.type || p.hasMagic)
|
|
649
|
-
return __privateSet(this, _hasMagic, true);
|
|
650
|
-
}
|
|
651
|
-
return __privateGet(this, _hasMagic);
|
|
652
|
-
}
|
|
653
|
-
// reconstructs the pattern
|
|
654
|
-
toString() {
|
|
655
|
-
if (__privateGet(this, _toString) !== void 0)
|
|
656
|
-
return __privateGet(this, _toString);
|
|
657
|
-
if (!this.type) {
|
|
658
|
-
return __privateSet(this, _toString, __privateGet(this, _parts).map((p) => String(p)).join(""));
|
|
659
|
-
} else {
|
|
660
|
-
return __privateSet(this, _toString, this.type + "(" + __privateGet(this, _parts).map((p) => String(p)).join("|") + ")");
|
|
661
|
-
}
|
|
662
|
-
}
|
|
663
|
-
push(...parts) {
|
|
664
|
-
for (const p of parts) {
|
|
665
|
-
if (p === "")
|
|
666
|
-
continue;
|
|
667
|
-
if (typeof p !== "string" && !(p instanceof _AST && __privateGet(p, _parent) === this)) {
|
|
668
|
-
throw new Error("invalid part: " + p);
|
|
669
|
-
}
|
|
670
|
-
__privateGet(this, _parts).push(p);
|
|
671
|
-
}
|
|
672
|
-
}
|
|
673
|
-
toJSON() {
|
|
674
|
-
var _a;
|
|
675
|
-
const ret = this.type === null ? __privateGet(this, _parts).slice().map((p) => typeof p === "string" ? p : p.toJSON()) : [this.type, ...__privateGet(this, _parts).map((p) => p.toJSON())];
|
|
676
|
-
if (this.isStart() && !this.type)
|
|
677
|
-
ret.unshift([]);
|
|
678
|
-
if (this.isEnd() && (this === __privateGet(this, _root) || __privateGet(__privateGet(this, _root), _filledNegs) && ((_a = __privateGet(this, _parent)) == null ? void 0 : _a.type) === "!")) {
|
|
679
|
-
ret.push({});
|
|
680
|
-
}
|
|
681
|
-
return ret;
|
|
682
|
-
}
|
|
683
|
-
isStart() {
|
|
684
|
-
var _a;
|
|
685
|
-
if (__privateGet(this, _root) === this)
|
|
686
|
-
return true;
|
|
687
|
-
if (!((_a = __privateGet(this, _parent)) == null ? void 0 : _a.isStart()))
|
|
688
|
-
return false;
|
|
689
|
-
if (__privateGet(this, _parentIndex) === 0)
|
|
690
|
-
return true;
|
|
691
|
-
const p = __privateGet(this, _parent);
|
|
692
|
-
for (let i2 = 0; i2 < __privateGet(this, _parentIndex); i2++) {
|
|
693
|
-
const pp = __privateGet(p, _parts)[i2];
|
|
694
|
-
if (!(pp instanceof _AST && pp.type === "!")) {
|
|
695
|
-
return false;
|
|
696
|
-
}
|
|
697
|
-
}
|
|
698
|
-
return true;
|
|
699
|
-
}
|
|
700
|
-
isEnd() {
|
|
701
|
-
var _a, _b, _c;
|
|
702
|
-
if (__privateGet(this, _root) === this)
|
|
703
|
-
return true;
|
|
704
|
-
if (((_a = __privateGet(this, _parent)) == null ? void 0 : _a.type) === "!")
|
|
705
|
-
return true;
|
|
706
|
-
if (!((_b = __privateGet(this, _parent)) == null ? void 0 : _b.isEnd()))
|
|
707
|
-
return false;
|
|
708
|
-
if (!this.type)
|
|
709
|
-
return (_c = __privateGet(this, _parent)) == null ? void 0 : _c.isEnd();
|
|
710
|
-
const pl = __privateGet(this, _parent) ? __privateGet(__privateGet(this, _parent), _parts).length : 0;
|
|
711
|
-
return __privateGet(this, _parentIndex) === pl - 1;
|
|
712
|
-
}
|
|
713
|
-
copyIn(part) {
|
|
714
|
-
if (typeof part === "string")
|
|
715
|
-
this.push(part);
|
|
716
|
-
else
|
|
717
|
-
this.push(part.clone(this));
|
|
718
|
-
}
|
|
719
|
-
clone(parent) {
|
|
720
|
-
const c = new _AST(this.type, parent);
|
|
721
|
-
for (const p of __privateGet(this, _parts)) {
|
|
722
|
-
c.copyIn(p);
|
|
723
|
-
}
|
|
724
|
-
return c;
|
|
725
|
-
}
|
|
726
|
-
static fromGlob(pattern, options = {}) {
|
|
727
|
-
var _a;
|
|
728
|
-
const ast = new _AST(null, void 0, options);
|
|
729
|
-
__privateMethod(_a = _AST, _AST_static, parseAST_fn).call(_a, pattern, ast, 0, options);
|
|
730
|
-
return ast;
|
|
731
|
-
}
|
|
732
|
-
// returns the regular expression if there's magic, or the unescaped
|
|
733
|
-
// string if not.
|
|
734
|
-
toMMPattern() {
|
|
735
|
-
if (this !== __privateGet(this, _root))
|
|
736
|
-
return __privateGet(this, _root).toMMPattern();
|
|
737
|
-
const glob = this.toString();
|
|
738
|
-
const [re, body, hasMagic, uflag] = this.toRegExpSource();
|
|
739
|
-
const anyMagic = hasMagic || __privateGet(this, _hasMagic) || __privateGet(this, _options).nocase && !__privateGet(this, _options).nocaseMagicOnly && glob.toUpperCase() !== glob.toLowerCase();
|
|
740
|
-
if (!anyMagic) {
|
|
741
|
-
return body;
|
|
742
|
-
}
|
|
743
|
-
const flags = (__privateGet(this, _options).nocase ? "i" : "") + (uflag ? "u" : "");
|
|
744
|
-
return Object.assign(new RegExp(`^${re}$`, flags), {
|
|
745
|
-
_src: re,
|
|
746
|
-
_glob: glob
|
|
747
|
-
});
|
|
748
|
-
}
|
|
749
|
-
get options() {
|
|
750
|
-
return __privateGet(this, _options);
|
|
751
|
-
}
|
|
752
|
-
// returns the string match, the regexp source, whether there's magic
|
|
753
|
-
// in the regexp (so a regular expression is required) and whether or
|
|
754
|
-
// not the uflag is needed for the regular expression (for posix classes)
|
|
755
|
-
// TODO: instead of injecting the start/end at this point, just return
|
|
756
|
-
// the BODY of the regexp, along with the start/end portions suitable
|
|
757
|
-
// for binding the start/end in either a joined full-path makeRe context
|
|
758
|
-
// (where we bind to (^|/), or a standalone matchPart context (where
|
|
759
|
-
// we bind to ^, and not /). Otherwise slashes get duped!
|
|
760
|
-
//
|
|
761
|
-
// In part-matching mode, the start is:
|
|
762
|
-
// - if not isStart: nothing
|
|
763
|
-
// - if traversal possible, but not allowed: ^(?!\.\.?$)
|
|
764
|
-
// - if dots allowed or not possible: ^
|
|
765
|
-
// - if dots possible and not allowed: ^(?!\.)
|
|
766
|
-
// end is:
|
|
767
|
-
// - if not isEnd(): nothing
|
|
768
|
-
// - else: $
|
|
769
|
-
//
|
|
770
|
-
// In full-path matching mode, we put the slash at the START of the
|
|
771
|
-
// pattern, so start is:
|
|
772
|
-
// - if first pattern: same as part-matching mode
|
|
773
|
-
// - if not isStart(): nothing
|
|
774
|
-
// - if traversal possible, but not allowed: /(?!\.\.?(?:$|/))
|
|
775
|
-
// - if dots allowed or not possible: /
|
|
776
|
-
// - if dots possible and not allowed: /(?!\.)
|
|
777
|
-
// end is:
|
|
778
|
-
// - if last pattern, same as part-matching mode
|
|
779
|
-
// - else nothing
|
|
780
|
-
//
|
|
781
|
-
// Always put the (?:$|/) on negated tails, though, because that has to be
|
|
782
|
-
// there to bind the end of the negated pattern portion, and it's easier to
|
|
783
|
-
// just stick it in now rather than try to inject it later in the middle of
|
|
784
|
-
// the pattern.
|
|
785
|
-
//
|
|
786
|
-
// We can just always return the same end, and leave it up to the caller
|
|
787
|
-
// to know whether it's going to be used joined or in parts.
|
|
788
|
-
// And, if the start is adjusted slightly, can do the same there:
|
|
789
|
-
// - if not isStart: nothing
|
|
790
|
-
// - if traversal possible, but not allowed: (?:/|^)(?!\.\.?$)
|
|
791
|
-
// - if dots allowed or not possible: (?:/|^)
|
|
792
|
-
// - if dots possible and not allowed: (?:/|^)(?!\.)
|
|
793
|
-
//
|
|
794
|
-
// But it's better to have a simpler binding without a conditional, for
|
|
795
|
-
// performance, so probably better to return both start options.
|
|
796
|
-
//
|
|
797
|
-
// Then the caller just ignores the end if it's not the first pattern,
|
|
798
|
-
// and the start always gets applied.
|
|
799
|
-
//
|
|
800
|
-
// But that's always going to be $ if it's the ending pattern, or nothing,
|
|
801
|
-
// so the caller can just attach $ at the end of the pattern when building.
|
|
802
|
-
//
|
|
803
|
-
// So the todo is:
|
|
804
|
-
// - better detect what kind of start is needed
|
|
805
|
-
// - return both flavors of starting pattern
|
|
806
|
-
// - attach $ at the end of the pattern when creating the actual RegExp
|
|
807
|
-
//
|
|
808
|
-
// Ah, but wait, no, that all only applies to the root when the first pattern
|
|
809
|
-
// is not an extglob. If the first pattern IS an extglob, then we need all
|
|
810
|
-
// that dot prevention biz to live in the extglob portions, because eg
|
|
811
|
-
// +(*|.x*) can match .xy but not .yx.
|
|
812
|
-
//
|
|
813
|
-
// So, return the two flavors if it's #root and the first child is not an
|
|
814
|
-
// AST, otherwise leave it to the child AST to handle it, and there,
|
|
815
|
-
// use the (?:^|/) style of start binding.
|
|
816
|
-
//
|
|
817
|
-
// Even simplified further:
|
|
818
|
-
// - Since the start for a join is eg /(?!\.) and the start for a part
|
|
819
|
-
// is ^(?!\.), we can just prepend (?!\.) to the pattern (either root
|
|
820
|
-
// or start or whatever) and prepend ^ or / at the Regexp construction.
|
|
821
|
-
toRegExpSource(allowDot) {
|
|
822
|
-
var _a;
|
|
823
|
-
const dot = allowDot != null ? allowDot : !!__privateGet(this, _options).dot;
|
|
824
|
-
if (__privateGet(this, _root) === this)
|
|
825
|
-
__privateMethod(this, _AST_instances, fillNegs_fn).call(this);
|
|
826
|
-
if (!this.type) {
|
|
827
|
-
const noEmpty = this.isStart() && this.isEnd();
|
|
828
|
-
const src = __privateGet(this, _parts).map((p) => {
|
|
829
|
-
var _a2;
|
|
830
|
-
const [re, _, hasMagic, uflag] = typeof p === "string" ? __privateMethod(_a2 = _AST, _AST_static, parseGlob_fn).call(_a2, p, __privateGet(this, _hasMagic), noEmpty) : p.toRegExpSource(allowDot);
|
|
831
|
-
__privateSet(this, _hasMagic, __privateGet(this, _hasMagic) || hasMagic);
|
|
832
|
-
__privateSet(this, _uflag, __privateGet(this, _uflag) || uflag);
|
|
833
|
-
return re;
|
|
834
|
-
}).join("");
|
|
835
|
-
let start2 = "";
|
|
836
|
-
if (this.isStart()) {
|
|
837
|
-
if (typeof __privateGet(this, _parts)[0] === "string") {
|
|
838
|
-
const dotTravAllowed = __privateGet(this, _parts).length === 1 && justDots.has(__privateGet(this, _parts)[0]);
|
|
839
|
-
if (!dotTravAllowed) {
|
|
840
|
-
const aps = addPatternStart;
|
|
841
|
-
const needNoTrav = (
|
|
842
|
-
// dots are allowed, and the pattern starts with [ or .
|
|
843
|
-
dot && aps.has(src.charAt(0)) || // the pattern starts with \., and then [ or .
|
|
844
|
-
src.startsWith("\\.") && aps.has(src.charAt(2)) || // the pattern starts with \.\., and then [ or .
|
|
845
|
-
src.startsWith("\\.\\.") && aps.has(src.charAt(4))
|
|
846
|
-
);
|
|
847
|
-
const needNoDot = !dot && !allowDot && aps.has(src.charAt(0));
|
|
848
|
-
start2 = needNoTrav ? startNoTraversal : needNoDot ? startNoDot : "";
|
|
849
|
-
}
|
|
850
|
-
}
|
|
851
|
-
}
|
|
852
|
-
let end = "";
|
|
853
|
-
if (this.isEnd() && __privateGet(__privateGet(this, _root), _filledNegs) && ((_a = __privateGet(this, _parent)) == null ? void 0 : _a.type) === "!") {
|
|
854
|
-
end = "(?:$|\\/)";
|
|
855
|
-
}
|
|
856
|
-
const final2 = start2 + src + end;
|
|
857
|
-
return [
|
|
858
|
-
final2,
|
|
859
|
-
unescape(src),
|
|
860
|
-
__privateSet(this, _hasMagic, !!__privateGet(this, _hasMagic)),
|
|
861
|
-
__privateGet(this, _uflag)
|
|
862
|
-
];
|
|
863
|
-
}
|
|
864
|
-
const repeated = this.type === "*" || this.type === "+";
|
|
865
|
-
const start = this.type === "!" ? "(?:(?!(?:" : "(?:";
|
|
866
|
-
let body = __privateMethod(this, _AST_instances, partsToRegExp_fn).call(this, dot);
|
|
867
|
-
if (this.isStart() && this.isEnd() && !body && this.type !== "!") {
|
|
868
|
-
const s = this.toString();
|
|
869
|
-
__privateSet(this, _parts, [s]);
|
|
870
|
-
this.type = null;
|
|
871
|
-
__privateSet(this, _hasMagic, void 0);
|
|
872
|
-
return [s, unescape(this.toString()), false, false];
|
|
873
|
-
}
|
|
874
|
-
let bodyDotAllowed = !repeated || allowDot || dot || false ? "" : __privateMethod(this, _AST_instances, partsToRegExp_fn).call(this, true);
|
|
875
|
-
if (bodyDotAllowed === body) {
|
|
876
|
-
bodyDotAllowed = "";
|
|
877
|
-
}
|
|
878
|
-
if (bodyDotAllowed) {
|
|
879
|
-
body = `(?:${body})(?:${bodyDotAllowed})*?`;
|
|
880
|
-
}
|
|
881
|
-
let final = "";
|
|
882
|
-
if (this.type === "!" && __privateGet(this, _emptyExt)) {
|
|
883
|
-
final = (this.isStart() && !dot ? startNoDot : "") + starNoEmpty;
|
|
884
|
-
} else {
|
|
885
|
-
const close = this.type === "!" ? (
|
|
886
|
-
// !() must match something,but !(x) can match ''
|
|
887
|
-
"))" + (this.isStart() && !dot && !allowDot ? startNoDot : "") + star + ")"
|
|
888
|
-
) : this.type === "@" ? ")" : this.type === "?" ? ")?" : this.type === "+" && bodyDotAllowed ? ")" : this.type === "*" && bodyDotAllowed ? `)?` : `)${this.type}`;
|
|
889
|
-
final = start + body + close;
|
|
890
|
-
}
|
|
891
|
-
return [
|
|
892
|
-
final,
|
|
893
|
-
unescape(body),
|
|
894
|
-
__privateSet(this, _hasMagic, !!__privateGet(this, _hasMagic)),
|
|
895
|
-
__privateGet(this, _uflag)
|
|
896
|
-
];
|
|
897
|
-
}
|
|
898
|
-
};
|
|
899
|
-
_root = new WeakMap();
|
|
900
|
-
_hasMagic = new WeakMap();
|
|
901
|
-
_uflag = new WeakMap();
|
|
902
|
-
_parts = new WeakMap();
|
|
903
|
-
_parent = new WeakMap();
|
|
904
|
-
_parentIndex = new WeakMap();
|
|
905
|
-
_negs = new WeakMap();
|
|
906
|
-
_filledNegs = new WeakMap();
|
|
907
|
-
_options = new WeakMap();
|
|
908
|
-
_toString = new WeakMap();
|
|
909
|
-
_emptyExt = new WeakMap();
|
|
910
|
-
_AST_instances = new WeakSet();
|
|
911
|
-
fillNegs_fn = function() {
|
|
912
|
-
if (this !== __privateGet(this, _root))
|
|
913
|
-
throw new Error("should only call on root");
|
|
914
|
-
if (__privateGet(this, _filledNegs))
|
|
915
|
-
return this;
|
|
916
|
-
this.toString();
|
|
917
|
-
__privateSet(this, _filledNegs, true);
|
|
918
|
-
let n;
|
|
919
|
-
while (n = __privateGet(this, _negs).pop()) {
|
|
920
|
-
if (n.type !== "!")
|
|
921
|
-
continue;
|
|
922
|
-
let p = n;
|
|
923
|
-
let pp = __privateGet(p, _parent);
|
|
924
|
-
while (pp) {
|
|
925
|
-
for (let i2 = __privateGet(p, _parentIndex) + 1; !pp.type && i2 < __privateGet(pp, _parts).length; i2++) {
|
|
926
|
-
for (const part of __privateGet(n, _parts)) {
|
|
927
|
-
if (typeof part === "string") {
|
|
928
|
-
throw new Error("string part in extglob AST??");
|
|
929
|
-
}
|
|
930
|
-
part.copyIn(__privateGet(pp, _parts)[i2]);
|
|
931
|
-
}
|
|
932
|
-
}
|
|
933
|
-
p = pp;
|
|
934
|
-
pp = __privateGet(p, _parent);
|
|
935
|
-
}
|
|
936
|
-
}
|
|
937
|
-
return this;
|
|
938
|
-
};
|
|
939
|
-
_AST_static = new WeakSet();
|
|
940
|
-
parseAST_fn = function(str, ast, pos, opt) {
|
|
941
|
-
var _a, _b;
|
|
942
|
-
let escaping = false;
|
|
943
|
-
let inBrace = false;
|
|
944
|
-
let braceStart = -1;
|
|
945
|
-
let braceNeg = false;
|
|
946
|
-
if (ast.type === null) {
|
|
947
|
-
let i3 = pos;
|
|
948
|
-
let acc2 = "";
|
|
949
|
-
while (i3 < str.length) {
|
|
950
|
-
const c = str.charAt(i3++);
|
|
951
|
-
if (escaping || c === "\\") {
|
|
952
|
-
escaping = !escaping;
|
|
953
|
-
acc2 += c;
|
|
954
|
-
continue;
|
|
955
|
-
}
|
|
956
|
-
if (inBrace) {
|
|
957
|
-
if (i3 === braceStart + 1) {
|
|
958
|
-
if (c === "^" || c === "!") {
|
|
959
|
-
braceNeg = true;
|
|
960
|
-
}
|
|
961
|
-
} else if (c === "]" && !(i3 === braceStart + 2 && braceNeg)) {
|
|
962
|
-
inBrace = false;
|
|
963
|
-
}
|
|
964
|
-
acc2 += c;
|
|
965
|
-
continue;
|
|
966
|
-
} else if (c === "[") {
|
|
967
|
-
inBrace = true;
|
|
968
|
-
braceStart = i3;
|
|
969
|
-
braceNeg = false;
|
|
970
|
-
acc2 += c;
|
|
971
|
-
continue;
|
|
972
|
-
}
|
|
973
|
-
if (!opt.noext && isExtglobType(c) && str.charAt(i3) === "(") {
|
|
974
|
-
ast.push(acc2);
|
|
975
|
-
acc2 = "";
|
|
976
|
-
const ext2 = new _AST(c, ast);
|
|
977
|
-
i3 = __privateMethod(_a = _AST, _AST_static, parseAST_fn).call(_a, str, ext2, i3, opt);
|
|
978
|
-
ast.push(ext2);
|
|
979
|
-
continue;
|
|
980
|
-
}
|
|
981
|
-
acc2 += c;
|
|
982
|
-
}
|
|
983
|
-
ast.push(acc2);
|
|
984
|
-
return i3;
|
|
985
|
-
}
|
|
986
|
-
let i2 = pos + 1;
|
|
987
|
-
let part = new _AST(null, ast);
|
|
988
|
-
const parts = [];
|
|
989
|
-
let acc = "";
|
|
990
|
-
while (i2 < str.length) {
|
|
991
|
-
const c = str.charAt(i2++);
|
|
992
|
-
if (escaping || c === "\\") {
|
|
993
|
-
escaping = !escaping;
|
|
994
|
-
acc += c;
|
|
995
|
-
continue;
|
|
996
|
-
}
|
|
997
|
-
if (inBrace) {
|
|
998
|
-
if (i2 === braceStart + 1) {
|
|
999
|
-
if (c === "^" || c === "!") {
|
|
1000
|
-
braceNeg = true;
|
|
1001
|
-
}
|
|
1002
|
-
} else if (c === "]" && !(i2 === braceStart + 2 && braceNeg)) {
|
|
1003
|
-
inBrace = false;
|
|
1004
|
-
}
|
|
1005
|
-
acc += c;
|
|
1006
|
-
continue;
|
|
1007
|
-
} else if (c === "[") {
|
|
1008
|
-
inBrace = true;
|
|
1009
|
-
braceStart = i2;
|
|
1010
|
-
braceNeg = false;
|
|
1011
|
-
acc += c;
|
|
1012
|
-
continue;
|
|
1013
|
-
}
|
|
1014
|
-
if (isExtglobType(c) && str.charAt(i2) === "(") {
|
|
1015
|
-
part.push(acc);
|
|
1016
|
-
acc = "";
|
|
1017
|
-
const ext2 = new _AST(c, part);
|
|
1018
|
-
part.push(ext2);
|
|
1019
|
-
i2 = __privateMethod(_b = _AST, _AST_static, parseAST_fn).call(_b, str, ext2, i2, opt);
|
|
1020
|
-
continue;
|
|
1021
|
-
}
|
|
1022
|
-
if (c === "|") {
|
|
1023
|
-
part.push(acc);
|
|
1024
|
-
acc = "";
|
|
1025
|
-
parts.push(part);
|
|
1026
|
-
part = new _AST(null, ast);
|
|
1027
|
-
continue;
|
|
1028
|
-
}
|
|
1029
|
-
if (c === ")") {
|
|
1030
|
-
if (acc === "" && __privateGet(ast, _parts).length === 0) {
|
|
1031
|
-
__privateSet(ast, _emptyExt, true);
|
|
1032
|
-
}
|
|
1033
|
-
part.push(acc);
|
|
1034
|
-
acc = "";
|
|
1035
|
-
ast.push(...parts, part);
|
|
1036
|
-
return i2;
|
|
1037
|
-
}
|
|
1038
|
-
acc += c;
|
|
1039
|
-
}
|
|
1040
|
-
ast.type = null;
|
|
1041
|
-
__privateSet(ast, _hasMagic, void 0);
|
|
1042
|
-
__privateSet(ast, _parts, [str.substring(pos - 1)]);
|
|
1043
|
-
return i2;
|
|
1044
|
-
};
|
|
1045
|
-
partsToRegExp_fn = function(dot) {
|
|
1046
|
-
return __privateGet(this, _parts).map((p) => {
|
|
1047
|
-
if (typeof p === "string") {
|
|
1048
|
-
throw new Error("string type in extglob ast??");
|
|
1049
|
-
}
|
|
1050
|
-
const [re, _, _hasMagic2, uflag] = p.toRegExpSource(dot);
|
|
1051
|
-
__privateSet(this, _uflag, __privateGet(this, _uflag) || uflag);
|
|
1052
|
-
return re;
|
|
1053
|
-
}).filter((p) => !(this.isStart() && this.isEnd()) || !!p).join("|");
|
|
1054
|
-
};
|
|
1055
|
-
parseGlob_fn = function(glob, hasMagic, noEmpty = false) {
|
|
1056
|
-
let escaping = false;
|
|
1057
|
-
let re = "";
|
|
1058
|
-
let uflag = false;
|
|
1059
|
-
for (let i2 = 0; i2 < glob.length; i2++) {
|
|
1060
|
-
const c = glob.charAt(i2);
|
|
1061
|
-
if (escaping) {
|
|
1062
|
-
escaping = false;
|
|
1063
|
-
re += (reSpecials.has(c) ? "\\" : "") + c;
|
|
1064
|
-
continue;
|
|
1065
|
-
}
|
|
1066
|
-
if (c === "\\") {
|
|
1067
|
-
if (i2 === glob.length - 1) {
|
|
1068
|
-
re += "\\\\";
|
|
1069
|
-
} else {
|
|
1070
|
-
escaping = true;
|
|
1071
|
-
}
|
|
1072
|
-
continue;
|
|
1073
|
-
}
|
|
1074
|
-
if (c === "[") {
|
|
1075
|
-
const [src, needUflag, consumed, magic] = parseClass(glob, i2);
|
|
1076
|
-
if (consumed) {
|
|
1077
|
-
re += src;
|
|
1078
|
-
uflag = uflag || needUflag;
|
|
1079
|
-
i2 += consumed - 1;
|
|
1080
|
-
hasMagic = hasMagic || magic;
|
|
1081
|
-
continue;
|
|
1082
|
-
}
|
|
1083
|
-
}
|
|
1084
|
-
if (c === "*") {
|
|
1085
|
-
if (noEmpty && glob === "*")
|
|
1086
|
-
re += starNoEmpty;
|
|
1087
|
-
else
|
|
1088
|
-
re += star;
|
|
1089
|
-
hasMagic = true;
|
|
1090
|
-
continue;
|
|
1091
|
-
}
|
|
1092
|
-
if (c === "?") {
|
|
1093
|
-
re += qmark;
|
|
1094
|
-
hasMagic = true;
|
|
1095
|
-
continue;
|
|
1096
|
-
}
|
|
1097
|
-
re += regExpEscape(c);
|
|
1098
|
-
}
|
|
1099
|
-
return [re, unescape(glob), !!hasMagic, uflag];
|
|
1100
|
-
};
|
|
1101
|
-
__privateAdd(_AST, _AST_static);
|
|
1102
|
-
var AST = _AST;
|
|
1103
|
-
|
|
1104
|
-
// node_modules/minimatch/dist/esm/escape.js
|
|
1105
|
-
var escape = (s, { windowsPathsNoEscape = false } = {}) => {
|
|
1106
|
-
return windowsPathsNoEscape ? s.replace(/[?*()[\]]/g, "[$&]") : s.replace(/[?*()[\]\\]/g, "\\$&");
|
|
1107
|
-
};
|
|
1108
|
-
|
|
1109
|
-
// node_modules/minimatch/dist/esm/index.js
|
|
1110
|
-
var minimatch = (p, pattern, options = {}) => {
|
|
1111
|
-
assertValidPattern(pattern);
|
|
1112
|
-
if (!options.nocomment && pattern.charAt(0) === "#") {
|
|
1113
|
-
return false;
|
|
1114
|
-
}
|
|
1115
|
-
return new Minimatch(pattern, options).match(p);
|
|
1116
|
-
};
|
|
1117
|
-
var starDotExtRE = /^\*+([^+@!?\*\[\(]*)$/;
|
|
1118
|
-
var starDotExtTest = (ext2) => (f) => !f.startsWith(".") && f.endsWith(ext2);
|
|
1119
|
-
var starDotExtTestDot = (ext2) => (f) => f.endsWith(ext2);
|
|
1120
|
-
var starDotExtTestNocase = (ext2) => {
|
|
1121
|
-
ext2 = ext2.toLowerCase();
|
|
1122
|
-
return (f) => !f.startsWith(".") && f.toLowerCase().endsWith(ext2);
|
|
1123
|
-
};
|
|
1124
|
-
var starDotExtTestNocaseDot = (ext2) => {
|
|
1125
|
-
ext2 = ext2.toLowerCase();
|
|
1126
|
-
return (f) => f.toLowerCase().endsWith(ext2);
|
|
1127
|
-
};
|
|
1128
|
-
var starDotStarRE = /^\*+\.\*+$/;
|
|
1129
|
-
var starDotStarTest = (f) => !f.startsWith(".") && f.includes(".");
|
|
1130
|
-
var starDotStarTestDot = (f) => f !== "." && f !== ".." && f.includes(".");
|
|
1131
|
-
var dotStarRE = /^\.\*+$/;
|
|
1132
|
-
var dotStarTest = (f) => f !== "." && f !== ".." && f.startsWith(".");
|
|
1133
|
-
var starRE = /^\*+$/;
|
|
1134
|
-
var starTest = (f) => f.length !== 0 && !f.startsWith(".");
|
|
1135
|
-
var starTestDot = (f) => f.length !== 0 && f !== "." && f !== "..";
|
|
1136
|
-
var qmarksRE = /^\?+([^+@!?\*\[\(]*)?$/;
|
|
1137
|
-
var qmarksTestNocase = ([$0, ext2 = ""]) => {
|
|
1138
|
-
const noext = qmarksTestNoExt([$0]);
|
|
1139
|
-
if (!ext2)
|
|
1140
|
-
return noext;
|
|
1141
|
-
ext2 = ext2.toLowerCase();
|
|
1142
|
-
return (f) => noext(f) && f.toLowerCase().endsWith(ext2);
|
|
1143
|
-
};
|
|
1144
|
-
var qmarksTestNocaseDot = ([$0, ext2 = ""]) => {
|
|
1145
|
-
const noext = qmarksTestNoExtDot([$0]);
|
|
1146
|
-
if (!ext2)
|
|
1147
|
-
return noext;
|
|
1148
|
-
ext2 = ext2.toLowerCase();
|
|
1149
|
-
return (f) => noext(f) && f.toLowerCase().endsWith(ext2);
|
|
1150
|
-
};
|
|
1151
|
-
var qmarksTestDot = ([$0, ext2 = ""]) => {
|
|
1152
|
-
const noext = qmarksTestNoExtDot([$0]);
|
|
1153
|
-
return !ext2 ? noext : (f) => noext(f) && f.endsWith(ext2);
|
|
1154
|
-
};
|
|
1155
|
-
var qmarksTest = ([$0, ext2 = ""]) => {
|
|
1156
|
-
const noext = qmarksTestNoExt([$0]);
|
|
1157
|
-
return !ext2 ? noext : (f) => noext(f) && f.endsWith(ext2);
|
|
1158
|
-
};
|
|
1159
|
-
var qmarksTestNoExt = ([$0]) => {
|
|
1160
|
-
const len = $0.length;
|
|
1161
|
-
return (f) => f.length === len && !f.startsWith(".");
|
|
1162
|
-
};
|
|
1163
|
-
var qmarksTestNoExtDot = ([$0]) => {
|
|
1164
|
-
const len = $0.length;
|
|
1165
|
-
return (f) => f.length === len && f !== "." && f !== "..";
|
|
1166
|
-
};
|
|
1167
|
-
var defaultPlatform = typeof process === "object" && process ? typeof process.env === "object" && process.env && process.env.__MINIMATCH_TESTING_PLATFORM__ || process.platform : "posix";
|
|
1168
|
-
var path = {
|
|
1169
|
-
win32: { sep: "\\" },
|
|
1170
|
-
posix: { sep: "/" }
|
|
1171
|
-
};
|
|
1172
|
-
var sep = defaultPlatform === "win32" ? path.win32.sep : path.posix.sep;
|
|
1173
|
-
minimatch.sep = sep;
|
|
1174
|
-
var GLOBSTAR = Symbol("globstar **");
|
|
1175
|
-
minimatch.GLOBSTAR = GLOBSTAR;
|
|
1176
|
-
var qmark2 = "[^/]";
|
|
1177
|
-
var star2 = qmark2 + "*?";
|
|
1178
|
-
var twoStarDot = "(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?";
|
|
1179
|
-
var twoStarNoDot = "(?:(?!(?:\\/|^)\\.).)*?";
|
|
1180
|
-
var filter = (pattern, options = {}) => (p) => minimatch(p, pattern, options);
|
|
1181
|
-
minimatch.filter = filter;
|
|
1182
|
-
var ext = (a, b = {}) => Object.assign({}, a, b);
|
|
1183
|
-
var defaults = (def) => {
|
|
1184
|
-
if (!def || typeof def !== "object" || !Object.keys(def).length) {
|
|
1185
|
-
return minimatch;
|
|
1186
|
-
}
|
|
1187
|
-
const orig = minimatch;
|
|
1188
|
-
const m = (p, pattern, options = {}) => orig(p, pattern, ext(def, options));
|
|
1189
|
-
return Object.assign(m, {
|
|
1190
|
-
Minimatch: class Minimatch extends orig.Minimatch {
|
|
1191
|
-
constructor(pattern, options = {}) {
|
|
1192
|
-
super(pattern, ext(def, options));
|
|
1193
|
-
}
|
|
1194
|
-
static defaults(options) {
|
|
1195
|
-
return orig.defaults(ext(def, options)).Minimatch;
|
|
1196
|
-
}
|
|
1197
|
-
},
|
|
1198
|
-
AST: class AST extends orig.AST {
|
|
1199
|
-
/* c8 ignore start */
|
|
1200
|
-
constructor(type, parent, options = {}) {
|
|
1201
|
-
super(type, parent, ext(def, options));
|
|
1202
|
-
}
|
|
1203
|
-
/* c8 ignore stop */
|
|
1204
|
-
static fromGlob(pattern, options = {}) {
|
|
1205
|
-
return orig.AST.fromGlob(pattern, ext(def, options));
|
|
1206
|
-
}
|
|
1207
|
-
},
|
|
1208
|
-
unescape: (s, options = {}) => orig.unescape(s, ext(def, options)),
|
|
1209
|
-
escape: (s, options = {}) => orig.escape(s, ext(def, options)),
|
|
1210
|
-
filter: (pattern, options = {}) => orig.filter(pattern, ext(def, options)),
|
|
1211
|
-
defaults: (options) => orig.defaults(ext(def, options)),
|
|
1212
|
-
makeRe: (pattern, options = {}) => orig.makeRe(pattern, ext(def, options)),
|
|
1213
|
-
braceExpand: (pattern, options = {}) => orig.braceExpand(pattern, ext(def, options)),
|
|
1214
|
-
match: (list, pattern, options = {}) => orig.match(list, pattern, ext(def, options)),
|
|
1215
|
-
sep: orig.sep,
|
|
1216
|
-
GLOBSTAR
|
|
1217
|
-
});
|
|
1218
|
-
};
|
|
1219
|
-
minimatch.defaults = defaults;
|
|
1220
|
-
var braceExpand = (pattern, options = {}) => {
|
|
1221
|
-
assertValidPattern(pattern);
|
|
1222
|
-
if (options.nobrace || !/\{(?:(?!\{).)*\}/.test(pattern)) {
|
|
1223
|
-
return [pattern];
|
|
1224
|
-
}
|
|
1225
|
-
return (0, import_brace_expansion.default)(pattern);
|
|
1226
|
-
};
|
|
1227
|
-
minimatch.braceExpand = braceExpand;
|
|
1228
|
-
var makeRe = (pattern, options = {}) => new Minimatch(pattern, options).makeRe();
|
|
1229
|
-
minimatch.makeRe = makeRe;
|
|
1230
|
-
var match = (list, pattern, options = {}) => {
|
|
1231
|
-
const mm = new Minimatch(pattern, options);
|
|
1232
|
-
list = list.filter((f) => mm.match(f));
|
|
1233
|
-
if (mm.options.nonull && !list.length) {
|
|
1234
|
-
list.push(pattern);
|
|
1235
|
-
}
|
|
1236
|
-
return list;
|
|
1237
|
-
};
|
|
1238
|
-
minimatch.match = match;
|
|
1239
|
-
var globMagic = /[?*]|[+@!]\(.*?\)|\[|\]/;
|
|
1240
|
-
var regExpEscape2 = (s) => s.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&");
|
|
1241
|
-
var Minimatch = class {
|
|
1242
|
-
options;
|
|
1243
|
-
set;
|
|
1244
|
-
pattern;
|
|
1245
|
-
windowsPathsNoEscape;
|
|
1246
|
-
nonegate;
|
|
1247
|
-
negate;
|
|
1248
|
-
comment;
|
|
1249
|
-
empty;
|
|
1250
|
-
preserveMultipleSlashes;
|
|
1251
|
-
partial;
|
|
1252
|
-
globSet;
|
|
1253
|
-
globParts;
|
|
1254
|
-
nocase;
|
|
1255
|
-
isWindows;
|
|
1256
|
-
platform;
|
|
1257
|
-
windowsNoMagicRoot;
|
|
1258
|
-
regexp;
|
|
1259
|
-
constructor(pattern, options = {}) {
|
|
1260
|
-
assertValidPattern(pattern);
|
|
1261
|
-
options = options || {};
|
|
1262
|
-
this.options = options;
|
|
1263
|
-
this.pattern = pattern;
|
|
1264
|
-
this.platform = options.platform || defaultPlatform;
|
|
1265
|
-
this.isWindows = this.platform === "win32";
|
|
1266
|
-
this.windowsPathsNoEscape = !!options.windowsPathsNoEscape || options.allowWindowsEscape === false;
|
|
1267
|
-
if (this.windowsPathsNoEscape) {
|
|
1268
|
-
this.pattern = this.pattern.replace(/\\/g, "/");
|
|
1269
|
-
}
|
|
1270
|
-
this.preserveMultipleSlashes = !!options.preserveMultipleSlashes;
|
|
1271
|
-
this.regexp = null;
|
|
1272
|
-
this.negate = false;
|
|
1273
|
-
this.nonegate = !!options.nonegate;
|
|
1274
|
-
this.comment = false;
|
|
1275
|
-
this.empty = false;
|
|
1276
|
-
this.partial = !!options.partial;
|
|
1277
|
-
this.nocase = !!this.options.nocase;
|
|
1278
|
-
this.windowsNoMagicRoot = options.windowsNoMagicRoot !== void 0 ? options.windowsNoMagicRoot : !!(this.isWindows && this.nocase);
|
|
1279
|
-
this.globSet = [];
|
|
1280
|
-
this.globParts = [];
|
|
1281
|
-
this.set = [];
|
|
1282
|
-
this.make();
|
|
1283
|
-
}
|
|
1284
|
-
hasMagic() {
|
|
1285
|
-
if (this.options.magicalBraces && this.set.length > 1) {
|
|
1286
|
-
return true;
|
|
1287
|
-
}
|
|
1288
|
-
for (const pattern of this.set) {
|
|
1289
|
-
for (const part of pattern) {
|
|
1290
|
-
if (typeof part !== "string")
|
|
1291
|
-
return true;
|
|
1292
|
-
}
|
|
1293
|
-
}
|
|
1294
|
-
return false;
|
|
1295
|
-
}
|
|
1296
|
-
debug(..._) {
|
|
1297
|
-
}
|
|
1298
|
-
make() {
|
|
1299
|
-
const pattern = this.pattern;
|
|
1300
|
-
const options = this.options;
|
|
1301
|
-
if (!options.nocomment && pattern.charAt(0) === "#") {
|
|
1302
|
-
this.comment = true;
|
|
1303
|
-
return;
|
|
1304
|
-
}
|
|
1305
|
-
if (!pattern) {
|
|
1306
|
-
this.empty = true;
|
|
1307
|
-
return;
|
|
1308
|
-
}
|
|
1309
|
-
this.parseNegate();
|
|
1310
|
-
this.globSet = [...new Set(this.braceExpand())];
|
|
1311
|
-
if (options.debug) {
|
|
1312
|
-
this.debug = (...args) => console.error(...args);
|
|
1313
|
-
}
|
|
1314
|
-
this.debug(this.pattern, this.globSet);
|
|
1315
|
-
const rawGlobParts = this.globSet.map((s) => this.slashSplit(s));
|
|
1316
|
-
this.globParts = this.preprocess(rawGlobParts);
|
|
1317
|
-
this.debug(this.pattern, this.globParts);
|
|
1318
|
-
let set = this.globParts.map((s, _, __) => {
|
|
1319
|
-
if (this.isWindows && this.windowsNoMagicRoot) {
|
|
1320
|
-
const isUNC = s[0] === "" && s[1] === "" && (s[2] === "?" || !globMagic.test(s[2])) && !globMagic.test(s[3]);
|
|
1321
|
-
const isDrive = /^[a-z]:/i.test(s[0]);
|
|
1322
|
-
if (isUNC) {
|
|
1323
|
-
return [...s.slice(0, 4), ...s.slice(4).map((ss) => this.parse(ss))];
|
|
1324
|
-
} else if (isDrive) {
|
|
1325
|
-
return [s[0], ...s.slice(1).map((ss) => this.parse(ss))];
|
|
1326
|
-
}
|
|
1327
|
-
}
|
|
1328
|
-
return s.map((ss) => this.parse(ss));
|
|
1329
|
-
});
|
|
1330
|
-
this.debug(this.pattern, set);
|
|
1331
|
-
this.set = set.filter((s) => s.indexOf(false) === -1);
|
|
1332
|
-
if (this.isWindows) {
|
|
1333
|
-
for (let i2 = 0; i2 < this.set.length; i2++) {
|
|
1334
|
-
const p = this.set[i2];
|
|
1335
|
-
if (p[0] === "" && p[1] === "" && this.globParts[i2][2] === "?" && typeof p[3] === "string" && /^[a-z]:$/i.test(p[3])) {
|
|
1336
|
-
p[2] = "?";
|
|
1337
|
-
}
|
|
1338
|
-
}
|
|
1339
|
-
}
|
|
1340
|
-
this.debug(this.pattern, this.set);
|
|
1341
|
-
}
|
|
1342
|
-
// various transforms to equivalent pattern sets that are
|
|
1343
|
-
// faster to process in a filesystem walk. The goal is to
|
|
1344
|
-
// eliminate what we can, and push all ** patterns as far
|
|
1345
|
-
// to the right as possible, even if it increases the number
|
|
1346
|
-
// of patterns that we have to process.
|
|
1347
|
-
preprocess(globParts) {
|
|
1348
|
-
if (this.options.noglobstar) {
|
|
1349
|
-
for (let i2 = 0; i2 < globParts.length; i2++) {
|
|
1350
|
-
for (let j = 0; j < globParts[i2].length; j++) {
|
|
1351
|
-
if (globParts[i2][j] === "**") {
|
|
1352
|
-
globParts[i2][j] = "*";
|
|
1353
|
-
}
|
|
1354
|
-
}
|
|
1355
|
-
}
|
|
1356
|
-
}
|
|
1357
|
-
const { optimizationLevel = 1 } = this.options;
|
|
1358
|
-
if (optimizationLevel >= 2) {
|
|
1359
|
-
globParts = this.firstPhasePreProcess(globParts);
|
|
1360
|
-
globParts = this.secondPhasePreProcess(globParts);
|
|
1361
|
-
} else if (optimizationLevel >= 1) {
|
|
1362
|
-
globParts = this.levelOneOptimize(globParts);
|
|
1363
|
-
} else {
|
|
1364
|
-
globParts = this.adjascentGlobstarOptimize(globParts);
|
|
1365
|
-
}
|
|
1366
|
-
return globParts;
|
|
1367
|
-
}
|
|
1368
|
-
// just get rid of adjascent ** portions
|
|
1369
|
-
adjascentGlobstarOptimize(globParts) {
|
|
1370
|
-
return globParts.map((parts) => {
|
|
1371
|
-
let gs = -1;
|
|
1372
|
-
while (-1 !== (gs = parts.indexOf("**", gs + 1))) {
|
|
1373
|
-
let i2 = gs;
|
|
1374
|
-
while (parts[i2 + 1] === "**") {
|
|
1375
|
-
i2++;
|
|
1376
|
-
}
|
|
1377
|
-
if (i2 !== gs) {
|
|
1378
|
-
parts.splice(gs, i2 - gs);
|
|
1379
|
-
}
|
|
1380
|
-
}
|
|
1381
|
-
return parts;
|
|
1382
|
-
});
|
|
1383
|
-
}
|
|
1384
|
-
// get rid of adjascent ** and resolve .. portions
|
|
1385
|
-
levelOneOptimize(globParts) {
|
|
1386
|
-
return globParts.map((parts) => {
|
|
1387
|
-
parts = parts.reduce((set, part) => {
|
|
1388
|
-
const prev = set[set.length - 1];
|
|
1389
|
-
if (part === "**" && prev === "**") {
|
|
1390
|
-
return set;
|
|
1391
|
-
}
|
|
1392
|
-
if (part === "..") {
|
|
1393
|
-
if (prev && prev !== ".." && prev !== "." && prev !== "**") {
|
|
1394
|
-
set.pop();
|
|
1395
|
-
return set;
|
|
1396
|
-
}
|
|
1397
|
-
}
|
|
1398
|
-
set.push(part);
|
|
1399
|
-
return set;
|
|
1400
|
-
}, []);
|
|
1401
|
-
return parts.length === 0 ? [""] : parts;
|
|
1402
|
-
});
|
|
1403
|
-
}
|
|
1404
|
-
levelTwoFileOptimize(parts) {
|
|
1405
|
-
if (!Array.isArray(parts)) {
|
|
1406
|
-
parts = this.slashSplit(parts);
|
|
1407
|
-
}
|
|
1408
|
-
let didSomething = false;
|
|
1409
|
-
do {
|
|
1410
|
-
didSomething = false;
|
|
1411
|
-
if (!this.preserveMultipleSlashes) {
|
|
1412
|
-
for (let i2 = 1; i2 < parts.length - 1; i2++) {
|
|
1413
|
-
const p = parts[i2];
|
|
1414
|
-
if (i2 === 1 && p === "" && parts[0] === "")
|
|
1415
|
-
continue;
|
|
1416
|
-
if (p === "." || p === "") {
|
|
1417
|
-
didSomething = true;
|
|
1418
|
-
parts.splice(i2, 1);
|
|
1419
|
-
i2--;
|
|
1420
|
-
}
|
|
1421
|
-
}
|
|
1422
|
-
if (parts[0] === "." && parts.length === 2 && (parts[1] === "." || parts[1] === "")) {
|
|
1423
|
-
didSomething = true;
|
|
1424
|
-
parts.pop();
|
|
1425
|
-
}
|
|
1426
|
-
}
|
|
1427
|
-
let dd = 0;
|
|
1428
|
-
while (-1 !== (dd = parts.indexOf("..", dd + 1))) {
|
|
1429
|
-
const p = parts[dd - 1];
|
|
1430
|
-
if (p && p !== "." && p !== ".." && p !== "**") {
|
|
1431
|
-
didSomething = true;
|
|
1432
|
-
parts.splice(dd - 1, 2);
|
|
1433
|
-
dd -= 2;
|
|
1434
|
-
}
|
|
1435
|
-
}
|
|
1436
|
-
} while (didSomething);
|
|
1437
|
-
return parts.length === 0 ? [""] : parts;
|
|
1438
|
-
}
|
|
1439
|
-
// First phase: single-pattern processing
|
|
1440
|
-
// <pre> is 1 or more portions
|
|
1441
|
-
// <rest> is 1 or more portions
|
|
1442
|
-
// <p> is any portion other than ., .., '', or **
|
|
1443
|
-
// <e> is . or ''
|
|
1444
|
-
//
|
|
1445
|
-
// **/.. is *brutal* for filesystem walking performance, because
|
|
1446
|
-
// it effectively resets the recursive walk each time it occurs,
|
|
1447
|
-
// and ** cannot be reduced out by a .. pattern part like a regexp
|
|
1448
|
-
// or most strings (other than .., ., and '') can be.
|
|
1449
|
-
//
|
|
1450
|
-
// <pre>/**/../<p>/<p>/<rest> -> {<pre>/../<p>/<p>/<rest>,<pre>/**/<p>/<p>/<rest>}
|
|
1451
|
-
// <pre>/<e>/<rest> -> <pre>/<rest>
|
|
1452
|
-
// <pre>/<p>/../<rest> -> <pre>/<rest>
|
|
1453
|
-
// **/**/<rest> -> **/<rest>
|
|
1454
|
-
//
|
|
1455
|
-
// **/*/<rest> -> */**/<rest> <== not valid because ** doesn't follow
|
|
1456
|
-
// this WOULD be allowed if ** did follow symlinks, or * didn't
|
|
1457
|
-
firstPhasePreProcess(globParts) {
|
|
1458
|
-
let didSomething = false;
|
|
1459
|
-
do {
|
|
1460
|
-
didSomething = false;
|
|
1461
|
-
for (let parts of globParts) {
|
|
1462
|
-
let gs = -1;
|
|
1463
|
-
while (-1 !== (gs = parts.indexOf("**", gs + 1))) {
|
|
1464
|
-
let gss = gs;
|
|
1465
|
-
while (parts[gss + 1] === "**") {
|
|
1466
|
-
gss++;
|
|
1467
|
-
}
|
|
1468
|
-
if (gss > gs) {
|
|
1469
|
-
parts.splice(gs + 1, gss - gs);
|
|
1470
|
-
}
|
|
1471
|
-
let next = parts[gs + 1];
|
|
1472
|
-
const p = parts[gs + 2];
|
|
1473
|
-
const p2 = parts[gs + 3];
|
|
1474
|
-
if (next !== "..")
|
|
1475
|
-
continue;
|
|
1476
|
-
if (!p || p === "." || p === ".." || !p2 || p2 === "." || p2 === "..") {
|
|
1477
|
-
continue;
|
|
1478
|
-
}
|
|
1479
|
-
didSomething = true;
|
|
1480
|
-
parts.splice(gs, 1);
|
|
1481
|
-
const other = parts.slice(0);
|
|
1482
|
-
other[gs] = "**";
|
|
1483
|
-
globParts.push(other);
|
|
1484
|
-
gs--;
|
|
1485
|
-
}
|
|
1486
|
-
if (!this.preserveMultipleSlashes) {
|
|
1487
|
-
for (let i2 = 1; i2 < parts.length - 1; i2++) {
|
|
1488
|
-
const p = parts[i2];
|
|
1489
|
-
if (i2 === 1 && p === "" && parts[0] === "")
|
|
1490
|
-
continue;
|
|
1491
|
-
if (p === "." || p === "") {
|
|
1492
|
-
didSomething = true;
|
|
1493
|
-
parts.splice(i2, 1);
|
|
1494
|
-
i2--;
|
|
1495
|
-
}
|
|
1496
|
-
}
|
|
1497
|
-
if (parts[0] === "." && parts.length === 2 && (parts[1] === "." || parts[1] === "")) {
|
|
1498
|
-
didSomething = true;
|
|
1499
|
-
parts.pop();
|
|
1500
|
-
}
|
|
1501
|
-
}
|
|
1502
|
-
let dd = 0;
|
|
1503
|
-
while (-1 !== (dd = parts.indexOf("..", dd + 1))) {
|
|
1504
|
-
const p = parts[dd - 1];
|
|
1505
|
-
if (p && p !== "." && p !== ".." && p !== "**") {
|
|
1506
|
-
didSomething = true;
|
|
1507
|
-
const needDot = dd === 1 && parts[dd + 1] === "**";
|
|
1508
|
-
const splin = needDot ? ["."] : [];
|
|
1509
|
-
parts.splice(dd - 1, 2, ...splin);
|
|
1510
|
-
if (parts.length === 0)
|
|
1511
|
-
parts.push("");
|
|
1512
|
-
dd -= 2;
|
|
1513
|
-
}
|
|
1514
|
-
}
|
|
1515
|
-
}
|
|
1516
|
-
} while (didSomething);
|
|
1517
|
-
return globParts;
|
|
1518
|
-
}
|
|
1519
|
-
// second phase: multi-pattern dedupes
|
|
1520
|
-
// {<pre>/*/<rest>,<pre>/<p>/<rest>} -> <pre>/*/<rest>
|
|
1521
|
-
// {<pre>/<rest>,<pre>/<rest>} -> <pre>/<rest>
|
|
1522
|
-
// {<pre>/**/<rest>,<pre>/<rest>} -> <pre>/**/<rest>
|
|
1523
|
-
//
|
|
1524
|
-
// {<pre>/**/<rest>,<pre>/**/<p>/<rest>} -> <pre>/**/<rest>
|
|
1525
|
-
// ^-- not valid because ** doens't follow symlinks
|
|
1526
|
-
secondPhasePreProcess(globParts) {
|
|
1527
|
-
for (let i2 = 0; i2 < globParts.length - 1; i2++) {
|
|
1528
|
-
for (let j = i2 + 1; j < globParts.length; j++) {
|
|
1529
|
-
const matched = this.partsMatch(globParts[i2], globParts[j], !this.preserveMultipleSlashes);
|
|
1530
|
-
if (!matched)
|
|
1531
|
-
continue;
|
|
1532
|
-
globParts[i2] = matched;
|
|
1533
|
-
globParts[j] = [];
|
|
1534
|
-
}
|
|
1535
|
-
}
|
|
1536
|
-
return globParts.filter((gs) => gs.length);
|
|
1537
|
-
}
|
|
1538
|
-
partsMatch(a, b, emptyGSMatch = false) {
|
|
1539
|
-
let ai = 0;
|
|
1540
|
-
let bi = 0;
|
|
1541
|
-
let result = [];
|
|
1542
|
-
let which = "";
|
|
1543
|
-
while (ai < a.length && bi < b.length) {
|
|
1544
|
-
if (a[ai] === b[bi]) {
|
|
1545
|
-
result.push(which === "b" ? b[bi] : a[ai]);
|
|
1546
|
-
ai++;
|
|
1547
|
-
bi++;
|
|
1548
|
-
} else if (emptyGSMatch && a[ai] === "**" && b[bi] === a[ai + 1]) {
|
|
1549
|
-
result.push(a[ai]);
|
|
1550
|
-
ai++;
|
|
1551
|
-
} else if (emptyGSMatch && b[bi] === "**" && a[ai] === b[bi + 1]) {
|
|
1552
|
-
result.push(b[bi]);
|
|
1553
|
-
bi++;
|
|
1554
|
-
} else if (a[ai] === "*" && b[bi] && (this.options.dot || !b[bi].startsWith(".")) && b[bi] !== "**") {
|
|
1555
|
-
if (which === "b")
|
|
1556
|
-
return false;
|
|
1557
|
-
which = "a";
|
|
1558
|
-
result.push(a[ai]);
|
|
1559
|
-
ai++;
|
|
1560
|
-
bi++;
|
|
1561
|
-
} else if (b[bi] === "*" && a[ai] && (this.options.dot || !a[ai].startsWith(".")) && a[ai] !== "**") {
|
|
1562
|
-
if (which === "a")
|
|
1563
|
-
return false;
|
|
1564
|
-
which = "b";
|
|
1565
|
-
result.push(b[bi]);
|
|
1566
|
-
ai++;
|
|
1567
|
-
bi++;
|
|
1568
|
-
} else {
|
|
1569
|
-
return false;
|
|
1570
|
-
}
|
|
1571
|
-
}
|
|
1572
|
-
return a.length === b.length && result;
|
|
1573
|
-
}
|
|
1574
|
-
parseNegate() {
|
|
1575
|
-
if (this.nonegate)
|
|
1576
|
-
return;
|
|
1577
|
-
const pattern = this.pattern;
|
|
1578
|
-
let negate = false;
|
|
1579
|
-
let negateOffset = 0;
|
|
1580
|
-
for (let i2 = 0; i2 < pattern.length && pattern.charAt(i2) === "!"; i2++) {
|
|
1581
|
-
negate = !negate;
|
|
1582
|
-
negateOffset++;
|
|
1583
|
-
}
|
|
1584
|
-
if (negateOffset)
|
|
1585
|
-
this.pattern = pattern.slice(negateOffset);
|
|
1586
|
-
this.negate = negate;
|
|
1587
|
-
}
|
|
1588
|
-
// set partial to true to test if, for example,
|
|
1589
|
-
// "/a/b" matches the start of "/*/b/*/d"
|
|
1590
|
-
// Partial means, if you run out of file before you run
|
|
1591
|
-
// out of pattern, then that's fine, as long as all
|
|
1592
|
-
// the parts match.
|
|
1593
|
-
matchOne(file, pattern, partial = false) {
|
|
1594
|
-
const options = this.options;
|
|
1595
|
-
if (this.isWindows) {
|
|
1596
|
-
const fileDrive = typeof file[0] === "string" && /^[a-z]:$/i.test(file[0]);
|
|
1597
|
-
const fileUNC = !fileDrive && file[0] === "" && file[1] === "" && file[2] === "?" && /^[a-z]:$/i.test(file[3]);
|
|
1598
|
-
const patternDrive = typeof pattern[0] === "string" && /^[a-z]:$/i.test(pattern[0]);
|
|
1599
|
-
const patternUNC = !patternDrive && pattern[0] === "" && pattern[1] === "" && pattern[2] === "?" && typeof pattern[3] === "string" && /^[a-z]:$/i.test(pattern[3]);
|
|
1600
|
-
const fdi = fileUNC ? 3 : fileDrive ? 0 : void 0;
|
|
1601
|
-
const pdi = patternUNC ? 3 : patternDrive ? 0 : void 0;
|
|
1602
|
-
if (typeof fdi === "number" && typeof pdi === "number") {
|
|
1603
|
-
const [fd, pd] = [file[fdi], pattern[pdi]];
|
|
1604
|
-
if (fd.toLowerCase() === pd.toLowerCase()) {
|
|
1605
|
-
pattern[pdi] = fd;
|
|
1606
|
-
if (pdi > fdi) {
|
|
1607
|
-
pattern = pattern.slice(pdi);
|
|
1608
|
-
} else if (fdi > pdi) {
|
|
1609
|
-
file = file.slice(fdi);
|
|
1610
|
-
}
|
|
1611
|
-
}
|
|
1612
|
-
}
|
|
1613
|
-
}
|
|
1614
|
-
const { optimizationLevel = 1 } = this.options;
|
|
1615
|
-
if (optimizationLevel >= 2) {
|
|
1616
|
-
file = this.levelTwoFileOptimize(file);
|
|
1617
|
-
}
|
|
1618
|
-
this.debug("matchOne", this, { file, pattern });
|
|
1619
|
-
this.debug("matchOne", file.length, pattern.length);
|
|
1620
|
-
for (var fi = 0, pi = 0, fl = file.length, pl = pattern.length; fi < fl && pi < pl; fi++, pi++) {
|
|
1621
|
-
this.debug("matchOne loop");
|
|
1622
|
-
var p = pattern[pi];
|
|
1623
|
-
var f = file[fi];
|
|
1624
|
-
this.debug(pattern, p, f);
|
|
1625
|
-
if (p === false) {
|
|
1626
|
-
return false;
|
|
1627
|
-
}
|
|
1628
|
-
if (p === GLOBSTAR) {
|
|
1629
|
-
this.debug("GLOBSTAR", [pattern, p, f]);
|
|
1630
|
-
var fr = fi;
|
|
1631
|
-
var pr = pi + 1;
|
|
1632
|
-
if (pr === pl) {
|
|
1633
|
-
this.debug("** at the end");
|
|
1634
|
-
for (; fi < fl; fi++) {
|
|
1635
|
-
if (file[fi] === "." || file[fi] === ".." || !options.dot && file[fi].charAt(0) === ".")
|
|
1636
|
-
return false;
|
|
1637
|
-
}
|
|
1638
|
-
return true;
|
|
1639
|
-
}
|
|
1640
|
-
while (fr < fl) {
|
|
1641
|
-
var swallowee = file[fr];
|
|
1642
|
-
this.debug("\nglobstar while", file, fr, pattern, pr, swallowee);
|
|
1643
|
-
if (this.matchOne(file.slice(fr), pattern.slice(pr), partial)) {
|
|
1644
|
-
this.debug("globstar found match!", fr, fl, swallowee);
|
|
1645
|
-
return true;
|
|
1646
|
-
} else {
|
|
1647
|
-
if (swallowee === "." || swallowee === ".." || !options.dot && swallowee.charAt(0) === ".") {
|
|
1648
|
-
this.debug("dot detected!", file, fr, pattern, pr);
|
|
1649
|
-
break;
|
|
1650
|
-
}
|
|
1651
|
-
this.debug("globstar swallow a segment, and continue");
|
|
1652
|
-
fr++;
|
|
1653
|
-
}
|
|
1654
|
-
}
|
|
1655
|
-
if (partial) {
|
|
1656
|
-
this.debug("\n>>> no match, partial?", file, fr, pattern, pr);
|
|
1657
|
-
if (fr === fl) {
|
|
1658
|
-
return true;
|
|
1659
|
-
}
|
|
1660
|
-
}
|
|
1661
|
-
return false;
|
|
1662
|
-
}
|
|
1663
|
-
let hit;
|
|
1664
|
-
if (typeof p === "string") {
|
|
1665
|
-
hit = f === p;
|
|
1666
|
-
this.debug("string match", p, f, hit);
|
|
1667
|
-
} else {
|
|
1668
|
-
hit = p.test(f);
|
|
1669
|
-
this.debug("pattern match", p, f, hit);
|
|
1670
|
-
}
|
|
1671
|
-
if (!hit)
|
|
1672
|
-
return false;
|
|
1673
|
-
}
|
|
1674
|
-
if (fi === fl && pi === pl) {
|
|
1675
|
-
return true;
|
|
1676
|
-
} else if (fi === fl) {
|
|
1677
|
-
return partial;
|
|
1678
|
-
} else if (pi === pl) {
|
|
1679
|
-
return fi === fl - 1 && file[fi] === "";
|
|
1680
|
-
} else {
|
|
1681
|
-
throw new Error("wtf?");
|
|
1682
|
-
}
|
|
1683
|
-
}
|
|
1684
|
-
braceExpand() {
|
|
1685
|
-
return braceExpand(this.pattern, this.options);
|
|
1686
|
-
}
|
|
1687
|
-
parse(pattern) {
|
|
1688
|
-
assertValidPattern(pattern);
|
|
1689
|
-
const options = this.options;
|
|
1690
|
-
if (pattern === "**")
|
|
1691
|
-
return GLOBSTAR;
|
|
1692
|
-
if (pattern === "")
|
|
1693
|
-
return "";
|
|
1694
|
-
let m;
|
|
1695
|
-
let fastTest = null;
|
|
1696
|
-
if (m = pattern.match(starRE)) {
|
|
1697
|
-
fastTest = options.dot ? starTestDot : starTest;
|
|
1698
|
-
} else if (m = pattern.match(starDotExtRE)) {
|
|
1699
|
-
fastTest = (options.nocase ? options.dot ? starDotExtTestNocaseDot : starDotExtTestNocase : options.dot ? starDotExtTestDot : starDotExtTest)(m[1]);
|
|
1700
|
-
} else if (m = pattern.match(qmarksRE)) {
|
|
1701
|
-
fastTest = (options.nocase ? options.dot ? qmarksTestNocaseDot : qmarksTestNocase : options.dot ? qmarksTestDot : qmarksTest)(m);
|
|
1702
|
-
} else if (m = pattern.match(starDotStarRE)) {
|
|
1703
|
-
fastTest = options.dot ? starDotStarTestDot : starDotStarTest;
|
|
1704
|
-
} else if (m = pattern.match(dotStarRE)) {
|
|
1705
|
-
fastTest = dotStarTest;
|
|
1706
|
-
}
|
|
1707
|
-
const re = AST.fromGlob(pattern, this.options).toMMPattern();
|
|
1708
|
-
if (fastTest && typeof re === "object") {
|
|
1709
|
-
Reflect.defineProperty(re, "test", { value: fastTest });
|
|
1710
|
-
}
|
|
1711
|
-
return re;
|
|
1712
|
-
}
|
|
1713
|
-
makeRe() {
|
|
1714
|
-
if (this.regexp || this.regexp === false)
|
|
1715
|
-
return this.regexp;
|
|
1716
|
-
const set = this.set;
|
|
1717
|
-
if (!set.length) {
|
|
1718
|
-
this.regexp = false;
|
|
1719
|
-
return this.regexp;
|
|
1720
|
-
}
|
|
1721
|
-
const options = this.options;
|
|
1722
|
-
const twoStar = options.noglobstar ? star2 : options.dot ? twoStarDot : twoStarNoDot;
|
|
1723
|
-
const flags = new Set(options.nocase ? ["i"] : []);
|
|
1724
|
-
let re = set.map((pattern) => {
|
|
1725
|
-
const pp = pattern.map((p) => {
|
|
1726
|
-
if (p instanceof RegExp) {
|
|
1727
|
-
for (const f of p.flags.split(""))
|
|
1728
|
-
flags.add(f);
|
|
1729
|
-
}
|
|
1730
|
-
return typeof p === "string" ? regExpEscape2(p) : p === GLOBSTAR ? GLOBSTAR : p._src;
|
|
1731
|
-
});
|
|
1732
|
-
pp.forEach((p, i2) => {
|
|
1733
|
-
const next = pp[i2 + 1];
|
|
1734
|
-
const prev = pp[i2 - 1];
|
|
1735
|
-
if (p !== GLOBSTAR || prev === GLOBSTAR) {
|
|
1736
|
-
return;
|
|
1737
|
-
}
|
|
1738
|
-
if (prev === void 0) {
|
|
1739
|
-
if (next !== void 0 && next !== GLOBSTAR) {
|
|
1740
|
-
pp[i2 + 1] = "(?:\\/|" + twoStar + "\\/)?" + next;
|
|
1741
|
-
} else {
|
|
1742
|
-
pp[i2] = twoStar;
|
|
1743
|
-
}
|
|
1744
|
-
} else if (next === void 0) {
|
|
1745
|
-
pp[i2 - 1] = prev + "(?:\\/|" + twoStar + ")?";
|
|
1746
|
-
} else if (next !== GLOBSTAR) {
|
|
1747
|
-
pp[i2 - 1] = prev + "(?:\\/|\\/" + twoStar + "\\/)" + next;
|
|
1748
|
-
pp[i2 + 1] = GLOBSTAR;
|
|
1749
|
-
}
|
|
1750
|
-
});
|
|
1751
|
-
return pp.filter((p) => p !== GLOBSTAR).join("/");
|
|
1752
|
-
}).join("|");
|
|
1753
|
-
const [open, close] = set.length > 1 ? ["(?:", ")"] : ["", ""];
|
|
1754
|
-
re = "^" + open + re + close + "$";
|
|
1755
|
-
if (this.negate)
|
|
1756
|
-
re = "^(?!" + re + ").+$";
|
|
1757
|
-
try {
|
|
1758
|
-
this.regexp = new RegExp(re, [...flags].join(""));
|
|
1759
|
-
} catch (ex) {
|
|
1760
|
-
this.regexp = false;
|
|
1761
|
-
}
|
|
1762
|
-
return this.regexp;
|
|
1763
|
-
}
|
|
1764
|
-
slashSplit(p) {
|
|
1765
|
-
if (this.preserveMultipleSlashes) {
|
|
1766
|
-
return p.split("/");
|
|
1767
|
-
} else if (this.isWindows && /^\/\/[^\/]+/.test(p)) {
|
|
1768
|
-
return ["", ...p.split(/\/+/)];
|
|
1769
|
-
} else {
|
|
1770
|
-
return p.split(/\/+/);
|
|
1771
|
-
}
|
|
1772
|
-
}
|
|
1773
|
-
match(f, partial = this.partial) {
|
|
1774
|
-
this.debug("match", f, this.pattern);
|
|
1775
|
-
if (this.comment) {
|
|
1776
|
-
return false;
|
|
1777
|
-
}
|
|
1778
|
-
if (this.empty) {
|
|
1779
|
-
return f === "";
|
|
1780
|
-
}
|
|
1781
|
-
if (f === "/" && partial) {
|
|
1782
|
-
return true;
|
|
1783
|
-
}
|
|
1784
|
-
const options = this.options;
|
|
1785
|
-
if (this.isWindows) {
|
|
1786
|
-
f = f.split("\\").join("/");
|
|
1787
|
-
}
|
|
1788
|
-
const ff = this.slashSplit(f);
|
|
1789
|
-
this.debug(this.pattern, "split", ff);
|
|
1790
|
-
const set = this.set;
|
|
1791
|
-
this.debug(this.pattern, "set", set);
|
|
1792
|
-
let filename = ff[ff.length - 1];
|
|
1793
|
-
if (!filename) {
|
|
1794
|
-
for (let i2 = ff.length - 2; !filename && i2 >= 0; i2--) {
|
|
1795
|
-
filename = ff[i2];
|
|
1796
|
-
}
|
|
1797
|
-
}
|
|
1798
|
-
for (let i2 = 0; i2 < set.length; i2++) {
|
|
1799
|
-
const pattern = set[i2];
|
|
1800
|
-
let file = ff;
|
|
1801
|
-
if (options.matchBase && pattern.length === 1) {
|
|
1802
|
-
file = [filename];
|
|
1803
|
-
}
|
|
1804
|
-
const hit = this.matchOne(file, pattern, partial);
|
|
1805
|
-
if (hit) {
|
|
1806
|
-
if (options.flipNegate) {
|
|
1807
|
-
return true;
|
|
1808
|
-
}
|
|
1809
|
-
return !this.negate;
|
|
1810
|
-
}
|
|
1811
|
-
}
|
|
1812
|
-
if (options.flipNegate) {
|
|
1813
|
-
return false;
|
|
1814
|
-
}
|
|
1815
|
-
return this.negate;
|
|
1816
|
-
}
|
|
1817
|
-
static defaults(def) {
|
|
1818
|
-
return minimatch.defaults(def).Minimatch;
|
|
1819
|
-
}
|
|
1820
|
-
};
|
|
1821
|
-
minimatch.AST = AST;
|
|
1822
|
-
minimatch.Minimatch = Minimatch;
|
|
1823
|
-
minimatch.escape = escape;
|
|
1824
|
-
minimatch.unescape = unescape;
|
|
1825
|
-
|
|
1826
|
-
// src/utils/query-nonce-meta-tag-content.ts
|
|
1827
|
-
function queryNonceMetaTagContent(doc) {
|
|
1828
|
-
var _a, _b, _c;
|
|
1829
|
-
return (_c = (_b = (_a = doc.head) == null ? void 0 : _a.querySelector('meta[name="csp-nonce"]')) == null ? void 0 : _b.getAttribute("content")) != null ? _c : void 0;
|
|
1830
|
-
}
|
|
1831
|
-
|
|
1832
|
-
// src/utils/regular-expression.ts
|
|
1833
|
-
var escapeRegExpSpecialCharacters = (text) => {
|
|
1834
|
-
return text.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
1835
|
-
};
|
|
1836
|
-
|
|
1837
|
-
// src/utils/remote-value.ts
|
|
1838
|
-
var RemoteValue = class _RemoteValue {
|
|
1839
|
-
/**
|
|
1840
|
-
* Deserializes a LocalValue serialized object back to its original JavaScript representation
|
|
1841
|
-
*
|
|
1842
|
-
* @param serialized The serialized LocalValue object
|
|
1843
|
-
* @returns The original JavaScript value/object
|
|
1844
|
-
*/
|
|
1845
|
-
static fromLocalValue(serialized) {
|
|
1846
|
-
const type = serialized[TYPE_CONSTANT];
|
|
1847
|
-
const value = VALUE_CONSTANT in serialized ? serialized[VALUE_CONSTANT] : void 0;
|
|
1848
|
-
switch (type) {
|
|
1849
|
-
case "string" /* String */:
|
|
1850
|
-
return value;
|
|
1851
|
-
case "boolean" /* Boolean */:
|
|
1852
|
-
return value;
|
|
1853
|
-
case "bigint" /* BigInt */:
|
|
1854
|
-
return BigInt(value);
|
|
1855
|
-
case "undefined" /* Undefined */:
|
|
1856
|
-
return void 0;
|
|
1857
|
-
case "null" /* Null */:
|
|
1858
|
-
return null;
|
|
1859
|
-
case "number" /* Number */:
|
|
1860
|
-
if (value === "NaN") return NaN;
|
|
1861
|
-
if (value === "-0") return -0;
|
|
1862
|
-
if (value === "Infinity") return Infinity;
|
|
1863
|
-
if (value === "-Infinity") return -Infinity;
|
|
1864
|
-
return value;
|
|
1865
|
-
case "array" /* Array */:
|
|
1866
|
-
return value.map((item) => _RemoteValue.fromLocalValue(item));
|
|
1867
|
-
case "date" /* Date */:
|
|
1868
|
-
return new Date(value);
|
|
1869
|
-
case "map" /* Map */:
|
|
1870
|
-
const map2 = /* @__PURE__ */ new Map();
|
|
1871
|
-
for (const [key, val] of value) {
|
|
1872
|
-
const deserializedKey = typeof key === "object" && key !== null ? _RemoteValue.fromLocalValue(key) : key;
|
|
1873
|
-
const deserializedValue = _RemoteValue.fromLocalValue(val);
|
|
1874
|
-
map2.set(deserializedKey, deserializedValue);
|
|
1875
|
-
}
|
|
1876
|
-
return map2;
|
|
1877
|
-
case "object" /* Object */:
|
|
1878
|
-
const obj = {};
|
|
1879
|
-
for (const [key, val] of value) {
|
|
1880
|
-
obj[key] = _RemoteValue.fromLocalValue(val);
|
|
1881
|
-
}
|
|
1882
|
-
return obj;
|
|
1883
|
-
case "regexp" /* RegularExpression */:
|
|
1884
|
-
const { pattern, flags } = value;
|
|
1885
|
-
return new RegExp(pattern, flags);
|
|
1886
|
-
case "set" /* Set */:
|
|
1887
|
-
const set = /* @__PURE__ */ new Set();
|
|
1888
|
-
for (const item of value) {
|
|
1889
|
-
set.add(_RemoteValue.fromLocalValue(item));
|
|
1890
|
-
}
|
|
1891
|
-
return set;
|
|
1892
|
-
case "symbol" /* Symbol */:
|
|
1893
|
-
return Symbol(value);
|
|
1894
|
-
default:
|
|
1895
|
-
throw new Error(`Unsupported type: ${type}`);
|
|
1896
|
-
}
|
|
112
|
+
var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
113
|
+
const exportName = cmpMeta.$tagName$.replace(/-/g, "_");
|
|
114
|
+
const bundleId = cmpMeta.$lazyBundleId$;
|
|
115
|
+
if (!bundleId) {
|
|
116
|
+
return void 0;
|
|
1897
117
|
}
|
|
1898
|
-
|
|
1899
|
-
|
|
1900
|
-
|
|
1901
|
-
* @param serializedValues Array of serialized LocalValue objects
|
|
1902
|
-
* @returns Array of deserialized JavaScript values
|
|
1903
|
-
*/
|
|
1904
|
-
static fromLocalValueArray(serializedValues) {
|
|
1905
|
-
return serializedValues.map((value) => _RemoteValue.fromLocalValue(value));
|
|
118
|
+
const module = cmpModules.get(bundleId) ;
|
|
119
|
+
if (module) {
|
|
120
|
+
return module[exportName];
|
|
1906
121
|
}
|
|
1907
|
-
|
|
1908
|
-
|
|
1909
|
-
|
|
1910
|
-
|
|
1911
|
-
|
|
1912
|
-
|
|
1913
|
-
|
|
1914
|
-
|
|
1915
|
-
|
|
1916
|
-
|
|
1917
|
-
|
|
1918
|
-
|
|
122
|
+
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/
|
|
123
|
+
return import(
|
|
124
|
+
/* @vite-ignore */
|
|
125
|
+
/* webpackInclude: /\.entry\.js$/ */
|
|
126
|
+
/* webpackExclude: /\.system\.entry\.js$/ */
|
|
127
|
+
/* webpackMode: "lazy" */
|
|
128
|
+
`./${bundleId}.entry.js${""}`
|
|
129
|
+
).then(
|
|
130
|
+
(importedModule) => {
|
|
131
|
+
{
|
|
132
|
+
cmpModules.set(bundleId, importedModule);
|
|
133
|
+
}
|
|
134
|
+
return importedModule[exportName];
|
|
135
|
+
},
|
|
136
|
+
(e) => {
|
|
137
|
+
consoleError(e, hostRef.$hostElement$);
|
|
1919
138
|
}
|
|
1920
|
-
|
|
1921
|
-
|
|
1922
|
-
|
|
139
|
+
);
|
|
140
|
+
};
|
|
141
|
+
|
|
142
|
+
// src/client/client-style.ts
|
|
143
|
+
var styles = /* @__PURE__ */ new Map();
|
|
144
|
+
|
|
145
|
+
// src/runtime/runtime-constants.ts
|
|
146
|
+
var CONTENT_REF_ID = "r";
|
|
147
|
+
var ORG_LOCATION_ID = "o";
|
|
148
|
+
var SLOT_NODE_ID = "s";
|
|
149
|
+
var TEXT_NODE_ID = "t";
|
|
150
|
+
var COMMENT_NODE_ID = "c";
|
|
151
|
+
var HYDRATE_ID = "s-id";
|
|
152
|
+
var HYDRATED_STYLE_ID = "sty-id";
|
|
153
|
+
var HYDRATE_CHILD_ID = "c-id";
|
|
154
|
+
var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
|
|
155
|
+
var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
|
|
156
|
+
var win = typeof window !== "undefined" ? window : {};
|
|
157
|
+
var H = win.HTMLElement || class {
|
|
158
|
+
};
|
|
159
|
+
var plt = {
|
|
160
|
+
$flags$: 0,
|
|
161
|
+
$resourcesUrl$: "",
|
|
162
|
+
jmp: (h2) => h2(),
|
|
163
|
+
raf: (h2) => requestAnimationFrame(h2),
|
|
164
|
+
ael: (el, eventName, listener, opts) => el.addEventListener(eventName, listener, opts),
|
|
165
|
+
rel: (el, eventName, listener, opts) => el.removeEventListener(eventName, listener, opts),
|
|
166
|
+
ce: (eventName, opts) => new CustomEvent(eventName, opts)
|
|
167
|
+
};
|
|
168
|
+
var supportsShadow = BUILD.shadowDom;
|
|
169
|
+
var promiseResolve = (v) => Promise.resolve(v);
|
|
170
|
+
var supportsConstructableStylesheets = /* @__PURE__ */ (() => {
|
|
171
|
+
try {
|
|
172
|
+
if (!win.document.adoptedStyleSheets) {
|
|
1923
173
|
return false;
|
|
1924
174
|
}
|
|
1925
|
-
|
|
1926
|
-
|
|
1927
|
-
|
|
1928
|
-
return true;
|
|
175
|
+
new CSSStyleSheet();
|
|
176
|
+
return typeof new CSSStyleSheet().replaceSync === "function";
|
|
177
|
+
} catch (e) {
|
|
1929
178
|
}
|
|
1930
|
-
|
|
1931
|
-
|
|
1932
|
-
|
|
1933
|
-
var
|
|
1934
|
-
|
|
1935
|
-
|
|
1936
|
-
|
|
1937
|
-
|
|
1938
|
-
|
|
1939
|
-
|
|
1940
|
-
|
|
1941
|
-
|
|
1942
|
-
isOk: true,
|
|
1943
|
-
isErr: false,
|
|
1944
|
-
value
|
|
1945
|
-
});
|
|
1946
|
-
var err = (value) => ({
|
|
1947
|
-
isOk: false,
|
|
1948
|
-
isErr: true,
|
|
1949
|
-
value
|
|
1950
|
-
});
|
|
1951
|
-
function map(result, fn) {
|
|
1952
|
-
if (result.isOk) {
|
|
1953
|
-
const val = fn(result.value);
|
|
1954
|
-
if (val instanceof Promise) {
|
|
1955
|
-
return val.then((newVal) => ok(newVal));
|
|
179
|
+
return false;
|
|
180
|
+
})() ;
|
|
181
|
+
var supportsMutableAdoptedStyleSheets = supportsConstructableStylesheets ? /* @__PURE__ */ (() => !!win.document && Object.getOwnPropertyDescriptor(win.document.adoptedStyleSheets, "length").writable)() : false;
|
|
182
|
+
var queuePending = false;
|
|
183
|
+
var queueDomReads = [];
|
|
184
|
+
var queueDomWrites = [];
|
|
185
|
+
var queueTask = (queue, write) => (cb) => {
|
|
186
|
+
queue.push(cb);
|
|
187
|
+
if (!queuePending) {
|
|
188
|
+
queuePending = true;
|
|
189
|
+
if (write && plt.$flags$ & 4 /* queueSync */) {
|
|
190
|
+
nextTick(flush);
|
|
1956
191
|
} else {
|
|
1957
|
-
|
|
192
|
+
plt.raf(flush);
|
|
1958
193
|
}
|
|
1959
194
|
}
|
|
1960
|
-
|
|
1961
|
-
|
|
1962
|
-
|
|
1963
|
-
|
|
1964
|
-
|
|
1965
|
-
}
|
|
1966
|
-
|
|
1967
|
-
|
|
1968
|
-
return result.value;
|
|
1969
|
-
} else {
|
|
1970
|
-
throw result.value;
|
|
195
|
+
};
|
|
196
|
+
var consume = (queue) => {
|
|
197
|
+
for (let i2 = 0; i2 < queue.length; i2++) {
|
|
198
|
+
try {
|
|
199
|
+
queue[i2](performance.now());
|
|
200
|
+
} catch (e) {
|
|
201
|
+
consoleError(e);
|
|
202
|
+
}
|
|
1971
203
|
}
|
|
204
|
+
queue.length = 0;
|
|
1972
205
|
};
|
|
1973
|
-
var
|
|
1974
|
-
|
|
1975
|
-
|
|
1976
|
-
|
|
1977
|
-
|
|
206
|
+
var flush = () => {
|
|
207
|
+
consume(queueDomReads);
|
|
208
|
+
{
|
|
209
|
+
consume(queueDomWrites);
|
|
210
|
+
if (queuePending = queueDomReads.length > 0) {
|
|
211
|
+
plt.raf(flush);
|
|
212
|
+
}
|
|
1978
213
|
}
|
|
1979
214
|
};
|
|
215
|
+
var nextTick = (cb) => promiseResolve().then(cb);
|
|
216
|
+
var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
|
|
1980
217
|
|
|
1981
|
-
// src/
|
|
1982
|
-
|
|
1983
|
-
|
|
1984
|
-
|
|
1985
|
-
|
|
1986
|
-
return RemoteValue.fromLocalValue(JSON.parse(atob(value.slice(SERIALIZED_PREFIX.length))));
|
|
1987
|
-
}
|
|
218
|
+
// src/runtime/asset-path.ts
|
|
219
|
+
var getAssetPath = (path) => {
|
|
220
|
+
const assetUrl = new URL(path, plt.$resourcesUrl$);
|
|
221
|
+
return assetUrl.origin !== win.location.origin ? assetUrl.href : assetUrl.pathname;
|
|
222
|
+
};
|
|
1988
223
|
|
|
1989
224
|
// src/utils/style.ts
|
|
1990
225
|
function createStyleSheetIfNeededAndSupported(styles2) {
|
|
@@ -2529,6 +764,14 @@ var uniqueTime = (key, measureText) => {
|
|
|
2529
764
|
};
|
|
2530
765
|
}
|
|
2531
766
|
};
|
|
767
|
+
|
|
768
|
+
// src/utils/query-nonce-meta-tag-content.ts
|
|
769
|
+
function queryNonceMetaTagContent(doc) {
|
|
770
|
+
var _a, _b, _c;
|
|
771
|
+
return (_c = (_b = (_a = doc.head) == null ? void 0 : _a.querySelector('meta[name="csp-nonce"]')) == null ? void 0 : _b.getAttribute("content")) != null ? _c : void 0;
|
|
772
|
+
}
|
|
773
|
+
|
|
774
|
+
// src/runtime/styles.ts
|
|
2532
775
|
var rootAppliedStyles = /* @__PURE__ */ new WeakMap();
|
|
2533
776
|
var registerStyle = (scopeId2, cssText, allowCS) => {
|
|
2534
777
|
let style = styles.get(scopeId2);
|
|
@@ -2562,10 +805,10 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
2562
805
|
}
|
|
2563
806
|
const existingStyleElm = styleContainerNode.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`);
|
|
2564
807
|
if (existingStyleElm) {
|
|
2565
|
-
existingStyleElm.
|
|
808
|
+
existingStyleElm.textContent = style;
|
|
2566
809
|
} else if (!appliedStyles.has(scopeId2)) {
|
|
2567
810
|
styleElm = win.document.createElement("style");
|
|
2568
|
-
styleElm.
|
|
811
|
+
styleElm.textContent = style;
|
|
2569
812
|
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(win.document);
|
|
2570
813
|
if (nonce != null) {
|
|
2571
814
|
styleElm.setAttribute("nonce", nonce);
|
|
@@ -2591,7 +834,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
2591
834
|
} else {
|
|
2592
835
|
const existingStyleContainer = styleContainerNode.querySelector("style");
|
|
2593
836
|
if (existingStyleContainer) {
|
|
2594
|
-
existingStyleContainer.
|
|
837
|
+
existingStyleContainer.textContent = style + existingStyleContainer.textContent;
|
|
2595
838
|
} else {
|
|
2596
839
|
styleContainerNode.prepend(styleElm);
|
|
2597
840
|
}
|
|
@@ -2604,7 +847,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
2604
847
|
styleContainerNode.insertBefore(styleElm, null);
|
|
2605
848
|
}
|
|
2606
849
|
if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
|
|
2607
|
-
styleElm.
|
|
850
|
+
styleElm.textContent += SLOT_FB_CSS;
|
|
2608
851
|
}
|
|
2609
852
|
if (appliedStyles) {
|
|
2610
853
|
appliedStyles.add(scopeId2);
|
|
@@ -2663,6 +906,12 @@ var hydrateScopedToShadow = () => {
|
|
|
2663
906
|
registerStyle(styles2[i2].getAttribute(HYDRATED_STYLE_ID), convertScopedToShadow(styles2[i2].innerHTML), true);
|
|
2664
907
|
}
|
|
2665
908
|
};
|
|
909
|
+
var isComplexType = (o) => {
|
|
910
|
+
o = typeof o;
|
|
911
|
+
return o === "object" || o === "function";
|
|
912
|
+
};
|
|
913
|
+
|
|
914
|
+
// src/runtime/vdom/h.ts
|
|
2666
915
|
var h = (nodeName, vnodeData, ...children) => {
|
|
2667
916
|
if (typeof nodeName === "string") {
|
|
2668
917
|
nodeName = transformTag(nodeName);
|
|
@@ -2723,7 +972,8 @@ var newVNode = (tag, text) => {
|
|
|
2723
972
|
const vnode = {
|
|
2724
973
|
$flags$: 0,
|
|
2725
974
|
$tag$: tag,
|
|
2726
|
-
|
|
975
|
+
// Normalize undefined to null to prevent rendering "undefined" as text
|
|
976
|
+
$text$: text != null ? text : null,
|
|
2727
977
|
$elm$: null,
|
|
2728
978
|
$children$: null
|
|
2729
979
|
};
|
|
@@ -2814,7 +1064,7 @@ var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
|
|
|
2814
1064
|
cmpMeta.$cmpMeta$);
|
|
2815
1065
|
const styleSheet = win.document.querySelector(`style[sty-id="${scopeId3}"]`);
|
|
2816
1066
|
if (styleSheet) {
|
|
2817
|
-
|
|
1067
|
+
shadowRootNodes.unshift(styleSheet.cloneNode(true));
|
|
2818
1068
|
}
|
|
2819
1069
|
}
|
|
2820
1070
|
}
|
|
@@ -2887,7 +1137,7 @@ var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
|
|
|
2887
1137
|
currentPos = (slottedItem.node["s-oo"] || currentPos) + 1;
|
|
2888
1138
|
}
|
|
2889
1139
|
}
|
|
2890
|
-
if (shadowRoot) {
|
|
1140
|
+
if (shadowRoot && !shadowRoot.childNodes.length) {
|
|
2891
1141
|
let rnIdex = 0;
|
|
2892
1142
|
const rnLen = shadowRootNodes.length;
|
|
2893
1143
|
if (rnLen) {
|
|
@@ -3158,18 +1408,111 @@ var findCorrespondingNode = (node, type) => {
|
|
|
3158
1408
|
} while (sibling && (sibling.nodeType !== type || !sibling.nodeValue));
|
|
3159
1409
|
return sibling;
|
|
3160
1410
|
};
|
|
3161
|
-
|
|
3162
|
-
|
|
3163
|
-
|
|
3164
|
-
|
|
3165
|
-
|
|
3166
|
-
|
|
3167
|
-
|
|
3168
|
-
|
|
1411
|
+
|
|
1412
|
+
// src/utils/remote-value.ts
|
|
1413
|
+
var RemoteValue = class _RemoteValue {
|
|
1414
|
+
/**
|
|
1415
|
+
* Deserializes a LocalValue serialized object back to its original JavaScript representation
|
|
1416
|
+
*
|
|
1417
|
+
* @param serialized The serialized LocalValue object
|
|
1418
|
+
* @returns The original JavaScript value/object
|
|
1419
|
+
*/
|
|
1420
|
+
static fromLocalValue(serialized) {
|
|
1421
|
+
const type = serialized[TYPE_CONSTANT];
|
|
1422
|
+
const value = VALUE_CONSTANT in serialized ? serialized[VALUE_CONSTANT] : void 0;
|
|
1423
|
+
switch (type) {
|
|
1424
|
+
case "string" /* String */:
|
|
1425
|
+
return value;
|
|
1426
|
+
case "boolean" /* Boolean */:
|
|
1427
|
+
return value;
|
|
1428
|
+
case "bigint" /* BigInt */:
|
|
1429
|
+
return BigInt(value);
|
|
1430
|
+
case "undefined" /* Undefined */:
|
|
1431
|
+
return void 0;
|
|
1432
|
+
case "null" /* Null */:
|
|
1433
|
+
return null;
|
|
1434
|
+
case "number" /* Number */:
|
|
1435
|
+
if (value === "NaN") return NaN;
|
|
1436
|
+
if (value === "-0") return -0;
|
|
1437
|
+
if (value === "Infinity") return Infinity;
|
|
1438
|
+
if (value === "-Infinity") return -Infinity;
|
|
1439
|
+
return value;
|
|
1440
|
+
case "array" /* Array */:
|
|
1441
|
+
return value.map((item) => _RemoteValue.fromLocalValue(item));
|
|
1442
|
+
case "date" /* Date */:
|
|
1443
|
+
return new Date(value);
|
|
1444
|
+
case "map" /* Map */:
|
|
1445
|
+
const map = /* @__PURE__ */ new Map();
|
|
1446
|
+
for (const [key, val] of value) {
|
|
1447
|
+
const deserializedKey = typeof key === "object" && key !== null ? _RemoteValue.fromLocalValue(key) : key;
|
|
1448
|
+
const deserializedValue = _RemoteValue.fromLocalValue(val);
|
|
1449
|
+
map.set(deserializedKey, deserializedValue);
|
|
1450
|
+
}
|
|
1451
|
+
return map;
|
|
1452
|
+
case "object" /* Object */:
|
|
1453
|
+
const obj = {};
|
|
1454
|
+
for (const [key, val] of value) {
|
|
1455
|
+
obj[key] = _RemoteValue.fromLocalValue(val);
|
|
1456
|
+
}
|
|
1457
|
+
return obj;
|
|
1458
|
+
case "regexp" /* RegularExpression */:
|
|
1459
|
+
const { pattern, flags } = value;
|
|
1460
|
+
return new RegExp(pattern, flags);
|
|
1461
|
+
case "set" /* Set */:
|
|
1462
|
+
const set = /* @__PURE__ */ new Set();
|
|
1463
|
+
for (const item of value) {
|
|
1464
|
+
set.add(_RemoteValue.fromLocalValue(item));
|
|
1465
|
+
}
|
|
1466
|
+
return set;
|
|
1467
|
+
case "symbol" /* Symbol */:
|
|
1468
|
+
return Symbol(value);
|
|
1469
|
+
default:
|
|
1470
|
+
throw new Error(`Unsupported type: ${type}`);
|
|
1471
|
+
}
|
|
1472
|
+
}
|
|
1473
|
+
/**
|
|
1474
|
+
* Utility method to deserialize multiple LocalValues at once
|
|
1475
|
+
*
|
|
1476
|
+
* @param serializedValues Array of serialized LocalValue objects
|
|
1477
|
+
* @returns Array of deserialized JavaScript values
|
|
1478
|
+
*/
|
|
1479
|
+
static fromLocalValueArray(serializedValues) {
|
|
1480
|
+
return serializedValues.map((value) => _RemoteValue.fromLocalValue(value));
|
|
1481
|
+
}
|
|
1482
|
+
/**
|
|
1483
|
+
* Verifies if the given object matches the structure of a serialized LocalValue
|
|
1484
|
+
*
|
|
1485
|
+
* @param obj Object to verify
|
|
1486
|
+
* @returns boolean indicating if the object has LocalValue structure
|
|
1487
|
+
*/
|
|
1488
|
+
static isLocalValueObject(obj) {
|
|
1489
|
+
if (typeof obj !== "object" || obj === null) {
|
|
1490
|
+
return false;
|
|
1491
|
+
}
|
|
1492
|
+
if (!obj.hasOwnProperty(TYPE_CONSTANT)) {
|
|
1493
|
+
return false;
|
|
1494
|
+
}
|
|
1495
|
+
const type = obj[TYPE_CONSTANT];
|
|
1496
|
+
const hasTypeProperty = Object.values({ ...PrimitiveType, ...NonPrimitiveType }).includes(type);
|
|
1497
|
+
if (!hasTypeProperty) {
|
|
1498
|
+
return false;
|
|
1499
|
+
}
|
|
1500
|
+
if (type !== "null" /* Null */ && type !== "undefined" /* Undefined */) {
|
|
1501
|
+
return obj.hasOwnProperty(VALUE_CONSTANT);
|
|
1502
|
+
}
|
|
1503
|
+
return true;
|
|
1504
|
+
}
|
|
3169
1505
|
};
|
|
3170
|
-
|
|
3171
|
-
|
|
3172
|
-
|
|
1506
|
+
|
|
1507
|
+
// src/utils/serialize.ts
|
|
1508
|
+
function deserializeProperty(value) {
|
|
1509
|
+
if (typeof value !== "string" || !value.startsWith(SERIALIZED_PREFIX)) {
|
|
1510
|
+
return value;
|
|
1511
|
+
}
|
|
1512
|
+
return RemoteValue.fromLocalValue(JSON.parse(atob(value.slice(SERIALIZED_PREFIX.length))));
|
|
1513
|
+
}
|
|
1514
|
+
|
|
1515
|
+
// src/runtime/parse-property-value.ts
|
|
3173
1516
|
var parsePropertyValue = (propValue, propType, isFormAssociated) => {
|
|
3174
1517
|
if (typeof propValue === "string" && propValue.startsWith(SERIALIZED_PREFIX)) {
|
|
3175
1518
|
propValue = deserializeProperty(propValue);
|
|
@@ -3377,16 +1720,14 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
|
3377
1720
|
let i2 = 0;
|
|
3378
1721
|
let elm;
|
|
3379
1722
|
let childNode;
|
|
3380
|
-
if (newVNode2.$text$
|
|
1723
|
+
if (newVNode2.$text$ != null) {
|
|
3381
1724
|
elm = newVNode2.$elm$ = win.document.createTextNode(newVNode2.$text$);
|
|
3382
1725
|
} else {
|
|
3383
1726
|
if (!isSvgMode) {
|
|
3384
1727
|
isSvgMode = newVNode2.$tag$ === "svg";
|
|
3385
1728
|
}
|
|
3386
1729
|
if (!win.document) {
|
|
3387
|
-
throw new Error(
|
|
3388
|
-
"You are trying to render a Stencil component in an environment that doesn't support the DOM. Make sure to populate the [`window`](https://developer.mozilla.org/en-US/docs/Web/API/Window/window) object before rendering a component."
|
|
3389
|
-
);
|
|
1730
|
+
throw new Error("You are trying to render a Stencil component in an environment that doesn't support the DOM.");
|
|
3390
1731
|
}
|
|
3391
1732
|
elm = newVNode2.$elm$ = win.document.createElementNS(
|
|
3392
1733
|
isSvgMode ? SVG_NS : HTML_NS,
|
|
@@ -3571,7 +1912,7 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
|
|
|
3571
1912
|
const newChildren = newVNode2.$children$;
|
|
3572
1913
|
const tag = newVNode2.$tag$;
|
|
3573
1914
|
const text = newVNode2.$text$;
|
|
3574
|
-
if (text
|
|
1915
|
+
if (text == null) {
|
|
3575
1916
|
{
|
|
3576
1917
|
isSvgMode = tag === "svg" ? true : tag === "foreignObject" ? false : isSvgMode;
|
|
3577
1918
|
}
|
|
@@ -3613,15 +1954,6 @@ var nullifyVNodeRefs = (vNode) => {
|
|
|
3613
1954
|
}
|
|
3614
1955
|
};
|
|
3615
1956
|
var insertBefore = (parent, newNode, reference, isInitialLoad) => {
|
|
3616
|
-
if (typeof newNode["s-sn"] === "string") {
|
|
3617
|
-
if (parent.getRootNode().nodeType !== 11 /* DOCUMENT_FRAGMENT_NODE */) {
|
|
3618
|
-
patchParentNode(newNode);
|
|
3619
|
-
}
|
|
3620
|
-
parent.insertBefore(newNode, reference);
|
|
3621
|
-
const { slotNode } = findSlotFromSlottedNode(newNode);
|
|
3622
|
-
if (slotNode && true) dispatchSlotChangeEvent(slotNode);
|
|
3623
|
-
return newNode;
|
|
3624
|
-
}
|
|
3625
1957
|
if (parent.__insertBefore) {
|
|
3626
1958
|
return parent.__insertBefore(newNode, reference);
|
|
3627
1959
|
} else {
|
|
@@ -3705,8 +2037,8 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
|
|
|
3705
2037
|
endSchedule();
|
|
3706
2038
|
return enqueue(maybePromise, () => updateComponent(hostRef, instance, isInitialLoad));
|
|
3707
2039
|
};
|
|
3708
|
-
var enqueue = (maybePromise, fn) => isPromisey(maybePromise) ? maybePromise.then(fn).catch((
|
|
3709
|
-
console.error(
|
|
2040
|
+
var enqueue = (maybePromise, fn) => isPromisey(maybePromise) ? maybePromise.then(fn).catch((err) => {
|
|
2041
|
+
console.error(err);
|
|
3710
2042
|
fn();
|
|
3711
2043
|
}) : fn();
|
|
3712
2044
|
var isPromisey = (maybePromise) => maybePromise instanceof Promise || maybePromise && maybePromise.then && typeof maybePromise.then === "function";
|
|
@@ -4213,7 +2545,6 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
4213
2545
|
{
|
|
4214
2546
|
hydrateScopedToShadow();
|
|
4215
2547
|
}
|
|
4216
|
-
let hasSlotRelocation = false;
|
|
4217
2548
|
lazyBundles.map((lazyBundle) => {
|
|
4218
2549
|
lazyBundle[1].map((compactMeta) => {
|
|
4219
2550
|
var _a2, _b, _c;
|
|
@@ -4223,9 +2554,6 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
4223
2554
|
$members$: compactMeta[2],
|
|
4224
2555
|
$listeners$: compactMeta[3]
|
|
4225
2556
|
};
|
|
4226
|
-
if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
|
|
4227
|
-
hasSlotRelocation = true;
|
|
4228
|
-
}
|
|
4229
2557
|
{
|
|
4230
2558
|
cmpMeta.$members$ = compactMeta[2];
|
|
4231
2559
|
}
|
|
@@ -4316,9 +2644,6 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
4316
2644
|
});
|
|
4317
2645
|
});
|
|
4318
2646
|
if (cmpTags.length > 0) {
|
|
4319
|
-
if (hasSlotRelocation) {
|
|
4320
|
-
dataStyles.textContent += SLOT_FB_CSS;
|
|
4321
|
-
}
|
|
4322
2647
|
{
|
|
4323
2648
|
dataStyles.textContent += cmpTags.sort() + HYDRATED_CSS;
|
|
4324
2649
|
}
|