@ui5/webcomponents-base 0.0.0-0742854fd → 0.0.0-11d529e8a
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/.eslintignore +2 -0
- package/CHANGELOG.md +109 -0
- package/README.md +26 -1
- package/bundle.esm.js +13 -10
- package/dist/AssetRegistry.js +8 -7
- package/dist/Boot.js +43 -0
- package/dist/DOMObserver.js +65 -0
- package/dist/Device.js +58 -779
- package/dist/EventProvider.js +30 -26
- package/dist/FontFace.js +52 -7
- package/dist/InitialConfiguration.js +26 -21
- package/dist/Keys.js +51 -0
- package/dist/MediaRange.js +109 -0
- package/{src/util/parseProperties.js → dist/PropertiesFileFormat.js} +6 -0
- package/dist/Render.js +173 -0
- package/dist/RenderScheduler.js +16 -138
- package/dist/StaticArea.js +1 -29
- package/dist/StaticAreaItem.js +64 -65
- package/dist/Theming.js +2 -1
- package/dist/UI5Element.js +305 -374
- package/dist/UI5ElementMetadata.js +115 -16
- package/dist/asset-registries/Icons.js +110 -14
- package/dist/asset-registries/Illustrations.js +30 -0
- package/dist/asset-registries/LocaleData.js +90 -66
- package/dist/asset-registries/Themes.js +23 -33
- package/dist/asset-registries/i18n.js +61 -50
- package/dist/config/Language.js +18 -20
- package/dist/delegate/ItemNavigation.js +233 -201
- package/dist/delegate/ResizeHandler.js +78 -37
- package/dist/delegate/ScrollEnablement.js +49 -20
- package/dist/features/OpenUI5Support.js +41 -6
- package/dist/generated/AssetParameters.js +1 -1
- package/dist/i18nBundle.js +6 -2
- package/dist/isLegacyBrowser.js +3 -0
- package/dist/locale/applyDirection.js +6 -4
- package/dist/locale/directionChange.js +32 -0
- package/dist/locale/getEffectiveDir.js +28 -0
- package/dist/locale/getLocale.js +12 -2
- package/dist/locale/languageChange.js +1 -1
- package/dist/renderer/LitRenderer.js +19 -18
- package/dist/resources/bundle.esm.js +17 -109
- package/dist/resources/bundle.esm.js.map +1 -1
- package/dist/sap/base/Log.js +241 -0
- package/dist/sap/base/assert.js +8 -0
- package/dist/sap/base/security/URLListValidator.js +148 -0
- package/dist/sap/base/security/sanitizeHTML.js +16 -0
- package/dist/sap/base/util/now.js +7 -0
- package/dist/sap/ui/thirdparty/caja-html-sanitizer.js +3585 -0
- package/dist/test-resources/assets/Themes.js +8 -8
- package/dist/test-resources/elements/Parent.js +6 -2
- package/dist/test-resources/elements/WithStaticArea.js +2 -1
- package/dist/test-resources/pages/AllTestElements.html +3 -3
- package/dist/test-resources/pages/Configuration.html +0 -2
- package/dist/test-resources/pages/ConfigurationScript.html +0 -2
- package/dist/test-resources/pages/i18n.html +1 -6
- package/dist/test-resources/specs/ConfigurationChange.spec.js +10 -8
- package/dist/test-resources/specs/ConfigurationScript.spec.js +25 -23
- package/dist/test-resources/specs/ConfigurationURL.spec.js +65 -17
- package/dist/test-resources/specs/CustomTheme.spec.js +7 -5
- package/dist/test-resources/specs/EventProvider.spec.js +63 -0
- package/dist/test-resources/specs/StaticArea.spec.js +56 -12
- package/dist/test-resources/specs/Theming.spec.js +9 -7
- package/dist/test-resources/specs/UI5ElementInvalidation.js +54 -70
- package/dist/test-resources/specs/UI5ElementLifecycle.js +17 -15
- package/dist/test-resources/specs/UI5ElementListenForChildPropChanges.spec.js +25 -51
- package/dist/test-resources/specs/UI5ElementMetadataExt.js +9 -7
- package/dist/test-resources/specs/UI5ElementPropertyValidation.js +7 -5
- package/dist/test-resources/specs/UI5ElementPropsAndAttrs.spec.js +37 -35
- package/dist/test-resources/specs/UI5ElementShadowDOM.js +10 -8
- package/dist/test-resources/specs/UI5ElementSlots.js +10 -8
- package/dist/theming/CustomStyle.js +2 -2
- package/dist/theming/ThemeLoaded.js +22 -0
- package/dist/theming/applyTheme.js +2 -5
- package/dist/theming/getConstructableStyle.js +7 -6
- package/dist/theming/getEffectiveStyle.js +15 -8
- package/dist/theming/getStylesString.js +1 -1
- package/dist/types/CSSColor.js +9 -0
- package/dist/types/CalendarType.js +1 -1
- package/dist/types/DataType.js +13 -1
- package/dist/types/Float.js +4 -0
- package/dist/types/Integer.js +4 -0
- package/dist/types/InvisibleMessageMode.js +30 -0
- package/dist/types/ItemNavigationBehavior.js +2 -7
- package/dist/types/PopupState.js +1 -1
- package/dist/types/ValueState.js +1 -1
- package/dist/updateShadowRoot.js +26 -0
- package/dist/util/AriaLabelHelper.js +4 -4
- package/dist/util/Caret.js +45 -0
- package/dist/util/ColorConversion.js +370 -0
- package/dist/util/FocusableElements.js +17 -6
- package/dist/util/HTMLSanitizer.js +7 -0
- package/dist/util/InvisibleMessage.js +58 -0
- package/dist/util/PopupUtils.js +93 -0
- package/dist/util/SlotsHelper.js +43 -0
- package/dist/util/TabbableElements.js +1 -1
- package/dist/util/arraysAreEqual.js +15 -0
- package/dist/util/clamp.js +12 -0
- package/dist/util/debounce.js +17 -0
- package/dist/util/encodeCSS.js +24 -0
- package/dist/util/getActiveElement.js +11 -0
- package/dist/util/getClassCopy.js +10 -0
- package/dist/util/getEffectiveContentDensity.js +5 -0
- package/dist/util/isElementInView.js +15 -0
- package/dist/util/isNodeTabbable.js +4 -4
- package/hash.txt +1 -0
- package/index.js +1 -1
- package/package-scripts.js +33 -18
- package/package.json +20 -12
- package/src/AssetRegistry.js +8 -7
- package/src/Boot.js +43 -0
- package/src/DOMObserver.js +65 -0
- package/src/Device.js +58 -779
- package/src/EventProvider.js +30 -26
- package/src/FontFace.js +52 -7
- package/src/InitialConfiguration.js +26 -21
- package/src/Keys.js +51 -0
- package/src/MediaRange.js +109 -0
- package/{dist/util/parseProperties.js → src/PropertiesFileFormat.js} +6 -0
- package/src/Render.js +173 -0
- package/src/RenderScheduler.js +16 -138
- package/src/StaticArea.js +1 -29
- package/src/StaticAreaItem.js +64 -65
- package/src/Theming.js +2 -1
- package/src/UI5Element.js +305 -374
- package/src/UI5ElementMetadata.js +115 -16
- package/src/asset-registries/Icons.js +110 -14
- package/src/asset-registries/Illustrations.js +30 -0
- package/src/asset-registries/LocaleData.js +90 -66
- package/src/asset-registries/Themes.js +23 -33
- package/src/asset-registries/i18n.js +61 -50
- package/src/config/Language.js +18 -20
- package/src/delegate/ItemNavigation.js +233 -201
- package/src/delegate/ResizeHandler.js +78 -37
- package/src/delegate/ScrollEnablement.js +49 -20
- package/src/features/OpenUI5Support.js +41 -6
- package/src/i18nBundle.js +6 -2
- package/src/isLegacyBrowser.js +3 -0
- package/src/locale/applyDirection.js +6 -4
- package/src/locale/directionChange.js +32 -0
- package/src/locale/getEffectiveDir.js +28 -0
- package/src/locale/getLocale.js +12 -2
- package/src/locale/languageChange.js +1 -1
- package/src/renderer/LitRenderer.js +19 -18
- package/src/theming/CustomStyle.js +2 -2
- package/src/theming/ThemeLoaded.js +22 -0
- package/src/theming/applyTheme.js +2 -5
- package/src/theming/getConstructableStyle.js +7 -6
- package/src/theming/getEffectiveStyle.js +15 -8
- package/src/theming/getStylesString.js +1 -1
- package/src/types/CSSColor.js +9 -0
- package/src/types/CalendarType.js +1 -1
- package/src/types/DataType.js +13 -1
- package/src/types/Float.js +4 -0
- package/src/types/Integer.js +4 -0
- package/src/types/InvisibleMessageMode.js +30 -0
- package/src/types/ItemNavigationBehavior.js +2 -7
- package/src/types/PopupState.js +1 -1
- package/src/types/ValueState.js +1 -1
- package/src/updateShadowRoot.js +26 -0
- package/src/util/AriaLabelHelper.js +4 -4
- package/src/util/Caret.js +45 -0
- package/src/util/ColorConversion.js +370 -0
- package/src/util/FocusableElements.js +17 -6
- package/src/util/HTMLSanitizer.js +7 -0
- package/src/util/InvisibleMessage.js +58 -0
- package/src/util/PopupUtils.js +93 -0
- package/src/util/SlotsHelper.js +43 -0
- package/src/util/TabbableElements.js +1 -1
- package/src/util/arraysAreEqual.js +15 -0
- package/src/util/clamp.js +12 -0
- package/src/util/debounce.js +17 -0
- package/src/util/encodeCSS.js +24 -0
- package/src/util/getActiveElement.js +11 -0
- package/src/util/getClassCopy.js +10 -0
- package/src/util/getEffectiveContentDensity.js +5 -0
- package/src/util/isElementInView.js +15 -0
- package/src/util/isNodeTabbable.js +4 -4
- package/used-modules.txt +7 -0
- package/bundle.es5.js +0 -28
- package/dist/SVGIconRegistry.js +0 -62
- package/dist/boot.js +0 -34
- package/dist/compatibility/DOMObserver.js +0 -62
- package/dist/compatibility/patchNodeValue.js +0 -24
- package/dist/compatibility/whenPolyfillLoaded.js +0 -26
- package/dist/config/AssetsPath.js +0 -17
- package/dist/delegate/CustomResize.js +0 -78
- package/dist/delegate/NativeResize.js +0 -44
- package/dist/features/PropertiesFormatSupport.js +0 -8
- package/dist/features/browsersupport/Edge.js +0 -6
- package/dist/features/browsersupport/IE11.js +0 -41
- package/dist/features/browsersupport/IE11WithWebComponentsPolyfill.js +0 -5
- package/dist/renderer/ifDefined.js +0 -21
- package/dist/renderer/scopeHTML.js +0 -32
- package/dist/resources/bundle.es5.js +0 -212
- package/dist/resources/bundle.es5.js.map +0 -1
- package/dist/theming/CSSVarsPonyfill.js +0 -48
- package/dist/theming/adaptCSSForIE.js +0 -95
- package/dist/theming/createComponentStyleTag.js +0 -54
- package/dist/thirdparty/Array.from.js +0 -16
- package/dist/thirdparty/Array.prototype.fill.js +0 -44
- package/dist/thirdparty/Array.prototype.find.js +0 -46
- package/dist/thirdparty/Array.prototype.includes.js +0 -51
- package/dist/thirdparty/Element.prototype.closest.js +0 -11
- package/dist/thirdparty/Element.prototype.matches.js +0 -6
- package/dist/thirdparty/Map.prototype.keys.js +0 -9
- package/dist/thirdparty/Number.isInteger.js +0 -5
- package/dist/thirdparty/Number.isNaN.js +0 -1
- package/dist/thirdparty/Number.parseInt.js +0 -1
- package/dist/thirdparty/Object.assign.js +0 -31
- package/dist/thirdparty/Object.entries.js +0 -11
- package/dist/thirdparty/Symbol.js +0 -2
- package/dist/thirdparty/WeakSet.js +0 -27
- package/dist/thirdparty/es6-string-methods.js +0 -182
- package/dist/thirdparty/events-polyfills.js +0 -89
- package/dist/thirdparty/fetch.js +0 -1
- package/dist/thirdparty/template.js +0 -600
- package/dist/thirdparty/webcomponents-sd-ce-pf.js +0 -318
- package/dist/util/getEffectiveAssetPath.js +0 -12
- package/dist/util/isSlot.js +0 -3
- package/dist/webcomponentsjs/LICENSE.md +0 -19
- package/dist/webcomponentsjs/README.md +0 -229
- package/dist/webcomponentsjs/bundles/webcomponents-ce.js +0 -63
- package/dist/webcomponentsjs/bundles/webcomponents-ce.js.map +0 -1
- package/dist/webcomponentsjs/bundles/webcomponents-sd-ce-pf.js +0 -297
- package/dist/webcomponentsjs/bundles/webcomponents-sd-ce-pf.js.map +0 -1
- package/dist/webcomponentsjs/bundles/webcomponents-sd-ce.js +0 -208
- package/dist/webcomponentsjs/bundles/webcomponents-sd-ce.js.map +0 -1
- package/dist/webcomponentsjs/bundles/webcomponents-sd.js +0 -166
- package/dist/webcomponentsjs/bundles/webcomponents-sd.js.map +0 -1
- package/dist/webcomponentsjs/custom-elements-es5-adapter.js +0 -15
- package/dist/webcomponentsjs/package.json +0 -46
- package/dist/webcomponentsjs/src/entrypoints/custom-elements-es5-adapter-index.js +0 -16
- package/dist/webcomponentsjs/src/entrypoints/webcomponents-bundle-index.js +0 -53
- package/dist/webcomponentsjs/src/entrypoints/webcomponents-ce-index.js +0 -17
- package/dist/webcomponentsjs/src/entrypoints/webcomponents-sd-ce-index.js +0 -19
- package/dist/webcomponentsjs/src/entrypoints/webcomponents-sd-ce-pf-index.js +0 -28
- package/dist/webcomponentsjs/src/entrypoints/webcomponents-sd-index.js +0 -18
- package/dist/webcomponentsjs/webcomponents-bundle.js +0 -298
- package/dist/webcomponentsjs/webcomponents-bundle.js.map +0 -1
- package/dist/webcomponentsjs/webcomponents-loader.js +0 -185
- package/src/SVGIconRegistry.js +0 -62
- package/src/boot.js +0 -34
- package/src/compatibility/DOMObserver.js +0 -62
- package/src/compatibility/patchNodeValue.js +0 -24
- package/src/compatibility/whenPolyfillLoaded.js +0 -26
- package/src/config/AssetsPath.js +0 -17
- package/src/delegate/CustomResize.js +0 -78
- package/src/delegate/NativeResize.js +0 -44
- package/src/features/PropertiesFormatSupport.js +0 -8
- package/src/features/browsersupport/Edge.js +0 -6
- package/src/features/browsersupport/IE11.js +0 -41
- package/src/features/browsersupport/IE11WithWebComponentsPolyfill.js +0 -5
- package/src/renderer/ifDefined.js +0 -21
- package/src/renderer/scopeHTML.js +0 -32
- package/src/theming/CSSVarsPonyfill.js +0 -48
- package/src/theming/adaptCSSForIE.js +0 -95
- package/src/theming/createComponentStyleTag.js +0 -54
- package/src/thirdparty/Array.from.js +0 -16
- package/src/thirdparty/Array.prototype.fill.js +0 -44
- package/src/thirdparty/Array.prototype.find.js +0 -46
- package/src/thirdparty/Array.prototype.includes.js +0 -51
- package/src/thirdparty/Element.prototype.closest.js +0 -11
- package/src/thirdparty/Element.prototype.matches.js +0 -6
- package/src/thirdparty/Map.prototype.keys.js +0 -9
- package/src/thirdparty/Number.isInteger.js +0 -5
- package/src/thirdparty/Number.isNaN.js +0 -1
- package/src/thirdparty/Number.parseInt.js +0 -1
- package/src/thirdparty/Object.assign.js +0 -31
- package/src/thirdparty/Object.entries.js +0 -11
- package/src/thirdparty/Symbol.js +0 -2
- package/src/thirdparty/WeakSet.js +0 -27
- package/src/thirdparty/es6-string-methods.js +0 -182
- package/src/thirdparty/events-polyfills.js +0 -89
- package/src/thirdparty/fetch.js +0 -1
- package/src/thirdparty/template.js +0 -600
- package/src/thirdparty/webcomponents-sd-ce-pf.js +0 -318
- package/src/util/getEffectiveAssetPath.js +0 -12
- package/src/util/isSlot.js +0 -3
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
// CSS Custom Properties
|
|
2
|
-
import cssVars from "css-vars-ponyfill/dist/css-vars-ponyfill.esm.js";
|
|
3
|
-
|
|
4
|
-
// String
|
|
5
|
-
import "../../thirdparty/es6-string-methods.js";
|
|
6
|
-
|
|
7
|
-
// Object
|
|
8
|
-
import "../../thirdparty/Object.entries.js";
|
|
9
|
-
|
|
10
|
-
// Array
|
|
11
|
-
import "../../thirdparty/Array.prototype.fill.js";
|
|
12
|
-
import "../../thirdparty/Array.prototype.find.js";
|
|
13
|
-
import "../../thirdparty/Array.prototype.includes.js";
|
|
14
|
-
|
|
15
|
-
// Map
|
|
16
|
-
import "../../thirdparty/Map.prototype.keys.js";
|
|
17
|
-
|
|
18
|
-
// Number
|
|
19
|
-
import "../../thirdparty/Number.isInteger.js";
|
|
20
|
-
import "../../thirdparty/Number.isNaN.js";
|
|
21
|
-
import "../../thirdparty/Number.parseInt.js";
|
|
22
|
-
|
|
23
|
-
// Element
|
|
24
|
-
import "../../thirdparty/Element.prototype.matches.js";
|
|
25
|
-
import "../../thirdparty/Element.prototype.closest.js";
|
|
26
|
-
|
|
27
|
-
// WeakSet
|
|
28
|
-
import "../../thirdparty/WeakSet.js";
|
|
29
|
-
|
|
30
|
-
// fetch
|
|
31
|
-
import "../../thirdparty/fetch.js";
|
|
32
|
-
|
|
33
|
-
// async - await
|
|
34
|
-
import "regenerator-runtime/runtime.js";
|
|
35
|
-
|
|
36
|
-
// Plus all polyfills needed for Edge are also needed for IE11
|
|
37
|
-
import "./Edge.js";
|
|
38
|
-
|
|
39
|
-
window.CSSVarsPonyfill = {
|
|
40
|
-
cssVars,
|
|
41
|
-
};
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
AttributePart,
|
|
3
|
-
directive,
|
|
4
|
-
noChange,
|
|
5
|
-
} from "lit-html/lit-html.js";
|
|
6
|
-
|
|
7
|
-
/*
|
|
8
|
-
lit-html directive that removes and attribute if it is undefined
|
|
9
|
-
*/
|
|
10
|
-
export default directive(value => part => {
|
|
11
|
-
if ((value === undefined) && part instanceof AttributePart) {
|
|
12
|
-
if (value !== part.value) {
|
|
13
|
-
const name = part.committer.name;
|
|
14
|
-
part.committer.element.removeAttribute(name);
|
|
15
|
-
}
|
|
16
|
-
} else if (part.committer && part.committer.element && part.committer.element.getAttribute(part.committer.name) === value) {
|
|
17
|
-
part.setValue(noChange);
|
|
18
|
-
} else {
|
|
19
|
-
part.setValue(value);
|
|
20
|
-
}
|
|
21
|
-
});
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
const cache = new Map();
|
|
2
|
-
|
|
3
|
-
const scopeHTML = (strings, tags, suffix) => {
|
|
4
|
-
if (suffix && tags && tags.length) {
|
|
5
|
-
strings = strings.map(string => {
|
|
6
|
-
if (cache.has(string)) {
|
|
7
|
-
return cache.get(string);
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
/*
|
|
11
|
-
const allTags = [...string.matchAll(/<(ui5-.*?)[> ]/g)].map(x => x[1]);
|
|
12
|
-
allTags.forEach(t => {
|
|
13
|
-
if (!tags.includes(t)) {
|
|
14
|
-
throw new Error(`${t} not found in ${string}`);
|
|
15
|
-
// console.log(t, " in ", string);
|
|
16
|
-
}
|
|
17
|
-
});
|
|
18
|
-
*/
|
|
19
|
-
|
|
20
|
-
let result = string;
|
|
21
|
-
tags.forEach(tag => {
|
|
22
|
-
result = result.replace(new RegExp(`(</?)(${tag})(/?[> \t\n])`, "g"), `$1$2-${suffix}$3`);
|
|
23
|
-
});
|
|
24
|
-
cache.set(string, result);
|
|
25
|
-
return result;
|
|
26
|
-
});
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
return strings;
|
|
30
|
-
};
|
|
31
|
-
|
|
32
|
-
export default scopeHTML;
|
|
@@ -1,212 +0,0 @@
|
|
|
1
|
-
!function(t){"use strict";
|
|
2
|
-
/*!
|
|
3
|
-
* css-vars-ponyfill
|
|
4
|
-
* v2.1.2
|
|
5
|
-
* https://jhildenbiddle.github.io/css-vars-ponyfill/
|
|
6
|
-
* (c) 2018-2019 John Hildenbiddle <http://hildenbiddle.com>
|
|
7
|
-
* MIT license
|
|
8
|
-
*/function e(){return(e=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}function n(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}
|
|
9
|
-
/*!
|
|
10
|
-
* get-css-data
|
|
11
|
-
* v1.6.3
|
|
12
|
-
* https://github.com/jhildenbiddle/get-css-data
|
|
13
|
-
* (c) 2018-2019 John Hildenbiddle <http://hildenbiddle.com>
|
|
14
|
-
* MIT license
|
|
15
|
-
*/()}function r(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={mimeType:e.mimeType||null,onBeforeSend:e.onBeforeSend||Function.prototype,onSuccess:e.onSuccess||Function.prototype,onError:e.onError||Function.prototype,onComplete:e.onComplete||Function.prototype},r=Array.isArray(t)?t:[t],o=Array.apply(null,Array(r.length)).map((function(t){return null}));function i(){return!("<"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").trim().charAt(0))}function a(t,e){n.onError(t,r[e],e)}function s(t,e){var i=n.onSuccess(t,r[e],e);t=!1===i?"":i||t,o[e]=t,-1===o.indexOf(null)&&n.onComplete(o)}var u=document.createElement("a");r.forEach((function(t,e){if(u.setAttribute("href",t),u.href=String(u.href),Boolean(document.all&&!window.atob)&&u.host.split(":")[0]!==location.host.split(":")[0]){if(u.protocol===location.protocol){var r=new XDomainRequest;r.open("GET",t),r.timeout=0,r.onprogress=Function.prototype,r.ontimeout=Function.prototype,r.onload=function(){i(r.responseText)?s(r.responseText,e):a(r,e)},r.onerror=function(t){a(r,e)},setTimeout((function(){r.send()}),0)}else console.warn("Internet Explorer 9 Cross-Origin (CORS) requests must use the same protocol (".concat(t,")")),a(null,e)}else{var o=new XMLHttpRequest;o.open("GET",t),n.mimeType&&o.overrideMimeType&&o.overrideMimeType(n.mimeType),n.onBeforeSend(o,t,e),o.onreadystatechange=function(){4===o.readyState&&(200===o.status&&i(o.responseText)?s(o.responseText,e):a(o,e))},o.send()}}))}
|
|
16
|
-
/**
|
|
17
|
-
* Gets CSS data from <style> and <link> nodes (including @imports), then
|
|
18
|
-
* returns data in order processed by DOM. Allows specifying nodes to
|
|
19
|
-
* include/exclude and filtering CSS data using RegEx.
|
|
20
|
-
*
|
|
21
|
-
* @preserve
|
|
22
|
-
* @param {object} [options] The options object
|
|
23
|
-
* @param {object} [options.rootElement=document] Root element to traverse for
|
|
24
|
-
* <link> and <style> nodes.
|
|
25
|
-
* @param {string} [options.include] CSS selector matching <link> and <style>
|
|
26
|
-
* nodes to include
|
|
27
|
-
* @param {string} [options.exclude] CSS selector matching <link> and <style>
|
|
28
|
-
* nodes to exclude
|
|
29
|
-
* @param {object} [options.filter] Regular expression used to filter node CSS
|
|
30
|
-
* data. Each block of CSS data is tested against the filter,
|
|
31
|
-
* and only matching data is included.
|
|
32
|
-
* @param {object} [options.useCSSOM=false] Determines if CSS data will be
|
|
33
|
-
* collected from a stylesheet's runtime values instead of its
|
|
34
|
-
* text content. This is required to get accurate CSS data
|
|
35
|
-
* when a stylesheet has been modified using the deleteRule()
|
|
36
|
-
* or insertRule() methods because these modifications will
|
|
37
|
-
* not be reflected in the stylesheet's text content.
|
|
38
|
-
* @param {function} [options.onBeforeSend] Callback before XHR is sent. Passes
|
|
39
|
-
* 1) the XHR object, 2) source node reference, and 3) the
|
|
40
|
-
* source URL as arguments.
|
|
41
|
-
* @param {function} [options.onSuccess] Callback on each CSS node read. Passes
|
|
42
|
-
* 1) CSS text, 2) source node reference, and 3) the source
|
|
43
|
-
* URL as arguments.
|
|
44
|
-
* @param {function} [options.onError] Callback on each error. Passes 1) the XHR
|
|
45
|
-
* object for inspection, 2) soure node reference, and 3) the
|
|
46
|
-
* source URL that failed (either a <link> href or an @import)
|
|
47
|
-
* as arguments
|
|
48
|
-
* @param {function} [options.onComplete] Callback after all nodes have been
|
|
49
|
-
* processed. Passes 1) concatenated CSS text, 2) an array of
|
|
50
|
-
* CSS text in DOM order, and 3) an array of nodes in DOM
|
|
51
|
-
* order as arguments.
|
|
52
|
-
*
|
|
53
|
-
* @example
|
|
54
|
-
*
|
|
55
|
-
* getCssData({
|
|
56
|
-
* rootElement: document,
|
|
57
|
-
* include : 'style,link[rel="stylesheet"]',
|
|
58
|
-
* exclude : '[href="skip.css"]',
|
|
59
|
-
* filter : /red/,
|
|
60
|
-
* useCSSOM : false,
|
|
61
|
-
* onBeforeSend(xhr, node, url) {
|
|
62
|
-
* // ...
|
|
63
|
-
* }
|
|
64
|
-
* onSuccess(cssText, node, url) {
|
|
65
|
-
* // ...
|
|
66
|
-
* }
|
|
67
|
-
* onError(xhr, node, url) {
|
|
68
|
-
* // ...
|
|
69
|
-
* },
|
|
70
|
-
* onComplete(cssText, cssArray, nodeArray) {
|
|
71
|
-
* // ...
|
|
72
|
-
* }
|
|
73
|
-
* });
|
|
74
|
-
*/function o(t){var e={cssComments:/\/\*[\s\S]+?\*\//g,cssImports:/(?:@import\s*)(?:url\(\s*)?(?:['"])([^'"]*)(?:['"])(?:\s*\))?(?:[^;]*;)/g},n={rootElement:t.rootElement||document,include:t.include||'style,link[rel="stylesheet"]',exclude:t.exclude||null,filter:t.filter||null,useCSSOM:t.useCSSOM||!1,onBeforeSend:t.onBeforeSend||Function.prototype,onSuccess:t.onSuccess||Function.prototype,onError:t.onError||Function.prototype,onComplete:t.onComplete||Function.prototype},o=Array.apply(null,n.rootElement.querySelectorAll(n.include)).filter((function(t){return e=t,r=n.exclude,!(e.matches||e.matchesSelector||e.webkitMatchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector).call(e,r);var e,r})),a=Array.apply(null,Array(o.length)).map((function(t){return null}));function s(){if(-1===a.indexOf(null)){var t=a.join("");n.onComplete(t,a,o)}}function u(t,e,o,i){var u=n.onSuccess(t,o,i);(function t(e,o,i,a){var s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[],u=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[],l=c(e,i,u);l.rules.length?r(l.absoluteUrls,{onBeforeSend:function(t,e,r){n.onBeforeSend(t,o,e)},onSuccess:function(t,e,r){var i=n.onSuccess(t,o,e),a=c(t=!1===i?"":i||t,e,u);return a.rules.forEach((function(e,n){t=t.replace(e,a.absoluteRules[n])})),t},onError:function(n,r,c){s.push({xhr:n,url:r}),u.push(l.rules[c]),t(e,o,i,a,s,u)},onComplete:function(n){n.forEach((function(t,n){e=e.replace(l.rules[n],t)})),t(e,o,i,a,s,u)}}):a(e,s)})(t=void 0!==u&&!1===Boolean(u)?"":u||t,o,i,(function(t,r){null===a[e]&&(r.forEach((function(t){return n.onError(t.xhr,o,t.url)})),!n.filter||n.filter.test(t)?a[e]=t:a[e]="",s())}))}function c(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],o={};return o.rules=(t.replace(e.cssComments,"").match(e.cssImports)||[]).filter((function(t){return-1===r.indexOf(t)})),o.urls=o.rules.map((function(t){return t.replace(e.cssImports,"$1")})),o.absoluteUrls=o.urls.map((function(t){return i(t,n)})),o.absoluteRules=o.rules.map((function(t,e){var r=o.urls[e],a=i(o.absoluteUrls[e],n);return t.replace(r,a)})),o}o.length?o.forEach((function(t,e){var o=t.getAttribute("href"),c=t.getAttribute("rel"),l="LINK"===t.nodeName&&o&&c&&"stylesheet"===c.toLowerCase(),f="STYLE"===t.nodeName;if(l)r(o,{mimeType:"text/css",onBeforeSend:function(e,r,o){n.onBeforeSend(e,t,r)},onSuccess:function(n,r,a){var s=i(o,location.href);u(n,e,t,s)},onError:function(r,o,i){a[e]="",n.onError(r,t,o),s()}});else if(f){var h=t.textContent;n.useCSSOM&&(h=Array.apply(null,t.sheet.cssRules).map((function(t){return t.cssText})).join("")),u(h,e,t,location.href)}else a[e]="",s()})):n.onComplete("",[])}function i(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:location.href,n=document.implementation.createHTMLDocument(""),r=n.createElement("base"),o=n.createElement("a");return n.head.appendChild(r),n.body.appendChild(o),r.href=e,o.href=t,o.href}var a=s;function s(t,e,n){t instanceof RegExp&&(t=u(t,n)),e instanceof RegExp&&(e=u(e,n));var r=c(t,e,n);return r&&{start:r[0],end:r[1],pre:n.slice(0,r[0]),body:n.slice(r[0]+t.length,r[1]),post:n.slice(r[1]+e.length)}}function u(t,e){var n=e.match(t);return n?n[0]:null}function c(t,e,n){var r,o,i,a,s,u=n.indexOf(t),c=n.indexOf(e,u+1),l=u;if(u>=0&&c>0){for(r=[],i=n.length;l>=0&&!s;)l==u?(r.push(l),u=n.indexOf(t,l+1)):1==r.length?s=[r.pop(),c]:((o=r.pop())<i&&(i=o,a=c),c=n.indexOf(e,l+1)),l=u<c&&u>=0?u:c;r.length&&(s=[i,a])}return s}function l(t){var n=e({},{preserveStatic:!0,removeComments:!1},arguments.length>1&&void 0!==arguments[1]?arguments[1]:{});function r(t){throw new Error("CSS parse error: ".concat(t))}function o(e){var n=e.exec(t);if(n)return t=t.slice(n[0].length),n}function i(){return o(/^{\s*/)}function s(){return o(/^}/)}function u(){o(/^\s*/)}function c(){if(u(),"/"===t[0]&&"*"===t[1]){for(var e=2;t[e]&&("*"!==t[e]||"/"!==t[e+1]);)e++;if(!t[e])return r("end of comment is missing");var n=t.slice(2,e);return t=t.slice(e+2),{type:"comment",comment:n}}}function l(){for(var t,e=[];t=c();)e.push(t);return n.removeComments?[]:e}function f(){for(u();"}"===t[0];)r("extra closing bracket");var e=o(/^(("(?:\\"|[^"])*"|'(?:\\'|[^'])*'|[^{])+)/);if(e)return e[0].trim().replace(/\/\*([^*]|[\r\n]|(\*+([^*\/]|[\r\n])))*\*\/+/g,"").replace(/"(?:\\"|[^"])*"|'(?:\\'|[^'])*'/g,(function(t){return t.replace(/,/g,"")})).split(/\s*(?![^(]*\)),\s*/).map((function(t){return t.replace(/\u200C/g,",")}))}function h(){o(/^([;\s]*)+/);var t=/\/\*[^*]*\*+([^\/*][^*]*\*+)*\//g,e=o(/^(\*?[-#\/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/);if(e){if(e=e[0].trim(),!o(/^:\s*/))return r("property missing ':'");var n=o(/^((?:\/\*.*?\*\/|'(?:\\'|.)*?'|"(?:\\"|.)*?"|\((\s*'(?:\\'|.)*?'|"(?:\\"|.)*?"|[^)]*?)\s*\)|[^};])+)/),i={type:"declaration",property:e.replace(t,""),value:n?n[0].replace(t,"").trim():""};return o(/^[;\s]*/),i}}function d(){if(!i())return r("missing '{'");for(var t,e=l();t=h();)e.push(t),e=e.concat(l());return s()?e:r("missing '}'")}function p(){u();for(var t,e=[];t=o(/^((\d+\.\d+|\.\d+|\d+)%?|[a-z]+)\s*/);)e.push(t[1]),o(/^,\s*/);if(e.length)return{type:"keyframe",values:e,declarations:d()}}function v(){if(u(),"@"===t[0]){var e=function(){var t=o(/^@([-\w]+)?keyframes\s*/);if(t){var e=t[1];if(!(t=o(/^([-\w]+)\s*/)))return r("@keyframes missing name");var n,a=t[1];if(!i())return r("@keyframes missing '{'");for(var u=l();n=p();)u.push(n),u=u.concat(l());return s()?{type:"keyframes",name:a,vendor:e,keyframes:u}:r("@keyframes missing '}'")}}()||function(){var t=o(/^@supports *([^{]+)/);if(t)return{type:"supports",supports:t[1].trim(),rules:g()}}()||function(){if(o(/^@host\s*/))return{type:"host",rules:g()}}()||function(){var t=o(/^@media([^{]+)*/);if(t)return{type:"media",media:(t[1]||"").trim(),rules:g()}}()||function(){var t=o(/^@custom-media\s+(--[^\s]+)\s*([^{;]+);/);if(t)return{type:"custom-media",name:t[1].trim(),media:t[2].trim()}}()||function(){if(o(/^@page */))return{type:"page",selectors:f()||[],declarations:d()}}()||function(){var t=o(/^@([-\w]+)?document *([^{]+)/);if(t)return{type:"document",document:t[2].trim(),vendor:t[1]?t[1].trim():null,rules:g()}}()||function(){if(o(/^@font-face\s*/))return{type:"font-face",declarations:d()}}()||function(){var t=o(/^@(import|charset|namespace)\s*([^;]+);/);if(t)return{type:t[1],name:t[2].trim()}}();if(e&&!n.preserveStatic){var a=!1;if(e.declarations)a=e.declarations.some((function(t){return/var\(/.test(t.value)}));else a=(e.keyframes||e.rules||[]).some((function(t){return(t.declarations||[]).some((function(t){return/var\(/.test(t.value)}))}));return a?e:{}}return e}}function m(){if(!n.preserveStatic){var e=a("{","}",t);if(e){var o=/:(?:root|host)(?![.:#(])/.test(e.pre)&&/--\S*\s*:/.test(e.body),i=/var\(/.test(e.body);if(!o&&!i)return t=t.slice(e.end+1),{}}}var s=f()||[],u=n.preserveStatic?d():d().filter((function(t){var e=s.some((function(t){return/:(?:root|host)(?![.:#(])/.test(t)}))&&/^--\S/.test(t.property),n=/var\(/.test(t.value);return e||n}));return s.length||r("selector missing"),{type:"rule",selectors:s,declarations:u}}function g(e){if(!e&&!i())return r("missing '{'");for(var n,o=l();t.length&&(e||"}"!==t[0])&&(n=v()||m());)n.type&&o.push(n),o=o.concat(l());return e||s()?o:r("missing '}'")}return{type:"stylesheet",stylesheet:{rules:g(!0),errors:[]}}}function f(t){var n=e({},{parseHost:!1,store:{},onWarning:function(){}},arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}),r=new RegExp(":".concat(n.parseHost?"host":"root","(?![.:#(])"));return"string"==typeof t&&(t=l(t,n)),t.stylesheet.rules.forEach((function(t){"rule"===t.type&&t.selectors.some((function(t){return r.test(t)}))&&t.declarations.forEach((function(t,e){var r=t.property,o=t.value;r&&0===r.indexOf("--")&&(n.store[r]=o)}))})),n.store}function h(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2?arguments[2]:void 0,r={charset:function(t){return"@charset "+t.name+";"},comment:function(t){return 0===t.comment.indexOf("__CSSVARSPONYFILL")?"/*"+t.comment+"*/":""},"custom-media":function(t){return"@custom-media "+t.name+" "+t.media+";"},declaration:function(t){return t.property+":"+t.value+";"},document:function(t){return"@"+(t.vendor||"")+"document "+t.document+"{"+o(t.rules)+"}"},"font-face":function(t){return"@font-face{"+o(t.declarations)+"}"},host:function(t){return"@host{"+o(t.rules)+"}"},import:function(t){return"@import "+t.name+";"},keyframe:function(t){return t.values.join(",")+"{"+o(t.declarations)+"}"},keyframes:function(t){return"@"+(t.vendor||"")+"keyframes "+t.name+"{"+o(t.keyframes)+"}"},media:function(t){return"@media "+t.media+"{"+o(t.rules)+"}"},namespace:function(t){return"@namespace "+t.name+";"},page:function(t){return"@page "+(t.selectors.length?t.selectors.join(", "):"")+"{"+o(t.declarations)+"}"},rule:function(t){var e=t.declarations;if(e.length)return t.selectors.join(",")+"{"+o(e)+"}"},supports:function(t){return"@supports "+t.supports+"{"+o(t.rules)+"}"}};function o(t){for(var o="",i=0;i<t.length;i++){var a=t[i];n&&n(a);var s=r[a.type](a);s&&(o+=s,s.length&&a.selectors&&(o+=e))}return o}return o(t.stylesheet.rules)}s.range=c;var d="--",p="var";function v(t){var n=e({},{preserveStatic:!0,preserveVars:!1,variables:{},onWarning:function(){}},arguments.length>1&&void 0!==arguments[1]?arguments[1]:{});return"string"==typeof t&&(t=l(t,n)),function t(e,n){e.rules.forEach((function(r){r.rules?t(r,n):r.keyframes?r.keyframes.forEach((function(t){"keyframe"===t.type&&n(t.declarations,r)})):r.declarations&&n(r.declarations,e)}))}(t.stylesheet,(function(t,e){for(var r=0;r<t.length;r++){var o=t[r],i=o.type,a=o.property,s=o.value;if("declaration"===i)if(n.preserveVars||!a||0!==a.indexOf(d)){if(-1!==s.indexOf(p+"(")){var u=g(s,n);u!==o.value&&(u=m(u),n.preserveVars?(t.splice(r,0,{type:i,property:a,value:u}),r++):o.value=u)}}else t.splice(r,1),r--}})),h(t)}function m(t){return(t.match(/calc\(([^)]+)\)/g)||[]).forEach((function(e){var n="calc".concat(e.split("calc").join(""));t=t.replace(e,n)})),t}function g(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;if(-1===t.indexOf("var("))return t;var r=a("(",")",t);return r?"var"===r.pre.slice(-3)?0===r.body.trim().length?(e.onWarning("var() must contain a non-whitespace string"),t):r.pre.slice(0,-3)+function(t){var r=t.split(",")[0].replace(/[\s\n\t]/g,""),o=(t.match(/(?:\s*,\s*){1}(.*)?/)||[])[1],i=Object.prototype.hasOwnProperty.call(e.variables,r)?String(e.variables[r]):void 0,a=i||(o?String(o):void 0),s=n||t;return i||e.onWarning('variable "'.concat(r,'" is undefined')),a&&"undefined"!==a&&a.length>0?g(a,e,s):"var(".concat(s,")")}(r.body)+g(r.post,e):r.pre+"(".concat(g(r.body,e),")")+g(r.post,e):(-1!==t.indexOf("var(")&&e.onWarning('missing closing ")" in the value "'.concat(t,'"')),t)}var y="undefined"!=typeof window,w=y&&window.CSS&&window.CSS.supports&&window.CSS.supports("(--a: 0)"),b={group:0,job:0},_={rootElement:y?document:null,shadowDOM:!1,include:"style,link[rel=stylesheet]",exclude:"",variables:{},onlyLegacy:!0,preserveStatic:!0,preserveVars:!1,silent:!1,updateDOM:!0,updateURLs:!0,watch:null,onBeforeSend:function(){},onWarning:function(){},onError:function(){},onSuccess:function(){},onComplete:function(){}},S={cssComments:/\/\*[\s\S]+?\*\//g,cssKeyframes:/@(?:-\w*-)?keyframes/,cssMediaQueries:/@media[^{]+\{([\s\S]+?})\s*}/g,cssUrls:/url\((?!['"]?(?:data|http|\/\/):)['"]?([^'")]*)['"]?\)/g,cssVarDeclRules:/(?::(?:root|host)(?![.:#(])[\s,]*[^{]*{\s*[^}]*})/g,cssVarDecls:/(?:[\s;]*)(-{2}\w[\w-]*)(?:\s*:\s*)([^;]*);/g,cssVarFunc:/var\(\s*--[\w-]/,cssVars:/(?:(?::(?:root|host)(?![.:#(])[\s,]*[^{]*{\s*[^;]*;*\s*)|(?:var\(\s*))(--[^:)]+)(?:\s*[:)])/},k={dom:{},job:{},user:{}},x=!1,E=null,A=0,O=null,C=!1;
|
|
75
|
-
/**
|
|
76
|
-
* Fetches, parses, and transforms CSS custom properties from specified
|
|
77
|
-
* <style> and <link> elements into static values, then appends a new <style>
|
|
78
|
-
* element with static values to the DOM to provide CSS custom property
|
|
79
|
-
* compatibility for legacy browsers. Also provides a single interface for
|
|
80
|
-
* live updates of runtime values in both modern and legacy browsers.
|
|
81
|
-
*
|
|
82
|
-
* @preserve
|
|
83
|
-
* @param {object} [options] Options object
|
|
84
|
-
* @param {object} [options.rootElement=document] Root element to traverse for
|
|
85
|
-
* <link> and <style> nodes
|
|
86
|
-
* @param {boolean} [options.shadowDOM=false] Determines if shadow DOM <link>
|
|
87
|
-
* and <style> nodes will be processed.
|
|
88
|
-
* @param {string} [options.include="style,link[rel=stylesheet]"] CSS selector
|
|
89
|
-
* matching <link re="stylesheet"> and <style> nodes to
|
|
90
|
-
* process
|
|
91
|
-
* @param {string} [options.exclude] CSS selector matching <link
|
|
92
|
-
* rel="stylehseet"> and <style> nodes to exclude from those
|
|
93
|
-
* matches by options.include
|
|
94
|
-
* @param {object} [options.variables] A map of custom property name/value
|
|
95
|
-
* pairs. Property names can omit or include the leading
|
|
96
|
-
* double-hyphen (—), and values specified will override
|
|
97
|
-
* previous values
|
|
98
|
-
* @param {boolean} [options.onlyLegacy=true] Determines if the ponyfill will
|
|
99
|
-
* only generate legacy-compatible CSS in browsers that lack
|
|
100
|
-
* native support (i.e., legacy browsers)
|
|
101
|
-
* @param {boolean} [options.preserveStatic=true] Determines if CSS
|
|
102
|
-
* declarations that do not reference a custom property will
|
|
103
|
-
* be preserved in the transformed CSS
|
|
104
|
-
* @param {boolean} [options.preserveVars=false] Determines if CSS custom
|
|
105
|
-
* property declarations will be preserved in the transformed
|
|
106
|
-
* CSS
|
|
107
|
-
* @param {boolean} [options.silent=false] Determines if warning and error
|
|
108
|
-
* messages will be displayed on the console
|
|
109
|
-
* @param {boolean} [options.updateDOM=true] Determines if the ponyfill will
|
|
110
|
-
* update the DOM after processing CSS custom properties
|
|
111
|
-
* @param {boolean} [options.updateURLs=true] Determines if the ponyfill will
|
|
112
|
-
* convert relative url() paths to absolute urls
|
|
113
|
-
* @param {boolean} [options.watch=false] Determines if a MutationObserver will
|
|
114
|
-
* be created that will execute the ponyfill when a <link> or
|
|
115
|
-
* <style> DOM mutation is observed
|
|
116
|
-
* @param {function} [options.onBeforeSend] Callback before XHR is sent. Passes
|
|
117
|
-
* 1) the XHR object, 2) source node reference, and 3) the
|
|
118
|
-
* source URL as arguments
|
|
119
|
-
* @param {function} [options.onWarning] Callback after each CSS parsing warning
|
|
120
|
-
* has occurred. Passes 1) a warning message as an argument.
|
|
121
|
-
* @param {function} [options.onError] Callback after a CSS parsing error has
|
|
122
|
-
* occurred or an XHR request has failed. Passes 1) an error
|
|
123
|
-
* message, and 2) source node reference, 3) xhr, and 4 url as
|
|
124
|
-
* arguments.
|
|
125
|
-
* @param {function} [options.onSuccess] Callback after CSS data has been
|
|
126
|
-
* collected from each node and before CSS custom properties
|
|
127
|
-
* have been transformed. Allows modifying the CSS data before
|
|
128
|
-
* it is transformed by returning any string value (or false
|
|
129
|
-
* to skip). Passes 1) CSS text, 2) source node reference, and
|
|
130
|
-
* 3) the source URL as arguments.
|
|
131
|
-
* @param {function} [options.onComplete] Callback after all CSS has been
|
|
132
|
-
* processed, legacy-compatible CSS has been generated, and
|
|
133
|
-
* (optionally) the DOM has been updated. Passes 1) a CSS
|
|
134
|
-
* string with CSS variable values resolved, 2) an array of
|
|
135
|
-
* output <style> node references that have been appended to
|
|
136
|
-
* the DOM, 3) an object containing all custom properies names
|
|
137
|
-
* and values, and 4) the ponyfill execution time in
|
|
138
|
-
* milliseconds.
|
|
139
|
-
*
|
|
140
|
-
* @example
|
|
141
|
-
*
|
|
142
|
-
* cssVars({
|
|
143
|
-
* rootElement : document,
|
|
144
|
-
* shadowDOM : false,
|
|
145
|
-
* include : 'style,link[rel="stylesheet"]',
|
|
146
|
-
* exclude : '',
|
|
147
|
-
* variables : {},
|
|
148
|
-
* onlyLegacy : true,
|
|
149
|
-
* preserveStatic: true,
|
|
150
|
-
* preserveVars : false,
|
|
151
|
-
* silent : false,
|
|
152
|
-
* updateDOM : true,
|
|
153
|
-
* updateURLs : true,
|
|
154
|
-
* watch : false,
|
|
155
|
-
* onBeforeSend(xhr, node, url) {},
|
|
156
|
-
* onWarning(message) {},
|
|
157
|
-
* onError(message, node, xhr, url) {},
|
|
158
|
-
* onSuccess(cssText, node, url) {},
|
|
159
|
-
* onComplete(cssText, styleNode, cssVariables, benchmark) {}
|
|
160
|
-
* });
|
|
161
|
-
*/
|
|
162
|
-
function R(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r="cssVars(): ",i=e({},_,t);function a(t,e,n,o){!i.silent&&window.console&&console.error("".concat(r).concat(t,"\n"),e),i.onError(t,e,n,o)}function s(t){!i.silent&&window.console&&console.warn("".concat(r).concat(t)),i.onWarning(t)}if(y){if(i.watch)return i.watch=_.watch,function(t){function e(t){return"LINK"===t.tagName&&-1!==(t.getAttribute("rel")||"").indexOf("stylesheet")&&!t.disabled}if(!window.MutationObserver)return;E&&(E.disconnect(),E=null);(E=new MutationObserver((function(n){n.some((function(n){var r,o=!1;return"attributes"===n.type?o=e(n.target):"childList"===n.type&&(r=n.addedNodes,o=Array.apply(null,r).some((function(t){var n=1===t.nodeType&&t.hasAttribute("data-cssvars"),r=function(t){return"STYLE"===t.tagName&&!t.disabled}(t)&&S.cssVars.test(t.textContent);return!n&&(e(t)||r)}))||function(e){return Array.apply(null,e).some((function(e){var n=1===e.nodeType,r=n&&"out"===e.getAttribute("data-cssvars"),o=n&&"src"===e.getAttribute("data-cssvars"),i=o;if(o||r){var a=e.getAttribute("data-cssvars-group"),s=t.rootElement.querySelector('[data-cssvars-group="'.concat(a,'"]'));o&&(T(t.rootElement),k.dom={}),s&&s.parentNode.removeChild(s)}return i}))}(n.removedNodes)),o}))&&R(t)}))).observe(document.documentElement,{attributes:!0,attributeFilter:["disabled","href"],childList:!0,subtree:!0})}(i),void R(i);if(!1===i.watch&&E&&(E.disconnect(),E=null),!i.__benchmark){if(x===i.rootElement)return void function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100;clearTimeout(O),O=setTimeout((function(){t.__benchmark=null,R(t)}),e)}(t);if(i.__benchmark=L(),i.exclude=[E?'[data-cssvars]:not([data-cssvars=""])':'[data-cssvars="out"]',i.exclude].filter((function(t){return t})).join(","),i.variables=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=/^-{2}/;return Object.keys(t).reduce((function(n,r){return n[e.test(r)?r:"--".concat(r.replace(/^-+/,""))]=t[r],n}),{})}(i.variables),!E)if(Array.apply(null,i.rootElement.querySelectorAll('[data-cssvars="out"]')).forEach((function(t){var e=t.getAttribute("data-cssvars-group");(e?i.rootElement.querySelector('[data-cssvars="src"][data-cssvars-group="'.concat(e,'"]')):null)||t.parentNode.removeChild(t)})),A){var u=i.rootElement.querySelectorAll('[data-cssvars]:not([data-cssvars="out"])');u.length<A&&(A=u.length,k.dom={})}}if("loading"!==document.readyState)if(w&&i.onlyLegacy){if(i.updateDOM){var c=i.rootElement.host||(i.rootElement===document?document.documentElement:i.rootElement);Object.keys(i.variables).forEach((function(t){c.style.setProperty(t,i.variables[t])}))}}else!C&&(i.shadowDOM||i.rootElement.shadowRoot||i.rootElement.host)?o({rootElement:_.rootElement,include:_.include,exclude:i.exclude,onSuccess:function(t,e,n){return(t=((t=t.replace(S.cssComments,"").replace(S.cssMediaQueries,"")).match(S.cssVarDeclRules)||[]).join(""))||!1},onComplete:function(t,e,n){f(t,{store:k.dom,onWarning:s}),C=!0,R(i)}}):(x=i.rootElement,o({rootElement:i.rootElement,include:i.include,exclude:i.exclude,onBeforeSend:i.onBeforeSend,onError:function(t,e,n){var r=t.responseURL||P(n,location.href),o=t.statusText?"(".concat(t.statusText,")"):"Unspecified Error"+(0===t.status?" (possibly CORS related)":"");a("CSS XHR Error: ".concat(r," ").concat(t.status," ").concat(o),e,t,r)},onSuccess:function(t,e,n){var r=i.onSuccess(t,e,n);return t=void 0!==r&&!1===Boolean(r)?"":r||t,i.updateURLs&&(t=function(t,e){return(t.replace(S.cssComments,"").match(S.cssUrls)||[]).forEach((function(n){var r=n.replace(S.cssUrls,"$1"),o=P(r,e);t=t.replace(n,n.replace(r,o))})),t}(t,n)),t},onComplete:function(t,r){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],u={},c=i.updateDOM?k.dom:Object.keys(k.job).length?k.job:k.job=JSON.parse(JSON.stringify(k.dom)),d=!1;if(o.forEach((function(t,e){if(S.cssVars.test(r[e]))try{var n=l(r[e],{preserveStatic:i.preserveStatic,removeComments:!0});f(n,{parseHost:Boolean(i.rootElement.host),store:u,onWarning:s}),t.__cssVars={tree:n}}catch(e){a(e.message,t)}})),i.updateDOM&&e(k.user,i.variables),e(u,i.variables),d=Boolean((document.querySelector("[data-cssvars]")||Object.keys(k.dom).length)&&Object.keys(u).some((function(t){return u[t]!==c[t]}))),e(c,k.user,u),d)T(i.rootElement),R(i);else{var p=[],m=[],g=!1;if(k.job={},i.updateDOM&&b.job++,o.forEach((function(t){var n=!t.__cssVars;if(t.__cssVars)try{v(t.__cssVars.tree,e({},i,{variables:c,onWarning:s}));var r=h(t.__cssVars.tree);if(i.updateDOM){if(t.getAttribute("data-cssvars")||t.setAttribute("data-cssvars","src"),r.length){var o=t.getAttribute("data-cssvars-group")||++b.group,u=r.replace(/\s/g,""),l=i.rootElement.querySelector('[data-cssvars="out"][data-cssvars-group="'.concat(o,'"]'))||document.createElement("style");g=g||S.cssKeyframes.test(r),l.hasAttribute("data-cssvars")||l.setAttribute("data-cssvars","out"),u===t.textContent.replace(/\s/g,"")?(n=!0,l&&l.parentNode&&(t.removeAttribute("data-cssvars-group"),l.parentNode.removeChild(l))):u!==l.textContent.replace(/\s/g,"")&&([t,l].forEach((function(t){t.setAttribute("data-cssvars-job",b.job),t.setAttribute("data-cssvars-group",o)})),l.textContent=r,p.push(r),m.push(l),l.parentNode||t.parentNode.insertBefore(l,t.nextSibling))}}else t.textContent.replace(/\s/g,"")!==r&&p.push(r)}catch(e){a(e.message,t)}n&&t.setAttribute("data-cssvars","skip"),t.hasAttribute("data-cssvars-job")||t.setAttribute("data-cssvars-job",b.job)})),A=i.rootElement.querySelectorAll('[data-cssvars]:not([data-cssvars="out"])').length,i.shadowDOM)for(var y,w=[i.rootElement].concat(n(i.rootElement.querySelectorAll("*"))),_=0;y=w[_];++_)if(y.shadowRoot&&y.shadowRoot.querySelector("style")){var E=e({},i,{rootElement:y.shadowRoot});R(E)}i.updateDOM&&g&&M(i.rootElement),x=!1,i.onComplete(p.join(""),m,JSON.parse(JSON.stringify(c)),L()-i.__benchmark)}}}));else document.addEventListener("DOMContentLoaded",(function e(n){R(t),document.removeEventListener("DOMContentLoaded",e)}))}}function M(t){var e=["animation-name","-moz-animation-name","-webkit-animation-name"].filter((function(t){return getComputedStyle(document.body)[t]}))[0];if(e){for(var n=t.getElementsByTagName("*"),r=[],o=0,i=n.length;o<i;o++){var a=n[o];"none"!==getComputedStyle(a)[e]&&(a.style[e]+="__CSSVARSPONYFILL-KEYFRAMES__",r.push(a))}document.body.offsetHeight;for(var s=0,u=r.length;s<u;s++){var c=r[s].style;c[e]=c[e].replace("__CSSVARSPONYFILL-KEYFRAMES__","")}}}function P(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:location.href,n=document.implementation.createHTMLDocument(""),r=n.createElement("base"),o=n.createElement("a");return n.head.appendChild(r),n.body.appendChild(o),r.href=e,o.href=t,o.href}function L(){return y&&(window.performance||{}).now?window.performance.now():(new Date).getTime()}function T(t){Array.apply(null,t.querySelectorAll('[data-cssvars="skip"],[data-cssvars="src"]')).forEach((function(t){return t.setAttribute("data-cssvars","")}))}if(R.reset=function(){for(var t in x=!1,E&&(E.disconnect(),E=null),A=0,O=null,C=!1,k)k[t]={}},String.prototype.startsWith||function(){var t={}.toString;Object.defineProperty(String.prototype,"startsWith",{value:function(e){if(null==this)throw TypeError();var n=String(this);if(e&&"[object RegExp]"==t.call(e))throw TypeError();var r=n.length,o=String(e),i=o.length,a=arguments.length>1?arguments[1]:void 0,s=a?Number(a):0;s!=s&&(s=0);var u=Math.min(Math.max(s,0),r);if(i+u>r)return!1;for(var c=-1;++c<i;)if(n.charCodeAt(u+c)!=o.charCodeAt(c))return!1;return!0},configurable:!0,writable:!0})}(),String.prototype.endsWith||function(){var t={}.toString;Object.defineProperty(String.prototype,"endsWith",{value:function(e){if(null==this)throw TypeError();var n=String(this);if(e&&"[object RegExp]"==t.call(e))throw TypeError();var r=n.length,o=String(e),i=o.length,a=r;if(arguments.length>1){var s=arguments[1];void 0!==s&&(a=s?Number(s):0)!=a&&(a=0)}var u=Math.min(Math.max(a,0),r),c=u-i;if(c<0)return!1;for(var l=-1;++l<i;)if(n.charCodeAt(c+l)!=o.charCodeAt(l))return!1;return!0},configurable:!0,writable:!0})}(),String.prototype.includes||function(){var t={}.toString,e="".indexOf;Object.defineProperty(String.prototype,"includes",{value:function(n){if(null==this)throw TypeError();var r=String(this);if(n&&"[object RegExp]"==t.call(n))throw TypeError();var o=r.length,i=String(n),a=i.length,s=arguments.length>1?arguments[1]:void 0,u=s?Number(s):0;u!=u&&(u=0);var c=Math.min(Math.max(u,0),o);return!(a+c>o)&&-1!=e.call(r,i,u)},configurable:!0,writable:!0})}(),String.prototype.repeat||Object.defineProperty(String.prototype,"repeat",{value:function(t){if(null==this)throw TypeError();var e=String(this),n=t?Number(t):0;if(n!=n&&(n=0),n<0||n==1/0)throw RangeError();for(var r="";n;)n%2==1&&(r+=e),n>1&&(e+=e),n>>=1;return r},configurable:!0,writable:!0}),String.prototype.padStart||(String.prototype.padStart=function(t,e){return t>>=0,e=String(void 0!==e?e:" "),this.length>t?String(this):((t-=this.length)>e.length&&(e+=e.repeat(t/e.length)),e.slice(0,t)+String(this))}),String.prototype.padEnd||(String.prototype.padEnd=function(t,e){return t>>=0,e=String(void 0!==e?e:" "),this.length>t?String(this):((t-=this.length)>e.length&&(e+=e.repeat(t/e.length)),String(this)+e.slice(0,t))}),Object.entries||(Object.entries=function(t){for(var e=Object.keys(t),n=e.length,r=new Array(n);n--;)r[n]=[e[n],t[e[n]]];return r}),Array.prototype.fill||Object.defineProperty(Array.prototype,"fill",{value:function(t){if(null==this)throw new TypeError("this is null or not defined");for(var e=Object(this),n=e.length>>>0,r=arguments[1],o=r>>0,i=o<0?Math.max(n+o,0):Math.min(o,n),a=arguments[2],s=void 0===a?n:a>>0,u=s<0?Math.max(n+s,0):Math.min(s,n);i<u;)e[i]=t,i++;return e}}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(t){if(null==this)throw TypeError('"this" is null or not defined');var e=Object(this),n=e.length>>>0;if("function"!=typeof t)throw TypeError("predicate must be a function");for(var r=arguments[1],o=0;o<n;){var i=e[o];if(t.call(r,i,o,e))return i;o++}},configurable:!0,writable:!0}),Array.prototype.includes||Object.defineProperty(Array.prototype,"includes",{value:function(t,e){if(null==this)throw new TypeError('"this" is null or not defined');var n=Object(this),r=n.length>>>0;if(0===r)return!1;var o,i,a=0|e,s=Math.max(a>=0?a:r-Math.abs(a),0);for(;s<r;){if((o=n[s])===(i=t)||"number"==typeof o&&"number"==typeof i&&isNaN(o)&&isNaN(i))return!0;s++}return!1}}),Map.prototype.keys||(Map.prototype.keys=function(){var t=[];return this.forEach((function(e,n){t.push(n)})),t}),Number.isInteger=Number.isInteger||function(t){return"number"==typeof t&&isFinite(t)&&Math.floor(t)===t},Number.isNaN=Number.isNaN||window.isNaN,Number.parseInt=Number.parseInt||window.parseInt,Element&&!Element.prototype.matches){var N=Element.prototype;N.matches=N.matchesSelector||N.mozMatchesSelector||N.msMatchesSelector||N.oMatchesSelector||N.webkitMatchesSelector}if(Element.prototype.closest||(Element.prototype.closest=function(t){var e=this;if(!document.documentElement.contains(e))return null;do{if(e.matches(t))return e;e=e.parentElement||e.parentNode}while(null!==e&&1===e.nodeType);return null}),!window.WeakSet){var j=function(t){this.name="__st"+(1e9*Math.random()>>>0)+D+++"__",t&&t.forEach&&t.forEach(this.add,this)},D=Date.now()%1e9,I=j.prototype;I.add=function(t){var e=this.name;return t[e]||Object.defineProperty(t,e,{value:!0,writable:!0}),this},I.delete=function(t){return!!t[this.name]&&(t[this.name]=void 0,!0)},I.has=function(t){return!!t[this.name]},window.WeakSet=j}window.fetch||(window.fetch=function(t,e){return e=e||{},new Promise((function(n,r){var o=new XMLHttpRequest;for(var i in o.open(e.method||"get",t,!0),e.headers)o.setRequestHeader(i,e.headers[i]);function a(){var t,e=[],n=[],r={};return o.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm,(function(o,i,a){e.push(i=i.toLowerCase()),n.push([i,a]),r[i]=(t=r[i])?t+","+a:a})),{ok:2==(o.status/100|0),status:o.status,statusText:o.statusText,url:o.responseURL,clone:a,text:function(){return Promise.resolve(o.responseText)},json:function(){return Promise.resolve(o.responseText).then(JSON.parse)},blob:function(){return Promise.resolve(new Blob([o.response]))},headers:{keys:function(){return e},entries:function(){return n},get:function(t){return r[t.toLowerCase()]},has:function(t){return t.toLowerCase()in r}}}}o.withCredentials="include"==e.credentials,o.onload=function(){n(a())},o.onerror=r,o.send(e.body||null)}))}),function(t){var e,n=Object.prototype,r=n.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag",u="object"==typeof module,c=t.regeneratorRuntime;if(c)u&&(module.exports=c);else{(c=t.regeneratorRuntime=u?module.exports:{}).wrap=w;var l="suspendedStart",f="suspendedYield",h="executing",d="completed",p={},v={};v[i]=function(){return this};var m=Object.getPrototypeOf,g=m&&m(m(M([])));g&&g!==n&&r.call(g,i)&&(v=g);var y=k.prototype=_.prototype=Object.create(v);S.prototype=y.constructor=k,k.constructor=S,k[s]=S.displayName="GeneratorFunction",c.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===S||"GeneratorFunction"===(e.displayName||e.name))},c.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,k):(t.__proto__=k,s in t||(t[s]="GeneratorFunction")),t.prototype=Object.create(y),t},c.awrap=function(t){return{__await:t}},x(E.prototype),E.prototype[a]=function(){return this},c.AsyncIterator=E,c.async=function(t,e,n,r){var o=new E(w(t,e,n,r));return c.isGeneratorFunction(e)?o:o.next().then((function(t){return t.done?t.value:o.next()}))},x(y),y[s]="Generator",y[i]=function(){return this},y.toString=function(){return"[object Generator]"},c.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){for(;e.length;){var r=e.pop();if(r in t)return n.value=r,n.done=!1,n}return n.done=!0,n}},c.values=M,R.prototype={constructor:R,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(C),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function o(r,o){return s.type="throw",s.arg=t,n.next=r,o&&(n.method="next",n.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(u&&c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,p):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),p},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),C(n),p}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;C(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:M(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),p}}}function w(t,e,n,r){var o=e&&e.prototype instanceof _?e:_,i=Object.create(o.prototype),a=new R(r||[]);return i._invoke=function(t,e,n){var r=l;return function(o,i){if(r===h)throw new Error("Generator is already running");if(r===d){if("throw"===o)throw i;return P()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var s=A(a,n);if(s){if(s===p)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===l)throw r=d,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=h;var u=b(t,e,n);if("normal"===u.type){if(r=n.done?d:f,u.arg===p)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r=d,n.method="throw",n.arg=u.arg)}}}(t,n,a),i}function b(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}function _(){}function S(){}function k(){}function x(t){["next","throw","return"].forEach((function(e){t[e]=function(t){return this._invoke(e,t)}}))}function E(t){var e;this._invoke=function(n,o){function i(){return new Promise((function(e,i){!function e(n,o,i,a){var s=b(t[n],t,o);if("throw"!==s.type){var u=s.arg,c=u.value;return c&&"object"==typeof c&&r.call(c,"__await")?Promise.resolve(c.__await).then((function(t){e("next",t,i,a)}),(function(t){e("throw",t,i,a)})):Promise.resolve(c).then((function(t){u.value=t,i(u)}),(function(t){return e("throw",t,i,a)}))}a(s.arg)}(n,o,e,i)}))}return e=e?e.then(i,i):i()}}function A(t,n){var r=t.iterator[n.method];if(r===e){if(n.delegate=null,"throw"===n.method){if(t.iterator.return&&(n.method="return",n.arg=e,A(t,n),"throw"===n.method))return p;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return p}var o=b(r,t.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,p;var i=o.arg;return i?i.done?(n[t.resultName]=i.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,p):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,p)}function O(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function C(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function R(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(O,this),this.reset(!0)}function M(t){if(t){var n=t[i];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function n(){for(;++o<t.length;)if(r.call(t,o))return n.value=t[o],n.done=!1,n;return n.value=e,n.done=!0,n};return a.next=a}}return{next:P}}function P(){return{value:e,done:!0}}}(function(){return this||"object"==typeof self&&self}()||Function("return this")()),
|
|
163
|
-
/**
|
|
164
|
-
*
|
|
165
|
-
*
|
|
166
|
-
* @author Jerry Bendy <jerry@icewingcc.com>
|
|
167
|
-
* @licence MIT
|
|
168
|
-
*
|
|
169
|
-
*/
|
|
170
|
-
function(t){var e,n=t.URLSearchParams&&t.URLSearchParams.prototype.get?t.URLSearchParams:null,r=n&&"a=1"===new n({a:1}).toString(),o=n&&"+"===new n("s=%2B").get("s"),i="__URLSearchParams__",a=!n||((e=new n).append("s"," &"),"s=+%26"===e.toString()),s=f.prototype,u=!(!t.Symbol||!t.Symbol.iterator);if(!(n&&r&&o&&a)){s.append=function(t,e){m(this[i],t,e)},s.delete=function(t){delete this[i][t]},s.get=function(t){var e=this[i];return t in e?e[t][0]:null},s.getAll=function(t){var e=this[i];return t in e?e[t].slice(0):[]},s.has=function(t){return t in this[i]},s.set=function(t,e){this[i][t]=[""+e]},s.toString=function(){var t,e,n,r,o=this[i],a=[];for(e in o)for(n=h(e),t=0,r=o[e];t<r.length;t++)a.push(n+"="+h(r[t]));return a.join("&")};var c=!!o&&n&&!r&&t.Proxy;Object.defineProperty(t,"URLSearchParams",{value:c?new Proxy(n,{construct:function(t,e){return new t(new f(e[0]).toString())}}):f});var l=t.URLSearchParams.prototype;l.polyfill=!0,l.forEach=l.forEach||function(t,e){var n=v(this.toString());Object.getOwnPropertyNames(n).forEach((function(r){n[r].forEach((function(n){t.call(e,n,r,this)}),this)}),this)},l.sort=l.sort||function(){var t,e,n,r=v(this.toString()),o=[];for(t in r)o.push(t);for(o.sort(),e=0;e<o.length;e++)this.delete(o[e]);for(e=0;e<o.length;e++){var i=o[e],a=r[i];for(n=0;n<a.length;n++)this.append(i,a[n])}},l.keys=l.keys||function(){var t=[];return this.forEach((function(e,n){t.push(n)})),p(t)},l.values=l.values||function(){var t=[];return this.forEach((function(e){t.push(e)})),p(t)},l.entries=l.entries||function(){var t=[];return this.forEach((function(e,n){t.push([n,e])})),p(t)},u&&(l[t.Symbol.iterator]=l[t.Symbol.iterator]||l.entries)}function f(t){((t=t||"")instanceof URLSearchParams||t instanceof f)&&(t=t.toString()),this[i]=v(t)}function h(t){var e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'\(\)~]|%20|%00/g,(function(t){return e[t]}))}function d(t){return decodeURIComponent(t.replace(/\+/g," "))}function p(e){var n={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return u&&(n[t.Symbol.iterator]=function(){return n}),n}function v(t){var e={};if("object"==typeof t)for(var n in t)t.hasOwnProperty(n)&&m(e,n,t[n]);else{0===t.indexOf("?")&&(t=t.slice(1));for(var r=t.split("&"),o=0;o<r.length;o++){var i=r[o],a=i.indexOf("=");-1<a?m(e,d(i.slice(0,a)),d(i.slice(a+1))):i&&m(e,d(i),"")}}return e}function m(t,e,n){var r="string"==typeof n?n:null!=n&&"function"==typeof n.toString?n.toString():JSON.stringify(n);e in t?t[e].push(r):t[e]=[r]}}("undefined"!=typeof global?global:window);function V(t){return(V="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function F(t,e,n,r,o,i,a){try{var s=t[i](a),u=s.value}catch(t){return void n(t)}s.done?e(u):Promise.resolve(u).then(r,o)}function U(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function a(t){F(i,r,o,a,s,"next",t)}function s(t){F(i,r,o,a,s,"throw",t)}a(void 0)}))}}function B(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function W(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function z(t,e,n){return e&&W(t.prototype,e),n&&W(t,n),t}function H(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&$(t,e)}function q(t){return(q=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function $(t,e){return($=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Z(t,e,n){return(Z=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}()?Reflect.construct:function(t,e,n){var r=[null];r.push.apply(r,e);var o=new(Function.bind.apply(t,r));return n&&$(o,n.prototype),o}).apply(null,arguments)}function G(t){var e="function"==typeof Map?new Map:void 0;return(G=function(t){if(null===t||(n=t,-1===Function.toString.call(n).indexOf("[native code]")))return t;var n;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,r)}function r(){return Z(t,arguments,q(this).constructor)}return r.prototype=Object.create(t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),$(r,t)})(t)}function J(t,e){return!e||"object"!=typeof e&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Y(t,e,n){return(Y="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=q(t)););return t}(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function X(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}function K(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if(!(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function Q(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}!function(){if(window.ShadyDOM){var t=Object.getOwnPropertyDescriptor(Node.prototype,"nodeValue");Object.defineProperty(Node.prototype,"nodeValue",{get:function(){return t.get.apply(this)},set:function(e){t.set.apply(this,arguments);var n=this.parentNode;n instanceof HTMLElement&&n.isUI5Element&&n._processChildren()}})}}(),window.CSSVarsPonyfill={cssVars:R};var tt=new Map,et=function(t,e){tt.set(t,e)},nt=function(t){return tt.get(t)},rt={default:"sap_fiori_3",all:["sap_fiori_3","sap_fiori_3_dark","sap_belize","sap_belize_hcb","sap_belize_hcw","sap_fiori_3_hcb","sap_fiori_3_hcw"]}.default,ot={default:"en",all:["ar","bg","ca","cs","da","de","el","en","es","et","fi","fr","hi","hr","hu","it","iw","ja","kk","ko","lt","lv","ms","nl","no","pl","pt","ro","ru","sh","sk","sl","sv","th","tr","uk","vi","zh_CN","zh_TW"]}.default,it={default:"en",all:["ar","ar_EG","ar_SA","bg","ca","cs","da","de","de_AT","de_CH","el","el_CY","en","en_AU","en_GB","en_HK","en_IE","en_IN","en_NZ","en_PG","en_SG","en_ZA","es","es_AR","es_BO","es_CL","es_CO","es_MX","es_PE","es_UY","es_VE","et","fa","fi","fr","fr_BE","fr_CA","fr_CH","fr_LU","he","hi","hr","hu","id","it","it_CH","ja","kk","ko","lt","lv","ms","nb","nl","nl_BE","pl","pt","pt_PT","ro","ru","ru_UA","sk","sl","sr","sv","th","tr","uk","vi","zh_CN","zh_HK","zh_SG","zh_TW"]}.default,at=function(){var t=navigator.languages;return t&&t[0]||navigator.language||navigator.userLanguage||navigator.browserLanguage||ot},st={},ut=st.hasOwnProperty,ct=st.toString,lt=ut.toString,ft=lt.call(Object),ht=function(t){var e,n;return!(!t||"[object Object]"!==ct.call(t))&&(!(e=Object.getPrototypeOf(t))||"function"==typeof(n=ut.call(e,"constructor")&&e.constructor)&<.call(n)===ft)},dt=Object.create(null),pt=function t(){var e,n,r,o,i,a,s=arguments[2]||{},u=3,c=arguments.length,l=arguments[0]||!1,f=arguments[1]?void 0:dt;for("object"!==V(s)&&"function"!=typeof s&&(s={});u<c;u++)if(null!=(i=arguments[u]))for(o in i)e=s[o],r=i[o],"__proto__"!==o&&s!==r&&(l&&r&&(ht(r)||(n=Array.isArray(r)))?(n?(n=!1,a=e&&Array.isArray(e)?e:[]):a=e&&ht(e)?e:{},s[o]=t(l,arguments[1],a,r)):r!==f&&(s[o]=r));return s},vt=function(){var t=[!0,!1];return t.push.apply(t,arguments),pt.apply(null,t)},mt=!1,gt={animationMode:"full",theme:rt,rtl:null,language:null,calendarType:null,noConflict:!1,formatSettings:{},useDefaultLanguage:!1,assetsPath:""},yt=new Map;yt.set("true",!0),yt.set("false",!1);var wt,bt,_t,St,kt,xt,Et,At,Ot,Ct=function(){mt||(!function(){var t,e=document.querySelector("[data-ui5-config]")||document.querySelector("[data-id='sap-ui-config']");if(e){try{t=JSON.parse(e.innerHTML)}catch(t){console.warn("Incorrect data-sap-ui-config format. Please use JSON")}t&&(gt=vt(gt,t))}}(),new URLSearchParams(window.location.search).forEach((function(t,e){if(e.startsWith("sap-ui")){var n=t.toLowerCase(),r=e.split("sap-ui-")[1];yt.has(t)&&(t=yt.get(n)),gt[r]=t}})),function(){var t=nt("OpenUI5Support");if(t&&t.isLoaded()){var e=t.getConfigurationSettingsObject();gt=vt(gt,e)}}(),mt=!0)},Rt=function(){function t(){B(this,t),this._eventRegistry={}}return z(t,[{key:"attachEvent",value:function(t,e){var n=this._eventRegistry,r=n[t];Array.isArray(r)||(n[t]=[],r=n[t]),r.push({function:e})}},{key:"detachEvent",value:function(t,e){var n=this._eventRegistry,r=n[t];r&&0===(r=r.filter((function(t){return t.function!==e}))).length&&delete n[t]}},{key:"fireEvent",value:function(t,e){var n=this,r=this._eventRegistry[t];return r?r.map((function(t){return t.function.call(n,e)})):[]}},{key:"isHandlerAttached",value:function(t,e){var n=this._eventRegistry[t];if(!n)return!1;for(var r=0;r<n.length;r++){if(n[r].function===e)return!0}return!1}},{key:"hasListeners",value:function(t){return!!this._eventRegistry[t]}}]),t}(),Mt=new Rt,Pt=function(){function t(){B(this,t),this.list=[],this.lookup=new Set}return z(t,[{key:"add",value:function(t){this.lookup.has(t)||(this.list.push(t),this.lookup.add(t))}},{key:"remove",value:function(t){this.lookup.has(t)&&(this.list=this.list.filter((function(e){return e!==t})),this.lookup.delete(t))}},{key:"shift",value:function(){var t=this.list.shift();if(t)return this.lookup.delete(t),t}},{key:"isEmpty",value:function(){return 0===this.list.length}},{key:"isAdded",value:function(t){return this.lookup.has(t)}},{key:"process",value:function(t){var e,n=new Map;for(e=this.shift();e;){var r=n.get(e)||0;if(r>10)throw new Error("Web component processed too many times this task, max allowed is: ".concat(10));t(e),n.set(e,r+1),e=this.shift()}}}]),t}(),Lt=function(t){var e=[];return t.forEach((function(t){e.push(t)})),e},Tt=new Set,Nt=new Set,jt=function(t){Tt.add(t)},Dt=function(t){return Tt.has(t)},It=function(t){Nt.add(t),wt||(wt=setTimeout((function(){Vt(),wt=void 0}),1e3))},Vt=function(){console.warn("The following tags have already been defined by a different UI5 Web Components version: ".concat(Lt(Nt).join(", "))),Nt.clear()},Ft=new Set,Ut=new Set,Bt=new Pt,Wt=function(){function t(){throw B(this,t),new Error("Static class")}var e,n,r;return z(t,null,[{key:"renderDeferred",value:(r=U(regeneratorRuntime.mark((function e(n){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return Bt.add(n),e.next=3,t.scheduleRenderTask();case 3:case"end":return e.stop()}}),e)}))),function(t){return r.apply(this,arguments)})},{key:"renderImmediately",value:function(t){t._render()}},{key:"cancelRender",value:function(t){Bt.remove(t)}},{key:"scheduleRenderTask",value:(n=U(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return kt||(kt=new Promise((function(e){window.requestAnimationFrame((function(){Bt.process((function(t){return t._render()})),kt=null,e(),St||(St=setTimeout((function(){St=void 0,Bt.isEmpty()&&t._resolveTaskPromise()}),200))}))}))),e.next=3,kt;case 3:case"end":return e.stop()}}),e)}))),function(){return n.apply(this,arguments)})},{key:"whenDOMUpdated",value:function(){return bt||(bt=new Promise((function(t){_t=t,window.requestAnimationFrame((function(){Bt.isEmpty()&&(bt=void 0,t())}))})))}},{key:"whenAllCustomElementsAreDefined",value:function(){var t=Lt(Tt).map((function(t){return customElements.whenDefined(t)}));return Promise.all(t)}},{key:"whenFinished",value:(e=U(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.whenAllCustomElementsAreDefined();case 2:return e.next=4,t.whenDOMUpdated();case 4:case"end":return e.stop()}}),e)}))),function(){return e.apply(this,arguments)})},{key:"_resolveTaskPromise",value:function(){Bt.isEmpty()&&_t&&(_t.call(this),_t=void 0,bt=void 0)}},{key:"register",value:function(t){Ut.add(t)}},{key:"deregister",value:function(t){Ut.delete(t)}},{key:"reRenderAllUI5Elements",value:function(e){Ut.forEach((function(n){var r,o=n.constructor.getMetadata().getTag(),i=(r=n.constructor,Ft.has(r)),a=n.constructor.getMetadata().isLanguageAware();(!e||e.tag===o||e.rtlAware&&i||e.languageAware&&a)&&t.renderDeferred(n)}))}}]),t}(),zt=function(){return void 0===xt&&(Ct(),xt=gt.language),xt},Ht=function(){var t;return void 0===Et&&(Ct(),t=gt.useDefaultLanguage,Et=t),Et},qt=/^((?:[A-Z]{2,3}(?:-[A-Z]{3}){0,3})|[A-Z]{4}|[A-Z]{5,8})(?:-([A-Z]{4}))?(?:-([A-Z]{2}|[0-9]{3}))?((?:-[0-9A-Z]{5,8}|-[0-9][0-9A-Z]{3})*)((?:-[0-9A-WYZ](?:-[0-9A-Z]{2,8})+)*)(?:-(X(?:-[0-9A-Z]{1,8})+))?$/i,$t=function(){function t(e){B(this,t);var n=qt.exec(e.replace(/_/g,"-"));if(null===n)throw new Error("The given language ".concat(e," does not adhere to BCP-47."));this.sLocaleId=e,this.sLanguage=n[1]||null,this.sScript=n[2]||null,this.sRegion=n[3]||null,this.sVariant=n[4]&&n[4].slice(1)||null,this.sExtension=n[5]&&n[5].slice(1)||null,this.sPrivateUse=n[6]||null,this.sLanguage&&(this.sLanguage=this.sLanguage.toLowerCase()),this.sScript&&(this.sScript=this.sScript.toLowerCase().replace(/^[a-z]/,(function(t){return t.toUpperCase()}))),this.sRegion&&(this.sRegion=this.sRegion.toUpperCase())}return z(t,[{key:"getLanguage",value:function(){return this.sLanguage}},{key:"getScript",value:function(){return this.sScript}},{key:"getRegion",value:function(){return this.sRegion}},{key:"getVariant",value:function(){return this.sVariant}},{key:"getVariantSubtags",value:function(){return this.sVariant?this.sVariant.split("-"):[]}},{key:"getExtension",value:function(){return this.sExtension}},{key:"getExtensionSubtags",value:function(){return this.sExtension?this.sExtension.slice(2).split("-"):[]}},{key:"getPrivateUse",value:function(){return this.sPrivateUse}},{key:"getPrivateUseSubtags",value:function(){return this.sPrivateUse?this.sPrivateUse.slice(2).split("-"):[]}},{key:"hasPrivateUseSubtag",value:function(t){return this.getPrivateUseSubtags().indexOf(t)>=0}},{key:"toString",value:function(){var t=[this.sLanguage];return this.sScript&&t.push(this.sScript),this.sRegion&&t.push(this.sRegion),this.sVariant&&t.push(this.sVariant),this.sExtension&&t.push(this.sExtension),this.sPrivateUse&&t.push(this.sPrivateUse),t.join("-")}}]),t}(),Zt=function(t){try{if(t&&"string"==typeof t)return new $t(t)}catch(t){}},Gt=function(t){return t?Zt(t):zt()?new $t(zt()):Zt(at())},Jt=new Map,Yt=new Map,Xt=new Map,Kt=function(){var t=U(regeneratorRuntime.mark((function t(e){var n;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return Jt.get(e)||Jt.set(e,fetch(e)),t.next=3,Jt.get(e);case 3:return n=t.sent,Xt.get(e)||Xt.set(e,n.text()),t.abrupt("return",Xt.get(e));case 6:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),Qt=function(){var t=U(regeneratorRuntime.mark((function t(e){var n;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return Jt.get(e)||Jt.set(e,fetch(e)),t.next=3,Jt.get(e);case 3:return n=t.sent,Yt.get(e)||Yt.set(e,n.json()),t.abrupt("return",Yt.get(e));case 6:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),te=/^((?:[A-Z]{2,3}(?:-[A-Z]{3}){0,3})|[A-Z]{4}|[A-Z]{5,8})(?:-([A-Z]{4}))?(?:-([A-Z]{2}|[0-9]{3}))?((?:-[0-9A-Z]{5,8}|-[0-9][0-9A-Z]{3})*)((?:-[0-9A-WYZ](?:-[0-9A-Z]{2,8})+)*)(?:-(X(?:-[0-9A-Z]{1,8})+))?$/i,ee=/(?:^|-)(saptrc|sappsd)(?:-|$)/i,ne={he:"iw",yi:"ji",id:"in",sr:"sh"},re=function(t){var e;if(!t)return it;if("string"==typeof t&&(e=te.exec(t.replace(/_/g,"-")))){var n=e[1].toLowerCase(),r=e[3]?e[3].toUpperCase():void 0,o=e[2]?e[2].toLowerCase():void 0,i=e[4]?e[4].slice(1):void 0,a=e[6];return n=ne[n]||n,a&&(e=ee.exec(a))||i&&(e=ee.exec(i))?"en_US_".concat(e[1].toLowerCase()):("zh"!==n||r||("hans"===o?r="CN":"hant"===o&&(r="TW")),n+(r?"_"+r+(i?"_"+i.replace("-","_"):""):""))}},oe=function(t){if(!t)return it;if("zh_HK"===t)return"zh_TW";var e=t.lastIndexOf("_");return e>=0?t.slice(0,e):t!==it?it:""},ie=function(){return void 0===At&&(Ct(),At=gt.assetsPath),At},ae=function(t){var e=ie();return e&&"string"==typeof t?"".concat(e).concat(t):t},se=new Map,ue=new Map,ce=function(t,e){se.set(t,e)},le=function(t){return se.get(t)},fe=function(){var t=U(regeneratorRuntime.mark((function t(e){var n,r,o,i,a,s,u,c,l,f;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=ue.get(e)){t.next=4;break}return console.warn("Message bundle assets are not configured. Falling back to English texts."," You need to import ".concat(e,"/dist/Assets.js with a build tool that supports JSON imports.")),t.abrupt("return");case 4:for(r=Gt().getLanguage(),o=Gt().getRegion(),i=Ht(),a=re(r+(o?"-".concat(o):""));a!==ot&&!n[a];)a=oe(a);if(!i||a!==ot){t.next=12;break}return ce(e,null),t.abrupt("return");case 12:if("object"!==V(s=n[a])){t.next=16;break}return ce(e,s),t.abrupt("return");case 16:return t.next=18,Kt(ae(s));case 18:if(!(u=t.sent).startsWith("{")){t.next=23;break}c=JSON.parse,t.next=27;break;case 23:if(l=nt("PropertiesFormatSupport")){t.next=26;break}throw new Error('In order to support .properties files, please: import "@ui5/webcomponents-base/dist/features/PropertiesFormatSupport.js";');case 26:c=l.parser;case 27:f=c(u),ce(e,f);case 29:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}();Ot=function(){var t=Q(se.keys());return Promise.all(t.map(fe))},Mt.attachEvent("languageChange",Ot);var he,de,pe=new Map,ve=new Map,me=new Set,ge=new Set,ye=function(t,e,n){n._?ve.set("".concat(t,"_").concat(e),n._):n.includes(":root")||""===n?ve.set("".concat(t,"_").concat(e),n):pe.set("".concat(t,"_").concat(e),n),me.add(t),ge.add(e)},we=function(){var t=U(regeneratorRuntime.mark((function t(e,n){var r,o,i,a;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(void 0===(r=ve.get("".concat(e,"_").concat(n)))){t.next=3;break}return t.abrupt("return",r);case 3:if(ge.has(n)){t.next=7;break}return o=Q(ge.values()).join(", "),console.warn("You have requested a non-registered theme - falling back to ".concat(rt,". Registered themes are: ").concat(o)),t.abrupt("return",ve.get("".concat(e,"_").concat(rt)));case 7:return t.next=9,be(e,n);case 9:return i=t.sent,a=i._||i,ve.set("".concat(e,"_").concat(n),a),t.abrupt("return",a);case 13:case"end":return t.stop()}}),t)})));return function(e,n){return t.apply(this,arguments)}}(),be=function(){var t=U(regeneratorRuntime.mark((function t(e,n){var r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=pe.get("".concat(e,"_").concat(n))){t.next=3;break}throw new Error("You have to import the ".concat(e,"/dist/Assets.js module to switch to additional themes"));case 3:return t.abrupt("return",".css"===(i=void 0,(i=(o=r).lastIndexOf("."))<1?"":o.slice(i))?Kt(r):Qt(ae(r)));case 4:case"end":return t.stop()}var o,i}),t)})));return function(e,n){return t.apply(this,arguments)}}(),_e=function(){return me},Se=function(t){return ge.has(t)},ke=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=document.createElement("style");return n.type="text/css",Object.entries(e).forEach((function(t){return n.setAttribute.apply(n,Q(t))})),n.textContent=t,document.head.appendChild(n),n},xe=function(t,e){var n=document.head.querySelector('style[data-ui5-theme-properties="'.concat(e,'"]'));n?n.textContent=t||"":ke(t,{"data-ui5-theme-properties":e})},Ee=function(){var t=function(){var t=document.querySelector(".sapThemeMetaData-Base-baseLib");if(t)return getComputedStyle(t).backgroundImage;(t=document.createElement("span")).style.display="none",t.classList.add("sapThemeMetaData-Base-baseLib"),document.body.appendChild(t);var e=getComputedStyle(t).backgroundImage;return document.body.removeChild(t),e}();if(t&&"none"!==t)return function(t){var e,n;try{e=t.Path.match(/\.([^.]+)\.css_variables$/)[1],n=t.Extends[0]}catch(e){return void console.warn("Malformed theme metadata Object",t)}return{themeName:e,baseThemeName:n}}(function(t){var e=/\(["']?data:text\/plain;utf-8,(.*?)['"]?\)$/i.exec(t);if(e&&e.length>=2){var n=e[1];if("{"!==(n=n.replace(/\\"/g,'"')).charAt(0)&&"}"!==n.charAt(n.length-1))try{n=decodeURIComponent(n)}catch(t){return void console.warn("Malformed theme metadata string, unable to decodeURIComponent")}try{return JSON.parse(n)}catch(t){console.warn("Malformed theme metadata string, unable to parse JSON")}}}(t))},Ae=function(){return!!window.CSSVarsPonyfill},Oe=function(){he=void 0,window.CSSVarsPonyfill.cssVars({rootElement:document.head,variables:Ce()?Re():{},silent:!0})},Ce=function(){var t=document.body;return t.hasAttribute("data-ui5-compact-size")||t.classList.contains("ui5-content-density-compact")||t.classList.contains("sapUiSizeCompact")},Re=function(){var t={};return Q(document.querySelectorAll("[data-ui5-theme-properties]")).forEach((function(e){for(var n,r=e.textContent.replace("\n",""),o=new RegExp("data-ui5-compact-size[^{]*{(.*?)}","g");null!==(n=o.exec(r));){n[1].split(";").forEach((function(e){var n=e.split(":");t[n[0].trim()]=n[1].trim()}))}})),t},Me="@ui5/webcomponents-theme-base",Pe=function(){var t=U(regeneratorRuntime.mark((function t(e){var n;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(_e().has(Me)){t.next=2;break}return t.abrupt("return");case 2:return t.next=4,we(Me,e);case 4:n=t.sent,xe(n,Me);case 6:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),Le=function(){var t=U(regeneratorRuntime.mark((function t(e){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:_e().forEach(function(){var t=U(regeneratorRuntime.mark((function t(n){var r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n!==Me){t.next=2;break}return t.abrupt("return");case 2:return t.next=4,we(n,e);case 4:r=t.sent,xe(r,n);case 6:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 2:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),Te=function(){var t=Ee();if(t)return t;var e=nt("OpenUI5Support");if(e&&e.cssVariablesLoaded())return{themeName:e.getConfigurationSettingsObject().theme}},Ne=function(){var t=U(regeneratorRuntime.mark((function t(e){var n,r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if((n=Te())&&e===n.themeName){t.next=6;break}return t.next=4,Pe(e);case 4:t.next=7;break;case 6:o=void 0,(o=document.head.querySelector('style[data-ui5-theme-properties="'.concat(Me,'"]')))&&o.parentElement.removeChild(o);case 7:return r=Se(e)?e:n&&n.baseThemeName,t.next=10,Le(r);case 10:Ae()&&Oe();case 11:case"end":return t.stop()}var o}),t)})));return function(e){return t.apply(this,arguments)}}(),je=function(){return void 0===de&&(Ct(),de=gt.theme),de},De=function(){var t=U(regeneratorRuntime.mark((function t(e){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(de!==e){t.next=2;break}return t.abrupt("return");case 2:return de=e,t.next=5,Ne(de);case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),Ie=window.sap,Ve=Ie&&Ie.ui&&"function"==typeof Ie.ui.getCore&&Ie.ui.getCore();et("OpenUI5Support",{isLoaded:function(){return!!Ve},init:function(){return Ve?new Promise((function(t){Ve.attachInit((function(){Ie.ui.require(["sap/ui/core/LocaleData"],t)}))})):Promise.resolve()},getConfigurationSettingsObject:function(){if(Ve){var t=Ve.getConfiguration(),e=Ie.ui.require("sap/ui/core/LocaleData");return{animationMode:t.getAnimationMode(),language:t.getLanguage(),theme:t.getTheme(),rtl:t.getRTL(),calendarType:t.getCalendarType(),formatSettings:{firstDayOfWeek:e?e.getInstance(t.getLocale()).getFirstDayOfWeek():void 0}}}},getLocaleDataObject:function(){if(Ve){var t=Ve.getConfiguration();return Ie.ui.require("sap/ui/core/LocaleData").getInstance(t.getLocale())._get()}},attachListeners:function(){var t;Ve&&(t=Ve.getConfiguration(),Ve.attachThemeChanged(U(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,De(t.getTheme());case 2:case"end":return e.stop()}}),e)})))))},cssVariablesLoaded:function(){if(Ve){var t=Q(document.head.children).find((function(t){return"sap-ui-theme-sap.ui.core"===t.id}));if(t)return!!t.href.match(/\/css(-|_)variables\.css/)}}});var Fe,Ue,Be='\n\t@font-face {\n\t\tfont-family: "72";\n\t\tfont-style: normal;\n\t\tfont-weight: 400;\n\t\tsrc: local("72"),\n\t\t\turl('.concat("https://ui5.sap.com/sdk/resources/sap/ui/core/themes/sap_fiori_3/fonts/72-Regular.woff2?ui5-webcomponents",') format("woff2"),\n\t\t\turl(').concat("https://ui5.sap.com/sdk/resources/sap/ui/core/themes/sap_fiori_3/fonts/72-Regular.woff?ui5-webcomponents",') format("woff");\n\t}\n\t\n\t@font-face {\n\t\tfont-family: "72full";\n\t\tfont-style: normal;\n\t\tfont-weight: 400;\n\t\tsrc: local(\'72-full\'),\n\t\t\turl(').concat("https://ui5.sap.com/sdk/resources/sap/ui/core/themes/sap_fiori_3/fonts/72-Regular-full.woff2?ui5-webcomponents",') format("woff2"),\n\t\t\turl(').concat("https://ui5.sap.com/sdk/resources/sap/ui/core/themes/sap_fiori_3/fonts/72-Regular-full.woff?ui5-webcomponents",') format("woff");\n\t\t\n\t}\n\t\n\t@font-face {\n\t\tfont-family: "72";\n\t\tfont-style: normal;\n\t\tfont-weight: 700;\n\t\tsrc: local(\'72-Bold\'),\n\t\t\turl(').concat("https://ui5.sap.com/sdk/resources/sap/ui/core/themes/sap_fiori_3/fonts/72-Bold.woff2?ui5-webcomponents",') format("woff2"),\n\t\t\turl(').concat("https://ui5.sap.com/sdk/resources/sap/ui/core/themes/sap_fiori_3/fonts/72-Bold.woff?ui5-webcomponents",') format("woff");\n\t}\n\t\n\t@font-face {\n\t\tfont-family: "72full";\n\t\tfont-style: normal;\n\t\tfont-weight: 700;\n\t\tsrc: local(\'72-Bold-full\'),\n\t\t\turl(').concat("https://ui5.sap.com/sdk/resources/sap/ui/core/themes/sap_fiori_3/fonts/72-Bold-full.woff2?ui5-webcomponents",') format("woff2"),\n\t\t\turl(').concat("https://ui5.sap.com/sdk/resources/sap/ui/core/themes/sap_fiori_3/fonts/72-Bold-full.woff?ui5-webcomponents",') format("woff");\n\t}\n'),We=function(){if(!document.querySelector("head>style[data-ui5-font-face]")){var t=nt("OpenUI5Support");t&&t.isLoaded()||ke(Be,{"data-ui5-font-face":""})}},ze=function(){function t(){B(this,t)}return z(t,null,[{key:"isValid",value:function(t){}},{key:"generataTypeAcessors",value:function(t){var e=this;Object.keys(t).forEach((function(n){Object.defineProperty(e,n,{get:function(){return t[n]}})}))}}]),t}(),He=new Map,qe=new Map,$e=function(t){if(!He.has(t)){var e=Ge(t.split("-"));He.set(t,e)}return He.get(t)},Ze=function(t){if(!qe.has(t)){var e=t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();qe.set(t,e)}return qe.get(t)},Ge=function(t){return t.map((function(t,e){return 0===e?t.toLowerCase():t.charAt(0).toUpperCase()+t.slice(1).toLowerCase()})).join("")},Je=function(t){return t&&t instanceof HTMLElement&&"slot"===t.localName},Ye={include:[/^ui5-/],exclude:[]},Xe=new Map,Ke=function(t){if(!Xe.has(t)){var e=Ye.include.some((function(e){return t.match(e)}))&&!Ye.exclude.some((function(e){return t.match(e)}));Xe.set(t,e)}return Xe.get(t)},Qe=function(t){Ke(t)},tn=function(){function t(e){B(this,t),this.metadata=e}return z(t,[{key:"getPureTag",value:function(){return this.metadata.tag}},{key:"getTag",value:function(){var t=this.metadata.tag,e=Qe(t);return e?"".concat(t,"-").concat(e):t}},{key:"getAltTag",value:function(){var t=this.metadata.altTag;if(t){var e=Qe(t);return e?"".concat(t,"-").concat(e):t}}},{key:"hasAttribute",value:function(t){var e=this.getProperties()[t];return e.type!==Object&&!e.noAttribute}},{key:"getPropertiesList",value:function(){return Object.keys(this.getProperties())}},{key:"getAttributesList",value:function(){return this.getPropertiesList().filter(this.hasAttribute,this).map(Ze)}},{key:"getSlots",value:function(){return this.metadata.slots||{}}},{key:"canSlotText",value:function(){var t=this.getSlots().default;return t&&t.type===Node}},{key:"hasSlots",value:function(){return!!Object.entries(this.getSlots()).length}},{key:"hasIndividualSlots",value:function(){return this.slotsAreManaged()&&Object.entries(this.getSlots()).some((function(t){var e=K(t,2);e[0];return e[1].individualSlots}))}},{key:"slotsAreManaged",value:function(){return!!this.metadata.managedSlots}},{key:"getProperties",value:function(){return this.metadata.properties||{}}},{key:"getEvents",value:function(){return this.metadata.events||{}}},{key:"isLanguageAware",value:function(){return!!this.metadata.languageAware}}],[{key:"validatePropertyValue",value:function(t,e){return e.multiple?t.map((function(t){return en(t,e)})):en(t,e)}},{key:"validateSlotValue",value:function(t,e){return nn(t,e)}}]),t}(),en=function(t,e){var n=e.type;return n===Boolean?"boolean"==typeof t&&t:n===String?"string"==typeof t||null==t?t:t.toString():n===Object?"object"===V(t)?t:e.defaultValue:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if("function"!=typeof t||"function"!=typeof e)return!1;if(n&&t===e)return!0;var r=t;do{r=Object.getPrototypeOf(r)}while(null!==r&&r!==e);return r===e}(n,ze)?n.isValid(t)?t:e.defaultValue:void 0},nn=function(t,e){if(null===t)return t;var n;return(Je(n=t)?n.assignedNodes({flatten:!0}).filter((function(t){return t instanceof HTMLElement})):[n]).forEach((function(t){if(!(t instanceof e.type))throw new Error("".concat(t," is not of type ").concat(e.type))})),t},rn=function(t,e){var n=e.constructor.getUniqueDependencies().map((function(t){return t.getMetadata().getPureTag()})).filter(Ke);return t(e,n,void 0)},on=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document.body,n=document.querySelector(t);return n||(n=document.createElement(t),e.insertBefore(n,e.firstChild))},an=function(){return on("ui5-static-area")},sn=function(t){function e(){return B(this,e),J(this,q(e).call(this))}return H(e,t),z(e,[{key:"destroy",value:function(){var t=document.querySelector(this.tagName.toLowerCase());t.parentElement.removeChild(t)}},{key:"isUI5Element",get:function(){return!0}}]),e}(G(HTMLElement));customElements.get("ui5-static-area")||customElements.define("ui5-static-area",sn);var un=function(t){return Array.isArray(t)?cn(t).join(" "):t},cn=function t(e){return e.reduce((function(e,n){return e.concat(Array.isArray(n)?t(n):n)}),[])},ln=function(){function t(e){B(this,t),this.ui5ElementContext=e,this._rendered=!1}var e;return z(t,[{key:"isRendered",value:function(){return this._rendered}},{key:"_updateFragment",value:function(){var t=rn(this.ui5ElementContext.constructor.staticAreaTemplate,this.ui5ElementContext),e=!window.ShadyDOM&&un(this.ui5ElementContext.constructor.staticAreaStyles);this.staticAreaItemDomRef||(this.staticAreaItemDomRef=document.createElement("ui5-static-area-item"),this.staticAreaItemDomRef.attachShadow({mode:"open"}),this.staticAreaItemDomRef.classList.add(this.ui5ElementContext._id),an().appendChild(this.staticAreaItemDomRef),this._rendered=!0),this._updateContentDensity(this.ui5ElementContext.isCompact),this.ui5ElementContext.constructor.render(t,this.staticAreaItemDomRef.shadowRoot,e,{eventContext:this.ui5ElementContext})}},{key:"_removeFragmentFromStaticArea",value:function(){if(this.staticAreaItemDomRef){var t=an();t.removeChild(this.staticAreaItemDomRef),this.staticAreaItemDomRef=null,t.childElementCount<1&&an().destroy()}}},{key:"_updateContentDensity",value:function(t){this.staticAreaItemDomRef&&(t?(this.staticAreaItemDomRef.classList.add("sapUiSizeCompact"),this.staticAreaItemDomRef.classList.add("ui5-content-density-compact")):(this.staticAreaItemDomRef.classList.remove("sapUiSizeCompact"),this.staticAreaItemDomRef.classList.remove("ui5-content-density-compact")))}},{key:"getDomRef",value:(e=U(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return this._rendered&&this.staticAreaItemDomRef||this._updateFragment(),t.next=3,Wt.whenDOMUpdated();case 3:return t.abrupt("return",this.staticAreaItemDomRef.shadowRoot);case 4:case"end":return t.stop()}}),t,this)}))),function(){return e.apply(this,arguments)})}]),t}(),fn=function(t){function e(){return B(this,e),J(this,q(e).call(this))}return H(e,t),z(e,[{key:"isUI5Element",get:function(){return!0}}]),e}(G(HTMLElement));customElements.get("ui5-static-area-item")||customElements.define("ui5-static-area-item",fn);var hn,dn,pn=window,vn=new WeakMap,mn=function(){function t(){throw B(this,t),new Error("Static class")}return z(t,null,[{key:"observeDOMNode",value:function(t,e,n){var r=vn.get(t);if(r)throw new Error("A mutation/ShadyDOM observer is already assigned to this node.");pn.ShadyDOM?r=pn.ShadyDOM.observeChildren(t,e):(r=new MutationObserver(e)).observe(t,n),vn.set(t,r)}},{key:"unobserveDOMNode",value:function(t){var e=vn.get(t);e&&(e instanceof MutationObserver?e.disconnect():pn.ShadyDOM.unobserveChildren(e),vn.delete(t))}}]),t}(),gn=["value-changed"],yn=function(){return void 0===hn&&(Ct(),hn=gt.noConflict),hn},wn=function(t){var e=yn();return!function(t){return gn.includes(t)}(t)&&(!0===e||!function(t){var e=yn();return!(e.events&&e.events.includes&&e.events.includes(t))}(t))},bn=function(t){hn=t},_n={iw:"he",ji:"yi",in:"id",sh:"sr"},Sn=((dn=/\$([-a-z0-9A-Z._]+)(?::([^$]*))?\$/.exec("$cldr-rtl-locales:ar,fa,he$"))&&dn[2]?dn[2].split(/,/):null)||[],kn=function(){var t=(Ct(),gt.rtl);return null!==t?!!t:function(t){return t=t&&_n[t]||t,Sn.indexOf(t)>=0}(zt()||at())},xn=new Rt,En=function(t){xn.attachEvent("CustomCSSChange",t)},An={},On=new Map;En((function(t){On.delete(t)}));var Cn=function(t){var e=t.getMetadata().getTag();if(!On.has(e)){var n=function(t){return An[t]?An[t].join(""):""}(e)||"",r=un(t.styles),o="".concat(r," ").concat(n);On.set(e,o)}return On.get(e)},Rn=new Map;En((function(t){Rn.delete(t)}));var Mn=function(t,e,n,r){var o=n+e.length,i=t.charAt(o),a=t.substring(0,n)+r;if("("===i){var s=function(t,e){for(var n=1,r=e+1;r<t.length;r++){var o=t.charAt(r);if("("===o?n++:")"===o&&n--,0===n)return r}}(t,o);return a+t.substring(o+1,s)+t.substring(s+1)}return a+t.substring(o)},Pn=function(t,e,n){return(t=function(t,e,n){for(var r=t.indexOf(e);-1!==r;)r=(t=Mn(t,e,r,n)).indexOf(e);return t}(t=t.trim(),"::slotted","")).startsWith(":host")?Mn(t,":host",0,e):t.match(/^[@0-9]/)||"to"===t||"to{"===t?t:t.match(new RegExp("^".concat(e,"[^a-zA-Z0-9-]")))?t:n&&t.startsWith("[".concat(n,"]"))?t:"".concat(e," ").concat(t)},Ln=function(t,e,n){t=(t=t.replace(/\n/g," ")).replace(/([{}])/g,"$1\n");var r="";return t.split("\n").forEach((function(t){if(t.match(/{$/)){var o=t.split(",");t=o.map((function(t){return Pn(t,e,n)})).join(",")}r="".concat(r).concat(t)})),r},Tn=new Set;En((function(t){Tn.delete(t)}));var Nn=function(t){var e=t.getMetadata().getTag(),n=t.getMetadata().getPureTag();if(!Tn.has(e)){var r=Cn(t);r=Ln(r,e,n);var o=function(t){var e=t.staticAreaStyles;return Array.isArray(e)&&(e=e.join(" ")),e}(t);o&&(o=Ln(o,"ui5-static-area-item"),r="".concat(r," ").concat(o)),ke(r,{"data-ui5-element-styles":e}),Ae()&&(he||(he=window.setTimeout(Oe,0))),Tn.add(e)}},jn=function(t){function e(){return B(this,e),J(this,q(e).apply(this,arguments))}return H(e,t),z(e,null,[{key:"isValid",value:function(t){return Number.isInteger(t)}}]),e}(ze),Dn=function(t){function e(){return B(this,e),J(this,q(e).apply(this,arguments))}return H(e,t),z(e,null,[{key:"isValid",value:function(t){return Number(t)===t}}]),e}(ze),In=["disabled","title","hidden","role","draggable"],Vn=function(t){return!(!In.includes(t)&&!t.startsWith("aria"))||![HTMLElement,Element,Node].some((function(e){return e.prototype.hasOwnProperty(t)}))},Fn={events:{"_property-change":{}}},Un=0,Bn=new Map,Wn=new Map,zn=function(t){function e(){var t,n;return B(this,e),(t=J(this,q(e).call(this)))._propertyChangeListeners=new Set,t._initializeState(),t._upgradeAllProperties(),t._initializeContainers(),t._upToDate=!1,t._inDOM=!1,t._fullyConnected=!1,t._domRefReadyPromise=new Promise((function(t){n=t})),t._domRefReadyPromise._deferredResolve=n,t._monitoredChildProps=new Map,t._shouldInvalidateParent=!1,t}var n,r,o,i,a,s;return H(e,t),z(e,[{key:"addEventListener",value:function(t,n,r){return"_property-change"===t&&this._propertyChangeListeners.add(n),Y(q(e.prototype),"addEventListener",this).call(this,t,n,r)}},{key:"removeEventListener",value:function(t,n,r){return"_property-change"===t&&this._propertyChangeListeners.delete(n),Y(q(e.prototype),"removeEventListener",this).call(this,t,n,r)}},{key:"_hasPropertyChangeListeners",value:function(){return!!this._propertyChangeListeners.size}},{key:"_initializeContainers",value:function(){var t=this.constructor._needsShadowDOM(),e=this.constructor._needsStaticArea();t&&this.attachShadow({mode:"open"}),e&&(this.staticAreaItem=new ln(this))}},{key:"connectedCallback",value:(s=U(regeneratorRuntime.mark((function t(){var e,n;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(this.setAttribute(this.constructor.getMetadata().getPureTag(),""),e=this.constructor._needsShadowDOM(),n=this.constructor.getMetadata().slotsAreManaged(),this._inDOM=!0,!n){t.next=8;break}return this._startObservingDOMChildren(),t.next=8,this._processChildren();case 8:if(!e){t.next=19;break}if(this.shadowRoot){t.next=12;break}return t.next=12,Promise.resolve();case 12:if(this._inDOM){t.next=14;break}return t.abrupt("return");case 14:Wt.register(this),Wt.renderImmediately(this),this._domRefReadyPromise._deferredResolve(),this._fullyConnected=!0,"function"==typeof this.onEnterDOM&&this.onEnterDOM();case 19:case"end":return t.stop()}}),t,this)}))),function(){return s.apply(this,arguments)})},{key:"disconnectedCallback",value:function(){var t=this.constructor._needsShadowDOM(),e=this.constructor._needsStaticArea(),n=this.constructor.getMetadata().slotsAreManaged();this._inDOM=!1,n&&this._stopObservingDOMChildren(),t&&(Wt.deregister(this),this._fullyConnected&&("function"==typeof this.onExitDOM&&this.onExitDOM(),this._fullyConnected=!1)),e&&this.staticAreaItem._removeFragmentFromStaticArea(),Wt.cancelRender(this)}},{key:"_startObservingDOMChildren",value:function(){if(this.constructor.getMetadata().hasSlots()){var t={childList:!0,subtree:this.constructor.getMetadata().canSlotText(),characterData:!0};mn.observeDOMNode(this,this._processChildren.bind(this),t)}}},{key:"_stopObservingDOMChildren",value:function(){mn.unobserveDOMNode(this)}},{key:"_processChildren",value:(a=U(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!this.constructor.getMetadata().hasSlots()){t.next=4;break}return t.next=4,this._updateSlots();case 4:case"end":return t.stop()}}),t,this)}))),function(){return a.apply(this,arguments)})},{key:"_updateSlots",value:(i=U(regeneratorRuntime.mark((function t(){var e,n,r,o,i,a,s,u,c,l,f,h=this;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:for(e=this.constructor.getMetadata().getSlots(),n=this.constructor.getMetadata().canSlotText(),r=Array.from(n?this.childNodes:this.children),o=0,i=Object.entries(e);o<i.length;o++)a=K(i[o],2),s=a[0],u=a[1],this._clearSlot(s,u);return c=new Map,l=new Map,f=r.map(function(){var t=U(regeneratorRuntime.mark((function t(n,r){var o,i,a,s,u,f,d,p;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(o=h.constructor._getSlotName(n),void 0!==(i=e[o])){t.next=6;break}return a=Object.keys(e).join(", "),console.warn("Unknown slotName: ".concat(o,", ignoring"),n,"Valid values are: ".concat(a)),t.abrupt("return");case 6:if(i.individualSlots&&(s=(c.get(o)||0)+1,c.set(o,s),n._individualSlot="".concat(o,"-").concat(s)),!(n instanceof HTMLElement)){t.next=19;break}if(!(u=n.localName).includes("-")){t.next=19;break}if(window.customElements.get(u)){t.next=18;break}return f=window.customElements.whenDefined(u),(d=Bn.get(u))||(d=new Promise((function(t){return setTimeout(t,1e3)})),Bn.set(u,d)),t.next=18,Promise.race([f,d]);case 18:window.customElements.upgrade(n);case 19:(n=h.constructor.getMetadata().constructor.validateSlotValue(n,i)).isUI5Element&&i.listenFor&&h._attachChildPropertyUpdated(n,i.listenFor),n.isUI5Element&&i.invalidateParent&&(n._shouldInvalidateParent=!0),Je(n)&&h._attachSlotChange(n),p=i.propertyName||o,l.has(p)?l.get(p).push({child:n,idx:r}):l.set(p,[{child:n,idx:r}]);case 25:case"end":return t.stop()}}),t)})));return function(e,n){return t.apply(this,arguments)}}()),t.next=9,Promise.all(f);case 9:l.forEach((function(t,e){h._state[e]=t.sort((function(t,e){return t.idx-e.idx})).map((function(t){return t.child}))})),this._invalidate("slots");case 11:case"end":return t.stop()}}),t,this)}))),function(){return i.apply(this,arguments)})},{key:"_clearSlot",value:function(t,e){var n=this,r=e.propertyName||t,o=this._state[r];Array.isArray(o)||(o=[o]),o.forEach((function(t){t&&t.isUI5Element&&(n._detachChildPropertyUpdated(t),t._shouldInvalidateParent=!1),Je(t)&&n._detachSlotChange(t)})),this._state[r]=[],this._invalidate(r,[])}},{key:"attributeChangedCallback",value:function(t,e,n){var r=this.constructor.getMetadata().getProperties(),o=t.replace(/^ui5-/,""),i=$e(o);if(r.hasOwnProperty(i)){var a=r[i].type;a===Boolean&&(n=null!==n),a===jn&&(n=parseInt(n)),a===Dn&&(n=parseFloat(n)),this[i]=n}}},{key:"_updateAttribute",value:function(t,e){if(this.constructor.getMetadata().hasAttribute(t)&&"object"!==V(e)){var n=Ze(t),r=this.getAttribute(n);"boolean"==typeof e?!0===e&&null===r?this.setAttribute(n,""):!1===e&&null!==r&&this.removeAttribute(n):r!==e&&this.setAttribute(n,e)}}},{key:"_upgradeProperty",value:function(t){if(this.hasOwnProperty(t)){var e=this[t];delete this[t],this[t]=e}}},{key:"_upgradeAllProperties",value:function(){this.constructor.getMetadata().getPropertiesList().forEach(this._upgradeProperty,this)}},{key:"_initializeState",value:function(){var t=this.constructor._getDefaultState();this._state=Object.assign({},t)}},{key:"_attachChildPropertyUpdated",value:function(t,e){var n=this.constructor._getSlotName(t),r=[],o=[];Array.isArray(e)?r=e:(r=Array.isArray(e.include)?e.include:[],o=Array.isArray(e.exclude)?e.exclude:[]),this._monitoredChildProps.has(n)||this._monitoredChildProps.set(n,{observedProps:r,notObservedProps:o}),t.addEventListener("_property-change",this._invalidateParentOnPropertyUpdate)}},{key:"_detachChildPropertyUpdated",value:function(t){t.removeEventListener("_property-change",this._invalidateParentOnPropertyUpdate)}},{key:"_propertyChange",value:function(t,e){this._updateAttribute(t,e),this._hasPropertyChangeListeners()&&this.dispatchEvent(new CustomEvent("_property-change",{detail:{name:t,newValue:e},composed:!1,bubbles:!1}))}},{key:"_invalidateParentOnPropertyUpdate",value:function(t){var e=this.parentNode;if(e){var n=e.constructor._getSlotName(this),r=e._monitoredChildProps.get(n);if(r){var o=r.observedProps,i=r.notObservedProps,a=1===o.length&&"*"===o[0]||o.includes(t.detail.name),s=i.includes(t.detail.name);a&&!s&&e._invalidate("_parent_",this)}}}},{key:"_attachSlotChange",value:function(t){var e=this;this._invalidateOnSlotChange||(this._invalidateOnSlotChange=function(){e._invalidate("slotchange")}),t.addEventListener("slotchange",this._invalidateOnSlotChange)}},{key:"_detachSlotChange",value:function(t){t.removeEventListener("slotchange",this._invalidateOnSlotChange)}},{key:"_invalidate",value:function(){this._shouldInvalidateParent&&this.parentNode._invalidate(),this._upToDate&&this.getDomRef()&&!this._suppressInvalidation&&(this._upToDate=!1,Wt.renderDeferred(this))}},{key:"_render",value:function(){var t=this.constructor.getMetadata().hasIndividualSlots();this._suppressInvalidation=!0,"function"==typeof this.onBeforeRendering&&this.onBeforeRendering(),this._onComponentStateFinalized&&this._onComponentStateFinalized(),delete this._suppressInvalidation,this._upToDate=!0,this._updateShadowRoot(),this._shouldUpdateFragment()&&this.staticAreaItem._updateFragment(this),t&&this._assignIndividualSlotsToChildren(),"function"==typeof this.onAfterRendering&&this.onAfterRendering()}},{key:"_updateShadowRoot",value:function(){if(this.constructor._needsShadowDOM()){var t,e=rn(this.constructor.template,this);window.ShadyDOM&&Nn(this.constructor),document.adoptedStyleSheets&&(this.shadowRoot.adoptedStyleSheets=function(t){var e=t.getMetadata().getTag();if(!Rn.has(e)){var n=Cn(t),r=new CSSStyleSheet;r.replaceSync(n),Rn.set(e,[r])}return Rn.get(e)}(this.constructor)),document.adoptedStyleSheets||window.ShadyDOM||(t=Cn(this.constructor)),this.constructor.render(e,this.shadowRoot,t,{eventContext:this})}}},{key:"_assignIndividualSlotsToChildren",value:function(){Array.from(this.children).forEach((function(t){t._individualSlot&&t.setAttribute("slot",t._individualSlot)}))}},{key:"_waitForDomRef",value:function(){return this._domRefReadyPromise}},{key:"getDomRef",value:function(){if(this.shadowRoot&&0!==this.shadowRoot.children.length)return 1===this.shadowRoot.children.length?this.shadowRoot.children[0]:this.shadowRoot.children[1]}},{key:"getFocusDomRef",value:function(){var t=this.getDomRef();if(t)return t.querySelector("[data-sap-focus-ref]")||t}},{key:"getStableDomRef",value:function(t){return this.getDomRef().querySelector("[data-ui5-stable=".concat(t,"]"))}},{key:"focus",value:(o=U(regeneratorRuntime.mark((function t(){var e;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this._waitForDomRef();case 2:(e=this.getFocusDomRef())&&"function"==typeof e.focus&&e.focus();case 4:case"end":return t.stop()}}),t,this)}))),function(){return o.apply(this,arguments)})},{key:"fireEvent",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],o=this._fireEvent(t,e,n,r),i=$e(t);return i!==t?o&&this._fireEvent(i,e,n):o}},{key:"_fireEvent",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],o=!0,i=new CustomEvent("ui5-".concat(t),{detail:e,composed:!1,bubbles:r,cancelable:n});if(o=this.dispatchEvent(i),wn(t))return o;var a=new CustomEvent(t,{detail:e,composed:!1,bubbles:r,cancelable:n}),s=this.dispatchEvent(a);return s&&o}},{key:"getSlottedNodes",value:function(t){return this[t].reduce((function(t,e){return Je(e)?t.concat(e.assignedNodes({flatten:!0}).filter((function(t){return t instanceof HTMLElement}))):t.concat([e])}),[])}},{key:"updateStaticAreaItemContentDensity",value:function(){this.staticAreaItem&&this.staticAreaItem._updateContentDensity(this.isCompact)}},{key:"_shouldUpdateFragment",value:function(){return this.constructor._needsStaticArea()&&this.staticAreaItem.isRendered()}},{key:"getStaticAreaItemDomRef",value:function(){return this.staticAreaItem.getDomRef()}},{key:"_id",get:function(){return this.__id||(this.__id="ui5wc_".concat(++Un)),this.__id}},{key:"isCompact",get:function(){return"compact"===getComputedStyle(this).getPropertyValue("--_ui5_content_density")}},{key:"effectiveDir",get:function(){var t;t=this.constructor,Ft.add(t);var e=window.document,n=["ltr","rtl"],r=getComputedStyle(this).getPropertyValue("--_ui5_dir");return n.includes(r)?r:n.includes(this.dir)?this.dir:n.includes(e.documentElement.dir)?e.documentElement.dir:n.includes(e.body.dir)?e.body.dir:kn()?"rtl":void 0}},{key:"isUI5Element",get:function(){return!0}}],[{key:"_getSlotName",value:function(t){if(!(t instanceof HTMLElement))return"default";var e=t.getAttribute("slot");if(e){var n=e.match(/^(.+?)-\d+$/);return n?n[1]:e}return"default"}},{key:"_needsShadowDOM",value:function(){return!!this.template}},{key:"_needsStaticArea",value:function(){return"function"==typeof this.staticAreaTemplate}},{key:"_getDefaultState",value:function(){if(this._defaultState)return this._defaultState;var t=this.getMetadata(),e={},n=t.slotsAreManaged(),r=t.getProperties();for(var o in r){var i=r[o].type,a=r[o].defaultValue;i===Boolean?(e[o]=!1,void 0!==a&&console.warn("The 'defaultValue' metadata key is ignored for all booleans properties, they would be initialized with 'false' by default")):r[o].multiple?e[o]=[]:e[o]=i===Object?"defaultValue"in r[o]?r[o].defaultValue:{}:i===String?"defaultValue"in r[o]?r[o].defaultValue:"":a}if(n)for(var s=t.getSlots(),u=0,c=Object.entries(s);u<c.length;u++){var l=K(c[u],2),f=l[0];e[l[1].propertyName||f]=[]}return this._defaultState=e,e}},{key:"_generateAccessors",value:function(){for(var t=this.prototype,e=this.getMetadata().slotsAreManaged(),n=this.getMetadata().getProperties(),r=function(){var e=K(i[o],2),n=e[0],r=e[1];if(Vn(n)||console.warn('"'.concat(n,'" is not a valid property name. Use a name that does not collide with DOM APIs')),r.type===Boolean&&r.defaultValue)throw new Error('Cannot set a default value for property "'.concat(n,'". All booleans are false by default.'));if(r.type===Array)throw new Error('Wrong type for property "'.concat(n,'". Properties cannot be of type Array - use "multiple: true" and set "type" to the single value type, such as "String", "Object", etc...'));if(r.type===Object&&r.defaultValue)throw new Error('Cannot set a default value for property "'.concat(n,'". All properties of type "Object" are empty objects by default.'));if(r.multiple&&r.defaultValue)throw new Error('Cannot set a default value for property "'.concat(n,'". All multiple properties are empty arrays by default.'));Object.defineProperty(t,n,{get:function(){if(void 0!==this._state[n])return this._state[n];var t=r.defaultValue;return r.type!==Boolean&&(r.type===String?t:r.multiple?[]:t)},set:function(t){t=this.constructor.getMetadata().constructor.validatePropertyValue(t,r),this._state[n]!==t&&(this._state[n]=t,this._invalidate(n,t),this._propertyChange(n,t))}})},o=0,i=Object.entries(n);o<i.length;o++)r();if(e)for(var a=this.getMetadata().getSlots(),s=function(){var e=K(c[u],2),n=e[0],r=e[1];Vn(n)||console.warn('"'.concat(n,'" is not a valid property name. Use a name that does not collide with DOM APIs'));var o=r.propertyName||n;Object.defineProperty(t,o,{get:function(){return void 0!==this._state[o]?this._state[o]:[]},set:function(){throw new Error("Cannot set slots directly, use the DOM APIs")}})},u=0,c=Object.entries(a);u<c.length;u++)s()}},{key:"getUniqueDependencies",value:function(){if(!Wn.has(this)){var t=this.dependencies.filter((function(t,e,n){return n.indexOf(t)===e}));Wn.set(this,t)}return Wn.get(this)}},{key:"whenDependenciesDefined",value:function(){return Promise.all(this.getUniqueDependencies().map((function(t){return t.define()})))}},{key:"onDefine",value:(r=U(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",Promise.resolve());case 1:case"end":return t.stop()}}),t)}))),function(){return r.apply(this,arguments)})},{key:"define",value:(n=U(regeneratorRuntime.mark((function t(){var e,n,r,o,i;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Ue||(Ue=new Promise(function(){var t=U(regeneratorRuntime.mark((function t(e){var n;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(n=nt("OpenUI5Support"))){t.next=4;break}return t.next=4,n.init();case 4:return t.next=6,new Promise((function(t){document.body?t():document.addEventListener("DOMContentLoaded",(function(){t()}))}));case 6:return t.next=8,Ne(je());case 8:return n&&n.attachListeners(),We(),document.querySelector("head>style[data-ui5-system-css-vars]")||ke('\n\t:root {\n\t\t--_ui5_content_density:cozy;\n\t}\n\t\n\t[data-ui5-compact-size],\n\t.ui5-content-density-compact,\n\t.sapUiSizeCompact {\n\t\t--_ui5_content_density:compact;\n\t}\n\t\n\t[dir="rtl"] {\n\t\t--_ui5_dir:rtl;\n\t}\n\t\n\t[dir="ltr"] {\n\t\t--_ui5_dir:ltr;\n\t}\n',{"data-ui5-system-css-vars":""}),t.next=13,Fe||(Fe=new Promise((function(t){window.WebComponents&&!window.WebComponents.ready&&window.WebComponents.waitFor?window.WebComponents.waitFor((function(){t()})):t()})));case 13:e();case 14:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()));case 2:return t.next=4,Promise.all([this.whenDependenciesDefined(),this.onDefine()]);case 4:return e=this.getMetadata().getTag(),n=this.getMetadata().getAltTag(),r=Dt(e),(o=customElements.get(e))&&!r?It(e):o||(this._generateAccessors(),jt(e),window.customElements.define(e,this),n&&!customElements.get(n)&&(i=function(t){function e(){return B(this,e),J(this,q(e).apply(this,arguments))}return H(e,t),e}(this),jt(n),window.customElements.define(n,i))),t.abrupt("return",this);case 10:case"end":return t.stop()}}),t,this)}))),function(){return n.apply(this,arguments)})},{key:"getMetadata",value:function(){if(this.hasOwnProperty("_metadata"))return this._metadata;for(var t=[this.metadata],n=this;n!==e;)n=Object.getPrototypeOf(n),t.unshift(n.metadata);var r=vt.apply(void 0,[{}].concat(t));return this._metadata=new tn(r),this._metadata}},{key:"observedAttributes",get:function(){return this.getMetadata().getAttributesList()}},{key:"metadata",get:function(){return Fn}},{key:"styles",get:function(){return""}},{key:"staticAreaStyles",get:function(){return""}},{key:"dependencies",get:function(){return[]}}]),e}(G(HTMLElement)),Hn=new WeakMap,qn=function(t){return"function"==typeof t&&Hn.has(t)},$n=void 0!==window.customElements&&void 0!==window.customElements.polyfillWrapFlushCallback,Zn=function(t,e){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;e!==n;){var r=e.nextSibling;t.removeChild(e),e=r}},Gn={},Jn={},Yn="{{lit-".concat(String(Math.random()).slice(2),"}}"),Xn="\x3c!--".concat(Yn,"--\x3e"),Kn=new RegExp("".concat(Yn,"|").concat(Xn)),Qn=function t(e,n){B(this,t),this.parts=[],this.element=n;for(var r=[],o=[],i=document.createTreeWalker(n.content,133,null,!1),a=0,s=-1,u=0,c=e.strings,l=e.values.length;u<l;){var f=i.nextNode();if(null!==f){if(s++,1===f.nodeType){if(f.hasAttributes()){for(var h=f.attributes,d=h.length,p=0,v=0;v<d;v++)tr(h[v].name,"$lit$")&&p++;for(;p-- >0;){var m=c[u],g=rr.exec(m)[2],y=g.toLowerCase()+"$lit$",w=f.getAttribute(y);f.removeAttribute(y);var b=w.split(Kn);this.parts.push({type:"attribute",index:s,name:g,strings:b}),u+=b.length-1}}"TEMPLATE"===f.tagName&&(o.push(f),i.currentNode=f.content)}else if(3===f.nodeType){var _=f.data;if(_.indexOf(Yn)>=0){for(var S=f.parentNode,k=_.split(Kn),x=k.length-1,E=0;E<x;E++){var A=void 0,O=k[E];if(""===O)A=nr();else{var C=rr.exec(O);null!==C&&tr(C[2],"$lit$")&&(O=O.slice(0,C.index)+C[1]+C[2].slice(0,-"$lit$".length)+C[3]),A=document.createTextNode(O)}S.insertBefore(A,f),this.parts.push({type:"node",index:++s})}""===k[x]?(S.insertBefore(nr(),f),r.push(f)):f.data=k[x],u+=x}}else if(8===f.nodeType)if(f.data===Yn){var R=f.parentNode;null!==f.previousSibling&&s!==a||(s++,R.insertBefore(nr(),f)),a=s,this.parts.push({type:"node",index:s}),null===f.nextSibling?f.data="":(r.push(f),s--),u++}else for(var M=-1;-1!==(M=f.data.indexOf(Yn,M+1));)this.parts.push({type:"node",index:-1}),u++}else i.currentNode=o.pop()}for(var P=0,L=r;P<L.length;P++){var T=L[P];T.parentNode.removeChild(T)}},tr=function(t,e){var n=t.length-e.length;return n>=0&&t.slice(n)===e},er=function(t){return-1!==t.index},nr=function(){return document.createComment("")},rr=/([ \x09\x0a\x0c\x0d])([^\0-\x1F\x7F-\x9F "'>=/]+)([ \x09\x0a\x0c\x0d]*=[ \x09\x0a\x0c\x0d]*(?:[^ \x09\x0a\x0c\x0d"'`<>=]*|"[^"]*|'[^']*))$/,or=function(){function t(e,n,r){B(this,t),this.__parts=[],this.template=e,this.processor=n,this.options=r}return z(t,[{key:"update",value:function(t){var e=0,n=!0,r=!1,o=void 0;try{for(var i,a=this.__parts[Symbol.iterator]();!(n=(i=a.next()).done);n=!0){var s=i.value;void 0!==s&&s.setValue(t[e]),e++}}catch(t){r=!0,o=t}finally{try{n||null==a.return||a.return()}finally{if(r)throw o}}var u=!0,c=!1,l=void 0;try{for(var f,h=this.__parts[Symbol.iterator]();!(u=(f=h.next()).done);u=!0){var d=f.value;void 0!==d&&d.commit()}}catch(t){c=!0,l=t}finally{try{u||null==h.return||h.return()}finally{if(c)throw l}}}},{key:"_clone",value:function(){for(var t,e=$n?this.template.element.content.cloneNode(!0):document.importNode(this.template.element.content,!0),n=[],r=this.template.parts,o=document.createTreeWalker(e,133,null,!1),i=0,a=0,s=o.nextNode();i<r.length;)if(t=r[i],er(t)){for(;a<t.index;)a++,"TEMPLATE"===s.nodeName&&(n.push(s),o.currentNode=s.content),null===(s=o.nextNode())&&(o.currentNode=n.pop(),s=o.nextNode());if("node"===t.type){var u=this.processor.handleTextExpression(this.options);u.insertAfterNode(s.previousSibling),this.__parts.push(u)}else{var c;(c=this.__parts).push.apply(c,Q(this.processor.handleAttributeExpressions(s,t.name,t.strings,this.options)))}i++}else this.__parts.push(void 0),i++;return $n&&(document.adoptNode(e),customElements.upgrade(e)),e}}]),t}(),ir=" ".concat(Yn," "),ar=function(){function t(e,n,r,o){B(this,t),this.strings=e,this.values=n,this.type=r,this.processor=o}return z(t,[{key:"getHTML",value:function(){for(var t=this.strings.length-1,e="",n=!1,r=0;r<t;r++){var o=this.strings[r],i=o.lastIndexOf("\x3c!--");n=(i>-1||n)&&-1===o.indexOf("--\x3e",i+1);var a=rr.exec(o);e+=null===a?o+(n?ir:Xn):o.substr(0,a.index)+a[1]+a[2]+"$lit$"+a[3]+Yn}return e+=this.strings[t]}},{key:"getTemplateElement",value:function(){var t=document.createElement("template");return t.innerHTML=this.getHTML(),t}}]),t}(),sr=function(t){return null===t||!("object"===V(t)||"function"==typeof t)},ur=function(t){return Array.isArray(t)||!(!t||!t[Symbol.iterator])},cr=function(){function t(e,n,r){B(this,t),this.dirty=!0,this.element=e,this.name=n,this.strings=r,this.parts=[];for(var o=0;o<r.length-1;o++)this.parts[o]=this._createPart()}return z(t,[{key:"_createPart",value:function(){return new lr(this)}},{key:"_getValue",value:function(){for(var t=this.strings,e=t.length-1,n="",r=0;r<e;r++){n+=t[r];var o=this.parts[r];if(void 0!==o){var i=o.value;if(sr(i)||!ur(i))n+="string"==typeof i?i:String(i);else{var a=!0,s=!1,u=void 0;try{for(var c,l=i[Symbol.iterator]();!(a=(c=l.next()).done);a=!0){var f=c.value;n+="string"==typeof f?f:String(f)}}catch(t){s=!0,u=t}finally{try{a||null==l.return||l.return()}finally{if(s)throw u}}}}}return n+=t[e]}},{key:"commit",value:function(){this.dirty&&(this.dirty=!1,this.element.setAttribute(this.name,this._getValue()))}}]),t}(),lr=function(){function t(e){B(this,t),this.value=void 0,this.committer=e}return z(t,[{key:"setValue",value:function(t){t===Gn||sr(t)&&t===this.value||(this.value=t,qn(t)||(this.committer.dirty=!0))}},{key:"commit",value:function(){for(;qn(this.value);){var t=this.value;this.value=Gn,t(this)}this.value!==Gn&&this.committer.commit()}}]),t}(),fr=function(){function t(e){B(this,t),this.value=void 0,this.__pendingValue=void 0,this.options=e}return z(t,[{key:"appendInto",value:function(t){this.startNode=t.appendChild(nr()),this.endNode=t.appendChild(nr())}},{key:"insertAfterNode",value:function(t){this.startNode=t,this.endNode=t.nextSibling}},{key:"appendIntoPart",value:function(t){t.__insert(this.startNode=nr()),t.__insert(this.endNode=nr())}},{key:"insertAfterPart",value:function(t){t.__insert(this.startNode=nr()),this.endNode=t.endNode,t.endNode=this.startNode}},{key:"setValue",value:function(t){this.__pendingValue=t}},{key:"commit",value:function(){for(;qn(this.__pendingValue);){var t=this.__pendingValue;this.__pendingValue=Gn,t(this)}var e=this.__pendingValue;e!==Gn&&(sr(e)?e!==this.value&&this.__commitText(e):e instanceof ar?this.__commitTemplateResult(e):e instanceof Node?this.__commitNode(e):ur(e)?this.__commitIterable(e):e===Jn?(this.value=Jn,this.clear()):this.__commitText(e))}},{key:"__insert",value:function(t){this.endNode.parentNode.insertBefore(t,this.endNode)}},{key:"__commitNode",value:function(t){this.value!==t&&(this.clear(),this.__insert(t),this.value=t)}},{key:"__commitText",value:function(t){var e=this.startNode.nextSibling,n="string"==typeof(t=null==t?"":t)?t:String(t);e===this.endNode.previousSibling&&3===e.nodeType?e.data=n:this.__commitNode(document.createTextNode(n)),this.value=t}},{key:"__commitTemplateResult",value:function(t){var e=this.options.templateFactory(t);if(this.value instanceof or&&this.value.template===e)this.value.update(t.values);else{var n=new or(e,t.processor,this.options),r=n._clone();n.update(t.values),this.__commitNode(r),this.value=n}}},{key:"__commitIterable",value:function(e){Array.isArray(this.value)||(this.value=[],this.clear());var n,r=this.value,o=0,i=!0,a=!1,s=void 0;try{for(var u,c=e[Symbol.iterator]();!(i=(u=c.next()).done);i=!0){var l=u.value;void 0===(n=r[o])&&(n=new t(this.options),r.push(n),0===o?n.appendIntoPart(this):n.insertAfterPart(r[o-1])),n.setValue(l),n.commit(),o++}}catch(t){a=!0,s=t}finally{try{i||null==c.return||c.return()}finally{if(a)throw s}}o<r.length&&(r.length=o,this.clear(n&&n.endNode))}},{key:"clear",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.startNode;Zn(this.startNode.parentNode,t.nextSibling,this.endNode)}}]),t}(),hr=function(){function t(e,n,r){if(B(this,t),this.value=void 0,this.__pendingValue=void 0,2!==r.length||""!==r[0]||""!==r[1])throw new Error("Boolean attributes can only contain a single expression");this.element=e,this.name=n,this.strings=r}return z(t,[{key:"setValue",value:function(t){this.__pendingValue=t}},{key:"commit",value:function(){for(;qn(this.__pendingValue);){var t=this.__pendingValue;this.__pendingValue=Gn,t(this)}if(this.__pendingValue!==Gn){var e=!!this.__pendingValue;this.value!==e&&(e?this.element.setAttribute(this.name,""):this.element.removeAttribute(this.name),this.value=e),this.__pendingValue=Gn}}}]),t}(),dr=function(t){function e(t,n,r){var o;return B(this,e),(o=J(this,q(e).call(this,t,n,r))).single=2===r.length&&""===r[0]&&""===r[1],o}return H(e,t),z(e,[{key:"_createPart",value:function(){return new pr(this)}},{key:"_getValue",value:function(){return this.single?this.parts[0].value:Y(q(e.prototype),"_getValue",this).call(this)}},{key:"commit",value:function(){this.dirty&&(this.dirty=!1,this.element[this.name]=this._getValue())}}]),e}(cr),pr=function(t){function e(){return B(this,e),J(this,q(e).apply(this,arguments))}return H(e,t),e}(lr),vr=!1;try{var mr={get capture(){return vr=!0,!1}};window.addEventListener("test",mr,mr),window.removeEventListener("test",mr,mr)}catch(t){}var gr=function(){function t(e,n,r){var o=this;B(this,t),this.value=void 0,this.__pendingValue=void 0,this.element=e,this.eventName=n,this.eventContext=r,this.__boundHandleEvent=function(t){return o.handleEvent(t)}}return z(t,[{key:"setValue",value:function(t){this.__pendingValue=t}},{key:"commit",value:function(){for(;qn(this.__pendingValue);){var t=this.__pendingValue;this.__pendingValue=Gn,t(this)}if(this.__pendingValue!==Gn){var e=this.__pendingValue,n=this.value,r=null==e||null!=n&&(e.capture!==n.capture||e.once!==n.once||e.passive!==n.passive),o=null!=e&&(null==n||r);r&&this.element.removeEventListener(this.eventName,this.__boundHandleEvent,this.__options),o&&(this.__options=yr(e),this.element.addEventListener(this.eventName,this.__boundHandleEvent,this.__options)),this.value=e,this.__pendingValue=Gn}}},{key:"handleEvent",value:function(t){"function"==typeof this.value?this.value.call(this.eventContext||this.element,t):this.value.handleEvent(t)}}]),t}(),yr=function(t){return t&&(vr?{capture:t.capture,passive:t.passive,once:t.once}:t.capture)},wr=new(function(){function t(){B(this,t)}return z(t,[{key:"handleAttributeExpressions",value:function(t,e,n,r){var o=e[0];return"."===o?new dr(t,e.slice(1),n).parts:"@"===o?[new gr(t,e.slice(1),r.eventContext)]:"?"===o?[new hr(t,e.slice(1),n)]:new cr(t,e,n).parts}},{key:"handleTextExpression",value:function(t){return new fr(t)}}]),t}());
|
|
171
|
-
/**
|
|
172
|
-
* @license
|
|
173
|
-
* Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
174
|
-
* This code may only be used under the BSD style license found at
|
|
175
|
-
* http://polymer.github.io/LICENSE.txt
|
|
176
|
-
* The complete set of authors may be found at
|
|
177
|
-
* http://polymer.github.io/AUTHORS.txt
|
|
178
|
-
* The complete set of contributors may be found at
|
|
179
|
-
* http://polymer.github.io/CONTRIBUTORS.txt
|
|
180
|
-
* Code distributed by Google as part of the polymer project is also
|
|
181
|
-
* subject to an additional IP rights grant found at
|
|
182
|
-
* http://polymer.github.io/PATENTS.txt
|
|
183
|
-
*/
|
|
184
|
-
function br(t){var e=_r.get(t.type);void 0===e&&(e={stringsArray:new WeakMap,keyString:new Map},_r.set(t.type,e));var n=e.stringsArray.get(t.strings);if(void 0!==n)return n;var r=t.strings.join(Yn);return void 0===(n=e.keyString.get(r))&&(n=new Qn(t,t.getTemplateElement()),e.keyString.set(r,n)),e.stringsArray.set(t.strings,n),n}var _r=new Map,Sr=new WeakMap,kr=function(t,e,n){var r=Sr.get(e);void 0===r&&(Zn(e,e.firstChild),Sr.set(e,r=new fr(Object.assign({templateFactory:br},n))),r.appendInto(e)),r.setValue(t),r.commit()};
|
|
185
|
-
/**
|
|
186
|
-
* @license
|
|
187
|
-
* Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
188
|
-
* This code may only be used under the BSD style license found at
|
|
189
|
-
* http://polymer.github.io/LICENSE.txt
|
|
190
|
-
* The complete set of authors may be found at
|
|
191
|
-
* http://polymer.github.io/AUTHORS.txt
|
|
192
|
-
* The complete set of contributors may be found at
|
|
193
|
-
* http://polymer.github.io/CONTRIBUTORS.txt
|
|
194
|
-
* Code distributed by Google as part of the polymer project is also
|
|
195
|
-
* subject to an additional IP rights grant found at
|
|
196
|
-
* http://polymer.github.io/PATENTS.txt
|
|
197
|
-
*/
|
|
198
|
-
/**
|
|
199
|
-
* @license
|
|
200
|
-
* Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
201
|
-
* This code may only be used under the BSD style license found at
|
|
202
|
-
* http://polymer.github.io/LICENSE.txt
|
|
203
|
-
* The complete set of authors may be found at
|
|
204
|
-
* http://polymer.github.io/AUTHORS.txt
|
|
205
|
-
* The complete set of contributors may be found at
|
|
206
|
-
* http://polymer.github.io/CONTRIBUTORS.txt
|
|
207
|
-
* Code distributed by Google as part of the polymer project is also
|
|
208
|
-
* subject to an additional IP rights grant found at
|
|
209
|
-
* http://polymer.github.io/PATENTS.txt
|
|
210
|
-
*/
|
|
211
|
-
(window.litHtmlVersions||(window.litHtmlVersions=[])).push("1.1.2");var xr=function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return new ar(t,n,"html",wr)},Er=new Map,Ar=function(t,e,n){return n&&e&&e.length&&(t=t.map((function(t){if(Er.has(t))return Er.get(t);var r=t;return e.forEach((function(t){r=r.replace(new RegExp("(</?)(".concat(t,")(/?[> \t\n])"),"g"),"$1$2-".concat(n,"$3"))})),Er.set(t,r),r}))),t};function Or(){var t=X(["<style>","</style>",""]);return Or=function(){return t},t}var Cr=function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=r.eventContext;n&&(t=xr(Or(),n,t)),kr(t,e,{eventContext:o})},Rr=function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return xr.apply(void 0,[Ar(t,void 0,void 0)].concat(n))};function Mr(){var t=X(['<div><p>\n\t\t\t\t<slot></slot>\n\t\t\t\t<slot name="other"></slot>\n\t\t\t\t<slot name="individual-1"></slot>\n\t\t\t\t<slot name="individual-2"></slot>\n\t\t\t</p></div>']);return Mr=function(){return t},t}var Pr={tag:"ui5-test-generic",properties:{strProp:{type:String},boolProp:{type:Boolean},objectProp:{type:Object},noAttributeProp:{type:String,noAttribute:!0},multiProp:{type:String,multiple:!0},defaultValueProp:{type:String,defaultValue:"Hello"}},managedSlots:!0,slots:{default:{type:Node},other:{type:HTMLElement},individual:{type:HTMLElement,individualSlots:!0},named:{type:HTMLElement,propertyName:"items"}}},Lr=function(t){function e(){return B(this,e),J(this,q(e).apply(this,arguments))}return H(e,t),z(e,[{key:"onBeforeRendering",value:function(){}},{key:"onAfterRendering",value:function(){}},{key:"onEnterDOM",value:function(){}},{key:"onExitDOM",value:function(){}}],[{key:"metadata",get:function(){return Pr}},{key:"render",get:function(){return Cr}},{key:"template",get:function(){return function(t){return Rr(Mr())}}},{key:"styles",get:function(){return":host {\n display: inline-block;\n border: 1px solid black;\n color: var(--var1);\n }"}}]),e}(zn);Lr.define();var Tr={tag:"ui5-test-no-shadow"};function Nr(){var t=X(["<div>\n\t\t\t\t<slot></slot>\n\t\t\t</div>"]);return Nr=function(){return t},t}(function(t){function e(){return B(this,e),J(this,q(e).apply(this,arguments))}return H(e,t),z(e,null,[{key:"metadata",get:function(){return Tr}}]),e})(zn).define();var jr={tag:"ui5-test-parent",managedSlots:!0,slots:{default:{type:Node,listenFor:["prop1"]},items:{type:HTMLElement,listenFor:{include:["*"],exclude:["prop3"]}}}};function Dr(){var t=X(["<div></div>"]);return Dr=function(){return t},t}(function(t){function e(){return B(this,e),J(this,q(e).apply(this,arguments))}return H(e,t),z(e,null,[{key:"metadata",get:function(){return jr}},{key:"render",get:function(){return Cr}},{key:"template",get:function(){return function(t){return Rr(Nr())}}}]),e})(zn).define();var Ir={tag:"ui5-test-child",properties:{prop1:{type:String},prop2:{type:String},prop3:{type:String}}};function Vr(){var t=X(['\n\t\t\t\t<div class="ui5-with-static-area-content">\n\t\t\t\t\tStatic area content.\n\t\t\t\t</div>']);return Vr=function(){return t},t}function Fr(){var t=X(["\n\t\t\t\t<div>\n\t\t\t\t\tWithStaticArea works!\n\t\t\t\t</div>"]);return Fr=function(){return t},t}(function(t){function e(){return B(this,e),J(this,q(e).apply(this,arguments))}return H(e,t),z(e,null,[{key:"metadata",get:function(){return Ir}},{key:"render",get:function(){return Cr}},{key:"template",get:function(){return function(t){return Rr(Dr())}}}]),e})(zn).define();var Ur={tag:"ui5-with-static-area",properties:{staticContent:{type:Boolean}},slots:{}};(function(t){function e(){return B(this,e),J(this,q(e).apply(this,arguments))}var n;return H(e,t),z(e,[{key:"addStaticArea",value:(n=U(regeneratorRuntime.mark((function t(){var e;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(this.staticContent){t.next=2;break}return t.abrupt("return");case 2:return t.next=4,this.getStaticAreaItemDomRef();case 4:return e=t.sent,this.responsivePopover=e.querySelector(".ui5-with-static-area-content"),t.abrupt("return",this.responsivePopover);case 7:case"end":return t.stop()}}),t,this)}))),function(){return n.apply(this,arguments)})},{key:"onBeforeRendering",value:function(){this.addStaticArea()}},{key:"onAfterRendering",value:function(){}},{key:"onEnterDOM",value:function(){}},{key:"onExitDOM",value:function(){}}],[{key:"metadata",get:function(){return Ur}},{key:"render",get:function(){return Cr}},{key:"template",get:function(){return function(t){return Rr(Fr())}}},{key:"staticAreaTemplate",get:function(){return function(t){return Rr(Vr())}}},{key:"styles",get:function(){return"\n\t\t\t:host {\n\t\t\t\tdisplay: inline-block;\n\t\t\t\tborder: 1px solid black;\n\t\t\t\tcolor: red;\n\t\t\t}"}}]),e})(zn).define();var Br={tag:"ui5-test-generic-ext",properties:{extProp:{type:String},strProp:{defaultValue:"Ext"}},slots:{extSlot:{type:HTMLElement}}};(function(t){function e(){return B(this,e),J(this,q(e).apply(this,arguments))}return H(e,t),z(e,null,[{key:"metadata",get:function(){return Br}}]),e})(Lr).define();ye("@ui5/webcomponents-base-test","sap_fiori_3",":root{ --var1: red; }"),ye("@ui5/webcomponents-base-test","sap_fiori_3_dark",":root{ --var1: green; }"),ye("@ui5/webcomponents-base-test","sap_belize",":root{ --var1: blue; }"),ye("@ui5/webcomponents-base-test","sap_belize_hcb",":root{ --var1: orange; }"),ye("@ui5/webcomponents-base-test","sap_belize_hcw",":root{ --var1: orange; }"),ye("@ui5/webcomponents-base-test","sap_fiori_3_hcb",":root{ --var1: yellow; }"),ye("@ui5/webcomponents-base-test","sap_fiori_3_hcw",":root{ --var1: yellow; }");var Wr={},zr={INTERNET_EXPLORER:"ie",EDGE:"ed",FIREFOX:"ff",CHROME:"cr",SAFARI:"sf",ANDROID:"an"},Hr=function(){var t,e,n,r=function(){var t=navigator.userAgent.toLowerCase(),e=/(edge)[ /]([\w.]+)/.exec(t)||/(trident)\/[\w.]+;.*rv:([\w.]+)/.exec(t)||/(webkit)[ /]([\w.]+)/.exec(t)||/(msie) ([\w.]+)/.exec(t)||t.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+))?/.exec(t)||[],n={browser:e[1]||"",version:e[2]||"0"};return n[n.browser]=!0,n}(),o=navigator.userAgent,i=window.navigator;if(r.mozilla)t=/Mobile/,o.match(/Firefox\/(\d+\.\d+)/)?(n=parseFloat(RegExp.$1),e={name:zr.FIREFOX,versionStr:"".concat(n),version:n,mozilla:!0,mobile:t.test(o)}):e={mobile:t.test(o),mozilla:!0,version:-1};else if(r.webkit){var a,s=o.toLowerCase().match(/webkit[/]([\d.]+)/);s&&(a=s[1]),t=/Mobile/;var u=o.match(/(Chrome|CriOS)\/(\d+\.\d+).\d+/),c=o.match(/FxiOS\/(\d+\.\d+)/),l=o.match(/Android .+ Version\/(\d+\.\d+)/);if(u||c||l){var f,h,d;u?(f=zr.CHROME,d=t.test(o),h=parseFloat(u[2])):c?(f=zr.FIREFOX,d=!0,h=parseFloat(c[1])):l&&(f=zr.ANDROID,d=t.test(o),h=parseFloat(l[1])),e={name:f,mobile:d,versionStr:"".concat(h),version:h,webkit:!0,webkitVersion:a}}else{var p=/(Version|PhantomJS)\/(\d+\.\d+).*Safari/,v=i.standalone;if(p.test(o)){var m=p.exec(o);n=parseFloat(m[2]),e={name:zr.SAFARI,versionStr:"".concat(n),fullscreen:!1,webview:!1,version:n,mobile:t.test(o),webkit:!0,webkitVersion:a,phantomJS:"PhantomJS"===m[1]}}else e=!/iPhone|iPad|iPod/.test(o)||/CriOS/.test(o)||/FxiOS/.test(o)||!0!==v&&!1!==v?{mobile:t.test(o),webkit:!0,webkitVersion:a,version:-1}:{name:zr.SAFARI,version:-1,fullscreen:v,webview:!v,mobile:t.test(o),webkit:!0,webkitVersion:a}}}else r.msie||r.trident?(n=parseFloat(r.version),e={name:zr.INTERNET_EXPLORER,versionStr:"".concat(n),version:n,msie:!0,mobile:!1}):r.edge?(n=parseFloat(r.version),e={name:zr.EDGE,versionStr:"".concat(n),version:n,edge:!0}):e={name:"",versionStr:"",version:-1,mobile:!1};return e},qr="object"===("undefined"==typeof chrome?"undefined":V(chrome))||"object"===("undefined"==typeof v8?"undefined":V(v8))?function(t,e){return e>2&&t.length,t}:function(t){return t},$r=/(?:\r\n|\r|\n|^)[ \t\f]*/,Zr=/(\\u[0-9a-fA-F]{0,4})|(\\.)|(\\$)|([ \t\f]*[ \t\f:=][ \t\f]*)/g,Gr=/(\\u[0-9a-fA-F]{0,4})|(\\.)|(\\$)/g,Jr={"\\f":"\f","\\n":"\n","\\r":"\r","\\t":"\t"};et("PropertiesFormatSupport",{parser:function(t){var e,n,r,o,i,a,s,u,c={},l=t.split($r),f=function(t){o?(o="".concat(o).concat(t),u++):(o=t,u=0)};for(i=0;i<l.length;i++){if(!(""===(e=l[i])||"#"===e.charAt(0)||"!"===e.charAt(0))){for((n=Zr).lastIndex=s=0,r=null,o="",a=n.exec(e);null!==a;){if(s<a.index&&f(e.slice(s,a.index)),s=n.lastIndex,a[1]){if(6!==a[1].length)throw new Error("Incomplete Unicode Escape '".concat(a[1],"'"));f(String.fromCharCode(parseInt(a[1].slice(2),16)))}else a[2]?f(Jr[a[2]]||a[2].slice(1)):a[3]?(e=l[++i],s=0,n.lastIndex=s):a[4]&&(r=o,o="",(n=Gr).lastIndex=s);a=n.exec(e)}s<e.length&&f(e.slice(s)),null==r&&(r=o,o=""),c[r]=qr(o,o?u:0)}}return c}});var Yr,Xr,Kr=/('')|'([^']+(?:''[^']*)*)(?:'|$)|\{([0-9]+(?:\s*,[^{}]*)?)\}|[{}]/g,Qr=function(t,e){return e=e||[],t.replace(Kr,(function(t,n,r,o,i){if(n)return"'";if(r)return r.replace(/''/g,"'");if(o)return String(e[parseInt(o)]);throw new Error("[i18n]: pattern syntax error at pos ".concat(i))}))},to=new Map,eo=function(){function t(e){B(this,t),this.packageName=e}return z(t,[{key:"getText",value:function(t){if("string"==typeof t&&(t={key:t,defaultText:t}),!t||!t.key)return"";for(var e=le(this.packageName),n=e&&e[t.key]?e[t.key]:t.defaultText||t.key,r=arguments.length,o=new Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];return Qr(n,o)}}]),t}(),no=function(){return void 0===Yr&&(Ct(),Yr=gt.animationMode),Yr},ro={Gregorian:"Gregorian",Islamic:"Islamic",Japanese:"Japanese",Buddhist:"Buddhist",Persian:"Persian"},oo=function(t){function e(){return B(this,e),J(this,q(e).apply(this,arguments))}return H(e,t),z(e,null,[{key:"isValid",value:function(t){return!!ro[t]}}]),e}(ze);oo.generataTypeAcessors(ro);var io,ao=function(){return void 0===Xr&&(Ct(),Xr=gt.calendarType),oo.isValid(Xr)?Xr:oo.Gregorian},so=function(){return void 0===io&&(Ct(),io=gt.formatSettings),io.firstDayOfWeek},uo=function(t,e){for(var n=t.split("."),r=on("ui5-shared-resources",document.head),o=0;o<n.length;o++){var i=n[o],a=o===n.length-1;Object.prototype.hasOwnProperty.call(r,i)||(r[i]=a?e:{}),r=r[i]}return r},co=uo("SVGIcons.registry",new Map),lo=uo("SVGIcons.promises",new Map),fo=function(){var t=U(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!lo.has("SAP-icons")){t.next=3;break}return t.next=3,lo.get("SAP-icons");case 3:return t.abrupt("return",Array.from(co.keys()).map((function(t){return t.split(":")[1]})));case 4:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}();window.RenderScheduler=Wt,window.isIE=function(){return Wr.browser||(Wr.browser=Hr(),Wr.browser.BROWSER=zr,Wr.browser.name&&Object.keys(zr).forEach((function(t){zr[t]===Wr.browser.name&&(Wr.browser[t.toLowerCase()]=!0)}))),!!Wr.browser.msie},window.registerThemeProperties=ye,window["sap-ui-webcomponents-bundle"]={configuration:{getAnimationMode:no,getLanguage:zt,getTheme:je,setTheme:De,getNoConflict:yn,setNoConflict:bn,getCalendarType:ao,getRTL:kn,getFirstDayOfWeek:so},getIconNames:fo,registerI18nBundle:function(t,e){var n=ue.get(t)||{};ue.set(t,Object.assign({},n,e))},fetchI18nBundle:fe,getI18nBundle:function(t){if(to.has(t))return to.get(t);var e=new eo(t);return to.set(t,e),e}};var ho={getAnimationMode:no,getLanguage:zt,getTheme:je,setTheme:De,getNoConflict:yn,setNoConflict:bn,getCalendarType:ao,getRTL:kn,getFirstDayOfWeek:so};t.configuration=ho,t.getIconNames=fo}(this["sap-ui-webcomponents-bundle"]=this["sap-ui-webcomponents-bundle"]||{});
|
|
212
|
-
//# sourceMappingURL=bundle.es5.js.map
|