@maggioli-design-system/mds-progress 3.0.2 → 3.2.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/{index-abfa4aa9.js → index-e0686900.js} +130 -91
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/mds-progress.cjs.entry.js +2 -2
- package/dist/cjs/mds-progress.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/common/floating-controller.js +3 -3
- package/dist/collection/common/slot.js +10 -1
- package/dist/collection/common/string.js +30 -0
- package/dist/collection/components/mds-progress/mds-progress.css +173 -74
- package/dist/collection/dictionary/keyboard.js +84 -0
- package/dist/collection/type/keyboard.js +1 -0
- package/dist/components/mds-progress.js +1 -1
- package/dist/documentation.json +2 -2
- package/dist/esm/{index-a89959e6.js → index-bdcbc2fe.js} +130 -91
- package/dist/esm/loader.js +2 -2
- package/dist/esm/mds-progress.entry.js +2 -2
- package/dist/esm/mds-progress.js +3 -3
- package/dist/esm-es5/index-bdcbc2fe.js +1 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/mds-progress.entry.js +1 -1
- package/dist/esm-es5/mds-progress.js +1 -1
- package/dist/mds-progress/mds-progress.esm.js +1 -1
- package/dist/mds-progress/mds-progress.js +1 -1
- package/dist/mds-progress/p-1d5b5b51.system.js +1 -0
- package/dist/mds-progress/p-69cd397a.entry.js +1 -0
- package/dist/mds-progress/p-8c9db3a8.system.js +2 -0
- package/dist/mds-progress/p-cd904a06.system.entry.js +1 -0
- package/dist/mds-progress/p-e65c1ecc.js +2 -0
- package/dist/stats.json +38 -33
- package/dist/types/common/slot.d.ts +2 -1
- package/dist/types/common/string.d.ts +4 -0
- package/dist/types/dictionary/keyboard.d.ts +2 -0
- package/dist/types/type/keyboard.d.ts +12 -0
- package/documentation.json +22 -2
- package/package.json +3 -3
- package/src/common/floating-controller.ts +6 -6
- package/src/common/slot.ts +11 -0
- package/src/common/string.ts +42 -0
- package/src/components/mds-progress/css/mds-progress-pref-animation.css +7 -14
- package/src/components/mds-progress/css/mds-progress-pref-contrast.css +8 -18
- package/src/components/mds-progress/css/mds-progress-pref-theme.css +32 -48
- package/src/components/mds-progress/css/mds-progress-variant.css +7 -16
- package/src/components/mds-progress/mds-progress.css +3 -3
- package/src/dictionary/keyboard.ts +87 -0
- package/src/fixtures/icons.json +18 -1
- package/src/meta/keyboard/keys.json +83 -0
- package/src/tailwind/components.css +11 -46
- package/src/tailwind/fouc.css +118 -0
- package/src/tailwind/index.css +4 -0
- package/src/type/keyboard.ts +93 -0
- package/www/build/mds-progress.esm.js +1 -1
- package/www/build/mds-progress.js +1 -1
- package/www/build/p-1d5b5b51.system.js +1 -0
- package/www/build/p-69cd397a.entry.js +1 -0
- package/www/build/p-8c9db3a8.system.js +2 -0
- package/www/build/p-cd904a06.system.entry.js +1 -0
- package/www/build/p-e65c1ecc.js +2 -0
- package/dist/esm-es5/index-a89959e6.js +0 -1
- package/dist/mds-progress/p-088b5b20.system.entry.js +0 -1
- package/dist/mds-progress/p-2b265ffa.system.js +0 -1
- package/dist/mds-progress/p-64876922.system.js +0 -2
- package/dist/mds-progress/p-8a9536f1.js +0 -2
- package/dist/mds-progress/p-d8baed2c.entry.js +0 -1
- package/www/build/p-088b5b20.system.entry.js +0 -1
- package/www/build/p-2b265ffa.system.js +0 -1
- package/www/build/p-64876922.system.js +0 -2
- package/www/build/p-8a9536f1.js +0 -2
- package/www/build/p-d8baed2c.entry.js +0 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
const NAMESPACE = 'mds-progress';
|
|
2
|
-
const BUILD = /* mds-progress */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false,
|
|
2
|
+
const BUILD = /* mds-progress */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, constructableCSS: true, cssAnnotations: true, devTools: false, element: false, event: false, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: false, hostListenerTarget: false, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: false, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: true, hydratedClass: false, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: false, mode: false, modernPropertyDecls: false, observeAttribute: true, profile: false, prop: true, propBoolean: false, propMutable: false, propNumber: true, propString: true, reflect: true, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: false, slotChildNodesFix: false, slotRelocation: false, state: true, style: true, svg: false, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: false, vdomKey: true, vdomListener: false, vdomPropOrAttr: true, vdomRef: false, vdomRender: true, vdomStyle: true, vdomText: false, vdomXlink: false, watchCallback: true };
|
|
3
3
|
|
|
4
4
|
/*
|
|
5
|
-
Stencil Client Platform v4.
|
|
5
|
+
Stencil Client Platform v4.27.2 | MIT Licensed | https://stenciljs.com
|
|
6
6
|
*/
|
|
7
7
|
var __defProp = Object.defineProperty;
|
|
8
8
|
var __export = (target, all) => {
|
|
@@ -11,10 +11,15 @@ var __export = (target, all) => {
|
|
|
11
11
|
};
|
|
12
12
|
|
|
13
13
|
// src/client/client-host-ref.ts
|
|
14
|
-
var
|
|
15
|
-
|
|
14
|
+
var getHostRef = (ref) => {
|
|
15
|
+
if (ref.__stencil__getHostRef) {
|
|
16
|
+
return ref.__stencil__getHostRef();
|
|
17
|
+
}
|
|
18
|
+
return void 0;
|
|
19
|
+
};
|
|
16
20
|
var registerInstance = (lazyInstance, hostRef) => {
|
|
17
|
-
|
|
21
|
+
lazyInstance.__stencil__getHostRef = () => hostRef;
|
|
22
|
+
hostRef.$lazyInstance$ = lazyInstance;
|
|
18
23
|
};
|
|
19
24
|
var registerHost = (hostElement, cmpMeta) => {
|
|
20
25
|
const hostRef = {
|
|
@@ -28,7 +33,8 @@ var registerHost = (hostElement, cmpMeta) => {
|
|
|
28
33
|
hostElement["s-p"] = [];
|
|
29
34
|
hostElement["s-rc"] = [];
|
|
30
35
|
}
|
|
31
|
-
const ref =
|
|
36
|
+
const ref = hostRef;
|
|
37
|
+
hostElement.__stencil__getHostRef = () => ref;
|
|
32
38
|
return ref;
|
|
33
39
|
};
|
|
34
40
|
var isMemberInElement = (elm, memberName) => memberName in elm;
|
|
@@ -85,7 +91,6 @@ var HYDRATED_STYLE_ID = "sty-id";
|
|
|
85
91
|
var HYDRATED_CSS = "{visibility:hidden}[hydrated]{visibility:inherit}";
|
|
86
92
|
var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
|
|
87
93
|
var win = typeof window !== "undefined" ? window : {};
|
|
88
|
-
var doc = win.document || { head: {} };
|
|
89
94
|
var plt = {
|
|
90
95
|
$flags$: 0,
|
|
91
96
|
$resourcesUrl$: "",
|
|
@@ -145,9 +150,9 @@ var isComplexType = (o) => {
|
|
|
145
150
|
};
|
|
146
151
|
|
|
147
152
|
// src/utils/query-nonce-meta-tag-content.ts
|
|
148
|
-
function queryNonceMetaTagContent(
|
|
153
|
+
function queryNonceMetaTagContent(doc) {
|
|
149
154
|
var _a, _b, _c;
|
|
150
|
-
return (_c = (_b = (_a =
|
|
155
|
+
return (_c = (_b = (_a = doc.head) == null ? void 0 : _a.querySelector('meta[name="csp-nonce"]')) == null ? void 0 : _b.getAttribute("content")) != null ? _c : void 0;
|
|
151
156
|
}
|
|
152
157
|
|
|
153
158
|
// src/utils/result.ts
|
|
@@ -313,7 +318,10 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
313
318
|
var _a;
|
|
314
319
|
const scopeId2 = getScopeId(cmpMeta);
|
|
315
320
|
const style = styles.get(scopeId2);
|
|
316
|
-
|
|
321
|
+
if (!win.document) {
|
|
322
|
+
return scopeId2;
|
|
323
|
+
}
|
|
324
|
+
styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : win.document;
|
|
317
325
|
if (style) {
|
|
318
326
|
if (typeof style === "string") {
|
|
319
327
|
styleContainerNode = styleContainerNode.head || styleContainerNode;
|
|
@@ -324,9 +332,9 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
324
332
|
}
|
|
325
333
|
if (!appliedStyles.has(scopeId2)) {
|
|
326
334
|
{
|
|
327
|
-
styleElm = document.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`) ||
|
|
335
|
+
styleElm = document.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`) || win.document.createElement("style");
|
|
328
336
|
styleElm.innerHTML = style;
|
|
329
|
-
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(
|
|
337
|
+
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(win.document);
|
|
330
338
|
if (nonce != null) {
|
|
331
339
|
styleElm.setAttribute("nonce", nonce);
|
|
332
340
|
}
|
|
@@ -355,7 +363,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
355
363
|
styleContainerNode.append(styleElm);
|
|
356
364
|
}
|
|
357
365
|
}
|
|
358
|
-
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */
|
|
366
|
+
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
|
|
359
367
|
styleContainerNode.insertBefore(styleElm, null);
|
|
360
368
|
}
|
|
361
369
|
}
|
|
@@ -380,7 +388,7 @@ var attachStyles = (hostRef) => {
|
|
|
380
388
|
const scopeId2 = addStyle(
|
|
381
389
|
elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
|
|
382
390
|
cmpMeta);
|
|
383
|
-
if (flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */) {
|
|
391
|
+
if ((flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */ || flags & 128 /* shadowNeedsScopedCss */)) {
|
|
384
392
|
elm["s-sc"] = scopeId2;
|
|
385
393
|
elm.classList.add(scopeId2 + "-h");
|
|
386
394
|
}
|
|
@@ -388,71 +396,72 @@ var attachStyles = (hostRef) => {
|
|
|
388
396
|
};
|
|
389
397
|
var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
|
|
390
398
|
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
|
|
391
|
-
if (oldValue
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
} else {
|
|
409
|
-
elm.style[prop] = "";
|
|
410
|
-
}
|
|
411
|
-
}
|
|
412
|
-
}
|
|
413
|
-
}
|
|
414
|
-
for (const prop in newValue) {
|
|
415
|
-
if (!oldValue || newValue[prop] !== oldValue[prop]) {
|
|
399
|
+
if (oldValue === newValue) {
|
|
400
|
+
return;
|
|
401
|
+
}
|
|
402
|
+
let isProp = isMemberInElement(elm, memberName);
|
|
403
|
+
memberName.toLowerCase();
|
|
404
|
+
if (memberName === "class") {
|
|
405
|
+
const classList = elm.classList;
|
|
406
|
+
const oldClasses = parseClassList(oldValue);
|
|
407
|
+
let newClasses = parseClassList(newValue);
|
|
408
|
+
{
|
|
409
|
+
classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
|
|
410
|
+
classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
|
|
411
|
+
}
|
|
412
|
+
} else if (memberName === "style") {
|
|
413
|
+
{
|
|
414
|
+
for (const prop in oldValue) {
|
|
415
|
+
if (!newValue || newValue[prop] == null) {
|
|
416
416
|
if (prop.includes("-")) {
|
|
417
|
-
elm.style.
|
|
417
|
+
elm.style.removeProperty(prop);
|
|
418
418
|
} else {
|
|
419
|
-
elm.style[prop] =
|
|
419
|
+
elm.style[prop] = "";
|
|
420
420
|
}
|
|
421
421
|
}
|
|
422
422
|
}
|
|
423
|
-
}
|
|
424
|
-
|
|
425
|
-
if (
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
isProp = false;
|
|
431
|
-
} else if (oldValue == null || elm[memberName] != n) {
|
|
432
|
-
if (typeof elm.__lookupSetter__(memberName) === "function") {
|
|
433
|
-
elm[memberName] = n;
|
|
434
|
-
} else {
|
|
435
|
-
elm.setAttribute(memberName, n);
|
|
436
|
-
}
|
|
437
|
-
}
|
|
438
|
-
} else if (elm[memberName] !== newValue) {
|
|
439
|
-
elm[memberName] = newValue;
|
|
440
|
-
}
|
|
441
|
-
} catch (e) {
|
|
423
|
+
}
|
|
424
|
+
for (const prop in newValue) {
|
|
425
|
+
if (!oldValue || newValue[prop] !== oldValue[prop]) {
|
|
426
|
+
if (prop.includes("-")) {
|
|
427
|
+
elm.style.setProperty(prop, newValue[prop]);
|
|
428
|
+
} else {
|
|
429
|
+
elm.style[prop] = newValue[prop];
|
|
442
430
|
}
|
|
443
431
|
}
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
432
|
+
}
|
|
433
|
+
} else if (memberName === "key") ; else {
|
|
434
|
+
const isComplex = isComplexType(newValue);
|
|
435
|
+
if ((isProp || isComplex && newValue !== null) && !isSvg) {
|
|
436
|
+
try {
|
|
437
|
+
if (!elm.tagName.includes("-")) {
|
|
438
|
+
const n = newValue == null ? "" : newValue;
|
|
439
|
+
if (memberName === "list") {
|
|
440
|
+
isProp = false;
|
|
441
|
+
} else if (oldValue == null || elm[memberName] != n) {
|
|
442
|
+
if (typeof elm.__lookupSetter__(memberName) === "function") {
|
|
443
|
+
elm[memberName] = n;
|
|
444
|
+
} else {
|
|
445
|
+
elm.setAttribute(memberName, n);
|
|
446
|
+
}
|
|
448
447
|
}
|
|
448
|
+
} else if (elm[memberName] !== newValue) {
|
|
449
|
+
elm[memberName] = newValue;
|
|
449
450
|
}
|
|
450
|
-
}
|
|
451
|
-
|
|
451
|
+
} catch (e) {
|
|
452
|
+
}
|
|
453
|
+
}
|
|
454
|
+
if (newValue == null || newValue === false) {
|
|
455
|
+
if (newValue !== false || elm.getAttribute(memberName) === "") {
|
|
452
456
|
{
|
|
453
|
-
elm.
|
|
457
|
+
elm.removeAttribute(memberName);
|
|
454
458
|
}
|
|
455
459
|
}
|
|
460
|
+
} else if ((!isProp || flags & 4 /* isHost */ || isSvg) && !isComplex && elm.nodeType === 1 /* ElementNode */) {
|
|
461
|
+
newValue = newValue === true ? "" : newValue;
|
|
462
|
+
{
|
|
463
|
+
elm.setAttribute(memberName, newValue);
|
|
464
|
+
}
|
|
456
465
|
}
|
|
457
466
|
}
|
|
458
467
|
};
|
|
@@ -513,7 +522,12 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
|
513
522
|
let elm;
|
|
514
523
|
let childNode;
|
|
515
524
|
{
|
|
516
|
-
|
|
525
|
+
if (!win.document) {
|
|
526
|
+
throw new Error(
|
|
527
|
+
"You are trying to render a Stencil component in an environment that doesn't support the DOM. Make sure to populate the [`window`](https://developer.mozilla.org/en-US/docs/Web/API/Window/window) object before rendering a component."
|
|
528
|
+
);
|
|
529
|
+
}
|
|
530
|
+
elm = newVNode2.$elm$ = win.document.createElement(
|
|
517
531
|
!useNativeShadowDom && BUILD.slotRelocation && newVNode2.$flags$ & 2 /* isSlotFallback */ ? "slot-fb" : newVNode2.$tag$
|
|
518
532
|
);
|
|
519
533
|
{
|
|
@@ -660,9 +674,7 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
|
|
|
660
674
|
const newChildren = newVNode2.$children$;
|
|
661
675
|
{
|
|
662
676
|
{
|
|
663
|
-
|
|
664
|
-
updateElement(oldVNode, newVNode2, isSvgMode);
|
|
665
|
-
}
|
|
677
|
+
updateElement(oldVNode, newVNode2, isSvgMode);
|
|
666
678
|
}
|
|
667
679
|
if (oldChildren !== null && newChildren !== null) {
|
|
668
680
|
updateChildren(elm, oldChildren, newVNode2, newChildren, isInitialRender);
|
|
@@ -704,7 +716,7 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
704
716
|
rootVnode.$flags$ |= 4 /* isHost */;
|
|
705
717
|
hostRef.$vnode$ = rootVnode;
|
|
706
718
|
rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
|
|
707
|
-
useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)
|
|
719
|
+
useNativeShadowDom = !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) && !(cmpMeta.$flags$ & 128 /* shadowNeedsScopedCss */);
|
|
708
720
|
patch(oldVNode, rootVnode, isInitialLoad);
|
|
709
721
|
};
|
|
710
722
|
|
|
@@ -744,10 +756,11 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
|
|
|
744
756
|
}
|
|
745
757
|
let maybePromise;
|
|
746
758
|
if (isInitialLoad) {
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
759
|
+
maybePromise = safeCall(instance, "componentWillLoad", void 0, elm);
|
|
760
|
+
} else {
|
|
761
|
+
maybePromise = safeCall(instance, "componentWillUpdate", void 0, elm);
|
|
750
762
|
}
|
|
763
|
+
maybePromise = enqueue(maybePromise, () => safeCall(instance, "componentWillRender", void 0, elm));
|
|
751
764
|
endSchedule();
|
|
752
765
|
return enqueue(maybePromise, () => updateComponent(hostRef, instance, isInitialLoad));
|
|
753
766
|
};
|
|
@@ -813,14 +826,13 @@ var postUpdateComponent = (hostRef) => {
|
|
|
813
826
|
const endPostUpdate = createTime("postUpdate", tagName);
|
|
814
827
|
const instance = hostRef.$lazyInstance$ ;
|
|
815
828
|
const ancestorComponent = hostRef.$ancestorComponent$;
|
|
829
|
+
safeCall(instance, "componentDidRender", void 0, elm);
|
|
816
830
|
if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
|
|
817
831
|
hostRef.$flags$ |= 64 /* hasLoadedComponent */;
|
|
818
832
|
{
|
|
819
833
|
addHydratedFlag(elm);
|
|
820
834
|
}
|
|
821
|
-
|
|
822
|
-
safeCall(instance, "componentDidLoad", void 0, elm);
|
|
823
|
-
}
|
|
835
|
+
safeCall(instance, "componentDidLoad", void 0, elm);
|
|
824
836
|
endPostUpdate();
|
|
825
837
|
{
|
|
826
838
|
hostRef.$onReadyResolve$(elm);
|
|
@@ -829,6 +841,7 @@ var postUpdateComponent = (hostRef) => {
|
|
|
829
841
|
}
|
|
830
842
|
}
|
|
831
843
|
} else {
|
|
844
|
+
safeCall(instance, "componentDidUpdate", void 0, elm);
|
|
832
845
|
endPostUpdate();
|
|
833
846
|
}
|
|
834
847
|
{
|
|
@@ -843,9 +856,6 @@ var postUpdateComponent = (hostRef) => {
|
|
|
843
856
|
}
|
|
844
857
|
};
|
|
845
858
|
var appDidLoad = (who) => {
|
|
846
|
-
{
|
|
847
|
-
addHydratedFlag(doc.documentElement);
|
|
848
|
-
}
|
|
849
859
|
nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
|
|
850
860
|
};
|
|
851
861
|
var safeCall = (instance, method, arg, elm) => {
|
|
@@ -869,7 +879,7 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
|
|
|
869
879
|
const hostRef = getHostRef(ref);
|
|
870
880
|
if (!hostRef) {
|
|
871
881
|
throw new Error(
|
|
872
|
-
`Couldn't find host element for "${cmpMeta.$tagName$}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/
|
|
882
|
+
`Couldn't find host element for "${cmpMeta.$tagName$}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/stenciljs/core/issues/5457).`
|
|
873
883
|
);
|
|
874
884
|
}
|
|
875
885
|
const elm = hostRef.$hostElement$ ;
|
|
@@ -895,6 +905,11 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
|
|
|
895
905
|
}
|
|
896
906
|
}
|
|
897
907
|
if ((flags & (2 /* hasRendered */ | 16 /* isQueuedForUpdate */)) === 2 /* hasRendered */) {
|
|
908
|
+
if (instance.componentShouldUpdate) {
|
|
909
|
+
if (instance.componentShouldUpdate(newVal, oldVal, propName) === false) {
|
|
910
|
+
return;
|
|
911
|
+
}
|
|
912
|
+
}
|
|
898
913
|
scheduleUpdate(hostRef, false);
|
|
899
914
|
}
|
|
900
915
|
}
|
|
@@ -1034,7 +1049,8 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1034
1049
|
let Cstr;
|
|
1035
1050
|
if ((hostRef.$flags$ & 32 /* hasInitializedComponent */) === 0) {
|
|
1036
1051
|
hostRef.$flags$ |= 32 /* hasInitializedComponent */;
|
|
1037
|
-
|
|
1052
|
+
const bundleId = cmpMeta.$lazyBundleId$;
|
|
1053
|
+
if (bundleId) {
|
|
1038
1054
|
const CstrImport = loadModule(cmpMeta, hostRef);
|
|
1039
1055
|
if (CstrImport && "then" in CstrImport) {
|
|
1040
1056
|
const endLoad = uniqueTime();
|
|
@@ -1069,6 +1085,11 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1069
1085
|
hostRef.$flags$ |= 128 /* isWatchReady */;
|
|
1070
1086
|
}
|
|
1071
1087
|
endNewInstance();
|
|
1088
|
+
fireConnectedCallback(hostRef.$lazyInstance$, elm);
|
|
1089
|
+
} else {
|
|
1090
|
+
Cstr = elm.constructor;
|
|
1091
|
+
const cmpTag = elm.localName;
|
|
1092
|
+
customElements.whenDefined(cmpTag).then(() => hostRef.$flags$ |= 128 /* isWatchReady */);
|
|
1072
1093
|
}
|
|
1073
1094
|
if (Cstr && Cstr.style) {
|
|
1074
1095
|
let style;
|
|
@@ -1092,6 +1113,9 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1092
1113
|
}
|
|
1093
1114
|
};
|
|
1094
1115
|
var fireConnectedCallback = (instance, elm) => {
|
|
1116
|
+
{
|
|
1117
|
+
safeCall(instance, "connectedCallback", void 0, elm);
|
|
1118
|
+
}
|
|
1095
1119
|
};
|
|
1096
1120
|
|
|
1097
1121
|
// src/runtime/connected-callback.ts
|
|
@@ -1124,20 +1148,27 @@ var connectedCallback = (elm) => {
|
|
|
1124
1148
|
initializeComponent(elm, hostRef, cmpMeta);
|
|
1125
1149
|
}
|
|
1126
1150
|
} else {
|
|
1127
|
-
if (hostRef == null ? void 0 : hostRef.$lazyInstance$)
|
|
1128
|
-
hostRef.$
|
|
1151
|
+
if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
|
|
1152
|
+
fireConnectedCallback(hostRef.$lazyInstance$, elm);
|
|
1153
|
+
} else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
|
|
1154
|
+
hostRef.$onReadyPromise$.then(() => fireConnectedCallback(hostRef.$lazyInstance$, elm));
|
|
1129
1155
|
}
|
|
1130
1156
|
}
|
|
1131
1157
|
endConnected();
|
|
1132
1158
|
}
|
|
1133
1159
|
};
|
|
1134
1160
|
var disconnectInstance = (instance, elm) => {
|
|
1161
|
+
{
|
|
1162
|
+
safeCall(instance, "disconnectedCallback", void 0, elm || instance);
|
|
1163
|
+
}
|
|
1135
1164
|
};
|
|
1136
1165
|
var disconnectedCallback = async (elm) => {
|
|
1137
1166
|
if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
|
|
1138
1167
|
const hostRef = getHostRef(elm);
|
|
1139
|
-
if (hostRef == null ? void 0 : hostRef.$lazyInstance$)
|
|
1140
|
-
hostRef.$
|
|
1168
|
+
if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
|
|
1169
|
+
disconnectInstance(hostRef.$lazyInstance$, elm);
|
|
1170
|
+
} else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
|
|
1171
|
+
hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance$, elm));
|
|
1141
1172
|
}
|
|
1142
1173
|
}
|
|
1143
1174
|
if (rootAppliedStyles.has(elm)) {
|
|
@@ -1151,18 +1182,22 @@ var disconnectedCallback = async (elm) => {
|
|
|
1151
1182
|
// src/runtime/bootstrap-lazy.ts
|
|
1152
1183
|
var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
1153
1184
|
var _a;
|
|
1185
|
+
if (!win.document) {
|
|
1186
|
+
console.warn("Stencil: No document found. Skipping bootstrapping lazy components.");
|
|
1187
|
+
return;
|
|
1188
|
+
}
|
|
1154
1189
|
const endBootstrap = createTime();
|
|
1155
1190
|
const cmpTags = [];
|
|
1156
1191
|
const exclude = options.exclude || [];
|
|
1157
1192
|
const customElements2 = win.customElements;
|
|
1158
|
-
const head =
|
|
1193
|
+
const head = win.document.head;
|
|
1159
1194
|
const metaCharset = /* @__PURE__ */ head.querySelector("meta[charset]");
|
|
1160
|
-
const dataStyles = /* @__PURE__ */
|
|
1195
|
+
const dataStyles = /* @__PURE__ */ win.document.createElement("style");
|
|
1161
1196
|
const deferredConnectedCallbacks = [];
|
|
1162
1197
|
let appLoadFallback;
|
|
1163
1198
|
let isBootstrapping = true;
|
|
1164
1199
|
Object.assign(plt, options);
|
|
1165
|
-
plt.$resourcesUrl$ = new URL(options.resourcesUrl || "./",
|
|
1200
|
+
plt.$resourcesUrl$ = new URL(options.resourcesUrl || "./", win.document.baseURI).href;
|
|
1166
1201
|
let hasSlotRelocation = false;
|
|
1167
1202
|
lazyBundles.map((lazyBundle) => {
|
|
1168
1203
|
lazyBundle[1].map((compactMeta) => {
|
|
@@ -1229,6 +1264,10 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1229
1264
|
plt.raf(() => {
|
|
1230
1265
|
var _a3;
|
|
1231
1266
|
const hostRef = getHostRef(this);
|
|
1267
|
+
const i2 = deferredConnectedCallbacks.findIndex((host) => host === this);
|
|
1268
|
+
if (i2 > -1) {
|
|
1269
|
+
deferredConnectedCallbacks.splice(i2, 1);
|
|
1270
|
+
}
|
|
1232
1271
|
if (((_a3 = hostRef == null ? void 0 : hostRef.$vnode$) == null ? void 0 : _a3.$elm$) instanceof Node && !hostRef.$vnode$.$elm$.isConnected) {
|
|
1233
1272
|
delete hostRef.$vnode$.$elm$;
|
|
1234
1273
|
}
|
|
@@ -1257,7 +1296,7 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1257
1296
|
}
|
|
1258
1297
|
if (dataStyles.innerHTML.length) {
|
|
1259
1298
|
dataStyles.setAttribute("data-styles", "");
|
|
1260
|
-
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(
|
|
1299
|
+
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(win.document);
|
|
1261
1300
|
if (nonce != null) {
|
|
1262
1301
|
dataStyles.setAttribute("nonce", nonce);
|
|
1263
1302
|
}
|
package/dist/esm/loader.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { b as bootstrapLazy } from './index-
|
|
2
|
-
export { s as setNonce } from './index-
|
|
1
|
+
import { b as bootstrapLazy } from './index-bdcbc2fe.js';
|
|
2
|
+
export { s as setNonce } from './index-bdcbc2fe.js';
|
|
3
3
|
import { g as globalScripts } from './app-globals-0f993ce5.js';
|
|
4
4
|
|
|
5
5
|
const defineCustomElements = async (win, options) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, h, H as Host, g as getElement } from './index-
|
|
1
|
+
import { r as registerInstance, h, H as Host, g as getElement } from './index-bdcbc2fe.js';
|
|
2
2
|
|
|
3
3
|
const removeAttributesIf = (element, attribute, valueCheck = 'true', cleanAttributes) => {
|
|
4
4
|
if (ifAttribute(element, attribute, valueCheck)) {
|
|
@@ -17,7 +17,7 @@ const ifAttribute = (element, attribute, valueCheck = 'true') => {
|
|
|
17
17
|
return false;
|
|
18
18
|
};
|
|
19
19
|
|
|
20
|
-
const mdsProgressCss = "@tailwind components
|
|
20
|
+
const mdsProgressCss = "@tailwind components; :host{--mds-progress-background:rgb(var(--tone-neutral-08));--mds-progress-color:rgb(var(--variant-primary-03));--mds-progress-duration:750ms;--mds-progress-radius:0.5rem;--mds-progress-thickness:0.5rem;-webkit-transition-duration:300ms;transition-duration:300ms;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);background-color:var(--mds-progress-background);border-radius:var(--mds-progress-radius);display:-ms-flexbox;display:flex;height:var(--mds-progress-thickness);min-width:var(--mds-progress-thickness);overflow:hidden;position:relative;-webkit-transition-property:background-color;transition-property:background-color;width:100%}:host([direction=\"vertical\"]){-ms-flex-direction:column;flex-direction:column;height:unset;min-height:var(--mds-progress-thickness);width:var(--mds-progress-thickness)}.progress{-webkit-transition-duration:500ms;transition-duration:500ms;-webkit-transition-timing-function:cubic-bezier(0.19, 1, 0.22, 1);transition-timing-function:cubic-bezier(0.19, 1, 0.22, 1);background-color:var(--mds-progress-color);border-radius:var(--mds-progress-radius);-webkit-transition-duration:var(--mds-progress-duration);transition-duration:var(--mds-progress-duration);-webkit-transition-property:background-color, flex-grow;transition-property:background-color, flex-grow;transition-property:background-color, flex-grow, -ms-flex-positive}:host([variant=\"dark\"]){--mds-progress-color:rgb(var(--tone-neutral-04));--mds-progress-background:rgb(var(--tone-neutral-08))}:host([variant=\"light\"]){--mds-progress-color:rgb(var(--tone-neutral));--mds-progress-background:rgb(var(--tone-neutral-05))}:host([variant=\"error\"]){--mds-progress-color:rgb(var(--status-error-06));--mds-progress-background:rgb(var(--status-error-09))}:host([variant=\"warning\"]){--mds-progress-color:rgb(var(--status-warning-06));--mds-progress-background:rgb(var(--status-warning-09))}:host([variant=\"success\"]){--mds-progress-color:rgb(var(--status-success-06));--mds-progress-background:rgb(var(--status-success-09))}:host([variant=\"info\"]){--mds-progress-color:rgb(var(--status-info-06));--mds-progress-background:rgb(var(--status-info-09))}:host([variant=\"primary\"]){--mds-progress-color:rgb(var(--variant-primary-03));--mds-progress-background:rgb(var(--tone-neutral-08))}:host-context(.pref-animation-reduce),:host-context(.pref-animation-reduce) .progress{-webkit-transition-duration:0s;transition-duration:0s}@media (prefers-reduced-motion){:host-context(.pref-animation-system),:host-context(.pref-animation-system) .progress{-webkit-transition-duration:0s;transition-duration:0s}}:host-context(.pref-theme-dark),:host-context(.pref-theme-dark):host([variant=\"primary\"]){--mds-progress-color:rgb(var(--variant-primary-05));--mds-progress-background:rgb(var(--tone-neutral-07))}:host-context(.pref-theme-dark):host([variant=\"error\"]){--mds-progress-color:rgb(var(--status-error-04));--mds-progress-background:rgb(var(--status-error-07))}:host-context(.pref-theme-dark):host([variant=\"warning\"]){--mds-progress-color:rgb(var(--status-warning-04));--mds-progress-background:rgb(var(--status-warning-07))}:host-context(.pref-theme-dark):host([variant=\"success\"]){--mds-progress-color:rgb(var(--status-success-04));--mds-progress-background:rgb(var(--status-success-07))}:host-context(.pref-theme-dark):host([variant=\"info\"]){--mds-progress-color:rgb(var(--status-info-04));--mds-progress-background:rgb(var(--status-info-07))}@media (prefers-color-scheme: dark){:host-context(.pref-theme-system),:host-context(.pref-theme-system):host([variant=\"primary\"]){--mds-progress-color:rgb(var(--variant-primary-05));--mds-progress-background:rgb(var(--tone-neutral-07))}:host-context(.pref-theme-system):host([variant=\"error\"]){--mds-progress-color:rgb(var(--status-error-04));--mds-progress-background:rgb(var(--status-error-07))}:host-context(.pref-theme-system):host([variant=\"warning\"]){--mds-progress-color:rgb(var(--status-warning-04));--mds-progress-background:rgb(var(--status-warning-07))}:host-context(.pref-theme-system):host([variant=\"success\"]){--mds-progress-color:rgb(var(--status-success-04));--mds-progress-background:rgb(var(--status-success-07))}:host-context(.pref-theme-system):host([variant=\"info\"]){--mds-progress-color:rgb(var(--status-info-04));--mds-progress-background:rgb(var(--status-info-07))}}:host-context(.pref-contrast-more),:host-context(.pref-contrast-more):host([variant=\"primary\"]){--mds-progress-color:rgb(var(--variant-primary-05));--mds-progress-background:rgb(var(--tone-neutral-07))}@media (prefers-contrast: more){:host-context(.pref-contrast-system),:host-context(.pref-contrast-more):host([variant=\"primary\"]){--mds-progress-color:rgb(var(--variant-primary-05));--mds-progress-background:rgb(var(--tone-neutral-07))}}:host(:not(:is([hydrated],.hydrated))){-webkit-animation-duration:0s;animation-duration:0s;border-color:transparent;-webkit-box-shadow:0 0 0 transparent;box-shadow:0 0 0 transparent;opacity:0;outline-color:transparent;-webkit-transition-delay:0s;transition-delay:0s;-webkit-transition-duration:0s;transition-duration:0s;visibility:hidden}mds-accordion:not(:is([hydrated],.hydrated)),mds-accordion-item:not(:is([hydrated],.hydrated)),mds-accordion-timer:not(:is([hydrated],.hydrated)),mds-accordion-timer-item:not(:is([hydrated],.hydrated)),mds-author:not(:is([hydrated],.hydrated)),mds-avatar:not(:is([hydrated],.hydrated)),mds-badge:not(:is([hydrated],.hydrated)),mds-banner:not(:is([hydrated],.hydrated)),mds-benchmark-bar:not(:is([hydrated],.hydrated)),mds-bibliography:not(:is([hydrated],.hydrated)),mds-breadcrumb:not(:is([hydrated],.hydrated)),mds-breadcrumb-item:not(:is([hydrated],.hydrated)),mds-button:not(:is([hydrated],.hydrated)),mds-card:not(:is([hydrated],.hydrated)),mds-card-content:not(:is([hydrated],.hydrated)),mds-card-footer:not(:is([hydrated],.hydrated)),mds-card-header:not(:is([hydrated],.hydrated)),mds-card-media:not(:is([hydrated],.hydrated)),mds-chip:not(:is([hydrated],.hydrated)),mds-details:not(:is([hydrated],.hydrated)),mds-dropdown:not(:is([hydrated],.hydrated)),mds-entity:not(:is([hydrated],.hydrated)),mds-file:not(:is([hydrated],.hydrated)),mds-file-preview:not(:is([hydrated],.hydrated)),mds-filter:not(:is([hydrated],.hydrated)),mds-filter-item:not(:is([hydrated],.hydrated)),mds-header:not(:is([hydrated],.hydrated)),mds-header-bar:not(:is([hydrated],.hydrated)),mds-help:not(:is([hydrated],.hydrated)),mds-horizontal-scroll:not(:is([hydrated],.hydrated)),mds-hr:not(:is([hydrated],.hydrated)),mds-icon:not(:is([hydrated],.hydrated)),mds-img:not(:is([hydrated],.hydrated)),mds-input:not(:is([hydrated],.hydrated)),mds-input-field:not(:is([hydrated],.hydrated)),mds-input-range:not(:is([hydrated],.hydrated)),mds-input-select:not(:is([hydrated],.hydrated)),mds-input-switch:not(:is([hydrated],.hydrated)),mds-input-tip:not(:is([hydrated],.hydrated)),mds-input-tip-item:not(:is([hydrated],.hydrated)),mds-input-upload:not(:is([hydrated],.hydrated)),mds-keyboard:not(:is([hydrated],.hydrated)),mds-keyboard-key:not(:is([hydrated],.hydrated)),mds-kpi:not(:is([hydrated],.hydrated)),mds-kpi-item:not(:is([hydrated],.hydrated)),mds-label:not(:is([hydrated],.hydrated)),mds-list:not(:is([hydrated],.hydrated)),mds-list-item:not(:is([hydrated],.hydrated)),mds-modal:not(:is([hydrated],.hydrated)),mds-note:not(:is([hydrated],.hydrated)),mds-notification:not(:is([hydrated],.hydrated)),mds-paginator:not(:is([hydrated],.hydrated)),mds-paginator-item:not(:is([hydrated],.hydrated)),mds-pref:not(:is([hydrated],.hydrated)),mds-pref-animation:not(:is([hydrated],.hydrated)),mds-pref-consumption:not(:is([hydrated],.hydrated)),mds-pref-contrast:not(:is([hydrated],.hydrated)),mds-pref-language:not(:is([hydrated],.hydrated)),mds-pref-language-item:not(:is([hydrated],.hydrated)),mds-pref-theme:not(:is([hydrated],.hydrated)),mds-price-table:not(:is([hydrated],.hydrated)),mds-price-table-features:not(:is([hydrated],.hydrated)),mds-price-table-features-cell:not(:is([hydrated],.hydrated)),mds-price-table-features-row:not(:is([hydrated],.hydrated)),mds-price-table-header:not(:is([hydrated],.hydrated)),mds-price-table-list:not(:is([hydrated],.hydrated)),mds-price-table-list-item:not(:is([hydrated],.hydrated)),mds-progress:not(:is([hydrated],.hydrated)),mds-push-notification:not(:is([hydrated],.hydrated)),mds-push-notifications:not(:is([hydrated],.hydrated)),mds-quote:not(:is([hydrated],.hydrated)),mds-separator:not(:is([hydrated],.hydrated)),mds-spinner:not(:is([hydrated],.hydrated)),mds-stepper-bar:not(:is([hydrated],.hydrated)),mds-stepper-bar-item:not(:is([hydrated],.hydrated)),mds-tab:not(:is([hydrated],.hydrated)),mds-tab-bar:not(:is([hydrated],.hydrated)),mds-tab-bar-item:not(:is([hydrated],.hydrated)),mds-tab-item:not(:is([hydrated],.hydrated)),mds-table:not(:is([hydrated],.hydrated)),mds-table-body:not(:is([hydrated],.hydrated)),mds-table-cell:not(:is([hydrated],.hydrated)),mds-table-footer:not(:is([hydrated],.hydrated)),mds-table-header:not(:is([hydrated],.hydrated)),mds-table-header-cell:not(:is([hydrated],.hydrated)),mds-table-row:not(:is([hydrated],.hydrated)),mds-text:not(:is([hydrated],.hydrated)),mds-toast:not(:is([hydrated],.hydrated)),mds-tooltip:not(:is([hydrated],.hydrated)),mds-tree:not(:is([hydrated],.hydrated)),mds-tree-item:not(:is([hydrated],.hydrated)),mds-url-view:not(:is([hydrated],.hydrated)),mds-usage:not(:is([hydrated],.hydrated)),mds-video-wall:not(:is([hydrated],.hydrated)),mds-zero:not(:is([hydrated],.hydrated)){-webkit-animation-duration:0s;animation-duration:0s;border-color:transparent;-webkit-box-shadow:0 0 0 transparent;box-shadow:0 0 0 transparent;opacity:0;outline-color:transparent;-webkit-transition-delay:0s;transition-delay:0s;-webkit-transition-duration:0s;transition-duration:0s;visibility:hidden}";
|
|
21
21
|
const MdsProgressStyle0 = mdsProgressCss;
|
|
22
22
|
|
|
23
23
|
const MdsProgress = class {
|
package/dist/esm/mds-progress.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { p as promiseResolve, b as bootstrapLazy } from './index-
|
|
2
|
-
export { s as setNonce } from './index-
|
|
1
|
+
import { p as promiseResolve, b as bootstrapLazy } from './index-bdcbc2fe.js';
|
|
2
|
+
export { s as setNonce } from './index-bdcbc2fe.js';
|
|
3
3
|
import { g as globalScripts } from './app-globals-0f993ce5.js';
|
|
4
4
|
|
|
5
5
|
/*
|
|
6
|
-
Stencil Client Patch Browser v4.
|
|
6
|
+
Stencil Client Patch Browser v4.27.2 | MIT Licensed | https://stenciljs.com
|
|
7
7
|
*/
|
|
8
8
|
var patchBrowser = () => {
|
|
9
9
|
const importMeta = import.meta.url;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var __extends=this&&this.__extends||function(){var e=function(r,t){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,r){e.__proto__=r}||function(e,r){for(var t in r)if(Object.prototype.hasOwnProperty.call(r,t))e[t]=r[t]};return e(r,t)};return function(r,t){if(typeof t!=="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");e(r,t);function n(){this.constructor=r}r.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();var __awaiter=this&&this.__awaiter||function(e,r,t,n){function i(e){return e instanceof t?e:new t((function(r){r(e)}))}return new(t||(t=Promise))((function(t,a){function o(e){try{u(n.next(e))}catch(e){a(e)}}function s(e){try{u(n["throw"](e))}catch(e){a(e)}}function u(e){e.done?t(e.value):i(e.value).then(o,s)}u((n=n.apply(e,r||[])).next())}))};var __generator=this&&this.__generator||function(e,r){var t={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,i,a,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(e){return function(r){return u([e,r])}}function u(s){if(n)throw new TypeError("Generator is already executing.");while(o&&(o=0,s[0]&&(t=0)),t)try{if(n=1,i&&(a=s[0]&2?i["return"]:s[0]?i["throw"]||((a=i["return"])&&a.call(i),0):i.next)&&!(a=a.call(i,s[1])).done)return a;if(i=0,a)s=[s[0]&2,a.value];switch(s[0]){case 0:case 1:a=s;break;case 4:t.label++;return{value:s[1],done:false};case 5:t.label++;i=s[1];s=[0];continue;case 7:s=t.ops.pop();t.trys.pop();continue;default:if(!(a=t.trys,a=a.length>0&&a[a.length-1])&&(s[0]===6||s[0]===2)){t=0;continue}if(s[0]===3&&(!a||s[1]>a[0]&&s[1]<a[3])){t.label=s[1];break}if(s[0]===6&&t.label<a[1]){t.label=a[1];a=s;break}if(a&&t.label<a[2]){t.label=a[2];t.ops.push(s);break}if(a[2])t.ops.pop();t.trys.pop();continue}s=r.call(e,t)}catch(e){s=[6,e];i=0}finally{n=a=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(e,r,t){if(t||arguments.length===2)for(var n=0,i=r.length,a;n<i;n++){if(a||!(n in r)){if(!a)a=Array.prototype.slice.call(r,0,n);a[n]=r[n]}}return e.concat(a||Array.prototype.slice.call(r))};var NAMESPACE="mds-progress";var BUILD={allRenderFn:true,appendChildSlotFix:false,asyncLoading:true,asyncQueue:false,attachStyles:true,cloneNodeFix:false,constructableCSS:true,cssAnnotations:true,devTools:false,element:false,event:false,experimentalScopedSlotChanges:false,experimentalSlotFixes:false,formAssociated:false,hasRenderFn:true,hostListener:false,hostListenerTarget:false,hostListenerTargetBody:false,hostListenerTargetDocument:false,hostListenerTargetParent:false,hostListenerTargetWindow:false,hotModuleReplacement:false,hydrateClientSide:false,hydrateServerSide:false,hydratedAttribute:true,hydratedClass:false,hydratedSelectorName:"hydrated",initializeNextTick:false,invisiblePrehydration:true,isDebug:false,isDev:false,isTesting:false,lazyLoad:true,lifecycle:true,lifecycleDOMEvents:false,member:true,method:false,mode:false,modernPropertyDecls:false,observeAttribute:true,profile:false,prop:true,propBoolean:false,propMutable:false,propNumber:true,propString:true,reflect:true,scoped:false,scopedSlotTextContentFix:false,scriptDataOpts:false,shadowDelegatesFocus:false,shadowDom:true,slot:false,slotChildNodesFix:false,slotRelocation:false,state:true,style:true,svg:false,taskQueue:true,transformTagName:false,updatable:true,vdomAttribute:true,vdomClass:true,vdomFunctional:false,vdomKey:true,vdomListener:false,vdomPropOrAttr:true,vdomRef:false,vdomRender:true,vdomStyle:true,vdomText:false,vdomXlink:false,watchCallback:true};var __defProp=Object.defineProperty;var __export=function(e,r){for(var t in r)__defProp(e,t,{get:r[t],enumerable:true})};var getHostRef=function(e){if(e.__stencil__getHostRef){return e.__stencil__getHostRef()}return void 0};var registerInstance=function(e,r){e.__stencil__getHostRef=function(){return r};r.t=e};var registerHost=function(e,r){var t={i:0,$hostElement$:e,o:r,u:new Map};{t.l=new Promise((function(e){return t.v=e}));e["s-p"]=[];e["s-rc"]=[]}var n=t;e.__stencil__getHostRef=function(){return n};return n};var isMemberInElement=function(e,r){return r in e};var consoleError=function(e,r){return(0,console.error)(e,r)};var cmpModules=new Map;var loadModule=function(e,r,t){var n=e.p.replace(/-/g,"_");var i=e.m;if(!i){return void 0}var a=cmpModules.get(i);if(a){return a[n]}if(!t||!BUILD.hotModuleReplacement){var o=function(e){cmpModules.set(i,e);return e[n]};switch(i){case"mds-progress":return import("./mds-progress.entry.js").then(o,consoleError)}}return import("./".concat(i,".entry.js").concat("")).then((function(e){{cmpModules.set(i,e)}return e[n]}),(function(e){consoleError(e,r.$hostElement$)}))};var styles=new Map;var HYDRATED_STYLE_ID="sty-id";var HYDRATED_CSS="{visibility:hidden}[hydrated]{visibility:inherit}";var SLOT_FB_CSS="slot-fb{display:contents}slot-fb[hidden]{display:none}";var win=typeof window!=="undefined"?window:{};var plt={i:0,h:"",jmp:function(e){return e()},raf:function(e){return requestAnimationFrame(e)},ael:function(e,r,t,n){return e.addEventListener(r,t,n)},rel:function(e,r,t,n){return e.removeEventListener(r,t,n)},ce:function(e,r){return new CustomEvent(e,r)}};var promiseResolve=function(e){return Promise.resolve(e)};var supportsConstructableStylesheets=function(){try{new CSSStyleSheet;return typeof(new CSSStyleSheet).replaceSync==="function"}catch(e){}return false}();var queuePending=false;var queueDomReads=[];var queueDomWrites=[];var queueTask=function(e,r){return function(t){e.push(t);if(!queuePending){queuePending=true;if(r&&plt.i&4){nextTick(flush)}else{plt.raf(flush)}}}};var consume=function(e){for(var r=0;r<e.length;r++){try{e[r](performance.now())}catch(e){consoleError(e)}}e.length=0};var flush=function(){consume(queueDomReads);{consume(queueDomWrites);if(queuePending=queueDomReads.length>0){plt.raf(flush)}}};var nextTick=function(e){return promiseResolve().then(e)};var writeTask=queueTask(queueDomWrites,true);var isComplexType=function(e){e=typeof e;return e==="object"||e==="function"};function queryNonceMetaTagContent(e){var r,t,n;return(n=(t=(r=e.head)==null?void 0:r.querySelector('meta[name="csp-nonce"]'))==null?void 0:t.getAttribute("content"))!=null?n:void 0}var result_exports={};__export(result_exports,{err:function(){return err},map:function(){return map},ok:function(){return ok},unwrap:function(){return unwrap},unwrapErr:function(){return unwrapErr}});var ok=function(e){return{isOk:true,isErr:false,value:e}};var err=function(e){return{isOk:false,isErr:true,value:e}};function map(e,r){if(e.isOk){var t=r(e.value);if(t instanceof Promise){return t.then((function(e){return ok(e)}))}else{return ok(t)}}if(e.isErr){var n=e.value;return err(n)}throw"should never get here"}var unwrap=function(e){if(e.isOk){return e.value}else{throw e.value}};var unwrapErr=function(e){if(e.isErr){return e.value}else{throw e.value}};var createTime=function(e,r){if(r===void 0){r=""}{return function(){return}}};var uniqueTime=function(e,r){{return function(){return}}};var h=function(e,r){var t=[];for(var n=2;n<arguments.length;n++){t[n-2]=arguments[n]}var i=null;var a=null;var o=false;var s=false;var u=[];var l=function(r){for(var t=0;t<r.length;t++){i=r[t];if(Array.isArray(i)){l(i)}else if(i!=null&&typeof i!=="boolean"){if(o=typeof e!=="function"&&!isComplexType(i)){i=String(i)}if(o&&s){u[u.length-1].S+=i}else{u.push(o?newVNode(null,i):i)}s=o}}};l(t);if(r){if(r.key){a=r.key}{var f=r.className||r.class;if(f){r.class=typeof f!=="object"?f:Object.keys(f).filter((function(e){return f[e]})).join(" ")}}}var c=newVNode(e,null);c.C=r;if(u.length>0){c._=u}{c.T=a}return c};var newVNode=function(e,r){var t={i:0,k:e,S:r,A:null,_:null};{t.C=null}{t.T=null}return t};var Host={};var isHost=function(e){return e&&e.k===Host};var parsePropertyValue=function(e,r){if(e!=null&&!isComplexType(e)){if(r&2){return parseFloat(e)}if(r&1){return String(e)}return e}return e};var getElement=function(e){return getHostRef(e).$hostElement$};var emitEvent=function(e,r,t){var n=plt.ce(r,t);e.dispatchEvent(n);return n};var rootAppliedStyles=new WeakMap;var registerStyle=function(e,r,t){var n=styles.get(e);if(supportsConstructableStylesheets&&t){n=n||new CSSStyleSheet;if(typeof n==="string"){n=r}else{n.replaceSync(r)}}else{n=r}styles.set(e,n)};var addStyle=function(e,r,t){var n;var i=getScopeId(r);var a=styles.get(i);if(!win.document){return i}e=e.nodeType===11?e:win.document;if(a){if(typeof a==="string"){e=e.head||e;var o=rootAppliedStyles.get(e);var s=void 0;if(!o){rootAppliedStyles.set(e,o=new Set)}if(!o.has(i)){{s=document.querySelector("[".concat(HYDRATED_STYLE_ID,'="').concat(i,'"]'))||win.document.createElement("style");s.innerHTML=a;var u=(n=plt.D)!=null?n:queryNonceMetaTagContent(win.document);if(u!=null){s.setAttribute("nonce",u)}if(!(r.i&1)){if(e.nodeName==="HEAD"){var l=e.querySelectorAll("link[rel=preconnect]");var f=l.length>0?l[l.length-1].nextSibling:e.querySelector("style");e.insertBefore(s,(f==null?void 0:f.parentNode)===e?f:null)}else if("host"in e){if(supportsConstructableStylesheets){var c=new CSSStyleSheet;c.replaceSync(a);e.adoptedStyleSheets=__spreadArray([c],e.adoptedStyleSheets,true)}else{var v=e.querySelector("style");if(v){v.innerHTML=a+v.innerHTML}else{e.prepend(s)}}}else{e.append(s)}}if(r.i&1){e.insertBefore(s,null)}}if(r.i&4){s.innerHTML+=SLOT_FB_CSS}if(o){o.add(i)}}}else if(!e.adoptedStyleSheets.includes(a)){e.adoptedStyleSheets=__spreadArray(__spreadArray([],e.adoptedStyleSheets,true),[a],false)}}return i};var attachStyles=function(e){var r=e.o;var t=e.$hostElement$;var n=r.i;var i=createTime("attachStyles",r.p);var a=addStyle(t.shadowRoot?t.shadowRoot:t.getRootNode(),r);if(n&10&&n&2||n&128){t["s-sc"]=a;t.classList.add(a+"-h")}i()};var getScopeId=function(e,r){return"sc-"+e.p};var setAccessor=function(e,r,t,n,i,a,o){if(t===n){return}var s=isMemberInElement(e,r);r.toLowerCase();if(r==="class"){var u=e.classList;var l=parseClassList(t);var f=parseClassList(n);{u.remove.apply(u,l.filter((function(e){return e&&!f.includes(e)})));u.add.apply(u,f.filter((function(e){return e&&!l.includes(e)})))}}else if(r==="style"){{for(var c in t){if(!n||n[c]==null){if(c.includes("-")){e.style.removeProperty(c)}else{e.style[c]=""}}}}for(var c in n){if(!t||n[c]!==t[c]){if(c.includes("-")){e.style.setProperty(c,n[c])}else{e.style[c]=n[c]}}}}else if(r==="key");else{var v=isComplexType(n);if((s||v&&n!==null)&&!i){try{if(!e.tagName.includes("-")){var d=n==null?"":n;if(r==="list"){s=false}else if(t==null||e[r]!=d){if(typeof e.__lookupSetter__(r)==="function"){e[r]=d}else{e.setAttribute(r,d)}}}else if(e[r]!==n){e[r]=n}}catch(e){}}if(n==null||n===false){if(n!==false||e.getAttribute(r)===""){{e.removeAttribute(r)}}}else if((!s||a&4||i)&&!v&&e.nodeType===1){n=n===true?"":n;{e.setAttribute(r,n)}}}};var parseClassListRegex=/\s/;var parseClassList=function(e){if(typeof e==="object"&&e&&"baseVal"in e){e=e.baseVal}if(!e||typeof e!=="string"){return[]}return e.split(parseClassListRegex)};var updateElement=function(e,r,t,n){var i=r.A.nodeType===11&&r.A.host?r.A.host:r.A;var a=e&&e.C||{};var o=r.C||{};{for(var s=0,u=sortedAttrNames(Object.keys(a));s<u.length;s++){var l=u[s];if(!(l in o)){setAccessor(i,l,a[l],void 0,t,r.i)}}}for(var f=0,c=sortedAttrNames(Object.keys(o));f<c.length;f++){var l=c[f];setAccessor(i,l,a[l],o[l],t,r.i)}};function sortedAttrNames(e){return e.includes("ref")?__spreadArray(__spreadArray([],e.filter((function(e){return e!=="ref"})),true),["ref"],false):e}var hostTagName;var useNativeShadowDom=false;var isSvgMode=false;var createElm=function(e,r,t){var n=r._[t];var i=0;var a;var o;{if(!win.document){throw new Error("You are trying to render a Stencil component in an environment that doesn't support the DOM. Make sure to populate the [`window`](https://developer.mozilla.org/en-US/docs/Web/API/Window/window) object before rendering a component.")}a=n.A=win.document.createElement(!useNativeShadowDom&&BUILD.slotRelocation&&n.i&2?"slot-fb":n.k);{updateElement(null,n,isSvgMode)}if(n._){for(i=0;i<n._.length;++i){o=createElm(e,n,i);if(o){a.appendChild(o)}}}}a["s-hn"]=hostTagName;return a};var addVnodes=function(e,r,t,n,i,a){var o=e;var s;if(o.shadowRoot&&o.tagName===hostTagName){o=o.shadowRoot}for(;i<=a;++i){if(n[i]){s=createElm(null,t,i);if(s){n[i].A=s;insertBefore(o,s,r)}}}};var removeVnodes=function(e,r,t){for(var n=r;n<=t;++n){var i=e[n];if(i){var a=i.A;if(a){a.remove()}}}};var updateChildren=function(e,r,t,n,i){if(i===void 0){i=false}var a=0;var o=0;var s=0;var u=0;var l=r.length-1;var f=r[0];var c=r[l];var v=n.length-1;var d=n[0];var p=n[v];var m;var h;while(a<=l&&o<=v){if(f==null){f=r[++a]}else if(c==null){c=r[--l]}else if(d==null){d=n[++o]}else if(p==null){p=n[--v]}else if(isSameVnode(f,d,i)){patch(f,d,i);f=r[++a];d=n[++o]}else if(isSameVnode(c,p,i)){patch(c,p,i);c=r[--l];p=n[--v]}else if(isSameVnode(f,p,i)){patch(f,p,i);insertBefore(e,f.A,c.A.nextSibling);f=r[++a];p=n[--v]}else if(isSameVnode(c,d,i)){patch(c,d,i);insertBefore(e,c.A,f.A);c=r[--l];d=n[++o]}else{s=-1;{for(u=a;u<=l;++u){if(r[u]&&r[u].T!==null&&r[u].T===d.T){s=u;break}}}if(s>=0){h=r[s];if(h.k!==d.k){m=createElm(r&&r[o],t,s)}else{patch(h,d,i);r[s]=void 0;m=h.A}d=n[++o]}else{m=createElm(r&&r[o],t,o);d=n[++o]}if(m){{insertBefore(f.A.parentNode,m,f.A)}}}}if(a>l){addVnodes(e,n[v+1]==null?null:n[v+1].A,t,n,o,v)}else if(o>v){removeVnodes(r,a,l)}};var isSameVnode=function(e,r,t){if(t===void 0){t=false}if(e.k===r.k){if(!t){return e.T===r.T}if(t&&!e.T&&r.T){e.T=r.T}return true}return false};var patch=function(e,r,t){if(t===void 0){t=false}var n=r.A=e.A;var i=e._;var a=r._;{{updateElement(e,r,isSvgMode)}if(i!==null&&a!==null){updateChildren(n,i,r,a,t)}else if(a!==null){addVnodes(n,null,r,a,0,a.length-1)}else if(!t&&BUILD.updatable&&i!==null){removeVnodes(i,0,i.length-1)}}};var insertBefore=function(e,r,t){{return e==null?void 0:e.insertBefore(r,t)}};var renderVdom=function(e,r,t){if(t===void 0){t=false}var n=e.$hostElement$;var i=e.o;var a=e.R||newVNode(null,null);var o=isHost(r)?r:h(null,null,r);hostTagName=n.tagName;if(i.L){o.C=o.C||{};i.L.map((function(e){var r=e[0],t=e[1];return o.C[t]=n[r]}))}if(t&&o.C){for(var s=0,u=Object.keys(o.C);s<u.length;s++){var l=u[s];if(n.hasAttribute(l)&&!["key","ref","style","class"].includes(l)){o.C[l]=n[l]}}}o.k=null;o.i|=4;e.R=o;o.A=a.A=n.shadowRoot||n;useNativeShadowDom=!!(i.i&1)&&!(i.i&128);patch(a,o,t)};var attachToAncestor=function(e,r){if(r&&!e.N&&r["s-p"]){var t=r["s-p"].push(new Promise((function(n){return e.N=function(){r["s-p"].splice(t-1,1);n()}})))}};var scheduleUpdate=function(e,r){{e.i|=16}if(e.i&4){e.i|=512;return}attachToAncestor(e,e.H);var t=function(){return dispatchHooks(e,r)};return writeTask(t)};var dispatchHooks=function(e,r){var t=e.$hostElement$;var n=createTime("scheduleUpdate",e.o.p);var i=e.t;if(!i){throw new Error("Can't render component <".concat(t.tagName.toLowerCase()," /> with invalid Stencil runtime! Make sure this imported component is compiled with a `externalRuntime: true` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime"))}var a;if(r){a=safeCall(i,"componentWillLoad",void 0,t)}else{a=safeCall(i,"componentWillUpdate",void 0,t)}a=enqueue(a,(function(){return safeCall(i,"componentWillRender",void 0,t)}));n();return enqueue(a,(function(){return updateComponent(e,i,r)}))};var enqueue=function(e,r){return isPromisey(e)?e.then(r).catch((function(e){console.error(e);r()})):r()};var isPromisey=function(e){return e instanceof Promise||e&&e.then&&typeof e.then==="function"};var updateComponent=function(e,r,t){return __awaiter(void 0,void 0,void 0,(function(){var n,i,a,o,s,u,l;return __generator(this,(function(f){i=e.$hostElement$;a=createTime("update",e.o.p);o=i["s-rc"];if(t){attachStyles(e)}s=createTime("render",e.o.p);{callRender(e,r,i,t)}if(o){o.map((function(e){return e()}));i["s-rc"]=void 0}s();a();{u=(n=i["s-p"])!=null?n:[];l=function(){return postUpdateComponent(e)};if(u.length===0){l()}else{Promise.all(u).then(l);e.i|=4;u.length=0}}return[2]}))}))};var callRender=function(e,r,t,n){try{r=r.render();{e.i&=~16}{e.i|=2}{{{renderVdom(e,r,n)}}}}catch(r){consoleError(r,e.$hostElement$)}return null};var postUpdateComponent=function(e){var r=e.o.p;var t=e.$hostElement$;var n=createTime("postUpdate",r);var i=e.t;var a=e.H;safeCall(i,"componentDidRender",void 0,t);if(!(e.i&64)){e.i|=64;{addHydratedFlag(t)}safeCall(i,"componentDidLoad",void 0,t);n();{e.v(t);if(!a){appDidLoad()}}}else{safeCall(i,"componentDidUpdate",void 0,t);n()}{if(e.N){e.N();e.N=void 0}if(e.i&512){nextTick((function(){return scheduleUpdate(e,false)}))}e.i&=~(4|512)}};var appDidLoad=function(e){nextTick((function(){return emitEvent(win,"appload",{detail:{namespace:NAMESPACE}})}))};var safeCall=function(e,r,t,n){if(e&&e[r]){try{return e[r](t)}catch(e){consoleError(e,n)}}return void 0};var addHydratedFlag=function(e){var r;return e.setAttribute((r=BUILD.hydratedSelectorName)!=null?r:"hydrated","")};var getValue=function(e,r){return getHostRef(e).u.get(r)};var setValue=function(e,r,t,n){var i=getHostRef(e);if(!i){throw new Error("Couldn't find host element for \"".concat(n.p,'" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/stenciljs/core/issues/5457).'))}var a=i.$hostElement$;var o=i.u.get(r);var s=i.i;var u=i.t;t=parsePropertyValue(t,n.M[r][0]);var l=Number.isNaN(o)&&Number.isNaN(t);var f=t!==o&&!l;if((!(s&8)||o===void 0)&&f){i.u.set(r,t);if(u){if(n.$&&s&128){var c=n.$[r];if(c){c.map((function(e){try{u[e](t,o,r)}catch(e){consoleError(e,a)}}))}}if((s&(2|16))===2){if(u.componentShouldUpdate){if(u.componentShouldUpdate(t,o,r)===false){return}}scheduleUpdate(i,false)}}}};var proxyComponent=function(e,r,t){var n,i;var a=e.prototype;if(r.M||(r.$||e.watchers)){if(e.watchers&&!r.$){r.$=e.watchers}var o=Object.entries((n=r.M)!=null?n:{});o.map((function(e){var n=e[0],i=e[1][0];if(i&31||t&2&&i&32){var o=Object.getOwnPropertyDescriptor(a,n)||{},s=o.get,u=o.set;if(s)r.M[n][0]|=2048;if(u)r.M[n][0]|=4096;if(t&1||!s){Object.defineProperty(a,n,{get:function(){{if((r.M[n][0]&2048)===0){return getValue(this,n)}var e=getHostRef(this);var t=e?e.t:a;if(!t)return;return t[n]}},configurable:true,enumerable:true})}Object.defineProperty(a,n,{set:function(e){var a=this;var o=getHostRef(this);if(u){var s=i&32?this[n]:o.$hostElement$[n];if(typeof s==="undefined"&&o.u.get(n)){e=o.u.get(n)}else if(!o.u.get(n)&&s){o.u.set(n,s)}u.apply(this,[parsePropertyValue(e,i)]);e=i&32?this[n]:o.$hostElement$[n];setValue(this,n,e,r);return}{if((t&1)===0||(r.M[n][0]&4096)===0){setValue(this,n,e,r);if(t&1&&!o.t){o.l.then((function(){if(r.M[n][0]&4096&&o.t[n]!==o.u.get(n)){o.t[n]=e}}))}return}var l=function(){var t=o.t[n];if(!o.u.get(n)&&t){o.u.set(n,t)}o.t[n]=parsePropertyValue(e,i);setValue(a,n,o.t[n],r)};if(o.t){l()}else{o.l.then((function(){return l()}))}}}})}}));if(t&1){var s=new Map;a.attributeChangedCallback=function(e,t,n){var i=this;plt.jmp((function(){var o;var u=s.get(e);if(i.hasOwnProperty(u)&&BUILD.lazyLoad){n=i[u];delete i[u]}else if(a.hasOwnProperty(u)&&typeof i[u]==="number"&&i[u]==n){return}else if(u==null){var l=getHostRef(i);var f=l==null?void 0:l.i;if(f&&!(f&8)&&f&128&&n!==t){var c=l.t;var v=(o=r.$)==null?void 0:o[e];v==null?void 0:v.forEach((function(r){if(c[r]!=null){c[r].call(c,n,t,e)}}))}return}var d=Object.getOwnPropertyDescriptor(a,u);n=n===null&&typeof i[u]==="boolean"?false:n;if(n!==i[u]&&(!d.get||!!d.set)){i[u]=n}}))};e.observedAttributes=Array.from(new Set(__spreadArray(__spreadArray([],Object.keys((i=r.$)!=null?i:{}),true),o.filter((function(e){var r=e[0],t=e[1];return t[0]&15})).map((function(e){var t=e[0],n=e[1];var i;var a=n[1]||t;s.set(a,t);if(n[0]&512){(i=r.L)==null?void 0:i.push([t,a])}return a})),true)))}}return e};var initializeComponent=function(e,r,t,n){return __awaiter(void 0,void 0,void 0,(function(){var n,i,a,o,s,u,l,f,c,v,d;return __generator(this,(function(p){switch(p.label){case 0:if(!((r.i&32)===0))return[3,6];r.i|=32;i=t.m;if(!i)return[3,4];a=loadModule(t,r);if(!(a&&"then"in a))return[3,2];o=uniqueTime();return[4,a];case 1:n=p.sent();o();return[3,3];case 2:n=a;p.label=3;case 3:if(!n){throw new Error('Constructor for "'.concat(t.p,"#").concat(r.V,'" was not found'))}if(!n.isProxied){{t.$=n.watchers}proxyComponent(n,t,2);n.isProxied=true}s=createTime("createInstance",t.p);{r.i|=8}try{new n(r)}catch(r){consoleError(r,e)}{r.i&=~8}{r.i|=128}s();fireConnectedCallback(r.t,e);return[3,5];case 4:n=e.constructor;u=e.localName;customElements.whenDefined(u).then((function(){return r.i|=128}));p.label=5;case 5:if(n&&n.style){l=void 0;if(typeof n.style==="string"){l=n.style}f=getScopeId(t);if(!styles.has(f)){c=createTime("registerStyles",t.p);registerStyle(f,l,!!(t.i&1));c()}}p.label=6;case 6:v=r.H;d=function(){return scheduleUpdate(r,true)};if(v&&v["s-rc"]){v["s-rc"].push(d)}else{d()}return[2]}}))}))};var fireConnectedCallback=function(e,r){{safeCall(e,"connectedCallback",void 0,r)}};var connectedCallback=function(e){if((plt.i&1)===0){var r=getHostRef(e);var t=r.o;var n=createTime("connectedCallback",t.p);if(!(r.i&1)){r.i|=1;{var i=e;while(i=i.parentNode||i.host){if(i["s-p"]){attachToAncestor(r,r.H=i);break}}}if(t.M){Object.entries(t.M).map((function(r){var t=r[0],n=r[1][0];if(n&31&&e.hasOwnProperty(t)){var i=e[t];delete e[t];e[t]=i}}))}{initializeComponent(e,r,t)}}else{if(r==null?void 0:r.t){fireConnectedCallback(r.t,e)}else if(r==null?void 0:r.l){r.l.then((function(){return fireConnectedCallback(r.t,e)}))}}n()}};var disconnectInstance=function(e,r){{safeCall(e,"disconnectedCallback",void 0,r||e)}};var disconnectedCallback=function(e){return __awaiter(void 0,void 0,void 0,(function(){var r;return __generator(this,(function(t){if((plt.i&1)===0){r=getHostRef(e);if(r==null?void 0:r.t){disconnectInstance(r.t,e)}else if(r==null?void 0:r.l){r.l.then((function(){return disconnectInstance(r.t,e)}))}}if(rootAppliedStyles.has(e)){rootAppliedStyles.delete(e)}if(e.shadowRoot&&rootAppliedStyles.has(e.shadowRoot)){rootAppliedStyles.delete(e.shadowRoot)}return[2]}))}))};var bootstrapLazy=function(e,r){if(r===void 0){r={}}var t;if(!win.document){console.warn("Stencil: No document found. Skipping bootstrapping lazy components.");return}var n=createTime();var i=[];var a=r.exclude||[];var o=win.customElements;var s=win.document.head;var u=s.querySelector("meta[charset]");var l=win.document.createElement("style");var f=[];var c;var v=true;Object.assign(plt,r);plt.h=new URL(r.resourcesUrl||"./",win.document.baseURI).href;var d=false;e.map((function(e){e[1].map((function(r){var t;var n={i:r[0],p:r[1],M:r[2],P:r[3]};if(n.i&4){d=true}{n.M=r[2]}{n.L=[]}{n.$=(t=r[4])!=null?t:{}}var s=n.p;var u=function(e){__extends(r,e);function r(r){var t=e.call(this,r)||this;t.hasRegisteredEventListeners=false;r=t;registerHost(r,n);if(n.i&1){{if(!r.shadowRoot){{r.attachShadow({mode:"open"})}}else{if(r.shadowRoot.mode!=="open"){throw new Error("Unable to re-use existing shadow root for ".concat(n.p,"! Mode is set to ").concat(r.shadowRoot.mode," but Stencil only supports open shadow roots."))}}}}return t}r.prototype.connectedCallback=function(){var e=this;getHostRef(this);if(!this.hasRegisteredEventListeners){this.hasRegisteredEventListeners=true}if(c){clearTimeout(c);c=null}if(v){f.push(this)}else{plt.jmp((function(){return connectedCallback(e)}))}};r.prototype.disconnectedCallback=function(){var e=this;plt.jmp((function(){return disconnectedCallback(e)}));plt.raf((function(){var r;var t=getHostRef(e);var n=f.findIndex((function(r){return r===e}));if(n>-1){f.splice(n,1)}if(((r=t==null?void 0:t.R)==null?void 0:r.A)instanceof Node&&!t.R.A.isConnected){delete t.R.A}}))};r.prototype.componentOnReady=function(){return getHostRef(this).l};return r}(HTMLElement);n.m=e[0];if(!a.includes(s)&&!o.get(s)){i.push(s);o.define(s,proxyComponent(u,n,1))}}))}));if(i.length>0){if(d){l.textContent+=SLOT_FB_CSS}{l.textContent+=i.sort()+HYDRATED_CSS}if(l.innerHTML.length){l.setAttribute("data-styles","");var p=(t=plt.D)!=null?t:queryNonceMetaTagContent(win.document);if(p!=null){l.setAttribute("nonce",p)}s.insertBefore(l,u?u.nextSibling:s.firstChild)}}v=false;if(f.length){f.map((function(e){return e.connectedCallback()}))}else{{plt.jmp((function(){return c=setTimeout(appDidLoad,30)}))}}n()};var setNonce=function(e){return plt.D=e};export{Host as H,bootstrapLazy as b,getElement as g,h,promiseResolve as p,registerInstance as r,setNonce as s};
|
package/dist/esm-es5/loader.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var __awaiter=this&&this.__awaiter||function(e,t,n,r){function i(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function s(e){try{
|
|
1
|
+
var __awaiter=this&&this.__awaiter||function(e,t,n,r){function i(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function s(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r["throw"](e))}catch(e){o(e)}}function c(e){e.done?n(e.value):i(e.value).then(s,a)}c((r=r.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,s;return s={next:a(0),throw:a(1),return:a(2)},typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(e){return function(t){return c([e,t])}}function c(a){if(r)throw new TypeError("Generator is already executing.");while(s&&(s=0,a[0]&&(n=0)),n)try{if(r=1,i&&(o=a[0]&2?i["return"]:a[0]?i["throw"]||((o=i["return"])&&o.call(i),0):i.next)&&!(o=o.call(i,a[1])).done)return o;if(i=0,o)a=[a[0]&2,o.value];switch(a[0]){case 0:case 1:o=a;break;case 4:n.label++;return{value:a[1],done:false};case 5:n.label++;i=a[1];a=[0];continue;case 7:a=n.ops.pop();n.trys.pop();continue;default:if(!(o=n.trys,o=o.length>0&&o[o.length-1])&&(a[0]===6||a[0]===2)){n=0;continue}if(a[0]===3&&(!o||a[1]>o[0]&&a[1]<o[3])){n.label=a[1];break}if(a[0]===6&&n.label<o[1]){n.label=o[1];o=a;break}if(o&&n.label<o[2]){n.label=o[2];n.ops.push(a);break}if(o[2])n.ops.pop();n.trys.pop();continue}a=t.call(e,n)}catch(e){a=[6,e];i=0}finally{r=o=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};import{b as bootstrapLazy}from"./index-bdcbc2fe.js";export{s as setNonce}from"./index-bdcbc2fe.js";import{g as globalScripts}from"./app-globals-0f993ce5.js";var defineCustomElements=function(e,t){return __awaiter(void 0,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:if(typeof window==="undefined")return[2,undefined];return[4,globalScripts()];case 1:e.sent();return[2,bootstrapLazy([["mds-progress",[[1,"mds-progress",{progress:[2],direction:[513],variant:[513],steps:[1],currentStep:[32]},null,{progress:["progressChanged"],steps:["stepsChanged"]}]]]],t)]}}))}))};export{defineCustomElements};
|