@ui5/webcomponents-base 0.0.0-4e00e5559 → 0.0.0-51202adee

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.
Files changed (765) hide show
  1. package/.eslintignore +4 -0
  2. package/CHANGELOG.md +511 -0
  3. package/README.md +53 -7
  4. package/bundle.esm.js +28 -17
  5. package/dist/AssetRegistry.d.ts +5 -0
  6. package/dist/AssetRegistry.js +6 -9
  7. package/dist/AssetRegistry.js.map +1 -0
  8. package/dist/Boot.d.ts +8 -0
  9. package/dist/Boot.js +44 -0
  10. package/dist/Boot.js.map +1 -0
  11. package/dist/CSP.d.ts +30 -0
  12. package/dist/CSP.js +51 -0
  13. package/dist/CSP.js.map +1 -0
  14. package/dist/CustomElementsRegistry.d.ts +5 -0
  15. package/dist/CustomElementsRegistry.js +78 -0
  16. package/dist/CustomElementsRegistry.js.map +1 -0
  17. package/dist/CustomElementsScope.d.ts +7 -0
  18. package/dist/CustomElementsScope.js +11 -0
  19. package/dist/CustomElementsScope.js.map +1 -0
  20. package/dist/CustomElementsScopeUtils.d.ts +55 -0
  21. package/dist/CustomElementsScopeUtils.js +90 -0
  22. package/dist/CustomElementsScopeUtils.js.map +1 -0
  23. package/dist/DOMObserver.d.ts +11 -0
  24. package/dist/DOMObserver.js +23 -0
  25. package/dist/DOMObserver.js.map +1 -0
  26. package/dist/Device.d.ts +12 -0
  27. package/dist/Device.js +84 -816
  28. package/dist/Device.js.map +1 -0
  29. package/dist/EventProvider.d.ts +25 -0
  30. package/dist/EventProvider.js +67 -70
  31. package/dist/EventProvider.js.map +1 -0
  32. package/dist/FeaturesRegistry.d.ts +3 -0
  33. package/dist/FeaturesRegistry.js +5 -7
  34. package/dist/FeaturesRegistry.js.map +1 -0
  35. package/dist/FontFace.d.ts +2 -0
  36. package/dist/FontFace.js +21 -69
  37. package/dist/FontFace.js.map +1 -0
  38. package/dist/InitialConfiguration.d.ts +22 -0
  39. package/dist/InitialConfiguration.js +119 -103
  40. package/dist/InitialConfiguration.js.map +1 -0
  41. package/dist/Keys.d.ts +57 -0
  42. package/dist/Keys.js +175 -158
  43. package/dist/Keys.js.map +1 -0
  44. package/dist/ManagedStyles.d.ts +8 -0
  45. package/dist/ManagedStyles.js +77 -0
  46. package/dist/ManagedStyles.js.map +1 -0
  47. package/dist/MarkedEvents.d.ts +9 -0
  48. package/dist/MarkedEvents.js +15 -0
  49. package/dist/MarkedEvents.js.map +1 -0
  50. package/dist/MediaRange.d.ts +37 -0
  51. package/dist/MediaRange.js +98 -0
  52. package/dist/MediaRange.js.map +1 -0
  53. package/dist/PropertiesFileFormat.d.ts +8 -0
  54. package/dist/PropertiesFileFormat.js +85 -0
  55. package/dist/PropertiesFileFormat.js.map +1 -0
  56. package/dist/Render.d.ts +47 -0
  57. package/dist/Render.js +143 -0
  58. package/dist/Render.js.map +1 -0
  59. package/dist/RenderQueue.d.ts +19 -0
  60. package/dist/RenderQueue.js +53 -39
  61. package/dist/RenderQueue.js.map +1 -0
  62. package/dist/Runtimes.d.ts +27 -0
  63. package/dist/Runtimes.js +86 -0
  64. package/dist/Runtimes.js.map +1 -0
  65. package/dist/StaticArea.d.ts +0 -0
  66. package/dist/StaticArea.js +4 -39
  67. package/dist/StaticArea.js.map +1 -0
  68. package/dist/StaticAreaItem.d.ts +36 -0
  69. package/dist/StaticAreaItem.js +92 -98
  70. package/dist/StaticAreaItem.js.map +1 -0
  71. package/dist/SystemCSSVars.d.ts +2 -0
  72. package/dist/SystemCSSVars.js +9 -0
  73. package/dist/SystemCSSVars.js.map +1 -0
  74. package/dist/Theming.d.ts +3 -0
  75. package/dist/Theming.js +3 -2
  76. package/dist/Theming.js.map +1 -0
  77. package/dist/UI5Element.d.ts +373 -0
  78. package/dist/UI5Element.js +947 -878
  79. package/dist/UI5Element.js.map +1 -0
  80. package/dist/UI5ElementMetadata.d.ts +150 -0
  81. package/dist/UI5ElementMetadata.js +278 -160
  82. package/dist/UI5ElementMetadata.js.map +1 -0
  83. package/dist/animations/AnimationQueue.d.ts +8 -0
  84. package/dist/animations/AnimationQueue.js +31 -38
  85. package/dist/animations/AnimationQueue.js.map +1 -0
  86. package/dist/animations/animate.d.ts +14 -0
  87. package/dist/animations/animate.js +46 -51
  88. package/dist/animations/animate.js.map +1 -0
  89. package/dist/animations/scroll.d.ts +5 -0
  90. package/dist/animations/scroll.js +18 -27
  91. package/dist/animations/scroll.js.map +1 -0
  92. package/dist/animations/slideDown.d.ts +5 -0
  93. package/dist/animations/slideDown.js +53 -78
  94. package/dist/animations/slideDown.js.map +1 -0
  95. package/dist/animations/slideUp.d.ts +5 -0
  96. package/dist/animations/slideUp.js +49 -70
  97. package/dist/animations/slideUp.js.map +1 -0
  98. package/dist/api.json +1 -0
  99. package/dist/asset-registries/Icons.d.ts +30 -0
  100. package/dist/asset-registries/Icons.js +104 -24
  101. package/dist/asset-registries/Icons.js.map +1 -0
  102. package/dist/asset-registries/Illustrations.d.ts +17 -0
  103. package/dist/asset-registries/Illustrations.js +46 -0
  104. package/dist/asset-registries/Illustrations.js.map +1 -0
  105. package/dist/asset-registries/LocaleData.d.ts +7 -0
  106. package/dist/asset-registries/LocaleData.js +125 -114
  107. package/dist/asset-registries/LocaleData.js.map +1 -0
  108. package/dist/asset-registries/Themes.d.ts +10 -0
  109. package/dist/asset-registries/Themes.js +39 -76
  110. package/dist/asset-registries/Themes.js.map +1 -0
  111. package/dist/asset-registries/i18n.d.ts +23 -0
  112. package/dist/asset-registries/i18n.js +74 -58
  113. package/dist/asset-registries/i18n.js.map +1 -0
  114. package/dist/assets/bundle.esm.3a492d53.js +56 -0
  115. package/dist/assets-meta/IconCollectionsAlias.d.ts +17 -0
  116. package/dist/assets-meta/IconCollectionsAlias.js +18 -0
  117. package/dist/assets-meta/IconCollectionsAlias.js.map +1 -0
  118. package/dist/config/AnimationMode.d.ts +14 -0
  119. package/dist/config/AnimationMode.js +23 -10
  120. package/dist/config/AnimationMode.js.map +1 -0
  121. package/dist/config/CalendarType.d.ts +8 -0
  122. package/dist/config/CalendarType.js +13 -12
  123. package/dist/config/CalendarType.js.map +1 -0
  124. package/dist/config/FormatSettings.d.ts +11 -0
  125. package/dist/config/FormatSettings.js +10 -8
  126. package/dist/config/FormatSettings.js.map +1 -0
  127. package/dist/config/Icons.d.ts +30 -0
  128. package/dist/config/Icons.js +48 -0
  129. package/dist/config/Icons.js.map +1 -0
  130. package/dist/config/Language.d.ts +31 -0
  131. package/dist/config/Language.js +54 -10
  132. package/dist/config/Language.js.map +1 -0
  133. package/dist/config/NoConflict.d.ts +20 -0
  134. package/dist/config/NoConflict.js +40 -41
  135. package/dist/config/NoConflict.js.map +1 -0
  136. package/dist/config/RTL.d.ts +7 -0
  137. package/dist/config/RTL.js +23 -20
  138. package/dist/config/RTL.js.map +1 -0
  139. package/dist/config/Theme.d.ts +28 -0
  140. package/dist/config/Theme.js +45 -22
  141. package/dist/config/Theme.js.map +1 -0
  142. package/dist/config/ThemeRoots.d.ts +4 -0
  143. package/dist/config/ThemeRoots.js +28 -0
  144. package/dist/config/ThemeRoots.js.map +1 -0
  145. package/dist/css/BusyIndicator.css +80 -0
  146. package/dist/css/FontFace.css +66 -0
  147. package/dist/css/OverrideFontFace.css +32 -0
  148. package/dist/css/SystemCSSVars.css +17 -0
  149. package/dist/decorators/customElement.d.ts +8 -0
  150. package/dist/decorators/customElement.js +16 -0
  151. package/dist/decorators/customElement.js.map +1 -0
  152. package/dist/decorators/event.d.ts +10 -0
  153. package/dist/decorators/event.js +24 -0
  154. package/dist/decorators/event.js.map +1 -0
  155. package/dist/decorators/fastNavigation.d.ts +7 -0
  156. package/dist/decorators/fastNavigation.js +13 -0
  157. package/dist/decorators/fastNavigation.js.map +1 -0
  158. package/dist/decorators/languageAware.d.ts +7 -0
  159. package/dist/decorators/languageAware.js +13 -0
  160. package/dist/decorators/languageAware.js.map +1 -0
  161. package/dist/decorators/property.d.ts +9 -0
  162. package/dist/decorators/property.js +24 -0
  163. package/dist/decorators/property.js.map +1 -0
  164. package/dist/decorators/slot.d.ts +9 -0
  165. package/dist/decorators/slot.js +37 -0
  166. package/dist/decorators/slot.js.map +1 -0
  167. package/dist/decorators/themeAware.d.ts +7 -0
  168. package/dist/decorators/themeAware.js +13 -0
  169. package/dist/decorators/themeAware.js.map +1 -0
  170. package/dist/delegate/ItemNavigation.d.ts +113 -0
  171. package/dist/delegate/ItemNavigation.js +312 -274
  172. package/dist/delegate/ItemNavigation.js.map +1 -0
  173. package/dist/delegate/ResizeHandler.d.ts +24 -0
  174. package/dist/delegate/ResizeHandler.js +80 -63
  175. package/dist/delegate/ResizeHandler.js.map +1 -0
  176. package/dist/delegate/ScrollEnablement.d.ts +49 -0
  177. package/dist/delegate/ScrollEnablement.js +159 -120
  178. package/dist/delegate/ScrollEnablement.js.map +1 -0
  179. package/dist/features/F6Navigation.d.ts +16 -0
  180. package/dist/features/F6Navigation.js +112 -0
  181. package/dist/features/F6Navigation.js.map +1 -0
  182. package/dist/features/OpenUI5Element.d.ts +9 -0
  183. package/dist/features/OpenUI5Element.js +5 -0
  184. package/dist/features/OpenUI5Element.js.map +1 -0
  185. package/dist/features/OpenUI5Enablement.d.ts +11 -0
  186. package/dist/features/OpenUI5Enablement.js +96 -0
  187. package/dist/features/OpenUI5Enablement.js.map +1 -0
  188. package/dist/features/OpenUI5Support.d.ts +23 -0
  189. package/dist/features/OpenUI5Support.js +93 -86
  190. package/dist/features/OpenUI5Support.js.map +1 -0
  191. package/dist/generated/AssetParameters.js +1 -1
  192. package/dist/generated/VersionInfo.js +10 -0
  193. package/dist/generated/css/BusyIndicator.css.js +5 -0
  194. package/dist/generated/css/FontFace.css.js +5 -0
  195. package/dist/generated/css/OverrideFontFace.css.js +5 -0
  196. package/dist/generated/css/SystemCSSVars.css.js +5 -0
  197. package/dist/generated/templates/elements/WithComplexTemplateTemplate.lit.js +11 -0
  198. package/dist/getSharedResource.d.ts +11 -0
  199. package/dist/getSharedResource.js +26 -0
  200. package/dist/getSharedResource.js.map +1 -0
  201. package/dist/global.d.ts +44 -0
  202. package/dist/i18nBundle.d.ts +43 -0
  203. package/dist/i18nBundle.js +73 -28
  204. package/dist/i18nBundle.js.map +1 -0
  205. package/dist/locale/Locale.d.ts +22 -0
  206. package/dist/locale/Locale.js +75 -87
  207. package/dist/locale/Locale.js.map +1 -0
  208. package/dist/locale/RTLAwareRegistry.d.ts +4 -0
  209. package/dist/locale/RTLAwareRegistry.js +9 -0
  210. package/dist/locale/RTLAwareRegistry.js.map +1 -0
  211. package/dist/locale/applyDirection.d.ts +10 -0
  212. package/dist/locale/applyDirection.js +17 -0
  213. package/dist/locale/applyDirection.js.map +1 -0
  214. package/dist/locale/directionChange.d.ts +15 -0
  215. package/dist/locale/directionChange.js +24 -0
  216. package/dist/locale/directionChange.js.map +1 -0
  217. package/dist/locale/getEffectiveDir.d.ts +2 -0
  218. package/dist/locale/getEffectiveDir.js +24 -0
  219. package/dist/locale/getEffectiveDir.js.map +1 -0
  220. package/dist/locale/getLocale.d.ts +7 -0
  221. package/dist/locale/getLocale.js +28 -21
  222. package/dist/locale/getLocale.js.map +1 -0
  223. package/dist/locale/languageChange.d.ts +5 -0
  224. package/dist/locale/languageChange.js +14 -0
  225. package/dist/locale/languageChange.js.map +1 -0
  226. package/dist/locale/nextFallbackLocale.d.ts +8 -0
  227. package/dist/locale/nextFallbackLocale.js +15 -19
  228. package/dist/locale/nextFallbackLocale.js.map +1 -0
  229. package/dist/locale/normalizeLocale.d.ts +7 -0
  230. package/dist/locale/normalizeLocale.js +34 -41
  231. package/dist/locale/normalizeLocale.js.map +1 -0
  232. package/dist/renderer/LitRenderer.d.ts +14 -0
  233. package/dist/renderer/LitRenderer.js +38 -12
  234. package/dist/renderer/LitRenderer.js.map +1 -0
  235. package/dist/renderer/directives/style-map.js +72 -0
  236. package/dist/renderer/executeTemplate.d.ts +13 -0
  237. package/dist/renderer/executeTemplate.js +30 -0
  238. package/dist/renderer/executeTemplate.js.map +1 -0
  239. package/dist/sap/base/Log.js +240 -0
  240. package/dist/sap/base/assert.js +7 -0
  241. package/dist/sap/base/security/URLListValidator.js +159 -0
  242. package/dist/sap/base/security/encodeCSS.js +14 -0
  243. package/dist/sap/base/security/encodeXML.js +23 -0
  244. package/dist/sap/base/security/sanitizeHTML.js +16 -0
  245. package/dist/sap/base/strings/toHex.js +8 -0
  246. package/dist/sap/base/util/now.js +7 -0
  247. package/dist/sap/ui/thirdparty/caja-html-sanitizer.js +3585 -0
  248. package/dist/theming/CustomStyle.d.ts +6 -0
  249. package/dist/theming/CustomStyle.js +44 -17
  250. package/dist/theming/CustomStyle.js.map +1 -0
  251. package/dist/theming/ThemeLoaded.d.ts +5 -0
  252. package/dist/theming/ThemeLoaded.js +14 -0
  253. package/dist/theming/ThemeLoaded.js.map +1 -0
  254. package/dist/theming/applyTheme.d.ts +2 -0
  255. package/dist/theming/applyTheme.js +63 -69
  256. package/dist/theming/applyTheme.js.map +1 -0
  257. package/dist/theming/getConstructableStyle.d.ts +9 -0
  258. package/dist/theming/getConstructableStyle.js +15 -15
  259. package/dist/theming/getConstructableStyle.js.map +1 -0
  260. package/dist/theming/getEffectiveLinksHrefs.d.ts +3 -0
  261. package/dist/theming/getEffectiveLinksHrefs.js +17 -0
  262. package/dist/theming/getEffectiveLinksHrefs.js.map +1 -0
  263. package/dist/theming/getEffectiveStyle.d.ts +3 -0
  264. package/dist/theming/getEffectiveStyle.js +30 -13
  265. package/dist/theming/getEffectiveStyle.js.map +1 -0
  266. package/dist/theming/getStylesString.d.ts +3 -0
  267. package/dist/theming/getStylesString.js +11 -0
  268. package/dist/theming/getStylesString.js.map +1 -0
  269. package/dist/theming/getThemeDesignerTheme.d.ts +7 -0
  270. package/dist/theming/getThemeDesignerTheme.js +73 -60
  271. package/dist/theming/getThemeDesignerTheme.js.map +1 -0
  272. package/dist/theming/preloadLinks.d.ts +3 -0
  273. package/dist/theming/preloadLinks.js +19 -0
  274. package/dist/theming/preloadLinks.js.map +1 -0
  275. package/dist/thirdparty/_merge.d.ts +2 -0
  276. package/dist/thirdparty/_merge.js +7 -4
  277. package/dist/thirdparty/_merge.js.map +1 -0
  278. package/dist/thirdparty/isPlainObject.d.ts +2 -0
  279. package/dist/thirdparty/isPlainObject.js +11 -10
  280. package/dist/thirdparty/isPlainObject.js.map +1 -0
  281. package/dist/thirdparty/merge.d.ts +2 -0
  282. package/dist/thirdparty/merge.js +4 -8
  283. package/dist/thirdparty/merge.js.map +1 -0
  284. package/dist/types/AnimationMode.d.ts +32 -0
  285. package/dist/types/AnimationMode.js +33 -6
  286. package/dist/types/AnimationMode.js.map +1 -0
  287. package/dist/types/CSSColor.d.ts +16 -0
  288. package/dist/types/CSSColor.js +19 -0
  289. package/dist/types/CSSColor.js.map +1 -0
  290. package/dist/types/CalendarType.d.ts +37 -0
  291. package/dist/types/CalendarType.js +35 -18
  292. package/dist/types/CalendarType.js.map +1 -0
  293. package/dist/types/DOMReference.d.ts +17 -0
  294. package/dist/types/DOMReference.js +25 -0
  295. package/dist/types/DOMReference.js.map +1 -0
  296. package/dist/types/DataType.d.ts +25 -0
  297. package/dist/types/DataType.js +33 -14
  298. package/dist/types/DataType.js.map +1 -0
  299. package/dist/types/Float.d.ts +18 -0
  300. package/dist/types/Float.js +22 -0
  301. package/dist/types/Float.js.map +1 -0
  302. package/dist/types/Integer.d.ts +18 -0
  303. package/dist/types/Integer.js +18 -5
  304. package/dist/types/Integer.js.map +1 -0
  305. package/dist/types/InvisibleMessageMode.d.ts +25 -0
  306. package/dist/types/InvisibleMessageMode.js +27 -0
  307. package/dist/types/InvisibleMessageMode.js.map +1 -0
  308. package/dist/types/ItemNavigationBehavior.d.ts +24 -0
  309. package/dist/types/ItemNavigationBehavior.js +22 -17
  310. package/dist/types/ItemNavigationBehavior.js.map +1 -0
  311. package/dist/types/NavigationMode.d.ts +32 -0
  312. package/dist/types/NavigationMode.js +33 -5
  313. package/dist/types/NavigationMode.js.map +1 -0
  314. package/dist/types/ValueState.d.ts +42 -0
  315. package/dist/types/ValueState.js +41 -19
  316. package/dist/types/ValueState.js.map +1 -0
  317. package/dist/types.d.ts +18 -0
  318. package/dist/types.js +2 -0
  319. package/dist/types.js.map +1 -0
  320. package/dist/updateShadowRoot.d.ts +8 -0
  321. package/dist/updateShadowRoot.js +34 -0
  322. package/dist/updateShadowRoot.js.map +1 -0
  323. package/dist/util/AriaLabelHelper.d.ts +6 -0
  324. package/dist/util/AriaLabelHelper.js +44 -0
  325. package/dist/util/AriaLabelHelper.js.map +1 -0
  326. package/dist/util/Caret.d.ts +7 -0
  327. package/dist/util/Caret.js +23 -0
  328. package/dist/util/Caret.js.map +1 -0
  329. package/dist/util/ColorConversion.d.ts +30 -0
  330. package/dist/util/ColorConversion.js +337 -0
  331. package/dist/util/ColorConversion.js.map +1 -0
  332. package/dist/util/FetchHelper.d.ts +3 -0
  333. package/dist/util/FetchHelper.js +19 -25
  334. package/dist/util/FetchHelper.js.map +1 -0
  335. package/dist/util/FocusableElements.d.ts +4 -0
  336. package/dist/util/FocusableElements.js +58 -56
  337. package/dist/util/FocusableElements.js.map +1 -0
  338. package/dist/util/HTMLSanitizer.d.ts +3 -0
  339. package/dist/util/HTMLSanitizer.js +6 -0
  340. package/dist/util/HTMLSanitizer.js.map +1 -0
  341. package/dist/util/InvisibleMessage.d.ts +10 -0
  342. package/dist/util/InvisibleMessage.js +56 -0
  343. package/dist/util/InvisibleMessage.js.map +1 -0
  344. package/dist/util/PopupUtils.d.ts +7 -0
  345. package/dist/util/PopupUtils.js +74 -0
  346. package/dist/util/PopupUtils.js.map +1 -0
  347. package/dist/util/SlotsHelper.d.ts +9 -0
  348. package/dist/util/SlotsHelper.js +30 -0
  349. package/dist/util/SlotsHelper.js.map +1 -0
  350. package/dist/util/StringHelper.d.ts +3 -0
  351. package/dist/util/StringHelper.js +17 -20
  352. package/dist/util/StringHelper.js.map +1 -0
  353. package/dist/util/TabbableElements.d.ts +17 -0
  354. package/dist/util/TabbableElements.js +53 -39
  355. package/dist/util/TabbableElements.js.map +1 -0
  356. package/dist/util/arraysAreEqual.d.ts +2 -0
  357. package/dist/util/arraysAreEqual.js +13 -0
  358. package/dist/util/arraysAreEqual.js.map +1 -0
  359. package/dist/util/clamp.d.ts +9 -0
  360. package/dist/util/clamp.js +12 -0
  361. package/dist/util/clamp.js.map +1 -0
  362. package/dist/util/createLinkInHead.d.ts +7 -0
  363. package/dist/util/createLinkInHead.js +21 -0
  364. package/dist/util/createLinkInHead.js.map +1 -0
  365. package/dist/util/createStyleInHead.d.ts +8 -0
  366. package/dist/util/createStyleInHead.js +10 -10
  367. package/dist/util/createStyleInHead.js.map +1 -0
  368. package/dist/util/debounce.d.ts +2 -0
  369. package/dist/util/debounce.js +15 -0
  370. package/dist/util/debounce.js.map +1 -0
  371. package/dist/util/detectNavigatorLanguage.d.ts +2 -0
  372. package/dist/util/detectNavigatorLanguage.js +7 -10
  373. package/dist/util/detectNavigatorLanguage.js.map +1 -0
  374. package/dist/util/escapeRegex.d.ts +8 -0
  375. package/dist/util/escapeRegex.js +11 -0
  376. package/dist/util/escapeRegex.js.map +1 -0
  377. package/dist/util/formatMessage.d.ts +2 -0
  378. package/dist/util/formatMessage.js +15 -19
  379. package/dist/util/formatMessage.js.map +1 -0
  380. package/dist/util/generateHighlightedMarkup.d.ts +9 -0
  381. package/dist/util/generateHighlightedMarkup.js +41 -0
  382. package/dist/util/generateHighlightedMarkup.js.map +1 -0
  383. package/dist/util/getActiveElement.d.ts +2 -0
  384. package/dist/util/getActiveElement.js +9 -0
  385. package/dist/util/getActiveElement.js.map +1 -0
  386. package/dist/util/getClassCopy.d.ts +400 -0
  387. package/dist/util/getClassCopy.js +10 -0
  388. package/dist/util/getClassCopy.js.map +1 -0
  389. package/dist/util/getDesigntimePropertyAsArray.d.ts +2 -0
  390. package/dist/util/getDesigntimePropertyAsArray.js +4 -3
  391. package/dist/util/getDesigntimePropertyAsArray.js.map +1 -0
  392. package/dist/util/getEffectiveContentDensity.d.ts +2 -0
  393. package/dist/util/getEffectiveContentDensity.js +4 -0
  394. package/dist/util/getEffectiveContentDensity.js.map +1 -0
  395. package/dist/util/getEffectiveScrollbarStyle.d.ts +2 -0
  396. package/dist/util/getEffectiveScrollbarStyle.js +4 -0
  397. package/dist/util/getEffectiveScrollbarStyle.js.map +1 -0
  398. package/dist/util/getFastNavigationGroups.d.ts +2 -0
  399. package/dist/util/getFastNavigationGroups.js +51 -0
  400. package/dist/util/getFastNavigationGroups.js.map +1 -0
  401. package/dist/util/getFileExtension.d.ts +12 -0
  402. package/dist/util/getFileExtension.js +9 -11
  403. package/dist/util/getFileExtension.js.map +1 -0
  404. package/dist/util/getNormalizedTarget.d.ts +7 -0
  405. package/dist/util/getNormalizedTarget.js +14 -0
  406. package/dist/util/getNormalizedTarget.js.map +1 -0
  407. package/dist/util/getSingletonElementInstance.d.ts +2 -0
  408. package/dist/util/getSingletonElementInstance.js +10 -0
  409. package/dist/util/getSingletonElementInstance.js.map +1 -0
  410. package/dist/util/isElementClickable.d.ts +2 -0
  411. package/dist/util/isElementClickable.js +16 -0
  412. package/dist/util/isElementClickable.js.map +1 -0
  413. package/dist/util/isElementHidden.d.ts +2 -0
  414. package/dist/util/isElementHidden.js +8 -0
  415. package/dist/util/isElementHidden.js.map +1 -0
  416. package/dist/util/isElementInView.d.ts +6 -0
  417. package/dist/util/isElementInView.js +12 -0
  418. package/dist/util/isElementInView.js.map +1 -0
  419. package/dist/util/isElementTabbable.d.ts +9 -0
  420. package/dist/util/isElementTabbable.js +30 -0
  421. package/dist/util/isElementTabbable.js.map +1 -0
  422. package/dist/util/isValidPropertyName.d.ts +8 -0
  423. package/dist/util/isValidPropertyName.js +20 -12
  424. package/dist/util/isValidPropertyName.js.map +1 -0
  425. package/dist/util/whenDOMReady.d.ts +2 -0
  426. package/dist/util/whenDOMReady.js +11 -10
  427. package/dist/util/whenDOMReady.js.map +1 -0
  428. package/dist/util/willShowContent.d.ts +2 -0
  429. package/dist/util/willShowContent.js +7 -0
  430. package/dist/util/willShowContent.js.map +1 -0
  431. package/dist/validateThemeRoot.d.ts +2 -0
  432. package/dist/validateThemeRoot.js +47 -0
  433. package/dist/validateThemeRoot.js.map +1 -0
  434. package/index.js +1 -1
  435. package/lib/generate-asset-parameters/index.js +8 -5
  436. package/lib/generate-styles/index.js +26 -0
  437. package/lib/generate-version-info/index.js +32 -0
  438. package/package-scripts.js +48 -28
  439. package/package.json +20 -12
  440. package/src/AssetRegistry.ts +11 -0
  441. package/src/Boot.ts +61 -0
  442. package/src/CSP.ts +66 -0
  443. package/src/CustomElementsRegistry.ts +98 -0
  444. package/src/CustomElementsScope.ts +33 -0
  445. package/src/CustomElementsScopeUtils.ts +115 -0
  446. package/src/DOMObserver.ts +28 -0
  447. package/src/Device.ts +124 -0
  448. package/src/EventProvider.ts +87 -0
  449. package/src/FeaturesRegistry.ts +14 -0
  450. package/src/FontFace.ts +31 -0
  451. package/src/InitialConfiguration.ts +207 -0
  452. package/src/Keys.ts +295 -0
  453. package/src/ManagedStyles.ts +92 -0
  454. package/src/MarkedEvents.ts +20 -0
  455. package/src/MediaRange.ts +110 -0
  456. package/src/PropertiesFileFormat.ts +95 -0
  457. package/src/Render.ts +180 -0
  458. package/src/RenderQueue.ts +71 -0
  459. package/src/Runtimes.ts +114 -0
  460. package/src/StaticArea.ts +3 -0
  461. package/src/StaticAreaItem.ts +113 -0
  462. package/src/SystemCSSVars.ts +10 -0
  463. package/src/Theming.ts +4 -0
  464. package/src/UI5Element.ts +1155 -0
  465. package/src/UI5ElementMetadata.ts +389 -0
  466. package/src/animations/{AnimationQueue.js → AnimationQueue.ts} +8 -7
  467. package/src/animations/animate.ts +64 -0
  468. package/src/animations/scroll.ts +21 -0
  469. package/src/animations/{slideDown.js → slideDown.ts} +27 -34
  470. package/src/animations/{slideUp.js → slideUp.ts} +28 -32
  471. package/src/asset-registries/Icons.ts +162 -0
  472. package/src/asset-registries/Illustrations.ts +75 -0
  473. package/src/asset-registries/LocaleData.ts +172 -0
  474. package/src/asset-registries/Themes.ts +67 -0
  475. package/src/asset-registries/i18n.ts +118 -0
  476. package/src/assets-meta/IconCollectionsAlias.ts +18 -0
  477. package/src/config/AnimationMode.ts +33 -0
  478. package/src/config/{CalendarType.js → CalendarType.ts} +8 -3
  479. package/src/config/FormatSettings.ts +21 -0
  480. package/src/config/Icons.ts +59 -0
  481. package/src/config/Language.ts +72 -0
  482. package/src/config/NoConflict.ts +67 -0
  483. package/src/config/{RTL.js → RTL.ts} +14 -4
  484. package/src/config/Theme.ts +64 -0
  485. package/src/config/ThemeRoots.ts +41 -0
  486. package/src/css/BusyIndicator.css +80 -0
  487. package/src/css/FontFace.css +66 -0
  488. package/src/css/OverrideFontFace.css +32 -0
  489. package/src/css/SystemCSSVars.css +17 -0
  490. package/src/decorators/customElement.ts +17 -0
  491. package/src/decorators/event.ts +28 -0
  492. package/src/decorators/fastNavigation.ts +14 -0
  493. package/src/decorators/languageAware.ts +14 -0
  494. package/src/decorators/property.ts +30 -0
  495. package/src/decorators/slot.ts +49 -0
  496. package/src/decorators/themeAware.ts +14 -0
  497. package/src/delegate/ItemNavigation.ts +393 -0
  498. package/src/delegate/ResizeHandler.ts +95 -0
  499. package/src/delegate/ScrollEnablement.ts +224 -0
  500. package/src/features/F6Navigation.ts +141 -0
  501. package/src/features/OpenUI5Element.ts +11 -0
  502. package/src/features/OpenUI5Enablement.ts +117 -0
  503. package/src/features/OpenUI5Support.ts +148 -0
  504. package/src/getSharedResource.ts +30 -0
  505. package/src/global.d.ts +44 -0
  506. package/src/i18nBundle.ts +108 -0
  507. package/src/locale/{Locale.js → Locale.ts} +15 -5
  508. package/src/locale/RTLAwareRegistry.ts +16 -0
  509. package/src/locale/applyDirection.ts +18 -0
  510. package/src/locale/directionChange.ts +34 -0
  511. package/src/locale/getEffectiveDir.ts +28 -0
  512. package/src/locale/{getLocale.js → getLocale.ts} +20 -5
  513. package/src/locale/languageChange.ts +24 -0
  514. package/src/locale/{nextFallbackLocale.js → nextFallbackLocale.ts} +1 -1
  515. package/src/locale/{normalizeLocale.js → normalizeLocale.ts} +5 -3
  516. package/src/renderer/LitRenderer.ts +60 -0
  517. package/src/renderer/directives/style-map.js +72 -0
  518. package/src/renderer/executeTemplate.ts +40 -0
  519. package/src/theming/CustomStyle.ts +62 -0
  520. package/src/theming/ThemeLoaded.ts +24 -0
  521. package/src/theming/applyTheme.ts +90 -0
  522. package/src/theming/getConstructableStyle.ts +31 -0
  523. package/src/theming/getEffectiveLinksHrefs.ts +26 -0
  524. package/src/theming/getEffectiveStyle.ts +41 -0
  525. package/src/theming/getStylesString.ts +15 -0
  526. package/src/theming/getThemeDesignerTheme.ts +101 -0
  527. package/src/theming/preloadLinks.ts +24 -0
  528. package/src/thirdparty/{_merge.js → _merge.ts} +2 -2
  529. package/src/thirdparty/{isPlainObject.js → isPlainObject.ts} +1 -1
  530. package/src/thirdparty/merge.ts +5 -0
  531. package/src/types/AnimationMode.ts +33 -0
  532. package/src/types/CSSColor.ts +20 -0
  533. package/src/types/CalendarType.ts +38 -0
  534. package/src/types/DOMReference.ts +28 -0
  535. package/src/types/DataType.ts +51 -0
  536. package/src/types/Float.ts +25 -0
  537. package/src/types/Integer.ts +25 -0
  538. package/src/types/InvisibleMessageMode.ts +27 -0
  539. package/src/types/ItemNavigationBehavior.ts +26 -0
  540. package/src/types/NavigationMode.ts +33 -0
  541. package/src/types/ValueState.ts +47 -0
  542. package/src/types.ts +30 -0
  543. package/src/updateShadowRoot.ts +37 -0
  544. package/src/util/AriaLabelHelper.ts +63 -0
  545. package/src/util/Caret.ts +28 -0
  546. package/src/util/ColorConversion.ts +399 -0
  547. package/src/util/{FetchHelper.js → FetchHelper.ts} +7 -7
  548. package/src/util/FocusableElements.ts +82 -0
  549. package/src/util/HTMLSanitizer.ts +9 -0
  550. package/src/util/InvisibleMessage.ts +69 -0
  551. package/src/util/PopupUtils.ts +112 -0
  552. package/src/util/SlotsHelper.ts +39 -0
  553. package/src/util/{StringHelper.js → StringHelper.ts} +7 -7
  554. package/src/util/TabbableElements.ts +70 -0
  555. package/src/util/arraysAreEqual.ts +15 -0
  556. package/src/util/clamp.ts +12 -0
  557. package/src/util/createLinkInHead.ts +25 -0
  558. package/src/util/{createStyleInHead.js → createStyleInHead.ts} +4 -2
  559. package/src/util/debounce.ts +18 -0
  560. package/src/util/{detectNavigatorLanguage.js → detectNavigatorLanguage.ts} +1 -1
  561. package/src/util/escapeRegex.ts +11 -0
  562. package/src/util/{formatMessage.js → formatMessage.ts} +4 -3
  563. package/src/util/generateHighlightedMarkup.ts +43 -0
  564. package/src/util/getActiveElement.ts +11 -0
  565. package/src/util/getClassCopy.ts +12 -0
  566. package/src/util/{getDesigntimePropertyAsArray.js → getDesigntimePropertyAsArray.ts} +1 -1
  567. package/src/util/getEffectiveContentDensity.ts +5 -0
  568. package/src/util/getEffectiveScrollbarStyle.ts +5 -0
  569. package/src/util/getFastNavigationGroups.ts +63 -0
  570. package/src/util/{getFileExtension.js → getFileExtension.ts} +3 -3
  571. package/src/util/getNormalizedTarget.ts +16 -0
  572. package/src/util/getSingletonElementInstance.ts +13 -0
  573. package/src/util/isElementClickable.ts +19 -0
  574. package/src/util/isElementHidden.ts +9 -0
  575. package/src/util/isElementInView.ts +15 -0
  576. package/src/util/isElementTabbable.ts +37 -0
  577. package/src/util/{isValidPropertyName.js → isValidPropertyName.ts} +12 -3
  578. package/src/util/{whenDOMReady.js → whenDOMReady.ts} +1 -1
  579. package/src/util/willShowContent.ts +7 -0
  580. package/src/validateThemeRoot.ts +58 -0
  581. package/tsconfig.json +13 -0
  582. package/used-modules.txt +10 -0
  583. package/bundle.es5.js +0 -28
  584. package/config/.eslintrc.js +0 -3
  585. package/config/rollup.config.js +0 -1
  586. package/dist/RenderScheduler.js +0 -165
  587. package/dist/SVGIconRegistry.js +0 -60
  588. package/dist/animations/config.js +0 -5
  589. package/dist/boot.js +0 -32
  590. package/dist/compatibility/DOMObserver.js +0 -62
  591. package/dist/compatibility/patchNodeValue.js +0 -24
  592. package/dist/compatibility/whenPolyfillLoaded.js +0 -26
  593. package/dist/delegate/CustomResize.js +0 -78
  594. package/dist/delegate/NativeResize.js +0 -44
  595. package/dist/features/browsersupport/Edge.js +0 -6
  596. package/dist/features/browsersupport/IE11.js +0 -41
  597. package/dist/features/browsersupport/IE11WithWebComponentsPolyfill.js +0 -5
  598. package/dist/renderer/ifDefined.js +0 -21
  599. package/dist/resources/bundle.es5.js +0 -212
  600. package/dist/resources/bundle.es5.js.map +0 -1
  601. package/dist/resources/bundle.esm.js +0 -129
  602. package/dist/resources/bundle.esm.js.map +0 -1
  603. package/dist/test-resources/assets/Themes.js +0 -13
  604. package/dist/test-resources/elements/Child.js +0 -35
  605. package/dist/test-resources/elements/Generic.js +0 -84
  606. package/dist/test-resources/elements/GenericExt.js +0 -26
  607. package/dist/test-resources/elements/NoShadowDOM.js +0 -13
  608. package/dist/test-resources/elements/Parent.js +0 -37
  609. package/dist/test-resources/elements/WithStaticArea.js +0 -76
  610. package/dist/test-resources/pages/AllTestElements.html +0 -42
  611. package/dist/test-resources/pages/Configuration.html +0 -20
  612. package/dist/test-resources/pages/ConfigurationScript.html +0 -36
  613. package/dist/test-resources/specs/ConfigurationChange.spec.js +0 -25
  614. package/dist/test-resources/specs/ConfigurationScript.spec.js +0 -61
  615. package/dist/test-resources/specs/ConfigurationURL.spec.js +0 -45
  616. package/dist/test-resources/specs/CustomTheme.spec.js +0 -25
  617. package/dist/test-resources/specs/StaticArea.spec.js +0 -34
  618. package/dist/test-resources/specs/Theming.spec.js +0 -31
  619. package/dist/test-resources/specs/UI5ElementInvalidation.js +0 -258
  620. package/dist/test-resources/specs/UI5ElementLifecycle.js +0 -93
  621. package/dist/test-resources/specs/UI5ElementListenForChildPropChanges.spec.js +0 -101
  622. package/dist/test-resources/specs/UI5ElementMetadataExt.js +0 -40
  623. package/dist/test-resources/specs/UI5ElementPropertyValidation.js +0 -12
  624. package/dist/test-resources/specs/UI5ElementPropsAndAttrs.spec.js +0 -65
  625. package/dist/test-resources/specs/UI5ElementShadowDOM.js +0 -22
  626. package/dist/test-resources/specs/UI5ElementSlots.js +0 -34
  627. package/dist/theming/CSSVarsPonyfill.js +0 -24
  628. package/dist/theming/adaptCSSForIE.js +0 -90
  629. package/dist/theming/createComponentStyleTag.js +0 -49
  630. package/dist/theming/createThemePropertiesStyleTag.js +0 -20
  631. package/dist/thirdparty/Array.from.js +0 -16
  632. package/dist/thirdparty/Array.prototype.fill.js +0 -44
  633. package/dist/thirdparty/Array.prototype.find.js +0 -46
  634. package/dist/thirdparty/Array.prototype.includes.js +0 -51
  635. package/dist/thirdparty/Element.prototype.closest.js +0 -11
  636. package/dist/thirdparty/Element.prototype.matches.js +0 -6
  637. package/dist/thirdparty/Map.prototype.keys.js +0 -9
  638. package/dist/thirdparty/Number.isInteger.js +0 -5
  639. package/dist/thirdparty/Number.isNaN.js +0 -1
  640. package/dist/thirdparty/Number.parseInt.js +0 -1
  641. package/dist/thirdparty/Object.assign.js +0 -31
  642. package/dist/thirdparty/Object.entries.js +0 -11
  643. package/dist/thirdparty/Symbol.js +0 -2
  644. package/dist/thirdparty/WeakSet.js +0 -27
  645. package/dist/thirdparty/es6-string-methods.js +0 -182
  646. package/dist/thirdparty/events-polyfills.js +0 -89
  647. package/dist/thirdparty/fetch.js +0 -1
  648. package/dist/thirdparty/template.js +0 -600
  649. package/dist/thirdparty/webcomponents-sd-ce-pf.js +0 -318
  650. package/dist/types/CSSSize.js +0 -9
  651. package/dist/types/PopupState.js +0 -37
  652. package/dist/util/findNodeOwner.js +0 -35
  653. package/dist/util/isDescendantOf.js +0 -15
  654. package/dist/util/isNodeClickable.js +0 -19
  655. package/dist/util/isNodeHidden.js +0 -13
  656. package/dist/util/isNodeTabbable.js +0 -28
  657. package/dist/webcomponentsjs/LICENSE.md +0 -19
  658. package/dist/webcomponentsjs/README.md +0 -229
  659. package/dist/webcomponentsjs/bundles/webcomponents-ce.js +0 -63
  660. package/dist/webcomponentsjs/bundles/webcomponents-ce.js.map +0 -1
  661. package/dist/webcomponentsjs/bundles/webcomponents-sd-ce-pf.js +0 -297
  662. package/dist/webcomponentsjs/bundles/webcomponents-sd-ce-pf.js.map +0 -1
  663. package/dist/webcomponentsjs/bundles/webcomponents-sd-ce.js +0 -208
  664. package/dist/webcomponentsjs/bundles/webcomponents-sd-ce.js.map +0 -1
  665. package/dist/webcomponentsjs/bundles/webcomponents-sd.js +0 -166
  666. package/dist/webcomponentsjs/bundles/webcomponents-sd.js.map +0 -1
  667. package/dist/webcomponentsjs/custom-elements-es5-adapter.js +0 -15
  668. package/dist/webcomponentsjs/package.json +0 -46
  669. package/dist/webcomponentsjs/src/entrypoints/custom-elements-es5-adapter-index.js +0 -16
  670. package/dist/webcomponentsjs/src/entrypoints/webcomponents-bundle-index.js +0 -53
  671. package/dist/webcomponentsjs/src/entrypoints/webcomponents-ce-index.js +0 -17
  672. package/dist/webcomponentsjs/src/entrypoints/webcomponents-sd-ce-index.js +0 -19
  673. package/dist/webcomponentsjs/src/entrypoints/webcomponents-sd-ce-pf-index.js +0 -28
  674. package/dist/webcomponentsjs/src/entrypoints/webcomponents-sd-index.js +0 -18
  675. package/dist/webcomponentsjs/webcomponents-bundle.js +0 -298
  676. package/dist/webcomponentsjs/webcomponents-bundle.js.map +0 -1
  677. package/dist/webcomponentsjs/webcomponents-loader.js +0 -185
  678. package/src/AssetRegistry.js +0 -9
  679. package/src/Device.js +0 -823
  680. package/src/EventProvider.js +0 -73
  681. package/src/FeaturesRegistry.js +0 -11
  682. package/src/FontFace.js +0 -73
  683. package/src/InitialConfiguration.js +0 -131
  684. package/src/Keys.js +0 -161
  685. package/src/RenderQueue.js +0 -42
  686. package/src/RenderScheduler.js +0 -165
  687. package/src/SVGIconRegistry.js +0 -60
  688. package/src/StaticArea.js +0 -41
  689. package/src/StaticAreaItem.js +0 -105
  690. package/src/Theming.js +0 -3
  691. package/src/UI5Element.js +0 -898
  692. package/src/UI5ElementMetadata.js +0 -173
  693. package/src/animations/animate.js +0 -53
  694. package/src/animations/config.js +0 -5
  695. package/src/animations/scroll.js +0 -28
  696. package/src/asset-registries/Icons.js +0 -24
  697. package/src/asset-registries/LocaleData.js +0 -125
  698. package/src/asset-registries/Themes.js +0 -87
  699. package/src/asset-registries/i18n.js +0 -79
  700. package/src/boot.js +0 -32
  701. package/src/compatibility/DOMObserver.js +0 -62
  702. package/src/compatibility/patchNodeValue.js +0 -24
  703. package/src/compatibility/whenPolyfillLoaded.js +0 -26
  704. package/src/config/AnimationMode.js +0 -13
  705. package/src/config/FormatSettings.js +0 -13
  706. package/src/config/Language.js +0 -12
  707. package/src/config/NoConflict.js +0 -51
  708. package/src/config/Theme.js +0 -28
  709. package/src/delegate/CustomResize.js +0 -78
  710. package/src/delegate/ItemNavigation.js +0 -278
  711. package/src/delegate/NativeResize.js +0 -44
  712. package/src/delegate/ResizeHandler.js +0 -66
  713. package/src/delegate/ScrollEnablement.js +0 -126
  714. package/src/features/OpenUI5Support.js +0 -90
  715. package/src/features/browsersupport/Edge.js +0 -6
  716. package/src/features/browsersupport/IE11.js +0 -41
  717. package/src/features/browsersupport/IE11WithWebComponentsPolyfill.js +0 -5
  718. package/src/i18nBundle.js +0 -33
  719. package/src/renderer/LitRenderer.js +0 -15
  720. package/src/renderer/ifDefined.js +0 -21
  721. package/src/theming/CSSVarsPonyfill.js +0 -24
  722. package/src/theming/CustomStyle.js +0 -19
  723. package/src/theming/adaptCSSForIE.js +0 -90
  724. package/src/theming/applyTheme.js +0 -81
  725. package/src/theming/createComponentStyleTag.js +0 -49
  726. package/src/theming/createThemePropertiesStyleTag.js +0 -20
  727. package/src/theming/getConstructableStyle.js +0 -25
  728. package/src/theming/getEffectiveStyle.js +0 -15
  729. package/src/theming/getThemeDesignerTheme.js +0 -67
  730. package/src/thirdparty/Array.from.js +0 -16
  731. package/src/thirdparty/Array.prototype.fill.js +0 -44
  732. package/src/thirdparty/Array.prototype.find.js +0 -46
  733. package/src/thirdparty/Array.prototype.includes.js +0 -51
  734. package/src/thirdparty/Element.prototype.closest.js +0 -11
  735. package/src/thirdparty/Element.prototype.matches.js +0 -6
  736. package/src/thirdparty/Map.prototype.keys.js +0 -9
  737. package/src/thirdparty/Number.isInteger.js +0 -5
  738. package/src/thirdparty/Number.isNaN.js +0 -1
  739. package/src/thirdparty/Number.parseInt.js +0 -1
  740. package/src/thirdparty/Object.assign.js +0 -31
  741. package/src/thirdparty/Object.entries.js +0 -11
  742. package/src/thirdparty/Symbol.js +0 -2
  743. package/src/thirdparty/WeakSet.js +0 -27
  744. package/src/thirdparty/es6-string-methods.js +0 -182
  745. package/src/thirdparty/events-polyfills.js +0 -89
  746. package/src/thirdparty/fetch.js +0 -1
  747. package/src/thirdparty/merge.js +0 -10
  748. package/src/thirdparty/template.js +0 -600
  749. package/src/thirdparty/webcomponents-sd-ce-pf.js +0 -318
  750. package/src/types/AnimationMode.js +0 -7
  751. package/src/types/CSSSize.js +0 -9
  752. package/src/types/CalendarType.js +0 -22
  753. package/src/types/DataType.js +0 -25
  754. package/src/types/Integer.js +0 -9
  755. package/src/types/ItemNavigationBehavior.js +0 -21
  756. package/src/types/NavigationMode.js +0 -6
  757. package/src/types/PopupState.js +0 -37
  758. package/src/types/ValueState.js +0 -22
  759. package/src/util/FocusableElements.js +0 -60
  760. package/src/util/TabbableElements.js +0 -43
  761. package/src/util/findNodeOwner.js +0 -35
  762. package/src/util/isDescendantOf.js +0 -15
  763. package/src/util/isNodeClickable.js +0 -19
  764. package/src/util/isNodeHidden.js +0 -13
  765. package/src/util/isNodeTabbable.js +0 -28
