@lmvz-ds/components 0.15.2 → 0.16.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/cjs/app-globals-V2Kpy_OQ.js +3 -0
- package/dist/cjs/app-globals-V2Kpy_OQ.js.map +1 -0
- package/dist/cjs/{assets-BnJmIx_h.js → assets-XY-cBmal.js} +5 -2
- package/dist/cjs/assets-XY-cBmal.js.map +1 -0
- package/dist/cjs/header-integration_7.cjs.entry.js +1024 -0
- package/dist/cjs/header-integration_7.cjs.entry.js.map +1 -0
- package/dist/cjs/{Effect-CpZhfb0D.js → icons-BOM23oli.js} +1010 -236
- package/dist/cjs/icons-BOM23oli.js.map +1 -0
- package/dist/cjs/{index-9ZJx0550.js → index-B1Puzu82.js} +11 -651
- package/dist/cjs/index-B1Puzu82.js.map +1 -0
- package/dist/cjs/{index-QRnWYctw.js → index-ww_DCXU7.js} +431 -426
- package/dist/cjs/index-ww_DCXU7.js.map +1 -0
- package/dist/cjs/index.cjs.js +13 -12
- package/dist/cjs/index.cjs.js.map +1 -0
- package/dist/cjs/lmvz-action.cjs.entry.js +5 -2
- package/dist/cjs/lmvz-action.cjs.entry.js.map +1 -0
- package/dist/cjs/lmvz-card.cjs.entry.js +6 -3
- package/dist/cjs/lmvz-card.cjs.entry.js.map +1 -0
- package/dist/cjs/lmvz-chip.cjs.entry.js +5 -2
- package/dist/cjs/lmvz-chip.cjs.entry.js.map +1 -0
- package/dist/cjs/lmvz-components.cjs.js +6 -3
- package/dist/cjs/lmvz-components.cjs.js.map +1 -0
- package/dist/cjs/loader.cjs.js +5 -2
- package/dist/cjs/loader.cjs.js.map +1 -0
- package/dist/collection/api/ds.constants.js +1 -0
- package/dist/collection/api/ds.constants.js.map +1 -0
- package/dist/collection/api/index.js +1 -0
- package/dist/collection/api/index.js.map +1 -0
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/lmvz-action/lmvz-action.js +2 -1
- package/dist/collection/components/lmvz-action/lmvz-action.js.map +1 -0
- package/dist/collection/components/lmvz-button/lmvz-button.js +3 -2
- package/dist/collection/components/lmvz-button/lmvz-button.js.map +1 -0
- package/dist/collection/components/lmvz-card/lmvz-card.js +4 -3
- package/dist/collection/components/lmvz-card/lmvz-card.js.map +1 -0
- package/dist/collection/components/lmvz-chip/lmvz-chip.js +3 -2
- package/dist/collection/components/lmvz-chip/lmvz-chip.js.map +1 -0
- package/dist/collection/components/lmvz-header/lmvz-header.js +13 -8
- package/dist/collection/components/lmvz-header/lmvz-header.js.map +1 -0
- package/dist/collection/components/lmvz-icon/icons.js +1 -0
- package/dist/collection/components/lmvz-icon/icons.js.map +1 -0
- package/dist/collection/components/lmvz-icon/lmvz-icon.js +8 -7
- package/dist/collection/components/lmvz-icon/lmvz-icon.js.map +1 -0
- package/dist/collection/components/lmvz-icon/public.js +1 -0
- package/dist/collection/components/lmvz-icon/public.js.map +1 -0
- package/dist/collection/components/lmvz-icon/test/icons.unit.js +1 -0
- package/dist/collection/components/lmvz-icon/test/icons.unit.js.map +1 -0
- package/dist/collection/components/lmvz-input/lmvz-input.js +32 -27
- package/dist/collection/components/lmvz-input/lmvz-input.js.map +1 -0
- package/dist/collection/components/lmvz-menuitem/lmvz-menuitem.js +5 -2
- package/dist/collection/components/lmvz-menuitem/lmvz-menuitem.js.map +1 -0
- package/dist/collection/components/lmvz-select/lmvz-select.css +1 -1
- package/dist/collection/components/lmvz-select/lmvz-select.js +5 -4
- package/dist/collection/components/lmvz-select/lmvz-select.js.map +1 -0
- package/dist/collection/index.js +1 -0
- package/dist/collection/index.js.map +1 -0
- package/dist/collection/integration/header-integration.js +4 -3
- package/dist/collection/integration/header-integration.js.map +1 -0
- package/dist/collection/utils/aria/aria-validation-controller.js +1 -0
- package/dist/collection/utils/aria/aria-validation-controller.js.map +1 -0
- package/dist/collection/utils/aria/element-activation-controller.js +1 -0
- package/dist/collection/utils/aria/element-activation-controller.js.map +1 -0
- package/dist/collection/utils/aria/list-keyboard-controller.js +7 -4
- package/dist/collection/utils/aria/list-keyboard-controller.js.map +1 -0
- package/dist/collection/utils/assets.js +1 -0
- package/dist/collection/utils/assets.js.map +1 -0
- package/dist/collection/utils/component.js +7 -4
- package/dist/collection/utils/component.js.map +1 -0
- package/dist/collection/utils/effect.js +1 -0
- package/dist/collection/utils/effect.js.map +1 -0
- package/dist/collection/utils/environment.js +1 -0
- package/dist/collection/utils/environment.js.map +1 -0
- package/dist/collection/utils/http.js +1 -0
- package/dist/collection/utils/http.js.map +1 -0
- package/dist/collection/utils/http.unit.js +1 -0
- package/dist/collection/utils/http.unit.js.map +1 -0
- package/dist/collection/utils/public.js +1 -0
- package/dist/collection/utils/public.js.map +1 -0
- package/dist/collection/utils/reactive-controller-host.js +1 -0
- package/dist/collection/utils/reactive-controller-host.js.map +1 -0
- package/dist/collection/utils/validation/svg.js +1 -0
- package/dist/collection/utils/validation/svg.js.map +1 -0
- package/dist/components/header-integration.d.ts +11 -0
- package/dist/components/header-integration.js +2 -0
- package/dist/components/header-integration.js.map +1 -0
- package/dist/components/index.d.ts +2 -0
- package/dist/components/index.js +2 -1
- package/dist/components/index.js.map +1 -0
- package/dist/components/lmvz-action.js +2 -1
- package/dist/components/lmvz-action.js.map +1 -0
- package/dist/components/lmvz-button.js +2 -1
- package/dist/components/lmvz-button.js.map +1 -0
- package/dist/components/lmvz-card.js +2 -1
- package/dist/components/lmvz-card.js.map +1 -0
- package/dist/components/lmvz-chip.js +2 -1
- package/dist/components/lmvz-chip.js.map +1 -0
- package/dist/components/lmvz-header.js +2 -1
- package/dist/components/lmvz-header.js.map +1 -0
- package/dist/components/lmvz-icon.js +2 -1
- package/dist/components/lmvz-icon.js.map +1 -0
- package/dist/components/lmvz-input.js +2 -1
- package/dist/components/lmvz-input.js.map +1 -0
- package/dist/components/lmvz-menuitem.js +2 -1
- package/dist/components/lmvz-menuitem.js.map +1 -0
- package/dist/components/lmvz-select.js +2 -1
- package/dist/components/lmvz-select.js.map +1 -0
- package/dist/components/p-B2g3aN-E.js +2 -0
- package/dist/components/p-B2g3aN-E.js.map +1 -0
- package/dist/components/p-BXdOuZTp.js +2 -0
- package/dist/components/p-BXdOuZTp.js.map +1 -0
- package/dist/components/p-BfTCfPZ1.js +3 -2
- package/dist/components/p-BfTCfPZ1.js.map +1 -0
- package/dist/components/p-BpCjj39Z.js +2 -0
- package/dist/components/p-BpCjj39Z.js.map +1 -0
- package/dist/components/p-BsHYIl56.js +2 -0
- package/dist/components/p-BsHYIl56.js.map +1 -0
- package/dist/components/p-C5rqq3bf.js +2 -0
- package/dist/components/p-C5rqq3bf.js.map +1 -0
- package/dist/components/p-CI0tffvo.js +2 -0
- package/dist/components/p-CI0tffvo.js.map +1 -0
- package/dist/components/p-CN0JX9-m.js +2 -1
- package/dist/components/p-CN0JX9-m.js.map +1 -0
- package/dist/components/p-ClmDNIy4.js +2 -0
- package/dist/components/p-ClmDNIy4.js.map +1 -0
- package/dist/components/p-DQEkWkMh.js +2 -0
- package/dist/components/p-DQEkWkMh.js.map +1 -0
- package/dist/components/p-X5fEFT9T.js +2 -0
- package/dist/components/p-X5fEFT9T.js.map +1 -0
- package/dist/components/p-vIq2biqy.js +13 -0
- package/dist/components/p-vIq2biqy.js.map +1 -0
- package/dist/esm/app-globals-DQuL1Twl.js +3 -0
- package/dist/esm/app-globals-DQuL1Twl.js.map +1 -0
- package/dist/esm/{assets-CvV1KMMV.js → assets-BD98wsl7.js} +4 -1
- package/dist/esm/assets-BD98wsl7.js.map +1 -0
- package/dist/esm/header-integration_7.entry.js +1016 -0
- package/dist/esm/header-integration_7.entry.js.map +1 -0
- package/dist/esm/{Effect-DyamyJqO.js → icons-D1lxdRXP.js} +975 -174
- package/dist/esm/icons-D1lxdRXP.js.map +1 -0
- package/dist/esm/{index-CekEw3_K.js → index-DoNkkDv1.js} +6 -1
- package/dist/esm/index-DoNkkDv1.js.map +1 -0
- package/dist/esm/{index-smGPjoDX.js → index-WeqgWisK.js} +11 -651
- package/dist/esm/index-WeqgWisK.js.map +1 -0
- package/dist/esm/index.js +7 -5
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/lmvz-action.entry.js +5 -2
- package/dist/esm/lmvz-action.entry.js.map +1 -0
- package/dist/esm/lmvz-card.entry.js +6 -3
- package/dist/esm/lmvz-card.entry.js.map +1 -0
- package/dist/esm/lmvz-chip.entry.js +5 -2
- package/dist/esm/lmvz-chip.entry.js.map +1 -0
- package/dist/esm/lmvz-components.js +7 -4
- package/dist/esm/lmvz-components.js.map +1 -0
- package/dist/esm/loader.js +6 -3
- package/dist/esm/loader.js.map +1 -0
- package/dist/ext-libs.d.ts +1 -0
- package/dist/lmvz-components/index.esm.js +2 -1
- package/dist/lmvz-components/index.esm.js.map +1 -0
- package/dist/lmvz-components/lmvz-components.esm.js +2 -1
- package/dist/lmvz-components/lmvz-components.esm.js.map +1 -0
- package/dist/lmvz-components/p-33485219.entry.js +2 -0
- package/dist/lmvz-components/p-33485219.entry.js.map +1 -0
- package/dist/lmvz-components/p-76032c32.entry.js +2 -0
- package/dist/lmvz-components/p-76032c32.entry.js.map +1 -0
- package/dist/lmvz-components/p-7aeec9a8.entry.js +7 -0
- package/dist/lmvz-components/p-7aeec9a8.entry.js.map +1 -0
- package/dist/lmvz-components/p-84e0a9dd.entry.js +2 -0
- package/dist/lmvz-components/p-84e0a9dd.entry.js.map +1 -0
- package/dist/lmvz-components/p-CkJb8WVZ.js +2 -0
- package/dist/lmvz-components/p-CkJb8WVZ.js.map +1 -0
- package/dist/lmvz-components/p-DQuL1Twl.js +2 -1
- package/dist/lmvz-components/p-DQuL1Twl.js.map +1 -0
- package/dist/lmvz-components/p-WeqgWisK.js +3 -0
- package/dist/lmvz-components/p-WeqgWisK.js.map +1 -0
- package/dist/lmvz-components/p-Z9X0_ik0.js +2 -0
- package/dist/lmvz-components/p-Z9X0_ik0.js.map +1 -0
- package/dist/lmvz-components/p-eP0oxQ44.js +13 -0
- package/dist/lmvz-components/p-eP0oxQ44.js.map +1 -0
- package/dist/manifest.json +196 -76
- package/dist/stencil.config.base.js +45 -0
- package/dist/stencil.config.base.js.map +1 -0
- package/dist/stencil.config.dev.js +22 -0
- package/dist/stencil.config.dev.js.map +1 -0
- package/dist/stencil.config.integration.js +27 -0
- package/dist/stencil.config.integration.js.map +1 -0
- package/dist/stencil.config.js +16 -0
- package/dist/stencil.config.js.map +1 -0
- package/dist/stencil.config.prod.js +30 -0
- package/dist/stencil.config.prod.js.map +1 -0
- package/dist/types/Users/patrick.nemenz/workspace/lmvz/lmvz-ds/packages/components/.stencil/stencil.config.base.d.ts +2 -0
- package/dist/types/Users/patrick.nemenz/workspace/lmvz/lmvz-ds/packages/components/.stencil/stencil.config.d.ts +2 -0
- package/dist/types/Users/patrick.nemenz/workspace/lmvz/lmvz-ds/packages/components/.stencil/stencil.config.dev.d.ts +2 -0
- package/dist/types/Users/patrick.nemenz/workspace/lmvz/lmvz-ds/packages/components/.stencil/stencil.config.integration.d.ts +2 -0
- package/dist/types/Users/patrick.nemenz/workspace/lmvz/lmvz-ds/packages/components/.stencil/stencil.config.prod.d.ts +2 -0
- package/dist/types/components/lmvz-action/lmvz-action.d.ts +1 -1
- package/dist/types/components/lmvz-button/lmvz-button.d.ts +2 -2
- package/dist/types/components/lmvz-card/lmvz-card.d.ts +1 -1
- package/dist/types/components/lmvz-header/lmvz-header.d.ts +3 -3
- package/dist/types/components/lmvz-icon/lmvz-icon.d.ts +4 -4
- package/dist/types/components/lmvz-input/lmvz-input.d.ts +3 -3
- package/dist/types/components/lmvz-menuitem/lmvz-menuitem.d.ts +3 -3
- package/dist/types/components/lmvz-select/lmvz-select.d.ts +1 -1
- package/dist/types/components.d.ts +21 -3
- package/dist/types/index.d.ts +1 -1
- package/dist/types/integration/header-integration.d.ts +5 -0
- package/dist/types/utils/aria/aria-validation-controller.d.ts +1 -1
- package/dist/types/utils/aria/element-activation-controller.d.ts +1 -1
- package/dist/types/utils/component.d.ts +2 -2
- package/dist/types/utils/http.d.ts +3 -3
- package/dist/types/utils/validation/svg.d.ts +1 -1
- package/hydrate/index.js +907 -440
- package/hydrate/index.mjs +907 -440
- package/package.json +33 -73
- package/readme.md +2 -2
- package/dist/cjs/aria-loader-B7b45RMv.js +0 -86
- package/dist/cjs/component-CRc6eHcV.js +0 -138
- package/dist/cjs/element-activation-controller-DC_6T0Rt.js +0 -31
- package/dist/cjs/icons-Brr4vqiE.js +0 -653
- package/dist/cjs/lmvz-button_3.cjs.entry.js +0 -399
- package/dist/cjs/lmvz-header.cjs.entry.js +0 -144
- package/dist/cjs/lmvz-icon.cjs.entry.js +0 -87
- package/dist/cjs/lmvz-menuitem.cjs.entry.js +0 -34
- package/dist/cjs/reactive-controller-host-Ai9l4S9S.js +0 -189
- package/dist/collection/utils/typing.js +0 -1
- package/dist/components/p-B3JVFwO1.js +0 -1
- package/dist/components/p-BaPwpeMs.js +0 -1
- package/dist/components/p-CSRpdnrt.js +0 -1
- package/dist/components/p-DK2hpvEW.js +0 -12
- package/dist/components/p-DR19QMDG.js +0 -1
- package/dist/components/p-DcMNH3fv.js +0 -1
- package/dist/esm/aria-loader-Ddn7Qz_6.js +0 -79
- package/dist/esm/component-DpoTUPzl.js +0 -132
- package/dist/esm/element-activation-controller-CN0JX9-m.js +0 -29
- package/dist/esm/icons-C69Um2xB.js +0 -649
- package/dist/esm/lmvz-button_3.entry.js +0 -395
- package/dist/esm/lmvz-header.entry.js +0 -142
- package/dist/esm/lmvz-icon.entry.js +0 -85
- package/dist/esm/lmvz-menuitem.entry.js +0 -32
- package/dist/esm/reactive-controller-host-CdAJ3t-B.js +0 -186
- package/dist/lmvz-components/p-70ca3319.entry.js +0 -1
- package/dist/lmvz-components/p-73648317.entry.js +0 -1
- package/dist/lmvz-components/p-8ed959da.entry.js +0 -1
- package/dist/lmvz-components/p-9526c364.entry.js +0 -1
- package/dist/lmvz-components/p-9faac8f3.entry.js +0 -1
- package/dist/lmvz-components/p-B7KSylv_.js +0 -1
- package/dist/lmvz-components/p-BEoSvNlI.js +0 -1
- package/dist/lmvz-components/p-CN0JX9-m.js +0 -1
- package/dist/lmvz-components/p-D7GrtdQF.js +0 -1
- package/dist/lmvz-components/p-D7RHrBYK.js +0 -1
- package/dist/lmvz-components/p-DpoTUPzl.js +0 -1
- package/dist/lmvz-components/p-DyamyJqO.js +0 -1
- package/dist/lmvz-components/p-cM67HC0Z.js +0 -12
- package/dist/lmvz-components/p-d4b68381.entry.js +0 -1
- package/dist/lmvz-components/p-ea1a9d4a.entry.js +0 -6
- package/dist/lmvz-components/p-smGPjoDX.js +0 -2
- package/dist/types/utils/typing.d.ts +0 -3
package/hydrate/index.mjs
CHANGED
|
@@ -134,7 +134,7 @@ const NAMESPACE = 'lmvz-components';
|
|
|
134
134
|
const BUILD = /* lmvz-components */ { hotModuleReplacement: false, hydratedSelectorName: "hydrated", slotRelocation: true, state: true, updatable: true};
|
|
135
135
|
|
|
136
136
|
/*
|
|
137
|
-
Stencil Hydrate Platform v4.43.
|
|
137
|
+
Stencil Hydrate Platform v4.43.3 | MIT Licensed | https://stenciljs.com
|
|
138
138
|
*/
|
|
139
139
|
var __create = Object.create;
|
|
140
140
|
var __defProp = Object.defineProperty;
|
|
@@ -169,7 +169,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
169
169
|
__defProp(target, "default", { value: mod, enumerable: true }) ,
|
|
170
170
|
mod
|
|
171
171
|
));
|
|
172
|
-
var __publicField = (obj, key, value) => __defNormalProp(obj, key + "" , value);
|
|
172
|
+
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
173
173
|
var __accessCheck = (obj, member, msg) => member.has(obj) || __typeError("Cannot " + msg);
|
|
174
174
|
var __privateGet = (obj, member, getter) => (__accessCheck(obj, member, "read from private field"), getter ? getter.call(obj) : member.get(obj));
|
|
175
175
|
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);
|
|
@@ -420,9 +420,9 @@ function getPropertyDescriptor(obj, memberName, getOnly) {
|
|
|
420
420
|
|
|
421
421
|
// src/utils/es2022-rewire-class-members.ts
|
|
422
422
|
var reWireGetterSetter = (instance, hostRef) => {
|
|
423
|
-
var
|
|
423
|
+
var _a2;
|
|
424
424
|
const cmpMeta = hostRef.$cmpMeta$;
|
|
425
|
-
const members = Object.entries((
|
|
425
|
+
const members = Object.entries((_a2 = cmpMeta.$members$) != null ? _a2 : {});
|
|
426
426
|
members.map(([memberName, [memberFlags]]) => {
|
|
427
427
|
if ((memberFlags & 31 /* Prop */ || memberFlags & 32 /* State */)) {
|
|
428
428
|
const ogValue = instance[memberName];
|
|
@@ -480,13 +480,13 @@ function createStyleSheetIfNeededAndSupported(styles2) {
|
|
|
480
480
|
// src/utils/shadow-root.ts
|
|
481
481
|
var globalStyleSheet;
|
|
482
482
|
function createShadowRoot(cmpMeta) {
|
|
483
|
-
var
|
|
483
|
+
var _a2;
|
|
484
484
|
const opts = { mode: "open" };
|
|
485
485
|
{
|
|
486
486
|
opts.delegatesFocus = !!(cmpMeta.$flags$ & 16 /* shadowDelegatesFocus */);
|
|
487
487
|
}
|
|
488
488
|
const shadowRoot = this.attachShadow(opts);
|
|
489
|
-
if (globalStyleSheet === void 0) globalStyleSheet = (
|
|
489
|
+
if (globalStyleSheet === void 0) globalStyleSheet = (_a2 = createStyleSheetIfNeededAndSupported()) != null ? _a2 : null;
|
|
490
490
|
if (globalStyleSheet) {
|
|
491
491
|
{
|
|
492
492
|
shadowRoot.adoptedStyleSheets = [...shadowRoot.adoptedStyleSheets, globalStyleSheet];
|
|
@@ -622,8 +622,8 @@ function dispatchSlotChangeEvent(elm) {
|
|
|
622
622
|
elm.dispatchEvent(new CustomEvent("slotchange", { bubbles: false, cancelable: false, composed: false }));
|
|
623
623
|
}
|
|
624
624
|
function findSlotFromSlottedNode(slottedNode, parentHost) {
|
|
625
|
-
var
|
|
626
|
-
parentHost = parentHost || ((
|
|
625
|
+
var _a2;
|
|
626
|
+
parentHost = parentHost || ((_a2 = slottedNode["s-ol"]) == null ? void 0 : _a2.parentElement);
|
|
627
627
|
if (!parentHost) return { slotNode: null, slotName: "" };
|
|
628
628
|
const slotName = slottedNode["s-sn"] = getSlotName(slottedNode) || "";
|
|
629
629
|
const childNodes = internalCall(parentHost, "childNodes");
|
|
@@ -657,8 +657,8 @@ var uniqueTime = (key, measureText) => {
|
|
|
657
657
|
|
|
658
658
|
// src/utils/query-nonce-meta-tag-content.ts
|
|
659
659
|
function queryNonceMetaTagContent(doc) {
|
|
660
|
-
var
|
|
661
|
-
return (_c = (_b = (
|
|
660
|
+
var _a2, _b, _c;
|
|
661
|
+
return (_c = (_b = (_a2 = doc.head) == null ? void 0 : _a2.querySelector('meta[name="csp-nonce"]')) == null ? void 0 : _b.getAttribute("content")) != null ? _c : void 0;
|
|
662
662
|
}
|
|
663
663
|
|
|
664
664
|
// src/runtime/styles.ts
|
|
@@ -671,7 +671,7 @@ var registerStyle = (scopeId2, cssText, allowCS) => {
|
|
|
671
671
|
styles.set(scopeId2, style);
|
|
672
672
|
};
|
|
673
673
|
var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
674
|
-
var
|
|
674
|
+
var _a2;
|
|
675
675
|
const scopeId2 = getScopeId(cmpMeta);
|
|
676
676
|
const style = styles.get(scopeId2);
|
|
677
677
|
if (!win.document) {
|
|
@@ -692,7 +692,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
692
692
|
} else if (!appliedStyles.has(scopeId2)) {
|
|
693
693
|
styleElm = win.document.createElement("style");
|
|
694
694
|
styleElm.textContent = style;
|
|
695
|
-
const nonce = (
|
|
695
|
+
const nonce = (_a2 = plt.$nonce$) != null ? _a2 : queryNonceMetaTagContent(win.document);
|
|
696
696
|
if (nonce != null) {
|
|
697
697
|
styleElm.setAttribute("nonce", nonce);
|
|
698
698
|
}
|
|
@@ -839,7 +839,7 @@ var isHost = (node) => node && node.$tag$ === Host;
|
|
|
839
839
|
|
|
840
840
|
// src/runtime/client-hydrate.ts
|
|
841
841
|
var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
|
|
842
|
-
var
|
|
842
|
+
var _a2, _b, _c, _d;
|
|
843
843
|
const endHydrate = createTime("hydrateClient", tagName);
|
|
844
844
|
const shadowRoot = hostElm.shadowRoot;
|
|
845
845
|
const childRenderNodes = [];
|
|
@@ -886,7 +886,7 @@ var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
|
|
|
886
886
|
if (childRenderNode.$tag$ === "slot") {
|
|
887
887
|
node["s-cr"] = hostElm["s-cr"];
|
|
888
888
|
}
|
|
889
|
-
} else if (((
|
|
889
|
+
} else if (((_a2 = childRenderNode.$tag$) == null ? void 0 : _a2.toString().includes("-")) && childRenderNode.$tag$ !== "slot-fb" && !childRenderNode.$elm$.shadowRoot) {
|
|
890
890
|
const cmpMeta = getHostRef(childRenderNode.$elm$);
|
|
891
891
|
if (cmpMeta) {
|
|
892
892
|
const scopeId3 = getScopeId(
|
|
@@ -1231,10 +1231,10 @@ function addSlot(slotName, slotId, childVNode, node, parentVNode, childRenderNod
|
|
|
1231
1231
|
parentVNode.$children$[childVNode.$index$] = childVNode;
|
|
1232
1232
|
}
|
|
1233
1233
|
var addSlottedNodes = (slottedNodes, slotNodeId, slotName, slotNode, hostId) => {
|
|
1234
|
-
var
|
|
1234
|
+
var _a2, _b;
|
|
1235
1235
|
let slottedNode = slotNode.nextSibling;
|
|
1236
1236
|
slottedNodes[slotNodeId] = slottedNodes[slotNodeId] || [];
|
|
1237
|
-
if (!slottedNode || ((
|
|
1237
|
+
if (!slottedNode || ((_a2 = slottedNode.nodeValue) == null ? void 0 : _a2.startsWith(SLOT_NODE_ID + "."))) return;
|
|
1238
1238
|
do {
|
|
1239
1239
|
if (slottedNode && ((slottedNode["getAttribute"] && slottedNode.getAttribute("slot") || slottedNode["s-sn"]) === slotName || slotName === "" && !slottedNode["s-sn"] && (!slottedNode["getAttribute"] || !slottedNode.getAttribute("slot")) && (slottedNode.nodeType === 8 /* CommentNode */ || slottedNode.nodeType === 3 /* TextNode */))) {
|
|
1240
1240
|
slottedNode["s-sn"] = slotName;
|
|
@@ -1790,8 +1790,8 @@ var parsePropertyValue = (propValue, propType, isFormAssociated) => {
|
|
|
1790
1790
|
return propValue;
|
|
1791
1791
|
};
|
|
1792
1792
|
var getElement = (ref) => {
|
|
1793
|
-
var
|
|
1794
|
-
return (
|
|
1793
|
+
var _a2;
|
|
1794
|
+
return (_a2 = getHostRef(ref)) == null ? void 0 : _a2.$hostElement$ ;
|
|
1795
1795
|
};
|
|
1796
1796
|
|
|
1797
1797
|
// src/runtime/event-emitter.ts
|
|
@@ -2016,7 +2016,7 @@ var isSvgMode = false;
|
|
|
2016
2016
|
var refCallbacksToRemove = [];
|
|
2017
2017
|
var refCallbacksToAttach = [];
|
|
2018
2018
|
var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
2019
|
-
var
|
|
2019
|
+
var _a2;
|
|
2020
2020
|
const newVNode2 = newParentVNode.$children$[childIndex];
|
|
2021
2021
|
let i2 = 0;
|
|
2022
2022
|
let elm;
|
|
@@ -2073,7 +2073,7 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
|
2073
2073
|
elm["s-sr"] = true;
|
|
2074
2074
|
elm["s-cr"] = contentRef;
|
|
2075
2075
|
elm["s-sn"] = newVNode2.$name$ || "";
|
|
2076
|
-
elm["s-rf"] = (
|
|
2076
|
+
elm["s-rf"] = (_a2 = newVNode2.$attrs$) == null ? void 0 : _a2.ref;
|
|
2077
2077
|
patchSlotNode(elm);
|
|
2078
2078
|
oldVNode = oldParentVNode && oldParentVNode.$children$ && oldParentVNode.$children$[childIndex];
|
|
2079
2079
|
if (oldVNode && oldVNode.$tag$ === newVNode2.$tag$ && oldParentVNode.$elm$) {
|
|
@@ -2409,12 +2409,12 @@ var insertBefore = (parent, newNode, reference, isInitialLoad) => {
|
|
|
2409
2409
|
}
|
|
2410
2410
|
};
|
|
2411
2411
|
function addRemoveSlotScopedClass(reference, slotNode, newParent, oldParent) {
|
|
2412
|
-
var
|
|
2412
|
+
var _a2, _b;
|
|
2413
2413
|
let scopeId2;
|
|
2414
2414
|
if (reference && typeof slotNode["s-sn"] === "string" && !!slotNode["s-sr"] && reference.parentNode && reference.parentNode["s-sc"] && (scopeId2 = slotNode["s-si"] || reference.parentNode["s-sc"])) {
|
|
2415
2415
|
const scopeName = slotNode["s-sn"];
|
|
2416
2416
|
const hostName = slotNode["s-hn"];
|
|
2417
|
-
(
|
|
2417
|
+
(_a2 = newParent.classList) == null ? void 0 : _a2.add(scopeId2 + "-s");
|
|
2418
2418
|
if (oldParent && ((_b = oldParent.classList) == null ? void 0 : _b.contains(scopeId2 + "-s"))) {
|
|
2419
2419
|
let child = (oldParent.__childNodes || oldParent.childNodes)[0];
|
|
2420
2420
|
let found = false;
|
|
@@ -2430,7 +2430,7 @@ function addRemoveSlotScopedClass(reference, slotNode, newParent, oldParent) {
|
|
|
2430
2430
|
}
|
|
2431
2431
|
}
|
|
2432
2432
|
var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
2433
|
-
var
|
|
2433
|
+
var _a2, _d, _e;
|
|
2434
2434
|
const hostElm = hostRef.$hostElement$;
|
|
2435
2435
|
const cmpMeta = hostRef.$cmpMeta$;
|
|
2436
2436
|
const oldVNode = hostRef.$vnode$ || newVNode(null, null);
|
|
@@ -2486,7 +2486,7 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
2486
2486
|
const nodeToRelocate = relocateData.$nodeToRelocate$;
|
|
2487
2487
|
const slotRefNode = relocateData.$slotRefNode$;
|
|
2488
2488
|
if (nodeToRelocate.nodeType === 1 /* ElementNode */ && isInitialLoad) {
|
|
2489
|
-
nodeToRelocate["s-ih"] = (
|
|
2489
|
+
nodeToRelocate["s-ih"] = (_a2 = nodeToRelocate.hidden) != null ? _a2 : false;
|
|
2490
2490
|
}
|
|
2491
2491
|
if (slotRefNode) {
|
|
2492
2492
|
const parentNodeRef = slotRefNode.parentNode;
|
|
@@ -2546,14 +2546,14 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
2546
2546
|
flushQueuedRefCallbacks();
|
|
2547
2547
|
};
|
|
2548
2548
|
var slotReferenceDebugNode = (slotVNode) => {
|
|
2549
|
-
var
|
|
2550
|
-
return (
|
|
2549
|
+
var _a2;
|
|
2550
|
+
return (_a2 = win.document) == null ? void 0 : _a2.createComment(
|
|
2551
2551
|
`<slot${slotVNode.$name$ ? ' name="' + slotVNode.$name$ + '"' : ""}> (host=${hostTagName.toLowerCase()})`
|
|
2552
2552
|
);
|
|
2553
2553
|
};
|
|
2554
2554
|
var originalLocationDebugNode = (nodeToRelocate) => {
|
|
2555
|
-
var
|
|
2556
|
-
return (
|
|
2555
|
+
var _a2;
|
|
2556
|
+
return (_a2 = win.document) == null ? void 0 : _a2.createComment(
|
|
2557
2557
|
`org-location for ` + (nodeToRelocate.localName ? `<${nodeToRelocate.localName}> (host=${nodeToRelocate["s-hn"]})` : `[${nodeToRelocate.textContent}]`)
|
|
2558
2558
|
);
|
|
2559
2559
|
};
|
|
@@ -2623,7 +2623,7 @@ var enqueue = (maybePromise, fn) => isPromisey(maybePromise) ? maybePromise.then
|
|
|
2623
2623
|
}) : fn();
|
|
2624
2624
|
var isPromisey = (maybePromise) => maybePromise instanceof Promise || maybePromise && maybePromise.then && typeof maybePromise.then === "function";
|
|
2625
2625
|
var updateComponent = async (hostRef, instance, isInitialLoad) => {
|
|
2626
|
-
var
|
|
2626
|
+
var _a2;
|
|
2627
2627
|
const elm = hostRef.$hostElement$;
|
|
2628
2628
|
const endUpdate = createTime("update", hostRef.$cmpMeta$.$tagName$);
|
|
2629
2629
|
const rc = elm["s-rc"];
|
|
@@ -2655,7 +2655,7 @@ var updateComponent = async (hostRef, instance, isInitialLoad) => {
|
|
|
2655
2655
|
endRender();
|
|
2656
2656
|
endUpdate();
|
|
2657
2657
|
{
|
|
2658
|
-
const childrenPromises = (
|
|
2658
|
+
const childrenPromises = (_a2 = elm["s-p"]) != null ? _a2 : [];
|
|
2659
2659
|
const postUpdate = () => postUpdateComponent(hostRef);
|
|
2660
2660
|
if (childrenPromises.length === 0) {
|
|
2661
2661
|
postUpdate();
|
|
@@ -2726,13 +2726,13 @@ var postUpdateComponent = (hostRef) => {
|
|
|
2726
2726
|
}
|
|
2727
2727
|
};
|
|
2728
2728
|
var appDidLoad = (who) => {
|
|
2729
|
-
var
|
|
2729
|
+
var _a2;
|
|
2730
2730
|
if (BUILD.asyncQueue) {
|
|
2731
2731
|
plt.$flags$ |= 2 /* appLoaded */;
|
|
2732
2732
|
}
|
|
2733
2733
|
nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
|
|
2734
2734
|
{
|
|
2735
|
-
if ((
|
|
2735
|
+
if ((_a2 = plt.$orgLocNodes$) == null ? void 0 : _a2.size) {
|
|
2736
2736
|
plt.$orgLocNodes$.clear();
|
|
2737
2737
|
}
|
|
2738
2738
|
}
|
|
@@ -2748,8 +2748,8 @@ var safeCall = (instance, method, arg, elm) => {
|
|
|
2748
2748
|
return void 0;
|
|
2749
2749
|
};
|
|
2750
2750
|
var addHydratedFlag = (elm) => {
|
|
2751
|
-
var
|
|
2752
|
-
return elm.classList.add((
|
|
2751
|
+
var _a2;
|
|
2752
|
+
return elm.classList.add((_a2 = BUILD.hydratedSelectorName) != null ? _a2 : "hydrated") ;
|
|
2753
2753
|
};
|
|
2754
2754
|
var serverSideConnected = (elm) => {
|
|
2755
2755
|
const children = elm.children;
|
|
@@ -2826,7 +2826,7 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
|
|
|
2826
2826
|
|
|
2827
2827
|
// src/runtime/proxy-component.ts
|
|
2828
2828
|
var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
2829
|
-
var
|
|
2829
|
+
var _a2;
|
|
2830
2830
|
const prototype = Cstr.prototype;
|
|
2831
2831
|
{
|
|
2832
2832
|
{
|
|
@@ -2840,7 +2840,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
2840
2840
|
cmpMeta.$serializers$ = Cstr.serializers;
|
|
2841
2841
|
}
|
|
2842
2842
|
}
|
|
2843
|
-
const members = Object.entries((
|
|
2843
|
+
const members = Object.entries((_a2 = cmpMeta.$members$) != null ? _a2 : {});
|
|
2844
2844
|
members.map(([memberName, [memberFlags]]) => {
|
|
2845
2845
|
if ((memberFlags & 31 /* Prop */ || memberFlags & 32 /* State */)) {
|
|
2846
2846
|
const { get: origGetter, set: origSetter } = getPropertyDescriptor(prototype, memberName) || {};
|
|
@@ -3074,7 +3074,7 @@ var insertVdomAnnotations = (doc, staticComponents) => {
|
|
|
3074
3074
|
const orgLocationNodes = [];
|
|
3075
3075
|
parseVNodeAnnotations(doc, doc.body, docData, orgLocationNodes);
|
|
3076
3076
|
orgLocationNodes.forEach((orgLocationNode) => {
|
|
3077
|
-
var
|
|
3077
|
+
var _a2;
|
|
3078
3078
|
if (orgLocationNode != null && orgLocationNode["s-nr"]) {
|
|
3079
3079
|
const nodeRef = orgLocationNode["s-nr"];
|
|
3080
3080
|
let hostId = nodeRef["s-host-id"];
|
|
@@ -3092,7 +3092,7 @@ var insertVdomAnnotations = (doc, staticComponents) => {
|
|
|
3092
3092
|
}
|
|
3093
3093
|
} else if (nodeRef.nodeType === 3 /* TextNode */) {
|
|
3094
3094
|
if (hostId === 0) {
|
|
3095
|
-
const textContent = (
|
|
3095
|
+
const textContent = (_a2 = nodeRef.nodeValue) == null ? void 0 : _a2.trim();
|
|
3096
3096
|
if (textContent === "") {
|
|
3097
3097
|
orgLocationNode.remove();
|
|
3098
3098
|
return;
|
|
@@ -3122,7 +3122,7 @@ var insertVdomAnnotations = (doc, staticComponents) => {
|
|
|
3122
3122
|
}
|
|
3123
3123
|
};
|
|
3124
3124
|
var parseVNodeAnnotations = (doc, node, docData, orgLocationNodes) => {
|
|
3125
|
-
var
|
|
3125
|
+
var _a2;
|
|
3126
3126
|
if (node == null) {
|
|
3127
3127
|
return;
|
|
3128
3128
|
}
|
|
@@ -3130,7 +3130,7 @@ var parseVNodeAnnotations = (doc, node, docData, orgLocationNodes) => {
|
|
|
3130
3130
|
orgLocationNodes.push(node);
|
|
3131
3131
|
}
|
|
3132
3132
|
if (node.nodeType === 1 /* ElementNode */) {
|
|
3133
|
-
const childNodes = [...Array.from(node.childNodes), ...Array.from(((
|
|
3133
|
+
const childNodes = [...Array.from(node.childNodes), ...Array.from(((_a2 = node.shadowRoot) == null ? void 0 : _a2.childNodes) || [])];
|
|
3134
3134
|
childNodes.forEach((childNode) => {
|
|
3135
3135
|
const hostRef = getHostRef(childNode);
|
|
3136
3136
|
if (hostRef != null && !docData.staticComponents.has(childNode.nodeName.toLowerCase())) {
|
|
@@ -3356,8 +3356,35 @@ var unescape = (s, { windowsPathsNoEscape = false } = {}) => {
|
|
|
3356
3356
|
};
|
|
3357
3357
|
|
|
3358
3358
|
// node_modules/minimatch/dist/esm/ast.js
|
|
3359
|
+
var _a;
|
|
3359
3360
|
var types = /* @__PURE__ */ new Set(["!", "?", "+", "*", "@"]);
|
|
3360
3361
|
var isExtglobType = (c) => types.has(c);
|
|
3362
|
+
var isExtglobAST = (c) => isExtglobType(c.type);
|
|
3363
|
+
var adoptionMap = /* @__PURE__ */ new Map([
|
|
3364
|
+
["!", ["@"]],
|
|
3365
|
+
["?", ["?", "@"]],
|
|
3366
|
+
["@", ["@"]],
|
|
3367
|
+
["*", ["*", "+", "?", "@"]],
|
|
3368
|
+
["+", ["+", "@"]]
|
|
3369
|
+
]);
|
|
3370
|
+
var adoptionWithSpaceMap = /* @__PURE__ */ new Map([
|
|
3371
|
+
["!", ["?"]],
|
|
3372
|
+
["@", ["?"]],
|
|
3373
|
+
["+", ["?", "*"]]
|
|
3374
|
+
]);
|
|
3375
|
+
var adoptionAnyMap = /* @__PURE__ */ new Map([
|
|
3376
|
+
["!", ["?", "@"]],
|
|
3377
|
+
["?", ["?", "@"]],
|
|
3378
|
+
["@", ["?", "@"]],
|
|
3379
|
+
["*", ["*", "+", "?", "@"]],
|
|
3380
|
+
["+", ["+", "@", "?", "*"]]
|
|
3381
|
+
]);
|
|
3382
|
+
var usurpMap = /* @__PURE__ */ new Map([
|
|
3383
|
+
["!", /* @__PURE__ */ new Map([["!", "@"]])],
|
|
3384
|
+
["?", /* @__PURE__ */ new Map([["*", "*"], ["+", "*"]])],
|
|
3385
|
+
["@", /* @__PURE__ */ new Map([["!", "!"], ["?", "?"], ["@", "@"], ["*", "*"], ["+", "+"]])],
|
|
3386
|
+
["+", /* @__PURE__ */ new Map([["?", "*"], ["*", "*"]])]
|
|
3387
|
+
]);
|
|
3361
3388
|
var startNoTraversal = "(?!(?:^|/)\\.\\.?(?:$|/))";
|
|
3362
3389
|
var startNoDot = "(?!\\.)";
|
|
3363
3390
|
var addPatternStart = /* @__PURE__ */ new Set(["[", "."]);
|
|
@@ -3367,8 +3394,8 @@ var regExpEscape = (s) => s.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&");
|
|
|
3367
3394
|
var qmark = "[^/]";
|
|
3368
3395
|
var star = qmark + "*?";
|
|
3369
3396
|
var starNoEmpty = qmark + "+?";
|
|
3370
|
-
var _root, _hasMagic, _uflag, _parts, _parent, _parentIndex, _negs, _filledNegs, _options, _toString, _emptyExt, _AST_instances, fillNegs_fn, _AST_static, parseAST_fn, partsToRegExp_fn, parseGlob_fn;
|
|
3371
|
-
var
|
|
3397
|
+
var _root, _hasMagic, _uflag, _parts, _parent, _parentIndex, _negs, _filledNegs, _options, _toString, _emptyExt, _AST_instances, fillNegs_fn, _AST_static, parseAST_fn, canAdoptWithSpace_fn, canAdopt_fn, canAdoptType_fn, adoptWithSpace_fn, adopt_fn, canUsurpType_fn, canUsurp_fn, usurp_fn, flatten_fn, partsToRegExp_fn, parseGlob_fn;
|
|
3398
|
+
var AST = class {
|
|
3372
3399
|
constructor(type, parent, options = {}) {
|
|
3373
3400
|
__privateAdd(this, _AST_instances);
|
|
3374
3401
|
__publicField(this, "type");
|
|
@@ -3421,44 +3448,44 @@ var _AST = class _AST {
|
|
|
3421
3448
|
for (const p of parts) {
|
|
3422
3449
|
if (p === "")
|
|
3423
3450
|
continue;
|
|
3424
|
-
if (typeof p !== "string" && !(p instanceof
|
|
3451
|
+
if (typeof p !== "string" && !(p instanceof _a && __privateGet(p, _parent) === this)) {
|
|
3425
3452
|
throw new Error("invalid part: " + p);
|
|
3426
3453
|
}
|
|
3427
3454
|
__privateGet(this, _parts).push(p);
|
|
3428
3455
|
}
|
|
3429
3456
|
}
|
|
3430
3457
|
toJSON() {
|
|
3431
|
-
var
|
|
3458
|
+
var _a2;
|
|
3432
3459
|
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())];
|
|
3433
3460
|
if (this.isStart() && !this.type)
|
|
3434
3461
|
ret.unshift([]);
|
|
3435
|
-
if (this.isEnd() && (this === __privateGet(this, _root) || __privateGet(__privateGet(this, _root), _filledNegs) && ((
|
|
3462
|
+
if (this.isEnd() && (this === __privateGet(this, _root) || __privateGet(__privateGet(this, _root), _filledNegs) && ((_a2 = __privateGet(this, _parent)) == null ? void 0 : _a2.type) === "!")) {
|
|
3436
3463
|
ret.push({});
|
|
3437
3464
|
}
|
|
3438
3465
|
return ret;
|
|
3439
3466
|
}
|
|
3440
3467
|
isStart() {
|
|
3441
|
-
var
|
|
3468
|
+
var _a2;
|
|
3442
3469
|
if (__privateGet(this, _root) === this)
|
|
3443
3470
|
return true;
|
|
3444
|
-
if (!((
|
|
3471
|
+
if (!((_a2 = __privateGet(this, _parent)) == null ? void 0 : _a2.isStart()))
|
|
3445
3472
|
return false;
|
|
3446
3473
|
if (__privateGet(this, _parentIndex) === 0)
|
|
3447
3474
|
return true;
|
|
3448
3475
|
const p = __privateGet(this, _parent);
|
|
3449
3476
|
for (let i2 = 0; i2 < __privateGet(this, _parentIndex); i2++) {
|
|
3450
3477
|
const pp = __privateGet(p, _parts)[i2];
|
|
3451
|
-
if (!(pp instanceof
|
|
3478
|
+
if (!(pp instanceof _a && pp.type === "!")) {
|
|
3452
3479
|
return false;
|
|
3453
3480
|
}
|
|
3454
3481
|
}
|
|
3455
3482
|
return true;
|
|
3456
3483
|
}
|
|
3457
3484
|
isEnd() {
|
|
3458
|
-
var
|
|
3485
|
+
var _a2, _b, _c;
|
|
3459
3486
|
if (__privateGet(this, _root) === this)
|
|
3460
3487
|
return true;
|
|
3461
|
-
if (((
|
|
3488
|
+
if (((_a2 = __privateGet(this, _parent)) == null ? void 0 : _a2.type) === "!")
|
|
3462
3489
|
return true;
|
|
3463
3490
|
if (!((_b = __privateGet(this, _parent)) == null ? void 0 : _b.isEnd()))
|
|
3464
3491
|
return false;
|
|
@@ -3474,16 +3501,16 @@ var _AST = class _AST {
|
|
|
3474
3501
|
this.push(part.clone(this));
|
|
3475
3502
|
}
|
|
3476
3503
|
clone(parent) {
|
|
3477
|
-
const c = new
|
|
3504
|
+
const c = new _a(this.type, parent);
|
|
3478
3505
|
for (const p of __privateGet(this, _parts)) {
|
|
3479
3506
|
c.copyIn(p);
|
|
3480
3507
|
}
|
|
3481
3508
|
return c;
|
|
3482
3509
|
}
|
|
3483
3510
|
static fromGlob(pattern, options = {}) {
|
|
3484
|
-
var
|
|
3485
|
-
const ast = new
|
|
3486
|
-
__privateMethod(
|
|
3511
|
+
var _a2;
|
|
3512
|
+
const ast = new _a(null, void 0, options);
|
|
3513
|
+
__privateMethod(_a2 = _a, _AST_static, parseAST_fn).call(_a2, pattern, ast, 0, options, 0);
|
|
3487
3514
|
return ast;
|
|
3488
3515
|
}
|
|
3489
3516
|
// returns the regular expression if there's magic, or the unescaped
|
|
@@ -3576,15 +3603,17 @@ var _AST = class _AST {
|
|
|
3576
3603
|
// is ^(?!\.), we can just prepend (?!\.) to the pattern (either root
|
|
3577
3604
|
// or start or whatever) and prepend ^ or / at the Regexp construction.
|
|
3578
3605
|
toRegExpSource(allowDot) {
|
|
3579
|
-
var
|
|
3606
|
+
var _a2;
|
|
3580
3607
|
const dot = allowDot != null ? allowDot : !!__privateGet(this, _options).dot;
|
|
3581
|
-
if (__privateGet(this, _root) === this)
|
|
3608
|
+
if (__privateGet(this, _root) === this) {
|
|
3609
|
+
__privateMethod(this, _AST_instances, flatten_fn).call(this);
|
|
3582
3610
|
__privateMethod(this, _AST_instances, fillNegs_fn).call(this);
|
|
3583
|
-
|
|
3611
|
+
}
|
|
3612
|
+
if (!isExtglobAST(this)) {
|
|
3584
3613
|
const noEmpty = this.isStart() && this.isEnd();
|
|
3585
3614
|
const src = __privateGet(this, _parts).map((p) => {
|
|
3586
|
-
var
|
|
3587
|
-
const [re, _, hasMagic, uflag] = typeof p === "string" ? __privateMethod(
|
|
3615
|
+
var _a3;
|
|
3616
|
+
const [re, _, hasMagic, uflag] = typeof p === "string" ? __privateMethod(_a3 = _a, _AST_static, parseGlob_fn).call(_a3, p, __privateGet(this, _hasMagic), noEmpty) : p.toRegExpSource(allowDot);
|
|
3588
3617
|
__privateSet(this, _hasMagic, __privateGet(this, _hasMagic) || hasMagic);
|
|
3589
3618
|
__privateSet(this, _uflag, __privateGet(this, _uflag) || uflag);
|
|
3590
3619
|
return re;
|
|
@@ -3607,7 +3636,7 @@ var _AST = class _AST {
|
|
|
3607
3636
|
}
|
|
3608
3637
|
}
|
|
3609
3638
|
let end = "";
|
|
3610
|
-
if (this.isEnd() && __privateGet(__privateGet(this, _root), _filledNegs) && ((
|
|
3639
|
+
if (this.isEnd() && __privateGet(__privateGet(this, _root), _filledNegs) && ((_a2 = __privateGet(this, _parent)) == null ? void 0 : _a2.type) === "!") {
|
|
3611
3640
|
end = "(?:$|\\/)";
|
|
3612
3641
|
}
|
|
3613
3642
|
const final2 = start2 + src + end;
|
|
@@ -3623,9 +3652,10 @@ var _AST = class _AST {
|
|
|
3623
3652
|
let body = __privateMethod(this, _AST_instances, partsToRegExp_fn).call(this, dot);
|
|
3624
3653
|
if (this.isStart() && this.isEnd() && !body && this.type !== "!") {
|
|
3625
3654
|
const s = this.toString();
|
|
3626
|
-
|
|
3627
|
-
|
|
3628
|
-
|
|
3655
|
+
const me = this;
|
|
3656
|
+
__privateSet(me, _parts, [s]);
|
|
3657
|
+
me.type = null;
|
|
3658
|
+
__privateSet(me, _hasMagic, void 0);
|
|
3629
3659
|
return [s, unescape(this.toString()), false, false];
|
|
3630
3660
|
}
|
|
3631
3661
|
let bodyDotAllowed = !repeated || allowDot || dot || !startNoDot ? "" : __privateMethod(this, _AST_instances, partsToRegExp_fn).call(this, true);
|
|
@@ -3694,8 +3724,9 @@ fillNegs_fn = function() {
|
|
|
3694
3724
|
return this;
|
|
3695
3725
|
};
|
|
3696
3726
|
_AST_static = new WeakSet();
|
|
3697
|
-
parseAST_fn = function(str, ast, pos, opt) {
|
|
3698
|
-
var
|
|
3727
|
+
parseAST_fn = function(str, ast, pos, opt, extDepth) {
|
|
3728
|
+
var _a2, _b, _c, _d, _e;
|
|
3729
|
+
const maxDepth = (_a2 = opt.maxExtglobRecursion) != null ? _a2 : 2;
|
|
3699
3730
|
let escaping = false;
|
|
3700
3731
|
let inBrace = false;
|
|
3701
3732
|
let braceStart = -1;
|
|
@@ -3727,11 +3758,12 @@ parseAST_fn = function(str, ast, pos, opt) {
|
|
|
3727
3758
|
acc2 += c;
|
|
3728
3759
|
continue;
|
|
3729
3760
|
}
|
|
3730
|
-
|
|
3761
|
+
const doRecurse = !opt.noext && isExtglobType(c) && str.charAt(i3) === "(" && extDepth <= maxDepth;
|
|
3762
|
+
if (doRecurse) {
|
|
3731
3763
|
ast.push(acc2);
|
|
3732
3764
|
acc2 = "";
|
|
3733
|
-
const ext2 = new
|
|
3734
|
-
i3 = __privateMethod(
|
|
3765
|
+
const ext2 = new _a(c, ast);
|
|
3766
|
+
i3 = __privateMethod(_b = _a, _AST_static, parseAST_fn).call(_b, str, ext2, i3, opt, extDepth + 1);
|
|
3735
3767
|
ast.push(ext2);
|
|
3736
3768
|
continue;
|
|
3737
3769
|
}
|
|
@@ -3741,7 +3773,7 @@ parseAST_fn = function(str, ast, pos, opt) {
|
|
|
3741
3773
|
return i3;
|
|
3742
3774
|
}
|
|
3743
3775
|
let i2 = pos + 1;
|
|
3744
|
-
let part = new
|
|
3776
|
+
let part = new _a(null, ast);
|
|
3745
3777
|
const parts = [];
|
|
3746
3778
|
let acc = "";
|
|
3747
3779
|
while (i2 < str.length) {
|
|
@@ -3768,19 +3800,22 @@ parseAST_fn = function(str, ast, pos, opt) {
|
|
|
3768
3800
|
acc += c;
|
|
3769
3801
|
continue;
|
|
3770
3802
|
}
|
|
3771
|
-
|
|
3803
|
+
const doRecurse = isExtglobType(c) && str.charAt(i2) === "(" && /* c8 ignore start - the maxDepth is sufficient here */
|
|
3804
|
+
(extDepth <= maxDepth || ast && __privateMethod(_c = ast, _AST_instances, canAdoptType_fn).call(_c, c));
|
|
3805
|
+
if (doRecurse) {
|
|
3806
|
+
const depthAdd = ast && __privateMethod(_d = ast, _AST_instances, canAdoptType_fn).call(_d, c) ? 0 : 1;
|
|
3772
3807
|
part.push(acc);
|
|
3773
3808
|
acc = "";
|
|
3774
|
-
const ext2 = new
|
|
3809
|
+
const ext2 = new _a(c, part);
|
|
3775
3810
|
part.push(ext2);
|
|
3776
|
-
i2 = __privateMethod(
|
|
3811
|
+
i2 = __privateMethod(_e = _a, _AST_static, parseAST_fn).call(_e, str, ext2, i2, opt, extDepth + depthAdd);
|
|
3777
3812
|
continue;
|
|
3778
3813
|
}
|
|
3779
3814
|
if (c === "|") {
|
|
3780
3815
|
part.push(acc);
|
|
3781
3816
|
acc = "";
|
|
3782
3817
|
parts.push(part);
|
|
3783
|
-
part = new
|
|
3818
|
+
part = new _a(null, ast);
|
|
3784
3819
|
continue;
|
|
3785
3820
|
}
|
|
3786
3821
|
if (c === ")") {
|
|
@@ -3799,6 +3834,100 @@ parseAST_fn = function(str, ast, pos, opt) {
|
|
|
3799
3834
|
__privateSet(ast, _parts, [str.substring(pos - 1)]);
|
|
3800
3835
|
return i2;
|
|
3801
3836
|
};
|
|
3837
|
+
canAdoptWithSpace_fn = function(child) {
|
|
3838
|
+
return __privateMethod(this, _AST_instances, canAdopt_fn).call(this, child, adoptionWithSpaceMap);
|
|
3839
|
+
};
|
|
3840
|
+
canAdopt_fn = function(child, map2 = adoptionMap) {
|
|
3841
|
+
if (!child || typeof child !== "object" || child.type !== null || __privateGet(child, _parts).length !== 1 || this.type === null) {
|
|
3842
|
+
return false;
|
|
3843
|
+
}
|
|
3844
|
+
const gc = __privateGet(child, _parts)[0];
|
|
3845
|
+
if (!gc || typeof gc !== "object" || gc.type === null) {
|
|
3846
|
+
return false;
|
|
3847
|
+
}
|
|
3848
|
+
return __privateMethod(this, _AST_instances, canAdoptType_fn).call(this, gc.type, map2);
|
|
3849
|
+
};
|
|
3850
|
+
canAdoptType_fn = function(c, map2 = adoptionAnyMap) {
|
|
3851
|
+
var _a2;
|
|
3852
|
+
return !!((_a2 = map2.get(this.type)) == null ? void 0 : _a2.includes(c));
|
|
3853
|
+
};
|
|
3854
|
+
adoptWithSpace_fn = function(child, index) {
|
|
3855
|
+
const gc = __privateGet(child, _parts)[0];
|
|
3856
|
+
const blank = new _a(null, gc, this.options);
|
|
3857
|
+
__privateGet(blank, _parts).push("");
|
|
3858
|
+
gc.push(blank);
|
|
3859
|
+
__privateMethod(this, _AST_instances, adopt_fn).call(this, child, index);
|
|
3860
|
+
};
|
|
3861
|
+
adopt_fn = function(child, index) {
|
|
3862
|
+
const gc = __privateGet(child, _parts)[0];
|
|
3863
|
+
__privateGet(this, _parts).splice(index, 1, ...__privateGet(gc, _parts));
|
|
3864
|
+
for (const p of __privateGet(gc, _parts)) {
|
|
3865
|
+
if (typeof p === "object")
|
|
3866
|
+
__privateSet(p, _parent, this);
|
|
3867
|
+
}
|
|
3868
|
+
__privateSet(this, _toString, void 0);
|
|
3869
|
+
};
|
|
3870
|
+
canUsurpType_fn = function(c) {
|
|
3871
|
+
const m = usurpMap.get(this.type);
|
|
3872
|
+
return !!(m == null ? void 0 : m.has(c));
|
|
3873
|
+
};
|
|
3874
|
+
canUsurp_fn = function(child) {
|
|
3875
|
+
if (!child || typeof child !== "object" || child.type !== null || __privateGet(child, _parts).length !== 1 || this.type === null || __privateGet(this, _parts).length !== 1) {
|
|
3876
|
+
return false;
|
|
3877
|
+
}
|
|
3878
|
+
const gc = __privateGet(child, _parts)[0];
|
|
3879
|
+
if (!gc || typeof gc !== "object" || gc.type === null) {
|
|
3880
|
+
return false;
|
|
3881
|
+
}
|
|
3882
|
+
return __privateMethod(this, _AST_instances, canUsurpType_fn).call(this, gc.type);
|
|
3883
|
+
};
|
|
3884
|
+
usurp_fn = function(child) {
|
|
3885
|
+
const m = usurpMap.get(this.type);
|
|
3886
|
+
const gc = __privateGet(child, _parts)[0];
|
|
3887
|
+
const nt = m == null ? void 0 : m.get(gc.type);
|
|
3888
|
+
if (!nt)
|
|
3889
|
+
return false;
|
|
3890
|
+
__privateSet(this, _parts, __privateGet(gc, _parts));
|
|
3891
|
+
for (const p of __privateGet(this, _parts)) {
|
|
3892
|
+
if (typeof p === "object")
|
|
3893
|
+
__privateSet(p, _parent, this);
|
|
3894
|
+
}
|
|
3895
|
+
this.type = nt;
|
|
3896
|
+
__privateSet(this, _toString, void 0);
|
|
3897
|
+
__privateSet(this, _emptyExt, false);
|
|
3898
|
+
};
|
|
3899
|
+
flatten_fn = function() {
|
|
3900
|
+
var _a2, _b;
|
|
3901
|
+
if (!isExtglobAST(this)) {
|
|
3902
|
+
for (const p of __privateGet(this, _parts)) {
|
|
3903
|
+
if (typeof p === "object")
|
|
3904
|
+
__privateMethod(_a2 = p, _AST_instances, flatten_fn).call(_a2);
|
|
3905
|
+
}
|
|
3906
|
+
} else {
|
|
3907
|
+
let iterations = 0;
|
|
3908
|
+
let done = false;
|
|
3909
|
+
do {
|
|
3910
|
+
done = true;
|
|
3911
|
+
for (let i2 = 0; i2 < __privateGet(this, _parts).length; i2++) {
|
|
3912
|
+
const c = __privateGet(this, _parts)[i2];
|
|
3913
|
+
if (typeof c === "object") {
|
|
3914
|
+
__privateMethod(_b = c, _AST_instances, flatten_fn).call(_b);
|
|
3915
|
+
if (__privateMethod(this, _AST_instances, canAdopt_fn).call(this, c)) {
|
|
3916
|
+
done = false;
|
|
3917
|
+
__privateMethod(this, _AST_instances, adopt_fn).call(this, c, i2);
|
|
3918
|
+
} else if (__privateMethod(this, _AST_instances, canAdoptWithSpace_fn).call(this, c)) {
|
|
3919
|
+
done = false;
|
|
3920
|
+
__privateMethod(this, _AST_instances, adoptWithSpace_fn).call(this, c, i2);
|
|
3921
|
+
} else if (__privateMethod(this, _AST_instances, canUsurp_fn).call(this, c)) {
|
|
3922
|
+
done = false;
|
|
3923
|
+
__privateMethod(this, _AST_instances, usurp_fn).call(this, c);
|
|
3924
|
+
}
|
|
3925
|
+
}
|
|
3926
|
+
}
|
|
3927
|
+
} while (!done && ++iterations < 10);
|
|
3928
|
+
}
|
|
3929
|
+
__privateSet(this, _toString, void 0);
|
|
3930
|
+
};
|
|
3802
3931
|
partsToRegExp_fn = function(dot) {
|
|
3803
3932
|
return __privateGet(this, _parts).map((p) => {
|
|
3804
3933
|
if (typeof p === "string") {
|
|
@@ -3813,11 +3942,13 @@ parseGlob_fn = function(glob, hasMagic, noEmpty = false) {
|
|
|
3813
3942
|
let escaping = false;
|
|
3814
3943
|
let re = "";
|
|
3815
3944
|
let uflag = false;
|
|
3945
|
+
let inStar = false;
|
|
3816
3946
|
for (let i2 = 0; i2 < glob.length; i2++) {
|
|
3817
3947
|
const c = glob.charAt(i2);
|
|
3818
3948
|
if (escaping) {
|
|
3819
3949
|
escaping = false;
|
|
3820
3950
|
re += (reSpecials.has(c) ? "\\" : "") + c;
|
|
3951
|
+
inStar = false;
|
|
3821
3952
|
continue;
|
|
3822
3953
|
}
|
|
3823
3954
|
if (c === "\\") {
|
|
@@ -3835,16 +3966,19 @@ parseGlob_fn = function(glob, hasMagic, noEmpty = false) {
|
|
|
3835
3966
|
uflag = uflag || needUflag;
|
|
3836
3967
|
i2 += consumed - 1;
|
|
3837
3968
|
hasMagic = hasMagic || magic;
|
|
3969
|
+
inStar = false;
|
|
3838
3970
|
continue;
|
|
3839
3971
|
}
|
|
3840
3972
|
}
|
|
3841
3973
|
if (c === "*") {
|
|
3842
|
-
if (
|
|
3843
|
-
|
|
3844
|
-
|
|
3845
|
-
|
|
3974
|
+
if (inStar)
|
|
3975
|
+
continue;
|
|
3976
|
+
inStar = true;
|
|
3977
|
+
re += noEmpty && /^[*]+$/.test(glob) ? starNoEmpty : star;
|
|
3846
3978
|
hasMagic = true;
|
|
3847
3979
|
continue;
|
|
3980
|
+
} else {
|
|
3981
|
+
inStar = false;
|
|
3848
3982
|
}
|
|
3849
3983
|
if (c === "?") {
|
|
3850
3984
|
re += qmark;
|
|
@@ -3855,8 +3989,8 @@ parseGlob_fn = function(glob, hasMagic, noEmpty = false) {
|
|
|
3855
3989
|
}
|
|
3856
3990
|
return [re, unescape(glob), !!hasMagic, uflag];
|
|
3857
3991
|
};
|
|
3858
|
-
__privateAdd(
|
|
3859
|
-
|
|
3992
|
+
__privateAdd(AST, _AST_static);
|
|
3993
|
+
_a = AST;
|
|
3860
3994
|
|
|
3861
3995
|
// node_modules/minimatch/dist/esm/escape.js
|
|
3862
3996
|
var escape = (s, { windowsPathsNoEscape = false } = {}) => {
|
|
@@ -3995,28 +4129,33 @@ var match$1 = (list, pattern, options = {}) => {
|
|
|
3995
4129
|
minimatch.match = match$1;
|
|
3996
4130
|
var globMagic = /[?*]|[+@!]\(.*?\)|\[|\]/;
|
|
3997
4131
|
var regExpEscape2 = (s) => s.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&");
|
|
4132
|
+
var _Minimatch_instances, matchGlobstar_fn, matchGlobStarBodySections_fn, matchOne_fn;
|
|
3998
4133
|
var Minimatch = class {
|
|
3999
|
-
options;
|
|
4000
|
-
set;
|
|
4001
|
-
pattern;
|
|
4002
|
-
windowsPathsNoEscape;
|
|
4003
|
-
nonegate;
|
|
4004
|
-
negate;
|
|
4005
|
-
comment;
|
|
4006
|
-
empty;
|
|
4007
|
-
preserveMultipleSlashes;
|
|
4008
|
-
partial;
|
|
4009
|
-
globSet;
|
|
4010
|
-
globParts;
|
|
4011
|
-
nocase;
|
|
4012
|
-
isWindows;
|
|
4013
|
-
platform;
|
|
4014
|
-
windowsNoMagicRoot;
|
|
4015
|
-
regexp;
|
|
4016
4134
|
constructor(pattern, options = {}) {
|
|
4135
|
+
__privateAdd(this, _Minimatch_instances);
|
|
4136
|
+
__publicField(this, "options");
|
|
4137
|
+
__publicField(this, "set");
|
|
4138
|
+
__publicField(this, "pattern");
|
|
4139
|
+
__publicField(this, "windowsPathsNoEscape");
|
|
4140
|
+
__publicField(this, "nonegate");
|
|
4141
|
+
__publicField(this, "negate");
|
|
4142
|
+
__publicField(this, "comment");
|
|
4143
|
+
__publicField(this, "empty");
|
|
4144
|
+
__publicField(this, "preserveMultipleSlashes");
|
|
4145
|
+
__publicField(this, "partial");
|
|
4146
|
+
__publicField(this, "globSet");
|
|
4147
|
+
__publicField(this, "globParts");
|
|
4148
|
+
__publicField(this, "nocase");
|
|
4149
|
+
__publicField(this, "isWindows");
|
|
4150
|
+
__publicField(this, "platform");
|
|
4151
|
+
__publicField(this, "windowsNoMagicRoot");
|
|
4152
|
+
__publicField(this, "maxGlobstarRecursion");
|
|
4153
|
+
__publicField(this, "regexp");
|
|
4154
|
+
var _a2;
|
|
4017
4155
|
assertValidPattern(pattern);
|
|
4018
4156
|
options = options || {};
|
|
4019
4157
|
this.options = options;
|
|
4158
|
+
this.maxGlobstarRecursion = (_a2 = options.maxGlobstarRecursion) != null ? _a2 : 200;
|
|
4020
4159
|
this.pattern = pattern;
|
|
4021
4160
|
this.platform = options.platform || defaultPlatform;
|
|
4022
4161
|
this.isWindows = this.platform === "win32";
|
|
@@ -4284,10 +4423,11 @@ var Minimatch = class {
|
|
|
4284
4423
|
for (let i2 = 0; i2 < globParts.length - 1; i2++) {
|
|
4285
4424
|
for (let j = i2 + 1; j < globParts.length; j++) {
|
|
4286
4425
|
const matched = this.partsMatch(globParts[i2], globParts[j], !this.preserveMultipleSlashes);
|
|
4287
|
-
if (
|
|
4288
|
-
|
|
4289
|
-
|
|
4290
|
-
|
|
4426
|
+
if (matched) {
|
|
4427
|
+
globParts[i2] = [];
|
|
4428
|
+
globParts[j] = matched;
|
|
4429
|
+
break;
|
|
4430
|
+
}
|
|
4291
4431
|
}
|
|
4292
4432
|
}
|
|
4293
4433
|
return globParts.filter((gs) => gs.length);
|
|
@@ -4348,7 +4488,8 @@ var Minimatch = class {
|
|
|
4348
4488
|
// out of pattern, then that's fine, as long as all
|
|
4349
4489
|
// the parts match.
|
|
4350
4490
|
matchOne(file, pattern, partial = false) {
|
|
4351
|
-
|
|
4491
|
+
let fileStartIndex = 0;
|
|
4492
|
+
let patternStartIndex = 0;
|
|
4352
4493
|
if (this.isWindows) {
|
|
4353
4494
|
const fileDrive = typeof file[0] === "string" && /^[a-z]:$/i.test(file[0]);
|
|
4354
4495
|
const fileUNC = !fileDrive && file[0] === "" && file[1] === "" && file[2] === "?" && /^[a-z]:$/i.test(file[3]);
|
|
@@ -4357,14 +4498,14 @@ var Minimatch = class {
|
|
|
4357
4498
|
const fdi = fileUNC ? 3 : fileDrive ? 0 : void 0;
|
|
4358
4499
|
const pdi = patternUNC ? 3 : patternDrive ? 0 : void 0;
|
|
4359
4500
|
if (typeof fdi === "number" && typeof pdi === "number") {
|
|
4360
|
-
const [fd, pd] = [
|
|
4501
|
+
const [fd, pd] = [
|
|
4502
|
+
file[fdi],
|
|
4503
|
+
pattern[pdi]
|
|
4504
|
+
];
|
|
4361
4505
|
if (fd.toLowerCase() === pd.toLowerCase()) {
|
|
4362
4506
|
pattern[pdi] = fd;
|
|
4363
|
-
|
|
4364
|
-
|
|
4365
|
-
} else if (fdi > pdi) {
|
|
4366
|
-
file = file.slice(fdi);
|
|
4367
|
-
}
|
|
4507
|
+
patternStartIndex = pdi;
|
|
4508
|
+
fileStartIndex = fdi;
|
|
4368
4509
|
}
|
|
4369
4510
|
}
|
|
4370
4511
|
}
|
|
@@ -4372,71 +4513,10 @@ var Minimatch = class {
|
|
|
4372
4513
|
if (optimizationLevel >= 2) {
|
|
4373
4514
|
file = this.levelTwoFileOptimize(file);
|
|
4374
4515
|
}
|
|
4375
|
-
|
|
4376
|
-
|
|
4377
|
-
for (var fi = 0, pi = 0, fl = file.length, pl = pattern.length; fi < fl && pi < pl; fi++, pi++) {
|
|
4378
|
-
this.debug("matchOne loop");
|
|
4379
|
-
var p = pattern[pi];
|
|
4380
|
-
var f = file[fi];
|
|
4381
|
-
this.debug(pattern, p, f);
|
|
4382
|
-
if (p === false) {
|
|
4383
|
-
return false;
|
|
4384
|
-
}
|
|
4385
|
-
if (p === GLOBSTAR) {
|
|
4386
|
-
this.debug("GLOBSTAR", [pattern, p, f]);
|
|
4387
|
-
var fr = fi;
|
|
4388
|
-
var pr = pi + 1;
|
|
4389
|
-
if (pr === pl) {
|
|
4390
|
-
this.debug("** at the end");
|
|
4391
|
-
for (; fi < fl; fi++) {
|
|
4392
|
-
if (file[fi] === "." || file[fi] === ".." || !options.dot && file[fi].charAt(0) === ".")
|
|
4393
|
-
return false;
|
|
4394
|
-
}
|
|
4395
|
-
return true;
|
|
4396
|
-
}
|
|
4397
|
-
while (fr < fl) {
|
|
4398
|
-
var swallowee = file[fr];
|
|
4399
|
-
this.debug("\nglobstar while", file, fr, pattern, pr, swallowee);
|
|
4400
|
-
if (this.matchOne(file.slice(fr), pattern.slice(pr), partial)) {
|
|
4401
|
-
this.debug("globstar found match!", fr, fl, swallowee);
|
|
4402
|
-
return true;
|
|
4403
|
-
} else {
|
|
4404
|
-
if (swallowee === "." || swallowee === ".." || !options.dot && swallowee.charAt(0) === ".") {
|
|
4405
|
-
this.debug("dot detected!", file, fr, pattern, pr);
|
|
4406
|
-
break;
|
|
4407
|
-
}
|
|
4408
|
-
this.debug("globstar swallow a segment, and continue");
|
|
4409
|
-
fr++;
|
|
4410
|
-
}
|
|
4411
|
-
}
|
|
4412
|
-
if (partial) {
|
|
4413
|
-
this.debug("\n>>> no match, partial?", file, fr, pattern, pr);
|
|
4414
|
-
if (fr === fl) {
|
|
4415
|
-
return true;
|
|
4416
|
-
}
|
|
4417
|
-
}
|
|
4418
|
-
return false;
|
|
4419
|
-
}
|
|
4420
|
-
let hit;
|
|
4421
|
-
if (typeof p === "string") {
|
|
4422
|
-
hit = f === p;
|
|
4423
|
-
this.debug("string match", p, f, hit);
|
|
4424
|
-
} else {
|
|
4425
|
-
hit = p.test(f);
|
|
4426
|
-
this.debug("pattern match", p, f, hit);
|
|
4427
|
-
}
|
|
4428
|
-
if (!hit)
|
|
4429
|
-
return false;
|
|
4430
|
-
}
|
|
4431
|
-
if (fi === fl && pi === pl) {
|
|
4432
|
-
return true;
|
|
4433
|
-
} else if (fi === fl) {
|
|
4434
|
-
return partial;
|
|
4435
|
-
} else if (pi === pl) {
|
|
4436
|
-
return fi === fl - 1 && file[fi] === "";
|
|
4437
|
-
} else {
|
|
4438
|
-
throw new Error("wtf?");
|
|
4516
|
+
if (pattern.includes(GLOBSTAR)) {
|
|
4517
|
+
return __privateMethod(this, _Minimatch_instances, matchGlobstar_fn).call(this, file, pattern, partial, fileStartIndex, patternStartIndex);
|
|
4439
4518
|
}
|
|
4519
|
+
return __privateMethod(this, _Minimatch_instances, matchOne_fn).call(this, file, pattern, partial, fileStartIndex, patternStartIndex);
|
|
4440
4520
|
}
|
|
4441
4521
|
braceExpand() {
|
|
4442
4522
|
return braceExpand(this.pattern, this.options);
|
|
@@ -4575,6 +4655,135 @@ var Minimatch = class {
|
|
|
4575
4655
|
return minimatch.defaults(def).Minimatch;
|
|
4576
4656
|
}
|
|
4577
4657
|
};
|
|
4658
|
+
_Minimatch_instances = new WeakSet();
|
|
4659
|
+
matchGlobstar_fn = function(file, pattern, partial, fileIndex, patternIndex) {
|
|
4660
|
+
const firstgs = pattern.indexOf(GLOBSTAR, patternIndex);
|
|
4661
|
+
const lastgs = pattern.lastIndexOf(GLOBSTAR);
|
|
4662
|
+
const [head, body, tail] = partial ? [
|
|
4663
|
+
pattern.slice(patternIndex, firstgs),
|
|
4664
|
+
pattern.slice(firstgs + 1),
|
|
4665
|
+
[]
|
|
4666
|
+
] : [
|
|
4667
|
+
pattern.slice(patternIndex, firstgs),
|
|
4668
|
+
pattern.slice(firstgs + 1, lastgs),
|
|
4669
|
+
pattern.slice(lastgs + 1)
|
|
4670
|
+
];
|
|
4671
|
+
if (head.length) {
|
|
4672
|
+
const fileHead = file.slice(fileIndex, fileIndex + head.length);
|
|
4673
|
+
if (!__privateMethod(this, _Minimatch_instances, matchOne_fn).call(this, fileHead, head, partial, 0, 0))
|
|
4674
|
+
return false;
|
|
4675
|
+
fileIndex += head.length;
|
|
4676
|
+
}
|
|
4677
|
+
let fileTailMatch = 0;
|
|
4678
|
+
if (tail.length) {
|
|
4679
|
+
if (tail.length + fileIndex > file.length)
|
|
4680
|
+
return false;
|
|
4681
|
+
let tailStart = file.length - tail.length;
|
|
4682
|
+
if (__privateMethod(this, _Minimatch_instances, matchOne_fn).call(this, file, tail, partial, tailStart, 0)) {
|
|
4683
|
+
fileTailMatch = tail.length;
|
|
4684
|
+
} else {
|
|
4685
|
+
if (file[file.length - 1] !== "" || fileIndex + tail.length === file.length) {
|
|
4686
|
+
return false;
|
|
4687
|
+
}
|
|
4688
|
+
tailStart--;
|
|
4689
|
+
if (!__privateMethod(this, _Minimatch_instances, matchOne_fn).call(this, file, tail, partial, tailStart, 0))
|
|
4690
|
+
return false;
|
|
4691
|
+
fileTailMatch = tail.length + 1;
|
|
4692
|
+
}
|
|
4693
|
+
}
|
|
4694
|
+
if (!body.length) {
|
|
4695
|
+
let sawSome = !!fileTailMatch;
|
|
4696
|
+
for (let i3 = fileIndex; i3 < file.length - fileTailMatch; i3++) {
|
|
4697
|
+
const f = String(file[i3]);
|
|
4698
|
+
sawSome = true;
|
|
4699
|
+
if (f === "." || f === ".." || !this.options.dot && f.startsWith(".")) {
|
|
4700
|
+
return false;
|
|
4701
|
+
}
|
|
4702
|
+
}
|
|
4703
|
+
return partial || sawSome;
|
|
4704
|
+
}
|
|
4705
|
+
const bodySegments = [[[], 0]];
|
|
4706
|
+
let currentBody = bodySegments[0];
|
|
4707
|
+
let nonGsParts = 0;
|
|
4708
|
+
const nonGsPartsSums = [0];
|
|
4709
|
+
for (const b of body) {
|
|
4710
|
+
if (b === GLOBSTAR) {
|
|
4711
|
+
nonGsPartsSums.push(nonGsParts);
|
|
4712
|
+
currentBody = [[], 0];
|
|
4713
|
+
bodySegments.push(currentBody);
|
|
4714
|
+
} else {
|
|
4715
|
+
currentBody[0].push(b);
|
|
4716
|
+
nonGsParts++;
|
|
4717
|
+
}
|
|
4718
|
+
}
|
|
4719
|
+
let i2 = bodySegments.length - 1;
|
|
4720
|
+
const fileLength = file.length - fileTailMatch;
|
|
4721
|
+
for (const b of bodySegments) {
|
|
4722
|
+
b[1] = fileLength - (nonGsPartsSums[i2--] + b[0].length);
|
|
4723
|
+
}
|
|
4724
|
+
return !!__privateMethod(this, _Minimatch_instances, matchGlobStarBodySections_fn).call(this, file, bodySegments, fileIndex, 0, partial, 0, !!fileTailMatch);
|
|
4725
|
+
};
|
|
4726
|
+
matchGlobStarBodySections_fn = function(file, bodySegments, fileIndex, bodyIndex, partial, globStarDepth, sawTail) {
|
|
4727
|
+
const bs = bodySegments[bodyIndex];
|
|
4728
|
+
if (!bs) {
|
|
4729
|
+
for (let i2 = fileIndex; i2 < file.length; i2++) {
|
|
4730
|
+
sawTail = true;
|
|
4731
|
+
const f = file[i2];
|
|
4732
|
+
if (f === "." || f === ".." || !this.options.dot && f.startsWith(".")) {
|
|
4733
|
+
return false;
|
|
4734
|
+
}
|
|
4735
|
+
}
|
|
4736
|
+
return sawTail;
|
|
4737
|
+
}
|
|
4738
|
+
const [body, after] = bs;
|
|
4739
|
+
while (fileIndex <= after) {
|
|
4740
|
+
const m = __privateMethod(this, _Minimatch_instances, matchOne_fn).call(this, file.slice(0, fileIndex + body.length), body, partial, fileIndex, 0);
|
|
4741
|
+
if (m && globStarDepth < this.maxGlobstarRecursion) {
|
|
4742
|
+
const sub = __privateMethod(this, _Minimatch_instances, matchGlobStarBodySections_fn).call(this, file, bodySegments, fileIndex + body.length, bodyIndex + 1, partial, globStarDepth + 1, sawTail);
|
|
4743
|
+
if (sub !== false)
|
|
4744
|
+
return sub;
|
|
4745
|
+
}
|
|
4746
|
+
const f = file[fileIndex];
|
|
4747
|
+
if (f === "." || f === ".." || !this.options.dot && f.startsWith(".")) {
|
|
4748
|
+
return false;
|
|
4749
|
+
}
|
|
4750
|
+
fileIndex++;
|
|
4751
|
+
}
|
|
4752
|
+
return partial || null;
|
|
4753
|
+
};
|
|
4754
|
+
matchOne_fn = function(file, pattern, partial, fileIndex, patternIndex) {
|
|
4755
|
+
let fi;
|
|
4756
|
+
let pi;
|
|
4757
|
+
let pl;
|
|
4758
|
+
let fl;
|
|
4759
|
+
for (fi = fileIndex, pi = patternIndex, fl = file.length, pl = pattern.length; fi < fl && pi < pl; fi++, pi++) {
|
|
4760
|
+
this.debug("matchOne loop");
|
|
4761
|
+
let p = pattern[pi];
|
|
4762
|
+
let f = file[fi];
|
|
4763
|
+
this.debug(pattern, p, f);
|
|
4764
|
+
if (p === false || p === GLOBSTAR)
|
|
4765
|
+
return false;
|
|
4766
|
+
let hit;
|
|
4767
|
+
if (typeof p === "string") {
|
|
4768
|
+
hit = f === p;
|
|
4769
|
+
this.debug("string match", p, f, hit);
|
|
4770
|
+
} else {
|
|
4771
|
+
hit = p.test(f);
|
|
4772
|
+
this.debug("pattern match", p, f, hit);
|
|
4773
|
+
}
|
|
4774
|
+
if (!hit)
|
|
4775
|
+
return false;
|
|
4776
|
+
}
|
|
4777
|
+
if (fi === fl && pi === pl) {
|
|
4778
|
+
return true;
|
|
4779
|
+
} else if (fi === fl) {
|
|
4780
|
+
return partial;
|
|
4781
|
+
} else if (pi === pl) {
|
|
4782
|
+
return fi === fl - 1 && file[fi] === "";
|
|
4783
|
+
} else {
|
|
4784
|
+
throw new Error("wtf?");
|
|
4785
|
+
}
|
|
4786
|
+
};
|
|
4578
4787
|
minimatch.AST = AST;
|
|
4579
4788
|
minimatch.Minimatch = Minimatch;
|
|
4580
4789
|
minimatch.escape = escape;
|
|
@@ -4648,7 +4857,7 @@ function proxyHostElement(elm, cstr) {
|
|
|
4648
4857
|
const hostRef = getHostRef(elm);
|
|
4649
4858
|
const members = Object.entries(cmpMeta.$members$);
|
|
4650
4859
|
members.forEach(([memberName, [memberFlags, metaAttributeName]]) => {
|
|
4651
|
-
var
|
|
4860
|
+
var _a2, _b;
|
|
4652
4861
|
if (memberFlags & 31 /* Prop */) {
|
|
4653
4862
|
const attributeName = metaAttributeName || memberName;
|
|
4654
4863
|
const attrValue = elm.getAttribute(attributeName);
|
|
@@ -4656,7 +4865,7 @@ function proxyHostElement(elm, cstr) {
|
|
|
4656
4865
|
let attrPropVal;
|
|
4657
4866
|
const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(cstr.prototype, memberName) || {};
|
|
4658
4867
|
if (attrValue != null) {
|
|
4659
|
-
if ((
|
|
4868
|
+
if ((_a2 = cmpMeta.$deserializers$) == null ? void 0 : _a2[memberName]) {
|
|
4660
4869
|
for (const deserializer of cmpMeta.$deserializers$[memberName]) {
|
|
4661
4870
|
const [[methodName]] = Object.entries(deserializer);
|
|
4662
4871
|
attrPropVal = cstr.prototype[methodName](attrValue, memberName);
|
|
@@ -4689,8 +4898,8 @@ function proxyHostElement(elm, cstr) {
|
|
|
4689
4898
|
Object.defineProperty(elm, memberName, getterSetterDescriptor);
|
|
4690
4899
|
Object.defineProperty(elm, metaAttributeName, getterSetterDescriptor);
|
|
4691
4900
|
hostRef.$fetchedCbList$.push(() => {
|
|
4692
|
-
var
|
|
4693
|
-
if (!((
|
|
4901
|
+
var _a3;
|
|
4902
|
+
if (!((_a3 = hostRef == null ? void 0 : hostRef.$instanceValues$) == null ? void 0 : _a3.has(memberName))) {
|
|
4694
4903
|
setValue(
|
|
4695
4904
|
elm,
|
|
4696
4905
|
memberName,
|
|
@@ -4703,11 +4912,11 @@ function proxyHostElement(elm, cstr) {
|
|
|
4703
4912
|
} else if (memberFlags & 64 /* Method */) {
|
|
4704
4913
|
Object.defineProperty(elm, memberName, {
|
|
4705
4914
|
value(...args) {
|
|
4706
|
-
var
|
|
4915
|
+
var _a3;
|
|
4707
4916
|
const ref = getHostRef(this);
|
|
4708
|
-
return (
|
|
4709
|
-
var
|
|
4710
|
-
return (
|
|
4917
|
+
return (_a3 = ref == null ? void 0 : ref.$onInstancePromise$) == null ? void 0 : _a3.then(() => {
|
|
4918
|
+
var _a4;
|
|
4919
|
+
return (_a4 = ref == null ? void 0 : ref.$lazyInstance$) == null ? void 0 : _a4[memberName](...args);
|
|
4711
4920
|
}).catch((e) => {
|
|
4712
4921
|
consoleError(e, this);
|
|
4713
4922
|
});
|
|
@@ -4718,8 +4927,8 @@ function proxyHostElement(elm, cstr) {
|
|
|
4718
4927
|
}
|
|
4719
4928
|
}
|
|
4720
4929
|
function componentOnReady$1() {
|
|
4721
|
-
var
|
|
4722
|
-
return (
|
|
4930
|
+
var _a2;
|
|
4931
|
+
return (_a2 = getHostRef(this)) == null ? void 0 : _a2.$onReadyPromise$;
|
|
4723
4932
|
}
|
|
4724
4933
|
function forceUpdate2() {
|
|
4725
4934
|
}
|
|
@@ -5115,7 +5324,7 @@ class LmvzAction {
|
|
|
5115
5324
|
this.actionClick.emit(event);
|
|
5116
5325
|
}
|
|
5117
5326
|
render() {
|
|
5118
|
-
return (hAsync(Host, { key: '
|
|
5327
|
+
return (hAsync(Host, { key: '15c0f20e08cd5019abfd3bb71ec69d175dc5ba48', onClick: this._onClick.bind(this) }, hAsync("slot", { key: 'f71a7853168d1b66b0a50b0f971d140385530ac3' })));
|
|
5119
5328
|
}
|
|
5120
5329
|
static get style() { return lmvzActionCss(); }
|
|
5121
5330
|
static get cmpMeta() { return {
|
|
@@ -5219,6 +5428,26 @@ function requireClassnames () {
|
|
|
5219
5428
|
var classnamesExports = requireClassnames();
|
|
5220
5429
|
var classNames = /*@__PURE__*/getDefaultExportFromCjs(classnamesExports);
|
|
5221
5430
|
|
|
5431
|
+
/**
|
|
5432
|
+
* Verify whether a value is a Promise by duck-testing for a 'then' function
|
|
5433
|
+
*/
|
|
5434
|
+
function isPromise(value) {
|
|
5435
|
+
if (!value)
|
|
5436
|
+
return false;
|
|
5437
|
+
return typeof value === 'object' && typeof value.then === 'function';
|
|
5438
|
+
}
|
|
5439
|
+
|
|
5440
|
+
/**
|
|
5441
|
+
* Resolve the result of a function that may be async or not, as a Promise.
|
|
5442
|
+
*/
|
|
5443
|
+
function resolvePossiblyAsyncFunction(func, args = []) {
|
|
5444
|
+
const res = func(...args);
|
|
5445
|
+
if (isPromise(res)) {
|
|
5446
|
+
return res;
|
|
5447
|
+
}
|
|
5448
|
+
return Promise.resolve(res);
|
|
5449
|
+
}
|
|
5450
|
+
|
|
5222
5451
|
const GLOBAL_STATE_KEY = Symbol('__lmvzAriaValidationRuntimeState');
|
|
5223
5452
|
const ARIA_VALIDATION_RUNTIME_CHANGED_EVENT = 'lmvz:aria-validation-runtime-changed';
|
|
5224
5453
|
function getRuntimeState() {
|
|
@@ -5233,20 +5462,35 @@ function getRuntimeState() {
|
|
|
5233
5462
|
const isAriaValidationEnabled = () => getRuntimeState().enabled;
|
|
5234
5463
|
const useVerboseLogging = () => getRuntimeState().verboseLogging ?? false;
|
|
5235
5464
|
function queueValidation(...args) {
|
|
5236
|
-
const { enabled, runtime, loadPromise } = getRuntimeState();
|
|
5465
|
+
const { enabled, runtime, loadPromise, lazyCondition } = getRuntimeState();
|
|
5237
5466
|
if (!enabled)
|
|
5238
5467
|
return;
|
|
5239
|
-
if (!
|
|
5240
|
-
|
|
5241
|
-
|
|
5242
|
-
|
|
5243
|
-
|
|
5244
|
-
|
|
5245
|
-
|
|
5468
|
+
if (!lazyCondition)
|
|
5469
|
+
return q();
|
|
5470
|
+
resolvePossiblyAsyncFunction(lazyCondition).then((shouldEnqueue) => {
|
|
5471
|
+
if (!shouldEnqueue)
|
|
5472
|
+
return;
|
|
5473
|
+
q();
|
|
5474
|
+
});
|
|
5475
|
+
function q() {
|
|
5476
|
+
if (runtime)
|
|
5477
|
+
return runtime.enqueueValidation(...args);
|
|
5478
|
+
if (!loadPromise) {
|
|
5479
|
+
console.warn('neither runtime nor load promise found for aria validation. This should not happen, as enabling aria validation should have triggered the loading of the runtime.');
|
|
5246
5480
|
return;
|
|
5247
5481
|
}
|
|
5482
|
+
loadPromise
|
|
5483
|
+
.then((loadedRuntime) => {
|
|
5484
|
+
if (!loadedRuntime?.enqueueValidation) {
|
|
5485
|
+
console.error('Failed to load aria validation runtime');
|
|
5486
|
+
return;
|
|
5487
|
+
}
|
|
5488
|
+
loadedRuntime.enqueueValidation(...args);
|
|
5489
|
+
})
|
|
5490
|
+
.catch(() => {
|
|
5491
|
+
console.error('Failed to enqueue validation due to an error while loading the runtime');
|
|
5492
|
+
});
|
|
5248
5493
|
}
|
|
5249
|
-
runtime.enqueueValidation(...args);
|
|
5250
5494
|
}
|
|
5251
5495
|
|
|
5252
5496
|
class AriaValidationController {
|
|
@@ -5429,7 +5673,7 @@ const componentOnReady = (el, callback) => {
|
|
|
5429
5673
|
};
|
|
5430
5674
|
const inheritAttributes = (el, attributes = []) => {
|
|
5431
5675
|
const attributeObject = {};
|
|
5432
|
-
attributes.forEach(attr => {
|
|
5676
|
+
attributes.forEach((attr) => {
|
|
5433
5677
|
if (el.hasAttribute(attr)) {
|
|
5434
5678
|
const value = el.getAttribute(attr);
|
|
5435
5679
|
if (value !== null) {
|
|
@@ -5511,7 +5755,7 @@ function getDeepActiveElement(root = document) {
|
|
|
5511
5755
|
if (!activeElement) {
|
|
5512
5756
|
return null;
|
|
5513
5757
|
}
|
|
5514
|
-
while (activeElement
|
|
5758
|
+
while (activeElement?.shadowRoot) {
|
|
5515
5759
|
const next = activeElement.shadowRoot.activeElement;
|
|
5516
5760
|
if (!next) {
|
|
5517
5761
|
break;
|
|
@@ -5521,6 +5765,8 @@ function getDeepActiveElement(root = document) {
|
|
|
5521
5765
|
return activeElement;
|
|
5522
5766
|
}
|
|
5523
5767
|
function canReceiveFocus(el) {
|
|
5768
|
+
if (!el)
|
|
5769
|
+
return false;
|
|
5524
5770
|
return (el instanceof HTMLElement && el.tabIndex >= 0 && !el.hasAttribute('disabled') && el.getAttribute('aria-hidden') !== 'true' && el.checkVisibility() && el.offsetParent !== null);
|
|
5525
5771
|
}
|
|
5526
5772
|
function findFormByRef(form, el) {
|
|
@@ -5647,7 +5893,7 @@ class LmvzButton extends ReactiveControllerHost {
|
|
|
5647
5893
|
};
|
|
5648
5894
|
render() {
|
|
5649
5895
|
this.renderHiddenButton();
|
|
5650
|
-
return (hAsync(Host, { key: '
|
|
5896
|
+
return (hAsync(Host, { key: 'c6f44d3765d579e04ab91272747035d8589e2ff2', "aria-disabled": this.disabled ? 'true' : null }, hAsync("button", { key: '9d48dfc7a6a23df1eda46e9c9035520789a08d4c', ref: (e) => (this.validationEl = e), disabled: this.disabled, class: classNames(this.variant, { [this.scale ?? '']: !!this.scale, disabled: this.disabled }), ...this.inheritedAttributes }, hAsync("slot", { key: '95e9fb932e477c7d6e933d2c00e6a3728e55c256' }))));
|
|
5651
5897
|
}
|
|
5652
5898
|
static get delegatesFocus() { return true; }
|
|
5653
5899
|
static get style() { return lmvzButtonCss(); }
|
|
@@ -5713,7 +5959,7 @@ class LmvzCard {
|
|
|
5713
5959
|
const imgStyle = {
|
|
5714
5960
|
backgroundImage: `url(${this.imageUrl ?? this.fallbackImage})`,
|
|
5715
5961
|
};
|
|
5716
|
-
return (hAsync(Host, { key: '
|
|
5962
|
+
return (hAsync(Host, { key: '46c2832b4f90b9eb222749632bc7ad59cd645e10', role: "article" }, hAsync("div", { key: 'cc387fe96cff2dd04c24f75cf838a2bf6f438279', class: "top" }, hAsync("div", { key: 'f9a54a5f81378ef4265e1d74c36c78af002e8874', class: "image-wrapper", style: imgStyle }, hAsync("div", { key: '76daed00408f7ae9ee46977637ddcd3d4f846380', class: "chip-slot" }, hAsync("slot", { key: '6ad522ef7428166b876d0218ef8d801c4ef337f1', name: "chip" })))), hAsync("div", { key: '9c9799668ac199cfecbe10061e271d70d70e2d07', class: "bottom" }, hAsync("header", { key: '1bec743235bea5c7ab163225ffbd7bc6cf11f754' }, hAsync("h2", { key: '06f8e14153328bc5ca920e71e09d9343047c440c', class: "title" }, this.cardTitle)), hAsync("p", { key: '86b95db4e6464ca3236b4a03798013c3580819bf', class: "description" }, this.description), hAsync("div", { key: '553dc998d5318a4730196baa0b9baff3a0a3369f', class: "actions" }, hAsync("button", { key: '7532d01b46769198c23a1b1015c187fdefce146a', class: "primary", onClick: this._onPrimaryClick.bind(this), "data-testid": "primary" }, this.primaryActionLabel), hAsync("button", { key: '633d679ae59b1896aa2a06e04b4564569cf27a7d', class: "tertiary", "aria-label": "More actions", onClick: this._onOverflowClick }, hAsync("span", { key: 'b72c45f93d259502b9d7c5ffb19e292a53c60ec6', class: "icon-placeholder" }, "..."))))));
|
|
5717
5963
|
}
|
|
5718
5964
|
static get assetsDirs() { return ["../../assets"]; }
|
|
5719
5965
|
static get style() { return lmvzCardCss(); }
|
|
@@ -5740,7 +5986,7 @@ class LmvzChip {
|
|
|
5740
5986
|
}
|
|
5741
5987
|
text;
|
|
5742
5988
|
render() {
|
|
5743
|
-
return hAsync(Host, { key: '
|
|
5989
|
+
return hAsync(Host, { key: 'd128e24bb90891ebd13d13a8e27c06782363cace' }, this.text);
|
|
5744
5990
|
}
|
|
5745
5991
|
static get style() { return lmvzChipCss(); }
|
|
5746
5992
|
static get cmpMeta() { return {
|
|
@@ -5781,19 +6027,21 @@ class ListKeyboardNavigationController {
|
|
|
5781
6027
|
}
|
|
5782
6028
|
};
|
|
5783
6029
|
getNextFocusableElement(current, direction) {
|
|
6030
|
+
if (!current)
|
|
6031
|
+
return undefined;
|
|
5784
6032
|
const { elements } = this;
|
|
5785
6033
|
const currentIndex = elements.indexOf(current);
|
|
5786
6034
|
if (currentIndex === -1)
|
|
5787
|
-
return
|
|
5788
|
-
let nextIndex =
|
|
6035
|
+
return undefined;
|
|
6036
|
+
let nextIndex = undefined;
|
|
5789
6037
|
if (direction === 'down') {
|
|
5790
6038
|
nextIndex = (currentIndex + 1) % elements.length;
|
|
5791
6039
|
}
|
|
5792
6040
|
else if (direction === 'up') {
|
|
5793
6041
|
nextIndex = (currentIndex - 1 + elements.length) % elements.length;
|
|
5794
6042
|
}
|
|
5795
|
-
if (nextIndex ==
|
|
5796
|
-
return
|
|
6043
|
+
if (nextIndex == undefined)
|
|
6044
|
+
return undefined;
|
|
5797
6045
|
const candidate = elements[nextIndex];
|
|
5798
6046
|
if (!canReceiveFocus(candidate))
|
|
5799
6047
|
return this.getNextFocusableElement(candidate, direction);
|
|
@@ -5813,10 +6061,10 @@ class LmvzHeader extends ReactiveControllerHost {
|
|
|
5813
6061
|
secondaryNav;
|
|
5814
6062
|
keyboardNavigationController = new ListKeyboardNavigationController(this);
|
|
5815
6063
|
get primaryMenuitems() {
|
|
5816
|
-
return this.primarySlot
|
|
6064
|
+
return this.primarySlot?.assignedElements({ flatten: false }) || [];
|
|
5817
6065
|
}
|
|
5818
6066
|
get secondaryMenuitems() {
|
|
5819
|
-
return this.secondarySlot
|
|
6067
|
+
return this.secondarySlot?.assignedElements({ flatten: true }) || [];
|
|
5820
6068
|
}
|
|
5821
6069
|
get role() {
|
|
5822
6070
|
return 'banner';
|
|
@@ -5835,9 +6083,9 @@ class LmvzHeader extends ReactiveControllerHost {
|
|
|
5835
6083
|
this.updateElementsActive();
|
|
5836
6084
|
}
|
|
5837
6085
|
componentDidLoad() {
|
|
5838
|
-
this.primarySlot
|
|
6086
|
+
this.primarySlot?.addEventListener('slotchange', this.handlePrimaryNavItemsChange.bind(this));
|
|
5839
6087
|
this.handlePrimaryNavItemsChange();
|
|
5840
|
-
this.secondarySlot
|
|
6088
|
+
this.secondarySlot?.addEventListener('slotchange', this.handleSecondaryNavItemsChange.bind(this));
|
|
5841
6089
|
super.componentDidLoad();
|
|
5842
6090
|
}
|
|
5843
6091
|
handlePrimaryNavItemsChange() {
|
|
@@ -5865,14 +6113,18 @@ class LmvzHeader extends ReactiveControllerHost {
|
|
|
5865
6113
|
}
|
|
5866
6114
|
updateElementsActive() {
|
|
5867
6115
|
const items = this.primaryMenuitems;
|
|
5868
|
-
|
|
6116
|
+
if (!items.length)
|
|
6117
|
+
return;
|
|
6118
|
+
let label = '';
|
|
5869
6119
|
items.forEach((el) => {
|
|
5870
6120
|
const isActive = el.id === this.lmvzActiveNav;
|
|
5871
6121
|
if (isActive)
|
|
5872
6122
|
label = el.textContent || el.id;
|
|
5873
6123
|
el.setAttribute('aria-expanded', isActive ? 'true' : 'false');
|
|
5874
6124
|
});
|
|
5875
|
-
|
|
6125
|
+
if (!label)
|
|
6126
|
+
return;
|
|
6127
|
+
this.secondaryNav?.setAttribute('aria-label', `Untermenü für ${label}`);
|
|
5876
6128
|
}
|
|
5877
6129
|
delegateFocus() {
|
|
5878
6130
|
const firstFocusable = this.primaryMenuitems[0];
|
|
@@ -5881,7 +6133,7 @@ class LmvzHeader extends ReactiveControllerHost {
|
|
|
5881
6133
|
}
|
|
5882
6134
|
}
|
|
5883
6135
|
render() {
|
|
5884
|
-
return (hAsync(Host, { key: '
|
|
6136
|
+
return (hAsync(Host, { key: '35883b5d4a92d10b5b010d822fb2233604464f9b', onFocus: this.delegateFocus.bind(this) }, hAsync("div", { key: '6fdec3af75bab2b076651b8cfef4aec8e23326a6', class: "brand" }, hAsync("slot", { key: '3127b4223b8bebfe425efc7ce45626f37fbf76b9', name: "brand" }, hAsync("img", { key: '20b3dd598e320c6950fb08bbd55dd80c47552eaf', id: "fallback-logo-lmvz", src: logoSvg, alt: "Lehrmittelverlag Z\u00FCrich" }))), hAsync("nav", { key: 'c3bf07f78930085c1a7b89421506bcd41d139911', "aria-label": "Hauptnavigation" }, hAsync("div", { key: 'fbc5199080f52da4f10c8c14fbbc0877ecc5f31c', role: "menubar", class: "primary-menubar" }, hAsync("slot", { key: '4210d213dcf7a1a27a73f2a9cf7ff97fec62f0db', name: "nav-primary", ref: (el) => (this.primarySlot = el) }), hAsync("div", { key: '7b91c269f75e1245f75d471ec5bb7eeabfe1094d', role: "menu", id: "nav-secondary", class: "secondary-menubar", hidden: !this.lmvzActiveNav, ref: (el) => (this.secondaryNav = el) }, hAsync("slot", { key: 'e23eb0f222b49d912bb45870df6d9b0d01f43788', name: this.secondarySlotName, ref: (el) => (this.secondarySlot = el) })))), hAsync("div", { key: '4b19026d5b2e54aa7aed072ce57de4acaa75cb4f', class: "actions" }, hAsync("slot", { key: '8f02d5d178bb60b40604fcd1be74d373d89c911f', name: "actions" }))));
|
|
5885
6137
|
}
|
|
5886
6138
|
static get watchers() { return {
|
|
5887
6139
|
"lmvzActiveNav": [{
|
|
@@ -6619,10 +6871,13 @@ function compareBoth(self, that) {
|
|
|
6619
6871
|
}
|
|
6620
6872
|
}
|
|
6621
6873
|
if (structuralRegionState.enabled) {
|
|
6874
|
+
if (self === null || that === null) {
|
|
6875
|
+
return false;
|
|
6876
|
+
}
|
|
6622
6877
|
if (Array.isArray(self) && Array.isArray(that)) {
|
|
6623
6878
|
return self.length === that.length && self.every((v, i) => compareBoth(v, that[i]));
|
|
6624
6879
|
}
|
|
6625
|
-
if (Object.getPrototypeOf(self) === Object.prototype && Object.getPrototypeOf(
|
|
6880
|
+
if (Object.getPrototypeOf(self) === Object.prototype && Object.getPrototypeOf(that) === Object.prototype) {
|
|
6626
6881
|
const keysSelf = Object.keys(self);
|
|
6627
6882
|
const keysThat = Object.keys(that);
|
|
6628
6883
|
if (keysSelf.length === keysThat.length) {
|
|
@@ -6751,7 +7006,7 @@ const OP_FAILURE = "Failure";
|
|
|
6751
7006
|
/** @internal */
|
|
6752
7007
|
const OP_WITH_RUNTIME = "WithRuntime";
|
|
6753
7008
|
|
|
6754
|
-
let moduleVersion = "3.
|
|
7009
|
+
let moduleVersion = "3.21.0";
|
|
6755
7010
|
const getCurrentVersion = () => moduleVersion;
|
|
6756
7011
|
|
|
6757
7012
|
/** @internal */
|
|
@@ -9241,34 +9496,33 @@ const renderErrorCause = (cause, prefix) => {
|
|
|
9241
9496
|
return stack;
|
|
9242
9497
|
};
|
|
9243
9498
|
/** @internal */
|
|
9244
|
-
|
|
9245
|
-
|
|
9246
|
-
|
|
9247
|
-
|
|
9248
|
-
|
|
9249
|
-
|
|
9250
|
-
|
|
9251
|
-
|
|
9252
|
-
|
|
9253
|
-
|
|
9254
|
-
|
|
9255
|
-
|
|
9256
|
-
|
|
9257
|
-
|
|
9258
|
-
if (
|
|
9259
|
-
|
|
9260
|
-
|
|
9261
|
-
|
|
9262
|
-
|
|
9263
|
-
|
|
9264
|
-
|
|
9265
|
-
|
|
9266
|
-
|
|
9267
|
-
});
|
|
9268
|
-
}
|
|
9269
|
-
this.stack = prettyErrorStack(`${this.name}: ${this.message}`, originalError instanceof Error && originalError.stack ? originalError.stack : "", this.span);
|
|
9499
|
+
const makePrettyError = originalError => {
|
|
9500
|
+
const originalErrorIsObject = typeof originalError === "object" && originalError !== null;
|
|
9501
|
+
const prevLimit = Error.stackTraceLimit;
|
|
9502
|
+
Error.stackTraceLimit = 1;
|
|
9503
|
+
const error = new Error(prettyErrorMessage(originalError), originalErrorIsObject && "cause" in originalError && typeof originalError.cause !== "undefined" ? {
|
|
9504
|
+
cause: makePrettyError(originalError.cause)
|
|
9505
|
+
} : undefined);
|
|
9506
|
+
Error.stackTraceLimit = prevLimit;
|
|
9507
|
+
if (error.message === "") {
|
|
9508
|
+
error.message = "An error has occurred";
|
|
9509
|
+
}
|
|
9510
|
+
Error.stackTraceLimit = prevLimit;
|
|
9511
|
+
error.name = originalError instanceof Error ? originalError.name : "Error";
|
|
9512
|
+
if (originalErrorIsObject) {
|
|
9513
|
+
if (spanSymbol in originalError) {
|
|
9514
|
+
error.span = originalError[spanSymbol];
|
|
9515
|
+
}
|
|
9516
|
+
Object.keys(originalError).forEach(key => {
|
|
9517
|
+
if (!(key in error)) {
|
|
9518
|
+
// @ts-expect-error
|
|
9519
|
+
error[key] = originalError[key];
|
|
9520
|
+
}
|
|
9521
|
+
});
|
|
9270
9522
|
}
|
|
9271
|
-
}
|
|
9523
|
+
error.stack = prettyErrorStack(`${error.name}: ${error.message}`, originalError instanceof Error && originalError.stack ? originalError.stack : "", error.span);
|
|
9524
|
+
return error;
|
|
9525
|
+
};
|
|
9272
9526
|
/**
|
|
9273
9527
|
* A utility function for generating human-readable error messages from a generic error of type `unknown`.
|
|
9274
9528
|
*
|
|
@@ -9356,10 +9610,10 @@ const spanSymbol = /*#__PURE__*/Symbol.for("effect/SpanAnnotation");
|
|
|
9356
9610
|
const prettyErrors = cause => reduceWithContext(cause, void 0, {
|
|
9357
9611
|
emptyCase: () => [],
|
|
9358
9612
|
dieCase: (_, unknownError) => {
|
|
9359
|
-
return [
|
|
9613
|
+
return [makePrettyError(unknownError)];
|
|
9360
9614
|
},
|
|
9361
9615
|
failCase: (_, error) => {
|
|
9362
|
-
return [
|
|
9616
|
+
return [makePrettyError(error)];
|
|
9363
9617
|
},
|
|
9364
9618
|
interruptCase: () => [],
|
|
9365
9619
|
parallelCase: (_, l, r) => [...l, ...r],
|
|
@@ -9679,7 +9933,7 @@ class LmvzIcon extends ReactiveControllerHost {
|
|
|
9679
9933
|
disconnectedCallback() {
|
|
9680
9934
|
if (this.intersectionObserver) {
|
|
9681
9935
|
this.intersectionObserver.disconnect();
|
|
9682
|
-
this.intersectionObserver =
|
|
9936
|
+
this.intersectionObserver = undefined;
|
|
9683
9937
|
}
|
|
9684
9938
|
super.disconnectedCallback();
|
|
9685
9939
|
}
|
|
@@ -9694,7 +9948,7 @@ class LmvzIcon extends ReactiveControllerHost {
|
|
|
9694
9948
|
super.componentDidRender();
|
|
9695
9949
|
}
|
|
9696
9950
|
render() {
|
|
9697
|
-
return hAsync(Host, { key: '
|
|
9951
|
+
return hAsync(Host, { key: 'f5c2f8025d0e9598d903e72770ebca6cad01961c', role: "img", "aria-hidden": `${this.ariaHidden}`, innerHTML: this.iconData });
|
|
9698
9952
|
}
|
|
9699
9953
|
waitUntilVisible(callback, rootMargin = 50) {
|
|
9700
9954
|
{
|
|
@@ -9789,9 +10043,13 @@ class LmvzInput extends ReactiveControllerHost {
|
|
|
9789
10043
|
}
|
|
9790
10044
|
async setValue(newValue) {
|
|
9791
10045
|
const input = this.nativeInputElement;
|
|
9792
|
-
|
|
9793
|
-
|
|
9794
|
-
|
|
10046
|
+
const val = newValue ?? '';
|
|
10047
|
+
if (input) {
|
|
10048
|
+
input.value = val;
|
|
10049
|
+
}
|
|
10050
|
+
this.value = val;
|
|
10051
|
+
this.internals.setFormValue?.(val);
|
|
10052
|
+
this.lmvzInput.emit(val);
|
|
9795
10053
|
}
|
|
9796
10054
|
async focusInput() {
|
|
9797
10055
|
this.nativeInputElement?.focus();
|
|
@@ -9830,13 +10088,13 @@ class LmvzInput extends ReactiveControllerHost {
|
|
|
9830
10088
|
}));
|
|
9831
10089
|
}
|
|
9832
10090
|
componentWillLoad() {
|
|
9833
|
-
this.initialValue = this.value;
|
|
10091
|
+
this.initialValue = this.value ?? '';
|
|
9834
10092
|
super.componentWillLoad();
|
|
9835
10093
|
}
|
|
9836
10094
|
formAssociatedCallback(form) {
|
|
9837
10095
|
if (!form)
|
|
9838
10096
|
return;
|
|
9839
|
-
this.internals.setFormValue?.(this.value);
|
|
10097
|
+
this.internals.setFormValue?.(this.value ?? '');
|
|
9840
10098
|
}
|
|
9841
10099
|
formResetCallback() {
|
|
9842
10100
|
this.internals.setValidity({});
|
|
@@ -9880,9 +10138,9 @@ class LmvzInput extends ReactiveControllerHost {
|
|
|
9880
10138
|
render() {
|
|
9881
10139
|
const hasValue = Boolean(this.value);
|
|
9882
10140
|
const shouldFloatLabel = hasValue || Boolean(this.placeholder);
|
|
9883
|
-
return (hAsync("div", { key: '
|
|
10141
|
+
return (hAsync("div", { key: '195e2c5046d48d01f4912993bde3c8d2b3a73d1d', class: classNames('input-container', {
|
|
9884
10142
|
'interaction-filled': hasValue,
|
|
9885
|
-
}) }, hAsync("div", { key: '
|
|
10143
|
+
}) }, hAsync("div", { key: '66bc3deab063a309eefc0de5ebf7f54331c9190c', class: "input-wrapper" }, hAsync("slot", { key: 'fac318070421d526bb09ba0dd0efdecf8964d952', name: "before-input" }), hAsync("div", { key: '1945152dc010d571c5886f222332b057e89e496c', class: "label-input-group" }, hAsync("label", { key: 'd57392c2c83b1e5f362dd33fa9d060e570417f3f', htmlFor: this.inputId, class: classNames({ floating: shouldFloatLabel }) }, this.label, this.required && (hAsync("span", { key: '507603a50eb08f0f4f5e2b87b2550fe6b657c4d4', class: "required-indicator", "aria-hidden": "true" }, ' ', "*"))), hAsync("input", { key: '0fe916fef48618331806142c0d3500d9e6dec9cb', id: this.inputId, ref: (el) => (this.nativeInputElement = el), type: this.type, min: this.min, max: this.max, step: this.step, value: this.value, name: this.name, placeholder: this.placeholder, disabled: this.disabled, readOnly: this.readonly, required: this.required, form: this.form, autocomplete: this.autocomplete, inputmode: this.inputmode, autocorrect: this.autocorrect, autocapitalize: this.autocapitalize, spellcheck: this.spellcheck, autofocus: this.autofocus, minlength: this.minlength, maxlength: this.maxlength, pattern: this.pattern, "aria-invalid": this.error ? 'true' : 'false', "aria-required": this.required ? 'true' : 'false', "aria-describedby": this.describedBy, "aria-errormessage": this.errorId, onInput: this.handleInput, onChange: this.handleChange, onFocus: this.handleFocus, onBlur: this.handleBlur })), hAsync("slot", { key: 'b415bedde58862e5bd7621f73a1d77bc478850a3', name: "after-input" })), hAsync("div", { key: 'bc0e07f5243417f4c632eb2f7976dc944fdbf17a', id: this.helperId, role: "status" }, this.helperText || null), hAsync("div", { key: '62e2267453b92edd47077b233cb231a1deecedc4', id: this.errorId, role: "alert" }, (this.showErrorMessage && this.errorMessage) || null)));
|
|
9886
10144
|
}
|
|
9887
10145
|
static get formAssociated() { return true; }
|
|
9888
10146
|
static get watchers() { return {
|
|
@@ -9941,7 +10199,9 @@ const lmvzMenuitemCss = () => `@layer lmvz-ds.reset, lmvz-ds.theme, lmvz-ds.comp
|
|
|
9941
10199
|
|
|
9942
10200
|
class LmvzMenuItem extends ReactiveControllerHost {
|
|
9943
10201
|
get el() { return getElement(this); }
|
|
9944
|
-
validationEl
|
|
10202
|
+
get validationEl() {
|
|
10203
|
+
return this.el;
|
|
10204
|
+
}
|
|
9945
10205
|
validationSlot;
|
|
9946
10206
|
get role() {
|
|
9947
10207
|
return 'menuitem';
|
|
@@ -9958,7 +10218,7 @@ class LmvzMenuItem extends ReactiveControllerHost {
|
|
|
9958
10218
|
this.addController(new ElementActivationController(this));
|
|
9959
10219
|
}
|
|
9960
10220
|
render() {
|
|
9961
|
-
return (hAsync(Host, { key: '
|
|
10221
|
+
return (hAsync(Host, { key: '1a37d2873a29c713cf95c60070c8dcf045c9f8fc' }, hAsync("slot", { key: 'c6578bcfdb9f0cebad095d80f0ed63cf663bf91e', ref: (e) => (this.validationSlot = e) })));
|
|
9962
10222
|
}
|
|
9963
10223
|
static get style() { return lmvzMenuitemCss(); }
|
|
9964
10224
|
static get cmpMeta() { return {
|
|
@@ -9976,7 +10236,7 @@ class LmvzMenuItem extends ReactiveControllerHost {
|
|
|
9976
10236
|
|
|
9977
10237
|
const chevronDownSvg = 'data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTIwLjMzMzQgOC42NjY2M0wxMi4wMDAxIDE3TDMuNjY2NzUgOC42NjY2MyIgc3Ryb2tlPSJibGFjayIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+Cjwvc3ZnPgo=';
|
|
9978
10238
|
|
|
9979
|
-
const lmvzSelectCss = () => `@layer lmvz-ds.reset, lmvz-ds.theme, lmvz-ds.components, lmvz-ds.overrides; @layer lmvz-ds.theme { @font-face { font-family: Router; src: local('Router-Book'), url('/assets/fonts/Router-Book.woff') format('woff'), local('Router'); font-weight: 400 normal; } @font-face { font-family: Router; src: local('Router-Medium'), url('/assets/fonts/Router-Medium.woff') format('woff'), local('Router'); font-weight: 500; } @font-face { font-family: Router; src: local('Router-Bold'), url('/assets/fonts/Router-Bold.woff') format('woff'), local('Router'); font-weight: 700 bold; } } .sc-lmvz-select-h { display: block; font-family: var(--lmvz-global-font-family-default, Router); --lmvz-internal-select-floating-label-top-offset: 0.375rem; padding-top: var(--lmvz-internal-select-floating-label-top-offset); --lmvz-select-radius: var(--lmvz-component-input-radius-default, 999px); --lmvz-select-bg: var(--lmvz-semantic-color-int-secondary, #f0f0f0); --lmvz-select-bg-hover: var(--lmvz-semantic-color-int-secondary-hover, #e0e0e0); --lmvz-select-text-color: var(--lmvz-semantic-color-int-on-secondary, #000000); --lmvz-select-label-color: var(--lmvz-semantic-color-on-surface-input-primary, #000000); --lmvz-select-padding-x: var(--lmvz-component-input-md-padding-x, clamp(0.75rem, 0.69rem + 0.26vw, 1rem)); --lmvz-select-gap: var(--lmvz-component-input-md-gap-x, clamp(0.25rem, 0.16rem + 0.39vw, 0.63rem)); --lmvz-select-height: 40px; --lmvz-select-label-font-size: var(--lmvz-component-component-typography-body-sm-font-size, 0.75rem); --lmvz-select-label-top-offset: calc(var(--lmvz-internal-select-floating-label-top-offset) * -1); --lmvz-select-label-minimized-padding-x: 4px; --lmvz-select-disabled-opacity: var(--lmvz-component-input-disabled-opacity, 40%); --lmvz-select-helper-color: var(--lmvz-semantic-color-on-surface-input-secondary, #7a7a7a); --lmvz-select-focus-color: var(--lmvz-semantic-color-status-on-selected, #0e7ab4); --lmvz-select-error-color: var(--lmvz-semantic-color-status-on-danger, #e52a31); } .select-wrapper.sc-lmvz-select { position: relative; height: var(--lmvz-select-height); } label.sc-lmvz-select { position: absolute; top: 50%; left: var(--lmvz-select-padding-x); font-size: var(--lmvz-select-label-font-size); color: var(--lmvz-select-label-color); line-height: normal; white-space: nowrap; pointer-events: none; z-index: 2; transform: translateY(-50%); transform-origin: left top; transition: top 0.2s ease-out, transform 0.2s ease-out, opacity 0.2s ease-out, padding 0.2s ease-out; } label.assistive-label.sc-lmvz-select { opacity: 0; padding: 0; } label.floating-label.sc-lmvz-select { top: var(--lmvz-select-label-top-offset); transform: translateY(0) scale(0.85); left: calc(var(--lmvz-select-padding-x) - 2px); background-color: var(--lmvz-select-bg); padding: 0 var(--lmvz-select-label-minimized-padding-x); opacity: 1; font-weight: 500; } label.sc-lmvz-select > span[aria-hidden='true'].sc-lmvz-select, div[aria-hidden='true'].sc-lmvz-select > span.sc-lmvz-select:first-child > span[aria-hidden='true'].sc-lmvz-select { color: var(--lmvz-select-error-color); margin-left: 2px; display: inline-block; line-height: 0; vertical-align: middle; } div[aria-hidden].sc-lmvz-select { display: flex; align-items: center; gap: var(--lmvz-select-gap); height: 100%; padding: 0 var(--lmvz-select-padding-x); border-radius: var(--lmvz-select-radius); background-color: var(--lmvz-select-bg); cursor: pointer; position: relative; z-index: 1; transition: background-color 0.15s ease; } .sc-lmvz-select-h:not([disabled]) .select-wrapper.sc-lmvz-select:hover div[aria-hidden].sc-lmvz-select { background-color: var(--lmvz-select-bg-hover); } .select-wrapper.sc-lmvz-select:focus-within div[aria-hidden].sc-lmvz-select { outline: 2px solid var(--lmvz-select-focus-color); outline-offset: 2px; } div[aria-hidden].sc-lmvz-select > span.sc-lmvz-select:first-child { flex: 1 0 0; font-size: var(--lmvz-component-component-typography-body-md-font-size, 0.875rem); font-weight: var(--lmvz-global-font-weight-500, 500); color: var(--lmvz-select-text-color); line-height: 1.4; letter-spacing: var(--lmvz-component-body-md-letter-spacing,
|
|
10239
|
+
const lmvzSelectCss = () => `@layer lmvz-ds.reset, lmvz-ds.theme, lmvz-ds.components, lmvz-ds.overrides; @layer lmvz-ds.theme { @font-face { font-family: Router; src: local('Router-Book'), url('/assets/fonts/Router-Book.woff') format('woff'), local('Router'); font-weight: 400 normal; } @font-face { font-family: Router; src: local('Router-Medium'), url('/assets/fonts/Router-Medium.woff') format('woff'), local('Router'); font-weight: 500; } @font-face { font-family: Router; src: local('Router-Bold'), url('/assets/fonts/Router-Bold.woff') format('woff'), local('Router'); font-weight: 700 bold; } } .sc-lmvz-select-h { display: block; font-family: var(--lmvz-global-font-family-default, Router); --lmvz-internal-select-floating-label-top-offset: 0.375rem; padding-top: var(--lmvz-internal-select-floating-label-top-offset); --lmvz-select-radius: var(--lmvz-component-input-radius-default, 999px); --lmvz-select-bg: var(--lmvz-semantic-color-int-secondary, #f0f0f0); --lmvz-select-bg-hover: var(--lmvz-semantic-color-int-secondary-hover, #e0e0e0); --lmvz-select-text-color: var(--lmvz-semantic-color-int-on-secondary, #000000); --lmvz-select-label-color: var(--lmvz-semantic-color-on-surface-input-primary, #000000); --lmvz-select-padding-x: var(--lmvz-component-input-md-padding-x, clamp(0.75rem, 0.69rem + 0.26vw, 1rem)); --lmvz-select-gap: var(--lmvz-component-input-md-gap-x, clamp(0.25rem, 0.16rem + 0.39vw, 0.63rem)); --lmvz-select-height: 40px; --lmvz-select-label-font-size: var(--lmvz-component-component-typography-body-sm-font-size, 0.75rem); --lmvz-select-label-top-offset: calc(var(--lmvz-internal-select-floating-label-top-offset) * -1); --lmvz-select-label-minimized-padding-x: 4px; --lmvz-select-disabled-opacity: var(--lmvz-component-input-disabled-opacity, 40%); --lmvz-select-helper-color: var(--lmvz-semantic-color-on-surface-input-secondary, #7a7a7a); --lmvz-select-focus-color: var(--lmvz-semantic-color-status-on-selected, #0e7ab4); --lmvz-select-error-color: var(--lmvz-semantic-color-status-on-danger, #e52a31); } .select-wrapper.sc-lmvz-select { position: relative; height: var(--lmvz-select-height); } label.sc-lmvz-select { position: absolute; top: 50%; left: var(--lmvz-select-padding-x); font-size: var(--lmvz-select-label-font-size); color: var(--lmvz-select-label-color); line-height: normal; white-space: nowrap; pointer-events: none; z-index: 2; transform: translateY(-50%); transform-origin: left top; transition: top 0.2s ease-out, transform 0.2s ease-out, opacity 0.2s ease-out, padding 0.2s ease-out; } label.assistive-label.sc-lmvz-select { opacity: 0; padding: 0; } label.floating-label.sc-lmvz-select { top: var(--lmvz-select-label-top-offset); transform: translateY(0) scale(0.85); left: calc(var(--lmvz-select-padding-x) - 2px); background-color: var(--lmvz-select-bg); padding: 0 var(--lmvz-select-label-minimized-padding-x); opacity: 1; font-weight: 500; } label.sc-lmvz-select > span[aria-hidden='true'].sc-lmvz-select, div[aria-hidden='true'].sc-lmvz-select > span.sc-lmvz-select:first-child > span[aria-hidden='true'].sc-lmvz-select { color: var(--lmvz-select-error-color); margin-left: 2px; display: inline-block; line-height: 0; vertical-align: middle; } div[aria-hidden].sc-lmvz-select { display: flex; align-items: center; gap: var(--lmvz-select-gap); height: 100%; padding: 0 var(--lmvz-select-padding-x); border-radius: var(--lmvz-select-radius); background-color: var(--lmvz-select-bg); cursor: pointer; position: relative; z-index: 1; transition: background-color 0.15s ease; } .sc-lmvz-select-h:not([disabled]) .select-wrapper.sc-lmvz-select:hover div[aria-hidden].sc-lmvz-select { background-color: var(--lmvz-select-bg-hover); } .select-wrapper.sc-lmvz-select:focus-within div[aria-hidden].sc-lmvz-select { outline: 2px solid var(--lmvz-select-focus-color); outline-offset: 2px; } div[aria-hidden].sc-lmvz-select > span.sc-lmvz-select:first-child { flex: 1 0 0; font-size: var(--lmvz-component-component-typography-body-md-font-size, 0.875rem); font-weight: var(--lmvz-global-font-weight-500, 500); color: var(--lmvz-select-text-color); line-height: 1.4; letter-spacing: var(--lmvz-component-body-md-letter-spacing, 0); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } div[aria-hidden].sc-lmvz-select > span.sc-lmvz-select:last-child { flex-shrink: 0; display: flex; align-items: center; justify-content: center; } img.sc-lmvz-select { display: block; width: var(--lmvz-component-icon-size-xs, clamp(0.75rem, 0.69rem + 0.26vw, 1rem)); height: var(--lmvz-component-icon-size-xs, clamp(0.75rem, 0.69rem + 0.26vw, 1rem)); } select.sc-lmvz-select { appearance: none; position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; z-index: 2; border: none; background: transparent; margin: 0; padding: 0; } [disabled].sc-lmvz-select-h .select-wrapper.sc-lmvz-select { opacity: var(--lmvz-select-disabled-opacity); pointer-events: none; cursor: not-allowed; } [role='status'].sc-lmvz-select { margin-top: 4px; padding-left: var(--lmvz-select-padding-x); font-size: var(--lmvz-select-label-font-size); color: var(--lmvz-select-helper-color); line-height: normal; }`;
|
|
9980
10240
|
|
|
9981
10241
|
let selectIdCounter = 0;
|
|
9982
10242
|
class LmvzSelect extends ReactiveControllerHost {
|
|
@@ -10028,7 +10288,7 @@ class LmvzSelect extends ReactiveControllerHost {
|
|
|
10028
10288
|
render() {
|
|
10029
10289
|
const hasValue = this.hasValue;
|
|
10030
10290
|
const shouldShowLabel = hasValue;
|
|
10031
|
-
return (hAsync(Host, { key: '
|
|
10291
|
+
return (hAsync(Host, { key: '7d1abb943f79e90451b43c9221801b80a2f61346' }, hAsync("div", { key: 'ded3e45246ab38e89d444c59239cdc63a2c4d4fc', class: "select-wrapper" }, hAsync("label", { key: 'cb68ff79976c2fb55d4cc827f9e90ba2597a8a43', htmlFor: this.selectId, class: shouldShowLabel ? 'floating-label' : 'assistive-label' }, this.label, this.required && shouldShowLabel && hAsync("span", { key: 'ab77eaea1645b95d90f00ffb609bbd7a1704f7bc', "aria-hidden": "true" }, " *")), hAsync("div", { key: '45cee00478a6cc31c10dddf69d8e6687fc8f440d', "aria-hidden": "true" }, hAsync("span", { key: '0c5d425ea8843234aa6abd94a207377e2a675686' }, hasValue ? this.selectedLabel : this.label, this.required && !hasValue && hAsync("span", { key: 'ebef5322371ee0253b50dd801b80cbb6402c067a', "aria-hidden": "true" }, " *")), hAsync("span", { key: 'a12d31dc29563444f728133f181b48914d31705b' }, hAsync("img", { key: 'dd3f175d1ca2b9ccc6c2bfa2075e5da62016a896', src: chevronDownSvg, alt: "" }))), hAsync("select", { key: 'a196f3b824177d1b45971c38341bf6a2939dda82', id: this.selectId, ref: (el) => (this.nativeSelectEl = el), name: this.name, disabled: this.disabled, required: this.required, "aria-label": this.label, onChange: this.handleChange }, !hasValue && hAsync("option", { key: '536cc559def0e9ffa4b2150693ece9a597c238d1', value: "", disabled: true, selected: true, hidden: true }), hAsync("slot", { key: 'ad9fed96b9f8c1d8257511bb1d5ab5ee756973ce' }))), this.helperText && hAsync("div", { key: '4723b44d781c900be5aae7ece2a0be04b6c744b9', role: "status" }, this.helperText)));
|
|
10032
10292
|
}
|
|
10033
10293
|
static get watchers() { return {
|
|
10034
10294
|
"value": [{
|
|
@@ -10165,7 +10425,7 @@ var NAMESPACE = (
|
|
|
10165
10425
|
);
|
|
10166
10426
|
|
|
10167
10427
|
/*
|
|
10168
|
-
Stencil Hydrate Runner v4.43.
|
|
10428
|
+
Stencil Hydrate Runner v4.43.3 | MIT Licensed | https://stenciljs.com
|
|
10169
10429
|
*/
|
|
10170
10430
|
var __create = Object.create;
|
|
10171
10431
|
var __defProp = Object.defineProperty;
|
|
@@ -11496,11 +11756,11 @@ var fromCodePoint = (
|
|
|
11496
11756
|
}
|
|
11497
11757
|
);
|
|
11498
11758
|
function replaceCodePoint(codePoint) {
|
|
11499
|
-
var
|
|
11759
|
+
var _a3;
|
|
11500
11760
|
if (codePoint >= 55296 && codePoint <= 57343 || codePoint > 1114111) {
|
|
11501
11761
|
return 65533;
|
|
11502
11762
|
}
|
|
11503
|
-
return (
|
|
11763
|
+
return (_a3 = decodeMap.get(codePoint)) !== null && _a3 !== void 0 ? _a3 : codePoint;
|
|
11504
11764
|
}
|
|
11505
11765
|
|
|
11506
11766
|
// node_modules/entities/lib/esm/decode.js
|
|
@@ -11697,9 +11957,9 @@ var EntityDecoder = class {
|
|
|
11697
11957
|
* @returns The number of characters that were consumed.
|
|
11698
11958
|
*/
|
|
11699
11959
|
emitNumericEntity(lastCp, expectedLength) {
|
|
11700
|
-
var
|
|
11960
|
+
var _a3;
|
|
11701
11961
|
if (this.consumed <= expectedLength) {
|
|
11702
|
-
(
|
|
11962
|
+
(_a3 = this.errors) === null || _a3 === void 0 ? void 0 : _a3.absenceOfDigitsInNumericCharacterReference(this.consumed);
|
|
11703
11963
|
return 0;
|
|
11704
11964
|
}
|
|
11705
11965
|
if (lastCp === CharCodes.SEMI) {
|
|
@@ -11759,11 +12019,11 @@ var EntityDecoder = class {
|
|
|
11759
12019
|
* @returns The number of characters consumed.
|
|
11760
12020
|
*/
|
|
11761
12021
|
emitNotTerminatedNamedEntity() {
|
|
11762
|
-
var
|
|
12022
|
+
var _a3;
|
|
11763
12023
|
const { result, decodeTree } = this;
|
|
11764
12024
|
const valueLength = (decodeTree[result] & BinTrieFlags.VALUE_LENGTH) >> 14;
|
|
11765
12025
|
this.emitNamedEntityData(result, valueLength, this.consumed);
|
|
11766
|
-
(
|
|
12026
|
+
(_a3 = this.errors) === null || _a3 === void 0 ? void 0 : _a3.missingSemicolonAfterCharacterReference();
|
|
11767
12027
|
return this.consumed;
|
|
11768
12028
|
}
|
|
11769
12029
|
/**
|
|
@@ -11791,7 +12051,7 @@ var EntityDecoder = class {
|
|
|
11791
12051
|
* @returns The number of characters consumed.
|
|
11792
12052
|
*/
|
|
11793
12053
|
end() {
|
|
11794
|
-
var
|
|
12054
|
+
var _a3;
|
|
11795
12055
|
switch (this.state) {
|
|
11796
12056
|
case EntityDecoderState.NamedEntity: {
|
|
11797
12057
|
return this.result !== 0 && (this.decodeMode !== DecodingMode.Attribute || this.result === this.treeIndex) ? this.emitNotTerminatedNamedEntity() : 0;
|
|
@@ -11804,7 +12064,7 @@ var EntityDecoder = class {
|
|
|
11804
12064
|
return this.emitNumericEntity(0, 3);
|
|
11805
12065
|
}
|
|
11806
12066
|
case EntityDecoderState.NumericStart: {
|
|
11807
|
-
(
|
|
12067
|
+
(_a3 = this.errors) === null || _a3 === void 0 ? void 0 : _a3.absenceOfDigitsInNumericCharacterReference(this.consumed);
|
|
11808
12068
|
return 0;
|
|
11809
12069
|
}
|
|
11810
12070
|
case EntityDecoderState.EntityStart: {
|
|
@@ -12285,8 +12545,8 @@ var TAG_NAME_TO_ID = /* @__PURE__ */ new Map([
|
|
|
12285
12545
|
[TAG_NAMES.XMP, TAG_ID.XMP]
|
|
12286
12546
|
]);
|
|
12287
12547
|
function getTagID(tagName) {
|
|
12288
|
-
var
|
|
12289
|
-
return (
|
|
12548
|
+
var _a3;
|
|
12549
|
+
return (_a3 = TAG_NAME_TO_ID.get(tagName)) !== null && _a3 !== void 0 ? _a3 : TAG_ID.UNKNOWN;
|
|
12290
12550
|
}
|
|
12291
12551
|
var $ = TAG_ID;
|
|
12292
12552
|
var SPECIAL_ELEMENTS = {
|
|
@@ -12553,8 +12813,8 @@ var Tokenizer = class {
|
|
|
12553
12813
|
}
|
|
12554
12814
|
//Errors
|
|
12555
12815
|
_err(code, cpOffset = 0) {
|
|
12556
|
-
var
|
|
12557
|
-
(_b = (
|
|
12816
|
+
var _a3, _b;
|
|
12817
|
+
(_b = (_a3 = this.handler).onParseError) === null || _b === void 0 ? void 0 : _b.call(_a3, this.preprocessor.getError(code, cpOffset));
|
|
12558
12818
|
}
|
|
12559
12819
|
// NOTE: `offset` may never run across line boundaries.
|
|
12560
12820
|
getCurrentLocation(offset) {
|
|
@@ -12696,13 +12956,13 @@ var Tokenizer = class {
|
|
|
12696
12956
|
this.currentLocation = this.getCurrentLocation(0);
|
|
12697
12957
|
}
|
|
12698
12958
|
_leaveAttrName() {
|
|
12699
|
-
var
|
|
12959
|
+
var _a3;
|
|
12700
12960
|
var _b;
|
|
12701
12961
|
const token = this.currentToken;
|
|
12702
12962
|
if (getTokenAttr(token, this.currentAttr.name) === null) {
|
|
12703
12963
|
token.attrs.push(this.currentAttr);
|
|
12704
12964
|
if (token.location && this.currentLocation) {
|
|
12705
|
-
const attrLocations = (
|
|
12965
|
+
const attrLocations = (_a3 = (_b = token.location).attrs) !== null && _a3 !== void 0 ? _a3 : _b.attrs = /* @__PURE__ */ Object.create(null);
|
|
12706
12966
|
attrLocations[this.currentAttr.name] = this.currentLocation;
|
|
12707
12967
|
this._leaveAttrValue();
|
|
12708
12968
|
}
|
|
@@ -16050,10 +16310,10 @@ var Parser = class {
|
|
|
16050
16310
|
//Errors
|
|
16051
16311
|
/** @internal */
|
|
16052
16312
|
_err(token, code, beforeToken) {
|
|
16053
|
-
var
|
|
16313
|
+
var _a3;
|
|
16054
16314
|
if (!this.onParseError)
|
|
16055
16315
|
return;
|
|
16056
|
-
const loc = (
|
|
16316
|
+
const loc = (_a3 = token.location) !== null && _a3 !== void 0 ? _a3 : BASE_LOC;
|
|
16057
16317
|
const err2 = {
|
|
16058
16318
|
code,
|
|
16059
16319
|
startLine: loc.startLine,
|
|
@@ -16068,18 +16328,18 @@ var Parser = class {
|
|
|
16068
16328
|
//Stack events
|
|
16069
16329
|
/** @internal */
|
|
16070
16330
|
onItemPush(node, tid, isTop) {
|
|
16071
|
-
var
|
|
16072
|
-
(_b = (
|
|
16331
|
+
var _a3, _b;
|
|
16332
|
+
(_b = (_a3 = this.treeAdapter).onItemPush) === null || _b === void 0 ? void 0 : _b.call(_a3, node);
|
|
16073
16333
|
if (isTop && this.openElements.stackTop > 0)
|
|
16074
16334
|
this._setContextModes(node, tid);
|
|
16075
16335
|
}
|
|
16076
16336
|
/** @internal */
|
|
16077
16337
|
onItemPop(node, isTop) {
|
|
16078
|
-
var
|
|
16338
|
+
var _a3, _b;
|
|
16079
16339
|
if (this.options.sourceCodeLocationInfo) {
|
|
16080
16340
|
this._setEndLocation(node, this.currentToken);
|
|
16081
16341
|
}
|
|
16082
|
-
(_b = (
|
|
16342
|
+
(_b = (_a3 = this.treeAdapter).onItemPop) === null || _b === void 0 ? void 0 : _b.call(_a3, node, this.openElements.current);
|
|
16083
16343
|
if (isTop) {
|
|
16084
16344
|
let current;
|
|
16085
16345
|
let currentTagId;
|
|
@@ -18153,9 +18413,9 @@ function eofInBody(p, token) {
|
|
|
18153
18413
|
}
|
|
18154
18414
|
}
|
|
18155
18415
|
function endTagInText(p, token) {
|
|
18156
|
-
var
|
|
18416
|
+
var _a3;
|
|
18157
18417
|
if (token.tagID === TAG_ID.SCRIPT) {
|
|
18158
|
-
(
|
|
18418
|
+
(_a3 = p.scriptHandler) === null || _a3 === void 0 ? void 0 : _a3.call(p, p.openElements.current);
|
|
18159
18419
|
}
|
|
18160
18420
|
p.openElements.pop();
|
|
18161
18421
|
p.insertionMode = p.originalInsertionMode;
|
|
@@ -18817,7 +19077,7 @@ function startTagAfterBody(p, token) {
|
|
|
18817
19077
|
}
|
|
18818
19078
|
}
|
|
18819
19079
|
function endTagAfterBody(p, token) {
|
|
18820
|
-
var
|
|
19080
|
+
var _a3;
|
|
18821
19081
|
if (token.tagID === TAG_ID.HTML) {
|
|
18822
19082
|
if (!p.fragmentContext) {
|
|
18823
19083
|
p.insertionMode = InsertionMode.AFTER_AFTER_BODY;
|
|
@@ -18825,7 +19085,7 @@ function endTagAfterBody(p, token) {
|
|
|
18825
19085
|
if (p.options.sourceCodeLocationInfo && p.openElements.tagIDs[0] === TAG_ID.HTML) {
|
|
18826
19086
|
p._setEndLocation(p.openElements.items[0], token);
|
|
18827
19087
|
const bodyElement = p.openElements.items[1];
|
|
18828
|
-
if (bodyElement && !((
|
|
19088
|
+
if (bodyElement && !((_a3 = p.treeAdapter.getNodeSourceCodeLocation(bodyElement)) === null || _a3 === void 0 ? void 0 : _a3.endTag)) {
|
|
18829
19089
|
p._setEndLocation(bodyElement, token);
|
|
18830
19090
|
}
|
|
18831
19091
|
}
|
|
@@ -20689,7 +20949,7 @@ function serializeNodeToHtml(elm, serializationOptions = {}) {
|
|
|
20689
20949
|
}
|
|
20690
20950
|
var shadowRootTag = "mock:shadow-root";
|
|
20691
20951
|
function* streamToHtml(node, opts, output) {
|
|
20692
|
-
var
|
|
20952
|
+
var _a3, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p;
|
|
20693
20953
|
const isShadowRoot = node.nodeType === 11 /* DOCUMENT_FRAGMENT_NODE */;
|
|
20694
20954
|
if (node.nodeType === 1 /* ELEMENT_NODE */ || isShadowRoot) {
|
|
20695
20955
|
const tagName = isShadowRoot ? shadowRootTag : getTagName(node);
|
|
@@ -20698,7 +20958,7 @@ function* streamToHtml(node, opts, output) {
|
|
|
20698
20958
|
}
|
|
20699
20959
|
const ignoreTag = opts.excludeTags != null && opts.excludeTags.includes(tagName);
|
|
20700
20960
|
if (ignoreTag === false) {
|
|
20701
|
-
const isWithinWhitespaceSensitiveNode = opts.newLines || ((
|
|
20961
|
+
const isWithinWhitespaceSensitiveNode = opts.newLines || ((_a3 = opts.indentSpaces) != null ? _a3 : 0) > 0 ? isWithinWhitespaceSensitive(node) : false;
|
|
20702
20962
|
if (opts.newLines && !isWithinWhitespaceSensitiveNode) {
|
|
20703
20963
|
yield "\n";
|
|
20704
20964
|
output.currentLineWidth = 0;
|
|
@@ -21217,9 +21477,7 @@ var MockNode2 = class {
|
|
|
21217
21477
|
const firstChild = this.firstChild;
|
|
21218
21478
|
items.forEach((item) => {
|
|
21219
21479
|
const isNode = typeof item === "object" && item !== null && "nodeType" in item;
|
|
21220
|
-
|
|
21221
|
-
this.insertBefore(isNode ? item : this.ownerDocument.createTextNode(String(item)), firstChild);
|
|
21222
|
-
}
|
|
21480
|
+
this.insertBefore(isNode ? item : this.ownerDocument.createTextNode(String(item)), firstChild);
|
|
21223
21481
|
});
|
|
21224
21482
|
}
|
|
21225
21483
|
cloneNode(deep) {
|
|
@@ -21268,8 +21526,8 @@ var MockNode2 = class {
|
|
|
21268
21526
|
return null;
|
|
21269
21527
|
}
|
|
21270
21528
|
get nodeValue() {
|
|
21271
|
-
var
|
|
21272
|
-
return (
|
|
21529
|
+
var _a3;
|
|
21530
|
+
return (_a3 = this._nodeValue) != null ? _a3 : "";
|
|
21273
21531
|
}
|
|
21274
21532
|
set nodeValue(value) {
|
|
21275
21533
|
this._nodeValue = value;
|
|
@@ -21329,8 +21587,8 @@ var MockNode2 = class {
|
|
|
21329
21587
|
return null;
|
|
21330
21588
|
}
|
|
21331
21589
|
get textContent() {
|
|
21332
|
-
var
|
|
21333
|
-
return (
|
|
21590
|
+
var _a3;
|
|
21591
|
+
return (_a3 = this._nodeValue) != null ? _a3 : "";
|
|
21334
21592
|
}
|
|
21335
21593
|
set textContent(value) {
|
|
21336
21594
|
this._nodeValue = String(value);
|
|
@@ -21389,9 +21647,9 @@ var MockElement = class extends MockNode2 {
|
|
|
21389
21647
|
addEventListener(this, type, handler);
|
|
21390
21648
|
}
|
|
21391
21649
|
attachShadow(_opts) {
|
|
21392
|
-
var
|
|
21650
|
+
var _a3;
|
|
21393
21651
|
const shadowRoot = this.ownerDocument.createDocumentFragment();
|
|
21394
|
-
shadowRoot.delegatesFocus = (
|
|
21652
|
+
shadowRoot.delegatesFocus = (_a3 = _opts.delegatesFocus) != null ? _a3 : false;
|
|
21395
21653
|
this.shadowRoot = shadowRoot;
|
|
21396
21654
|
return shadowRoot;
|
|
21397
21655
|
}
|
|
@@ -21567,8 +21825,8 @@ var MockElement = class extends MockNode2 {
|
|
|
21567
21825
|
});
|
|
21568
21826
|
}
|
|
21569
21827
|
set innerHTML(html) {
|
|
21570
|
-
var
|
|
21571
|
-
if (NON_ESCAPABLE_CONTENT.has((
|
|
21828
|
+
var _a3;
|
|
21829
|
+
if (NON_ESCAPABLE_CONTENT.has((_a3 = this.nodeName) != null ? _a3 : "") === true) {
|
|
21572
21830
|
setTextContent(this, html);
|
|
21573
21831
|
} else {
|
|
21574
21832
|
for (let i = this.childNodes.length - 1; i >= 0; i--) {
|
|
@@ -21811,8 +22069,8 @@ var MockElement = class extends MockNode2 {
|
|
|
21811
22069
|
this.setAttributeNS(null, "tabindex", value);
|
|
21812
22070
|
}
|
|
21813
22071
|
get tagName() {
|
|
21814
|
-
var
|
|
21815
|
-
return (
|
|
22072
|
+
var _a3;
|
|
22073
|
+
return (_a3 = this.nodeName) != null ? _a3 : "";
|
|
21816
22074
|
}
|
|
21817
22075
|
set tagName(value) {
|
|
21818
22076
|
this.nodeName = value;
|
|
@@ -22034,11 +22292,11 @@ function getElementsByClassName(elm, classNames, foundElms) {
|
|
|
22034
22292
|
}
|
|
22035
22293
|
}
|
|
22036
22294
|
function getElementsByTagName(elm, tagName, foundElms) {
|
|
22037
|
-
var
|
|
22295
|
+
var _a3;
|
|
22038
22296
|
const children = elm.children;
|
|
22039
22297
|
for (let i = 0, ii = children.length; i < ii; i++) {
|
|
22040
22298
|
const childElm = children[i];
|
|
22041
|
-
if (tagName === "*" || ((
|
|
22299
|
+
if (tagName === "*" || ((_a3 = childElm.nodeName) != null ? _a3 : "").toLowerCase() === tagName) {
|
|
22042
22300
|
foundElms.push(childElm);
|
|
22043
22301
|
}
|
|
22044
22302
|
getElementsByTagName(childElm, tagName, foundElms);
|
|
@@ -22075,8 +22333,8 @@ var MockHTMLElement = class extends MockElement {
|
|
|
22075
22333
|
super(ownerDocument, typeof nodeName === "string" ? nodeName.toUpperCase() : null);
|
|
22076
22334
|
}
|
|
22077
22335
|
get tagName() {
|
|
22078
|
-
var
|
|
22079
|
-
return (
|
|
22336
|
+
var _a3;
|
|
22337
|
+
return (_a3 = this.nodeName) != null ? _a3 : "";
|
|
22080
22338
|
}
|
|
22081
22339
|
set tagName(value) {
|
|
22082
22340
|
this.nodeName = value;
|
|
@@ -22534,10 +22792,10 @@ var MockLabelElement = class extends MockHTMLElement {
|
|
|
22534
22792
|
this.setAttributeNS(null, "for", value);
|
|
22535
22793
|
}
|
|
22536
22794
|
get control() {
|
|
22537
|
-
var
|
|
22795
|
+
var _a3, _b;
|
|
22538
22796
|
const forAttr = this.htmlFor;
|
|
22539
22797
|
if (forAttr) {
|
|
22540
|
-
return (_b = (
|
|
22798
|
+
return (_b = (_a3 = this.ownerDocument) == null ? void 0 : _a3.getElementById(forAttr)) != null ? _b : null;
|
|
22541
22799
|
}
|
|
22542
22800
|
const labelableSelector = 'button, input:not([type="hidden"]), meter, output, progress, select, textarea';
|
|
22543
22801
|
return this.querySelector(labelableSelector);
|
|
@@ -25250,8 +25508,35 @@ var unescape = (s, { windowsPathsNoEscape = false } = {}) => {
|
|
|
25250
25508
|
};
|
|
25251
25509
|
|
|
25252
25510
|
// node_modules/minimatch/dist/esm/ast.js
|
|
25511
|
+
var _a2;
|
|
25253
25512
|
var types = /* @__PURE__ */ new Set(["!", "?", "+", "*", "@"]);
|
|
25254
25513
|
var isExtglobType = (c) => types.has(c);
|
|
25514
|
+
var isExtglobAST = (c) => isExtglobType(c.type);
|
|
25515
|
+
var adoptionMap = /* @__PURE__ */ new Map([
|
|
25516
|
+
["!", ["@"]],
|
|
25517
|
+
["?", ["?", "@"]],
|
|
25518
|
+
["@", ["@"]],
|
|
25519
|
+
["*", ["*", "+", "?", "@"]],
|
|
25520
|
+
["+", ["+", "@"]]
|
|
25521
|
+
]);
|
|
25522
|
+
var adoptionWithSpaceMap = /* @__PURE__ */ new Map([
|
|
25523
|
+
["!", ["?"]],
|
|
25524
|
+
["@", ["?"]],
|
|
25525
|
+
["+", ["?", "*"]]
|
|
25526
|
+
]);
|
|
25527
|
+
var adoptionAnyMap = /* @__PURE__ */ new Map([
|
|
25528
|
+
["!", ["?", "@"]],
|
|
25529
|
+
["?", ["?", "@"]],
|
|
25530
|
+
["@", ["?", "@"]],
|
|
25531
|
+
["*", ["*", "+", "?", "@"]],
|
|
25532
|
+
["+", ["+", "@", "?", "*"]]
|
|
25533
|
+
]);
|
|
25534
|
+
var usurpMap = /* @__PURE__ */ new Map([
|
|
25535
|
+
["!", /* @__PURE__ */ new Map([["!", "@"]])],
|
|
25536
|
+
["?", /* @__PURE__ */ new Map([["*", "*"], ["+", "*"]])],
|
|
25537
|
+
["@", /* @__PURE__ */ new Map([["!", "!"], ["?", "?"], ["@", "@"], ["*", "*"], ["+", "+"]])],
|
|
25538
|
+
["+", /* @__PURE__ */ new Map([["?", "*"], ["*", "*"]])]
|
|
25539
|
+
]);
|
|
25255
25540
|
var startNoTraversal = "(?!(?:^|/)\\.\\.?(?:$|/))";
|
|
25256
25541
|
var startNoDot = "(?!\\.)";
|
|
25257
25542
|
var addPatternStart = /* @__PURE__ */ new Set(["[", "."]);
|
|
@@ -25261,8 +25546,8 @@ var regExpEscape = (s) => s.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&");
|
|
|
25261
25546
|
var qmark = "[^/]";
|
|
25262
25547
|
var star = qmark + "*?";
|
|
25263
25548
|
var starNoEmpty = qmark + "+?";
|
|
25264
|
-
var _root, _hasMagic, _uflag, _parts, _parent, _parentIndex, _negs, _filledNegs, _options, _toString, _emptyExt, _AST_instances, fillNegs_fn, _AST_static, parseAST_fn, partsToRegExp_fn, parseGlob_fn;
|
|
25265
|
-
var
|
|
25549
|
+
var _root, _hasMagic, _uflag, _parts, _parent, _parentIndex, _negs, _filledNegs, _options, _toString, _emptyExt, _AST_instances, fillNegs_fn, _AST_static, parseAST_fn, canAdoptWithSpace_fn, canAdopt_fn, canAdoptType_fn, adoptWithSpace_fn, adopt_fn, canUsurpType_fn, canUsurp_fn, usurp_fn, flatten_fn, partsToRegExp_fn, parseGlob_fn;
|
|
25550
|
+
var AST = class {
|
|
25266
25551
|
constructor(type, parent, options = {}) {
|
|
25267
25552
|
__privateAdd(this, _AST_instances);
|
|
25268
25553
|
__publicField(this, "type");
|
|
@@ -25315,44 +25600,44 @@ var _AST = class _AST {
|
|
|
25315
25600
|
for (const p of parts) {
|
|
25316
25601
|
if (p === "")
|
|
25317
25602
|
continue;
|
|
25318
|
-
if (typeof p !== "string" && !(p instanceof
|
|
25603
|
+
if (typeof p !== "string" && !(p instanceof _a2 && __privateGet(p, _parent) === this)) {
|
|
25319
25604
|
throw new Error("invalid part: " + p);
|
|
25320
25605
|
}
|
|
25321
25606
|
__privateGet(this, _parts).push(p);
|
|
25322
25607
|
}
|
|
25323
25608
|
}
|
|
25324
25609
|
toJSON() {
|
|
25325
|
-
var
|
|
25610
|
+
var _a3;
|
|
25326
25611
|
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())];
|
|
25327
25612
|
if (this.isStart() && !this.type)
|
|
25328
25613
|
ret.unshift([]);
|
|
25329
|
-
if (this.isEnd() && (this === __privateGet(this, _root) || __privateGet(__privateGet(this, _root), _filledNegs) && ((
|
|
25614
|
+
if (this.isEnd() && (this === __privateGet(this, _root) || __privateGet(__privateGet(this, _root), _filledNegs) && ((_a3 = __privateGet(this, _parent)) == null ? void 0 : _a3.type) === "!")) {
|
|
25330
25615
|
ret.push({});
|
|
25331
25616
|
}
|
|
25332
25617
|
return ret;
|
|
25333
25618
|
}
|
|
25334
25619
|
isStart() {
|
|
25335
|
-
var
|
|
25620
|
+
var _a3;
|
|
25336
25621
|
if (__privateGet(this, _root) === this)
|
|
25337
25622
|
return true;
|
|
25338
|
-
if (!((
|
|
25623
|
+
if (!((_a3 = __privateGet(this, _parent)) == null ? void 0 : _a3.isStart()))
|
|
25339
25624
|
return false;
|
|
25340
25625
|
if (__privateGet(this, _parentIndex) === 0)
|
|
25341
25626
|
return true;
|
|
25342
25627
|
const p = __privateGet(this, _parent);
|
|
25343
25628
|
for (let i = 0; i < __privateGet(this, _parentIndex); i++) {
|
|
25344
25629
|
const pp = __privateGet(p, _parts)[i];
|
|
25345
|
-
if (!(pp instanceof
|
|
25630
|
+
if (!(pp instanceof _a2 && pp.type === "!")) {
|
|
25346
25631
|
return false;
|
|
25347
25632
|
}
|
|
25348
25633
|
}
|
|
25349
25634
|
return true;
|
|
25350
25635
|
}
|
|
25351
25636
|
isEnd() {
|
|
25352
|
-
var
|
|
25637
|
+
var _a3, _b, _c;
|
|
25353
25638
|
if (__privateGet(this, _root) === this)
|
|
25354
25639
|
return true;
|
|
25355
|
-
if (((
|
|
25640
|
+
if (((_a3 = __privateGet(this, _parent)) == null ? void 0 : _a3.type) === "!")
|
|
25356
25641
|
return true;
|
|
25357
25642
|
if (!((_b = __privateGet(this, _parent)) == null ? void 0 : _b.isEnd()))
|
|
25358
25643
|
return false;
|
|
@@ -25368,16 +25653,16 @@ var _AST = class _AST {
|
|
|
25368
25653
|
this.push(part.clone(this));
|
|
25369
25654
|
}
|
|
25370
25655
|
clone(parent) {
|
|
25371
|
-
const c = new
|
|
25656
|
+
const c = new _a2(this.type, parent);
|
|
25372
25657
|
for (const p of __privateGet(this, _parts)) {
|
|
25373
25658
|
c.copyIn(p);
|
|
25374
25659
|
}
|
|
25375
25660
|
return c;
|
|
25376
25661
|
}
|
|
25377
25662
|
static fromGlob(pattern, options = {}) {
|
|
25378
|
-
var
|
|
25379
|
-
const ast = new
|
|
25380
|
-
__privateMethod(
|
|
25663
|
+
var _a3;
|
|
25664
|
+
const ast = new _a2(null, void 0, options);
|
|
25665
|
+
__privateMethod(_a3 = _a2, _AST_static, parseAST_fn).call(_a3, pattern, ast, 0, options, 0);
|
|
25381
25666
|
return ast;
|
|
25382
25667
|
}
|
|
25383
25668
|
// returns the regular expression if there's magic, or the unescaped
|
|
@@ -25470,15 +25755,17 @@ var _AST = class _AST {
|
|
|
25470
25755
|
// is ^(?!\.), we can just prepend (?!\.) to the pattern (either root
|
|
25471
25756
|
// or start or whatever) and prepend ^ or / at the Regexp construction.
|
|
25472
25757
|
toRegExpSource(allowDot) {
|
|
25473
|
-
var
|
|
25758
|
+
var _a3;
|
|
25474
25759
|
const dot = allowDot != null ? allowDot : !!__privateGet(this, _options).dot;
|
|
25475
|
-
if (__privateGet(this, _root) === this)
|
|
25760
|
+
if (__privateGet(this, _root) === this) {
|
|
25761
|
+
__privateMethod(this, _AST_instances, flatten_fn).call(this);
|
|
25476
25762
|
__privateMethod(this, _AST_instances, fillNegs_fn).call(this);
|
|
25477
|
-
|
|
25763
|
+
}
|
|
25764
|
+
if (!isExtglobAST(this)) {
|
|
25478
25765
|
const noEmpty = this.isStart() && this.isEnd();
|
|
25479
25766
|
const src = __privateGet(this, _parts).map((p) => {
|
|
25480
|
-
var
|
|
25481
|
-
const [re, _, hasMagic, uflag] = typeof p === "string" ? __privateMethod(
|
|
25767
|
+
var _a4;
|
|
25768
|
+
const [re, _, hasMagic, uflag] = typeof p === "string" ? __privateMethod(_a4 = _a2, _AST_static, parseGlob_fn).call(_a4, p, __privateGet(this, _hasMagic), noEmpty) : p.toRegExpSource(allowDot);
|
|
25482
25769
|
__privateSet(this, _hasMagic, __privateGet(this, _hasMagic) || hasMagic);
|
|
25483
25770
|
__privateSet(this, _uflag, __privateGet(this, _uflag) || uflag);
|
|
25484
25771
|
return re;
|
|
@@ -25501,7 +25788,7 @@ var _AST = class _AST {
|
|
|
25501
25788
|
}
|
|
25502
25789
|
}
|
|
25503
25790
|
let end = "";
|
|
25504
|
-
if (this.isEnd() && __privateGet(__privateGet(this, _root), _filledNegs) && ((
|
|
25791
|
+
if (this.isEnd() && __privateGet(__privateGet(this, _root), _filledNegs) && ((_a3 = __privateGet(this, _parent)) == null ? void 0 : _a3.type) === "!") {
|
|
25505
25792
|
end = "(?:$|\\/)";
|
|
25506
25793
|
}
|
|
25507
25794
|
const final2 = start2 + src + end;
|
|
@@ -25517,9 +25804,10 @@ var _AST = class _AST {
|
|
|
25517
25804
|
let body = __privateMethod(this, _AST_instances, partsToRegExp_fn).call(this, dot);
|
|
25518
25805
|
if (this.isStart() && this.isEnd() && !body && this.type !== "!") {
|
|
25519
25806
|
const s = this.toString();
|
|
25520
|
-
|
|
25521
|
-
|
|
25522
|
-
|
|
25807
|
+
const me = this;
|
|
25808
|
+
__privateSet(me, _parts, [s]);
|
|
25809
|
+
me.type = null;
|
|
25810
|
+
__privateSet(me, _hasMagic, void 0);
|
|
25523
25811
|
return [s, unescape(this.toString()), false, false];
|
|
25524
25812
|
}
|
|
25525
25813
|
let bodyDotAllowed = !repeated || allowDot || dot || !startNoDot ? "" : __privateMethod(this, _AST_instances, partsToRegExp_fn).call(this, true);
|
|
@@ -25588,8 +25876,9 @@ fillNegs_fn = function() {
|
|
|
25588
25876
|
return this;
|
|
25589
25877
|
};
|
|
25590
25878
|
_AST_static = new WeakSet();
|
|
25591
|
-
parseAST_fn = function(str, ast, pos, opt) {
|
|
25592
|
-
var
|
|
25879
|
+
parseAST_fn = function(str, ast, pos, opt, extDepth) {
|
|
25880
|
+
var _a3, _b, _c, _d, _e;
|
|
25881
|
+
const maxDepth = (_a3 = opt.maxExtglobRecursion) != null ? _a3 : 2;
|
|
25593
25882
|
let escaping = false;
|
|
25594
25883
|
let inBrace = false;
|
|
25595
25884
|
let braceStart = -1;
|
|
@@ -25621,11 +25910,12 @@ parseAST_fn = function(str, ast, pos, opt) {
|
|
|
25621
25910
|
acc2 += c;
|
|
25622
25911
|
continue;
|
|
25623
25912
|
}
|
|
25624
|
-
|
|
25913
|
+
const doRecurse = !opt.noext && isExtglobType(c) && str.charAt(i2) === "(" && extDepth <= maxDepth;
|
|
25914
|
+
if (doRecurse) {
|
|
25625
25915
|
ast.push(acc2);
|
|
25626
25916
|
acc2 = "";
|
|
25627
|
-
const ext2 = new
|
|
25628
|
-
i2 = __privateMethod(
|
|
25917
|
+
const ext2 = new _a2(c, ast);
|
|
25918
|
+
i2 = __privateMethod(_b = _a2, _AST_static, parseAST_fn).call(_b, str, ext2, i2, opt, extDepth + 1);
|
|
25629
25919
|
ast.push(ext2);
|
|
25630
25920
|
continue;
|
|
25631
25921
|
}
|
|
@@ -25635,7 +25925,7 @@ parseAST_fn = function(str, ast, pos, opt) {
|
|
|
25635
25925
|
return i2;
|
|
25636
25926
|
}
|
|
25637
25927
|
let i = pos + 1;
|
|
25638
|
-
let part = new
|
|
25928
|
+
let part = new _a2(null, ast);
|
|
25639
25929
|
const parts = [];
|
|
25640
25930
|
let acc = "";
|
|
25641
25931
|
while (i < str.length) {
|
|
@@ -25662,19 +25952,22 @@ parseAST_fn = function(str, ast, pos, opt) {
|
|
|
25662
25952
|
acc += c;
|
|
25663
25953
|
continue;
|
|
25664
25954
|
}
|
|
25665
|
-
|
|
25955
|
+
const doRecurse = isExtglobType(c) && str.charAt(i) === "(" && /* c8 ignore start - the maxDepth is sufficient here */
|
|
25956
|
+
(extDepth <= maxDepth || ast && __privateMethod(_c = ast, _AST_instances, canAdoptType_fn).call(_c, c));
|
|
25957
|
+
if (doRecurse) {
|
|
25958
|
+
const depthAdd = ast && __privateMethod(_d = ast, _AST_instances, canAdoptType_fn).call(_d, c) ? 0 : 1;
|
|
25666
25959
|
part.push(acc);
|
|
25667
25960
|
acc = "";
|
|
25668
|
-
const ext2 = new
|
|
25961
|
+
const ext2 = new _a2(c, part);
|
|
25669
25962
|
part.push(ext2);
|
|
25670
|
-
i = __privateMethod(
|
|
25963
|
+
i = __privateMethod(_e = _a2, _AST_static, parseAST_fn).call(_e, str, ext2, i, opt, extDepth + depthAdd);
|
|
25671
25964
|
continue;
|
|
25672
25965
|
}
|
|
25673
25966
|
if (c === "|") {
|
|
25674
25967
|
part.push(acc);
|
|
25675
25968
|
acc = "";
|
|
25676
25969
|
parts.push(part);
|
|
25677
|
-
part = new
|
|
25970
|
+
part = new _a2(null, ast);
|
|
25678
25971
|
continue;
|
|
25679
25972
|
}
|
|
25680
25973
|
if (c === ")") {
|
|
@@ -25693,6 +25986,100 @@ parseAST_fn = function(str, ast, pos, opt) {
|
|
|
25693
25986
|
__privateSet(ast, _parts, [str.substring(pos - 1)]);
|
|
25694
25987
|
return i;
|
|
25695
25988
|
};
|
|
25989
|
+
canAdoptWithSpace_fn = function(child) {
|
|
25990
|
+
return __privateMethod(this, _AST_instances, canAdopt_fn).call(this, child, adoptionWithSpaceMap);
|
|
25991
|
+
};
|
|
25992
|
+
canAdopt_fn = function(child, map2 = adoptionMap) {
|
|
25993
|
+
if (!child || typeof child !== "object" || child.type !== null || __privateGet(child, _parts).length !== 1 || this.type === null) {
|
|
25994
|
+
return false;
|
|
25995
|
+
}
|
|
25996
|
+
const gc = __privateGet(child, _parts)[0];
|
|
25997
|
+
if (!gc || typeof gc !== "object" || gc.type === null) {
|
|
25998
|
+
return false;
|
|
25999
|
+
}
|
|
26000
|
+
return __privateMethod(this, _AST_instances, canAdoptType_fn).call(this, gc.type, map2);
|
|
26001
|
+
};
|
|
26002
|
+
canAdoptType_fn = function(c, map2 = adoptionAnyMap) {
|
|
26003
|
+
var _a3;
|
|
26004
|
+
return !!((_a3 = map2.get(this.type)) == null ? void 0 : _a3.includes(c));
|
|
26005
|
+
};
|
|
26006
|
+
adoptWithSpace_fn = function(child, index) {
|
|
26007
|
+
const gc = __privateGet(child, _parts)[0];
|
|
26008
|
+
const blank = new _a2(null, gc, this.options);
|
|
26009
|
+
__privateGet(blank, _parts).push("");
|
|
26010
|
+
gc.push(blank);
|
|
26011
|
+
__privateMethod(this, _AST_instances, adopt_fn).call(this, child, index);
|
|
26012
|
+
};
|
|
26013
|
+
adopt_fn = function(child, index) {
|
|
26014
|
+
const gc = __privateGet(child, _parts)[0];
|
|
26015
|
+
__privateGet(this, _parts).splice(index, 1, ...__privateGet(gc, _parts));
|
|
26016
|
+
for (const p of __privateGet(gc, _parts)) {
|
|
26017
|
+
if (typeof p === "object")
|
|
26018
|
+
__privateSet(p, _parent, this);
|
|
26019
|
+
}
|
|
26020
|
+
__privateSet(this, _toString, void 0);
|
|
26021
|
+
};
|
|
26022
|
+
canUsurpType_fn = function(c) {
|
|
26023
|
+
const m = usurpMap.get(this.type);
|
|
26024
|
+
return !!(m == null ? void 0 : m.has(c));
|
|
26025
|
+
};
|
|
26026
|
+
canUsurp_fn = function(child) {
|
|
26027
|
+
if (!child || typeof child !== "object" || child.type !== null || __privateGet(child, _parts).length !== 1 || this.type === null || __privateGet(this, _parts).length !== 1) {
|
|
26028
|
+
return false;
|
|
26029
|
+
}
|
|
26030
|
+
const gc = __privateGet(child, _parts)[0];
|
|
26031
|
+
if (!gc || typeof gc !== "object" || gc.type === null) {
|
|
26032
|
+
return false;
|
|
26033
|
+
}
|
|
26034
|
+
return __privateMethod(this, _AST_instances, canUsurpType_fn).call(this, gc.type);
|
|
26035
|
+
};
|
|
26036
|
+
usurp_fn = function(child) {
|
|
26037
|
+
const m = usurpMap.get(this.type);
|
|
26038
|
+
const gc = __privateGet(child, _parts)[0];
|
|
26039
|
+
const nt = m == null ? void 0 : m.get(gc.type);
|
|
26040
|
+
if (!nt)
|
|
26041
|
+
return false;
|
|
26042
|
+
__privateSet(this, _parts, __privateGet(gc, _parts));
|
|
26043
|
+
for (const p of __privateGet(this, _parts)) {
|
|
26044
|
+
if (typeof p === "object")
|
|
26045
|
+
__privateSet(p, _parent, this);
|
|
26046
|
+
}
|
|
26047
|
+
this.type = nt;
|
|
26048
|
+
__privateSet(this, _toString, void 0);
|
|
26049
|
+
__privateSet(this, _emptyExt, false);
|
|
26050
|
+
};
|
|
26051
|
+
flatten_fn = function() {
|
|
26052
|
+
var _a3, _b;
|
|
26053
|
+
if (!isExtglobAST(this)) {
|
|
26054
|
+
for (const p of __privateGet(this, _parts)) {
|
|
26055
|
+
if (typeof p === "object")
|
|
26056
|
+
__privateMethod(_a3 = p, _AST_instances, flatten_fn).call(_a3);
|
|
26057
|
+
}
|
|
26058
|
+
} else {
|
|
26059
|
+
let iterations = 0;
|
|
26060
|
+
let done = false;
|
|
26061
|
+
do {
|
|
26062
|
+
done = true;
|
|
26063
|
+
for (let i = 0; i < __privateGet(this, _parts).length; i++) {
|
|
26064
|
+
const c = __privateGet(this, _parts)[i];
|
|
26065
|
+
if (typeof c === "object") {
|
|
26066
|
+
__privateMethod(_b = c, _AST_instances, flatten_fn).call(_b);
|
|
26067
|
+
if (__privateMethod(this, _AST_instances, canAdopt_fn).call(this, c)) {
|
|
26068
|
+
done = false;
|
|
26069
|
+
__privateMethod(this, _AST_instances, adopt_fn).call(this, c, i);
|
|
26070
|
+
} else if (__privateMethod(this, _AST_instances, canAdoptWithSpace_fn).call(this, c)) {
|
|
26071
|
+
done = false;
|
|
26072
|
+
__privateMethod(this, _AST_instances, adoptWithSpace_fn).call(this, c, i);
|
|
26073
|
+
} else if (__privateMethod(this, _AST_instances, canUsurp_fn).call(this, c)) {
|
|
26074
|
+
done = false;
|
|
26075
|
+
__privateMethod(this, _AST_instances, usurp_fn).call(this, c);
|
|
26076
|
+
}
|
|
26077
|
+
}
|
|
26078
|
+
}
|
|
26079
|
+
} while (!done && ++iterations < 10);
|
|
26080
|
+
}
|
|
26081
|
+
__privateSet(this, _toString, void 0);
|
|
26082
|
+
};
|
|
25696
26083
|
partsToRegExp_fn = function(dot) {
|
|
25697
26084
|
return __privateGet(this, _parts).map((p) => {
|
|
25698
26085
|
if (typeof p === "string") {
|
|
@@ -25707,11 +26094,13 @@ parseGlob_fn = function(glob, hasMagic, noEmpty = false) {
|
|
|
25707
26094
|
let escaping = false;
|
|
25708
26095
|
let re = "";
|
|
25709
26096
|
let uflag = false;
|
|
26097
|
+
let inStar = false;
|
|
25710
26098
|
for (let i = 0; i < glob.length; i++) {
|
|
25711
26099
|
const c = glob.charAt(i);
|
|
25712
26100
|
if (escaping) {
|
|
25713
26101
|
escaping = false;
|
|
25714
26102
|
re += (reSpecials.has(c) ? "\\" : "") + c;
|
|
26103
|
+
inStar = false;
|
|
25715
26104
|
continue;
|
|
25716
26105
|
}
|
|
25717
26106
|
if (c === "\\") {
|
|
@@ -25729,16 +26118,19 @@ parseGlob_fn = function(glob, hasMagic, noEmpty = false) {
|
|
|
25729
26118
|
uflag = uflag || needUflag;
|
|
25730
26119
|
i += consumed - 1;
|
|
25731
26120
|
hasMagic = hasMagic || magic;
|
|
26121
|
+
inStar = false;
|
|
25732
26122
|
continue;
|
|
25733
26123
|
}
|
|
25734
26124
|
}
|
|
25735
26125
|
if (c === "*") {
|
|
25736
|
-
if (
|
|
25737
|
-
|
|
25738
|
-
|
|
25739
|
-
|
|
26126
|
+
if (inStar)
|
|
26127
|
+
continue;
|
|
26128
|
+
inStar = true;
|
|
26129
|
+
re += noEmpty && /^[*]+$/.test(glob) ? starNoEmpty : star;
|
|
25740
26130
|
hasMagic = true;
|
|
25741
26131
|
continue;
|
|
26132
|
+
} else {
|
|
26133
|
+
inStar = false;
|
|
25742
26134
|
}
|
|
25743
26135
|
if (c === "?") {
|
|
25744
26136
|
re += qmark;
|
|
@@ -25749,8 +26141,8 @@ parseGlob_fn = function(glob, hasMagic, noEmpty = false) {
|
|
|
25749
26141
|
}
|
|
25750
26142
|
return [re, unescape(glob), !!hasMagic, uflag];
|
|
25751
26143
|
};
|
|
25752
|
-
__privateAdd(
|
|
25753
|
-
|
|
26144
|
+
__privateAdd(AST, _AST_static);
|
|
26145
|
+
_a2 = AST;
|
|
25754
26146
|
|
|
25755
26147
|
// node_modules/minimatch/dist/esm/escape.js
|
|
25756
26148
|
var escape = (s, { windowsPathsNoEscape = false } = {}) => {
|
|
@@ -25889,28 +26281,33 @@ var match = (list, pattern, options = {}) => {
|
|
|
25889
26281
|
minimatch.match = match;
|
|
25890
26282
|
var globMagic = /[?*]|[+@!]\(.*?\)|\[|\]/;
|
|
25891
26283
|
var regExpEscape2 = (s) => s.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&");
|
|
26284
|
+
var _Minimatch_instances, matchGlobstar_fn, matchGlobStarBodySections_fn, matchOne_fn;
|
|
25892
26285
|
var Minimatch = class {
|
|
25893
|
-
options;
|
|
25894
|
-
set;
|
|
25895
|
-
pattern;
|
|
25896
|
-
windowsPathsNoEscape;
|
|
25897
|
-
nonegate;
|
|
25898
|
-
negate;
|
|
25899
|
-
comment;
|
|
25900
|
-
empty;
|
|
25901
|
-
preserveMultipleSlashes;
|
|
25902
|
-
partial;
|
|
25903
|
-
globSet;
|
|
25904
|
-
globParts;
|
|
25905
|
-
nocase;
|
|
25906
|
-
isWindows;
|
|
25907
|
-
platform;
|
|
25908
|
-
windowsNoMagicRoot;
|
|
25909
|
-
regexp;
|
|
25910
26286
|
constructor(pattern, options = {}) {
|
|
26287
|
+
__privateAdd(this, _Minimatch_instances);
|
|
26288
|
+
__publicField(this, "options");
|
|
26289
|
+
__publicField(this, "set");
|
|
26290
|
+
__publicField(this, "pattern");
|
|
26291
|
+
__publicField(this, "windowsPathsNoEscape");
|
|
26292
|
+
__publicField(this, "nonegate");
|
|
26293
|
+
__publicField(this, "negate");
|
|
26294
|
+
__publicField(this, "comment");
|
|
26295
|
+
__publicField(this, "empty");
|
|
26296
|
+
__publicField(this, "preserveMultipleSlashes");
|
|
26297
|
+
__publicField(this, "partial");
|
|
26298
|
+
__publicField(this, "globSet");
|
|
26299
|
+
__publicField(this, "globParts");
|
|
26300
|
+
__publicField(this, "nocase");
|
|
26301
|
+
__publicField(this, "isWindows");
|
|
26302
|
+
__publicField(this, "platform");
|
|
26303
|
+
__publicField(this, "windowsNoMagicRoot");
|
|
26304
|
+
__publicField(this, "maxGlobstarRecursion");
|
|
26305
|
+
__publicField(this, "regexp");
|
|
26306
|
+
var _a3;
|
|
25911
26307
|
assertValidPattern(pattern);
|
|
25912
26308
|
options = options || {};
|
|
25913
26309
|
this.options = options;
|
|
26310
|
+
this.maxGlobstarRecursion = (_a3 = options.maxGlobstarRecursion) != null ? _a3 : 200;
|
|
25914
26311
|
this.pattern = pattern;
|
|
25915
26312
|
this.platform = options.platform || defaultPlatform;
|
|
25916
26313
|
this.isWindows = this.platform === "win32";
|
|
@@ -26178,10 +26575,11 @@ var Minimatch = class {
|
|
|
26178
26575
|
for (let i = 0; i < globParts.length - 1; i++) {
|
|
26179
26576
|
for (let j = i + 1; j < globParts.length; j++) {
|
|
26180
26577
|
const matched = this.partsMatch(globParts[i], globParts[j], !this.preserveMultipleSlashes);
|
|
26181
|
-
if (
|
|
26182
|
-
|
|
26183
|
-
|
|
26184
|
-
|
|
26578
|
+
if (matched) {
|
|
26579
|
+
globParts[i] = [];
|
|
26580
|
+
globParts[j] = matched;
|
|
26581
|
+
break;
|
|
26582
|
+
}
|
|
26185
26583
|
}
|
|
26186
26584
|
}
|
|
26187
26585
|
return globParts.filter((gs) => gs.length);
|
|
@@ -26242,7 +26640,8 @@ var Minimatch = class {
|
|
|
26242
26640
|
// out of pattern, then that's fine, as long as all
|
|
26243
26641
|
// the parts match.
|
|
26244
26642
|
matchOne(file, pattern, partial = false) {
|
|
26245
|
-
|
|
26643
|
+
let fileStartIndex = 0;
|
|
26644
|
+
let patternStartIndex = 0;
|
|
26246
26645
|
if (this.isWindows) {
|
|
26247
26646
|
const fileDrive = typeof file[0] === "string" && /^[a-z]:$/i.test(file[0]);
|
|
26248
26647
|
const fileUNC = !fileDrive && file[0] === "" && file[1] === "" && file[2] === "?" && /^[a-z]:$/i.test(file[3]);
|
|
@@ -26251,14 +26650,14 @@ var Minimatch = class {
|
|
|
26251
26650
|
const fdi = fileUNC ? 3 : fileDrive ? 0 : void 0;
|
|
26252
26651
|
const pdi = patternUNC ? 3 : patternDrive ? 0 : void 0;
|
|
26253
26652
|
if (typeof fdi === "number" && typeof pdi === "number") {
|
|
26254
|
-
const [fd, pd] = [
|
|
26653
|
+
const [fd, pd] = [
|
|
26654
|
+
file[fdi],
|
|
26655
|
+
pattern[pdi]
|
|
26656
|
+
];
|
|
26255
26657
|
if (fd.toLowerCase() === pd.toLowerCase()) {
|
|
26256
26658
|
pattern[pdi] = fd;
|
|
26257
|
-
|
|
26258
|
-
|
|
26259
|
-
} else if (fdi > pdi) {
|
|
26260
|
-
file = file.slice(fdi);
|
|
26261
|
-
}
|
|
26659
|
+
patternStartIndex = pdi;
|
|
26660
|
+
fileStartIndex = fdi;
|
|
26262
26661
|
}
|
|
26263
26662
|
}
|
|
26264
26663
|
}
|
|
@@ -26266,71 +26665,10 @@ var Minimatch = class {
|
|
|
26266
26665
|
if (optimizationLevel >= 2) {
|
|
26267
26666
|
file = this.levelTwoFileOptimize(file);
|
|
26268
26667
|
}
|
|
26269
|
-
|
|
26270
|
-
|
|
26271
|
-
for (var fi = 0, pi = 0, fl = file.length, pl = pattern.length; fi < fl && pi < pl; fi++, pi++) {
|
|
26272
|
-
this.debug("matchOne loop");
|
|
26273
|
-
var p = pattern[pi];
|
|
26274
|
-
var f = file[fi];
|
|
26275
|
-
this.debug(pattern, p, f);
|
|
26276
|
-
if (p === false) {
|
|
26277
|
-
return false;
|
|
26278
|
-
}
|
|
26279
|
-
if (p === GLOBSTAR) {
|
|
26280
|
-
this.debug("GLOBSTAR", [pattern, p, f]);
|
|
26281
|
-
var fr = fi;
|
|
26282
|
-
var pr = pi + 1;
|
|
26283
|
-
if (pr === pl) {
|
|
26284
|
-
this.debug("** at the end");
|
|
26285
|
-
for (; fi < fl; fi++) {
|
|
26286
|
-
if (file[fi] === "." || file[fi] === ".." || !options.dot && file[fi].charAt(0) === ".")
|
|
26287
|
-
return false;
|
|
26288
|
-
}
|
|
26289
|
-
return true;
|
|
26290
|
-
}
|
|
26291
|
-
while (fr < fl) {
|
|
26292
|
-
var swallowee = file[fr];
|
|
26293
|
-
this.debug("\nglobstar while", file, fr, pattern, pr, swallowee);
|
|
26294
|
-
if (this.matchOne(file.slice(fr), pattern.slice(pr), partial)) {
|
|
26295
|
-
this.debug("globstar found match!", fr, fl, swallowee);
|
|
26296
|
-
return true;
|
|
26297
|
-
} else {
|
|
26298
|
-
if (swallowee === "." || swallowee === ".." || !options.dot && swallowee.charAt(0) === ".") {
|
|
26299
|
-
this.debug("dot detected!", file, fr, pattern, pr);
|
|
26300
|
-
break;
|
|
26301
|
-
}
|
|
26302
|
-
this.debug("globstar swallow a segment, and continue");
|
|
26303
|
-
fr++;
|
|
26304
|
-
}
|
|
26305
|
-
}
|
|
26306
|
-
if (partial) {
|
|
26307
|
-
this.debug("\n>>> no match, partial?", file, fr, pattern, pr);
|
|
26308
|
-
if (fr === fl) {
|
|
26309
|
-
return true;
|
|
26310
|
-
}
|
|
26311
|
-
}
|
|
26312
|
-
return false;
|
|
26313
|
-
}
|
|
26314
|
-
let hit;
|
|
26315
|
-
if (typeof p === "string") {
|
|
26316
|
-
hit = f === p;
|
|
26317
|
-
this.debug("string match", p, f, hit);
|
|
26318
|
-
} else {
|
|
26319
|
-
hit = p.test(f);
|
|
26320
|
-
this.debug("pattern match", p, f, hit);
|
|
26321
|
-
}
|
|
26322
|
-
if (!hit)
|
|
26323
|
-
return false;
|
|
26324
|
-
}
|
|
26325
|
-
if (fi === fl && pi === pl) {
|
|
26326
|
-
return true;
|
|
26327
|
-
} else if (fi === fl) {
|
|
26328
|
-
return partial;
|
|
26329
|
-
} else if (pi === pl) {
|
|
26330
|
-
return fi === fl - 1 && file[fi] === "";
|
|
26331
|
-
} else {
|
|
26332
|
-
throw new Error("wtf?");
|
|
26668
|
+
if (pattern.includes(GLOBSTAR)) {
|
|
26669
|
+
return __privateMethod(this, _Minimatch_instances, matchGlobstar_fn).call(this, file, pattern, partial, fileStartIndex, patternStartIndex);
|
|
26333
26670
|
}
|
|
26671
|
+
return __privateMethod(this, _Minimatch_instances, matchOne_fn).call(this, file, pattern, partial, fileStartIndex, patternStartIndex);
|
|
26334
26672
|
}
|
|
26335
26673
|
braceExpand() {
|
|
26336
26674
|
return braceExpand(this.pattern, this.options);
|
|
@@ -26469,6 +26807,135 @@ var Minimatch = class {
|
|
|
26469
26807
|
return minimatch.defaults(def).Minimatch;
|
|
26470
26808
|
}
|
|
26471
26809
|
};
|
|
26810
|
+
_Minimatch_instances = new WeakSet();
|
|
26811
|
+
matchGlobstar_fn = function(file, pattern, partial, fileIndex, patternIndex) {
|
|
26812
|
+
const firstgs = pattern.indexOf(GLOBSTAR, patternIndex);
|
|
26813
|
+
const lastgs = pattern.lastIndexOf(GLOBSTAR);
|
|
26814
|
+
const [head, body, tail] = partial ? [
|
|
26815
|
+
pattern.slice(patternIndex, firstgs),
|
|
26816
|
+
pattern.slice(firstgs + 1),
|
|
26817
|
+
[]
|
|
26818
|
+
] : [
|
|
26819
|
+
pattern.slice(patternIndex, firstgs),
|
|
26820
|
+
pattern.slice(firstgs + 1, lastgs),
|
|
26821
|
+
pattern.slice(lastgs + 1)
|
|
26822
|
+
];
|
|
26823
|
+
if (head.length) {
|
|
26824
|
+
const fileHead = file.slice(fileIndex, fileIndex + head.length);
|
|
26825
|
+
if (!__privateMethod(this, _Minimatch_instances, matchOne_fn).call(this, fileHead, head, partial, 0, 0))
|
|
26826
|
+
return false;
|
|
26827
|
+
fileIndex += head.length;
|
|
26828
|
+
}
|
|
26829
|
+
let fileTailMatch = 0;
|
|
26830
|
+
if (tail.length) {
|
|
26831
|
+
if (tail.length + fileIndex > file.length)
|
|
26832
|
+
return false;
|
|
26833
|
+
let tailStart = file.length - tail.length;
|
|
26834
|
+
if (__privateMethod(this, _Minimatch_instances, matchOne_fn).call(this, file, tail, partial, tailStart, 0)) {
|
|
26835
|
+
fileTailMatch = tail.length;
|
|
26836
|
+
} else {
|
|
26837
|
+
if (file[file.length - 1] !== "" || fileIndex + tail.length === file.length) {
|
|
26838
|
+
return false;
|
|
26839
|
+
}
|
|
26840
|
+
tailStart--;
|
|
26841
|
+
if (!__privateMethod(this, _Minimatch_instances, matchOne_fn).call(this, file, tail, partial, tailStart, 0))
|
|
26842
|
+
return false;
|
|
26843
|
+
fileTailMatch = tail.length + 1;
|
|
26844
|
+
}
|
|
26845
|
+
}
|
|
26846
|
+
if (!body.length) {
|
|
26847
|
+
let sawSome = !!fileTailMatch;
|
|
26848
|
+
for (let i2 = fileIndex; i2 < file.length - fileTailMatch; i2++) {
|
|
26849
|
+
const f = String(file[i2]);
|
|
26850
|
+
sawSome = true;
|
|
26851
|
+
if (f === "." || f === ".." || !this.options.dot && f.startsWith(".")) {
|
|
26852
|
+
return false;
|
|
26853
|
+
}
|
|
26854
|
+
}
|
|
26855
|
+
return partial || sawSome;
|
|
26856
|
+
}
|
|
26857
|
+
const bodySegments = [[[], 0]];
|
|
26858
|
+
let currentBody = bodySegments[0];
|
|
26859
|
+
let nonGsParts = 0;
|
|
26860
|
+
const nonGsPartsSums = [0];
|
|
26861
|
+
for (const b of body) {
|
|
26862
|
+
if (b === GLOBSTAR) {
|
|
26863
|
+
nonGsPartsSums.push(nonGsParts);
|
|
26864
|
+
currentBody = [[], 0];
|
|
26865
|
+
bodySegments.push(currentBody);
|
|
26866
|
+
} else {
|
|
26867
|
+
currentBody[0].push(b);
|
|
26868
|
+
nonGsParts++;
|
|
26869
|
+
}
|
|
26870
|
+
}
|
|
26871
|
+
let i = bodySegments.length - 1;
|
|
26872
|
+
const fileLength = file.length - fileTailMatch;
|
|
26873
|
+
for (const b of bodySegments) {
|
|
26874
|
+
b[1] = fileLength - (nonGsPartsSums[i--] + b[0].length);
|
|
26875
|
+
}
|
|
26876
|
+
return !!__privateMethod(this, _Minimatch_instances, matchGlobStarBodySections_fn).call(this, file, bodySegments, fileIndex, 0, partial, 0, !!fileTailMatch);
|
|
26877
|
+
};
|
|
26878
|
+
matchGlobStarBodySections_fn = function(file, bodySegments, fileIndex, bodyIndex, partial, globStarDepth, sawTail) {
|
|
26879
|
+
const bs = bodySegments[bodyIndex];
|
|
26880
|
+
if (!bs) {
|
|
26881
|
+
for (let i = fileIndex; i < file.length; i++) {
|
|
26882
|
+
sawTail = true;
|
|
26883
|
+
const f = file[i];
|
|
26884
|
+
if (f === "." || f === ".." || !this.options.dot && f.startsWith(".")) {
|
|
26885
|
+
return false;
|
|
26886
|
+
}
|
|
26887
|
+
}
|
|
26888
|
+
return sawTail;
|
|
26889
|
+
}
|
|
26890
|
+
const [body, after] = bs;
|
|
26891
|
+
while (fileIndex <= after) {
|
|
26892
|
+
const m = __privateMethod(this, _Minimatch_instances, matchOne_fn).call(this, file.slice(0, fileIndex + body.length), body, partial, fileIndex, 0);
|
|
26893
|
+
if (m && globStarDepth < this.maxGlobstarRecursion) {
|
|
26894
|
+
const sub = __privateMethod(this, _Minimatch_instances, matchGlobStarBodySections_fn).call(this, file, bodySegments, fileIndex + body.length, bodyIndex + 1, partial, globStarDepth + 1, sawTail);
|
|
26895
|
+
if (sub !== false)
|
|
26896
|
+
return sub;
|
|
26897
|
+
}
|
|
26898
|
+
const f = file[fileIndex];
|
|
26899
|
+
if (f === "." || f === ".." || !this.options.dot && f.startsWith(".")) {
|
|
26900
|
+
return false;
|
|
26901
|
+
}
|
|
26902
|
+
fileIndex++;
|
|
26903
|
+
}
|
|
26904
|
+
return partial || null;
|
|
26905
|
+
};
|
|
26906
|
+
matchOne_fn = function(file, pattern, partial, fileIndex, patternIndex) {
|
|
26907
|
+
let fi;
|
|
26908
|
+
let pi;
|
|
26909
|
+
let pl;
|
|
26910
|
+
let fl;
|
|
26911
|
+
for (fi = fileIndex, pi = patternIndex, fl = file.length, pl = pattern.length; fi < fl && pi < pl; fi++, pi++) {
|
|
26912
|
+
this.debug("matchOne loop");
|
|
26913
|
+
let p = pattern[pi];
|
|
26914
|
+
let f = file[fi];
|
|
26915
|
+
this.debug(pattern, p, f);
|
|
26916
|
+
if (p === false || p === GLOBSTAR)
|
|
26917
|
+
return false;
|
|
26918
|
+
let hit;
|
|
26919
|
+
if (typeof p === "string") {
|
|
26920
|
+
hit = f === p;
|
|
26921
|
+
this.debug("string match", p, f, hit);
|
|
26922
|
+
} else {
|
|
26923
|
+
hit = p.test(f);
|
|
26924
|
+
this.debug("pattern match", p, f, hit);
|
|
26925
|
+
}
|
|
26926
|
+
if (!hit)
|
|
26927
|
+
return false;
|
|
26928
|
+
}
|
|
26929
|
+
if (fi === fl && pi === pl) {
|
|
26930
|
+
return true;
|
|
26931
|
+
} else if (fi === fl) {
|
|
26932
|
+
return partial;
|
|
26933
|
+
} else if (pi === pl) {
|
|
26934
|
+
return fi === fl - 1 && file[fi] === "";
|
|
26935
|
+
} else {
|
|
26936
|
+
throw new Error("wtf?");
|
|
26937
|
+
}
|
|
26938
|
+
};
|
|
26472
26939
|
minimatch.AST = AST;
|
|
26473
26940
|
minimatch.Minimatch = Minimatch;
|
|
26474
26941
|
minimatch.escape = escape;
|
|
@@ -26539,7 +27006,7 @@ var isJsFile = lowerPathParam((p) => p.endsWith(".js") || p.endsWith(".mjs") ||
|
|
|
26539
27006
|
|
|
26540
27007
|
// src/compiler/html/canonical-link.ts
|
|
26541
27008
|
var updateCanonicalLink = (doc, href) => {
|
|
26542
|
-
var
|
|
27009
|
+
var _a3;
|
|
26543
27010
|
let canonicalLinkElm = doc.head.querySelector('link[rel="canonical"]');
|
|
26544
27011
|
if (typeof href === "string") {
|
|
26545
27012
|
if (canonicalLinkElm == null) {
|
|
@@ -26552,7 +27019,7 @@ var updateCanonicalLink = (doc, href) => {
|
|
|
26552
27019
|
if (canonicalLinkElm != null) {
|
|
26553
27020
|
const existingHref = canonicalLinkElm.getAttribute("href");
|
|
26554
27021
|
if (!existingHref) {
|
|
26555
|
-
(
|
|
27022
|
+
(_a3 = canonicalLinkElm.parentNode) == null ? void 0 : _a3.removeChild(canonicalLinkElm);
|
|
26556
27023
|
}
|
|
26557
27024
|
}
|
|
26558
27025
|
}
|
|
@@ -27064,7 +27531,7 @@ var serializeCss = (stylesheet, serializeOpts) => {
|
|
|
27064
27531
|
return out.join("");
|
|
27065
27532
|
};
|
|
27066
27533
|
var serializeCssVisitNode = (opts, node, index, len) => {
|
|
27067
|
-
var
|
|
27534
|
+
var _a3;
|
|
27068
27535
|
const nodeType = node.type;
|
|
27069
27536
|
if (nodeType === 4 /* Declaration */) {
|
|
27070
27537
|
return serializeCssDeclaration(node, index, len);
|
|
@@ -27073,7 +27540,7 @@ var serializeCssVisitNode = (opts, node, index, len) => {
|
|
|
27073
27540
|
return serializeCssRule(opts, node);
|
|
27074
27541
|
}
|
|
27075
27542
|
if (nodeType === 1 /* Comment */) {
|
|
27076
|
-
if (((
|
|
27543
|
+
if (((_a3 = node.comment) == null ? void 0 : _a3[0]) === "!") {
|
|
27077
27544
|
return `/*${node.comment}*/`;
|
|
27078
27545
|
} else {
|
|
27079
27546
|
return "";
|
|
@@ -27121,10 +27588,10 @@ var serializeCssVisitNode = (opts, node, index, len) => {
|
|
|
27121
27588
|
return "";
|
|
27122
27589
|
};
|
|
27123
27590
|
var serializeCssRule = (opts, node) => {
|
|
27124
|
-
var
|
|
27591
|
+
var _a3, _b;
|
|
27125
27592
|
const decls = node.declarations;
|
|
27126
27593
|
const usedSelectors = opts.usedSelectors;
|
|
27127
|
-
const selectors = (_b = (
|
|
27594
|
+
const selectors = (_b = (_a3 = node.selectors) == null ? void 0 : _a3.slice()) != null ? _b : [];
|
|
27128
27595
|
const hasDecls = decls != null && decls.length > 0;
|
|
27129
27596
|
const hasNestedRules = node.rules != null && node.rules.length > 0;
|
|
27130
27597
|
if (!hasDecls && !hasNestedRules) {
|
|
@@ -27228,8 +27695,8 @@ var serializeCssKeyframes = (opts, node) => {
|
|
|
27228
27695
|
return "@" + (node.vendor || "") + "keyframes " + node.name + "{" + keyframesCss + "}";
|
|
27229
27696
|
};
|
|
27230
27697
|
var serializeCssKeyframe = (opts, node) => {
|
|
27231
|
-
var
|
|
27232
|
-
return ((_b = (
|
|
27698
|
+
var _a3, _b;
|
|
27699
|
+
return ((_b = (_a3 = node.values) == null ? void 0 : _a3.join(",")) != null ? _b : "") + "{" + serializeCssMapVisit(opts, node.declarations) + "}";
|
|
27233
27700
|
};
|
|
27234
27701
|
var serializeCssFontFace = (opts, node) => {
|
|
27235
27702
|
const fontCss = serializeCssMapVisit(opts, node.declarations);
|
|
@@ -27253,8 +27720,8 @@ var serializeCssContainer = (opts, node) => {
|
|
|
27253
27720
|
return "@container " + removeMediaWhitespace(node.media) + "{" + containerCss + "}";
|
|
27254
27721
|
};
|
|
27255
27722
|
var serializeCssPage = (opts, node) => {
|
|
27256
|
-
var
|
|
27257
|
-
const sel = (_b = (
|
|
27723
|
+
var _a3, _b;
|
|
27724
|
+
const sel = (_b = (_a3 = node.selectors) == null ? void 0 : _a3.join(", ")) != null ? _b : "";
|
|
27258
27725
|
return "@page " + sel + "{" + serializeCssMapVisit(opts, node.declarations) + "}";
|
|
27259
27726
|
};
|
|
27260
27727
|
var serializeCssDocument = (opts, node) => {
|
|
@@ -27301,10 +27768,10 @@ var removeSelectorWhitespace = (selector) => {
|
|
|
27301
27768
|
return rtn;
|
|
27302
27769
|
};
|
|
27303
27770
|
var removeMediaWhitespace = (media) => {
|
|
27304
|
-
var
|
|
27771
|
+
var _a3;
|
|
27305
27772
|
let rtn = "";
|
|
27306
27773
|
let char = "";
|
|
27307
|
-
media = (
|
|
27774
|
+
media = (_a3 = media == null ? void 0 : media.trim()) != null ? _a3 : "";
|
|
27308
27775
|
for (let i = 0, l = media.length; i < l; i++) {
|
|
27309
27776
|
char = media[i];
|
|
27310
27777
|
if (CSS_WS_REG.test(char)) {
|