@@ -1,212 +0,0 @@
1
- !function(e){"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 t(){return(t=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function n(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||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(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={mimeType:t.mimeType||null,onBeforeSend:t.onBeforeSend||Function.prototype,onSuccess:t.onSuccess||Function.prototype,onError:t.onError||Function.prototype,onComplete:t.onComplete||Function.prototype},r=Array.isArray(e)?e:[e],o=Array.apply(null,Array(r.length)).map((function(e){return null}));function i(){return!("<"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").trim().charAt(0))}function a(e,t){n.onError(e,r[t],t)}function s(e,t){var i=n.onSuccess(e,r[t],t);e=!1===i?"":i||e,o[t]=e,-1===o.indexOf(null)&&n.onComplete(o)}var u=document.createElement("a");r.forEach((function(e,t){if(u.setAttribute("href",e),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",e),r.timeout=0,r.onprogress=Function.prototype,r.ontimeout=Function.prototype,r.onload=function(){i(r.responseText)?s(r.responseText,t):a(r,t)},r.onerror=function(e){a(r,t)},setTimeout((function(){r.send()}),0)}else console.warn("Internet Explorer 9 Cross-Origin (CORS) requests must use the same protocol (".concat(e,")")),a(null,t)}else{var o=new XMLHttpRequest;o.open("GET",e),n.mimeType&&o.overrideMimeType&&o.overrideMimeType(n.mimeType),n.onBeforeSend(o,e,t),o.onreadystatechange=function(){4===o.readyState&&(200===o.status&&i(o.responseText)?s(o.responseText,t):a(o,t))},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(e){var t={cssComments:/\/\*[\s\S]+?\*\//g,cssImports:/(?:@import\s*)(?:url\(\s*)?(?:['"])([^'"]*)(?:['"])(?:\s*\))?(?:[^;]*;)/g},n={rootElement:e.rootElement||document,include:e.include||'style,link[rel="stylesheet"]',exclude:e.exclude||null,filter:e.filter||null,useCSSOM:e.useCSSOM||!1,onBeforeSend:e.onBeforeSend||Function.prototype,onSuccess:e.onSuccess||Function.prototype,onError:e.onError||Function.prototype,onComplete:e.onComplete||Function.prototype},o=Array.apply(null,n.rootElement.querySelectorAll(n.include)).filter((function(e){return t=e,r=n.exclude,!(t.matches||t.matchesSelector||t.webkitMatchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector).call(t,r);var t,r})),a=Array.apply(null,Array(o.length)).map((function(e){return null}));function s(){if(-1===a.indexOf(null)){var e=a.join("");n.onComplete(e,a,o)}}function u(e,t,o,i){var u=n.onSuccess(e,o,i);(function e(t,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(t,i,u);l.rules.length?r(l.absoluteUrls,{onBeforeSend:function(e,t,r){n.onBeforeSend(e,o,t)},onSuccess:function(e,t,r){var i=n.onSuccess(e,o,t),a=c(e=!1===i?"":i||e,t,u);return a.rules.forEach((function(t,n){e=e.replace(t,a.absoluteRules[n])})),e},onError:function(n,r,c){s.push({xhr:n,url:r}),u.push(l.rules[c]),e(t,o,i,a,s,u)},onComplete:function(n){n.forEach((function(e,n){t=t.replace(l.rules[n],e)})),e(t,o,i,a,s,u)}}):a(t,s)})(e=void 0!==u&&!1===Boolean(u)?"":u||e,o,i,(function(e,r){null===a[t]&&(r.forEach((function(e){return n.onError(e.xhr,o,e.url)})),!n.filter||n.filter.test(e)?a[t]=e:a[t]="",s())}))}function c(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],o={};return o.rules=(e.replace(t.cssComments,"").match(t.cssImports)||[]).filter((function(e){return-1===r.indexOf(e)})),o.urls=o.rules.map((function(e){return e.replace(t.cssImports,"$1")})),o.absoluteUrls=o.urls.map((function(e){return i(e,n)})),o.absoluteRules=o.rules.map((function(e,t){var r=o.urls[t],a=i(o.absoluteUrls[t],n);return e.replace(r,a)})),o}o.length?o.forEach((function(e,t){var o=e.getAttribute("href"),c=e.getAttribute("rel"),l="LINK"===e.nodeName&&o&&c&&"stylesheet"===c.toLowerCase(),f="STYLE"===e.nodeName;if(l)r(o,{mimeType:"text/css",onBeforeSend:function(t,r,o){n.onBeforeSend(t,e,r)},onSuccess:function(n,r,a){var s=i(o,location.href);u(n,t,e,s)},onError:function(r,o,i){a[t]="",n.onError(r,e,o),s()}});else if(f){var d=e.textContent;n.useCSSOM&&(d=Array.apply(null,e.sheet.cssRules).map((function(e){return e.cssText})).join("")),u(d,t,e,location.href)}else a[t]="",s()})):n.onComplete("",[])}function i(e){var t=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=t,o.href=e,o.href}var a=s;function s(e,t,n){e instanceof RegExp&&(e=u(e,n)),t instanceof RegExp&&(t=u(t,n));var r=c(e,t,n);return r&&{start:r[0],end:r[1],pre:n.slice(0,r[0]),body:n.slice(r[0]+e.length,r[1]),post:n.slice(r[1]+t.length)}}function u(e,t){var n=t.match(e);return n?n[0]:null}function c(e,t,n){var r,o,i,a,s,u=n.indexOf(e),c=n.indexOf(t,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(e,l+1)):1==r.length?s=[r.pop(),c]:((o=r.pop())<i&&(i=o,a=c),c=n.indexOf(t,l+1)),l=u<c&&u>=0?u:c;r.length&&(s=[i,a])}return s}function l(e){var n=t({},{preserveStatic:!0,removeComments:!1},arguments.length>1&&void 0!==arguments[1]?arguments[1]:{});function r(e){throw new Error("CSS parse error: ".concat(e))}function o(t){var n=t.exec(e);if(n)return e=e.slice(n[0].length),n}function i(){return o(/^{\s*/)}function s(){return o(/^}/)}function u(){o(/^\s*/)}function c(){if(u(),"/"===e[0]&&"*"===e[1]){for(var t=2;e[t]&&("*"!==e[t]||"/"!==e[t+1]);)t++;if(!e[t])return r("end of comment is missing");var n=e.slice(2,t);return e=e.slice(t+2),{type:"comment",comment:n}}}function l(){for(var e,t=[];e=c();)t.push(e);return n.removeComments?[]:t}function f(){for(u();"}"===e[0];)r("extra closing bracket");var t=o(/^(("(?:\\"|[^"])*"|'(?:\\'|[^'])*'|[^{])+)/);if(t)return t[0].trim().replace(/\/\*([^*]|[\r\n]|(\*+([^*\/]|[\r\n])))*\*\/+/g,"").replace(/"(?:\\"|[^"])*"|'(?:\\'|[^'])*'/g,(function(e){return e.replace(/,/g,"‌")})).split(/\s*(?![^(]*\)),\s*/).map((function(e){return e.replace(/\u200C/g,",")}))}function d(){o(/^([;\s]*)+/);var e=/\/\*[^*]*\*+([^\/*][^*]*\*+)*\//g,t=o(/^(\*?[-#\/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/);if(t){if(t=t[0].trim(),!o(/^:\s*/))return r("property missing ':'");var n=o(/^((?:\/\*.*?\*\/|'(?:\\'|.)*?'|"(?:\\"|.)*?"|\((\s*'(?:\\'|.)*?'|"(?:\\"|.)*?"|[^)]*?)\s*\)|[^};])+)/),i={type:"declaration",property:t.replace(e,""),value:n?n[0].replace(e,"").trim():""};return o(/^[;\s]*/),i}}function h(){if(!i())return r("missing '{'");for(var e,t=l();e=d();)t.push(e),t=t.concat(l());return s()?t:r("missing '}'")}function p(){u();for(var e,t=[];e=o(/^((\d+\.\d+|\.\d+|\d+)%?|[a-z]+)\s*/);)t.push(e[1]),o(/^,\s*/);if(t.length)return{type:"keyframe",values:t,declarations:h()}}function m(){if(u(),"@"===e[0]){var t=function(){var e=o(/^@([-\w]+)?keyframes\s*/);if(e){var t=e[1];if(!(e=o(/^([-\w]+)\s*/)))return r("@keyframes missing name");var n,a=e[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:t,keyframes:u}:r("@keyframes missing '}'")}}()||function(){var e=o(/^@supports *([^{]+)/);if(e)return{type:"supports",supports:e[1].trim(),rules:y()}}()||function(){if(o(/^@host\s*/))return{type:"host",rules:y()}}()||function(){var e=o(/^@media([^{]+)*/);if(e)return{type:"media",media:(e[1]||"").trim(),rules:y()}}()||function(){var e=o(/^@custom-media\s+(--[^\s]+)\s*([^{;]+);/);if(e)return{type:"custom-media",name:e[1].trim(),media:e[2].trim()}}()||function(){if(o(/^@page */))return{type:"page",selectors:f()||[],declarations:h()}}()||function(){var e=o(/^@([-\w]+)?document *([^{]+)/);if(e)return{type:"document",document:e[2].trim(),vendor:e[1]?e[1].trim():null,rules:y()}}()||function(){if(o(/^@font-face\s*/))return{type:"font-face",declarations:h()}}()||function(){var e=o(/^@(import|charset|namespace)\s*([^;]+);/);if(e)return{type:e[1],name:e[2].trim()}}();if(t&&!n.preserveStatic){var a=!1;if(t.declarations)a=t.declarations.some((function(e){return/var\(/.test(e.value)}));else a=(t.keyframes||t.rules||[]).some((function(e){return(e.declarations||[]).some((function(e){return/var\(/.test(e.value)}))}));return a?t:{}}return t}}function v(){if(!n.preserveStatic){var t=a("{","}",e);if(t){var o=/:(?:root|host)(?![.:#(])/.test(t.pre)&&/--\S*\s*:/.test(t.body),i=/var\(/.test(t.body);if(!o&&!i)return e=e.slice(t.end+1),{}}}var s=f()||[],u=n.preserveStatic?h():h().filter((function(e){var t=s.some((function(e){return/:(?:root|host)(?![.:#(])/.test(e)}))&&/^--\S/.test(e.property),n=/var\(/.test(e.value);return t||n}));return s.length||r("selector missing"),{type:"rule",selectors:s,declarations:u}}function y(t){if(!t&&!i())return r("missing '{'");for(var n,o=l();e.length&&(t||"}"!==e[0])&&(n=m()||v());)n.type&&o.push(n),o=o.concat(l());return t||s()?o:r("missing '}'")}return{type:"stylesheet",stylesheet:{rules:y(!0),errors:[]}}}function f(e){var n=t({},{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 e&&(e=l(e,n)),e.stylesheet.rules.forEach((function(e){"rule"===e.type&&e.selectors.some((function(e){return r.test(e)}))&&e.declarations.forEach((function(e,t){var r=e.property,o=e.value;r&&0===r.indexOf("--")&&(n.store[r]=o)}))})),n.store}function d(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2?arguments[2]:void 0,r={charset:function(e){return"@charset "+e.name+";"},comment:function(e){return 0===e.comment.indexOf("__CSSVARSPONYFILL")?"/*"+e.comment+"*/":""},"custom-media":function(e){return"@custom-media "+e.name+" "+e.media+";"},declaration:function(e){return e.property+":"+e.value+";"},document:function(e){return"@"+(e.vendor||"")+"document "+e.document+"{"+o(e.rules)+"}"},"font-face":function(e){return"@font-face{"+o(e.declarations)+"}"},host:function(e){return"@host{"+o(e.rules)+"}"},import:function(e){return"@import "+e.name+";"},keyframe:function(e){return e.values.join(",")+"{"+o(e.declarations)+"}"},keyframes:function(e){return"@"+(e.vendor||"")+"keyframes "+e.name+"{"+o(e.keyframes)+"}"},media:function(e){return"@media "+e.media+"{"+o(e.rules)+"}"},namespace:function(e){return"@namespace "+e.name+";"},page:function(e){return"@page "+(e.selectors.length?e.selectors.join(", "):"")+"{"+o(e.declarations)+"}"},rule:function(e){var t=e.declarations;if(t.length)return e.selectors.join(",")+"{"+o(t)+"}"},supports:function(e){return"@supports "+e.supports+"{"+o(e.rules)+"}"}};function o(e){for(var o="",i=0;i<e.length;i++){var a=e[i];n&&n(a);var s=r[a.type](a);s&&(o+=s,s.length&&a.selectors&&(o+=t))}return o}return o(e.stylesheet.rules)}s.range=c;var h="--",p="var";function m(e){var n=t({},{preserveStatic:!0,preserveVars:!1,variables:{},onWarning:function(){}},arguments.length>1&&void 0!==arguments[1]?arguments[1]:{});return"string"==typeof e&&(e=l(e,n)),function e(t,n){t.rules.forEach((function(r){r.rules?e(r,n):r.keyframes?r.keyframes.forEach((function(e){"keyframe"===e.type&&n(e.declarations,r)})):r.declarations&&n(r.declarations,t)}))}(e.stylesheet,(function(e,t){for(var r=0;r<e.length;r++){var o=e[r],i=o.type,a=o.property,s=o.value;if("declaration"===i)if(n.preserveVars||!a||0!==a.indexOf(h)){if(-1!==s.indexOf(p+"(")){var u=y(s,n);u!==o.value&&(u=v(u),n.preserveVars?(e.splice(r,0,{type:i,property:a,value:u}),r++):o.value=u)}}else e.splice(r,1),r--}})),d(e)}function v(e){return(e.match(/calc\(([^)]+)\)/g)||[]).forEach((function(t){var n="calc".concat(t.split("calc").join(""));e=e.replace(t,n)})),e}function y(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;if(-1===e.indexOf("var("))return e;var r=a("(",")",e);return r?"var"===r.pre.slice(-3)?0===r.body.trim().length?(t.onWarning("var() must contain a non-whitespace string"),e):r.pre.slice(0,-3)+function(e){var r=e.split(",")[0].replace(/[\s\n\t]/g,""),o=(e.match(/(?:\s*,\s*){1}(.*)?/)||[])[1],i=Object.prototype.hasOwnProperty.call(t.variables,r)?String(t.variables[r]):void 0,a=i||(o?String(o):void 0),s=n||e;return i||t.onWarning('variable "'.concat(r,'" is undefined')),a&&"undefined"!==a&&a.length>0?y(a,t,s):"var(".concat(s,")")}(r.body)+y(r.post,t):r.pre+"(".concat(y(r.body,t),")")+y(r.post,t):(-1!==e.indexOf("var(")&&t.onWarning('missing closing ")" in the value "'.concat(e,'"')),e)}var g="undefined"!=typeof window,w=g&&window.CSS&&window.CSS.supports&&window.CSS.supports("(--a: 0)"),b={group:0,job:0},S={rootElement:g?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(){}},_={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,O=0,A=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 e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r="cssVars(): ",i=t({},S,e);function a(e,t,n,o){!i.silent&&window.console&&console.error("".concat(r).concat(e,"\n"),t),i.onError(e,t,n,o)}function s(e){!i.silent&&window.console&&console.warn("".concat(r).concat(e)),i.onWarning(e)}if(g){if(i.watch)return i.watch=S.watch,function(e){function t(e){return"LINK"===e.tagName&&-1!==(e.getAttribute("rel")||"").indexOf("stylesheet")&&!e.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=t(n.target):"childList"===n.type&&(r=n.addedNodes,o=Array.apply(null,r).some((function(e){var n=1===e.nodeType&&e.hasAttribute("data-cssvars"),r=function(e){return"STYLE"===e.tagName&&!e.disabled}(e)&&_.cssVars.test(e.textContent);return!n&&(t(e)||r)}))||function(t){return Array.apply(null,t).some((function(t){var n=1===t.nodeType,r=n&&"out"===t.getAttribute("data-cssvars"),o=n&&"src"===t.getAttribute("data-cssvars"),i=o;if(o||r){var a=t.getAttribute("data-cssvars-group"),s=e.rootElement.querySelector('[data-cssvars-group="'.concat(a,'"]'));o&&(T(e.rootElement),k.dom={}),s&&s.parentNode.removeChild(s)}return i}))}(n.removedNodes)),o}))&&R(e)}))).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(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100;clearTimeout(A),A=setTimeout((function(){e.__benchmark=null,R(e)}),t)}(e);if(i.__benchmark=N(),i.exclude=[E?'[data-cssvars]:not([data-cssvars=""])':'[data-cssvars="out"]',i.exclude].filter((function(e){return e})).join(","),i.variables=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=/^-{2}/;return Object.keys(e).reduce((function(n,r){return n[t.test(r)?r:"--".concat(r.replace(/^-+/,""))]=e[r],n}),{})}(i.variables),!E)if(Array.apply(null,i.rootElement.querySelectorAll('[data-cssvars="out"]')).forEach((function(e){var t=e.getAttribute("data-cssvars-group");(t?i.rootElement.querySelector('[data-cssvars="src"][data-cssvars-group="'.concat(t,'"]')):null)||e.parentNode.removeChild(e)})),O){var u=i.rootElement.querySelectorAll('[data-cssvars]:not([data-cssvars="out"])');u.length<O&&(O=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(e){c.style.setProperty(e,i.variables[e])}))}}else!C&&(i.shadowDOM||i.rootElement.shadowRoot||i.rootElement.host)?o({rootElement:S.rootElement,include:S.include,exclude:i.exclude,onSuccess:function(e,t,n){return(e=((e=e.replace(_.cssComments,"").replace(_.cssMediaQueries,"")).match(_.cssVarDeclRules)||[]).join(""))||!1},onComplete:function(e,t,n){f(e,{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(e,t,n){var r=e.responseURL||P(n,location.href),o=e.statusText?"(".concat(e.statusText,")"):"Unspecified Error"+(0===e.status?" (possibly CORS related)":"");a("CSS XHR Error: ".concat(r," ").concat(e.status," ").concat(o),t,e,r)},onSuccess:function(e,t,n){var r=i.onSuccess(e,t,n);return e=void 0!==r&&!1===Boolean(r)?"":r||e,i.updateURLs&&(e=function(e,t){return(e.replace(_.cssComments,"").match(_.cssUrls)||[]).forEach((function(n){var r=n.replace(_.cssUrls,"$1"),o=P(r,t);e=e.replace(n,n.replace(r,o))})),e}(e,n)),e},onComplete:function(e,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)),h=!1;if(o.forEach((function(e,t){if(_.cssVars.test(r[t]))try{var n=l(r[t],{preserveStatic:i.preserveStatic,removeComments:!0});f(n,{parseHost:Boolean(i.rootElement.host),store:u,onWarning:s}),e.__cssVars={tree:n}}catch(t){a(t.message,e)}})),i.updateDOM&&t(k.user,i.variables),t(u,i.variables),h=Boolean((document.querySelector("[data-cssvars]")||Object.keys(k.dom).length)&&Object.keys(u).some((function(e){return u[e]!==c[e]}))),t(c,k.user,u),h)T(i.rootElement),R(i);else{var p=[],v=[],y=!1;if(k.job={},i.updateDOM&&b.job++,o.forEach((function(e){var n=!e.__cssVars;if(e.__cssVars)try{m(e.__cssVars.tree,t({},i,{variables:c,onWarning:s}));var r=d(e.__cssVars.tree);if(i.updateDOM){if(e.getAttribute("data-cssvars")||e.setAttribute("data-cssvars","src"),r.length){var o=e.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");y=y||_.cssKeyframes.test(r),l.hasAttribute("data-cssvars")||l.setAttribute("data-cssvars","out"),u===e.textContent.replace(/\s/g,"")?(n=!0,l&&l.parentNode&&(e.removeAttribute("data-cssvars-group"),l.parentNode.removeChild(l))):u!==l.textContent.replace(/\s/g,"")&&([e,l].forEach((function(e){e.setAttribute("data-cssvars-job",b.job),e.setAttribute("data-cssvars-group",o)})),l.textContent=r,p.push(r),v.push(l),l.parentNode||e.parentNode.insertBefore(l,e.nextSibling))}}else e.textContent.replace(/\s/g,"")!==r&&p.push(r)}catch(t){a(t.message,e)}n&&e.setAttribute("data-cssvars","skip"),e.hasAttribute("data-cssvars-job")||e.setAttribute("data-cssvars-job",b.job)})),O=i.rootElement.querySelectorAll('[data-cssvars]:not([data-cssvars="out"])').length,i.shadowDOM)for(var g,w=[i.rootElement].concat(n(i.rootElement.querySelectorAll("*"))),S=0;g=w[S];++S)if(g.shadowRoot&&g.shadowRoot.querySelector("style")){var E=t({},i,{rootElement:g.shadowRoot});R(E)}i.updateDOM&&y&&M(i.rootElement),x=!1,i.onComplete(p.join(""),v,JSON.parse(JSON.stringify(c)),N()-i.__benchmark)}}}));else document.addEventListener("DOMContentLoaded",(function t(n){R(e),document.removeEventListener("DOMContentLoaded",t)}))}}function M(e){var t=["animation-name","-moz-animation-name","-webkit-animation-name"].filter((function(e){return getComputedStyle(document.body)[e]}))[0];if(t){for(var n=e.getElementsByTagName("*"),r=[],o=0,i=n.length;o<i;o++){var a=n[o];"none"!==getComputedStyle(a)[t]&&(a.style[t]+="__CSSVARSPONYFILL-KEYFRAMES__",r.push(a))}document.body.offsetHeight;for(var s=0,u=r.length;s<u;s++){var c=r[s].style;c[t]=c[t].replace("__CSSVARSPONYFILL-KEYFRAMES__","")}}}function P(e){var t=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=t,o.href=e,o.href}function N(){return g&&(window.performance||{}).now?window.performance.now():(new Date).getTime()}function T(e){Array.apply(null,e.querySelectorAll('[data-cssvars="skip"],[data-cssvars="src"]')).forEach((function(e){return e.setAttribute("data-cssvars","")}))}if(R.reset=function(){for(var e in x=!1,E&&(E.disconnect(),E=null),O=0,A=null,C=!1,k)k[e]={}},String.prototype.startsWith||function(){var e={}.toString;Object.defineProperty(String.prototype,"startsWith",{value:function(t){if(null==this)throw TypeError();var n=String(this);if(t&&"[object RegExp]"==e.call(t))throw TypeError();var r=n.length,o=String(t),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 e={}.toString;Object.defineProperty(String.prototype,"endsWith",{value:function(t){if(null==this)throw TypeError();var n=String(this);if(t&&"[object RegExp]"==e.call(t))throw TypeError();var r=n.length,o=String(t),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 e={}.toString,t="".indexOf;Object.defineProperty(String.prototype,"includes",{value:function(n){if(null==this)throw TypeError();var r=String(this);if(n&&"[object RegExp]"==e.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!=t.call(r,i,u)},configurable:!0,writable:!0})}(),String.prototype.repeat||Object.defineProperty(String.prototype,"repeat",{value:function(e){if(null==this)throw TypeError();var t=String(this),n=e?Number(e):0;if(n!=n&&(n=0),n<0||n==1/0)throw RangeError();for(var r="";n;)n%2==1&&(r+=t),n>1&&(t+=t),n>>=1;return r},configurable:!0,writable:!0}),String.prototype.padStart||(String.prototype.padStart=function(e,t){return e>>=0,t=String(void 0!==t?t:" "),this.length>e?String(this):((e-=this.length)>t.length&&(t+=t.repeat(e/t.length)),t.slice(0,e)+String(this))}),String.prototype.padEnd||(String.prototype.padEnd=function(e,t){return e>>=0,t=String(void 0!==t?t:" "),this.length>e?String(this):((e-=this.length)>t.length&&(t+=t.repeat(e/t.length)),String(this)+t.slice(0,e))}),Object.entries||(Object.entries=function(e){for(var t=Object.keys(e),n=t.length,r=new Array(n);n--;)r[n]=[t[n],e[t[n]]];return r}),Array.prototype.fill||Object.defineProperty(Array.prototype,"fill",{value:function(e){if(null==this)throw new TypeError("this is null or not defined");for(var t=Object(this),n=t.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;)t[i]=e,i++;return t}}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(e){if(null==this)throw TypeError('"this" is null or not defined');var t=Object(this),n=t.length>>>0;if("function"!=typeof e)throw TypeError("predicate must be a function");for(var r=arguments[1],o=0;o<n;){var i=t[o];if(e.call(r,i,o,t))return i;o++}},configurable:!0,writable:!0}),Array.prototype.includes||Object.defineProperty(Array.prototype,"includes",{value:function(e,t){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|t,s=Math.max(a>=0?a:r-Math.abs(a),0);for(;s<r;){if((o=n[s])===(i=e)||"number"==typeof o&&"number"==typeof i&&isNaN(o)&&isNaN(i))return!0;s++}return!1}}),Map.prototype.keys||(Map.prototype.keys=function(){var e=[];return this.forEach((function(t,n){e.push(n)})),e}),Number.isInteger=Number.isInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e},Number.isNaN=Number.isNaN||window.isNaN,Number.parseInt=Number.parseInt||window.parseInt,Element&&!Element.prototype.matches){var L=Element.prototype;L.matches=L.matchesSelector||L.mozMatchesSelector||L.msMatchesSelector||L.oMatchesSelector||L.webkitMatchesSelector}if(Element.prototype.closest||(Element.prototype.closest=function(e){var t=this;if(!document.documentElement.contains(t))return null;do{if(t.matches(e))return t;t=t.parentElement||t.parentNode}while(null!==t&&1===t.nodeType);return null}),!window.WeakSet){var j=function(e){this.name="__st"+(1e9*Math.random()>>>0)+D+++"__",e&&e.forEach&&e.forEach(this.add,this)},D=Date.now()%1e9,I=j.prototype;I.add=function(e){var t=this.name;return e[t]||Object.defineProperty(e,t,{value:!0,writable:!0}),this},I.delete=function(e){return!!e[this.name]&&(e[this.name]=void 0,!0)},I.has=function(e){return!!e[this.name]},window.WeakSet=j}function V(e){return(V="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function F(e,t,n,r,o,i,a){try{var s=e[i](a),u=s.value}catch(e){return void n(e)}s.done?t(u):Promise.resolve(u).then(r,o)}function U(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){F(i,r,o,a,s,"next",e)}function s(e){F(i,r,o,a,s,"throw",e)}a(void 0)}))}}function B(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function W(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function H(e,t,n){return t&&W(e.prototype,t),n&&W(e,n),e}function q(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&$(e,t)}function z(e){return(z=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function $(e,t){return($=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function G(e,t,n){return(G=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(e){return!1}}()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&$(o,n.prototype),o}).apply(null,arguments)}function J(e){var t="function"==typeof Map?new Map:void 0;return(J=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return G(e,arguments,z(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),$(r,e)})(e)}function Y(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function X(e,t,n){return(X="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=z(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}})(e,t,n||e)}function K(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function Z(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(!(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function Q(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}window.fetch||(window.fetch=function(e,t){return t=t||{},new Promise((function(n,r){var o=new XMLHttpRequest;for(var i in o.open(t.method||"get",e,!0),t.headers)o.setRequestHeader(i,t.headers[i]);function a(){var e,t=[],n=[],r={};return o.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm,(function(o,i,a){t.push(i=i.toLowerCase()),n.push([i,a]),r[i]=(e=r[i])?e+","+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 t},entries:function(){return n},get:function(e){return r[e.toLowerCase()]},has:function(e){return e.toLowerCase()in r}}}}o.withCredentials="include"==t.credentials,o.onload=function(){n(a())},o.onerror=r,o.send(t.body||null)}))}),function(e){var t,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"===("undefined"==typeof module?"undefined":V(module)),c=e.regeneratorRuntime;if(c)u&&(module.exports=c);else{(c=e.regeneratorRuntime=u?module.exports:{}).wrap=w;var l="suspendedStart",f="suspendedYield",d="executing",h="completed",p={},m={};m[i]=function(){return this};var v=Object.getPrototypeOf,y=v&&v(v(M([])));y&&y!==n&&r.call(y,i)&&(m=y);var g=k.prototype=S.prototype=Object.create(m);_.prototype=g.constructor=k,k.constructor=_,k[s]=_.displayName="GeneratorFunction",c.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===_||"GeneratorFunction"===(t.displayName||t.name))},c.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,k):(e.__proto__=k,s in e||(e[s]="GeneratorFunction")),e.prototype=Object.create(g),e},c.awrap=function(e){return{__await:e}},x(E.prototype),E.prototype[a]=function(){return this},c.AsyncIterator=E,c.async=function(e,t,n,r){var o=new E(w(e,t,n,r));return c.isGeneratorFunction(t)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},x(g),g[s]="Generator",g[i]=function(){return this},g.toString=function(){return"[object Generator]"},c.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},c.values=M,R.prototype={constructor:R,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(C),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function o(r,o){return s.type="throw",s.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!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(e,t){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"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,p):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),p},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),C(n),p}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;C(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:M(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),p}}}function w(e,t,n,r){var o=t&&t.prototype instanceof S?t:S,i=Object.create(o.prototype),a=new R(r||[]);return i._invoke=function(e,t,n){var r=l;return function(o,i){if(r===d)throw new Error("Generator is already running");if(r===h){if("throw"===o)throw i;return P()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var s=O(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=h,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=d;var u=b(e,t,n);if("normal"===u.type){if(r=n.done?h:f,u.arg===p)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r=h,n.method="throw",n.arg=u.arg)}}}(e,n,a),i}function b(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}function S(){}function _(){}function k(){}function x(e){["next","throw","return"].forEach((function(t){e[t]=function(e){return this._invoke(t,e)}}))}function E(e){var t;this._invoke=function(n,o){function i(){return new Promise((function(t,i){!function t(n,o,i,a){var s=b(e[n],e,o);if("throw"!==s.type){var u=s.arg,c=u.value;return c&&"object"===V(c)&&r.call(c,"__await")?Promise.resolve(c.__await).then((function(e){t("next",e,i,a)}),(function(e){t("throw",e,i,a)})):Promise.resolve(c).then((function(e){u.value=e,i(u)}),(function(e){return t("throw",e,i,a)}))}a(s.arg)}(n,o,t,i)}))}return t=t?t.then(i,i):i()}}function O(e,n){var r=e.iterator[n.method];if(r===t){if(n.delegate=null,"throw"===n.method){if(e.iterator.return&&(n.method="return",n.arg=t,O(e,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,e.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[e.resultName]=i.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,p):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,p)}function A(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function R(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(A,this),this.reset(!0)}function M(e){if(e){var n=e[i];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function n(){for(;++o<e.length;)if(r.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return a.next=a}}return{next:P}}function P(){return{value:t,done:!0}}}(function(){return this||"object"===("undefined"==typeof self?"undefined":V(self))&&self}()||Function("return this")()),
163
- /**
164
- *
165
- *
166
- * @author Jerry Bendy <jerry@icewingcc.com>
167
- * @licence MIT
168
- *
169
- */
170
- function(e){var t,n=e.URLSearchParams&&e.URLSearchParams.prototype.get?e.URLSearchParams:null,r=n&&"a=1"===new n({a:1}).toString(),o=n&&"+"===new n("s=%2B").get("s"),i="__URLSearchParams__",a=!n||((t=new n).append("s"," &"),"s=+%26"===t.toString()),s=f.prototype,u=!(!e.Symbol||!e.Symbol.iterator);if(!(n&&r&&o&&a)){s.append=function(e,t){v(this[i],e,t)},s.delete=function(e){delete this[i][e]},s.get=function(e){var t=this[i];return e in t?t[e][0]:null},s.getAll=function(e){var t=this[i];return e in t?t[e].slice(0):[]},s.has=function(e){return e in this[i]},s.set=function(e,t){this[i][e]=[""+t]},s.toString=function(){var e,t,n,r,o=this[i],a=[];for(t in o)for(n=d(t),e=0,r=o[t];e<r.length;e++)a.push(n+"="+d(r[e]));return a.join("&")};var c=!!o&&n&&!r&&e.Proxy;Object.defineProperty(e,"URLSearchParams",{value:c?new Proxy(n,{construct:function(e,t){return new e(new f(t[0]).toString())}}):f});var l=e.URLSearchParams.prototype;l.polyfill=!0,l.forEach=l.forEach||function(e,t){var n=m(this.toString());Object.getOwnPropertyNames(n).forEach((function(r){n[r].forEach((function(n){e.call(t,n,r,this)}),this)}),this)},l.sort=l.sort||function(){var e,t,n,r=m(this.toString()),o=[];for(e in r)o.push(e);for(o.sort(),t=0;t<o.length;t++)this.delete(o[t]);for(t=0;t<o.length;t++){var i=o[t],a=r[i];for(n=0;n<a.length;n++)this.append(i,a[n])}},l.keys=l.keys||function(){var e=[];return this.forEach((function(t,n){e.push(n)})),p(e)},l.values=l.values||function(){var e=[];return this.forEach((function(t){e.push(t)})),p(e)},l.entries=l.entries||function(){var e=[];return this.forEach((function(t,n){e.push([n,t])})),p(e)},u&&(l[e.Symbol.iterator]=l[e.Symbol.iterator]||l.entries)}function f(e){((e=e||"")instanceof URLSearchParams||e instanceof f)&&(e=e.toString()),this[i]=m(e)}function d(e){var t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'\(\)~]|%20|%00/g,(function(e){return t[e]}))}function h(e){return decodeURIComponent(e.replace(/\+/g," "))}function p(t){var n={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return u&&(n[e.Symbol.iterator]=function(){return n}),n}function m(e){var t={};if("object"===V(e))for(var n in e)e.hasOwnProperty(n)&&v(t,n,e[n]);else{0===e.indexOf("?")&&(e=e.slice(1));for(var r=e.split("&"),o=0;o<r.length;o++){var i=r[o],a=i.indexOf("=");-1<a?v(t,h(i.slice(0,a)),h(i.slice(a+1))):i&&v(t,h(i),"")}}return t}function v(e,t,n){var r="string"==typeof n?n:null!=n&&"function"==typeof n.toString?n.toString():JSON.stringify(n);t in e?e[t].push(r):e[t]=[r]}}("undefined"!=typeof global?global:window);!function(){if(window.ShadyDOM){var e=Object.getOwnPropertyDescriptor(Node.prototype,"nodeValue");Object.defineProperty(Node.prototype,"nodeValue",{get:function(){return e.get.apply(this)},set:function(t){e.set.apply(this,arguments);var n=this.parentNode;n instanceof HTMLElement&&n.isUI5Element&&n._processChildren()}})}}(),window.CSSVarsPonyfill={cssVars:R};var ee={default:"sap_fiori_3",all:["sap_fiori_3","sap_fiori_3_dark","sap_belize","sap_belize_hcb","sap_belize_hcw"]}.default,te={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,ne={},re=ne.hasOwnProperty,oe=ne.toString,ie=re.toString,ae=ie.call(Object),se=function(e){var t,n;return!(!e||"[object Object]"!==oe.call(e))&&(!(t=Object.getPrototypeOf(e))||"function"==typeof(n=re.call(t,"constructor")&&t.constructor)&&ie.call(n)===ae)},ue=Object.create(null),ce=function e(){var t,n,r,o,i,a,s=arguments[2]||{},u=3,c=arguments.length,l=arguments[0]||!1,f=arguments[1]?void 0:ue;for("object"!==V(s)&&"function"!=typeof s&&(s={});u<c;u++)if(null!=(i=arguments[u]))for(o in i)t=s[o],r=i[o],"__proto__"!==o&&s!==r&&(l&&r&&(se(r)||(n=Array.isArray(r)))?(n?(n=!1,a=t&&Array.isArray(t)?t:[]):a=t&&se(t)?t:{},s[o]=e(l,arguments[1],a,r)):r!==f&&(s[o]=r));return s},le=function(){var e=[!0,!1];return e.push.apply(e,arguments),ce.apply(null,e)},fe=new Map,de=function(e){return fe.get(e)},he=!1,pe={animationMode:"full",theme:ee,rtl:null,language:null,calendarType:null,noConflict:!1,formatSettings:{}},me=new Map;me.set("true",!0),me.set("false",!1);var ve,ye,ge,we,be,Se=function(){he||(!function(){var e,t=document.querySelector("[data-ui5-config]")||document.querySelector("[data-id='sap-ui-config']");if(t){try{e=JSON.parse(t.innerHTML)}catch(e){console.warn("Incorrect data-sap-ui-config format. Please use JSON")}e&&(pe=le(pe,e))}}(),new URLSearchParams(window.location.search).forEach((function(e,t){if(t.startsWith("sap-ui")){var n=e.toLowerCase(),r=t.split("sap-ui-")[1];me.has(e)&&(e=me.get(n)),pe[r]=e}})),function(){var e=de("OpenUI5Support");if(e&&e.isLoaded()){var t=e.getConfigurationSettingsObject();pe=le(pe,t)}}(),he=!0)},_e=function(){return void 0===ve&&(Se(),ve=pe.language),ve},ke=new Map,xe=new Map,Ee=new Map,Oe=function(){var e=U(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return ke.get(t)||ke.set(t,fetch(t)),e.next=3,ke.get(t);case 3:return n=e.sent,Ee.get(t)||Ee.set(t,n.text()),e.abrupt("return",Ee.get(t));case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),Ae=function(){var e=U(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return ke.get(t)||ke.set(t,fetch(t)),e.next=3,ke.get(t);case 3:return n=e.sent,xe.get(t)||xe.set(t,n.json()),e.abrupt("return",xe.get(t));case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),Ce=new Map,Re=new Map,Me=new Set,Pe=new Set,Ne=function(e,t,n){n._?Re.set("".concat(e,"_").concat(t),n._):n.includes(":root")?Re.set("".concat(e,"_").concat(t),n):Ce.set("".concat(e,"_").concat(t),n),Me.add(e),Pe.add(t)},Te=function(){var e=U(regeneratorRuntime.mark((function e(t,n){var r,o,i,a;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(r=Re.get("".concat(t,"_").concat(n)))){e.next=3;break}return e.abrupt("return",r);case 3:if(Pe.has(n)){e.next=7;break}return o=Q(Pe.values()).join(", "),console.warn("You have requested a non-registered theme - falling back to ".concat(ee,". Registered themes are: ").concat(o)),e.abrupt("return",Re.get("".concat(t,"_").concat(ee)));case 7:return e.next=9,Le(t,n);case 9:return i=e.sent,a=i._||i,Re.set("".concat(t,"_").concat(n),a),e.abrupt("return",a);case 13:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),Le=function(){var e=U(regeneratorRuntime.mark((function e(t,n){var r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=Ce.get("".concat(t,"_").concat(n))){e.next=3;break}throw new Error("You have to import the ".concat(t,"/dist/Assets.js module to switch to additional themes"));case 3:return e.abrupt("return",".css"===(i=void 0,(i=(o=r).lastIndexOf("."))<1?"":o.slice(i))?Oe(r):Ae(r));case 4:case"end":return e.stop()}var o,i}),e)})));return function(t,n){return e.apply(this,arguments)}}(),je=function(){return Me},De=function(e){return Pe.has(e)},Ie=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=document.createElement("style");return n.type="text/css",Object.entries(t).forEach((function(e){return n.setAttribute.apply(n,Q(e))})),n.textContent=e,document.head.appendChild(n),n},Ve=function(e,t){var n=document.head.querySelector('style[data-ui5-theme-properties="'.concat(t,'"]'));n?n.textContent=e||"":Ie(e,{"data-ui5-theme-properties":t})},Fe=function(){var e=function(){var e=document.querySelector(".sapThemeMetaData-Base-baseLib");if(e)return getComputedStyle(e).backgroundImage;(e=document.createElement("span")).style.display="none",e.classList.add("sapThemeMetaData-Base-baseLib"),document.body.appendChild(e);var t=getComputedStyle(e).backgroundImage;return document.body.removeChild(e),t}();if(e&&"none"!==e)return function(e){var t,n;try{t=e.Path.match(/\.([^.]+)\.css_variables$/)[1],n=e.Extends[0]}catch(t){return void console.warn("Malformed theme metadata Object",e)}return{themeName:t,baseThemeName:n}}(function(e){var t=/\(["']?data:text\/plain;utf-8,(.*?)['"]?\)$/i.exec(e);if(t&&t.length>=2){var n=t[1];if("{"!==(n=n.replace(/\\"/g,'"')).charAt(0)&&"}"!==n.charAt(n.length-1))try{n=decodeURIComponent(n)}catch(e){return void console.warn("Malformed theme metadata string, unable to decodeURIComponent")}try{return JSON.parse(n)}catch(e){console.warn("Malformed theme metadata string, unable to parse JSON")}}}(e))},Ue=function(){return!!window.CSSVarsPonyfill},Be=function(){ye=void 0,window.CSSVarsPonyfill.cssVars({rootElement:document.head,silent:!0})},We="@ui5/webcomponents-theme-base",He=function(){var e=U(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(je().has(We)){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,Te(We,t);case 4:n=e.sent,Ve(n,We);case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),qe=function(){var e=U(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:je().forEach(function(){var e=U(regeneratorRuntime.mark((function e(n){var r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n!==We){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,Te(n,t);case 4:r=e.sent,Ve(r,n);case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}());case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),ze=function(){var e=Fe();if(e)return e;var t=de("OpenUI5Support");if(t&&t.cssVariablesLoaded())return{themeName:t.getConfigurationSettingsObject().theme}},$e=function(){var e=U(regeneratorRuntime.mark((function e(t){var n,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if((n=ze())&&t===n.themeName){e.next=6;break}return e.next=4,He(t);case 4:e.next=7;break;case 6:o=void 0,(o=document.head.querySelector('style[data-ui5-theme-properties="'.concat(We,'"]')))&&o.parentElement.removeChild(o);case 7:return r=De(t)?t:n&&n.baseThemeName,e.next=10,qe(r);case 10:Ue()&&Be();case 11:case"end":return e.stop()}var o}),e)})));return function(t){return e.apply(this,arguments)}}(),Ge=function(){return void 0===ge&&(Se(),ge=pe.theme),ge},Je=function(){var e=U(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(ge!==t){e.next=2;break}return e.abrupt("return");case 2:return ge=t,e.next=5,$e(ge);case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),Ye=window.sap,Xe=Ye&&Ye.ui&&"function"==typeof Ye.ui.getCore&&Ye.ui.getCore();we="OpenUI5Support",be={isLoaded:function(){return!!Xe},init:function(){return Xe?new Promise((function(e){Xe.attachInit((function(){Ye.ui.require(["sap/ui/core/LocaleData"],e)}))})):Promise.resolve()},getConfigurationSettingsObject:function(){if(Xe){var e=Xe.getConfiguration(),t=Ye.ui.require("sap/ui/core/LocaleData");return{animationMode:e.getAnimationMode(),language:e.getLanguage(),theme:e.getTheme(),rtl:e.getRTL(),calendarType:e.getCalendarType(),formatSettings:{firstDayOfWeek:t?t.getInstance(e.getLocale()).getFirstDayOfWeek():void 0}}}},getLocaleDataObject:function(){if(Xe){var e=Xe.getConfiguration();return Ye.ui.require("sap/ui/core/LocaleData").getInstance(e.getLocale())._get()}},attachListeners:function(){var e;Xe&&(e=Xe.getConfiguration(),Xe.attachThemeChanged(U(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Je(e.getTheme());case 2:case"end":return t.stop()}}),t)})))))},cssVariablesLoaded:function(){if(Xe){var e=Q(document.head.children).find((function(e){return"sap-ui-theme-sap.ui.core"===e.id}));if(e)return!!e.href.match(/\/css-variables\.css/)}}},fe.set(we,be);var Ke,Ze,Qe='\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'),et=function(){if(!document.querySelector("head>style[data-ui5-font-face]")){var e=de("OpenUI5Support");e&&e.isLoaded()||Ie(Qe,{"data-ui5-font-face":""})}},tt=function(){function e(){B(this,e)}return H(e,null,[{key:"isValid",value:function(e){}},{key:"generataTypeAcessors",value:function(e){var t=this;Object.keys(e).forEach((function(n){Object.defineProperty(t,n,{get:function(){return e[n]}})}))}}]),e}(),nt=new Map,rt=new Map,ot=function(e){if(!rt.has(e)){var t=e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();rt.set(e,t)}return rt.get(e)},it=function(e){return e.map((function(e,t){return 0===t?e.toLowerCase():e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()})).join("")},at=function(){function e(t){B(this,e),this.metadata=t}return H(e,[{key:"getTag",value:function(){return this.metadata.tag}},{key:"hasAttribute",value:function(e){var t=this.getProperties()[e];return t.type!==Object&&!t.noAttribute}},{key:"getPropertiesList",value:function(){return Object.keys(this.getProperties())}},{key:"getAttributesList",value:function(){return this.getPropertiesList().filter(this.hasAttribute,this).map(ot)}},{key:"getSlots",value:function(){return this.metadata.slots||{}}},{key:"canSlotText",value:function(){var e=this.getSlots().default;return e&&e.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(e){var t=Z(e,2);t[0];return t[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:"validatePropertyValue",value:function(e,t){return t.multiple?e.map((function(e){return st(e,t)})):st(e,t)}},{key:"validateSlotValue",value:function(e,t){return ut(e,t)}}]),e}(),st=function(e,t){var n=t.type;return n===Boolean?"boolean"==typeof e&&e:n===String?"string"==typeof e||null==e?e:e.toString():n===Object?"object"===V(e)?e:t.defaultValue:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if("function"!=typeof e||"function"!=typeof t)return!1;if(n&&e===t)return!0;var r=e;do{r=Object.getPrototypeOf(r)}while(null!==r&&r!==t);return r===t}(n,tt)?n.isValid(e)?e:t.defaultValue:void 0},ut=function(e,t){if(null===e)return e;var n;return((n=e)instanceof HTMLElement&&"slot"===n.localName?n.assignedNodes({flatten:!0}).filter((function(e){return e instanceof HTMLElement})):[n]).forEach((function(e){if(!(e instanceof t.type))throw new Error("".concat(e," is not of type ").concat(t.type))})),e},ct=function(){var e=document.querySelector("ui5-static-area");if(e)return e;var t=document.body;return e=document.createElement("ui5-static-area"),t.insertBefore(e,t.firstChild)},lt=function(e){function t(){return B(this,t),Y(this,z(t).call(this))}return q(t,e),H(t,[{key:"destroy",value:function(){var e=document.querySelector(this.tagName.toLowerCase());e.parentElement.removeChild(e)}},{key:"isUI5Element",get:function(){return!0}}]),t}(J(HTMLElement));customElements.get("ui5-static-area")||customElements.define("ui5-static-area",lt);var ft,dt,ht,pt,mt=new(function(){function e(){B(this,e),this.list=[],this.promises=new Map}return H(e,[{key:"add",value:function(e){if(this.promises.has(e))return this.promises.get(e);var t,n=new Promise((function(e){t=e}));return n._deferredResolve=t,this.list.push(e),this.promises.set(e,n),n}},{key:"shift",value:function(){var e=this.list.shift();if(e){var t=this.promises.get(e);return this.promises.delete(e),{webComponent:e,promise:t}}}},{key:"getList",value:function(){return this.list}},{key:"isAdded",value:function(e){return this.promises.has(e)}}]),e}()),vt=function(){function e(){throw B(this,e),new Error("Static class")}var t,n;return H(e,null,[{key:"renderDeferred",value:function(t){var n=mt.add(t);return e.scheduleRenderTask(),n}},{key:"renderImmediately",value:function(t){var n=mt.add(t);return e.runRenderTask(),n}},{key:"scheduleRenderTask",value:function(){ft||(ft=window.requestAnimationFrame(e.renderWebComponents))}},{key:"runRenderTask",value:function(){ft||(ft=1,e.renderWebComponents())}},{key:"renderWebComponents",value:function(){for(var t,n,r,o=new Map;t=mt.shift();){n=t.webComponent,r=t.promise;var i=o.get(n)||0;if(i>10)throw new Error("Web component re-rendered too many times this task, max allowed is: ".concat(10));n._render(),r._deferredResolve(),o.set(n,i+1)}pt||(pt=setTimeout((function(){pt=void 0,0===mt.getList().length&&e._resolveTaskPromise()}),200)),ft=void 0}},{key:"whenDOMUpdated",value:function(){return dt||(dt=new Promise((function(e){ht=e,window.requestAnimationFrame((function(){0===mt.getList().length&&(dt=void 0,e())}))})))}},{key:"getNotDefinedComponents",value:function(){return Array.from(document.querySelectorAll("*")).filter((function(e){return e.localName.startsWith("ui5-")&&!e.isUI5Element}))}},{key:"whenShadowDOMReady",value:(n=U(regeneratorRuntime.mark((function e(){var t,n,r,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=this.getNotDefinedComponents(),n=t.map((function(e){return customElements.whenDefined(e.localName)})),r=new Promise((function(e){return setTimeout(e,5e3)})),e.next=5,Promise.race([Promise.all(n),r]);case 5:return(o=this.getNotDefinedComponents()).length&&console.warn("undefined elements after 5 seconds are: "+Q(o).map((function(e){return e.localName})).join(" ; ")),e.abrupt("return",Promise.resolve());case 8:case"end":return e.stop()}}),e,this)}))),function(){return n.apply(this,arguments)})},{key:"whenFinished",value:(t=U(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.whenShadowDOMReady();case 2:return t.next=4,e.whenDOMUpdated();case 4:case"end":return t.stop()}}),t)}))),function(){return t.apply(this,arguments)})},{key:"_resolveTaskPromise",value:function(){mt.getList().length>0||ht&&(ht.call(this,void 0),ht=void 0,dt=void 0)}}]),e}(),yt=function(){function e(t){B(this,e),this.ui5ElementContext=t,this._rendered=!1}var t;return H(e,[{key:"isRendered",value:function(){return this._rendered}},{key:"_updateFragment",value:function(){var e=this.ui5ElementContext.constructor.staticAreaTemplate(this.ui5ElementContext),t=!window.ShadyDOM&&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),ct().appendChild(this.staticAreaItemDomRef),this._rendered=!0),this.ui5ElementContext.constructor.render(e,this.staticAreaItemDomRef.shadowRoot,t,{eventContext:this.ui5ElementContext})}},{key:"_removeFragmentFromStaticArea",value:function(){if(this.staticAreaItemDomRef){var e=ct();e.removeChild(this.staticAreaItemDomRef),this.staticAreaItemDomRef=null,e.childElementCount<1&&ct().destroy()}}},{key:"_updateContentDensity",value:function(e){this.staticAreaItemDomRef&&(e?(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:(t=U(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this._rendered&&this.staticAreaItemDomRef||this._updateFragment(),e.next=3,vt.whenDOMUpdated();case 3:return e.abrupt("return",this.staticAreaItemDomRef.shadowRoot);case 4:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})}]),e}(),gt=function(e){function t(){return B(this,t),Y(this,z(t).call(this))}return q(t,e),H(t,[{key:"isUI5Element",get:function(){return!0}}]),t}(J(HTMLElement));customElements.get("ui5-static-area-item")||customElements.define("ui5-static-area-item",gt);var wt,bt=window,St=new WeakMap,_t=function(){function e(){throw B(this,e),new Error("Static class")}return H(e,null,[{key:"observeDOMNode",value:function(e,t,n){var r=St.get(e);if(r)throw new Error("A mutation/ShadyDOM observer is already assigned to this node.");bt.ShadyDOM?r=bt.ShadyDOM.observeChildren(e,t):(r=new MutationObserver(t)).observe(e,n),St.set(e,r)}},{key:"unobserveDOMNode",value:function(e){var t=St.get(e);t&&(t instanceof MutationObserver?t.disconnect():bt.ShadyDOM.unobserveChildren(t),St.delete(e))}}]),e}(),kt=["value-changed"],xt=function(){return void 0===wt&&(Se(),wt=pe.noConflict),wt},Et=function(e){var t=xt();return!function(e){return kt.includes(e)}(e)&&(!0===t||!function(e){var t=xt();return!(t.events&&t.events.includes&&t.events.includes(e))}(e))},Ot=function(e){wt=e},At={},Ct=function(e){var t=function(e){return At[e]?At[e].join(""):""}(e.getMetadata().getTag())||"",n=e.styles;return Array.isArray(n)&&(n=n.join(" ")),"".concat(n," ").concat(t)},Rt=new Map,Mt=function(e,t,n,r){var o=n+t.length,i=e.charAt(o),a=e.substring(0,n)+r;if("("===i){var s=function(e,t){for(var n=1,r=t+1;r<e.length;r++){var o=e.charAt(r);if("("===o?n++:")"===o&&n--,0===n)return r}}(e,o);return a+e.substring(o+1,s)+e.substring(s+1)}return a+e.substring(o)},Pt=function(e,t){return(e=function(e,t,n){for(var r=e.indexOf(t);-1!==r;)r=(e=Mt(e,t,r,n)).indexOf(t);return e}(e=e.trim(),"::slotted","")).startsWith(":host")?Mt(e,":host",0,t):e.match(/^[@0-9]/)||"to"===e||"to{"===e?e:e.match(new RegExp("^".concat(t,"[^a-zA-Z0-9-]")))?e:"".concat(t," ").concat(e)},Nt=function(e,t){e=(e=e.replace(/\n/g," ")).replace(/([{}])/g,"$1\n");var n="";return e.split("\n").forEach((function(e){if(e.match(/{$/)){var r=e.split(",");e=r.map((function(e){return Pt(e,t)})).join(",")}n="".concat(n).concat(e)})),n},Tt=new Set,Lt=function(e){var t=e.getMetadata().getTag();if(!Tt.has(t)){var n=Ct(e);n=Nt(n,t);var r=function(e){var t=e.staticAreaStyles;return Array.isArray(t)&&(t=t.join(" ")),t}(e);r&&(r=Nt(r,"ui5-static-area-item"),n="".concat(n," ").concat(r)),Ie(n,{"data-ui5-element-styles":t,disabled:"disabled"}),Ue()&&(ye||(ye=window.setTimeout(Be,0))),Tt.add(t)}},jt=function(e){function t(){return B(this,t),Y(this,z(t).apply(this,arguments))}return q(t,e),H(t,null,[{key:"isValid",value:function(e){return Number.isInteger(e)}}]),t}(tt),Dt=function(e){return"disabled"===e||![HTMLElement,Element,Node].some((function(t){return t.prototype.hasOwnProperty(e)}))},It={events:{_propertyChange:{}}},Vt=new Set,Ft=0,Ut=new Map,Bt=function(e){function t(){var e,n;return B(this,t),(e=Y(this,z(t).call(this)))._generateId(),e._initializeState(),e._upgradeAllProperties(),e._initializeContainers(),e._upToDate=!1,e._domRefReadyPromise=new Promise((function(e){n=e})),e._domRefReadyPromise._deferredResolve=n,e._monitoredChildProps=new Map,e._firePropertyChange=!1,e}var n,r,o,i,a;return q(t,e),H(t,[{key:"_generateId",value:function(){this._id="ui5wc_".concat(++Ft)}},{key:"_initializeContainers",value:function(){var e=this.constructor._needsShadowDOM(),t=this.constructor._needsStaticArea();if(e&&(this.attachShadow({mode:"open"}),window.ShadyDOM&&Lt(this.constructor),document.adoptedStyleSheets)){var n=function(e){var t=e.getMetadata().getTag(),n=Ct(e);if(Rt.has(t))return Rt.get(t);var r=new CSSStyleSheet;return r.replaceSync(n),Rt.set(t,r),r}(this.constructor);this.shadowRoot.adoptedStyleSheets=[n]}t&&(this.staticAreaItem=new yt(this))}},{key:"connectedCallback",value:(a=U(regeneratorRuntime.mark((function e(){var t,n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=this.constructor._needsShadowDOM(),n=this.constructor.getMetadata().slotsAreManaged(),!t){e.next=14;break}if(!n){e.next=7;break}return this._startObservingDOMChildren(),e.next=7,this._processChildren();case 7:if(this.shadowRoot){e.next=10;break}return e.next=10,Promise.resolve();case 10:return e.next=12,vt.renderImmediately(this);case 12:this._domRefReadyPromise._deferredResolve(),"function"==typeof this.onEnterDOM&&this.onEnterDOM();case 14:case"end":return e.stop()}}),e,this)}))),function(){return a.apply(this,arguments)})},{key:"disconnectedCallback",value:function(){var e=this.constructor._needsShadowDOM(),t=this.constructor._needsStaticArea(),n=this.constructor.getMetadata().slotsAreManaged();e&&(n&&this._stopObservingDOMChildren(),"function"==typeof this.onExitDOM&&this.onExitDOM()),t&&this.staticAreaItem._removeFragmentFromStaticArea()}},{key:"_startObservingDOMChildren",value:function(){if(this.constructor.getMetadata().hasSlots()){var e={childList:!0,subtree:this.constructor.getMetadata().canSlotText(),characterData:!0};_t.observeDOMNode(this,this._processChildren.bind(this),e)}}},{key:"_stopObservingDOMChildren",value:function(){_t.unobserveDOMNode(this)}},{key:"_processChildren",value:(i=U(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.constructor.getMetadata().hasSlots()){e.next=4;break}return e.next=4,this._updateSlots();case 4:case"end":return e.stop()}}),e,this)}))),function(){return i.apply(this,arguments)})},{key:"_updateSlots",value:(o=U(regeneratorRuntime.mark((function e(){var t,n,r,o,i,a,s,u,c,l,f,d=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for(t=this.constructor.getMetadata().getSlots(),n=this.constructor.getMetadata().canSlotText(),r=Array.from(n?this.childNodes:this.children),o=0,i=Object.entries(t);o<i.length;o++)a=Z(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 e=U(regeneratorRuntime.mark((function e(n,r){var o,i,a,s,u,f,h,p;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o=d.constructor._getSlotName(n),void 0!==(i=t[o])){e.next=6;break}return a=Object.keys(t).join(", "),console.warn("Unknown slotName: ".concat(o,", ignoring"),n,"Valid values are: ".concat(a)),e.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)){e.next=19;break}if(!(u=n.localName).includes("-")){e.next=19;break}if(window.customElements.get(u)){e.next=18;break}return f=window.customElements.whenDefined(u),(h=Ut.get(u))||(h=new Promise((function(e){return setTimeout(e,1e3)})),Ut.set(u,h)),e.next=18,Promise.race([f,h]);case 18:window.customElements.upgrade(n);case 19:(n=d.constructor.getMetadata().constructor.validateSlotValue(n,i)).isUI5Element&&i.listenFor&&d._attachChildPropertyUpdated(n,i.listenFor),p=i.propertyName||o,l.has(p)?l.get(p).push({child:n,idx:r}):l.set(p,[{child:n,idx:r}]);case 23:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}()),e.next=9,Promise.all(f);case 9:l.forEach((function(e,t){d._state[t]=e.sort((function(e,t){return e.idx-t.idx})).map((function(e){return e.child}))})),this._invalidate("slots");case 11:case"end":return e.stop()}}),e,this)}))),function(){return o.apply(this,arguments)})},{key:"_clearSlot",value:function(e,t){var n=this,r=t.propertyName||e,o=this._state[r];Array.isArray(o)||(o=[o]),o.forEach((function(e){e&&e.isUI5Element&&n._detachChildPropertyUpdated(e)})),this._state[r]=[],this._invalidate(r,[])}},{key:"attributeChangedCallback",value:function(e,t,n){var r=this.constructor.getMetadata().getProperties(),o=function(e){if(!nt.has(e)){var t=it(e.split("-"));nt.set(e,t)}return nt.get(e)}(e.replace(/^ui5-/,""));if(r.hasOwnProperty(o)){var i=r[o].type;i===Boolean&&(n=null!==n),i===jt&&(n=parseInt(n)),this[o]=n}}},{key:"_updateAttribute",value:function(e,t){if(this.constructor.getMetadata().hasAttribute(e)&&"object"!==V(t)){var n=ot(e),r=this.getAttribute(n);"boolean"==typeof t?!0===t&&null===r?this.setAttribute(n,""):!1===t&&null!==r&&this.removeAttribute(n):r!==t&&this.setAttribute(n,t)}}},{key:"_upgradeProperty",value:function(e){if(this.hasOwnProperty(e)){var t=this[e];delete this[e],this[e]=t}}},{key:"_upgradeAllProperties",value:function(){this.constructor.getMetadata().getPropertiesList().forEach(this._upgradeProperty,this)}},{key:"_initializeState",value:function(){var e=this.constructor._getDefaultState();this._state=Object.assign({},e)}},{key:"_attachChildPropertyUpdated",value:function(e,t){var n=e.constructor.getMetadata(),r=this.constructor._getSlotName(e),o=n.getProperties(),i=[],a=[];Array.isArray(t)?i=t:(i=Array.isArray(t.props)?t.props:Object.keys(o),a=Array.isArray(t.exclude)?t.exclude:[]),this._monitoredChildProps.has(r)||this._monitoredChildProps.set(r,{observedProps:i,notObservedProps:a}),e.addEventListener("_propertyChange",this._invalidateParentOnPropertyUpdate),e._firePropertyChange=!0}},{key:"_detachChildPropertyUpdated",value:function(e){e.removeEventListener("_propertyChange",this._invalidateParentOnPropertyUpdate),e._firePropertyChange=!1}},{key:"_propertyChange",value:function(e,t){this._updateAttribute(e,t),this._firePropertyChange&&this.dispatchEvent(new CustomEvent("_propertyChange",{detail:{name:e,newValue:t},composed:!1,bubbles:!0}))}},{key:"_invalidateParentOnPropertyUpdate",value:function(e){var t=this.parentNode;if(t){var n=t.constructor._getSlotName(this),r=t._monitoredChildProps.get(n);if(r){var o=r.observedProps,i=r.notObservedProps;o.includes(e.detail.name)&&!i.includes(e.detail.name)&&t._invalidate("_parent_",this)}}}},{key:"_invalidate",value:function(){this._upToDate&&this.getDomRef()&&!this._suppressInvalidation&&(this._upToDate=!1,vt.renderDeferred(this))}},{key:"_render",value:function(){var e=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),e&&this._assignIndividualSlotsToChildren(),"function"==typeof this.onAfterRendering&&this.onAfterRendering()}},{key:"_updateShadowRoot",value:function(){if(this.constructor._needsShadowDOM()){var e,t=this.constructor.template(this);document.adoptedStyleSheets||window.ShadyDOM||(e=Ct(this.constructor)),this.constructor.render(t,this.shadowRoot,e,{eventContext:this})}}},{key:"_assignIndividualSlotsToChildren",value:function(){Array.from(this.children).forEach((function(e){e._individualSlot&&e.setAttribute("slot",e._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 e=this.getDomRef();if(e)return e.querySelector("[data-sap-focus-ref]")||e}},{key:"focus",value:(r=U(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._waitForDomRef();case 2:(t=this.getFocusDomRef())&&"function"==typeof t.focus&&t.focus();case 4:case"end":return e.stop()}}),e,this)}))),function(){return r.apply(this,arguments)})},{key:"fireEvent",value:function(e,t,n){var r,o=new CustomEvent("ui5-".concat(e),{detail:t,composed:!1,bubbles:!0,cancelable:n});if(r=this.dispatchEvent(o),Et(e))return r;var i=new CustomEvent(e,{detail:t,composed:!1,bubbles:!0,cancelable:n});return this.dispatchEvent(i)&&r}},{key:"getSlottedNodes",value:function(e){return this[e].reduce((function(e,t){return"slot"!==t.localName?e.concat([t]):e.concat(t.assignedNodes({flatten:!0}).filter((function(e){return e instanceof HTMLElement})))}),[])}},{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:"isCompact",get:function(){return"compact"===getComputedStyle(this).getPropertyValue("--_ui5_content_density")}},{key:"isUI5Element",get:function(){return!0}}],[{key:"_getSlotName",value:function(e){if(!(e instanceof HTMLElement))return"default";var t=e.getAttribute("slot");if(t){var n=t.match(/^(.+?)-\d+$/);return n?n[1]:t}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 e=this.getMetadata(),t={},n=e.slotsAreManaged(),r=e.getProperties();for(var o in r){var i=r[o].type,a=r[o].defaultValue;i===Boolean?(t[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?t[o]=[]:t[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=e.getSlots(),u=0,c=Object.entries(s);u<c.length;u++){var l=Z(c[u],2),f=l[0];t[l[1].propertyName||f]=[]}return this._defaultState=t,t}},{key:"_generateAccessors",value:function(){for(var e=this.prototype,t=this.getMetadata().slotsAreManaged(),n=this.getMetadata().getProperties(),r=function(){var t=Z(i[o],2),n=t[0],r=t[1];if(!Dt(n))throw new Error('"'.concat(n,'" is not a valid property name. Use a name that does not collide with DOM APIs'));if(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(e,n,{get:function(){if(void 0!==this._state[n])return this._state[n];var e=r.defaultValue;return r.type!==Boolean&&(r.type===String?e:r.multiple?[]:e)},set:function(e){e=this.constructor.getMetadata().constructor.validatePropertyValue(e,r),this._state[n]!==e&&(this._state[n]=e,this._invalidate(n,e),this._propertyChange(n,e))}})},o=0,i=Object.entries(n);o<i.length;o++)r();if(t)for(var a=this.getMetadata().getSlots(),s=function(){var t=Z(c[u],2),n=t[0],r=t[1];if(!Dt(n))throw new Error('"'.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(e,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:"define",value:(n=U(regeneratorRuntime.mark((function e(){var t,n,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Ze||(Ze=new Promise(function(){var e=U(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(n=de("OpenUI5Support"))){e.next=4;break}return e.next=4,n.init();case 4:return e.next=6,new Promise((function(e){document.body?e():document.addEventListener("DOMContentLoaded",(function(){e()}))}));case 6:return e.next=8,$e(Ge());case 8:return n&&n.attachListeners(),et(),e.next=12,Ke||(Ke=new Promise((function(e){window.WebComponents&&!window.WebComponents.ready&&window.WebComponents.waitFor?window.WebComponents.waitFor((function(){e()})):e()})));case 12:t();case 13:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()));case 2:if(!this.onDefine){e.next=5;break}return e.next=5,this.onDefine();case 5:return t=this.getMetadata().getTag(),n=Vt.has(t),(r=customElements.get(t))&&!n?console.warn("Skipping definition of tag ".concat(t,", because it was already defined by another instance of ui5-webcomponents.")):r||(this._generateAccessors(),Vt.add(t),window.customElements.define(t,this)),e.abrupt("return",this);case 10:case"end":return e.stop()}}),e,this)}))),function(){return n.apply(this,arguments)})},{key:"getMetadata",value:function(){if(this.hasOwnProperty("_metadata"))return this._metadata;for(var e=[this.metadata],n=this;n!==t;)n=Object.getPrototypeOf(n),e.unshift(n.metadata);var r=le.apply(void 0,[{}].concat(e));return this._metadata=new at(r),this._metadata}},{key:"observedAttributes",get:function(){return this.getMetadata().getAttributesList()}},{key:"metadata",get:function(){return It}},{key:"styles",get:function(){return""}},{key:"staticAreaStyles",get:function(){return""}}]),t}(J(HTMLElement)),Wt=new WeakMap,Ht=function(e){return"function"==typeof e&&Wt.has(e)},qt=void 0!==window.customElements&&void 0!==window.customElements.polyfillWrapFlushCallback,zt=function(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;t!==n;){var r=t.nextSibling;e.removeChild(t),t=r}},$t={},Gt={},Jt="{{lit-".concat(String(Math.random()).slice(2),"}}"),Yt="\x3c!--".concat(Jt,"--\x3e"),Xt=new RegExp("".concat(Jt,"|").concat(Yt)),Kt=function e(t,n){B(this,e),this.parts=[],this.element=n;for(var r=[],o=[],i=document.createTreeWalker(n.content,133,null,!1),a=0,s=-1,u=0,c=t.strings,l=t.values.length;u<l;){var f=i.nextNode();if(null!==f){if(s++,1===f.nodeType){if(f.hasAttributes()){for(var d=f.attributes,h=d.length,p=0,m=0;m<h;m++)Zt(d[m].name,"$lit$")&&p++;for(;p-- >0;){var v=c[u],y=tn.exec(v)[2],g=y.toLowerCase()+"$lit$",w=f.getAttribute(g);f.removeAttribute(g);var b=w.split(Xt);this.parts.push({type:"attribute",index:s,name:y,strings:b}),u+=b.length-1}}"TEMPLATE"===f.tagName&&(o.push(f),i.currentNode=f.content)}else if(3===f.nodeType){var S=f.data;if(S.indexOf(Jt)>=0){for(var _=f.parentNode,k=S.split(Xt),x=k.length-1,E=0;E<x;E++){var O=void 0,A=k[E];if(""===A)O=en();else{var C=tn.exec(A);null!==C&&Zt(C[2],"$lit$")&&(A=A.slice(0,C.index)+C[1]+C[2].slice(0,-"$lit$".length)+C[3]),O=document.createTextNode(A)}_.insertBefore(O,f),this.parts.push({type:"node",index:++s})}""===k[x]?(_.insertBefore(en(),f),r.push(f)):f.data=k[x],u+=x}}else if(8===f.nodeType)if(f.data===Jt){var R=f.parentNode;null!==f.previousSibling&&s!==a||(s++,R.insertBefore(en(),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(Jt,M+1));)this.parts.push({type:"node",index:-1}),u++}else i.currentNode=o.pop()}for(var P=0,N=r;P<N.length;P++){var T=N[P];T.parentNode.removeChild(T)}},Zt=function(e,t){var n=e.length-t.length;return n>=0&&e.slice(n)===t},Qt=function(e){return-1!==e.index},en=function(){return document.createComment("")},tn=/([ \x09\x0a\x0c\x0d])([^\0-\x1F\x7F-\x9F "'>=/]+)([ \x09\x0a\x0c\x0d]*=[ \x09\x0a\x0c\x0d]*(?:[^ \x09\x0a\x0c\x0d"'`<>=]*|"[^"]*|'[^']*))$/,nn=function(){function e(t,n,r){B(this,e),this.__parts=[],this.template=t,this.processor=n,this.options=r}return H(e,[{key:"update",value:function(e){var t=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(e[t]),t++}}catch(e){r=!0,o=e}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,d=this.__parts[Symbol.iterator]();!(u=(f=d.next()).done);u=!0){var h=f.value;void 0!==h&&h.commit()}}catch(e){c=!0,l=e}finally{try{u||null==d.return||d.return()}finally{if(c)throw l}}}},{key:"_clone",value:function(){for(var e,t=qt?this.template.element.content.cloneNode(!0):document.importNode(this.template.element.content,!0),n=[],r=this.template.parts,o=document.createTreeWalker(t,133,null,!1),i=0,a=0,s=o.nextNode();i<r.length;)if(e=r[i],Qt(e)){for(;a<e.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"===e.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,e.name,e.strings,this.options)))}i++}else this.__parts.push(void 0),i++;return qt&&(document.adoptNode(t),customElements.upgrade(t)),t}}]),e}(),rn=" ".concat(Jt," "),on=function(){function e(t,n,r,o){B(this,e),this.strings=t,this.values=n,this.type=r,this.processor=o}return H(e,[{key:"getHTML",value:function(){for(var e=this.strings.length-1,t="",n=!1,r=0;r<e;r++){var o=this.strings[r],i=o.lastIndexOf("\x3c!--");n=(i>-1||n)&&-1===o.indexOf("--\x3e",i+1);var a=tn.exec(o);t+=null===a?o+(n?rn:Yt):o.substr(0,a.index)+a[1]+a[2]+"$lit$"+a[3]+Jt}return t+=this.strings[e]}},{key:"getTemplateElement",value:function(){var e=document.createElement("template");return e.innerHTML=this.getHTML(),e}}]),e}(),an=function(e){return null===e||!("object"===V(e)||"function"==typeof e)},sn=function(e){return Array.isArray(e)||!(!e||!e[Symbol.iterator])},un=function(){function e(t,n,r){B(this,e),this.dirty=!0,this.element=t,this.name=n,this.strings=r,this.parts=[];for(var o=0;o<r.length-1;o++)this.parts[o]=this._createPart()}return H(e,[{key:"_createPart",value:function(){return new cn(this)}},{key:"_getValue",value:function(){for(var e=this.strings,t=e.length-1,n="",r=0;r<t;r++){n+=e[r];var o=this.parts[r];if(void 0!==o){var i=o.value;if(an(i)||!sn(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(e){s=!0,u=e}finally{try{a||null==l.return||l.return()}finally{if(s)throw u}}}}}return n+=e[t]}},{key:"commit",value:function(){this.dirty&&(this.dirty=!1,this.element.setAttribute(this.name,this._getValue()))}}]),e}(),cn=function(){function e(t){B(this,e),this.value=void 0,this.committer=t}return H(e,[{key:"setValue",value:function(e){e===$t||an(e)&&e===this.value||(this.value=e,Ht(e)||(this.committer.dirty=!0))}},{key:"commit",value:function(){for(;Ht(this.value);){var e=this.value;this.value=$t,e(this)}this.value!==$t&&this.committer.commit()}}]),e}(),ln=function(){function e(t){B(this,e),this.value=void 0,this.__pendingValue=void 0,this.options=t}return H(e,[{key:"appendInto",value:function(e){this.startNode=e.appendChild(en()),this.endNode=e.appendChild(en())}},{key:"insertAfterNode",value:function(e){this.startNode=e,this.endNode=e.nextSibling}},{key:"appendIntoPart",value:function(e){e.__insert(this.startNode=en()),e.__insert(this.endNode=en())}},{key:"insertAfterPart",value:function(e){e.__insert(this.startNode=en()),this.endNode=e.endNode,e.endNode=this.startNode}},{key:"setValue",value:function(e){this.__pendingValue=e}},{key:"commit",value:function(){for(;Ht(this.__pendingValue);){var e=this.__pendingValue;this.__pendingValue=$t,e(this)}var t=this.__pendingValue;t!==$t&&(an(t)?t!==this.value&&this.__commitText(t):t instanceof on?this.__commitTemplateResult(t):t instanceof Node?this.__commitNode(t):sn(t)?this.__commitIterable(t):t===Gt?(this.value=Gt,this.clear()):this.__commitText(t))}},{key:"__insert",value:function(e){this.endNode.parentNode.insertBefore(e,this.endNode)}},{key:"__commitNode",value:function(e){this.value!==e&&(this.clear(),this.__insert(e),this.value=e)}},{key:"__commitText",value:function(e){var t=this.startNode.nextSibling,n="string"==typeof(e=null==e?"":e)?e:String(e);t===this.endNode.previousSibling&&3===t.nodeType?t.data=n:this.__commitNode(document.createTextNode(n)),this.value=e}},{key:"__commitTemplateResult",value:function(e){var t=this.options.templateFactory(e);if(this.value instanceof nn&&this.value.template===t)this.value.update(e.values);else{var n=new nn(t,e.processor,this.options),r=n._clone();n.update(e.values),this.__commitNode(r),this.value=n}}},{key:"__commitIterable",value:function(t){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=t[Symbol.iterator]();!(i=(u=c.next()).done);i=!0){var l=u.value;void 0===(n=r[o])&&(n=new e(this.options),r.push(n),0===o?n.appendIntoPart(this):n.insertAfterPart(r[o-1])),n.setValue(l),n.commit(),o++}}catch(e){a=!0,s=e}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 e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.startNode;zt(this.startNode.parentNode,e.nextSibling,this.endNode)}}]),e}(),fn=function(){function e(t,n,r){if(B(this,e),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=t,this.name=n,this.strings=r}return H(e,[{key:"setValue",value:function(e){this.__pendingValue=e}},{key:"commit",value:function(){for(;Ht(this.__pendingValue);){var e=this.__pendingValue;this.__pendingValue=$t,e(this)}if(this.__pendingValue!==$t){var t=!!this.__pendingValue;this.value!==t&&(t?this.element.setAttribute(this.name,""):this.element.removeAttribute(this.name),this.value=t),this.__pendingValue=$t}}}]),e}(),dn=function(e){function t(e,n,r){var o;return B(this,t),(o=Y(this,z(t).call(this,e,n,r))).single=2===r.length&&""===r[0]&&""===r[1],o}return q(t,e),H(t,[{key:"_createPart",value:function(){return new hn(this)}},{key:"_getValue",value:function(){return this.single?this.parts[0].value:X(z(t.prototype),"_getValue",this).call(this)}},{key:"commit",value:function(){this.dirty&&(this.dirty=!1,this.element[this.name]=this._getValue())}}]),t}(un),hn=function(e){function t(){return B(this,t),Y(this,z(t).apply(this,arguments))}return q(t,e),t}(cn),pn=!1;try{var mn={get capture(){return pn=!0,!1}};window.addEventListener("test",mn,mn),window.removeEventListener("test",mn,mn)}catch(e){}var vn=function(){function e(t,n,r){var o=this;B(this,e),this.value=void 0,this.__pendingValue=void 0,this.element=t,this.eventName=n,this.eventContext=r,this.__boundHandleEvent=function(e){return o.handleEvent(e)}}return H(e,[{key:"setValue",value:function(e){this.__pendingValue=e}},{key:"commit",value:function(){for(;Ht(this.__pendingValue);){var e=this.__pendingValue;this.__pendingValue=$t,e(this)}if(this.__pendingValue!==$t){var t=this.__pendingValue,n=this.value,r=null==t||null!=n&&(t.capture!==n.capture||t.once!==n.once||t.passive!==n.passive),o=null!=t&&(null==n||r);r&&this.element.removeEventListener(this.eventName,this.__boundHandleEvent,this.__options),o&&(this.__options=yn(t),this.element.addEventListener(this.eventName,this.__boundHandleEvent,this.__options)),this.value=t,this.__pendingValue=$t}}},{key:"handleEvent",value:function(e){"function"==typeof this.value?this.value.call(this.eventContext||this.element,e):this.value.handleEvent(e)}}]),e}(),yn=function(e){return e&&(pn?{capture:e.capture,passive:e.passive,once:e.once}:e.capture)},gn=new(function(){function e(){B(this,e)}return H(e,[{key:"handleAttributeExpressions",value:function(e,t,n,r){var o=t[0];return"."===o?new dn(e,t.slice(1),n).parts:"@"===o?[new vn(e,t.slice(1),r.eventContext)]:"?"===o?[new fn(e,t.slice(1),n)]:new un(e,t,n).parts}},{key:"handleTextExpression",value:function(e){return new ln(e)}}]),e}());
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 wn(e){var t=bn.get(e.type);void 0===t&&(t={stringsArray:new WeakMap,keyString:new Map},bn.set(e.type,t));var n=t.stringsArray.get(e.strings);if(void 0!==n)return n;var r=e.strings.join(Jt);return void 0===(n=t.keyString.get(r))&&(n=new Kt(e,e.getTemplateElement()),t.keyString.set(r,n)),t.stringsArray.set(e.strings,n),n}var bn=new Map,Sn=new WeakMap,_n=function(e,t,n){var r=Sn.get(t);void 0===r&&(zt(t,t.firstChild),Sn.set(t,r=new ln(Object.assign({templateFactory:wn},n))),r.appendInto(t)),r.setValue(e),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 kn=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return new on(e,n,"html",gn)};function xn(){var e=K(["<style>","</style>",""]);return xn=function(){return e},e}var En=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=r.eventContext;n&&(e=kn(xn(),n,e)),_n(e,t,{eventContext:o})};function On(){var e=K(['<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 On=function(){return e},e}var An={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"}}},Cn=function(e){function t(){return B(this,t),Y(this,z(t).apply(this,arguments))}return q(t,e),H(t,[{key:"onBeforeRendering",value:function(){}},{key:"onAfterRendering",value:function(){}},{key:"onEnterDOM",value:function(){}},{key:"onExitDOM",value:function(){}}],[{key:"metadata",get:function(){return An}},{key:"render",get:function(){return En}},{key:"template",get:function(){return function(e){return kn(On())}}},{key:"styles",get:function(){return":host {\n display: inline-block;\n border: 1px solid black;\n color: var(--var1);\n }"}}]),t}(Bt);Cn.define();var Rn={tag:"ui5-test-no-shadow"};function Mn(){var e=K(["<div>\n\t\t\t\t<slot></slot>\n\t\t\t</div>"]);return Mn=function(){return e},e}(function(e){function t(){return B(this,t),Y(this,z(t).apply(this,arguments))}return q(t,e),H(t,null,[{key:"metadata",get:function(){return Rn}}]),t})(Bt).define();var Pn={tag:"ui5-test-parent",managedSlots:!0,slots:{default:{type:Node,listenFor:["prop1"]},items:{type:HTMLElement,listenFor:{include:["*"],exclude:["prop3"]}}}};function Nn(){var e=K(["<div></div>"]);return Nn=function(){return e},e}(function(e){function t(){return B(this,t),Y(this,z(t).apply(this,arguments))}return q(t,e),H(t,null,[{key:"metadata",get:function(){return Pn}},{key:"render",get:function(){return En}},{key:"template",get:function(){return function(e){return kn(Mn())}}}]),t})(Bt).define();var Tn={tag:"ui5-test-child",properties:{prop1:{type:String},prop2:{type:String},prop3:{type:String}}};function Ln(){var e=K(['\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 Ln=function(){return e},e}function jn(){var e=K(["\n\t\t\t\t<div>\n\t\t\t\t\tWithStaticArea works!\n\t\t\t\t</div>"]);return jn=function(){return e},e}(function(e){function t(){return B(this,t),Y(this,z(t).apply(this,arguments))}return q(t,e),H(t,null,[{key:"metadata",get:function(){return Tn}},{key:"render",get:function(){return En}},{key:"template",get:function(){return function(e){return kn(Nn())}}}]),t})(Bt).define();var Dn={tag:"ui5-with-static-area",properties:{staticContent:{type:Boolean}},slots:{}};(function(e){function t(){return B(this,t),Y(this,z(t).apply(this,arguments))}var n;return q(t,e),H(t,[{key:"addStaticArea",value:(n=U(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.staticContent){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,this.getStaticAreaItemDomRef();case 4:return t=e.sent,this.responsivePopover=t.querySelector(".ui5-with-static-area-content"),e.abrupt("return",this.responsivePopover);case 7:case"end":return e.stop()}}),e,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 Dn}},{key:"render",get:function(){return En}},{key:"template",get:function(){return function(e){return kn(jn())}}},{key:"staticAreaTemplate",get:function(){return function(e){return kn(Ln())}}},{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}"}}]),t})(Bt).define();var In={tag:"ui5-test-generic-ext",properties:{extProp:{type:String},strProp:{defaultValue:"Ext"}},slots:{extSlot:{type:HTMLElement}}};(function(e){function t(){return B(this,t),Y(this,z(t).apply(this,arguments))}return q(t,e),H(t,null,[{key:"metadata",get:function(){return In}}]),t})(Cn).define();Ne("@ui5/webcomponents-base-test","sap_fiori_3",":root{ --var1: red; }"),Ne("@ui5/webcomponents-base-test","sap_fiori_3_dark",":root{ --var1: green; }"),Ne("@ui5/webcomponents-base-test","sap_belize",":root{ --var1: blue; }"),Ne("@ui5/webcomponents-base-test","sap_belize_hcb",":root{ --var1: orange; }"),Ne("@ui5/webcomponents-base-test","sap_belize_hcw",":root{ --var1: orange; }");var Vn,Fn,Un={},Bn={INTERNET_EXPLORER:"ie",EDGE:"ed",FIREFOX:"ff",CHROME:"cr",SAFARI:"sf",ANDROID:"an"},Wn=function(){var e,t,n,r=function(){var e=navigator.userAgent.toLowerCase(),t=/(edge)[ /]([\w.]+)/.exec(e)||/(trident)\/[\w.]+;.*rv:([\w.]+)/.exec(e)||/(webkit)[ /]([\w.]+)/.exec(e)||/(msie) ([\w.]+)/.exec(e)||e.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+))?/.exec(e)||[],n={browser:t[1]||"",version:t[2]||"0"};return n[n.browser]=!0,n}(),o=navigator.userAgent,i=window.navigator;if(r.mozilla)e=/Mobile/,o.match(/Firefox\/(\d+\.\d+)/)?(n=parseFloat(RegExp.$1),t={name:Bn.FIREFOX,versionStr:"".concat(n),version:n,mozilla:!0,mobile:e.test(o)}):t={mobile:e.test(o),mozilla:!0,version:-1};else if(r.webkit){var a,s=o.toLowerCase().match(/webkit[/]([\d.]+)/);s&&(a=s[1]),e=/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,d,h;u?(f=Bn.CHROME,h=e.test(o),d=parseFloat(u[2])):c?(f=Bn.FIREFOX,h=!0,d=parseFloat(c[1])):l&&(f=Bn.ANDROID,h=e.test(o),d=parseFloat(l[1])),t={name:f,mobile:h,versionStr:"".concat(d),version:d,webkit:!0,webkitVersion:a}}else{var p=/(Version|PhantomJS)\/(\d+\.\d+).*Safari/,m=i.standalone;if(p.test(o)){var v=p.exec(o);n=parseFloat(v[2]),t={name:Bn.SAFARI,versionStr:"".concat(n),fullscreen:!1,webview:!1,version:n,mobile:e.test(o),webkit:!0,webkitVersion:a,phantomJS:"PhantomJS"===v[1]}}else t=!/iPhone|iPad|iPod/.test(o)||/CriOS/.test(o)||/FxiOS/.test(o)||!0!==m&&!1!==m?{mobile:e.test(o),webkit:!0,webkitVersion:a,version:-1}:{name:Bn.SAFARI,version:-1,fullscreen:m,webview:!m,mobile:e.test(o),webkit:!0,webkitVersion:a}}}else r.msie||r.trident?(n=parseFloat(r.version),t={name:Bn.INTERNET_EXPLORER,versionStr:"".concat(n),version:n,msie:!0,mobile:!1}):r.edge?(n=parseFloat(r.version),t={name:Bn.EDGE,versionStr:"".concat(n),version:n,edge:!0}):t={name:"",versionStr:"",version:-1,mobile:!1};return t},Hn=function(){return void 0===Vn&&(Se(),Vn=pe.animationMode),Vn},qn={Gregorian:"Gregorian",Islamic:"Islamic",Japanese:"Japanese",Buddhist:"Buddhist",Persian:"Persian"},zn=function(e){function t(){return B(this,t),Y(this,z(t).apply(this,arguments))}return q(t,e),H(t,null,[{key:"isValid",value:function(e){return!!qn[e]}}]),t}(tt);zn.generataTypeAcessors(qn);var $n,Gn,Jn=function(){return void 0===Fn&&(Se(),Fn=pe.calendarType),zn.isValid(Fn)?Fn:zn.Gregorian},Yn={iw:"he",ji:"yi",in:"id",sh:"sr"},Xn=(($n=/\$([-a-z0-9A-Z._]+)(?::([^$]*))?\$/.exec("$cldr-rtl-locales:ar,fa,he$"))&&$n[2]?$n[2].split(/,/):null)||[],Kn=function(){var e,t=(Se(),pe.rtl);return null!==t?!!t:function(e){return e=e&&Yn[e]||e,Xn.indexOf(e)>=0}(_e()||((e=navigator.languages)&&e[0]||navigator.language||navigator.userLanguage||navigator.browserLanguage||te))},Zn=function(){return void 0===Gn&&(Se(),Gn=pe.formatSettings),Gn.firstDayOfWeek},Qn=new Map,er=new Map,tr=function(){var e=U(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!er.has("SAP-icons")){e.next=3;break}return e.next=3,er.get("SAP-icons");case 3:return e.abrupt("return",Array.from(Qn.keys()).map((function(e){return e.split(":")[1]})));case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();window.RenderScheduler=vt,window.isIE=function(){return Un.browser||(Un.browser=Wn(),Un.browser.BROWSER=Bn,Un.browser.name&&Object.keys(Bn).forEach((function(e){Bn[e]===Un.browser.name&&(Un.browser[e.toLowerCase()]=!0)}))),!!Un.browser.msie},window.registerThemeProperties=Ne,window["sap-ui-webcomponents-bundle"]={configuration:{getAnimationMode:Hn,getLanguage:_e,getTheme:Ge,setTheme:Je,getNoConflict:xt,setNoConflict:Ot,getCalendarType:Jn,getRTL:Kn,getFirstDayOfWeek:Zn},getIconNames:tr};var nr={getAnimationMode:Hn,getLanguage:_e,getTheme:Ge,setTheme:Je,getNoConflict:xt,setNoConflict:Ot,getCalendarType:Jn,getRTL:Kn,getFirstDayOfWeek:Zn};e.configuration=nr,e.getIconNames=tr}(this["sap-ui-webcomponents-bundle"]=this["sap-ui-webcomponents-bundle"]||{});
212
- //# sourceMappingURL=bundle.es5.js.map