@postnord/pn-marketweb-components 2.1.9 → 2.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (918) hide show
  1. package/cjs/{index-95e5b7f9.js → index-28bbc937.js} +1 -1
  2. package/cjs/{index-4199ff85.js → index-e3e27c79.js} +278 -808
  3. package/cjs/loader.cjs.js +3 -4
  4. package/cjs/pn-bonus-progressbar-level.cjs.entry.js +2 -2
  5. package/cjs/pn-bonus-progressbar.cjs.entry.js +2 -2
  6. package/cjs/pn-breakpoints.cjs.entry.js +2 -2
  7. package/cjs/pn-chart.cjs.entry.js +2 -3
  8. package/cjs/pn-charts-card.cjs.entry.js +2 -9
  9. package/cjs/pn-choice-button.cjs.entry.js +2 -5
  10. package/cjs/pn-customernumber-selector-option.cjs.entry.js +2 -2
  11. package/cjs/pn-customernumber-selector.cjs.entry.js +2 -2
  12. package/cjs/pn-filter-checkbox.cjs.entry.js +2 -5
  13. package/cjs/pn-find-price-result.cjs.entry.js +4 -7
  14. package/cjs/{pn-find-price-store-e0d1e412.js → pn-find-price-store-a91ce3f6.js} +1 -1
  15. package/cjs/pn-find-price.cjs.entry.js +4 -4
  16. package/cjs/pn-find-service-and-price-result.cjs.entry.js +4 -4
  17. package/cjs/{pn-find-service-and-price-store-6e26630d.js → pn-find-service-and-price-store-16a7936c.js} +1 -1
  18. package/cjs/pn-find-service-and-price.cjs.entry.js +4 -4
  19. package/cjs/pn-language-selector_9.cjs.entry.js +42 -18
  20. package/cjs/pn-line-shape.cjs.entry.js +2 -2
  21. package/cjs/pn-mainnav-link.cjs.entry.js +10 -4
  22. package/cjs/{pn-mainnav-store-8c337865.js → pn-mainnav-store-61a75ea0.js} +1 -1
  23. package/cjs/pn-market-web-components.cjs.js +3 -7
  24. package/cjs/pn-marketweb-input.cjs.entry.js +7 -2
  25. package/cjs/pn-marketweb-search.cjs.entry.js +6 -2
  26. package/cjs/pn-marketweb-sitefooter.cjs.entry.js +15 -10
  27. package/cjs/pn-marketweb-siteheader-login-button_5.cjs.entry.js +78 -70
  28. package/cjs/pn-marketweb-siteheader-login-linklist.cjs.entry.js +4 -4
  29. package/cjs/{pn-marketweb-siteheader-store-5ced6902.js → pn-marketweb-siteheader-store-e29ad918.js} +1 -1
  30. package/cjs/pn-marketweb-siteheader.cjs.entry.js +38 -10
  31. package/cjs/pn-parcel-tracker.cjs.entry.js +2 -2
  32. package/cjs/pn-pex-pricefinder.cjs.entry.js +5 -2
  33. package/cjs/pn-product-card_3.cjs.entry.js +4 -15
  34. package/cjs/pn-product-pricelist-result.cjs.entry.js +3 -3
  35. package/cjs/pn-product-pricelist.cjs.entry.js +4 -4
  36. package/cjs/pn-product-tile-info_2.cjs.entry.js +3 -10
  37. package/cjs/pn-product-tile.cjs.entry.js +2 -2
  38. package/cjs/pn-profile-modal-customernumber.cjs.entry.js +2 -2
  39. package/cjs/pn-profile-modal-profile.cjs.entry.js +4 -4
  40. package/cjs/{pn-profile-modal-store-947b08ae.js → pn-profile-modal-store-6117e304.js} +1 -1
  41. package/cjs/pn-profile-modal-type.cjs.entry.js +4 -4
  42. package/cjs/pn-profile-modal.cjs.entry.js +4 -4
  43. package/cjs/pn-profile-selector-option.cjs.entry.js +2 -2
  44. package/cjs/pn-profile-selector.cjs.entry.js +5 -5
  45. package/cjs/pn-proxio-findprice-result.cjs.entry.js +2 -5
  46. package/cjs/pn-proxio-findprice.cjs.entry.js +4 -4
  47. package/cjs/pn-proxio-pricegroup.cjs.entry.js +5 -3
  48. package/cjs/pn-proxio-productcard_4.cjs.entry.js +5 -12
  49. package/cjs/pn-quick-cta.cjs.entry.js +2 -2
  50. package/cjs/pn-quote-card.cjs.entry.js +3 -2
  51. package/cjs/pn-share-item.cjs.entry.js +22 -0
  52. package/cjs/pn-share.cjs.entry.js +64 -0
  53. package/cjs/pn-sidenav-level.cjs.entry.js +4 -4
  54. package/cjs/pn-sidenav-link.cjs.entry.js +12 -4
  55. package/cjs/{pn-sidenav-store-d2389306.js → pn-sidenav-store-d9bd9e00.js} +1 -1
  56. package/cjs/pn-sidenav-togglebutton.cjs.entry.js +5 -4
  57. package/cjs/pn-sidenav.cjs.entry.js +6 -4
  58. package/cjs/pn-site-footer_2.cjs.entry.js +4 -3
  59. package/cjs/pn-spotlight.cjs.entry.js +2 -2
  60. package/cjs/pn-stats-info-data.cjs.entry.js +8 -8
  61. package/cjs/pn-stats-info.cjs.entry.js +2 -2
  62. package/cjs/pn-teaser-card.cjs.entry.js +4 -3
  63. package/cjs/pn-titletag.cjs.entry.js +4 -2
  64. package/collection/collection-manifest.json +4 -2
  65. package/collection/components/cards/pn-quote-card/pn-line-shape/pn-line-shape.js +11 -12
  66. package/collection/components/cards/pn-quote-card/pn-quote-card.js +79 -68
  67. package/collection/components/cards/pn-teaser-card/pn-teaser-card.js +113 -109
  68. package/collection/components/charts/pn-chart/pn-chart.js +74 -83
  69. package/collection/components/charts/pn-charts-card/pn-charts-card.js +146 -142
  70. package/collection/components/cta/pn-parcel-tracker/pn-parcel-tracker.js +128 -133
  71. package/collection/components/cta/pn-quick-cta/pn-quick-cta.js +49 -51
  72. package/collection/components/cta/pn-share/pn-share-item.css +42 -0
  73. package/collection/components/cta/pn-share/pn-share-item.js +61 -0
  74. package/collection/components/cta/pn-share/pn-share.css +23 -0
  75. package/collection/components/cta/pn-share/pn-share.js +91 -0
  76. package/collection/components/cta/pn-share/pn-share.stories.js +22 -0
  77. package/collection/components/cta/pn-share/translations.js +17 -0
  78. package/collection/components/cta/pn-spotlight/pn-spotlight.js +51 -51
  79. package/collection/components/data-visualization/pn-stats-info/pn-stats-info-data/pn-stats-info-data.js +115 -120
  80. package/collection/components/data-visualization/pn-stats-info/pn-stats-info.js +79 -82
  81. package/collection/components/input/pn-bonus-progressbar/pn-bonus-progressbar-level.js +87 -93
  82. package/collection/components/input/pn-bonus-progressbar/pn-bonus-progressbar.js +195 -193
  83. package/collection/components/input/pn-choice-button/pn-choice-button.js +137 -145
  84. package/collection/components/input/pn-filter-checkbox/pn-filter-checkbox.js +122 -128
  85. package/collection/components/input/pn-marketweb-input/pn-marketweb-input.js +355 -347
  86. package/collection/components/input/pn-marketweb-search/pn-marketweb-search.js +260 -258
  87. package/collection/components/layout-components/pn-marketweb-sitefooter/pn-marketweb-sitefooter-types.js +3 -0
  88. package/collection/components/layout-components/pn-marketweb-sitefooter/pn-marketweb-sitefooter.js +221 -201
  89. package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-login-button.js +29 -34
  90. package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-login-linklist.js +101 -101
  91. package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-login-links.js +105 -110
  92. package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-login-mypage-button.js +45 -51
  93. package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-login-profileselection.js +245 -228
  94. package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-login.js +256 -259
  95. package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-search.js +172 -170
  96. package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-unified-login.js +75 -84
  97. package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader.js +560 -509
  98. package/collection/components/minor/pn-titletag/pn-titletag.js +49 -51
  99. package/collection/components/navigation/pn-language-selector/pn-language-selector-option.js +123 -119
  100. package/collection/components/navigation/pn-language-selector/pn-language-selector.js +64 -71
  101. package/collection/components/navigation/pn-mainnav/pn-mainnav-level.js +58 -58
  102. package/collection/components/navigation/pn-mainnav/pn-mainnav-link.js +97 -92
  103. package/collection/components/navigation/pn-mainnav/pn-mainnav-list.js +33 -39
  104. package/collection/components/navigation/pn-mainnav/pn-mainnav.js +183 -182
  105. package/collection/components/navigation/pn-sidenav/pn-sidenav-level.js +22 -29
  106. package/collection/components/navigation/pn-sidenav/pn-sidenav-link.js +134 -128
  107. package/collection/components/navigation/pn-sidenav/pn-sidenav-togglebutton.js +34 -39
  108. package/collection/components/navigation/pn-sidenav/pn-sidenav.js +66 -71
  109. package/collection/components/navigation/pn-site-footer/pn-site-footer-col.js +29 -34
  110. package/collection/components/navigation/pn-site-footer/pn-site-footer.js +75 -68
  111. package/collection/components/navigation/pn-site-selector/pn-site-selector-item.js +89 -85
  112. package/collection/components/navigation/pn-site-selector/pn-site-selector.js +73 -73
  113. package/collection/components/profile/pn-customernumber-selector/pn-customernumber-selector-option.js +67 -68
  114. package/collection/components/profile/pn-customernumber-selector/pn-customernumber-selector.js +90 -90
  115. package/collection/components/profile/pn-profile-modal/pn-profile-modal-customernumber.js +79 -85
  116. package/collection/components/profile/pn-profile-modal/pn-profile-modal-profile.js +188 -182
  117. package/collection/components/profile/pn-profile-modal/pn-profile-modal-type.js +84 -91
  118. package/collection/components/profile/pn-profile-modal/pn-profile-modal.js +115 -116
  119. package/collection/components/profile/pn-profile-selector/pn-profile-selector-option.js +67 -68
  120. package/collection/components/profile/pn-profile-selector/pn-profile-selector.js +76 -78
  121. package/collection/components/utilities/pn-breakpoints/pn-breakpoints.js +42 -48
  122. package/collection/components/widgets/pn-find-price/pn-find-price-result.js +179 -163
  123. package/collection/components/widgets/pn-find-price/pn-find-price.js +113 -99
  124. package/collection/components/widgets/pn-find-service-and-price/pn-find-service-and-price-result.js +67 -66
  125. package/collection/components/widgets/pn-find-service-and-price/pn-find-service-and-price.js +148 -133
  126. package/collection/components/widgets/pn-pex-pricefinder/pn-pex-pricefinder.js +102 -87
  127. package/collection/components/widgets/pn-product-card/pn-product-card-info.js +94 -92
  128. package/collection/components/widgets/pn-product-card/pn-product-card-price.js +131 -138
  129. package/collection/components/widgets/pn-product-card/pn-product-card.js +21 -12
  130. package/collection/components/widgets/pn-product-pricelist/pn-product-pricelist-result.js +108 -101
  131. package/collection/components/widgets/pn-product-pricelist/pn-product-pricelist.js +140 -137
  132. package/collection/components/widgets/pn-product-tile/pn-product-tile-info.js +62 -70
  133. package/collection/components/widgets/pn-product-tile/pn-product-tile-price.js +83 -87
  134. package/collection/components/widgets/pn-product-tile/pn-product-tile.js +16 -12
  135. package/collection/components/widgets/pn-proxio-findprice/pn-proxio-findprice-result.js +188 -187
  136. package/collection/components/widgets/pn-proxio-findprice/pn-proxio-findprice.js +131 -117
  137. package/collection/components/widgets/pn-proxio-pricegroup/pn-proxio-pricegroup.js +145 -130
  138. package/collection/components/widgets/pn-proxio-productcard/pn-proxio-productcard-description.js +82 -87
  139. package/collection/components/widgets/pn-proxio-productcard/pn-proxio-productcard-information.js +57 -55
  140. package/collection/components/widgets/pn-proxio-productcard/pn-proxio-productcard-pricelink.js +61 -70
  141. package/collection/components/widgets/pn-proxio-productcard/pn-proxio-productcard.js +20 -12
  142. package/custom-elements/index.d.ts +471 -0
  143. package/custom-elements/index.js +30034 -0
  144. package/esm/{index-c118284d.js → index-5397620b.js} +279 -808
  145. package/esm/{index-7f77b0ba.js → index-7b21ecff.js} +1 -1
  146. package/esm/loader.js +3 -4
  147. package/esm/pn-bonus-progressbar-level.entry.js +2 -2
  148. package/esm/pn-bonus-progressbar.entry.js +2 -2
  149. package/esm/pn-breakpoints.entry.js +2 -2
  150. package/esm/pn-chart.entry.js +2 -3
  151. package/esm/pn-charts-card.entry.js +2 -9
  152. package/esm/pn-choice-button.entry.js +2 -5
  153. package/esm/pn-customernumber-selector-option.entry.js +2 -2
  154. package/esm/pn-customernumber-selector.entry.js +2 -2
  155. package/esm/pn-filter-checkbox.entry.js +2 -5
  156. package/esm/pn-find-price-result.entry.js +4 -7
  157. package/esm/{pn-find-price-store-e13b6651.js → pn-find-price-store-bde5071d.js} +1 -1
  158. package/esm/pn-find-price.entry.js +4 -4
  159. package/esm/pn-find-service-and-price-result.entry.js +4 -4
  160. package/esm/{pn-find-service-and-price-store-f09ca219.js → pn-find-service-and-price-store-65df46a0.js} +1 -1
  161. package/esm/pn-find-service-and-price.entry.js +4 -4
  162. package/esm/pn-language-selector_9.entry.js +42 -18
  163. package/esm/pn-line-shape.entry.js +2 -2
  164. package/esm/pn-mainnav-link.entry.js +10 -4
  165. package/{components/pn-mainnav-store.js → esm/pn-mainnav-store-28571e54.js} +1 -1
  166. package/esm/pn-market-web-components.js +3 -4
  167. package/esm/pn-marketweb-input.entry.js +7 -2
  168. package/esm/pn-marketweb-search.entry.js +6 -2
  169. package/esm/pn-marketweb-sitefooter.entry.js +15 -10
  170. package/esm/pn-marketweb-siteheader-login-button_5.entry.js +78 -70
  171. package/esm/pn-marketweb-siteheader-login-linklist.entry.js +4 -4
  172. package/esm/{pn-marketweb-siteheader-store-9df5290d.js → pn-marketweb-siteheader-store-cd0a1dab.js} +1 -1
  173. package/esm/pn-marketweb-siteheader.entry.js +38 -10
  174. package/esm/pn-parcel-tracker.entry.js +2 -2
  175. package/esm/pn-pex-pricefinder.entry.js +5 -2
  176. package/esm/pn-product-card_3.entry.js +4 -15
  177. package/esm/pn-product-pricelist-result.entry.js +3 -3
  178. package/esm/pn-product-pricelist.entry.js +4 -4
  179. package/esm/pn-product-tile-info_2.entry.js +3 -10
  180. package/esm/pn-product-tile.entry.js +2 -2
  181. package/esm/pn-profile-modal-customernumber.entry.js +2 -2
  182. package/esm/pn-profile-modal-profile.entry.js +4 -4
  183. package/{components/pn-profile-modal-store.js → esm/pn-profile-modal-store-ae9e0d5a.js} +1 -1
  184. package/esm/pn-profile-modal-type.entry.js +4 -4
  185. package/esm/pn-profile-modal.entry.js +4 -4
  186. package/esm/pn-profile-selector-option.entry.js +2 -2
  187. package/esm/pn-profile-selector.entry.js +5 -5
  188. package/esm/pn-proxio-findprice-result.entry.js +2 -5
  189. package/esm/pn-proxio-findprice.entry.js +4 -4
  190. package/esm/pn-proxio-pricegroup.entry.js +5 -3
  191. package/esm/pn-proxio-productcard_4.entry.js +5 -12
  192. package/esm/pn-quick-cta.entry.js +2 -2
  193. package/esm/pn-quote-card.entry.js +3 -2
  194. package/esm/pn-share-item.entry.js +18 -0
  195. package/esm/pn-share.entry.js +60 -0
  196. package/esm/pn-sidenav-level.entry.js +4 -4
  197. package/esm/pn-sidenav-link.entry.js +12 -4
  198. package/{components/pn-sidenav-store.js → esm/pn-sidenav-store-50b186d6.js} +1 -1
  199. package/esm/pn-sidenav-togglebutton.entry.js +5 -4
  200. package/esm/pn-sidenav.entry.js +6 -4
  201. package/esm/pn-site-footer_2.entry.js +4 -3
  202. package/esm/pn-spotlight.entry.js +2 -2
  203. package/esm/pn-stats-info-data.entry.js +8 -8
  204. package/esm/pn-stats-info.entry.js +2 -2
  205. package/esm/pn-teaser-card.entry.js +4 -3
  206. package/esm/pn-titletag.entry.js +4 -2
  207. package/esm/polyfills/css-shim.js +1 -1
  208. package/esm-es5/MarketWebContextService-872043cc.js +1 -1
  209. package/esm-es5/convert-f6377d13.js +1 -1
  210. package/esm-es5/index-5397620b.js +1 -0
  211. package/esm-es5/{index-7f77b0ba.js → index-7b21ecff.js} +1 -1
  212. package/esm-es5/loader.js +1 -1
  213. package/esm-es5/pn-bonus-progressbar-level.entry.js +1 -1
  214. package/esm-es5/pn-bonus-progressbar.entry.js +1 -1
  215. package/esm-es5/pn-breakpoints.entry.js +1 -1
  216. package/esm-es5/pn-chart.entry.js +2 -2
  217. package/esm-es5/pn-charts-card.entry.js +1 -1
  218. package/esm-es5/pn-choice-button.entry.js +1 -1
  219. package/esm-es5/pn-customernumber-selector-option.entry.js +1 -1
  220. package/esm-es5/pn-customernumber-selector.entry.js +1 -1
  221. package/esm-es5/pn-filter-checkbox.entry.js +1 -1
  222. package/esm-es5/pn-find-price-result.entry.js +1 -1
  223. package/esm-es5/{pn-find-price-store-e13b6651.js → pn-find-price-store-bde5071d.js} +1 -1
  224. package/esm-es5/pn-find-price.entry.js +1 -1
  225. package/esm-es5/pn-find-service-and-price-result.entry.js +1 -1
  226. package/esm-es5/{pn-find-service-and-price-store-f09ca219.js → pn-find-service-and-price-store-65df46a0.js} +1 -1
  227. package/esm-es5/pn-find-service-and-price.entry.js +1 -1
  228. package/esm-es5/pn-language-selector_9.entry.js +1 -1
  229. package/esm-es5/pn-line-shape.entry.js +1 -1
  230. package/esm-es5/pn-mainnav-link.entry.js +1 -1
  231. package/esm-es5/{pn-mainnav-store-5d91f523.js → pn-mainnav-store-28571e54.js} +1 -1
  232. package/esm-es5/pn-market-web-components.js +1 -1
  233. package/esm-es5/pn-marketweb-input.entry.js +1 -1
  234. package/esm-es5/pn-marketweb-search.entry.js +1 -1
  235. package/esm-es5/pn-marketweb-sitefooter.entry.js +1 -1
  236. package/esm-es5/pn-marketweb-siteheader-login-button_5.entry.js +1 -1
  237. package/esm-es5/pn-marketweb-siteheader-login-linklist.entry.js +1 -1
  238. package/esm-es5/pn-marketweb-siteheader-store-cd0a1dab.js +1 -0
  239. package/esm-es5/pn-marketweb-siteheader.entry.js +1 -1
  240. package/esm-es5/pn-parcel-tracker.entry.js +1 -1
  241. package/esm-es5/pn-pex-pricefinder.entry.js +1 -1
  242. package/esm-es5/pn-product-card_3.entry.js +1 -1
  243. package/esm-es5/pn-product-pricelist-result.entry.js +1 -1
  244. package/esm-es5/pn-product-pricelist.entry.js +1 -1
  245. package/esm-es5/pn-product-tile-info_2.entry.js +1 -1
  246. package/esm-es5/pn-product-tile.entry.js +1 -1
  247. package/esm-es5/pn-profile-modal-customernumber.entry.js +1 -1
  248. package/esm-es5/pn-profile-modal-profile.entry.js +1 -1
  249. package/esm-es5/{pn-profile-modal-store-81f53310.js → pn-profile-modal-store-ae9e0d5a.js} +1 -1
  250. package/esm-es5/pn-profile-modal-type.entry.js +1 -1
  251. package/esm-es5/pn-profile-modal.entry.js +1 -1
  252. package/esm-es5/pn-profile-selector-option.entry.js +1 -1
  253. package/esm-es5/pn-profile-selector.entry.js +1 -1
  254. package/esm-es5/pn-proxio-findprice-result.entry.js +1 -1
  255. package/esm-es5/pn-proxio-findprice.entry.js +1 -1
  256. package/esm-es5/pn-proxio-pricegroup.entry.js +1 -1
  257. package/esm-es5/pn-proxio-productcard_4.entry.js +1 -1
  258. package/esm-es5/pn-quick-cta.entry.js +1 -1
  259. package/esm-es5/pn-quote-card.entry.js +1 -1
  260. package/esm-es5/pn-share-item.entry.js +1 -0
  261. package/esm-es5/pn-share.entry.js +1 -0
  262. package/esm-es5/pn-sidenav-level.entry.js +1 -1
  263. package/esm-es5/pn-sidenav-link.entry.js +1 -1
  264. package/esm-es5/{pn-sidenav-store-94be19c8.js → pn-sidenav-store-50b186d6.js} +1 -1
  265. package/esm-es5/pn-sidenav-togglebutton.entry.js +1 -1
  266. package/esm-es5/pn-sidenav.entry.js +1 -1
  267. package/esm-es5/pn-site-footer_2.entry.js +1 -1
  268. package/esm-es5/pn-spotlight.entry.js +1 -1
  269. package/esm-es5/pn-stats-info-data.entry.js +1 -1
  270. package/esm-es5/pn-stats-info.entry.js +1 -1
  271. package/esm-es5/pn-teaser-card.entry.js +1 -1
  272. package/esm-es5/pn-titletag.entry.js +1 -1
  273. package/package.json +5 -7
  274. package/pn-market-web-components/{p-6f1d6a1a.system.js → p-02ea55ad.system.js} +1 -1
  275. package/pn-market-web-components/p-0796f9b2.entry.js +1 -0
  276. package/pn-market-web-components/p-0862b4b6.entry.js +1 -0
  277. package/pn-market-web-components/p-086a72ca.system.entry.js +1 -0
  278. package/pn-market-web-components/{p-a1a58fe4.js → p-0cacf9fb.js} +1 -1
  279. package/pn-market-web-components/p-10eafcd7.entry.js +1 -0
  280. package/pn-market-web-components/{p-4bd540a4.system.entry.js → p-110e50b3.system.entry.js} +1 -1
  281. package/pn-market-web-components/{p-f7cb2ef9.system.entry.js → p-1151bf60.system.entry.js} +1 -1
  282. package/pn-market-web-components/p-138b1e76.entry.js +1 -0
  283. package/pn-market-web-components/{p-02632961.system.entry.js → p-13baed17.system.entry.js} +1 -1
  284. package/pn-market-web-components/p-15112837.entry.js +1 -0
  285. package/pn-market-web-components/p-16c4bc50.entry.js +1 -0
  286. package/pn-market-web-components/p-17c4004f.entry.js +1 -0
  287. package/pn-market-web-components/{p-0c46847e.system.entry.js → p-1c38553b.system.entry.js} +1 -1
  288. package/pn-market-web-components/p-1ca41ab1.entry.js +1 -0
  289. package/pn-market-web-components/{p-1fb4eae4.system.entry.js → p-1ce871c5.system.entry.js} +1 -1
  290. package/pn-market-web-components/p-21c01c47.entry.js +1 -0
  291. package/pn-market-web-components/p-227e1d46.entry.js +1 -0
  292. package/pn-market-web-components/p-2423d620.system.entry.js +1 -0
  293. package/pn-market-web-components/p-249964b5.entry.js +1 -0
  294. package/pn-market-web-components/p-25496649.system.entry.js +1 -0
  295. package/pn-market-web-components/{p-abfed655.system.entry.js → p-2718b89a.system.entry.js} +1 -1
  296. package/pn-market-web-components/{p-7d463116.system.entry.js → p-28c4b4d9.system.entry.js} +1 -1
  297. package/pn-market-web-components/{p-853e6559.system.entry.js → p-290d5824.system.entry.js} +1 -1
  298. package/pn-market-web-components/p-2a598ee8.entry.js +1 -0
  299. package/pn-market-web-components/p-2c7ba802.entry.js +1 -0
  300. package/pn-market-web-components/p-2da8e5e8.system.entry.js +1 -0
  301. package/pn-market-web-components/p-2e3bde56.entry.js +1 -0
  302. package/pn-market-web-components/p-31fd7a95.system.js +1 -1
  303. package/pn-market-web-components/p-35fcd76c.system.entry.js +1 -0
  304. package/pn-market-web-components/p-36654f2a.system.js +1 -0
  305. package/pn-market-web-components/{p-e4961116.system.entry.js → p-36a1b8e1.system.entry.js} +1 -1
  306. package/pn-market-web-components/{p-13d2d138.system.js → p-3738a2df.system.js} +1 -1
  307. package/pn-market-web-components/p-381b3ec0.entry.js +1 -0
  308. package/pn-market-web-components/p-381c034b.entry.js +1 -0
  309. package/pn-market-web-components/p-3969ec4d.entry.js +1 -0
  310. package/pn-market-web-components/{p-c576ac3e.system.entry.js → p-447ef543.system.entry.js} +1 -1
  311. package/pn-market-web-components/{p-8ca063a9.system.entry.js → p-450cbe76.system.entry.js} +1 -1
  312. package/pn-market-web-components/p-479b970a.entry.js +1 -0
  313. package/pn-market-web-components/p-499bb3ac.entry.js +1 -0
  314. package/pn-market-web-components/{p-589a9a4c.system.entry.js → p-4a03854b.system.entry.js} +1 -1
  315. package/pn-market-web-components/p-4a928837.entry.js +1 -0
  316. package/pn-market-web-components/p-4bef1bf3.entry.js +1 -0
  317. package/pn-market-web-components/{p-9f95b3c9.system.entry.js → p-4f67721e.system.entry.js} +1 -1
  318. package/pn-market-web-components/p-557328e3.system.entry.js +1 -0
  319. package/pn-market-web-components/{p-8fee0115.system.entry.js → p-58a57436.system.entry.js} +1 -1
  320. package/pn-market-web-components/p-58e8d7d5.js +1 -0
  321. package/pn-market-web-components/p-59be826b.system.entry.js +1 -0
  322. package/pn-market-web-components/p-61dbe832.entry.js +1 -0
  323. package/pn-market-web-components/{p-b890f3f9.system.entry.js → p-625fb7fb.system.entry.js} +1 -1
  324. package/pn-market-web-components/p-67380aa4.entry.js +1 -0
  325. package/pn-market-web-components/p-67887512.system.js +1 -0
  326. package/pn-market-web-components/{p-4d561de4.system.entry.js → p-7079df88.system.entry.js} +1 -1
  327. package/pn-market-web-components/p-715d1ef7.entry.js +1 -0
  328. package/pn-market-web-components/{p-5a506356.system.entry.js → p-723b9901.system.entry.js} +1 -1
  329. package/pn-market-web-components/{p-545a40a7.system.entry.js → p-74d35edf.system.entry.js} +1 -1
  330. package/pn-market-web-components/p-756b0a84.entry.js +1 -0
  331. package/pn-market-web-components/{p-6d050c3a.system.entry.js → p-7b9fb94f.system.entry.js} +1 -1
  332. package/pn-market-web-components/{p-5b5f4a52.system.entry.js → p-7cc57591.system.entry.js} +1 -1
  333. package/pn-market-web-components/p-7ce41d14.entry.js +1 -0
  334. package/pn-market-web-components/p-7fd8b012.entry.js +1 -0
  335. package/pn-market-web-components/{p-2145d5e0.system.entry.js → p-80dce81e.system.entry.js} +1 -1
  336. package/pn-market-web-components/{p-68324e6f.system.entry.js → p-8117b79e.system.entry.js} +1 -1
  337. package/pn-market-web-components/p-81d764a0.entry.js +1 -0
  338. package/pn-market-web-components/{p-d34c9be2.system.js → p-825b8fb8.system.js} +1 -1
  339. package/pn-market-web-components/p-84193b02.system.entry.js +1 -0
  340. package/pn-market-web-components/{p-c5727e83.js → p-84699999.js} +1 -1
  341. package/pn-market-web-components/{p-ecaad0c1.js → p-86f06e26.js} +1 -1
  342. package/pn-market-web-components/p-8766fa86.system.js +1 -1
  343. package/pn-market-web-components/p-88185835.entry.js +1 -0
  344. package/pn-market-web-components/p-885bc8d7.system.entry.js +1 -0
  345. package/pn-market-web-components/p-8afa354b.system.entry.js +1 -0
  346. package/pn-market-web-components/p-8b684578.entry.js +1 -0
  347. package/pn-market-web-components/p-8e146205.entry.js +1 -0
  348. package/pn-market-web-components/p-8e38c337.entry.js +1 -0
  349. package/pn-market-web-components/p-8e4d292f.entry.js +1 -0
  350. package/pn-market-web-components/p-8ef45246.entry.js +1 -0
  351. package/pn-market-web-components/p-9344cd23.js +1 -0
  352. package/pn-market-web-components/{p-e737c51d.system.entry.js → p-93cecc43.system.entry.js} +1 -1
  353. package/pn-market-web-components/{p-3a450371.system.js → p-94958580.system.js} +1 -1
  354. package/pn-market-web-components/p-951861fa.entry.js +1 -0
  355. package/pn-market-web-components/p-98a7ddd1.system.entry.js +1 -0
  356. package/pn-market-web-components/p-996d8a6a.entry.js +1 -0
  357. package/pn-market-web-components/p-9b855b11.entry.js +24 -0
  358. package/pn-market-web-components/{p-6a4ae9af.system.entry.js → p-9c3de760.system.entry.js} +1 -1
  359. package/pn-market-web-components/{p-8cefd900.system.entry.js → p-9edaf6b6.system.entry.js} +1 -1
  360. package/pn-market-web-components/p-a247058b.system.entry.js +1 -0
  361. package/pn-market-web-components/{p-6e43a937.system.entry.js → p-a275bffb.system.entry.js} +1 -1
  362. package/pn-market-web-components/p-a5171cb9.system.entry.js +1 -0
  363. package/pn-market-web-components/{p-396b254a.system.js → p-a5f75560.system.js} +1 -1
  364. package/pn-market-web-components/p-a7bb94a0.entry.js +1 -0
  365. package/pn-market-web-components/p-a921d3fd.system.entry.js +1 -0
  366. package/pn-market-web-components/{p-9010c32a.system.entry.js → p-aa271997.system.entry.js} +1 -1
  367. package/pn-market-web-components/{p-441249d9.system.js → p-add7d76c.system.js} +1 -1
  368. package/pn-market-web-components/{p-ca1f0abc.system.entry.js → p-af415c1a.system.entry.js} +1 -1
  369. package/pn-market-web-components/p-b3bf353f.entry.js +1 -0
  370. package/pn-market-web-components/p-b5fde443.entry.js +1 -0
  371. package/pn-market-web-components/{p-ffe18938.system.entry.js → p-b88337dd.system.entry.js} +1 -1
  372. package/pn-market-web-components/p-b9a84e67.entry.js +1 -0
  373. package/pn-market-web-components/p-bb626ab4.js +1 -0
  374. package/pn-market-web-components/p-bd22aaac.entry.js +1 -0
  375. package/pn-market-web-components/p-bfe239ca.js +1 -1
  376. package/pn-market-web-components/{p-5a41c1bb.system.entry.js → p-c62a91ba.system.entry.js} +1 -1
  377. package/pn-market-web-components/p-c714a790.entry.js +1 -0
  378. package/pn-market-web-components/{p-2e507907.system.entry.js → p-c9fb0f01.system.entry.js} +2 -2
  379. package/pn-market-web-components/p-d0155ddf.entry.js +1 -0
  380. package/pn-market-web-components/p-d57f4246.system.entry.js +1 -0
  381. package/pn-market-web-components/p-d7e3d918.entry.js +1 -0
  382. package/pn-market-web-components/{p-ad836c55.system.js → p-dbe032f7.system.js} +1 -1
  383. package/pn-market-web-components/p-e32dc098.entry.js +1 -0
  384. package/pn-market-web-components/p-e397e11b.entry.js +1 -0
  385. package/pn-market-web-components/{p-ef721555.system.entry.js → p-e6fa11ad.system.entry.js} +1 -1
  386. package/pn-market-web-components/p-e9576f26.entry.js +1 -0
  387. package/pn-market-web-components/p-e9fe5c54.entry.js +1 -0
  388. package/pn-market-web-components/p-ecdf2b69.system.entry.js +1 -0
  389. package/pn-market-web-components/p-ecf712bb.system.entry.js +1 -0
  390. package/pn-market-web-components/p-ee589138.entry.js +1 -0
  391. package/pn-market-web-components/{p-939b5792.system.entry.js → p-f312ff98.system.entry.js} +1 -1
  392. package/pn-market-web-components/{p-8666d14d.js → p-f58bde56.js} +1 -1
  393. package/pn-market-web-components/p-f61342c3.js +1 -0
  394. package/pn-market-web-components/{p-4b85fd2b.system.entry.js → p-f6ea7c38.system.entry.js} +1 -1
  395. package/pn-market-web-components/p-f774e2cc.entry.js +1 -0
  396. package/pn-market-web-components/{p-658f6ff7.system.entry.js → p-f782ce94.system.entry.js} +1 -1
  397. package/pn-market-web-components/{p-1d50340b.system.entry.js → p-fc1083d2.system.entry.js} +1 -1
  398. package/pn-market-web-components/p-fc974bca.entry.js +1 -0
  399. package/pn-market-web-components/p-fea72975.entry.js +1 -0
  400. package/pn-market-web-components/pn-market-web-components.esm.js +1 -1
  401. package/pn-market-web-components/pn-market-web-components.js +1 -2
  402. package/types/components/cta/pn-share/pn-share-item.d.ts +6 -0
  403. package/types/components/cta/pn-share/pn-share.d.ts +10 -0
  404. package/types/components/cta/pn-share/translations.d.ts +17 -0
  405. package/types/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-login-profileselection.d.ts +3 -2
  406. package/types/components.d.ts +55 -53
  407. package/types/stencil-public-runtime.d.ts +7 -79
  408. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/LICENSE.md +27 -0
  409. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/bin/stencil +57 -0
  410. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/cli/config-flags.d.ts +122 -0
  411. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/cli/index.cjs +2609 -0
  412. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/cli/index.d.ts +19 -0
  413. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/cli/index.js +2583 -0
  414. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/cli/package.json +14 -0
  415. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.d.ts +24 -0
  416. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.dom.d.ts +18505 -0
  417. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.dom.iterable.d.ts +341 -0
  418. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2015.collection.d.ts +150 -0
  419. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2015.core.d.ts +559 -0
  420. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2015.d.ts +30 -0
  421. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2015.generator.d.ts +79 -0
  422. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2015.iterable.d.ts +498 -0
  423. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2015.promise.d.ts +83 -0
  424. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2015.proxy.d.ts +130 -0
  425. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2015.reflect.d.ts +146 -0
  426. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2015.symbol.d.ts +48 -0
  427. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2015.symbol.wellknown.d.ts +324 -0
  428. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2016.array.include.d.ts +118 -0
  429. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2016.d.ts +22 -0
  430. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2016.full.d.ts +25 -0
  431. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2017.d.ts +26 -0
  432. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2017.full.d.ts +25 -0
  433. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2017.intl.d.ts +47 -0
  434. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2017.object.d.ts +51 -0
  435. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2017.sharedmemory.d.ts +137 -0
  436. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2017.string.d.ts +47 -0
  437. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2017.typedarrays.d.ts +55 -0
  438. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2018.asyncgenerator.d.ts +79 -0
  439. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2018.asynciterable.d.ts +45 -0
  440. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2018.d.ts +26 -0
  441. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2018.full.d.ts +25 -0
  442. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2018.intl.d.ts +73 -0
  443. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2018.promise.d.ts +32 -0
  444. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2018.regexp.d.ts +39 -0
  445. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2019.array.d.ts +85 -0
  446. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2019.d.ts +26 -0
  447. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2019.full.d.ts +25 -0
  448. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2019.intl.d.ts +25 -0
  449. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2019.object.d.ts +35 -0
  450. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2019.string.d.ts +39 -0
  451. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2019.symbol.d.ts +26 -0
  452. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2020.bigint.d.ts +730 -0
  453. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2020.d.ts +29 -0
  454. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2020.date.d.ts +44 -0
  455. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2020.full.d.ts +25 -0
  456. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2020.intl.d.ts +433 -0
  457. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2020.number.d.ts +30 -0
  458. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2020.promise.d.ts +49 -0
  459. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2020.sharedmemory.d.ts +99 -0
  460. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2020.string.d.ts +30 -0
  461. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2020.symbol.wellknown.d.ts +39 -0
  462. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2021.d.ts +25 -0
  463. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2021.full.d.ts +25 -0
  464. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2021.intl.d.ts +154 -0
  465. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2021.promise.d.ts +50 -0
  466. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2021.string.d.ts +35 -0
  467. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2021.weakref.d.ts +75 -0
  468. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2022.array.d.ts +123 -0
  469. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2022.d.ts +27 -0
  470. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2022.error.d.ts +75 -0
  471. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2022.full.d.ts +25 -0
  472. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2022.intl.d.ts +111 -0
  473. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2022.object.d.ts +28 -0
  474. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2022.sharedmemory.d.ts +27 -0
  475. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2022.string.d.ts +27 -0
  476. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es5.d.ts +4526 -0
  477. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es6.d.ts +25 -0
  478. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.esnext.d.ts +22 -0
  479. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.esnext.full.d.ts +25 -0
  480. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.esnext.intl.d.ts +30 -0
  481. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.esnext.promise.d.ts +43 -0
  482. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.esnext.string.d.ts +35 -0
  483. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.esnext.weakref.d.ts +75 -0
  484. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.scripthost.d.ts +327 -0
  485. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.webworker.d.ts +6192 -0
  486. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.webworker.importscripts.d.ts +26 -0
  487. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.webworker.iterable.d.ts +175 -0
  488. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/package.json +8 -0
  489. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/stencil.d.ts +73 -0
  490. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/stencil.js +70673 -0
  491. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/stencil.min.js +4 -0
  492. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/sys/in-memory-fs.d.ts +218 -0
  493. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/transpile.d.ts +32 -0
  494. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/dependencies.json +120 -0
  495. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/dev-server/client/app-error.d.ts +18 -0
  496. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/dev-server/client/events.d.ts +6 -0
  497. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/dev-server/client/hmr-components.d.ts +1 -0
  498. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/dev-server/client/hmr-external-styles.d.ts +1 -0
  499. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/dev-server/client/hmr-images.d.ts +1 -0
  500. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/dev-server/client/hmr-inline-styles.d.ts +1 -0
  501. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/dev-server/client/hmr-util.d.ts +9 -0
  502. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/dev-server/client/hmr-window.d.ts +10 -0
  503. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/dev-server/client/index.d.ts +6 -0
  504. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/dev-server/client/index.js +808 -0
  505. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/dev-server/client/logger.d.ts +5 -0
  506. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/dev-server/client/package.json +8 -0
  507. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/dev-server/client/progress.d.ts +3 -0
  508. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/dev-server/client/status.d.ts +4 -0
  509. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/dev-server/client/test/hmr-util.spec.d.ts +1 -0
  510. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/dev-server/client/test/status.spec.d.ts +1 -0
  511. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/dev-server/connector.html +6 -0
  512. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/dev-server/index.d.ts +3 -0
  513. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/dev-server/index.js +264 -0
  514. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/dev-server/open-in-editor-api.js +1 -0
  515. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/dev-server/package.json +8 -0
  516. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/dev-server/server-process.js +1799 -0
  517. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/dev-server/server-worker-thread.js +39 -0
  518. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/dev-server/static/favicon.ico +0 -0
  519. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/dev-server/templates/directory-index.html +132 -0
  520. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/dev-server/templates/initial-load.html +160 -0
  521. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/dev-server/visualstudio.vbs +82 -0
  522. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/dev-server/ws.js +1 -0
  523. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/dev-server/xdg-open +1066 -0
  524. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/app-data/index.cjs +92 -0
  525. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/app-data/index.d.ts +4 -0
  526. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/app-data/index.js +88 -0
  527. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/app-data/package.json +15 -0
  528. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/client/css-shim.js +4 -0
  529. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/client/dom.js +73 -0
  530. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/client/index.js +3371 -0
  531. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/client/package.json +8 -0
  532. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/client/patch-browser.js +142 -0
  533. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/client/patch-esm.js +23 -0
  534. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/client/polyfills/core-js.js +11 -0
  535. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/client/polyfills/css-shim.js +1 -0
  536. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/client/polyfills/dom.js +79 -0
  537. package/{loader/index.js → umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/client/polyfills/es5-html-element.js} +1 -4
  538. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/client/polyfills/index.js +34 -0
  539. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/client/polyfills/system.js +6 -0
  540. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/client/shadow-css.js +387 -0
  541. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/hydrate/index.js +1143 -0
  542. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/hydrate/package.json +7 -0
  543. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/hydrate/runner.d.ts +217 -0
  544. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/hydrate/runner.js +777 -0
  545. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/hydrate/shadow-css.js +143 -0
  546. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/index.d.ts +4 -0
  547. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/index.js +2 -0
  548. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/package.json +9 -0
  549. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/stencil-core/index.cjs +1 -0
  550. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/stencil-core/index.d.ts +51 -0
  551. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/stencil-core/index.js +16 -0
  552. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/stencil-ext-modules.d.ts +41 -0
  553. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/stencil-private.d.ts +2268 -0
  554. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/stencil-public-compiler.d.ts +2338 -0
  555. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/stencil-public-docs.d.ts +140 -0
  556. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/stencil-public-runtime.d.ts +1637 -0
  557. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/testing/index.js +1105 -0
  558. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/testing/package.json +7 -0
  559. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/testing/shadow-css.js +143 -0
  560. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/mock-doc/index.cjs +4858 -0
  561. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/mock-doc/index.d.ts +1020 -0
  562. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/mock-doc/index.js +4822 -0
  563. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/mock-doc/package.json +15 -0
  564. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/package.json +190 -0
  565. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/readme.md +99 -0
  566. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/screenshot/compare/assets/favicon.ico +0 -0
  567. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/screenshot/compare/assets/logo.png +0 -0
  568. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/screenshot/compare/build/app.css +1 -0
  569. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/screenshot/compare/build/app.esm.js +1 -0
  570. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/screenshot/compare/build/app.js +33 -0
  571. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/screenshot/compare/build/index.esm.js +0 -0
  572. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/screenshot/compare/build/p-081b0641.js +1 -0
  573. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/screenshot/compare/build/p-227a1e18.entry.js +1 -0
  574. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/screenshot/compare/build/p-2c298727.entry.js +1 -0
  575. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/screenshot/compare/build/p-5479268c.entry.js +1 -0
  576. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/screenshot/compare/build/p-573ec8a4.entry.js +1 -0
  577. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/screenshot/compare/build/p-6ba08604.entry.js +1 -0
  578. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/screenshot/compare/build/p-6bc63295.entry.js +1 -0
  579. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/screenshot/compare/build/p-7a3759fd.entry.js +1 -0
  580. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/screenshot/compare/build/p-7b4e3ba7.js +1 -0
  581. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/screenshot/compare/build/p-988eb362.css +1 -0
  582. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/screenshot/compare/build/p-9b6a9315.js +1 -0
  583. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/screenshot/compare/build/p-b4cc611c.entry.js +1 -0
  584. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/screenshot/compare/build/p-d1bf53f5.entry.js +1 -0
  585. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/screenshot/compare/build/p-e2efe0df.js +1 -0
  586. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/screenshot/compare/build/p-e8ca6d97.entry.js +1 -0
  587. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/screenshot/compare/build/p-ec2f13e0.entry.js +1 -0
  588. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/screenshot/compare/build/p-f0b99977.entry.js +1 -0
  589. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/screenshot/compare/build/p-f4745c2f.entry.js +1 -0
  590. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/screenshot/compare/build/p-fbbae598.js +1 -0
  591. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/screenshot/compare/host.config.json +15 -0
  592. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/screenshot/compare/index.html +1 -0
  593. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/screenshot/compare/manifest.json +13 -0
  594. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/screenshot/connector.js +2 -0
  595. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/screenshot/index.js +661 -0
  596. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/screenshot/local-connector.js +2 -0
  597. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/screenshot/package.json +15 -0
  598. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/screenshot/pixel-match.js +2807 -0
  599. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/sys/node/autoprefixer.js +8 -0
  600. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/sys/node/glob.js +1 -0
  601. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/sys/node/graceful-fs.js +1 -0
  602. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/sys/node/index.d.ts +22 -0
  603. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/sys/node/index.js +6121 -0
  604. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/sys/node/node-fetch.js +1 -0
  605. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/sys/node/package.json +8 -0
  606. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/sys/node/prompts.js +1 -0
  607. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/sys/node/worker.js +52 -0
  608. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/index.d.ts +12 -0
  609. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/index.js +4155 -0
  610. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/jest/jest-config.d.ts +16 -0
  611. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/jest/jest-environment.d.ts +15 -0
  612. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/jest/jest-preprocessor.d.ts +59 -0
  613. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/jest/jest-runner.d.ts +10 -0
  614. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/jest/jest-screenshot.d.ts +2 -0
  615. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/jest/jest-serializer.d.ts +4 -0
  616. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/jest/jest-setup-test-framework.d.ts +1 -0
  617. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/jest/test/jest-config.spec.d.ts +1 -0
  618. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/jest/test/jest-preprocessor.spec.d.ts +1 -0
  619. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/jest/test/jest-runner.spec.d.ts +1 -0
  620. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/jest/test/jest-serializer.spec.d.ts +1 -0
  621. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/jest-environment.js +3 -0
  622. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/jest-preprocessor.js +3 -0
  623. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/jest-preset.js +37 -0
  624. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/jest-runner.js +3 -0
  625. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/jest-setuptestframework.js +3 -0
  626. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/matchers/attributes.d.ts +14 -0
  627. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/matchers/class-list.d.ts +12 -0
  628. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/matchers/events.d.ts +21 -0
  629. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/matchers/html.d.ts +12 -0
  630. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/matchers/index.d.ts +23 -0
  631. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/matchers/screenshot.d.ts +5 -0
  632. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/matchers/text.d.ts +4 -0
  633. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/mock-fetch.d.ts +11 -0
  634. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/mocks.d.ts +56 -0
  635. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/package.json +8 -0
  636. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/puppeteer/index.d.ts +2 -0
  637. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/puppeteer/puppeteer-browser.d.ts +6 -0
  638. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/puppeteer/puppeteer-declarations.d.ts +429 -0
  639. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/puppeteer/puppeteer-element.d.ts +67 -0
  640. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/puppeteer/puppeteer-emulate.d.ts +2 -0
  641. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/puppeteer/puppeteer-events.d.ts +21 -0
  642. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/puppeteer/puppeteer-page.d.ts +2 -0
  643. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/puppeteer/puppeteer-screenshot.d.ts +4 -0
  644. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/reset-build-conditionals.d.ts +2 -0
  645. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/spec-page.d.ts +2 -0
  646. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/test/testing-utils.spec.d.ts +1 -0
  647. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/test-transpile.d.ts +2 -0
  648. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/testing-logger.d.ts +25 -0
  649. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/testing-sys.d.ts +6 -0
  650. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/testing-utils.d.ts +79 -0
  651. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/testing.d.ts +2 -0
  652. package/umd/pn-marketweb-init.js +1 -1
  653. package/umd/pn-marketweb-salesforce.js +2 -2
  654. package/components/MarketWebContextService.js +0 -316
  655. package/components/_commonjsHelpers.js +0 -32
  656. package/components/convert.js +0 -1823
  657. package/components/data.js +0 -37
  658. package/components/index.d.ts +0 -100
  659. package/components/index.js +0 -71
  660. package/components/index2.js +0 -187
  661. package/components/pn-bonus-progressbar-level.d.ts +0 -11
  662. package/components/pn-bonus-progressbar-level.js +0 -65
  663. package/components/pn-bonus-progressbar.d.ts +0 -11
  664. package/components/pn-bonus-progressbar.js +0 -128
  665. package/components/pn-breakpoints.d.ts +0 -11
  666. package/components/pn-breakpoints.js +0 -45
  667. package/components/pn-chart.d.ts +0 -11
  668. package/components/pn-chart.js +0 -22151
  669. package/components/pn-charts-card.d.ts +0 -11
  670. package/components/pn-charts-card.js +0 -51
  671. package/components/pn-choice-button.d.ts +0 -11
  672. package/components/pn-choice-button.js +0 -6
  673. package/components/pn-choice-button2.js +0 -61
  674. package/components/pn-customernumber-selector-option.d.ts +0 -11
  675. package/components/pn-customernumber-selector-option.js +0 -41
  676. package/components/pn-customernumber-selector.d.ts +0 -11
  677. package/components/pn-customernumber-selector.js +0 -77
  678. package/components/pn-filter-checkbox.d.ts +0 -11
  679. package/components/pn-filter-checkbox.js +0 -93
  680. package/components/pn-find-price-result.d.ts +0 -11
  681. package/components/pn-find-price-result.js +0 -6
  682. package/components/pn-find-price-result2.js +0 -192
  683. package/components/pn-find-price.d.ts +0 -11
  684. package/components/pn-find-price.js +0 -281
  685. package/components/pn-find-service-and-price-result.d.ts +0 -11
  686. package/components/pn-find-service-and-price-result.js +0 -6
  687. package/components/pn-find-service-and-price-result2.js +0 -96
  688. package/components/pn-find-service-and-price.d.ts +0 -11
  689. package/components/pn-find-service-and-price.js +0 -314
  690. package/components/pn-language-selector-option.d.ts +0 -11
  691. package/components/pn-language-selector-option.js +0 -6
  692. package/components/pn-language-selector-option2.js +0 -51
  693. package/components/pn-language-selector.d.ts +0 -11
  694. package/components/pn-language-selector.js +0 -6
  695. package/components/pn-language-selector2.js +0 -133
  696. package/components/pn-line-shape.d.ts +0 -11
  697. package/components/pn-line-shape.js +0 -35
  698. package/components/pn-mainnav-level.d.ts +0 -11
  699. package/components/pn-mainnav-level.js +0 -6
  700. package/components/pn-mainnav-level2.js +0 -117
  701. package/components/pn-mainnav-link.d.ts +0 -11
  702. package/components/pn-mainnav-link.js +0 -6
  703. package/components/pn-mainnav-link2.js +0 -57
  704. package/components/pn-mainnav-list.d.ts +0 -11
  705. package/components/pn-mainnav-list.js +0 -6
  706. package/components/pn-mainnav-list2.js +0 -39
  707. package/components/pn-mainnav.d.ts +0 -11
  708. package/components/pn-mainnav.js +0 -6
  709. package/components/pn-mainnav2.js +0 -120
  710. package/components/pn-marketweb-input.d.ts +0 -11
  711. package/components/pn-marketweb-input.js +0 -6
  712. package/components/pn-marketweb-input2.js +0 -102
  713. package/components/pn-marketweb-search.d.ts +0 -11
  714. package/components/pn-marketweb-search.js +0 -129
  715. package/components/pn-marketweb-sitefooter.d.ts +0 -11
  716. package/components/pn-marketweb-sitefooter.js +0 -335
  717. package/components/pn-marketweb-siteheader-login-button.d.ts +0 -11
  718. package/components/pn-marketweb-siteheader-login-button.js +0 -6
  719. package/components/pn-marketweb-siteheader-login-button2.js +0 -79
  720. package/components/pn-marketweb-siteheader-login-linklist.d.ts +0 -11
  721. package/components/pn-marketweb-siteheader-login-linklist.js +0 -6
  722. package/components/pn-marketweb-siteheader-login-linklist2.js +0 -105
  723. package/components/pn-marketweb-siteheader-login-links.d.ts +0 -11
  724. package/components/pn-marketweb-siteheader-login-links.js +0 -6
  725. package/components/pn-marketweb-siteheader-login-links2.js +0 -116
  726. package/components/pn-marketweb-siteheader-login-mypage-button.d.ts +0 -11
  727. package/components/pn-marketweb-siteheader-login-mypage-button.js +0 -6
  728. package/components/pn-marketweb-siteheader-login-mypage-button2.js +0 -36
  729. package/components/pn-marketweb-siteheader-login-profileselection.d.ts +0 -11
  730. package/components/pn-marketweb-siteheader-login-profileselection.js +0 -6
  731. package/components/pn-marketweb-siteheader-login-profileselection2.js +0 -234
  732. package/components/pn-marketweb-siteheader-login.d.ts +0 -11
  733. package/components/pn-marketweb-siteheader-login.js +0 -6
  734. package/components/pn-marketweb-siteheader-login2.js +0 -589
  735. package/components/pn-marketweb-siteheader-search.d.ts +0 -11
  736. package/components/pn-marketweb-siteheader-search.js +0 -6
  737. package/components/pn-marketweb-siteheader-search2.js +0 -131
  738. package/components/pn-marketweb-siteheader-unified-login.d.ts +0 -11
  739. package/components/pn-marketweb-siteheader-unified-login.js +0 -6
  740. package/components/pn-marketweb-siteheader-unified-login2.js +0 -52
  741. package/components/pn-marketweb-siteheader.d.ts +0 -11
  742. package/components/pn-marketweb-siteheader.js +0 -551
  743. package/components/pn-parcel-tracker.d.ts +0 -11
  744. package/components/pn-parcel-tracker.js +0 -58
  745. package/components/pn-pex-pricefinder.d.ts +0 -11
  746. package/components/pn-pex-pricefinder.js +0 -156
  747. package/components/pn-product-card-info.d.ts +0 -11
  748. package/components/pn-product-card-info.js +0 -6
  749. package/components/pn-product-card-info2.js +0 -45
  750. package/components/pn-product-card-price.d.ts +0 -11
  751. package/components/pn-product-card-price.js +0 -6
  752. package/components/pn-product-card-price2.js +0 -48
  753. package/components/pn-product-card.d.ts +0 -11
  754. package/components/pn-product-card.js +0 -6
  755. package/components/pn-product-card2.js +0 -30
  756. package/components/pn-product-pricelist-result.d.ts +0 -11
  757. package/components/pn-product-pricelist-result.js +0 -130
  758. package/components/pn-product-pricelist.d.ts +0 -11
  759. package/components/pn-product-pricelist.js +0 -259
  760. package/components/pn-product-tile-info.d.ts +0 -11
  761. package/components/pn-product-tile-info.js +0 -6
  762. package/components/pn-product-tile-info2.js +0 -38
  763. package/components/pn-product-tile-price.d.ts +0 -11
  764. package/components/pn-product-tile-price.js +0 -6
  765. package/components/pn-product-tile-price2.js +0 -42
  766. package/components/pn-product-tile.d.ts +0 -11
  767. package/components/pn-product-tile.js +0 -33
  768. package/components/pn-profile-modal-customernumber.d.ts +0 -11
  769. package/components/pn-profile-modal-customernumber.js +0 -46
  770. package/components/pn-profile-modal-profile.d.ts +0 -11
  771. package/components/pn-profile-modal-profile.js +0 -71
  772. package/components/pn-profile-modal-type.d.ts +0 -11
  773. package/components/pn-profile-modal-type.js +0 -56
  774. package/components/pn-profile-modal.d.ts +0 -11
  775. package/components/pn-profile-modal.js +0 -92
  776. package/components/pn-profile-selector-option.d.ts +0 -11
  777. package/components/pn-profile-selector-option.js +0 -41
  778. package/components/pn-profile-selector.d.ts +0 -11
  779. package/components/pn-profile-selector.js +0 -79
  780. package/components/pn-proxio-findprice-result.d.ts +0 -11
  781. package/components/pn-proxio-findprice-result.js +0 -6
  782. package/components/pn-proxio-findprice-result2.js +0 -122
  783. package/components/pn-proxio-findprice.d.ts +0 -11
  784. package/components/pn-proxio-findprice.js +0 -374
  785. package/components/pn-proxio-pricegroup.d.ts +0 -11
  786. package/components/pn-proxio-pricegroup.js +0 -194
  787. package/components/pn-proxio-productcard-description.d.ts +0 -11
  788. package/components/pn-proxio-productcard-description.js +0 -6
  789. package/components/pn-proxio-productcard-description2.js +0 -43
  790. package/components/pn-proxio-productcard-information.d.ts +0 -11
  791. package/components/pn-proxio-productcard-information.js +0 -6
  792. package/components/pn-proxio-productcard-information2.js +0 -37
  793. package/components/pn-proxio-productcard-pricelink.d.ts +0 -11
  794. package/components/pn-proxio-productcard-pricelink.js +0 -6
  795. package/components/pn-proxio-productcard-pricelink2.js +0 -38
  796. package/components/pn-proxio-productcard.d.ts +0 -11
  797. package/components/pn-proxio-productcard.js +0 -6
  798. package/components/pn-proxio-productcard2.js +0 -30
  799. package/components/pn-quick-cta.d.ts +0 -11
  800. package/components/pn-quick-cta.js +0 -39
  801. package/components/pn-quote-card.d.ts +0 -11
  802. package/components/pn-quote-card.js +0 -41
  803. package/components/pn-sidenav-level.d.ts +0 -11
  804. package/components/pn-sidenav-level.js +0 -84
  805. package/components/pn-sidenav-link.d.ts +0 -11
  806. package/components/pn-sidenav-link.js +0 -87
  807. package/components/pn-sidenav-togglebutton.d.ts +0 -11
  808. package/components/pn-sidenav-togglebutton.js +0 -45
  809. package/components/pn-sidenav.d.ts +0 -11
  810. package/components/pn-sidenav.js +0 -95
  811. package/components/pn-site-footer-col.d.ts +0 -11
  812. package/components/pn-site-footer-col.js +0 -6
  813. package/components/pn-site-footer-col2.js +0 -33
  814. package/components/pn-site-footer.d.ts +0 -11
  815. package/components/pn-site-footer.js +0 -6
  816. package/components/pn-site-footer2.js +0 -38
  817. package/components/pn-site-selector-item.d.ts +0 -11
  818. package/components/pn-site-selector-item.js +0 -6
  819. package/components/pn-site-selector-item2.js +0 -39
  820. package/components/pn-site-selector.d.ts +0 -11
  821. package/components/pn-site-selector.js +0 -6
  822. package/components/pn-site-selector2.js +0 -69
  823. package/components/pn-spotlight.d.ts +0 -11
  824. package/components/pn-spotlight.js +0 -39
  825. package/components/pn-stats-info-data.d.ts +0 -11
  826. package/components/pn-stats-info-data.js +0 -6
  827. package/components/pn-stats-info-data2.js +0 -157
  828. package/components/pn-stats-info.d.ts +0 -11
  829. package/components/pn-stats-info.js +0 -59
  830. package/components/pn-teaser-card.d.ts +0 -11
  831. package/components/pn-teaser-card.js +0 -56
  832. package/components/pn-titletag.d.ts +0 -11
  833. package/components/pn-titletag.js +0 -6
  834. package/components/pn-titletag2.js +0 -36
  835. package/components/translations.js +0 -19
  836. package/esm/pn-mainnav-store-5d91f523.js +0 -17
  837. package/esm/pn-profile-modal-store-81f53310.js +0 -15
  838. package/esm/pn-sidenav-store-94be19c8.js +0 -14
  839. package/esm-es5/index-c118284d.js +0 -1
  840. package/esm-es5/pn-marketweb-siteheader-store-9df5290d.js +0 -1
  841. package/loader/cdn.js +0 -3
  842. package/loader/index.cjs.js +0 -3
  843. package/loader/index.d.ts +0 -21
  844. package/loader/index.es2017.js +0 -3
  845. package/loader/package.json +0 -11
  846. package/pn-market-web-components/p-0f1115aa.entry.js +0 -1
  847. package/pn-market-web-components/p-0fbcacf3.system.entry.js +0 -1
  848. package/pn-market-web-components/p-1545fb34.entry.js +0 -1
  849. package/pn-market-web-components/p-156fedd7.entry.js +0 -1
  850. package/pn-market-web-components/p-15e680a8.entry.js +0 -1
  851. package/pn-market-web-components/p-1646c170.system.entry.js +0 -1
  852. package/pn-market-web-components/p-17fb8d9e.entry.js +0 -1
  853. package/pn-market-web-components/p-18abec91.entry.js +0 -1
  854. package/pn-market-web-components/p-1a9b2a0e.system.entry.js +0 -1
  855. package/pn-market-web-components/p-1c382898.entry.js +0 -1
  856. package/pn-market-web-components/p-247cd393.entry.js +0 -1
  857. package/pn-market-web-components/p-34c0b146.entry.js +0 -1
  858. package/pn-market-web-components/p-37d26cef.entry.js +0 -1
  859. package/pn-market-web-components/p-38f135fd.entry.js +0 -1
  860. package/pn-market-web-components/p-3f37d2e3.entry.js +0 -1
  861. package/pn-market-web-components/p-4410d66d.system.entry.js +0 -1
  862. package/pn-market-web-components/p-44c05fba.entry.js +0 -1
  863. package/pn-market-web-components/p-44f58f15.js +0 -1
  864. package/pn-market-web-components/p-47d717a3.entry.js +0 -1
  865. package/pn-market-web-components/p-48c74c53.entry.js +0 -1
  866. package/pn-market-web-components/p-498e7738.system.entry.js +0 -1
  867. package/pn-market-web-components/p-49f60496.entry.js +0 -1
  868. package/pn-market-web-components/p-4ef54288.entry.js +0 -1
  869. package/pn-market-web-components/p-507f8886.entry.js +0 -1
  870. package/pn-market-web-components/p-5a6761da.js +0 -1
  871. package/pn-market-web-components/p-5e768b73.entry.js +0 -1
  872. package/pn-market-web-components/p-6b5ff47f.entry.js +0 -1
  873. package/pn-market-web-components/p-73ee3141.entry.js +0 -1
  874. package/pn-market-web-components/p-773b59c0.entry.js +0 -24
  875. package/pn-market-web-components/p-7c1b31e8.js +0 -2
  876. package/pn-market-web-components/p-7d992089.entry.js +0 -1
  877. package/pn-market-web-components/p-7dff99ed.entry.js +0 -1
  878. package/pn-market-web-components/p-8079dfd5.system.entry.js +0 -1
  879. package/pn-market-web-components/p-82db879c.entry.js +0 -1
  880. package/pn-market-web-components/p-833bab34.entry.js +0 -1
  881. package/pn-market-web-components/p-85513296.entry.js +0 -1
  882. package/pn-market-web-components/p-8d4dfd26.entry.js +0 -1
  883. package/pn-market-web-components/p-8f0a682f.entry.js +0 -1
  884. package/pn-market-web-components/p-8f32fa2b.system.entry.js +0 -1
  885. package/pn-market-web-components/p-8fe65c6a.entry.js +0 -1
  886. package/pn-market-web-components/p-924ca115.entry.js +0 -1
  887. package/pn-market-web-components/p-9407ee64.system.entry.js +0 -1
  888. package/pn-market-web-components/p-9429ca78.entry.js +0 -1
  889. package/pn-market-web-components/p-9826ba22.system.entry.js +0 -1
  890. package/pn-market-web-components/p-9a1c267d.entry.js +0 -1
  891. package/pn-market-web-components/p-a5faec68.system.js +0 -2
  892. package/pn-market-web-components/p-a799fee1.entry.js +0 -1
  893. package/pn-market-web-components/p-ac62dc33.entry.js +0 -1
  894. package/pn-market-web-components/p-ad1f57dc.entry.js +0 -1
  895. package/pn-market-web-components/p-b0102ff6.entry.js +0 -1
  896. package/pn-market-web-components/p-b5587c0d.entry.js +0 -1
  897. package/pn-market-web-components/p-beefd9f7.entry.js +0 -1
  898. package/pn-market-web-components/p-c0db1ffd.js +0 -1
  899. package/pn-market-web-components/p-c1d9a064.entry.js +0 -1
  900. package/pn-market-web-components/p-c668f453.entry.js +0 -1
  901. package/pn-market-web-components/p-c7e8ab14.entry.js +0 -1
  902. package/pn-market-web-components/p-c9742318.entry.js +0 -1
  903. package/pn-market-web-components/p-cd6b402e.system.entry.js +0 -1
  904. package/pn-market-web-components/p-d295ef71.system.js +0 -1
  905. package/pn-market-web-components/p-d5ae9797.entry.js +0 -1
  906. package/pn-market-web-components/p-d5c7420f.system.entry.js +0 -1
  907. package/pn-market-web-components/p-d6ee168b.system.entry.js +0 -1
  908. package/pn-market-web-components/p-d70e685c.entry.js +0 -1
  909. package/pn-market-web-components/p-dbd7837e.entry.js +0 -1
  910. package/pn-market-web-components/p-dc598ef8.entry.js +0 -1
  911. package/pn-market-web-components/p-e0e45eb0.system.entry.js +0 -1
  912. package/pn-market-web-components/p-e1513762.entry.js +0 -1
  913. package/pn-market-web-components/p-e4fbd06c.entry.js +0 -1
  914. package/pn-market-web-components/p-ebb7b59b.system.entry.js +0 -1
  915. package/pn-market-web-components/p-ed5e91eb.system.entry.js +0 -1
  916. package/pn-market-web-components/p-fba88e93.entry.js +0 -1
  917. package/pn-market-web-components/p-ff975b67.entry.js +0 -1
  918. /package/{components → custom-elements}/mockresponse.js +0 -0
@@ -0,0 +1,4155 @@
1
+ /*!
2
+ Stencil Testing v2.22.2 | MIT Licensed | https://stenciljs.com
3
+ */
4
+ function _lazyRequire(e) {
5
+ return new Proxy({}, {
6
+ get(t, r) {
7
+ const s = require(e);
8
+ return Reflect.get(s, r);
9
+ },
10
+ set(t, r, s) {
11
+ const n = require(e);
12
+ return Reflect.set(n, r, s);
13
+ }
14
+ });
15
+ }
16
+
17
+ function _interopDefaultLegacy(e) {
18
+ return e && "object" == typeof e && "default" in e ? e : {
19
+ default: e
20
+ };
21
+ }
22
+
23
+ function _interopNamespace(e) {
24
+ if (e && e.__esModule) return e;
25
+ var t = Object.create(null);
26
+ return e && Object.keys(e).forEach((function(r) {
27
+ if ("default" !== r) {
28
+ var s = Object.getOwnPropertyDescriptor(e, r);
29
+ Object.defineProperty(t, r, s.get ? s : {
30
+ enumerable: !0,
31
+ get: function() {
32
+ return e[r];
33
+ }
34
+ });
35
+ }
36
+ })), t.default = e, Object.freeze(t);
37
+ }
38
+
39
+ async function startPuppeteerBrowser(e) {
40
+ if (!e.flags.e2e) return null;
41
+ const t = process.env, r = e.testing.browserExecutablePath ? "puppeteer-core" : "puppeteer", s = e.sys.lazyRequire.getModulePath(e.rootDir, r), n = e.sys.lazyRequire.require(e.rootDir, s);
42
+ t.__STENCIL_PUPPETEER_MODULE__ = s, t.__STENCIL_BROWSER_WAIT_UNTIL = e.testing.browserWaitUntil,
43
+ e.flags.devtools && (e.testing.browserDevtools = !0, e.testing.browserHeadless = !1,
44
+ t.__STENCIL_E2E_DEVTOOLS__ = "true"), e.logger.debug(`puppeteer: ${s}`), e.logger.debug(`puppeteer headless: ${e.testing.browserHeadless}`),
45
+ Array.isArray(e.testing.browserArgs) && e.logger.debug(`puppeteer args: ${e.testing.browserArgs.join(" ")}`),
46
+ "boolean" == typeof e.testing.browserDevtools && e.logger.debug(`puppeteer devtools: ${e.testing.browserDevtools}`),
47
+ "number" == typeof e.testing.browserSlowMo && e.logger.debug(`puppeteer slowMo: ${e.testing.browserSlowMo}`);
48
+ const o = {
49
+ ignoreHTTPSErrors: !0,
50
+ slowMo: e.testing.browserSlowMo
51
+ };
52
+ let i;
53
+ if (e.testing.browserWSEndpoint) i = await n.connect({
54
+ browserWSEndpoint: e.testing.browserWSEndpoint,
55
+ ...o
56
+ }); else {
57
+ const t = {
58
+ args: e.testing.browserArgs,
59
+ headless: e.testing.browserHeadless,
60
+ devtools: e.testing.browserDevtools,
61
+ ...o
62
+ };
63
+ e.testing.browserExecutablePath && (t.executablePath = e.testing.browserExecutablePath),
64
+ i = await n.launch({
65
+ ...t
66
+ });
67
+ }
68
+ return t.__STENCIL_BROWSER_WS_ENDPOINT__ = i.wsEndpoint(), e.logger.debug(`puppeteer browser wsEndpoint: ${t.__STENCIL_BROWSER_WS_ENDPOINT__}`),
69
+ i;
70
+ }
71
+
72
+ function transpile(e, t = {}) {
73
+ t = {
74
+ ...t,
75
+ componentExport: null,
76
+ componentMetadata: "compilerstatic",
77
+ coreImportPath: isString(t.coreImportPath) ? t.coreImportPath : "@stencil/core/internal/testing",
78
+ currentDirectory: t.currentDirectory || process.cwd(),
79
+ module: "cjs",
80
+ proxy: null,
81
+ sourceMap: "inline",
82
+ style: null,
83
+ styleImportData: "queryparams",
84
+ target: "es2015"
85
+ };
86
+ try {
87
+ const e = process.versions.node.split(".");
88
+ parseInt(e[0], 10) >= 10 && (t.target = "es2017");
89
+ } catch (e) {}
90
+ return stencil_js.transpileSync(e, t);
91
+ }
92
+
93
+ function formatDiagnostic(e) {
94
+ let t = "";
95
+ return e.relFilePath && (t += e.relFilePath, "number" == typeof e.lineNumber && (t += ":" + e.lineNumber + 1,
96
+ "number" == typeof e.columnNumber && (t += ":" + e.columnNumber)), t += "\n"), t += e.messageText,
97
+ t;
98
+ }
99
+
100
+ function getCompilerOptions(e) {
101
+ if (_tsCompilerOptions) return _tsCompilerOptions;
102
+ if ("string" != typeof e) return null;
103
+ e = normalizePath(e);
104
+ const t = stencil_js.ts.findConfigFile(e, stencil_js.ts.sys.fileExists);
105
+ if (!t) return null;
106
+ const r = stencil_js.ts.readConfigFile(t, stencil_js.ts.sys.readFile);
107
+ if (r.error) throw new Error(formatDiagnostic((e => {
108
+ const t = {
109
+ level: "warn",
110
+ type: "typescript",
111
+ language: "typescript",
112
+ header: "TypeScript",
113
+ code: e.code.toString(),
114
+ messageText: flattenDiagnosticMessageText(e, e.messageText),
115
+ relFilePath: null,
116
+ absFilePath: null,
117
+ lines: []
118
+ };
119
+ if (1 === e.category && (t.level = "error"), e.file) {
120
+ t.absFilePath = e.file.fileName;
121
+ const s = "string" != typeof (r = e.file.text) ? [] : (r = r.replace(/\\r/g, "\n")).split("\n"), n = e.file.getLineAndCharacterOfPosition(e.start), o = {
122
+ lineIndex: n.line,
123
+ lineNumber: n.line + 1,
124
+ text: s[n.line],
125
+ errorCharStart: n.character,
126
+ errorLength: Math.max(e.length, 1)
127
+ };
128
+ if (t.lineNumber = o.lineNumber, t.columnNumber = o.errorCharStart + 1, t.lines.push(o),
129
+ 0 === o.errorLength && o.errorCharStart > 0 && (o.errorLength = 1, o.errorCharStart--),
130
+ o.lineIndex > 0) {
131
+ const e = {
132
+ lineIndex: o.lineIndex - 1,
133
+ lineNumber: o.lineNumber - 1,
134
+ text: s[o.lineIndex - 1],
135
+ errorCharStart: -1,
136
+ errorLength: -1
137
+ };
138
+ t.lines.unshift(e);
139
+ }
140
+ if (o.lineIndex + 1 < s.length) {
141
+ const e = {
142
+ lineIndex: o.lineIndex + 1,
143
+ lineNumber: o.lineNumber + 1,
144
+ text: s[o.lineIndex + 1],
145
+ errorCharStart: -1,
146
+ errorLength: -1
147
+ };
148
+ t.lines.push(e);
149
+ }
150
+ }
151
+ var r;
152
+ return t;
153
+ })(r.error)));
154
+ const s = stencil_js.ts.parseJsonConfigFileContent(r.config, stencil_js.ts.sys, e, void 0, t);
155
+ return _tsCompilerOptions = s.options, _tsCompilerOptions;
156
+ }
157
+
158
+ function setScreenshotEmulateData(e, t) {
159
+ const r = {
160
+ userAgent: "default",
161
+ viewport: {
162
+ width: 800,
163
+ height: 600,
164
+ deviceScaleFactor: 1,
165
+ isMobile: !1,
166
+ hasTouch: !1,
167
+ isLandscape: !1
168
+ }
169
+ };
170
+ if ("string" == typeof e.device) try {
171
+ const s = require(t.__STENCIL_PUPPETEER_MODULE__ + "/DeviceDescriptors")[e.device];
172
+ if (!s) return void console.error(`invalid emulate device: ${e.device}`);
173
+ r.device = e.device, r.userAgent = s.userAgent, r.viewport = s.viewport;
174
+ } catch (e) {
175
+ return void console.error("error loading puppeteer DeviceDescriptors", e);
176
+ }
177
+ e.viewport && ("number" == typeof e.viewport.width && (r.viewport.width = e.viewport.width),
178
+ "number" == typeof e.viewport.height && (r.viewport.height = e.viewport.height),
179
+ "number" == typeof e.viewport.deviceScaleFactor && (r.viewport.deviceScaleFactor = e.viewport.deviceScaleFactor),
180
+ "boolean" == typeof e.viewport.hasTouch && (r.viewport.hasTouch = e.viewport.hasTouch),
181
+ "boolean" == typeof e.viewport.isLandscape && (r.viewport.isLandscape = e.viewport.isLandscape),
182
+ "boolean" == typeof e.viewport.isMobile && (r.viewport.isMobile = e.viewport.isMobile),
183
+ "string" == typeof e.userAgent && (r.userAgent = e.userAgent)), t.__STENCIL_EMULATE__ = JSON.stringify(r);
184
+ }
185
+
186
+ async function runJest(e, t) {
187
+ let r = !1;
188
+ try {
189
+ const s = function s(e, t) {
190
+ let r = e.emulate.slice();
191
+ if ("string" == typeof t.emulate) {
192
+ const e = t.emulate.toLowerCase();
193
+ r = r.filter((t => "string" == typeof t.device && t.device.toLowerCase() === e || !("string" != typeof t.userAgent || !t.userAgent.toLowerCase().includes(e))));
194
+ }
195
+ return r;
196
+ }(e.testing, e.flags);
197
+ t.__STENCIL_EMULATE_CONFIGS__ = JSON.stringify(s), t.__STENCIL_ENV__ = JSON.stringify(e.env),
198
+ e.flags.ci || e.flags.e2e ? t.__STENCIL_DEFAULT_TIMEOUT__ = "30000" : t.__STENCIL_DEFAULT_TIMEOUT__ = "15000",
199
+ e.flags.devtools && (t.__STENCIL_DEFAULT_TIMEOUT__ = "300000000"), e.logger.debug(`default timeout: ${t.__STENCIL_DEFAULT_TIMEOUT__}`);
200
+ const n = function n(e) {
201
+ const t = require("yargs"), r = e.flags.knownArgs.slice();
202
+ r.some((e => e.startsWith("--max-workers") || e.startsWith("--maxWorkers"))) || r.push(`--max-workers=${e.maxConcurrentWorkers}`),
203
+ e.flags.devtools && r.push("--runInBand");
204
+ const s = [ ...r, ...e.flags.unknownArgs ];
205
+ e.logger.info(e.logger.magenta(`jest args: ${s.join(" ")}`));
206
+ let n = t(s).argv;
207
+ if (n = {
208
+ detectLeaks: !1,
209
+ "detect-leaks": !1,
210
+ detectOpenHandles: !1,
211
+ "detect-open-handles": !1,
212
+ errorOnDeprecated: !1,
213
+ "error-on-deprecated": !1,
214
+ listTests: !1,
215
+ "list-tests": !1,
216
+ maxConcurrency: 5,
217
+ "max-concurrency": 5,
218
+ notifyMode: "failure-change",
219
+ "notify-mode": "failure-change",
220
+ passWithNoTests: !1,
221
+ "pass-with-no-tests": !1,
222
+ runTestsByPath: !1,
223
+ "run-tests-by-path": !1,
224
+ testLocationInResults: !1,
225
+ "test-location-in-results": !1,
226
+ ...n
227
+ }, n.config = function o(e) {
228
+ const t = e.testing, r = require("jest-config").defaults, s = Object.keys(r), n = {};
229
+ return Object.keys(t).forEach((e => {
230
+ s.includes(e) && (n[e] = t[e]);
231
+ })), n.rootDir = e.rootDir, isString(t.collectCoverage) && (n.collectCoverage = t.collectCoverage),
232
+ Array.isArray(t.collectCoverageFrom) && (n.collectCoverageFrom = t.collectCoverageFrom),
233
+ isString(t.coverageDirectory) && (n.coverageDirectory = t.coverageDirectory), t.coverageThreshold && (n.coverageThreshold = t.coverageThreshold),
234
+ isString(t.globalSetup) && (n.globalSetup = t.globalSetup), isString(t.globalTeardown) && (n.globalTeardown = t.globalTeardown),
235
+ isString(t.preset) && (n.preset = t.preset), t.projects && (n.projects = t.projects),
236
+ Array.isArray(t.reporters) && (n.reporters = t.reporters), isString(t.testResultsProcessor) && (n.testResultsProcessor = t.testResultsProcessor),
237
+ t.transform && (n.transform = t.transform), t.verbose && (n.verbose = t.verbose),
238
+ n.testRunner = "jest-jasmine2", JSON.stringify(n);
239
+ }(e), "string" == typeof n.maxWorkers) try {
240
+ n.maxWorkers = parseInt(n.maxWorkers, 10);
241
+ } catch (e) {}
242
+ return "string" == typeof n.ci && (n.ci = "true" === n.ci || "" === n.ci), n;
243
+ }(e), o = function o(e, t) {
244
+ const r = t.projects ? t.projects : [];
245
+ return r.push(e.rootDir), r;
246
+ }(e, n), {runCLI: i} = require("@jest/core");
247
+ r = !!(await i(n, o)).results.success;
248
+ } catch (t) {
249
+ e.logger.error(`runJest: ${t}`);
250
+ }
251
+ return r;
252
+ }
253
+
254
+ function toHaveClasses(e, t) {
255
+ if (!e) throw new Error("expect toHaveClasses value is null");
256
+ if ("function" == typeof e.then) throw new Error("element must be a resolved value, not a promise, before it can be tested");
257
+ if (1 !== e.nodeType) throw new Error("expect toHaveClasses value is not an element");
258
+ const r = t.every((t => e.classList.contains(t)));
259
+ return {
260
+ message: () => `expected to ${r ? "not " : ""}have css classes "${t.join(" ")}", but className is "${e.className}"`,
261
+ pass: r
262
+ };
263
+ }
264
+
265
+ function compareHtml(e, t, r) {
266
+ if (null == e) throw new Error(`expect toEqualHtml() value is "${e}"`);
267
+ if ("function" == typeof e.then) throw new Error("element must be a resolved value, not a promise, before it can be tested");
268
+ let s;
269
+ if (1 === e.nodeType) {
270
+ const t = function n(e) {
271
+ return e && e.ownerDocument && e.ownerDocument.defaultView && e.ownerDocument.defaultView.__stencil_spec_options || {};
272
+ }(e);
273
+ s = index_cjs.serializeNodeToHtml(e, {
274
+ prettyHtml: !0,
275
+ outerHtml: !0,
276
+ removeHtmlComments: !1 === t.includeAnnotations,
277
+ excludeTags: [ "body" ],
278
+ serializeShadowRoot: r
279
+ });
280
+ } else if (11 === e.nodeType) s = index_cjs.serializeNodeToHtml(e, {
281
+ prettyHtml: !0,
282
+ excludeTags: [ "style" ],
283
+ excludeTagContent: [ "style" ],
284
+ serializeShadowRoot: r
285
+ }); else {
286
+ if ("string" != typeof e) throw new Error("expect toEqualHtml() value should be an element, shadow root or string.");
287
+ {
288
+ const t = index_cjs.parseHtmlToFragment(e);
289
+ s = index_cjs.serializeNodeToHtml(t, {
290
+ prettyHtml: !0,
291
+ serializeShadowRoot: r
292
+ });
293
+ }
294
+ }
295
+ const o = index_cjs.parseHtmlToFragment(t), i = index_cjs.serializeNodeToHtml(o, {
296
+ prettyHtml: !0,
297
+ excludeTags: [ "body" ]
298
+ });
299
+ return s !== i ? (expect(s).toBe(i), {
300
+ message: () => "HTML does not match",
301
+ pass: !1
302
+ }) : {
303
+ message: () => "expect HTML to match",
304
+ pass: !0
305
+ };
306
+ }
307
+
308
+ async function globalMockFetch(e) {
309
+ let t;
310
+ if (null == e) throw new Error("missing url input for mock fetch()");
311
+ if ("string" == typeof e) t = e; else {
312
+ if ("string" != typeof e.url) throw new Error("invalid url for mock fetch()");
313
+ t = e.url;
314
+ }
315
+ t = new URL(t, location.href).href;
316
+ let r = mockedResponses.get(t);
317
+ if (null == r) {
318
+ const e = new URL(FETCH_DEFAULT_PATH, location.href);
319
+ r = mockedResponses.get(e.href);
320
+ }
321
+ if (null == r) return new MockResponse404;
322
+ const s = r.response.clone();
323
+ return "number" != typeof s.status && (s.status = 200), "string" != typeof s.statusText && (s.status >= 500 ? s.statusText = "Internal Server Error" : 404 === s.status ? s.statusText = "Not Found" : s.status >= 400 ? s.statusText = "Bad Request" : 302 === s.status ? s.statusText = "Found" : 301 === s.status ? s.statusText = "Moved Permanently" : s.status >= 300 ? s.statusText = "Redirection" : s.statusText = "OK"),
324
+ s.ok = s.status >= 200 && s.status <= 299, "string" != typeof s.type && (s.type = "basic"),
325
+ s;
326
+ }
327
+
328
+ function setMockedResponse(e, t, r) {
329
+ if (!e) throw new Error("MockResponse required");
330
+ "string" == typeof e.url && "" !== e.url || ("string" == typeof t ? e.url = t : t && "string" == typeof t.url ? e.url = t.url : e.url = FETCH_DEFAULT_PATH);
331
+ const s = new URL(e.url, location.href);
332
+ e.url = s.href;
333
+ const n = {
334
+ response: e,
335
+ reject: r
336
+ };
337
+ mockedResponses.set(e.url, n);
338
+ }
339
+
340
+ function resetBuildConditionals(e) {
341
+ Object.keys(e).forEach((t => {
342
+ e[t] = !0;
343
+ })), e.isDev = !0, e.isTesting = !0, e.isDebug = !1, e.lazyLoad = !0, e.member = !0,
344
+ e.reflect = !0, e.scoped = !0, e.shadowDom = !0, e.slotRelocation = !0, e.asyncLoading = !0,
345
+ e.svg = !0, e.updatable = !0, e.vdomAttribute = !0, e.vdomClass = !0, e.vdomFunctional = !0,
346
+ e.vdomKey = !0, e.vdomPropOrAttr = !0, e.vdomRef = !0, e.vdomListener = !0, e.vdomStyle = !0,
347
+ e.vdomText = !0, e.vdomXlink = !0, e.allRenderFn = !1, e.devTools = !1, e.hydrateClientSide = !1,
348
+ e.hydrateServerSide = !1, e.cssAnnotations = !1, e.style = !1, e.hydratedAttribute = !1,
349
+ e.hydratedClass = !0, e.invisiblePrehydration = !0, e.appendChildSlotFix = !1, e.cloneNodeFix = !1,
350
+ e.dynamicImportShim = !1, e.hotModuleReplacement = !1, e.safari10 = !1, e.scriptDataOpts = !1,
351
+ e.scopedSlotTextContentFix = !1, e.slotChildNodesFix = !1;
352
+ }
353
+
354
+ function assertPath(e) {
355
+ if ("string" != typeof e) throw new TypeError("Path must be a string. Received " + JSON.stringify(e));
356
+ }
357
+
358
+ function normalizeStringPosix(e, t) {
359
+ var r, s, n, o = "", i = 0, a = -1, l = 0;
360
+ for (s = 0; s <= e.length; ++s) {
361
+ if (s < e.length) r = e.charCodeAt(s); else {
362
+ if (47 === r) break;
363
+ r = 47;
364
+ }
365
+ if (47 === r) {
366
+ if (a === s - 1 || 1 === l) ; else if (a !== s - 1 && 2 === l) {
367
+ if (o.length < 2 || 2 !== i || 46 !== o.charCodeAt(o.length - 1) || 46 !== o.charCodeAt(o.length - 2)) if (o.length > 2) {
368
+ if ((n = o.lastIndexOf("/")) !== o.length - 1) {
369
+ -1 === n ? (o = "", i = 0) : i = (o = o.slice(0, n)).length - 1 - o.lastIndexOf("/"),
370
+ a = s, l = 0;
371
+ continue;
372
+ }
373
+ } else if (2 === o.length || 1 === o.length) {
374
+ o = "", i = 0, a = s, l = 0;
375
+ continue;
376
+ }
377
+ t && (o.length > 0 ? o += "/.." : o = "..", i = 2);
378
+ } else o.length > 0 ? o += "/" + e.slice(a + 1, s) : o = e.slice(a + 1, s), i = s - a - 1;
379
+ a = s, l = 0;
380
+ } else 46 === r && -1 !== l ? ++l : l = -1;
381
+ }
382
+ return o;
383
+ }
384
+
385
+ function specifierIncluded$1(e, t) {
386
+ var r, s, n, o = e.split("."), i = t.split(" "), a = i.length > 1 ? i[0] : "=", l = (i.length > 1 ? i[1] : i[0]).split(".");
387
+ for (r = 0; r < 3; ++r) if ((s = parseInt(o[r] || 0, 10)) !== (n = parseInt(l[r] || 0, 10))) return "<" === a ? s < n : ">=" === a && s >= n;
388
+ return ">=" === a;
389
+ }
390
+
391
+ function matchesRange$1(e, t) {
392
+ var r, s = t.split(/ ?&& ?/);
393
+ if (0 === s.length) return !1;
394
+ for (r = 0; r < s.length; ++r) if (!specifierIncluded$1(e, s[r])) return !1;
395
+ return !0;
396
+ }
397
+
398
+ function specifierIncluded(e) {
399
+ var t, r, s, n = e.split(" "), o = n.length > 1 ? n[0] : "=", i = (n.length > 1 ? n[1] : n[0]).split(".");
400
+ for (t = 0; t < 3; ++t) if ((r = parseInt(current[t] || 0, 10)) !== (s = parseInt(i[t] || 0, 10))) return "<" === o ? r < s : ">=" === o && r >= s;
401
+ return ">=" === o;
402
+ }
403
+
404
+ function matchesRange(e) {
405
+ var t, r = e.split(/ ?&& ?/);
406
+ if (0 === r.length) return !1;
407
+ for (t = 0; t < r.length; ++t) if (!specifierIncluded(r[t])) return !1;
408
+ return !0;
409
+ }
410
+
411
+ function versionIncluded(e) {
412
+ if ("boolean" == typeof e) return e;
413
+ if (e && "object" == typeof e) {
414
+ for (var t = 0; t < e.length; ++t) if (matchesRange(e[t])) return !0;
415
+ return !1;
416
+ }
417
+ return matchesRange(e);
418
+ }
419
+
420
+ function mockConfig(e = {}) {
421
+ const t = path__default.default.resolve("/");
422
+ let {sys: r} = e;
423
+ return r || (r = createTestingSystem()), r.getCurrentDirectory = () => t, {
424
+ _isTesting: !0,
425
+ buildAppCore: !1,
426
+ buildDist: !0,
427
+ buildEs5: !1,
428
+ bundles: null,
429
+ devMode: !0,
430
+ enableCache: !1,
431
+ extras: {},
432
+ flags: createConfigFlags(),
433
+ globalScript: null,
434
+ hashFileNames: !1,
435
+ logger: new TestingLogger,
436
+ maxConcurrentWorkers: 0,
437
+ minifyCss: !1,
438
+ minifyJs: !1,
439
+ namespace: "Testing",
440
+ nodeResolve: {
441
+ customResolveOptions: {}
442
+ },
443
+ outputTargets: null,
444
+ rollupPlugins: {
445
+ before: [],
446
+ after: []
447
+ },
448
+ rootDir: t,
449
+ sourceMap: !0,
450
+ sys: r,
451
+ testing: null,
452
+ validateTypes: !1,
453
+ ...e
454
+ };
455
+ }
456
+
457
+ function mockCompilerCtx(e) {
458
+ e || (e = mockConfig());
459
+ const t = {
460
+ version: 1,
461
+ activeBuildId: 0,
462
+ activeDirsAdded: [],
463
+ activeDirsDeleted: [],
464
+ activeFilesAdded: [],
465
+ activeFilesDeleted: [],
466
+ activeFilesUpdated: [],
467
+ addWatchDir: noop,
468
+ addWatchFile: noop,
469
+ cachedGlobalStyle: null,
470
+ changedFiles: new Set,
471
+ changedModules: new Set,
472
+ collections: [],
473
+ compilerOptions: null,
474
+ cache: null,
475
+ cssModuleImports: new Map,
476
+ events: buildEvents(),
477
+ fs: null,
478
+ hasSuccessfulBuild: !1,
479
+ isActivelyBuilding: !1,
480
+ lastBuildResults: null,
481
+ moduleMap: new Map,
482
+ nodeMap: new WeakMap,
483
+ reset: noop,
484
+ resolvedCollections: new Set,
485
+ rollupCache: new Map,
486
+ rollupCacheHydrate: null,
487
+ rollupCacheLazy: null,
488
+ rollupCacheNative: null,
489
+ styleModeNames: new Set,
490
+ worker: stencil_js.createWorkerContext(e.sys)
491
+ };
492
+ return Object.defineProperty(t, "fs", {
493
+ get() {
494
+ return null == this._fs && (this._fs = (e => {
495
+ const t = new Map, r = new Map, s = async (e, r = {}) => {
496
+ e = normalizePath(e);
497
+ const s = [];
498
+ if (!0 === r.inMemoryOnly) {
499
+ let n = e;
500
+ n.endsWith("/") || (n += "/");
501
+ const i = e.split("/");
502
+ t.forEach(((t, n) => {
503
+ if (!n.startsWith(e)) return;
504
+ const a = n.split("/");
505
+ if ((a.length === i.length + 1 || r.recursive && a.length > i.length) && t.exists) {
506
+ const e = {
507
+ absPath: n,
508
+ relPath: a[i.length],
509
+ isDirectory: t.isDirectory,
510
+ isFile: t.isFile
511
+ };
512
+ o(r, e) || s.push(e);
513
+ }
514
+ }));
515
+ } else await n(e, e, r, s);
516
+ return s.sort(((e, t) => e.absPath < t.absPath ? -1 : e.absPath > t.absPath ? 1 : 0));
517
+ }, n = async (t, r, s, i) => {
518
+ const a = await e.readDir(r);
519
+ if (a.length > 0) {
520
+ const e = v(r);
521
+ e.exists = !0, e.isFile = !1, e.isDirectory = !0, await Promise.all(a.map((async e => {
522
+ const r = normalizePath(e), a = normalizePath(path$2.relative(t, r)), c = await l(r), u = {
523
+ absPath: r,
524
+ relPath: a,
525
+ isDirectory: c.isDirectory,
526
+ isFile: c.isFile
527
+ };
528
+ o(s, u) || (i.push(u), !0 === s.recursive && !0 === c.isDirectory && await n(t, r, s, i));
529
+ })));
530
+ }
531
+ }, o = (e, t) => {
532
+ if (t.isDirectory) {
533
+ if (Array.isArray(e.excludeDirNames)) {
534
+ const r = path$2.basename(t.absPath);
535
+ if (e.excludeDirNames.some((e => r === e))) return !0;
536
+ }
537
+ } else if (Array.isArray(e.excludeExtensions)) {
538
+ const r = t.relPath.toLowerCase();
539
+ if (e.excludeExtensions.some((e => r.endsWith(e)))) return !0;
540
+ }
541
+ return !1;
542
+ }, i = async e => {
543
+ const t = v(e);
544
+ t.isFile = !1, t.isDirectory = !0, t.queueWriteToDisk || (t.queueDeleteFromDisk = !0);
545
+ try {
546
+ const t = await s(e, {
547
+ recursive: !0
548
+ });
549
+ await Promise.all(t.map((e => e.relPath.endsWith(".gitkeep") ? null : a(e.absPath))));
550
+ } catch (e) {}
551
+ }, a = async e => {
552
+ const t = v(e);
553
+ t.queueWriteToDisk || (t.queueDeleteFromDisk = !0);
554
+ }, l = async t => {
555
+ const r = v(t);
556
+ if ("boolean" != typeof r.isDirectory || "boolean" != typeof r.isFile) {
557
+ const s = await e.stat(t);
558
+ s.error ? r.exists = !1 : (r.exists = !0, s.isFile ? (r.isFile = !0, r.isDirectory = !1,
559
+ r.size = s.size) : s.isDirectory ? (r.isFile = !1, r.isDirectory = !0, r.size = s.size) : (r.isFile = !1,
560
+ r.isDirectory = !1, r.size = null));
561
+ }
562
+ return {
563
+ exists: !!r.exists,
564
+ isFile: !!r.isFile,
565
+ isDirectory: !!r.isDirectory,
566
+ size: "number" == typeof r.size ? r.size : 0
567
+ };
568
+ }, c = t => {
569
+ const r = v(t);
570
+ if ("boolean" != typeof r.isDirectory || "boolean" != typeof r.isFile) {
571
+ const s = e.statSync(t);
572
+ s.error ? r.exists = !1 : (r.exists = !0, s.isFile ? (r.isFile = !0, r.isDirectory = !1,
573
+ r.size = s.size) : s.isDirectory ? (r.isFile = !1, r.isDirectory = !0, r.size = s.size) : (r.isFile = !1,
574
+ r.isDirectory = !1, r.size = null));
575
+ }
576
+ return {
577
+ exists: !!r.exists,
578
+ isFile: !!r.isFile,
579
+ isDirectory: !!r.isDirectory,
580
+ size: r.size
581
+ };
582
+ }, u = async (t, s, n) => {
583
+ if ("string" != typeof t) throw new Error(`writeFile, invalid filePath: ${t}`);
584
+ if ("string" != typeof s) throw new Error(`writeFile, invalid content: ${t}`);
585
+ const o = {
586
+ ignored: !1,
587
+ changedContent: !1,
588
+ queuedWrite: !1
589
+ };
590
+ if (!0 === shouldIgnore(t)) return o.ignored = !0, o;
591
+ const i = v(t);
592
+ if (i.exists = !0, i.isFile = !0, i.isDirectory = !1, i.queueDeleteFromDisk = !1,
593
+ "string" == typeof i.fileText ? o.changedContent = i.fileText.replace(/\r/g, "") !== s.replace(/\r/g, "") : o.changedContent = !0,
594
+ i.fileText = s, o.queuedWrite = !1, null != n && ("string" == typeof n.outputTargetType && r.set(t, n.outputTargetType),
595
+ !1 === n.useCache && (i.useCache = !1)), null != n && !0 === n.inMemoryOnly) i.queueWriteToDisk ? o.queuedWrite = !0 : i.queueWriteToDisk = !1,
596
+ await d(t, !0); else if (null != n && !0 === n.immediateWrite) {
597
+ if (o.changedContent || !0 !== n.useCache) {
598
+ const r = await e.readFile(t);
599
+ "string" == typeof r && (o.changedContent = i.fileText.replace(/\r/g, "") !== r.replace(/\r/g, "")),
600
+ o.changedContent && (await d(t, !1), await e.writeFile(t, i.fileText));
601
+ }
602
+ } else i.queueWriteToDisk || !0 !== o.changedContent || (i.queueWriteToDisk = !0,
603
+ o.queuedWrite = !0);
604
+ return o;
605
+ }, d = async (e, t) => {
606
+ const r = [];
607
+ for (;"string" == typeof (e = path$2.dirname(e)) && e.length > 0 && "/" !== e && !1 === e.endsWith(":/") && !1 === e.endsWith(":\\"); ) r.push(e);
608
+ r.reverse(), await h(r, t);
609
+ }, h = async (t, r) => {
610
+ const s = [];
611
+ for (const n of t) {
612
+ const t = v(n);
613
+ if (!0 !== t.exists || !0 !== t.isDirectory) try {
614
+ t.exists = !0, t.isDirectory = !0, t.isFile = !1, r || await e.createDir(n), s.push(n);
615
+ } catch (e) {}
616
+ }
617
+ return s;
618
+ }, p = t => {
619
+ const r = Promise.all(t.map((async t => {
620
+ const [r, s] = t;
621
+ return await e.copyFile(r, s), [ r, s ];
622
+ })));
623
+ return r;
624
+ }, f = e => Promise.all(e.map((async e => {
625
+ if ("string" != typeof e) throw new Error("unable to writeFile without filePath");
626
+ return m(e);
627
+ }))), m = async t => {
628
+ const r = v(t);
629
+ if (null == r.fileText) throw new Error(`unable to find item fileText to write: ${t}`);
630
+ return await e.writeFile(t, r.fileText), !1 === r.useCache && _(t), t;
631
+ }, g = async t => await Promise.all(t.map((async t => {
632
+ if ("string" != typeof t) throw new Error("unable to unlink without filePath");
633
+ return await e.removeFile(t), t;
634
+ }))), y = async t => {
635
+ const r = [];
636
+ for (const s of t) await e.removeDir(s), r.push(s);
637
+ return r;
638
+ }, w = e => {
639
+ e = normalizePath(e), t.forEach(((t, r) => {
640
+ const s = path$2.relative(e, r).split("/")[0];
641
+ s.startsWith(".") || s.startsWith("/") || _(r);
642
+ }));
643
+ }, _ = e => {
644
+ e = normalizePath(e);
645
+ const r = t.get(e);
646
+ null == r || r.queueWriteToDisk || t.delete(e);
647
+ }, v = e => {
648
+ e = normalizePath(e);
649
+ let r = t.get(e);
650
+ return null != r || t.set(e, r = {
651
+ exists: null,
652
+ fileText: null,
653
+ size: null,
654
+ mtimeMs: null,
655
+ isDirectory: null,
656
+ isFile: null,
657
+ queueCopyFileToDest: null,
658
+ queueDeleteFromDisk: null,
659
+ queueWriteToDisk: null,
660
+ useCache: null
661
+ }), r;
662
+ }, b = 5242880;
663
+ return {
664
+ access: async e => {
665
+ const t = v(e);
666
+ return "boolean" != typeof t.exists ? (await l(e)).exists : t.exists;
667
+ },
668
+ accessSync: e => {
669
+ const t = v(e);
670
+ return "boolean" != typeof t.exists ? c(e).exists : t.exists;
671
+ },
672
+ cancelDeleteDirectoriesFromDisk: e => {
673
+ for (const t of e) {
674
+ const e = v(t);
675
+ !0 === e.queueDeleteFromDisk && (e.queueDeleteFromDisk = !1);
676
+ }
677
+ },
678
+ cancelDeleteFilesFromDisk: e => {
679
+ for (const t of e) {
680
+ const e = v(t);
681
+ !0 === e.isFile && !0 === e.queueDeleteFromDisk && (e.queueDeleteFromDisk = !1);
682
+ }
683
+ },
684
+ clearCache: () => {
685
+ t.clear();
686
+ },
687
+ clearDirCache: w,
688
+ clearFileCache: _,
689
+ commit: async () => {
690
+ const e = getCommitInstructions(t), r = await h(e.dirsToEnsure, !1), s = await f(e.filesToWrite), n = await p(e.filesToCopy), o = await g(e.filesToDelete), i = await y(e.dirsToDelete);
691
+ return e.filesToDelete.forEach(_), e.dirsToDelete.forEach(w), {
692
+ filesCopied: n,
693
+ filesWritten: s,
694
+ filesDeleted: o,
695
+ dirsDeleted: i,
696
+ dirsAdded: r
697
+ };
698
+ },
699
+ copyFile: async (e, t) => {
700
+ v(e).queueCopyFileToDest = t;
701
+ },
702
+ emptyDirs: async e => {
703
+ e = e.filter(isString).map(normalizePath).reduce(((e, t) => (e.includes(t) || e.push(t),
704
+ e)), []);
705
+ const t = await Promise.all(e.map((e => s(e, {
706
+ recursive: !0
707
+ })))), r = [];
708
+ for (const e of t) for (const t of e) r.includes(t.absPath) || r.push(t.absPath);
709
+ r.sort(((e, t) => {
710
+ const r = e.split("/").length, s = t.split("/").length;
711
+ return r < s ? 1 : r > s ? -1 : 0;
712
+ })), await Promise.all(r.map(a)), e.forEach((e => {
713
+ const t = v(e);
714
+ t.isFile = !1, t.isDirectory = !0, t.queueWriteToDisk = !0, t.queueDeleteFromDisk = !1;
715
+ }));
716
+ },
717
+ getBuildOutputs: () => {
718
+ const e = [];
719
+ return r.forEach(((t, r) => {
720
+ const s = e.find((e => e.type === t));
721
+ s ? s.files.push(r) : e.push({
722
+ type: t,
723
+ files: [ r ]
724
+ });
725
+ })), e.forEach((e => e.files.sort())), e.sort(((e, t) => e.type < t.type ? -1 : e.type > t.type ? 1 : 0));
726
+ },
727
+ getItem: v,
728
+ getMemoryStats: () => `data length: ${t.size}`,
729
+ readFile: async (t, r) => {
730
+ if (null == r || !0 === r.useCache || void 0 === r.useCache) {
731
+ const e = v(t);
732
+ if (e.exists && "string" == typeof e.fileText) return e.fileText;
733
+ }
734
+ const s = await e.readFile(t), n = v(t);
735
+ return "string" == typeof s ? s.length < b && (n.exists = !0, n.isFile = !0, n.isDirectory = !1,
736
+ n.fileText = s) : n.exists = !1, s;
737
+ },
738
+ readFileSync: (t, r) => {
739
+ if (null == r || !0 === r.useCache || void 0 === r.useCache) {
740
+ const e = v(t);
741
+ if (e.exists && "string" == typeof e.fileText) return e.fileText;
742
+ }
743
+ const s = e.readFileSync(t), n = v(t);
744
+ return "string" == typeof s ? s.length < b && (n.exists = !0, n.isFile = !0, n.isDirectory = !1,
745
+ n.fileText = s) : n.exists = !1, s;
746
+ },
747
+ readdir: s,
748
+ remove: async e => {
749
+ const t = await l(e);
750
+ !0 === t.isDirectory ? await i(e) : !0 === t.isFile && await a(e);
751
+ },
752
+ stat: l,
753
+ statSync: c,
754
+ sys: e,
755
+ writeFile: u,
756
+ writeFiles: (e, t) => {
757
+ const r = [];
758
+ return isIterable(e) ? e.forEach(((e, s) => {
759
+ r.push(u(s, e, t));
760
+ })) : Object.keys(e).map((s => {
761
+ r.push(u(s, e[s], t));
762
+ })), Promise.all(r);
763
+ }
764
+ };
765
+ })(e.sys)), this._fs;
766
+ }
767
+ }), Object.defineProperty(t, "cache", {
768
+ get() {
769
+ return null == this._cache && (this._cache = function r(e, t) {
770
+ e || (e = mockConfig()), t || (t = mockCompilerCtx(e)), e.enableCache = !0;
771
+ const r = new Cache(e, t.fs);
772
+ return r.initCacheDir(), r;
773
+ }(e, t)), this._cache;
774
+ }
775
+ }), t;
776
+ }
777
+
778
+ function mockLogger() {
779
+ return new TestingLogger;
780
+ }
781
+
782
+ async function initPageEvents(e) {
783
+ e._e2eEvents = new Map, e._e2eEventIds = 0, e.spyOnEvent = pageSpyOnEvent.bind(e, e),
784
+ await e.exposeFunction("stencilOnEvent", ((t, r) => {
785
+ !function s(e, t, r) {
786
+ const s = e.get(t);
787
+ s && s.callback(r);
788
+ }(e._e2eEvents, t, r);
789
+ })), await e.evaluateOnNewDocument(browserContextEvents);
790
+ }
791
+
792
+ async function pageSpyOnEvent(e, t, r) {
793
+ const s = new EventSpy(t), n = "document" !== r ? () => window : () => document, o = await e.evaluateHandle(n);
794
+ return await addE2EListener(e, o, t, (e => {
795
+ s.push(e);
796
+ })), s;
797
+ }
798
+
799
+ async function waitForEvent(e, t, r) {
800
+ const s = .5 * jasmine.DEFAULT_TIMEOUT_INTERVAL, n = await e.evaluate(((e, t, r) => new Promise(((s, n) => {
801
+ const o = setTimeout((() => {
802
+ n(new Error(`waitForEvent() timeout, eventName: ${t}`));
803
+ }), r);
804
+ e.addEventListener(t, (e => {
805
+ clearTimeout(o), s(window.stencilSerializeEvent(e));
806
+ }), {
807
+ once: !0
808
+ });
809
+ }))), r, t, s);
810
+ return await e.waitForChanges(), n;
811
+ }
812
+
813
+ async function addE2EListener(e, t, r, s) {
814
+ const n = e._e2eEventIds++;
815
+ e._e2eEvents.set(n, {
816
+ eventName: r,
817
+ callback: s
818
+ });
819
+ const o = t.executionContext();
820
+ await o.evaluate(((e, t, r) => {
821
+ e.addEventListener(r, (e => {
822
+ window.stencilOnEvent(t, window.stencilSerializeEvent(e));
823
+ }));
824
+ }), t, n, r);
825
+ }
826
+
827
+ function browserContextEvents() {
828
+ const e = () => {
829
+ const e = [], t = (e, r) => {
830
+ if (null != r && 1 === r.nodeType) for (let s = 0; s < r.children.length; s++) {
831
+ const n = r.children[s];
832
+ n.tagName.includes("-") && "function" == typeof n.componentOnReady && e.push(n.componentOnReady()),
833
+ t(e, n);
834
+ }
835
+ };
836
+ return t(e, window.document.documentElement), Promise.all(e).catch((e => console.error(e)));
837
+ }, t = () => e().then((() => new Promise((e => {
838
+ requestAnimationFrame(e);
839
+ })))).then((() => e())).then((() => {
840
+ window.stencilAppLoaded = !0;
841
+ }));
842
+ window.stencilSerializeEventTarget = e => e ? e === window ? {
843
+ serializedWindow: !0
844
+ } : e === document ? {
845
+ serializedDocument: !0
846
+ } : null != e.nodeType ? {
847
+ serializedElement: !0,
848
+ nodeName: e.nodeName,
849
+ nodeValue: e.nodeValue,
850
+ nodeType: e.nodeType,
851
+ tagName: e.tagName,
852
+ className: e.className,
853
+ id: e.id
854
+ } : null : null, window.stencilSerializeEvent = e => ({
855
+ bubbles: e.bubbles,
856
+ cancelBubble: e.cancelBubble,
857
+ cancelable: e.cancelable,
858
+ composed: e.composed,
859
+ currentTarget: window.stencilSerializeEventTarget(e.currentTarget),
860
+ defaultPrevented: e.defaultPrevented,
861
+ detail: e.detail,
862
+ eventPhase: e.eventPhase,
863
+ isTrusted: e.isTrusted,
864
+ returnValue: e.returnValue,
865
+ srcElement: window.stencilSerializeEventTarget(e.srcElement),
866
+ target: window.stencilSerializeEventTarget(e.target),
867
+ timeStamp: e.timeStamp,
868
+ type: e.type,
869
+ isSerializedEvent: !0
870
+ }), "complete" === window.document.readyState ? t() : document.addEventListener("readystatechange", (function(e) {
871
+ "complete" == e.target.readyState && t();
872
+ }));
873
+ }
874
+
875
+ async function find(e, t, r) {
876
+ const {lightSelector: s, shadowSelector: n, text: o, contains: i} = getSelector(r);
877
+ let a;
878
+ if (a = "string" == typeof s ? await async function l(e, t, r, s) {
879
+ let n = await t.$(r);
880
+ if (!n) return null;
881
+ if (s) {
882
+ const t = await e.evaluateHandle(((e, t) => {
883
+ if (!e.shadowRoot) throw new Error(`shadow root does not exist for element: ${e.tagName.toLowerCase()}`);
884
+ return e.shadowRoot.querySelector(t);
885
+ }), n, s);
886
+ if (await n.dispose(), !t) return null;
887
+ n = t.asElement();
888
+ }
889
+ return n;
890
+ }(e, t, s, n) : await async function c(e, t, r, s) {
891
+ const n = await e.evaluateHandle(((e, t, r) => {
892
+ let s = null;
893
+ return function e(n) {
894
+ if (n && !s) if (3 === n.nodeType) {
895
+ if ("string" == typeof t && n.textContent.trim() === t) return void (s = n.parentElement);
896
+ if ("string" == typeof r && n.textContent.includes(r)) return void (s = n.parentElement);
897
+ } else {
898
+ if ("SCRIPT" === n.nodeName || "STYLE" === n.nodeName) return;
899
+ if (e(n.shadowRoot), n.childNodes) for (let t = 0; t < n.childNodes.length; t++) e(n.childNodes[t]);
900
+ }
901
+ }(e), s;
902
+ }), t, r, s);
903
+ return n ? n.asElement() : null;
904
+ }(e, t, o, i), !a) return null;
905
+ const u = new E2EElement(e, a);
906
+ return await u.e2eSync(), u;
907
+ }
908
+
909
+ async function findAll(e, t, r) {
910
+ const s = [], {lightSelector: n, shadowSelector: o} = getSelector(r), i = await t.$$(n);
911
+ if (0 === i.length) return s;
912
+ if (o) for (let t = 0; t < i.length; t++) {
913
+ const r = i[t].executionContext(), n = await r.evaluateHandle(((e, t) => {
914
+ if (!e.shadowRoot) throw new Error(`shadow root does not exist for element: ${e.tagName.toLowerCase()}`);
915
+ return e.shadowRoot.querySelectorAll(t);
916
+ }), i[t], o);
917
+ await i[t].dispose();
918
+ const a = await n.getProperties();
919
+ await n.dispose();
920
+ for (const t of a.values()) {
921
+ const r = t.asElement();
922
+ if (r) {
923
+ const t = new E2EElement(e, r);
924
+ await t.e2eSync(), s.push(t);
925
+ }
926
+ }
927
+ } else for (let t = 0; t < i.length; t++) {
928
+ const r = new E2EElement(e, i[t]);
929
+ await r.e2eSync(), s.push(r);
930
+ }
931
+ return s;
932
+ }
933
+
934
+ function getSelector(e) {
935
+ const t = {
936
+ lightSelector: null,
937
+ shadowSelector: null,
938
+ text: null,
939
+ contains: null
940
+ };
941
+ if ("string" == typeof e) {
942
+ const r = e.split(">>>");
943
+ t.lightSelector = r[0].trim(), t.shadowSelector = r.length > 1 ? r[1].trim() : null;
944
+ } else if ("string" == typeof e.text) t.text = e.text.trim(); else {
945
+ if ("string" != typeof e.contains) throw new Error(`invalid find selector: ${e}`);
946
+ t.contains = e.contains.trim();
947
+ }
948
+ return t;
949
+ }
950
+
951
+ async function writeScreenshotData(e, t) {
952
+ const r = function s(e, t) {
953
+ const r = `${t}.json`;
954
+ return path__default.default.join(e, r);
955
+ }(e, t.id), n = JSON.stringify(t, null, 2);
956
+ await writeFile(r, n);
957
+ }
958
+
959
+ function writeFile(e, t) {
960
+ return new Promise(((r, s) => {
961
+ fs__default.default.writeFile(e, t, (e => {
962
+ e ? s(e) : r();
963
+ }));
964
+ }));
965
+ }
966
+
967
+ async function compareScreenshot(e, t, r, s, n, o, i, a) {
968
+ const l = `${crypto$3.createHash("md5").update(r).digest("hex")}.png`, c = path$2.join(t.imagesDir, l);
969
+ await async function u(e, t) {
970
+ const r = await function s(e) {
971
+ return new Promise((t => {
972
+ fs__default.default.access(e, (e => t(!e)));
973
+ }));
974
+ }(e);
975
+ r || await writeFile(e, t);
976
+ }(c, r), r = null, i && (i = normalizePath(path$2.relative(t.rootDir, i)));
977
+ const d = function h(e, t) {
978
+ if ("string" != typeof t || 0 === t.trim().length) throw new Error("invalid test description");
979
+ const r = crypto$3.createHash("md5");
980
+ return r.update(t + ":"), r.update(e.userAgent + ":"), r.update(e.viewport.width + ":"),
981
+ r.update(e.viewport.height + ":"), r.update(e.viewport.deviceScaleFactor + ":"),
982
+ r.update(e.viewport.hasTouch + ":"), r.update(e.viewport.isMobile + ":"), r.digest("hex").slice(0, 8).toLowerCase();
983
+ }(e, s), p = {
984
+ id: d,
985
+ image: l,
986
+ device: e.device,
987
+ userAgent: e.userAgent,
988
+ desc: s,
989
+ testPath: i,
990
+ width: n,
991
+ height: o,
992
+ deviceScaleFactor: e.viewport.deviceScaleFactor,
993
+ hasTouch: e.viewport.hasTouch,
994
+ isLandscape: e.viewport.isLandscape,
995
+ isMobile: e.viewport.isMobile,
996
+ diff: {
997
+ id: d,
998
+ desc: s,
999
+ imageA: l,
1000
+ imageB: l,
1001
+ mismatchedPixels: 0,
1002
+ device: e.device,
1003
+ userAgent: e.userAgent,
1004
+ width: n,
1005
+ height: o,
1006
+ deviceScaleFactor: e.viewport.deviceScaleFactor,
1007
+ hasTouch: e.viewport.hasTouch,
1008
+ isLandscape: e.viewport.isLandscape,
1009
+ isMobile: e.viewport.isMobile,
1010
+ allowableMismatchedPixels: t.allowableMismatchedPixels,
1011
+ allowableMismatchedRatio: t.allowableMismatchedRatio,
1012
+ testPath: i
1013
+ }
1014
+ };
1015
+ if (t.updateMaster) return await writeScreenshotData(t.currentBuildDir, p), p.diff;
1016
+ const f = t.masterScreenshots[p.id];
1017
+ if (!f) return await writeScreenshotData(t.currentBuildDir, p), p.diff;
1018
+ if (p.diff.imageA = f, p.diff.imageA !== p.diff.imageB) {
1019
+ p.diff.cacheKey = function m(e, t, r) {
1020
+ const s = crypto$3.createHash("md5");
1021
+ return s.update(`${e}:${t}:${r}`), s.digest("hex").slice(0, 10);
1022
+ }(p.diff.imageA, p.diff.imageB, a);
1023
+ const r = t.cache[p.diff.cacheKey];
1024
+ if ("number" != typeof r || isNaN(r)) {
1025
+ const r = Math.round(e.viewport.width * e.viewport.deviceScaleFactor), s = Math.round(e.viewport.height * e.viewport.deviceScaleFactor), n = {
1026
+ imageAPath: path$2.join(t.imagesDir, p.diff.imageA),
1027
+ imageBPath: path$2.join(t.imagesDir, p.diff.imageB),
1028
+ width: r,
1029
+ height: s,
1030
+ pixelmatchThreshold: a
1031
+ };
1032
+ p.diff.mismatchedPixels = await async function g(e, t) {
1033
+ return new Promise(((r, s) => {
1034
+ const n = .5 * jasmine.DEFAULT_TIMEOUT_INTERVAL, o = setTimeout((() => {
1035
+ s(`getMismatchedPixels timeout: ${n}ms`);
1036
+ }), n);
1037
+ try {
1038
+ const n = {
1039
+ execArgv: process.execArgv.filter((e => !/^--(debug|inspect)/.test(e))),
1040
+ env: process.env,
1041
+ cwd: process.cwd(),
1042
+ stdio: [ "pipe", "pipe", "pipe", "ipc" ]
1043
+ }, i = child_process$2.fork(e, [], n);
1044
+ i.on("message", (e => {
1045
+ i.kill(), clearTimeout(o), r(e);
1046
+ })), i.on("error", (e => {
1047
+ clearTimeout(o), s(e);
1048
+ })), i.send(t);
1049
+ } catch (e) {
1050
+ clearTimeout(o), s(`getMismatchedPixels error: ${e}`);
1051
+ }
1052
+ }));
1053
+ }(t.pixelmatchModulePath, n);
1054
+ } else p.diff.mismatchedPixels = r;
1055
+ }
1056
+ return await writeScreenshotData(t.currentBuildDir, p), p.diff;
1057
+ }
1058
+
1059
+ async function e2eGoTo(e, t, r = {}) {
1060
+ if (e.isClosed()) throw new Error("e2eGoTo unavailable: page already closed");
1061
+ if ("string" != typeof t) throw new Error("invalid gotoTest() url");
1062
+ if (!t.startsWith("/")) throw new Error("gotoTest() url must start with /");
1063
+ const s = env.__STENCIL_BROWSER_URL__;
1064
+ if ("string" != typeof s) throw new Error("invalid gotoTest() browser url");
1065
+ const n = s + t.substring(1);
1066
+ r.waitUntil || (r.waitUntil = env.__STENCIL_BROWSER_WAIT_UNTIL);
1067
+ const o = await e._e2eGoto(n, r);
1068
+ if (!o.ok()) throw new Error(`Testing unable to load ${t}, HTTP status: ${o.status()}`);
1069
+ return await waitForStencil(e, r), o;
1070
+ }
1071
+
1072
+ async function e2eSetContent(e, t, r = {}) {
1073
+ if (e.isClosed()) throw new Error("e2eSetContent unavailable: page already closed");
1074
+ if ("string" != typeof t) throw new Error("invalid e2eSetContent() html");
1075
+ const s = [], n = env.__STENCIL_APP_SCRIPT_URL__;
1076
+ if ("string" != typeof n) throw new Error("invalid e2eSetContent() app script url");
1077
+ s.push("<!doctype html>"), s.push("<html>"), s.push("<head>");
1078
+ const o = env.__STENCIL_APP_STYLE_URL__;
1079
+ "string" == typeof o && s.push(`<link rel="stylesheet" href="${o}">`), s.push(`<script type="module" src="${n}"><\/script>`),
1080
+ s.push("</head>"), s.push("<body>"), s.push(t), s.push("</body>"), s.push("</html>");
1081
+ const i = env.__STENCIL_BROWSER_URL__;
1082
+ await e.setRequestInterception(!0), e.on("request", (e => {
1083
+ i === e.url() ? e.respond({
1084
+ status: 200,
1085
+ contentType: "text/html",
1086
+ body: s.join("\n")
1087
+ }) : e.continue();
1088
+ })), r.waitUntil || (r.waitUntil = env.__STENCIL_BROWSER_WAIT_UNTIL);
1089
+ const a = await e._e2eGoto(i, r);
1090
+ if (!a.ok()) throw new Error("Testing unable to load content");
1091
+ return await waitForStencil(e, r), a;
1092
+ }
1093
+
1094
+ async function waitForStencil(e, t) {
1095
+ try {
1096
+ const r = "number" == typeof t.timeout ? t.timeout : 4750;
1097
+ await e.waitForFunction("window.stencilAppLoaded", {
1098
+ timeout: r
1099
+ });
1100
+ } catch (e) {
1101
+ throw new Error("App did not load in allowed time. Please ensure the content loads a stencil application.");
1102
+ }
1103
+ }
1104
+
1105
+ async function waitForChanges(e) {
1106
+ try {
1107
+ if (e.isClosed()) return;
1108
+ if (await Promise.all(e._e2eElements.map((e => e.e2eRunActions()))), e.isClosed()) return;
1109
+ if (await e.evaluate((() => new Promise((e => {
1110
+ requestAnimationFrame((() => {
1111
+ const t = [], r = (e, t) => {
1112
+ if (null != e) {
1113
+ "shadowRoot" in e && e.shadowRoot instanceof ShadowRoot && r(e.shadowRoot, t);
1114
+ const s = e.children, n = s.length;
1115
+ for (let e = 0; e < n; e++) {
1116
+ const n = s[e];
1117
+ null != n && (n.tagName.includes("-") && "function" == typeof n.componentOnReady && t.push(n.componentOnReady()),
1118
+ r(n, t));
1119
+ }
1120
+ }
1121
+ };
1122
+ r(document.documentElement, t), Promise.all(t).then((() => {
1123
+ e();
1124
+ })).catch((() => {
1125
+ e();
1126
+ }));
1127
+ }));
1128
+ })))), e.isClosed()) return;
1129
+ "function" == typeof e.waitForTimeout ? await e.waitForTimeout(100) : await e.waitFor(100),
1130
+ await Promise.all(e._e2eElements.map((e => e.e2eSync())));
1131
+ } catch (e) {}
1132
+ }
1133
+
1134
+ function serializeConsoleMessage(e) {
1135
+ return `${e.text()} ${function t(e) {
1136
+ let t = "";
1137
+ return e && e.url && (t = `\nLocation: ${e.url}`, e.lineNumber && (t += `:${e.lineNumber}`),
1138
+ e.columnNumber && (t += `:${e.columnNumber}`)), t;
1139
+ }(e.location())}`;
1140
+ }
1141
+
1142
+ function findRootComponent(e, t) {
1143
+ if (null != t) {
1144
+ const r = t.children, s = r.length;
1145
+ for (let t = 0; t < s; t++) {
1146
+ const s = r[t];
1147
+ if (e.has(s.nodeName.toLowerCase())) return s;
1148
+ }
1149
+ for (let t = 0; t < s; t++) {
1150
+ const s = findRootComponent(e, r[t]);
1151
+ if (null != s) return s;
1152
+ }
1153
+ }
1154
+ return null;
1155
+ }
1156
+
1157
+ function createBuildId() {
1158
+ const e = new Date;
1159
+ let t = e.getFullYear() + "";
1160
+ return t += ("0" + (e.getMonth() + 1)).slice(-2), t += ("0" + e.getDate()).slice(-2),
1161
+ t += ("0" + e.getHours()).slice(-2), t += ("0" + e.getMinutes()).slice(-2), t += ("0" + e.getSeconds()).slice(-2),
1162
+ t;
1163
+ }
1164
+
1165
+ function createBuildMessage() {
1166
+ const e = new Date;
1167
+ let t = e.getFullYear() + "-";
1168
+ return t += ("0" + (e.getMonth() + 1)).slice(-2) + "-", t += ("0" + e.getDate()).slice(-2) + " ",
1169
+ t += ("0" + e.getHours()).slice(-2) + ":", t += ("0" + e.getMinutes()).slice(-2) + ":",
1170
+ t += ("0" + e.getSeconds()).slice(-2), `Build: ${t}`;
1171
+ }
1172
+
1173
+ function getAppStyleUrl(e, t) {
1174
+ return e.globalStyle ? getAppUrl(e, t, `${e.fsNamespace}.css`) : null;
1175
+ }
1176
+
1177
+ function getAppUrl(e, t, r) {
1178
+ const s = e.outputTargets.find(isOutputTargetWww);
1179
+ if (s) {
1180
+ const e = s.buildDir, n = path$2.join(e, r), o = path$2.relative(s.dir, n);
1181
+ return new URL(o, t).href;
1182
+ }
1183
+ const n = e.outputTargets.find(isOutputTargetDistLazy);
1184
+ if (n) {
1185
+ const s = n.esmDir, o = path$2.join(s, r), i = path$2.relative(e.rootDir, o);
1186
+ return new URL(i, t).href;
1187
+ }
1188
+ return t;
1189
+ }
1190
+
1191
+ var posix, pathBrowserify, caller, pathParse, parse, getNodeModulesDirs, nodeModulesPaths, normalizeOptions, ERROR_MESSAGE, slice, toStr, implementation, functionBind, src, isCoreModule, realpathFS$1, defaultIsFile$1, defaultIsDir$1, defaultRealpath, maybeRealpath, defaultReadPackage, getPackageCandidates$1, async, current, core, mod, core_1, isCore, realpathFS, defaultIsFile, defaultIsDir, defaultRealpathSync, maybeRealpathSync, defaultReadPackageSync, getPackageCandidates, sync, resolve;
1192
+
1193
+ const stencil_js = require("../compiler/stencil.js"), appData = _lazyRequire("@stencil/core/internal/app-data"), testing = _lazyRequire("@stencil/core/internal/testing"), index_cjs = _lazyRequire("../mock-doc/index.cjs"), path$2 = require("path"), crypto$3 = require("crypto"), os$2 = require("os"), process$3 = require("process"), fs$2 = require("fs"), index_js = _lazyRequire("../dev-server/index.js"), child_process$2 = require("child_process"), path__default = _interopDefaultLegacy(path$2), os__namespace = _interopNamespace(os$2), process__namespace = _interopNamespace(process$3), fs__default = _interopDefaultLegacy(fs$2), formatComponentRuntimeMembers = (e, t = !0) => ({
1194
+ ...formatPropertiesRuntimeMember(e.properties),
1195
+ ...formatStatesRuntimeMember(e.states),
1196
+ ...t ? formatMethodsRuntimeMember(e.methods) : {}
1197
+ }), formatPropertiesRuntimeMember = e => {
1198
+ const t = {};
1199
+ return e.forEach((e => {
1200
+ t[e.name] = trimFalsy([ formatFlags(e), formatAttrName(e) ]);
1201
+ })), t;
1202
+ }, formatFlags = e => {
1203
+ let t = formatPropType(e.type);
1204
+ return e.mutable && (t |= 1024), e.reflect && (t |= 512), t;
1205
+ }, formatAttrName = e => {
1206
+ if ("string" == typeof e.attribute) {
1207
+ if (e.name === e.attribute) return;
1208
+ return e.attribute;
1209
+ }
1210
+ }, formatPropType = e => "string" === e ? 1 : "number" === e ? 2 : "boolean" === e ? 4 : "any" === e ? 8 : 16, formatStatesRuntimeMember = e => {
1211
+ const t = {};
1212
+ return e.forEach((e => {
1213
+ t[e.name] = [ 32 ];
1214
+ })), t;
1215
+ }, formatMethodsRuntimeMember = e => {
1216
+ const t = {};
1217
+ return e.forEach((e => {
1218
+ t[e.name] = [ 64 ];
1219
+ })), t;
1220
+ }, formatHostListeners = e => e.listeners.map((e => [ computeListenerFlags(e), e.name, e.method ])), computeListenerFlags = e => {
1221
+ let t = 0;
1222
+ switch (e.capture && (t |= 2), e.passive && (t |= 1), e.target) {
1223
+ case "document":
1224
+ t |= 4;
1225
+ break;
1226
+
1227
+ case "window":
1228
+ t |= 8;
1229
+ break;
1230
+
1231
+ case "body":
1232
+ t |= 16;
1233
+ break;
1234
+
1235
+ case "parent":
1236
+ t |= 32;
1237
+ }
1238
+ return t;
1239
+ }, trimFalsy = e => {
1240
+ const t = e;
1241
+ for (let e = t.length - 1; e >= 0 && !t[e]; e--) t.pop();
1242
+ return t;
1243
+ }, noop = () => {}, isFunction = e => "function" == typeof e, isString = e => "string" == typeof e, isIterable = e => (e => null != e)(e) && isFunction(e[Symbol.iterator]), windowsPathRegex = /^(?:[a-zA-Z]:|[\\/]{2}[^\\/]+[\\/]+[^\\/]+)?[\\/]$/, hasError = e => null != e && 0 !== e.length && e.some((e => "error" === e.level && "runtime" !== e.type)), normalizePath = e => {
1244
+ if ("string" != typeof e) throw new Error("invalid path to normalize");
1245
+ e = normalizeSlashes(e.trim());
1246
+ const t = pathComponents(e, getRootLength(e)), r = reducePathComponents(t), s = r[0], n = r[1], o = s + r.slice(1).join("/");
1247
+ return "" === o ? "." : "" === s && n && e.includes("/") && !n.startsWith(".") && !n.startsWith("@") ? "./" + o : o;
1248
+ }, normalizeSlashes = e => e.replace(backslashRegExp, "/"), backslashRegExp = /\\/g, reducePathComponents = e => {
1249
+ if (!Array.isArray(e) || 0 === e.length) return [];
1250
+ const t = [ e[0] ];
1251
+ for (let r = 1; r < e.length; r++) {
1252
+ const s = e[r];
1253
+ if (s && "." !== s) {
1254
+ if (".." === s) if (t.length > 1) {
1255
+ if (".." !== t[t.length - 1]) {
1256
+ t.pop();
1257
+ continue;
1258
+ }
1259
+ } else if (t[0]) continue;
1260
+ t.push(s);
1261
+ }
1262
+ }
1263
+ return t;
1264
+ }, getRootLength = e => {
1265
+ const t = getEncodedRootLength(e);
1266
+ return t < 0 ? ~t : t;
1267
+ }, getEncodedRootLength = e => {
1268
+ if (!e) return 0;
1269
+ const t = e.charCodeAt(0);
1270
+ if (47 === t || 92 === t) {
1271
+ if (e.charCodeAt(1) !== t) return 1;
1272
+ const r = e.indexOf(47 === t ? "/" : "\\", 2);
1273
+ return r < 0 ? e.length : r + 1;
1274
+ }
1275
+ if (isVolumeCharacter(t) && 58 === e.charCodeAt(1)) {
1276
+ const t = e.charCodeAt(2);
1277
+ if (47 === t || 92 === t) return 3;
1278
+ if (2 === e.length) return 2;
1279
+ }
1280
+ const r = e.indexOf("://");
1281
+ if (-1 !== r) {
1282
+ const t = r + "://".length, s = e.indexOf("/", t);
1283
+ if (-1 !== s) {
1284
+ const n = e.slice(0, r), o = e.slice(t, s);
1285
+ if ("file" === n && ("" === o || "localhost" === o) && isVolumeCharacter(e.charCodeAt(s + 1))) {
1286
+ const t = getFileUrlVolumeSeparatorEnd(e, s + 2);
1287
+ if (-1 !== t) {
1288
+ if (47 === e.charCodeAt(t)) return ~(t + 1);
1289
+ if (t === e.length) return ~t;
1290
+ }
1291
+ }
1292
+ return ~(s + 1);
1293
+ }
1294
+ return ~e.length;
1295
+ }
1296
+ return 0;
1297
+ }, isVolumeCharacter = e => e >= 97 && e <= 122 || e >= 65 && e <= 90, getFileUrlVolumeSeparatorEnd = (e, t) => {
1298
+ const r = e.charCodeAt(t);
1299
+ if (58 === r) return t + 1;
1300
+ if (37 === r && 51 === e.charCodeAt(t + 1)) {
1301
+ const r = e.charCodeAt(t + 2);
1302
+ if (97 === r || 65 === r) return t + 3;
1303
+ }
1304
+ return -1;
1305
+ }, pathComponents = (e, t) => {
1306
+ const r = e.substring(0, t), s = e.substring(t).split("/"), n = s.length;
1307
+ return n > 0 && !s[n - 1] && s.pop(), [ r, ...s ];
1308
+ }, normalizeFsPath = e => normalizePath(e.split("?")[0].replace(/\0/g, "")), flattenDiagnosticMessageText = (e, t) => {
1309
+ var r, s;
1310
+ if ("string" == typeof t) return t;
1311
+ if (void 0 === t) return "";
1312
+ const n = [], o = (null !== (s = null === (r = e.file) || void 0 === r ? void 0 : r.fileName) && void 0 !== s ? s : "").includes("stencil.config");
1313
+ o && n.push(2322);
1314
+ let i = "";
1315
+ if (!n.includes(t.code) && (i = t.messageText, isIterable(t.next))) for (const r of t.next) i += flattenDiagnosticMessageText(e, r);
1316
+ return o && (i = i.replace("type 'StencilConfig'", "Stencil Config"), i = i.replace("Object literal may only specify known properties, but ", ""),
1317
+ i = i.replace("Object literal may only specify known properties, and ", "")), i.trim();
1318
+ }, isJest27TransformOptions = e => null != e && "object" == typeof e && e.hasOwnProperty("config");
1319
+
1320
+ let _tsCompilerOptions = null, _tsCompilerOptionsKey = null;
1321
+
1322
+ const jestPreprocessor = {
1323
+ process(e, t, r, s) {
1324
+ if (isJest27TransformOptions(r) && (s = r.config), !s) throw "Unable to find Jest transformation options.";
1325
+ if (function n(e, t) {
1326
+ var r;
1327
+ const s = (null !== (r = e.split(".").pop()) && void 0 !== r ? r : "").toLowerCase().split("?")[0];
1328
+ if ("ts" === s || "tsx" === s || "jsx" === s) return !0;
1329
+ if ("mjs" === s) return !0;
1330
+ if ("js" === s) {
1331
+ if (t.includes("import ") || t.includes("import.") || t.includes("import(")) return !0;
1332
+ if (t.includes("export ")) return !0;
1333
+ }
1334
+ return "css" === s;
1335
+ }(t, e)) {
1336
+ const r = {
1337
+ file: t,
1338
+ currentDirectory: s.rootDir
1339
+ }, n = getCompilerOptions(s.rootDir);
1340
+ n && (n.baseUrl && (r.baseUrl = n.baseUrl), n.paths && (r.paths = n.paths));
1341
+ const o = transpile(e, r), i = o.diagnostics.some((e => "error" === e.level));
1342
+ if (o.diagnostics && i) {
1343
+ const e = o.diagnostics.map(formatDiagnostic).join("\n\n");
1344
+ throw new Error(e);
1345
+ }
1346
+ return o.code;
1347
+ }
1348
+ return e;
1349
+ },
1350
+ getCacheKey(e, t, r, s) {
1351
+ if (isJest27TransformOptions(r) && (s = r.config), !s) throw "Unable to find Jest transformation options.";
1352
+ if (!_tsCompilerOptionsKey) {
1353
+ const e = getCompilerOptions(s.rootDir);
1354
+ _tsCompilerOptionsKey = JSON.stringify(e);
1355
+ }
1356
+ return [ process.version, _tsCompilerOptionsKey, e, t, r, !!s.instrument, 7 ].join(":");
1357
+ }
1358
+ }, deepEqual = function e(t, r) {
1359
+ if (t === r) return !0;
1360
+ if (t && r && "object" == typeof t && "object" == typeof r) {
1361
+ const s = Array.isArray(t), n = Array.isArray(r);
1362
+ let o, i, a;
1363
+ if (s && n) {
1364
+ if (i = t.length, i != r.length) return !1;
1365
+ for (o = i; 0 != o--; ) if (!e(t[o], r[o])) return !1;
1366
+ return !0;
1367
+ }
1368
+ if (s != n) return !1;
1369
+ const l = t instanceof Date, c = r instanceof Date;
1370
+ if (l != c) return !1;
1371
+ if (l && c) return t.getTime() == r.getTime();
1372
+ const u = t instanceof RegExp, d = r instanceof RegExp;
1373
+ if (u != d) return !1;
1374
+ if (u && d) return t.toString() == r.toString();
1375
+ const h = Object.keys(t);
1376
+ if (i = h.length, i !== Object.keys(r).length) return !1;
1377
+ for (o = i; 0 != o--; ) if (!Object.prototype.hasOwnProperty.call(r, h[o])) return !1;
1378
+ for (o = i; 0 != o--; ) if (a = h[o], !e(t[a], r[a])) return !1;
1379
+ return !0;
1380
+ }
1381
+ return t != t && r != r;
1382
+ }, expectExtend = {
1383
+ toEqualAttribute: function toEqualAttribute(e, t, r) {
1384
+ if (!e) throw new Error("expect toMatchAttribute value is null");
1385
+ if ("function" == typeof e.then) throw new Error("element must be a resolved value, not a promise, before it can be tested");
1386
+ if (1 !== e.nodeType) throw new Error("expect toMatchAttribute value is not an element");
1387
+ let s = e.getAttribute(t);
1388
+ null != r && (r = String(r)), null != s && (s = String(s));
1389
+ const n = r === s;
1390
+ return {
1391
+ message: () => `expected attribute ${t} "${r}" to ${n ? "not " : ""}equal "${s}"`,
1392
+ pass: n
1393
+ };
1394
+ },
1395
+ toEqualAttributes: function toEqualAttributes(e, t) {
1396
+ if (!e) throw new Error("expect toEqualAttributes value is null");
1397
+ if ("function" == typeof e.then) throw new Error("element must be a resolved value, not a promise, before it can be tested");
1398
+ if (1 !== e.nodeType) throw new Error("expect toEqualAttributes value is not an element");
1399
+ const r = Object.keys(t), s = r.every((r => {
1400
+ let s = t[r];
1401
+ return null != s && (s = String(s)), e.getAttribute(r) === s;
1402
+ }));
1403
+ return {
1404
+ message: () => `expected attributes to ${s ? "not " : ""}equal ${r.map((e => `[${e}="${t[e]}"]`)).join(", ")}`,
1405
+ pass: s
1406
+ };
1407
+ },
1408
+ toEqualHtml: function toEqualHtml(e, t) {
1409
+ return compareHtml(e, t, !0);
1410
+ },
1411
+ toEqualLightHtml: function toEqualLightHtml(e, t) {
1412
+ return compareHtml(e, t, !1);
1413
+ },
1414
+ toEqualText: function toEqualText(e, t) {
1415
+ if (null == e) throw new Error(`expect toEqualText() value is "${e}"`);
1416
+ if ("function" == typeof e.then) throw new Error("element must be a resolved value, not a promise, before it can be tested");
1417
+ let r;
1418
+ 1 === e.nodeType ? r = e.textContent.replace(/\s\s+/g, " ").trim() : null != e && (r = String(e).replace(/\s\s+/g, " ").trim()),
1419
+ "string" == typeof t && (t = t.replace(/\s\s+/g, " ").trim());
1420
+ const s = r === t;
1421
+ return {
1422
+ message: () => `expected textContent "${t}" to ${s ? "not " : ""}equal "${r}"`,
1423
+ pass: s
1424
+ };
1425
+ },
1426
+ toHaveAttribute: function toHaveAttribute(e, t) {
1427
+ if (!e) throw new Error("expect toHaveAttribute value is null");
1428
+ if ("function" == typeof e.then) throw new Error("element must be a resolved value, not a promise, before it can be tested");
1429
+ if (1 !== e.nodeType) throw new Error("expect toHaveAttribute value is not an element");
1430
+ const r = e.hasAttribute(t);
1431
+ return {
1432
+ message: () => `expected to ${r ? "not " : ""}have the attribute "${t}"`,
1433
+ pass: r
1434
+ };
1435
+ },
1436
+ toHaveClass: function toHaveClass(e, t) {
1437
+ if (!e) throw new Error("expect toHaveClass value is null");
1438
+ if ("function" == typeof e.then) throw new Error("element must be a resolved value, not a promise, before it can be tested");
1439
+ if (1 !== e.nodeType) throw new Error("expect toHaveClass value is not an element");
1440
+ const r = e.classList.contains(t);
1441
+ return {
1442
+ message: () => `expected to ${r ? "not " : ""}have css class "${t}"`,
1443
+ pass: r
1444
+ };
1445
+ },
1446
+ toHaveClasses,
1447
+ toMatchClasses: function toMatchClasses(e, t) {
1448
+ let {pass: r} = toHaveClasses(e, t);
1449
+ return r && (r = t.length === e.classList.length), {
1450
+ message: () => `expected to ${r ? "not " : ""}match css classes "${t.join(" ")}", but className is "${e.className}"`,
1451
+ pass: r
1452
+ };
1453
+ },
1454
+ toHaveReceivedEvent: function toHaveReceivedEvent(e) {
1455
+ if (!e) throw new Error("toHaveReceivedEvent event spy is null");
1456
+ if ("function" == typeof e.then) throw new Error("event spy must be a resolved value, not a promise, before it can be tested");
1457
+ if (!e.eventName) throw new Error("toHaveReceivedEvent did not receive an event spy");
1458
+ const t = e.events.length > 0;
1459
+ return {
1460
+ message: () => `expected to have ${t ? "not " : ""}called "${e.eventName}" event`,
1461
+ pass: t
1462
+ };
1463
+ },
1464
+ toHaveReceivedEventDetail: function toHaveReceivedEventDetail(e, t) {
1465
+ if (!e) throw new Error("toHaveReceivedEventDetail event spy is null");
1466
+ if ("function" == typeof e.then) throw new Error("event spy must be a resolved value, not a promise, before it can be tested");
1467
+ if (!e.eventName) throw new Error("toHaveReceivedEventDetail did not receive an event spy");
1468
+ if (!e.lastEvent) throw new Error(`event "${e.eventName}" was not received`);
1469
+ const r = deepEqual(e.lastEvent.detail, t);
1470
+ return expect(e.lastEvent.detail).toEqual(t), {
1471
+ message: () => `expected event "${e.eventName}" detail to ${r ? "not " : ""}equal`,
1472
+ pass: r
1473
+ };
1474
+ },
1475
+ toHaveReceivedEventTimes: function toHaveReceivedEventTimes(e, t) {
1476
+ if (!e) throw new Error("toHaveReceivedEventTimes event spy is null");
1477
+ if ("function" == typeof e.then) throw new Error("event spy must be a resolved value, not a promise, before it can be tested");
1478
+ if (!e.eventName) throw new Error("toHaveReceivedEventTimes did not receive an event spy");
1479
+ return {
1480
+ message: () => `expected event "${e.eventName}" to have been called ${t} times, but was called ${e.events.length} time${e.events.length > 1 ? "s" : ""}`,
1481
+ pass: e.length === t
1482
+ };
1483
+ },
1484
+ toHaveFirstReceivedEventDetail: function toHaveFirstReceivedEventDetail(e, t) {
1485
+ if (!e) throw new Error("toHaveFirstReceivedEventDetail event spy is null");
1486
+ if ("function" == typeof e.then) throw new Error("event spy must be a resolved value, not a promise, before it can be tested");
1487
+ if (!e.eventName) throw new Error("toHaveFirstReceivedEventDetail did not receive an event spy");
1488
+ if (!e.firstEvent) throw new Error(`event "${e.eventName}" was not received`);
1489
+ const r = deepEqual(e.firstEvent.detail, t);
1490
+ return expect(e.lastEvent.detail).toEqual(t), {
1491
+ message: () => `expected event "${e.eventName}" detail to ${r ? "not " : ""}equal`,
1492
+ pass: r
1493
+ };
1494
+ },
1495
+ toHaveNthReceivedEventDetail: function toHaveNthReceivedEventDetail(e, t, r) {
1496
+ if (!e) throw new Error("toHaveNthReceivedEventDetail event spy is null");
1497
+ if ("function" == typeof e.then) throw new Error("event spy must be a resolved value, not a promise, before it can be tested");
1498
+ if (!e.eventName) throw new Error("toHaveNthReceivedEventDetail did not receive an event spy");
1499
+ if (!e.firstEvent) throw new Error(`event "${e.eventName}" was not received`);
1500
+ const s = e.events[t];
1501
+ if (!s) throw new Error(`event at index ${t} was not received`);
1502
+ const n = deepEqual(s.detail, r);
1503
+ return expect(s.detail).toEqual(r), {
1504
+ message: () => `expected event "${e.eventName}" detail to ${n ? "not " : ""}equal`,
1505
+ pass: n
1506
+ };
1507
+ },
1508
+ toMatchScreenshot: function toMatchScreenshot(e, t = {}) {
1509
+ if (!e) throw new Error("expect toMatchScreenshot value is null");
1510
+ if ("function" == typeof e.then) throw new Error("expect(compare).toMatchScreenshot() must be a resolved value, not a promise, before it can be tested");
1511
+ if ("number" != typeof e.mismatchedPixels) throw new Error("expect toMatchScreenshot() value is not a screenshot compare");
1512
+ const r = e.device || e.userAgent;
1513
+ if ("number" == typeof t.allowableMismatchedRatio) {
1514
+ if (t.allowableMismatchedRatio < 0 || t.allowableMismatchedRatio > 1) throw new Error("expect toMatchScreenshot() allowableMismatchedRatio must be a value ranging from 0 to 1");
1515
+ const s = e.mismatchedPixels / (e.width * e.deviceScaleFactor * (e.height * e.deviceScaleFactor));
1516
+ return {
1517
+ message: () => `${r}: screenshot has a mismatch ratio of "${s}" for "${e.desc}", but expected ratio to be less than "${t.allowableMismatchedRatio}"`,
1518
+ pass: s <= t.allowableMismatchedRatio
1519
+ };
1520
+ }
1521
+ if ("number" == typeof t.allowableMismatchedPixels) {
1522
+ if (t.allowableMismatchedPixels < 0) throw new Error("expect toMatchScreenshot() allowableMismatchedPixels value must be a value that is 0 or greater");
1523
+ return {
1524
+ message: () => `${r}: screenshot has "${e.mismatchedPixels}" mismatched pixels for "${e.desc}", but expected less than "${t.allowableMismatchedPixels}" mismatched pixels`,
1525
+ pass: e.mismatchedPixels <= t.allowableMismatchedPixels
1526
+ };
1527
+ }
1528
+ if ("number" == typeof e.allowableMismatchedRatio) {
1529
+ const t = e.mismatchedPixels / (e.width * e.deviceScaleFactor * (e.height * e.deviceScaleFactor));
1530
+ return {
1531
+ message: () => `${r}: screenshot has a mismatch ratio of "${t}" for "${e.desc}", but expected ratio to be less than "${e.allowableMismatchedRatio}"`,
1532
+ pass: t <= e.allowableMismatchedRatio
1533
+ };
1534
+ }
1535
+ if ("number" == typeof e.allowableMismatchedPixels) return {
1536
+ message: () => `${r}: screenshot has "${e.mismatchedPixels}" mismatched pixels for "${e.desc}", but expected less than "${e.allowableMismatchedPixels}" mismatched pixels`,
1537
+ pass: e.mismatchedPixels <= e.allowableMismatchedPixels
1538
+ };
1539
+ throw new Error("expect toMatchScreenshot() missing allowableMismatchedPixels in testing config");
1540
+ }
1541
+ };
1542
+
1543
+ class MockHeaders {
1544
+ constructor(e) {
1545
+ if (this._values = [], "object" == typeof e) if ("function" == typeof e[Symbol.iterator]) {
1546
+ const t = [];
1547
+ for (const r of e) "function" == typeof r[Symbol.iterator] && t.push([ ...r ]);
1548
+ for (const e of t) this.append(e[0], e[1]);
1549
+ } else for (const t in e) this.append(t, e[t]);
1550
+ }
1551
+ append(e, t) {
1552
+ this._values.push([ e, t + "" ]);
1553
+ }
1554
+ delete(e) {
1555
+ e = e.toLowerCase();
1556
+ for (let t = this._values.length - 1; t >= 0; t--) this._values[t][0].toLowerCase() === e && this._values.splice(t, 1);
1557
+ }
1558
+ entries() {
1559
+ const e = [];
1560
+ for (const t of this.keys()) e.push([ t, this.get(t) ]);
1561
+ let t = -1;
1562
+ return {
1563
+ next: () => (t++, {
1564
+ value: e[t],
1565
+ done: !e[t]
1566
+ }),
1567
+ [Symbol.iterator]() {
1568
+ return this;
1569
+ }
1570
+ };
1571
+ }
1572
+ forEach(e) {
1573
+ for (const t of this.entries()) e(t[1], t[0]);
1574
+ }
1575
+ get(e) {
1576
+ const t = [];
1577
+ e = e.toLowerCase();
1578
+ for (const r of this._values) r[0].toLowerCase() === e && t.push(r[1]);
1579
+ return t.length > 0 ? t.join(", ") : null;
1580
+ }
1581
+ has(e) {
1582
+ e = e.toLowerCase();
1583
+ for (const t of this._values) if (t[0].toLowerCase() === e) return !0;
1584
+ return !1;
1585
+ }
1586
+ keys() {
1587
+ const e = [];
1588
+ for (const t of this._values) {
1589
+ const r = t[0].toLowerCase();
1590
+ e.includes(r) || e.push(r);
1591
+ }
1592
+ let t = -1;
1593
+ return {
1594
+ next: () => (t++, {
1595
+ value: e[t],
1596
+ done: !e[t]
1597
+ }),
1598
+ [Symbol.iterator]() {
1599
+ return this;
1600
+ }
1601
+ };
1602
+ }
1603
+ set(e, t) {
1604
+ for (const r of this._values) if (r[0].toLowerCase() === e.toLowerCase()) return void (r[1] = t + "");
1605
+ this.append(e, t);
1606
+ }
1607
+ values() {
1608
+ const e = this._values;
1609
+ let t = -1;
1610
+ return {
1611
+ next() {
1612
+ t++;
1613
+ const r = !e[t];
1614
+ return {
1615
+ value: r ? void 0 : e[t][1],
1616
+ done: r
1617
+ };
1618
+ },
1619
+ [Symbol.iterator]() {
1620
+ return this;
1621
+ }
1622
+ };
1623
+ }
1624
+ [Symbol.iterator]() {
1625
+ return this.entries();
1626
+ }
1627
+ }
1628
+
1629
+ class MockRequest {
1630
+ constructor(e, t = {}) {
1631
+ this._method = "GET", this._url = "/", this.bodyUsed = !1, this.cache = "default",
1632
+ this.credentials = "same-origin", this.integrity = "", this.keepalive = !1, this.mode = "cors",
1633
+ this.redirect = "follow", this.referrer = "about:client", this.referrerPolicy = "",
1634
+ "string" == typeof e ? this.url = e : e && (Object.assign(this, e), this.headers = new MockHeaders(e.headers)),
1635
+ Object.assign(this, t), t.headers && (this.headers = new MockHeaders(t.headers)),
1636
+ this.headers || (this.headers = new MockHeaders);
1637
+ }
1638
+ get url() {
1639
+ return "string" == typeof this._url ? new URL(this._url, location.href).href : new URL("/", location.href).href;
1640
+ }
1641
+ set url(e) {
1642
+ this._url = e;
1643
+ }
1644
+ get method() {
1645
+ return "string" == typeof this._method ? this._method.toUpperCase() : "GET";
1646
+ }
1647
+ set method(e) {
1648
+ this._method = e;
1649
+ }
1650
+ clone() {
1651
+ const e = {
1652
+ ...this
1653
+ };
1654
+ return e.headers = new MockHeaders(this.headers), new MockRequest(e);
1655
+ }
1656
+ }
1657
+
1658
+ class MockResponse {
1659
+ constructor(e, t = {}) {
1660
+ this.ok = !0, this.status = 200, this.statusText = "", this.type = "default", this.url = "",
1661
+ this._body = e, t && Object.assign(this, t), this.headers = new MockHeaders(t.headers);
1662
+ }
1663
+ async json() {
1664
+ return JSON.parse(this._body);
1665
+ }
1666
+ async text() {
1667
+ return this._body;
1668
+ }
1669
+ clone() {
1670
+ const e = {
1671
+ ...this
1672
+ };
1673
+ return e.headers = new MockHeaders(this.headers), new MockResponse(this._body, e);
1674
+ }
1675
+ }
1676
+
1677
+ const mockedResponses = new Map, mockFetch = {
1678
+ json(e, t) {
1679
+ setMockedResponse(new MockResponse(JSON.stringify(e, null, 2), {
1680
+ headers: new MockHeaders({
1681
+ "Content-Type": "application/json"
1682
+ })
1683
+ }), t, !1);
1684
+ },
1685
+ text(e, t) {
1686
+ setMockedResponse(new MockResponse(e, {
1687
+ headers: new MockHeaders({
1688
+ "Content-Type": "text/plain"
1689
+ })
1690
+ }), t, !1);
1691
+ },
1692
+ response(e, t) {
1693
+ setMockedResponse(e, t, !1);
1694
+ },
1695
+ reject(e, t) {
1696
+ setMockedResponse(e, t, !0);
1697
+ },
1698
+ reset: function mockFetchReset() {
1699
+ mockedResponses.clear();
1700
+ }
1701
+ };
1702
+
1703
+ class MockResponse404 extends MockResponse {
1704
+ constructor() {
1705
+ super("", {
1706
+ headers: new MockHeaders({
1707
+ "Content-Type": "text/plain"
1708
+ })
1709
+ }), this.ok = !1, this.status = 404, this.statusText = "Not Found";
1710
+ }
1711
+ async json() {
1712
+ return {
1713
+ status: 404,
1714
+ statusText: "Not Found"
1715
+ };
1716
+ }
1717
+ async text() {
1718
+ return "Not Found";
1719
+ }
1720
+ }
1721
+
1722
+ const FETCH_DEFAULT_PATH = "/mock-fetch-data", HtmlSerializer = {
1723
+ print: e => index_cjs.serializeNodeToHtml(e, {
1724
+ serializeShadowRoot: !0,
1725
+ prettyHtml: !0,
1726
+ outerHtml: !0
1727
+ }),
1728
+ test: e => null != e && (e instanceof HTMLElement || e instanceof index_cjs.MockNode)
1729
+ }, createConfigFlags = (e = {}) => ({
1730
+ task: null,
1731
+ args: [],
1732
+ knownArgs: [],
1733
+ unknownArgs: [],
1734
+ ...e
1735
+ });
1736
+
1737
+ class BuildContext {
1738
+ constructor(e, t) {
1739
+ this.buildId = -1, this.buildMessages = [], this.buildResults = null, this.bundleBuildCount = 0,
1740
+ this.collections = [], this.completedTasks = [], this.components = [], this.componentGraph = new Map,
1741
+ this.data = {}, this.buildStats = void 0, this.diagnostics = [], this.dirsAdded = [],
1742
+ this.dirsDeleted = [], this.entryModules = [], this.filesAdded = [], this.filesChanged = [],
1743
+ this.filesDeleted = [], this.filesUpdated = [], this.filesWritten = [], this.globalStyle = void 0,
1744
+ this.hasConfigChanges = !1, this.hasFinished = !1, this.hasHtmlChanges = !1, this.hasPrintedResults = !1,
1745
+ this.hasServiceWorkerChanges = !1, this.hasScriptChanges = !0, this.hasStyleChanges = !0,
1746
+ this.hydrateAppFilePath = null, this.indexBuildCount = 0, this.indexDoc = void 0,
1747
+ this.isRebuild = !1, this.moduleFiles = [], this.outputs = [], this.packageJson = {},
1748
+ this.packageJsonFilePath = null, this.pendingCopyTasks = [], this.requiresFullBuild = !0,
1749
+ this.scriptsAdded = [], this.scriptsDeleted = [], this.startTime = Date.now(), this.styleBuildCount = 0,
1750
+ this.stylesPromise = null, this.stylesUpdated = [], this.timeSpan = null, this.transpileBuildCount = 0,
1751
+ this.config = e, this.compilerCtx = t, this.buildId = ++this.compilerCtx.activeBuildId,
1752
+ this.debug = e.logger.debug.bind(e.logger);
1753
+ }
1754
+ start() {
1755
+ const e = `${this.isRebuild ? "rebuild" : "build"}, ${this.config.fsNamespace}, ${this.config.devMode ? "dev" : "prod"} mode, started`, t = {
1756
+ buildId: this.buildId,
1757
+ messages: [],
1758
+ progress: 0
1759
+ };
1760
+ this.compilerCtx.events.emit("buildLog", t), this.timeSpan = this.createTimeSpan(e),
1761
+ this.timestamp = getBuildTimestamp(), this.debug(`start build, ${this.timestamp}`);
1762
+ const r = {
1763
+ buildId: this.buildId,
1764
+ timestamp: this.timestamp
1765
+ };
1766
+ this.compilerCtx.events.emit("buildStart", r);
1767
+ }
1768
+ createTimeSpan(e, t) {
1769
+ if (!this.hasFinished || t) {
1770
+ t && this.config.watch && (e = `${this.config.logger.cyan("[" + this.buildId + "]")} ${e}`);
1771
+ const r = this.config.logger.createTimeSpan(e, t, this.buildMessages);
1772
+ if (!t && this.compilerCtx.events) {
1773
+ const e = {
1774
+ buildId: this.buildId,
1775
+ messages: this.buildMessages,
1776
+ progress: getProgress(this.completedTasks)
1777
+ };
1778
+ this.compilerCtx.events.emit("buildLog", e);
1779
+ }
1780
+ return {
1781
+ duration: () => r.duration(),
1782
+ finish: (e, s, n, o) => {
1783
+ if ((!this.hasFinished || t) && (t && this.config.watch && (e = `${this.config.logger.cyan("[" + this.buildId + "]")} ${e}`),
1784
+ r.finish(e, s, n, o), !t)) {
1785
+ const e = {
1786
+ buildId: this.buildId,
1787
+ messages: this.buildMessages.slice(),
1788
+ progress: getProgress(this.completedTasks)
1789
+ };
1790
+ this.compilerCtx.events.emit("buildLog", e);
1791
+ }
1792
+ return r.duration();
1793
+ }
1794
+ };
1795
+ }
1796
+ return {
1797
+ duration: () => 0,
1798
+ finish: () => 0
1799
+ };
1800
+ }
1801
+ debug(e) {
1802
+ this.config.logger.debug(e);
1803
+ }
1804
+ get hasError() {
1805
+ return hasError(this.diagnostics);
1806
+ }
1807
+ get hasWarning() {
1808
+ return null != (e = this.diagnostics) && 0 !== e.length && e.some((e => "warn" === e.level));
1809
+ var e;
1810
+ }
1811
+ progress(e) {
1812
+ this.completedTasks.push(e);
1813
+ }
1814
+ async validateTypesBuild() {
1815
+ this.hasError || this.validateTypesPromise && (this.config.watch || (this.debug("build, non-watch, waiting on validateTypes"),
1816
+ await this.validateTypesPromise, this.debug("build, non-watch, finished waiting on validateTypes")));
1817
+ }
1818
+ }
1819
+
1820
+ const getBuildTimestamp = () => {
1821
+ const e = new Date;
1822
+ let t = e.getUTCFullYear() + "-";
1823
+ return t += ("0" + (e.getUTCMonth() + 1)).slice(-2) + "-", t += ("0" + e.getUTCDate()).slice(-2) + "T",
1824
+ t += ("0" + e.getUTCHours()).slice(-2) + ":", t += ("0" + e.getUTCMinutes()).slice(-2) + ":",
1825
+ t += ("0" + e.getUTCSeconds()).slice(-2), t;
1826
+ }, getProgress = e => {
1827
+ let t = 0;
1828
+ const r = Object.keys(ProgressTask);
1829
+ return r.forEach(((r, s) => {
1830
+ e.includes(ProgressTask[r]) && (t = s);
1831
+ })), (t + 1) / r.length;
1832
+ }, ProgressTask = {
1833
+ emptyOutputTargets: {},
1834
+ transpileApp: {},
1835
+ generateStyles: {},
1836
+ generateOutputTargets: {},
1837
+ validateTypesBuild: {},
1838
+ writeBuildFiles: {}
1839
+ };
1840
+
1841
+ class Cache {
1842
+ constructor(e, t) {
1843
+ this.config = e, this.cacheFs = t, this.failed = 0, this.skip = !1, this.sys = e.sys,
1844
+ this.logger = e.logger;
1845
+ }
1846
+ async initCacheDir() {
1847
+ if (!this.config._isTesting && this.config.cacheDir) {
1848
+ if (!this.config.enableCache || !this.cacheFs) return this.config.logger.info("cache optimizations disabled"),
1849
+ void this.clearDiskCache();
1850
+ this.config.logger.debug(`cache enabled, cacheDir: ${this.config.cacheDir}`);
1851
+ try {
1852
+ const e = path$2.join(this.config.cacheDir, "_README.log");
1853
+ await this.cacheFs.writeFile(e, CACHE_DIR_README);
1854
+ } catch (e) {
1855
+ this.logger.error(`Cache, initCacheDir: ${e}`), this.config.enableCache = !1;
1856
+ }
1857
+ }
1858
+ }
1859
+ async get(e) {
1860
+ if (!this.config.enableCache || this.skip) return null;
1861
+ if (this.failed >= MAX_FAILED) return this.skip || (this.skip = !0, this.logger.debug(`cache had ${this.failed} failed ops, skip disk ops for remander of build`)),
1862
+ null;
1863
+ let t;
1864
+ try {
1865
+ t = await this.cacheFs.readFile(this.getCacheFilePath(e)), this.failed = 0, this.skip = !1;
1866
+ } catch (e) {
1867
+ this.failed++, t = null;
1868
+ }
1869
+ return t;
1870
+ }
1871
+ async put(e, t) {
1872
+ if (!this.config.enableCache) return !1;
1873
+ let r;
1874
+ try {
1875
+ await this.cacheFs.writeFile(this.getCacheFilePath(e), t), r = !0;
1876
+ } catch (e) {
1877
+ this.failed++, r = !1;
1878
+ }
1879
+ return r;
1880
+ }
1881
+ async has(e) {
1882
+ return "string" == typeof await this.get(e);
1883
+ }
1884
+ async createKey(e, ...t) {
1885
+ return this.config.enableCache ? e + "_" + await this.sys.generateContentHash(JSON.stringify(t), 32) : e + 9999999 * Math.random();
1886
+ }
1887
+ async commit() {
1888
+ this.config.enableCache && (this.skip = !1, this.failed = 0, await this.cacheFs.commit(),
1889
+ await this.clearExpiredCache());
1890
+ }
1891
+ clear() {
1892
+ null != this.cacheFs && this.cacheFs.clearCache();
1893
+ }
1894
+ async clearExpiredCache() {
1895
+ if (null == this.cacheFs || null == this.sys.cacheStorage) return;
1896
+ const e = Date.now(), t = await this.sys.cacheStorage.get(EXP_STORAGE_KEY);
1897
+ if (null != t) {
1898
+ if (e - t < ONE_DAY) return;
1899
+ const r = this.cacheFs.sys, s = await r.readDir(this.config.cacheDir), n = s.map((e => path$2.join(this.config.cacheDir, e)));
1900
+ let o = 0;
1901
+ const i = n.map((async t => {
1902
+ const s = (await r.stat(t)).mtimeMs;
1903
+ e - s > ONE_WEEK && (await r.removeFile(t), o++);
1904
+ }));
1905
+ await Promise.all(i), this.logger.debug(`clearExpiredCache, cachedFileNames: ${s.length}, totalCleared: ${o}`);
1906
+ }
1907
+ this.logger.debug("clearExpiredCache, set last clear"), await this.sys.cacheStorage.set(EXP_STORAGE_KEY, e);
1908
+ }
1909
+ async clearDiskCache() {
1910
+ null != this.cacheFs && await this.cacheFs.access(this.config.cacheDir) && (await this.cacheFs.remove(this.config.cacheDir),
1911
+ await this.cacheFs.commit());
1912
+ }
1913
+ getCacheFilePath(e) {
1914
+ return path$2.join(this.config.cacheDir, e) + ".log";
1915
+ }
1916
+ getMemoryStats() {
1917
+ return null != this.cacheFs ? this.cacheFs.getMemoryStats() : null;
1918
+ }
1919
+ }
1920
+
1921
+ const MAX_FAILED = 100, ONE_DAY = 864e5, ONE_WEEK = 7 * ONE_DAY, EXP_STORAGE_KEY = "last_clear_expired_cache", CACHE_DIR_README = '# Stencil Cache Directory\n\nThis directory contains files which the compiler has\ncached for faster builds. To disable caching, please set\n"enableCache: false" within the stencil config.\n\nTo change the cache directory, please update the\n"cacheDir" property within the stencil config.\n', buildEvents = () => {
1922
+ const e = [], t = t => {
1923
+ const r = e.findIndex((e => e.callback === t));
1924
+ return r > -1 && (e.splice(r, 1), !0);
1925
+ };
1926
+ return {
1927
+ emit: (t, r) => {
1928
+ const s = t.toLowerCase().trim(), n = e.slice();
1929
+ for (const e of n) if (null == e.eventName) try {
1930
+ e.callback(t, r);
1931
+ } catch (e) {
1932
+ console.error(e);
1933
+ } else if (e.eventName === s) try {
1934
+ e.callback(r);
1935
+ } catch (e) {
1936
+ console.error(e);
1937
+ }
1938
+ },
1939
+ on: (r, s) => {
1940
+ if ("function" == typeof r) {
1941
+ const s = null, n = r;
1942
+ return e.push({
1943
+ eventName: s,
1944
+ callback: n
1945
+ }), () => t(n);
1946
+ }
1947
+ if ("string" == typeof r && "function" == typeof s) {
1948
+ const n = r.toLowerCase().trim(), o = s;
1949
+ return e.push({
1950
+ eventName: n,
1951
+ callback: o
1952
+ }), () => t(o);
1953
+ }
1954
+ return () => !1;
1955
+ },
1956
+ unsubscribeAll: () => {
1957
+ e.length = 0;
1958
+ }
1959
+ };
1960
+ }, getCommitInstructions = e => {
1961
+ const t = {
1962
+ filesToDelete: [],
1963
+ filesToWrite: [],
1964
+ filesToCopy: [],
1965
+ dirsToDelete: [],
1966
+ dirsToEnsure: []
1967
+ };
1968
+ e.forEach(((e, r) => {
1969
+ if (!0 === e.queueWriteToDisk) {
1970
+ if (!0 === e.isFile) {
1971
+ t.filesToWrite.push(r);
1972
+ const e = normalizePath(path$2.dirname(r));
1973
+ t.dirsToEnsure.includes(e) || t.dirsToEnsure.push(e);
1974
+ const s = t.dirsToDelete.indexOf(e);
1975
+ s > -1 && t.dirsToDelete.splice(s, 1);
1976
+ const n = t.filesToDelete.indexOf(r);
1977
+ n > -1 && t.filesToDelete.splice(n, 1);
1978
+ } else if (!0 === e.isDirectory) {
1979
+ t.dirsToEnsure.includes(r) || t.dirsToEnsure.push(r);
1980
+ const e = t.dirsToDelete.indexOf(r);
1981
+ e > -1 && t.dirsToDelete.splice(e, 1);
1982
+ }
1983
+ } else if (!0 === e.queueDeleteFromDisk) e.isDirectory && !t.dirsToEnsure.includes(r) ? t.dirsToDelete.push(r) : e.isFile && !t.filesToWrite.includes(r) && t.filesToDelete.push(r); else if ("string" == typeof e.queueCopyFileToDest) {
1984
+ const s = r, n = e.queueCopyFileToDest;
1985
+ t.filesToCopy.push([ s, n ]);
1986
+ const o = normalizePath(path$2.dirname(n));
1987
+ t.dirsToEnsure.includes(o) || t.dirsToEnsure.push(o);
1988
+ const i = t.dirsToDelete.indexOf(o);
1989
+ i > -1 && t.dirsToDelete.splice(i, 1);
1990
+ const a = t.filesToDelete.indexOf(n);
1991
+ a > -1 && t.filesToDelete.splice(a, 1);
1992
+ }
1993
+ e.queueDeleteFromDisk = !1, e.queueWriteToDisk = !1;
1994
+ }));
1995
+ for (let e = 0, r = t.dirsToEnsure.length; e < r; e++) {
1996
+ const r = t.dirsToEnsure[e].split("/");
1997
+ for (let e = 2; e < r.length; e++) {
1998
+ const s = r.slice(0, e).join("/");
1999
+ !1 === t.dirsToEnsure.includes(s) && t.dirsToEnsure.push(s);
2000
+ }
2001
+ }
2002
+ t.dirsToEnsure.sort(((e, t) => {
2003
+ const r = e.split("/").length, s = t.split("/").length;
2004
+ return r < s ? -1 : r > s ? 1 : e.length < t.length ? -1 : e.length > t.length ? 1 : 0;
2005
+ })), t.dirsToDelete.sort(((e, t) => {
2006
+ const r = e.split("/").length, s = t.split("/").length;
2007
+ return r < s ? 1 : r > s ? -1 : e.length < t.length ? 1 : e.length > t.length ? -1 : 0;
2008
+ }));
2009
+ for (const e of t.dirsToEnsure) {
2010
+ const r = t.dirsToDelete.indexOf(e);
2011
+ r > -1 && t.dirsToDelete.splice(r, 1);
2012
+ }
2013
+ return t.dirsToDelete = t.dirsToDelete.filter((e => "/" !== e && !0 !== e.endsWith(":/"))),
2014
+ t.dirsToEnsure = t.dirsToEnsure.filter((t => {
2015
+ const r = e.get(t);
2016
+ return (null == r || !0 !== r.exists || !0 !== r.isDirectory) && "/" !== t && !t.endsWith(":/");
2017
+ })), t;
2018
+ }, shouldIgnore = e => (e = e.trim().toLowerCase(), IGNORE.some((t => e.endsWith(t)))), IGNORE = [ ".ds_store", ".gitignore", "desktop.ini", "thumbs.db" ];
2019
+
2020
+ class TestingLogger {
2021
+ constructor() {
2022
+ this.isEnabled = !1;
2023
+ }
2024
+ setLevel(e) {}
2025
+ getLevel() {
2026
+ return "info";
2027
+ }
2028
+ enableColors(e) {}
2029
+ emoji(e) {
2030
+ return "";
2031
+ }
2032
+ info(...e) {
2033
+ this.isEnabled && console.log(...e);
2034
+ }
2035
+ warn(...e) {
2036
+ this.isEnabled && console.warn(...e);
2037
+ }
2038
+ error(...e) {
2039
+ this.isEnabled && console.error(...e);
2040
+ }
2041
+ debug(...e) {
2042
+ this.isEnabled && console.log(...e);
2043
+ }
2044
+ color(e, t) {}
2045
+ red(e) {
2046
+ return e;
2047
+ }
2048
+ green(e) {
2049
+ return e;
2050
+ }
2051
+ yellow(e) {
2052
+ return e;
2053
+ }
2054
+ blue(e) {
2055
+ return e;
2056
+ }
2057
+ magenta(e) {
2058
+ return e;
2059
+ }
2060
+ cyan(e) {
2061
+ return e;
2062
+ }
2063
+ gray(e) {
2064
+ return e;
2065
+ }
2066
+ bold(e) {
2067
+ return e;
2068
+ }
2069
+ dim(e) {
2070
+ return e;
2071
+ }
2072
+ bgRed(e) {
2073
+ return e;
2074
+ }
2075
+ createTimeSpan(e, t = !1) {
2076
+ return {
2077
+ duration: () => 0,
2078
+ finish: () => 0
2079
+ };
2080
+ }
2081
+ printDiagnostics(e) {}
2082
+ }
2083
+
2084
+ (posix = {
2085
+ resolve: function e() {
2086
+ var t, r, s, n = "", o = !1;
2087
+ for (r = arguments.length - 1; r >= -1 && !o; r--) r >= 0 ? s = arguments[r] : (void 0 === t && (t = process.cwd()),
2088
+ s = t), assertPath(s), 0 !== s.length && (n = s + "/" + n, o = 47 === s.charCodeAt(0));
2089
+ return n = normalizeStringPosix(n, !o), o ? n.length > 0 ? "/" + n : "/" : n.length > 0 ? n : ".";
2090
+ },
2091
+ normalize: function e(t) {
2092
+ var r, s;
2093
+ return assertPath(t), 0 === t.length ? "." : (r = 47 === t.charCodeAt(0), s = 47 === t.charCodeAt(t.length - 1),
2094
+ 0 !== (t = normalizeStringPosix(t, !r)).length || r || (t = "."), t.length > 0 && s && (t += "/"),
2095
+ r ? "/" + t : t);
2096
+ },
2097
+ isAbsolute: function e(t) {
2098
+ return assertPath(t), t.length > 0 && 47 === t.charCodeAt(0);
2099
+ },
2100
+ join: function e() {
2101
+ var t, r, s;
2102
+ if (0 === arguments.length) return ".";
2103
+ for (r = 0; r < arguments.length; ++r) assertPath(s = arguments[r]), s.length > 0 && (void 0 === t ? t = s : t += "/" + s);
2104
+ return void 0 === t ? "." : posix.normalize(t);
2105
+ },
2106
+ relative: function e(t, r) {
2107
+ var s, n, o, i, a, l, c, u, d, h;
2108
+ if (assertPath(t), assertPath(r), t === r) return "";
2109
+ if ((t = posix.resolve(t)) === (r = posix.resolve(r))) return "";
2110
+ for (s = 1; s < t.length && 47 === t.charCodeAt(s); ++s) ;
2111
+ for (o = (n = t.length) - s, i = 1; i < r.length && 47 === r.charCodeAt(i); ++i) ;
2112
+ for (l = o < (a = r.length - i) ? o : a, c = -1, u = 0; u <= l; ++u) {
2113
+ if (u === l) {
2114
+ if (a > l) {
2115
+ if (47 === r.charCodeAt(i + u)) return r.slice(i + u + 1);
2116
+ if (0 === u) return r.slice(i + u);
2117
+ } else o > l && (47 === t.charCodeAt(s + u) ? c = u : 0 === u && (c = 0));
2118
+ break;
2119
+ }
2120
+ if ((d = t.charCodeAt(s + u)) !== r.charCodeAt(i + u)) break;
2121
+ 47 === d && (c = u);
2122
+ }
2123
+ for (h = "", u = s + c + 1; u <= n; ++u) u !== n && 47 !== t.charCodeAt(u) || (0 === h.length ? h += ".." : h += "/..");
2124
+ return h.length > 0 ? h + r.slice(i + c) : (i += c, 47 === r.charCodeAt(i) && ++i,
2125
+ r.slice(i));
2126
+ },
2127
+ _makeLong: function e(t) {
2128
+ return t;
2129
+ },
2130
+ dirname: function e(t) {
2131
+ var r, s, n, o;
2132
+ if (assertPath(t), 0 === t.length) return ".";
2133
+ for (r = 47 === t.charCodeAt(0), s = -1, n = !0, o = t.length - 1; o >= 1; --o) if (47 === t.charCodeAt(o)) {
2134
+ if (!n) {
2135
+ s = o;
2136
+ break;
2137
+ }
2138
+ } else n = !1;
2139
+ return -1 === s ? r ? "/" : "." : r && 1 === s ? "//" : t.slice(0, s);
2140
+ },
2141
+ basename: function e(t, r) {
2142
+ var s, n, o, i, a, l, c;
2143
+ if (void 0 !== r && "string" != typeof r) throw new TypeError('"ext" argument must be a string');
2144
+ if (assertPath(t), s = 0, n = -1, o = !0, void 0 !== r && r.length > 0 && r.length <= t.length) {
2145
+ if (r.length === t.length && r === t) return "";
2146
+ for (a = r.length - 1, l = -1, i = t.length - 1; i >= 0; --i) if (47 === (c = t.charCodeAt(i))) {
2147
+ if (!o) {
2148
+ s = i + 1;
2149
+ break;
2150
+ }
2151
+ } else -1 === l && (o = !1, l = i + 1), a >= 0 && (c === r.charCodeAt(a) ? -1 == --a && (n = i) : (a = -1,
2152
+ n = l));
2153
+ return s === n ? n = l : -1 === n && (n = t.length), t.slice(s, n);
2154
+ }
2155
+ for (i = t.length - 1; i >= 0; --i) if (47 === t.charCodeAt(i)) {
2156
+ if (!o) {
2157
+ s = i + 1;
2158
+ break;
2159
+ }
2160
+ } else -1 === n && (o = !1, n = i + 1);
2161
+ return -1 === n ? "" : t.slice(s, n);
2162
+ },
2163
+ extname: function e(t) {
2164
+ var r, s, n, o, i, a, l;
2165
+ for (assertPath(t), r = -1, s = 0, n = -1, o = !0, i = 0, a = t.length - 1; a >= 0; --a) if (47 !== (l = t.charCodeAt(a))) -1 === n && (o = !1,
2166
+ n = a + 1), 46 === l ? -1 === r ? r = a : 1 !== i && (i = 1) : -1 !== r && (i = -1); else if (!o) {
2167
+ s = a + 1;
2168
+ break;
2169
+ }
2170
+ return -1 === r || -1 === n || 0 === i || 1 === i && r === n - 1 && r === s + 1 ? "" : t.slice(r, n);
2171
+ },
2172
+ format: function e(t) {
2173
+ if (null === t || "object" != typeof t) throw new TypeError('The "pathObject" argument must be of type Object. Received type ' + typeof t);
2174
+ return function r(e, t) {
2175
+ var r = t.dir || t.root, s = t.base || (t.name || "") + (t.ext || "");
2176
+ return r ? r === t.root ? r + s : r + e + s : s;
2177
+ }("/", t);
2178
+ },
2179
+ parse: function e(t) {
2180
+ var r, s, n, o, i, a, l, c, u, d;
2181
+ if (assertPath(t), r = {
2182
+ root: "",
2183
+ dir: "",
2184
+ base: "",
2185
+ ext: "",
2186
+ name: ""
2187
+ }, 0 === t.length) return r;
2188
+ for ((n = 47 === (s = t.charCodeAt(0))) ? (r.root = "/", o = 1) : o = 0, i = -1,
2189
+ a = 0, l = -1, c = !0, u = t.length - 1, d = 0; u >= o; --u) if (47 !== (s = t.charCodeAt(u))) -1 === l && (c = !1,
2190
+ l = u + 1), 46 === s ? -1 === i ? i = u : 1 !== d && (d = 1) : -1 !== i && (d = -1); else if (!c) {
2191
+ a = u + 1;
2192
+ break;
2193
+ }
2194
+ return -1 === i || -1 === l || 0 === d || 1 === d && i === l - 1 && i === a + 1 ? -1 !== l && (r.base = r.name = 0 === a && n ? t.slice(1, l) : t.slice(a, l)) : (0 === a && n ? (r.name = t.slice(1, i),
2195
+ r.base = t.slice(1, l)) : (r.name = t.slice(a, i), r.base = t.slice(a, l)), r.ext = t.slice(i, l)),
2196
+ a > 0 ? r.dir = t.slice(0, a - 1) : n && (r.dir = "/"), r;
2197
+ },
2198
+ sep: "/",
2199
+ delimiter: ":",
2200
+ win32: null,
2201
+ posix: null
2202
+ }).posix = posix, pathBrowserify = posix;
2203
+
2204
+ const IS_NODE_ENV = !("undefined" == typeof global || "function" != typeof require || !global.process || "string" != typeof __filename || global.origin && "string" == typeof global.origin);
2205
+
2206
+ IS_NODE_ENV && process.platform;
2207
+
2208
+ const IS_BROWSER_ENV = "undefined" != typeof location && "undefined" != typeof navigator && "undefined" != typeof XMLHttpRequest, IS_WEB_WORKER_ENV = IS_BROWSER_ENV && "undefined" != typeof self && "function" == typeof self.importScripts, HAS_WEB_WORKER = IS_BROWSER_ENV && "function" == typeof Worker, IS_FETCH_ENV = "function" == typeof fetch;
2209
+
2210
+ IS_NODE_ENV && require, IS_NODE_ENV && process.cwd;
2211
+
2212
+ const YELLOW = "#f39c12", RED = "#c0392b", BLUE = "#3498db";
2213
+
2214
+ caller = function() {
2215
+ var e, t = Error.prepareStackTrace;
2216
+ return Error.prepareStackTrace = function(e, t) {
2217
+ return t;
2218
+ }, e = (new Error).stack, Error.prepareStackTrace = t, e[2].getFileName();
2219
+ }, pathParse = function createCommonjsModule(e, t, r) {
2220
+ return e(r = {
2221
+ path: t,
2222
+ exports: {},
2223
+ require: function(e, t) {
2224
+ return function s() {
2225
+ throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs");
2226
+ }(null == t && r.path);
2227
+ }
2228
+ }, r.exports), r.exports;
2229
+ }((function(e) {
2230
+ var t, r, s = "win32" === process.platform, n = /^(((?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?[\\\/]?)(?:[^\\\/]*[\\\/])*)((\.{1,2}|[^\\\/]+?|)(\.[^.\/\\]*|))[\\\/]*$/, o = {
2231
+ parse: function(e) {
2232
+ if ("string" != typeof e) throw new TypeError("Parameter 'pathString' must be a string, not " + typeof e);
2233
+ var t = function r(e) {
2234
+ return n.exec(e).slice(1);
2235
+ }(e);
2236
+ if (!t || 5 !== t.length) throw new TypeError("Invalid path '" + e + "'");
2237
+ return {
2238
+ root: t[1],
2239
+ dir: t[0] === t[1] ? t[0] : t[0].slice(0, -1),
2240
+ base: t[2],
2241
+ ext: t[4],
2242
+ name: t[3]
2243
+ };
2244
+ }
2245
+ };
2246
+ t = /^((\/?)(?:[^\/]*\/)*)((\.{1,2}|[^\/]+?|)(\.[^.\/]*|))[\/]*$/, (r = {}).parse = function(e) {
2247
+ if ("string" != typeof e) throw new TypeError("Parameter 'pathString' must be a string, not " + typeof e);
2248
+ var r = function s(e) {
2249
+ return t.exec(e).slice(1);
2250
+ }(e);
2251
+ if (!r || 5 !== r.length) throw new TypeError("Invalid path '" + e + "'");
2252
+ return {
2253
+ root: r[1],
2254
+ dir: r[0].slice(0, -1),
2255
+ base: r[2],
2256
+ ext: r[4],
2257
+ name: r[3]
2258
+ };
2259
+ }, e.exports = s ? o.parse : r.parse, e.exports.posix = r.parse, e.exports.win32 = o.parse;
2260
+ })), parse = path__default.default.parse || pathParse, getNodeModulesDirs = function e(t, r) {
2261
+ var s, n, o = "/";
2262
+ for (/^([A-Za-z]:)/.test(t) ? o = "" : /^\\\\/.test(t) && (o = "\\\\"), s = [ t ],
2263
+ n = parse(t); n.dir !== s[s.length - 1]; ) s.push(n.dir), n = parse(n.dir);
2264
+ return s.reduce((function(e, t) {
2265
+ return e.concat(r.map((function(e) {
2266
+ return path__default.default.resolve(o, t, e);
2267
+ })));
2268
+ }), []);
2269
+ }, nodeModulesPaths = function e(t, r, s) {
2270
+ var n, o = r && r.moduleDirectory ? [].concat(r.moduleDirectory) : [ "node_modules" ];
2271
+ return r && "function" == typeof r.paths ? r.paths(s, t, (function() {
2272
+ return getNodeModulesDirs(t, o);
2273
+ }), r) : (n = getNodeModulesDirs(t, o), r && r.paths ? n.concat(r.paths) : n);
2274
+ }, normalizeOptions = function(e, t) {
2275
+ return t || {};
2276
+ }, ERROR_MESSAGE = "Function.prototype.bind called on incompatible ", slice = Array.prototype.slice,
2277
+ toStr = Object.prototype.toString, implementation = function e(t) {
2278
+ var r, s, n, o, i, a, l, c = this;
2279
+ if ("function" != typeof c || "[object Function]" !== toStr.call(c)) throw new TypeError(ERROR_MESSAGE + c);
2280
+ for (r = slice.call(arguments, 1), n = function() {
2281
+ if (this instanceof s) {
2282
+ var e = c.apply(this, r.concat(slice.call(arguments)));
2283
+ return Object(e) === e ? e : this;
2284
+ }
2285
+ return c.apply(t, r.concat(slice.call(arguments)));
2286
+ }, o = Math.max(0, c.length - r.length), i = [], a = 0; a < o; a++) i.push("$" + a);
2287
+ return s = Function("binder", "return function (" + i.join(",") + "){ return binder.apply(this,arguments); }")(n),
2288
+ c.prototype && ((l = function e() {}).prototype = c.prototype, s.prototype = new l,
2289
+ l.prototype = null), s;
2290
+ }, functionBind = Function.prototype.bind || implementation, src = functionBind.call(Function.call, Object.prototype.hasOwnProperty);
2291
+
2292
+ const data$1 = {
2293
+ assert: !0,
2294
+ "assert/strict": ">= 15",
2295
+ async_hooks: ">= 8",
2296
+ buffer_ieee754: "< 0.9.7",
2297
+ buffer: !0,
2298
+ child_process: !0,
2299
+ cluster: !0,
2300
+ console: !0,
2301
+ constants: !0,
2302
+ crypto: !0,
2303
+ _debug_agent: ">= 1 && < 8",
2304
+ _debugger: "< 8",
2305
+ dgram: !0,
2306
+ diagnostics_channel: ">= 15.1",
2307
+ dns: !0,
2308
+ "dns/promises": ">= 15",
2309
+ domain: ">= 0.7.12",
2310
+ events: !0,
2311
+ freelist: "< 6",
2312
+ fs: !0,
2313
+ "fs/promises": [ ">= 10 && < 10.1", ">= 14" ],
2314
+ _http_agent: ">= 0.11.1",
2315
+ _http_client: ">= 0.11.1",
2316
+ _http_common: ">= 0.11.1",
2317
+ _http_incoming: ">= 0.11.1",
2318
+ _http_outgoing: ">= 0.11.1",
2319
+ _http_server: ">= 0.11.1",
2320
+ http: !0,
2321
+ http2: ">= 8.8",
2322
+ https: !0,
2323
+ inspector: ">= 8.0.0",
2324
+ _linklist: "< 8",
2325
+ module: !0,
2326
+ net: !0,
2327
+ "node-inspect/lib/_inspect": ">= 7.6.0 && < 12",
2328
+ "node-inspect/lib/internal/inspect_client": ">= 7.6.0 && < 12",
2329
+ "node-inspect/lib/internal/inspect_repl": ">= 7.6.0 && < 12",
2330
+ os: !0,
2331
+ path: !0,
2332
+ "path/posix": ">= 15.3",
2333
+ "path/win32": ">= 15.3",
2334
+ perf_hooks: ">= 8.5",
2335
+ process: ">= 1",
2336
+ punycode: !0,
2337
+ querystring: !0,
2338
+ readline: !0,
2339
+ repl: !0,
2340
+ smalloc: ">= 0.11.5 && < 3",
2341
+ _stream_duplex: ">= 0.9.4",
2342
+ _stream_transform: ">= 0.9.4",
2343
+ _stream_wrap: ">= 1.4.1",
2344
+ _stream_passthrough: ">= 0.9.4",
2345
+ _stream_readable: ">= 0.9.4",
2346
+ _stream_writable: ">= 0.9.4",
2347
+ stream: !0,
2348
+ "stream/promises": ">= 15",
2349
+ string_decoder: !0,
2350
+ sys: [ ">= 0.6 && < 0.7", ">= 0.8" ],
2351
+ timers: !0,
2352
+ "timers/promises": ">= 15",
2353
+ _tls_common: ">= 0.11.13",
2354
+ _tls_legacy: ">= 0.11.3 && < 10",
2355
+ _tls_wrap: ">= 0.11.3",
2356
+ tls: !0,
2357
+ trace_events: ">= 10",
2358
+ tty: !0,
2359
+ url: !0,
2360
+ util: !0,
2361
+ "util/types": ">= 15.3",
2362
+ "v8/tools/arguments": ">= 10 && < 12",
2363
+ "v8/tools/codemap": [ ">= 4.4.0 && < 5", ">= 5.2.0 && < 12" ],
2364
+ "v8/tools/consarray": [ ">= 4.4.0 && < 5", ">= 5.2.0 && < 12" ],
2365
+ "v8/tools/csvparser": [ ">= 4.4.0 && < 5", ">= 5.2.0 && < 12" ],
2366
+ "v8/tools/logreader": [ ">= 4.4.0 && < 5", ">= 5.2.0 && < 12" ],
2367
+ "v8/tools/profile_view": [ ">= 4.4.0 && < 5", ">= 5.2.0 && < 12" ],
2368
+ "v8/tools/splaytree": [ ">= 4.4.0 && < 5", ">= 5.2.0 && < 12" ],
2369
+ v8: ">= 1",
2370
+ vm: !0,
2371
+ wasi: ">= 13.4 && < 13.5",
2372
+ worker_threads: ">= 11.7",
2373
+ zlib: !0
2374
+ };
2375
+
2376
+ isCoreModule = function e(t, r) {
2377
+ return src(data$1, t) && function s(e, t) {
2378
+ var r, s;
2379
+ if ("boolean" == typeof t) return t;
2380
+ if ("string" != typeof (r = void 0 === e ? process.versions && process.versions.node && process.versions.node : e)) throw new TypeError(void 0 === e ? "Unable to determine current node version" : "If provided, a valid node version is required");
2381
+ if (t && "object" == typeof t) {
2382
+ for (s = 0; s < t.length; ++s) if (matchesRange$1(r, t[s])) return !0;
2383
+ return !1;
2384
+ }
2385
+ return matchesRange$1(r, t);
2386
+ }(r, data$1[t]);
2387
+ }, realpathFS$1 = fs__default.default.realpath && "function" == typeof fs__default.default.realpath.native ? fs__default.default.realpath.native : fs__default.default.realpath,
2388
+ defaultIsFile$1 = function e(t, r) {
2389
+ fs__default.default.stat(t, (function(e, t) {
2390
+ return e ? "ENOENT" === e.code || "ENOTDIR" === e.code ? r(null, !1) : r(e) : r(null, t.isFile() || t.isFIFO());
2391
+ }));
2392
+ }, defaultIsDir$1 = function e(t, r) {
2393
+ fs__default.default.stat(t, (function(e, t) {
2394
+ return e ? "ENOENT" === e.code || "ENOTDIR" === e.code ? r(null, !1) : r(e) : r(null, t.isDirectory());
2395
+ }));
2396
+ }, defaultRealpath = function e(t, r) {
2397
+ realpathFS$1(t, (function(e, s) {
2398
+ e && "ENOENT" !== e.code ? r(e) : r(null, e ? t : s);
2399
+ }));
2400
+ }, maybeRealpath = function e(t, r, s, n) {
2401
+ s && !1 === s.preserveSymlinks ? t(r, n) : n(null, r);
2402
+ }, defaultReadPackage = function e(t, r, s) {
2403
+ t(r, (function(e, t) {
2404
+ if (e) s(e); else try {
2405
+ var r = JSON.parse(t);
2406
+ s(null, r);
2407
+ } catch (e) {
2408
+ s(null);
2409
+ }
2410
+ }));
2411
+ }, getPackageCandidates$1 = function e(t, r, s) {
2412
+ var n, o = nodeModulesPaths(r, s, t);
2413
+ for (n = 0; n < o.length; n++) o[n] = path__default.default.join(o[n], t);
2414
+ return o;
2415
+ }, async = function e(t, r, s) {
2416
+ function n(e) {
2417
+ if (/^(?:\.\.?(?:\/|$)|\/|([A-Za-z]:)?[/\\])/.test(t)) T = path__default.default.resolve(e, t),
2418
+ "." !== t && ".." !== t && "/" !== t.slice(-1) || (T += "/"), /\/$/.test(t) && T === e ? l(T, C.package, o) : i(T, C.package, o); else {
2419
+ if (_ && isCoreModule(t)) return S(null, t);
2420
+ !function r(e, t, s) {
2421
+ var n = function() {
2422
+ return getPackageCandidates$1(e, t, C);
2423
+ };
2424
+ c(s, y ? y(e, t, n, C) : n());
2425
+ }(t, e, (function(e, r, s) {
2426
+ if (e) S(e); else {
2427
+ if (r) return maybeRealpath(f, r, C, (function(e, t) {
2428
+ e ? S(e) : S(null, t, s);
2429
+ }));
2430
+ var n = new Error("Cannot find module '" + t + "' from '" + b + "'");
2431
+ n.code = "MODULE_NOT_FOUND", S(n);
2432
+ }
2433
+ }));
2434
+ }
2435
+ }
2436
+ function o(e, r, s) {
2437
+ e ? S(e) : r ? S(null, r, s) : l(T, (function(e, r, s) {
2438
+ if (e) S(e); else if (r) maybeRealpath(f, r, C, (function(e, t) {
2439
+ e ? S(e) : S(null, t, s);
2440
+ })); else {
2441
+ var n = new Error("Cannot find module '" + t + "' from '" + b + "'");
2442
+ n.code = "MODULE_NOT_FOUND", S(n);
2443
+ }
2444
+ }));
2445
+ }
2446
+ function i(e, t, r) {
2447
+ var s = t, n = r;
2448
+ "function" == typeof s && (n = s, s = void 0), function e(t, r, s) {
2449
+ function o(s, o, a) {
2450
+ var u, h, p;
2451
+ return c = o, s ? n(s) : a && c && C.pathFilter && (h = (u = path__default.default.relative(a, l)).slice(0, u.length - t[0].length),
2452
+ p = C.pathFilter(c, r, h)) ? e([ "" ].concat(w.slice()), path__default.default.resolve(a, p), c) : void d(l, i);
2453
+ }
2454
+ function i(s, o) {
2455
+ return s ? n(s) : o ? n(null, l, c) : void e(t.slice(1), r, c);
2456
+ }
2457
+ var l, c;
2458
+ if (0 === t.length) return n(null, void 0, s);
2459
+ l = r + t[0], (c = s) ? o(null, c) : a(path__default.default.dirname(l), o);
2460
+ }([ "" ].concat(w), e, s);
2461
+ }
2462
+ function a(e, t) {
2463
+ return "" === e || "/" === e || "win32" === process.platform && /^\w:[/\\]*$/.test(e) || /[/\\]node_modules[/\\]*$/.test(e) ? t(null) : void maybeRealpath(f, e, C, (function(r, s) {
2464
+ if (r) return a(path__default.default.dirname(e), t);
2465
+ var n = path__default.default.join(s, "package.json");
2466
+ d(n, (function(r, s) {
2467
+ if (!s) return a(path__default.default.dirname(e), t);
2468
+ m(p, n, (function(r, s) {
2469
+ r && t(r);
2470
+ var o = s;
2471
+ o && C.packageFilter && (o = C.packageFilter(o, n)), t(null, o, e);
2472
+ }));
2473
+ }));
2474
+ }));
2475
+ }
2476
+ function l(e, t, r) {
2477
+ var s = r, n = t;
2478
+ "function" == typeof n && (s = n, n = C.package), maybeRealpath(f, e, C, (function(t, r) {
2479
+ if (t) return s(t);
2480
+ var o = path__default.default.join(r, "package.json");
2481
+ d(o, (function(t, r) {
2482
+ return t ? s(t) : r ? void m(p, o, (function(t, r) {
2483
+ var n, a;
2484
+ return t ? s(t) : ((n = r) && C.packageFilter && (n = C.packageFilter(n, o)), n && n.main ? "string" != typeof n.main ? ((a = new TypeError("package “" + n.name + "” `main` must be a string")).code = "INVALID_PACKAGE_MAIN",
2485
+ s(a)) : ("." !== n.main && "./" !== n.main || (n.main = "index"), void i(path__default.default.resolve(e, n.main), n, (function(t, r, n) {
2486
+ return t ? s(t) : r ? s(null, r, n) : n ? void l(path__default.default.resolve(e, n.main), n, (function(t, r, n) {
2487
+ return t ? s(t) : r ? s(null, r, n) : void i(path__default.default.join(e, "index"), n, s);
2488
+ })) : i(path__default.default.join(e, "index"), n, s);
2489
+ }))) : void i(path__default.default.join(e, "/index"), n, s));
2490
+ })) : i(path__default.default.join(e, "index"), n, s);
2491
+ }));
2492
+ }));
2493
+ }
2494
+ function c(e, t) {
2495
+ function r(t, r, o) {
2496
+ return t ? e(t) : r ? e(null, r, o) : void l(n, C.package, s);
2497
+ }
2498
+ function s(r, s, n) {
2499
+ return r ? e(r) : s ? e(null, s, n) : void c(e, t.slice(1));
2500
+ }
2501
+ if (0 === t.length) return e(null, void 0);
2502
+ var n = t[0];
2503
+ h(path__default.default.dirname(n), (function o(s, a) {
2504
+ return s ? e(s) : a ? void i(n, C.package, r) : c(e, t.slice(1));
2505
+ }));
2506
+ }
2507
+ var u, d, h, p, f, m, g, y, w, _, v, b, E, T, S = s, C = r;
2508
+ return "function" == typeof r && (S = C, C = {}), "string" != typeof t ? (u = new TypeError("Path must be a string."),
2509
+ process.nextTick((function() {
2510
+ S(u);
2511
+ }))) : (C = normalizeOptions(0, C), d = C.isFile || defaultIsFile$1, h = C.isDirectory || defaultIsDir$1,
2512
+ p = C.readFile || fs__default.default.readFile, f = C.realpath || defaultRealpath,
2513
+ m = C.readPackage || defaultReadPackage, C.readFile && C.readPackage ? (g = new TypeError("`readFile` and `readPackage` are mutually exclusive."),
2514
+ process.nextTick((function() {
2515
+ S(g);
2516
+ }))) : (y = C.packageIterator, w = C.extensions || [ ".js" ], _ = !1 !== C.includeCoreModules,
2517
+ v = C.basedir || path__default.default.dirname(caller()), b = C.filename || v, C.paths = C.paths || [],
2518
+ E = path__default.default.resolve(v), void maybeRealpath(f, E, C, (function(e, t) {
2519
+ e ? S(e) : n(t);
2520
+ }))));
2521
+ };
2522
+
2523
+ const data = {
2524
+ assert: !0,
2525
+ "assert/strict": ">= 15",
2526
+ async_hooks: ">= 8",
2527
+ buffer_ieee754: "< 0.9.7",
2528
+ buffer: !0,
2529
+ child_process: !0,
2530
+ cluster: !0,
2531
+ console: !0,
2532
+ constants: !0,
2533
+ crypto: !0,
2534
+ _debug_agent: ">= 1 && < 8",
2535
+ _debugger: "< 8",
2536
+ dgram: !0,
2537
+ diagnostics_channel: ">= 15.1",
2538
+ dns: !0,
2539
+ "dns/promises": ">= 15",
2540
+ domain: ">= 0.7.12",
2541
+ events: !0,
2542
+ freelist: "< 6",
2543
+ fs: !0,
2544
+ "fs/promises": [ ">= 10 && < 10.1", ">= 14" ],
2545
+ _http_agent: ">= 0.11.1",
2546
+ _http_client: ">= 0.11.1",
2547
+ _http_common: ">= 0.11.1",
2548
+ _http_incoming: ">= 0.11.1",
2549
+ _http_outgoing: ">= 0.11.1",
2550
+ _http_server: ">= 0.11.1",
2551
+ http: !0,
2552
+ http2: ">= 8.8",
2553
+ https: !0,
2554
+ inspector: ">= 8.0.0",
2555
+ _linklist: "< 8",
2556
+ module: !0,
2557
+ net: !0,
2558
+ "node-inspect/lib/_inspect": ">= 7.6.0 && < 12",
2559
+ "node-inspect/lib/internal/inspect_client": ">= 7.6.0 && < 12",
2560
+ "node-inspect/lib/internal/inspect_repl": ">= 7.6.0 && < 12",
2561
+ os: !0,
2562
+ path: !0,
2563
+ "path/posix": ">= 15.3",
2564
+ "path/win32": ">= 15.3",
2565
+ perf_hooks: ">= 8.5",
2566
+ process: ">= 1",
2567
+ punycode: !0,
2568
+ querystring: !0,
2569
+ readline: !0,
2570
+ repl: !0,
2571
+ smalloc: ">= 0.11.5 && < 3",
2572
+ _stream_duplex: ">= 0.9.4",
2573
+ _stream_transform: ">= 0.9.4",
2574
+ _stream_wrap: ">= 1.4.1",
2575
+ _stream_passthrough: ">= 0.9.4",
2576
+ _stream_readable: ">= 0.9.4",
2577
+ _stream_writable: ">= 0.9.4",
2578
+ stream: !0,
2579
+ "stream/promises": ">= 15",
2580
+ string_decoder: !0,
2581
+ sys: [ ">= 0.6 && < 0.7", ">= 0.8" ],
2582
+ timers: !0,
2583
+ "timers/promises": ">= 15",
2584
+ _tls_common: ">= 0.11.13",
2585
+ _tls_legacy: ">= 0.11.3 && < 10",
2586
+ _tls_wrap: ">= 0.11.3",
2587
+ tls: !0,
2588
+ trace_events: ">= 10",
2589
+ tty: !0,
2590
+ url: !0,
2591
+ util: !0,
2592
+ "util/types": ">= 15.3",
2593
+ "v8/tools/arguments": ">= 10 && < 12",
2594
+ "v8/tools/codemap": [ ">= 4.4.0 && < 5", ">= 5.2.0 && < 12" ],
2595
+ "v8/tools/consarray": [ ">= 4.4.0 && < 5", ">= 5.2.0 && < 12" ],
2596
+ "v8/tools/csvparser": [ ">= 4.4.0 && < 5", ">= 5.2.0 && < 12" ],
2597
+ "v8/tools/logreader": [ ">= 4.4.0 && < 5", ">= 5.2.0 && < 12" ],
2598
+ "v8/tools/profile_view": [ ">= 4.4.0 && < 5", ">= 5.2.0 && < 12" ],
2599
+ "v8/tools/splaytree": [ ">= 4.4.0 && < 5", ">= 5.2.0 && < 12" ],
2600
+ v8: ">= 1",
2601
+ vm: !0,
2602
+ wasi: ">= 13.4 && < 13.5",
2603
+ worker_threads: ">= 11.7",
2604
+ zlib: !0
2605
+ };
2606
+
2607
+ for (mod in current = process.versions && process.versions.node && process.versions.node.split(".") || [],
2608
+ core = {}, data) Object.prototype.hasOwnProperty.call(data, mod) && (core[mod] = versionIncluded(data[mod]));
2609
+
2610
+ core_1 = core, isCore = function e(t) {
2611
+ return isCoreModule(t);
2612
+ }, realpathFS = fs__default.default.realpathSync && "function" == typeof fs__default.default.realpathSync.native ? fs__default.default.realpathSync.native : fs__default.default.realpathSync,
2613
+ defaultIsFile = function e(t) {
2614
+ try {
2615
+ var r = fs__default.default.statSync(t);
2616
+ } catch (e) {
2617
+ if (e && ("ENOENT" === e.code || "ENOTDIR" === e.code)) return !1;
2618
+ throw e;
2619
+ }
2620
+ return r.isFile() || r.isFIFO();
2621
+ }, defaultIsDir = function e(t) {
2622
+ try {
2623
+ var r = fs__default.default.statSync(t);
2624
+ } catch (e) {
2625
+ if (e && ("ENOENT" === e.code || "ENOTDIR" === e.code)) return !1;
2626
+ throw e;
2627
+ }
2628
+ return r.isDirectory();
2629
+ }, defaultRealpathSync = function e(t) {
2630
+ try {
2631
+ return realpathFS(t);
2632
+ } catch (e) {
2633
+ if ("ENOENT" !== e.code) throw e;
2634
+ }
2635
+ return t;
2636
+ }, maybeRealpathSync = function e(t, r, s) {
2637
+ return s && !1 === s.preserveSymlinks ? t(r) : r;
2638
+ }, defaultReadPackageSync = function e(t, r) {
2639
+ var s = t(r);
2640
+ try {
2641
+ return JSON.parse(s);
2642
+ } catch (e) {}
2643
+ }, getPackageCandidates = function e(t, r, s) {
2644
+ var n, o = nodeModulesPaths(r, s, t);
2645
+ for (n = 0; n < o.length; n++) o[n] = path__default.default.join(o[n], t);
2646
+ return o;
2647
+ }, sync = function e(t, r) {
2648
+ function s(e) {
2649
+ var t, r, s, o, l = n(path__default.default.dirname(e));
2650
+ if (l && l.dir && l.pkg && i.pathFilter && (t = path__default.default.relative(l.dir, e),
2651
+ (r = i.pathFilter(l.pkg, e, t)) && (e = path__default.default.resolve(l.dir, r))),
2652
+ a(e)) return e;
2653
+ for (s = 0; s < p.length; s++) if (o = e + p[s], a(o)) return o;
2654
+ }
2655
+ function n(e) {
2656
+ var t, r;
2657
+ if ("" !== e && "/" !== e && !("win32" === process.platform && /^\w:[/\\]*$/.test(e) || /[/\\]node_modules[/\\]*$/.test(e))) return t = path__default.default.join(maybeRealpathSync(u, e, i), "package.json"),
2658
+ a(t) ? ((r = d(l, t)) && i.packageFilter && (r = i.packageFilter(r, e)), {
2659
+ pkg: r,
2660
+ dir: e
2661
+ }) : n(path__default.default.dirname(e));
2662
+ }
2663
+ function o(e) {
2664
+ var t, r, n, c, h = path__default.default.join(maybeRealpathSync(u, e, i), "/package.json");
2665
+ if (a(h)) {
2666
+ try {
2667
+ t = d(l, h);
2668
+ } catch (e) {}
2669
+ if (t && i.packageFilter && (t = i.packageFilter(t, e)), t && t.main) {
2670
+ if ("string" != typeof t.main) throw (r = new TypeError("package “" + t.name + "” `main` must be a string")).code = "INVALID_PACKAGE_MAIN",
2671
+ r;
2672
+ "." !== t.main && "./" !== t.main || (t.main = "index");
2673
+ try {
2674
+ if (n = s(path__default.default.resolve(e, t.main))) return n;
2675
+ if (c = o(path__default.default.resolve(e, t.main))) return c;
2676
+ } catch (e) {}
2677
+ }
2678
+ }
2679
+ return s(path__default.default.join(e, "/index"));
2680
+ }
2681
+ var i, a, l, c, u, d, h, p, f, m, g, y, w, _, v, b;
2682
+ if ("string" != typeof t) throw new TypeError("Path must be a string.");
2683
+ if (i = normalizeOptions(0, r), a = i.isFile || defaultIsFile, l = i.readFileSync || fs__default.default.readFileSync,
2684
+ c = i.isDirectory || defaultIsDir, u = i.realpathSync || defaultRealpathSync, d = i.readPackageSync || defaultReadPackageSync,
2685
+ i.readFileSync && i.readPackageSync) throw new TypeError("`readFileSync` and `readPackageSync` are mutually exclusive.");
2686
+ if (h = i.packageIterator, p = i.extensions || [ ".js" ], f = !1 !== i.includeCoreModules,
2687
+ m = i.basedir || path__default.default.dirname(caller()), g = i.filename || m, i.paths = i.paths || [],
2688
+ y = maybeRealpathSync(u, path__default.default.resolve(m), i), /^(?:\.\.?(?:\/|$)|\/|([A-Za-z]:)?[/\\])/.test(t)) {
2689
+ if (w = path__default.default.resolve(y, t), "." !== t && ".." !== t && "/" !== t.slice(-1) || (w += "/"),
2690
+ _ = s(w) || o(w)) return maybeRealpathSync(u, _, i);
2691
+ } else {
2692
+ if (f && isCoreModule(t)) return t;
2693
+ if (v = function E(e, t) {
2694
+ var r, n, a, l, u = function() {
2695
+ return getPackageCandidates(e, t, i);
2696
+ }, d = h ? h(e, t, u, i) : u();
2697
+ for (r = 0; r < d.length; r++) if (n = d[r], c(path__default.default.dirname(n))) {
2698
+ if (a = s(n)) return a;
2699
+ if (l = o(n)) return l;
2700
+ }
2701
+ }(t, y), v) return maybeRealpathSync(u, v, i);
2702
+ }
2703
+ throw (b = new Error("Cannot find module '" + t + "' from '" + g + "'")).code = "MODULE_NOT_FOUND",
2704
+ b;
2705
+ }, async.core = core_1, async.isCore = isCore, async.sync = sync, resolve = async;
2706
+
2707
+ const COMMON_DIR_MODULE_EXTS = [ ".tsx", ".ts", ".mjs", ".js", ".jsx", ".json", ".md" ], COMMON_DIR_FILENAMES = [ "package.json", "index.js", "index.mjs" ], getCommonDirName = (e, t) => e + "/" + t, isCommonDirModuleFile = e => COMMON_DIR_MODULE_EXTS.some((t => e.endsWith(t))), shouldFetchModule = e => IS_FETCH_ENV && IS_BROWSER_ENV && isNodeModulePath(e), isNodeModulePath = e => normalizePath(e).split("/").includes("node_modules"), getPackageDirPath = (e, t) => {
2708
+ const r = normalizePath(e).split("/"), s = (e => {
2709
+ e.startsWith("~") && (e = e.substring(1));
2710
+ const t = e.split("/"), r = {
2711
+ moduleId: null,
2712
+ filePath: null,
2713
+ scope: null,
2714
+ scopeSubModuleId: null
2715
+ };
2716
+ return e.startsWith("@") && t.length > 1 ? (r.moduleId = t.slice(0, 2).join("/"),
2717
+ r.filePath = t.slice(2).join("/"), r.scope = t[0], r.scopeSubModuleId = t[1]) : (r.moduleId = t[0],
2718
+ r.filePath = t.slice(1).join("/")), r;
2719
+ })(t);
2720
+ for (let e = r.length - 1; e >= 1; e--) if ("node_modules" === r[e - 1]) if (s.scope) {
2721
+ if (r[e] === s.scope && r[e + 1] === s.scopeSubModuleId) return r.slice(0, e + 2).join("/");
2722
+ } else if (r[e] === s.moduleId) return r.slice(0, e + 1).join("/");
2723
+ return null;
2724
+ }, packageVersions = new Map, known404Urls = new Set, getCommonDirUrl = (e, t, r, s) => getNodeModuleFetchUrl(e, t, r) + "/" + s, getNodeModuleFetchUrl = (e, t, r) => {
2725
+ let s = (r = normalizePath(r)).split("/").filter((e => e.length));
2726
+ const n = s.lastIndexOf("node_modules");
2727
+ n > -1 && n < s.length - 1 && (s = s.slice(n + 1));
2728
+ let o = s.shift();
2729
+ o.startsWith("@") && (o += "/" + s.shift());
2730
+ const i = s.join("/");
2731
+ return "@stencil/core" === o ? ((e, t) => {
2732
+ let r = (t = normalizePath(t)).split("/");
2733
+ const s = r.lastIndexOf("node_modules");
2734
+ s > -1 && s < r.length - 1 && (r = r.slice(s + 1), r = r[0].startsWith("@") ? r.slice(2) : r.slice(1),
2735
+ t = r.join("/"));
2736
+ const n = new URL("../", e).href;
2737
+ return new URL("./" + t, n).href;
2738
+ })(e.getCompilerExecutingPath(), i) : e.getRemoteModuleUrl({
2739
+ moduleId: o,
2740
+ version: t.get(o),
2741
+ path: i
2742
+ });
2743
+ }, knownUrlSkips = [ "/@stencil/core/internal.js", "/@stencil/core/internal.json", "/@stencil/core/internal.mjs", "/@stencil/core/internal/stencil-core.js/index.json", "/@stencil/core/internal/stencil-core.js.json", "/@stencil/core/internal/stencil-core.js/package.json", "/@stencil/core.js", "/@stencil/core.json", "/@stencil/core.mjs", "/@stencil/core.css", "/@stencil/core/index.js", "/@stencil/core/index.json", "/@stencil/core/index.mjs", "/@stencil/core/index.css", "/@stencil/package.json" ], fetchModuleAsync = async (e, t, r, s, n) => {
2744
+ if (!((e => {
2745
+ if (!(e => e.endsWith(".d.ts"))(t = e) && t.endsWith(".ts") || (e => e.endsWith(".tsx"))(e)) return !0;
2746
+ var t;
2747
+ const r = e.split("/"), s = r[r.length - 2], n = r[r.length - 1];
2748
+ return !("node_modules" !== s || !isCommonDirModuleFile(n));
2749
+ })(n) || known404Urls.has(s) || (e => knownUrlSkips.some((t => e.endsWith(t))))(s))) try {
2750
+ const o = await ((e, t, r) => e && isFunction(e.fetch) ? e.fetch(t, r) : fetch(t, r))(e, s);
2751
+ if (o) {
2752
+ if (o.ok) {
2753
+ const i = await o.clone().text();
2754
+ return await (async (e, t, r, s, n, o) => {
2755
+ r.endsWith("package.json") && ((e, t) => {
2756
+ try {
2757
+ const r = JSON.parse(t);
2758
+ r.name && r.version && ((e, t, r) => {
2759
+ e.set(t, r);
2760
+ })(e, r.name, r.version);
2761
+ } catch (e) {}
2762
+ })(o, n);
2763
+ let i = path$2.dirname(s);
2764
+ for (;"/" !== i && "" !== i; ) t ? (t.clearFileCache(i), await t.sys.createDir(i)) : await e.createDir(i),
2765
+ i = path$2.dirname(i);
2766
+ t ? (t.clearFileCache(s), await t.sys.writeFile(s, n)) : await e.writeFile(s, n);
2767
+ })(e, t, s, n, i, r), i;
2768
+ }
2769
+ 404 === o.status && known404Urls.add(s);
2770
+ }
2771
+ } catch (e) {
2772
+ console.error(e);
2773
+ }
2774
+ }, createSystem = e => {
2775
+ var t;
2776
+ const r = null !== (t = null == e ? void 0 : e.logger) && void 0 !== t ? t : (() => {
2777
+ let e = IS_BROWSER_ENV, t = "info";
2778
+ return {
2779
+ enableColors: t => e = t,
2780
+ getLevel: () => t,
2781
+ setLevel: e => t = e,
2782
+ emoji: e => e,
2783
+ info: console.log.bind(console),
2784
+ warn: console.warn.bind(console),
2785
+ error: console.error.bind(console),
2786
+ debug: console.debug.bind(console),
2787
+ red: e => e,
2788
+ green: e => e,
2789
+ yellow: e => e,
2790
+ blue: e => e,
2791
+ magenta: e => e,
2792
+ cyan: e => e,
2793
+ gray: e => e,
2794
+ bold: e => e,
2795
+ dim: e => e,
2796
+ bgRed: e => e,
2797
+ createTimeSpan: (e, t = !1) => ({
2798
+ duration: () => 0,
2799
+ finish: () => 0
2800
+ }),
2801
+ printDiagnostics(t) {
2802
+ t.forEach((t => ((e, t) => {
2803
+ let r = BLUE, s = "Build", n = "";
2804
+ "error" === e.level ? (r = RED, s = "Error") : "warn" === e.level && (r = YELLOW,
2805
+ s = "Warning"), e.header && (s = e.header);
2806
+ const o = e.relFilePath || e.absFilePath;
2807
+ if (o && (n += o, "number" == typeof e.lineNumber && e.lineNumber > 0 && (n += ", line " + e.lineNumber,
2808
+ "number" == typeof e.columnNumber && e.columnNumber > 0 && (n += ", column " + e.columnNumber)),
2809
+ n += "\n"), n += e.messageText, e.lines && e.lines.length > 0 && (e.lines.forEach((e => {
2810
+ n += "\n" + e.lineNumber + ": " + e.text;
2811
+ })), n += "\n"), t) {
2812
+ const e = [ "%c" + s, `background: ${r}; color: white; padding: 2px 3px; border-radius: 2px; font-size: 0.8em;` ];
2813
+ console.log(...e, n);
2814
+ } else "error" === e.level ? console.error(n) : "warn" === e.level ? console.warn(n) : console.log(n);
2815
+ })(t, e)));
2816
+ }
2817
+ };
2818
+ })(), s = new Map, n = new Set, o = e => n.add(e), i = e => n.delete(e), a = buildEvents(), l = IS_BROWSER_ENV && navigator.hardwareConcurrency || 1, c = e => {
2819
+ if ("/" === e || "" === e) return "/";
2820
+ const t = path$2.dirname(e), r = path$2.basename(e);
2821
+ return t.endsWith("/") ? normalizePath(`${t}${r}`) : normalizePath(`${t}/${r}`);
2822
+ }, u = e => {
2823
+ const t = s.get(c(e));
2824
+ return !(!t || !(t.isDirectory || t.isFile && "string" == typeof t.data));
2825
+ }, d = (e, t) => {
2826
+ e = c(e);
2827
+ const r = {
2828
+ basename: path$2.basename(e),
2829
+ dirname: path$2.dirname(e),
2830
+ path: e,
2831
+ newDirs: [],
2832
+ error: null
2833
+ };
2834
+ return h(e, t, r), r;
2835
+ }, h = (e, t, r) => {
2836
+ const n = path$2.dirname(e);
2837
+ t && t.recursive && !(e => "/" === e || windowsPathRegex.test(e))(n) && h(n, t, r);
2838
+ const o = s.get(e);
2839
+ o ? (o.isDirectory = !0, o.isFile = !1) : (s.set(e, {
2840
+ basename: path$2.basename(e),
2841
+ dirname: n,
2842
+ isDirectory: !0,
2843
+ isFile: !1,
2844
+ watcherCallbacks: null,
2845
+ data: void 0
2846
+ }), r.newDirs.push(e), b(e, new Set));
2847
+ }, p = e => {
2848
+ e = c(e);
2849
+ const t = [], r = s.get(e);
2850
+ return r && r.isDirectory && s.forEach(((r, s) => {
2851
+ "/" !== s && (r.isDirectory || r.isFile && "string" == typeof r.data) && (e.endsWith("/") && `${e}${r.basename}` === s || `${e}/${r.basename}` === s) && t.push(s);
2852
+ })), t.sort();
2853
+ }, f = e => {
2854
+ e = c(e);
2855
+ const t = s.get(e);
2856
+ if (t && t.isFile) return t.data;
2857
+ }, m = e => ({
2858
+ path: c(e),
2859
+ error: null
2860
+ }), g = (e, t, r) => {
2861
+ const n = _(e);
2862
+ if (!n.error && !r.error) if (n.isFile) {
2863
+ const n = path$2.dirname(t), o = d(n, {
2864
+ recursive: !0
2865
+ }), i = s.get(e).data, a = E(t, i);
2866
+ r.newDirs.push(...o.newDirs), r.renamed.push({
2867
+ oldPath: e,
2868
+ newPath: t,
2869
+ isDirectory: !1,
2870
+ isFile: !0
2871
+ }), a.error ? r.error = a.error : r.newFiles.push(t);
2872
+ } else if (n.isDirectory) {
2873
+ const s = p(e), n = d(t, {
2874
+ recursive: !0
2875
+ });
2876
+ r.newDirs.push(...n.newDirs), r.renamed.push({
2877
+ oldPath: e,
2878
+ newPath: t,
2879
+ isDirectory: !0,
2880
+ isFile: !1
2881
+ });
2882
+ for (const n of s) {
2883
+ const s = n.replace(e, t);
2884
+ g(n, s, r);
2885
+ }
2886
+ }
2887
+ }, y = (e, t = {}) => {
2888
+ const r = {
2889
+ basename: path$2.basename(e),
2890
+ dirname: path$2.dirname(e),
2891
+ path: e,
2892
+ removedDirs: [],
2893
+ removedFiles: [],
2894
+ error: null
2895
+ };
2896
+ return w(e, t, r), r;
2897
+ }, w = (e, t, r) => {
2898
+ if (!r.error) {
2899
+ e = c(e);
2900
+ const n = p(e);
2901
+ if (t && t.recursive) for (const e of n) {
2902
+ const n = s.get(e);
2903
+ if (n) if (n.isDirectory) w(e, t, r); else if (n.isFile) {
2904
+ const t = v(e);
2905
+ t.error ? r.error = t.error : r.removedFiles.push(e);
2906
+ }
2907
+ } else if (n.length > 0) return void (r.error = "cannot delete directory that contains files/subdirectories");
2908
+ s.delete(e), b(e, new Set), r.removedDirs.push(e);
2909
+ }
2910
+ }, _ = e => {
2911
+ e = c(e);
2912
+ const t = s.get(e);
2913
+ return t && (t.isDirectory || t.isFile && "string" == typeof t.data) ? {
2914
+ isDirectory: t.isDirectory,
2915
+ isFile: t.isFile,
2916
+ isSymbolicLink: !1,
2917
+ size: t.isFile && t.data ? t.data.length : 0,
2918
+ error: null
2919
+ } : {
2920
+ isDirectory: !1,
2921
+ isFile: !1,
2922
+ isSymbolicLink: !1,
2923
+ size: 0,
2924
+ error: `ENOENT: no such file or directory, statSync '${e}'`
2925
+ };
2926
+ }, v = e => {
2927
+ e = c(e);
2928
+ const t = {
2929
+ basename: path$2.basename(e),
2930
+ dirname: path$2.dirname(e),
2931
+ path: e,
2932
+ error: null
2933
+ }, r = s.get(e);
2934
+ if (r) {
2935
+ if (r.watcherCallbacks) for (const t of r.watcherCallbacks) t(e, "fileDelete");
2936
+ s.delete(e), b(e, new Set);
2937
+ }
2938
+ return t;
2939
+ }, b = (e, t) => {
2940
+ const r = c(path$2.dirname(e)), n = s.get(r);
2941
+ if (n && n.isDirectory && n.watcherCallbacks) for (const t of n.watcherCallbacks) t(e, null);
2942
+ t.has(r) || (t.add(r), b(r, t));
2943
+ }, E = (e, t) => {
2944
+ const r = {
2945
+ path: e = c(e),
2946
+ error: null
2947
+ }, n = s.get(e);
2948
+ if (n) {
2949
+ const r = n.data !== t;
2950
+ if (n.data = t, r && n.watcherCallbacks) for (const t of n.watcherCallbacks) t(e, "fileUpdate");
2951
+ } else s.set(e, {
2952
+ basename: path$2.basename(e),
2953
+ dirname: path$2.dirname(e),
2954
+ isDirectory: !1,
2955
+ isFile: !0,
2956
+ watcherCallbacks: null,
2957
+ data: t
2958
+ }), b(e, new Set);
2959
+ return r;
2960
+ }, T = "undefined" != typeof self ? null === self || void 0 === self ? void 0 : self.fetch : "undefined" != typeof window ? null === window || void 0 === window ? void 0 : window.fetch : "undefined" != typeof global ? null === global || void 0 === global ? void 0 : global.fetch : void 0, S = Promise.resolve();
2961
+ d("/");
2962
+ const C = {
2963
+ name: "in-memory",
2964
+ version: "2.22.2",
2965
+ events: a,
2966
+ access: async e => u(e),
2967
+ accessSync: u,
2968
+ addDestory: o,
2969
+ copyFile: async (e, t) => (E(t, f(e)), !0),
2970
+ createDir: async (e, t) => d(e, t),
2971
+ createDirSync: d,
2972
+ homeDir: () => os__namespace.homedir(),
2973
+ isTTY: () => {
2974
+ var e;
2975
+ return !!(null === (e = null == process__namespace ? void 0 : process__namespace.stdout) || void 0 === e ? void 0 : e.isTTY);
2976
+ },
2977
+ getEnvironmentVar: e => null == process__namespace ? void 0 : process__namespace.env[e],
2978
+ destroy: async () => {
2979
+ const e = [];
2980
+ n.forEach((t => {
2981
+ try {
2982
+ const r = t();
2983
+ r && r.then && e.push(r);
2984
+ } catch (e) {
2985
+ r.error(`stencil sys destroy: ${e}`);
2986
+ }
2987
+ })), await Promise.all(e), n.clear();
2988
+ },
2989
+ encodeToBase64: e => btoa(unescape(encodeURIComponent(e))),
2990
+ exit: async e => r.warn(`exit ${e}`),
2991
+ getCurrentDirectory: () => "/",
2992
+ getCompilerExecutingPath: () => IS_WEB_WORKER_ENV ? location.href : C.getRemoteModuleUrl({
2993
+ moduleId: "@stencil/core",
2994
+ path: "compiler/stencil.min.js"
2995
+ }),
2996
+ getLocalModulePath: e => path$2.join(e.rootDir, "node_modules", e.moduleId, e.path),
2997
+ getRemoteModuleUrl: e => {
2998
+ const t = `${e.moduleId}${e.version ? "@" + e.version : ""}/${e.path}`;
2999
+ return new URL(t, "https://cdn.jsdelivr.net/npm/").href;
3000
+ },
3001
+ hardwareConcurrency: l,
3002
+ isSymbolicLink: async e => !1,
3003
+ nextTick: e => S.then(e),
3004
+ normalizePath: c,
3005
+ platformPath: pathBrowserify,
3006
+ readDir: async e => p(e),
3007
+ readDirSync: p,
3008
+ readFile: async e => f(e),
3009
+ readFileSync: f,
3010
+ realpath: async e => m(e),
3011
+ realpathSync: m,
3012
+ removeDestory: i,
3013
+ rename: async (e, t) => {
3014
+ const r = {
3015
+ oldPath: e = normalizePath(e),
3016
+ newPath: t = normalizePath(t),
3017
+ renamed: [],
3018
+ oldDirs: [],
3019
+ oldFiles: [],
3020
+ newDirs: [],
3021
+ newFiles: [],
3022
+ isFile: !1,
3023
+ isDirectory: !1,
3024
+ error: null
3025
+ }, s = _(e);
3026
+ if (s.error) r.error = `${e} does not exist`; else if (s.isFile ? r.isFile = !0 : s.isDirectory && (r.isDirectory = !0),
3027
+ g(e, t, r), !r.error) if (r.isDirectory) {
3028
+ const t = y(e, {
3029
+ recursive: !0
3030
+ });
3031
+ t.error ? r.error = t.error : (r.oldDirs.push(...t.removedDirs), r.oldFiles.push(...t.removedFiles));
3032
+ } else if (r.isFile) {
3033
+ const t = v(e);
3034
+ t.error ? r.error = t.error : r.oldFiles.push(e);
3035
+ }
3036
+ return r;
3037
+ },
3038
+ fetch: T,
3039
+ resolvePath: e => c(e),
3040
+ removeDir: async (e, t = {}) => y(e, t),
3041
+ removeDirSync: y,
3042
+ stat: async e => _(e),
3043
+ statSync: _,
3044
+ tmpDirSync: () => "/.tmp",
3045
+ removeFile: async e => v(e),
3046
+ removeFileSync: v,
3047
+ watchDirectory: (e, t) => {
3048
+ e = c(e);
3049
+ const r = s.get(e), n = () => {
3050
+ const r = s.get(e);
3051
+ if (r && r.watcherCallbacks) {
3052
+ const e = r.watcherCallbacks.indexOf(t);
3053
+ e > -1 && r.watcherCallbacks.splice(e, 1);
3054
+ }
3055
+ };
3056
+ return o(n), r ? (r.isDirectory = !0, r.isFile = !1, r.watcherCallbacks = r.watcherCallbacks || [],
3057
+ r.watcherCallbacks.push(t)) : s.set(e, {
3058
+ basename: path$2.basename(e),
3059
+ dirname: path$2.dirname(e),
3060
+ isDirectory: !0,
3061
+ isFile: !1,
3062
+ watcherCallbacks: [ t ],
3063
+ data: void 0
3064
+ }), {
3065
+ close() {
3066
+ i(n), n();
3067
+ }
3068
+ };
3069
+ },
3070
+ watchFile: (e, t) => {
3071
+ e = c(e);
3072
+ const r = s.get(e), n = () => {
3073
+ const r = s.get(e);
3074
+ if (r && r.watcherCallbacks) {
3075
+ const e = r.watcherCallbacks.indexOf(t);
3076
+ e > -1 && r.watcherCallbacks.splice(e, 1);
3077
+ }
3078
+ };
3079
+ return o(n), r ? (r.isDirectory = !1, r.isFile = !0, r.watcherCallbacks = r.watcherCallbacks || [],
3080
+ r.watcherCallbacks.push(t)) : s.set(e, {
3081
+ basename: path$2.basename(e),
3082
+ dirname: path$2.dirname(e),
3083
+ isDirectory: !1,
3084
+ isFile: !0,
3085
+ watcherCallbacks: [ t ],
3086
+ data: void 0
3087
+ }), {
3088
+ close() {
3089
+ i(n), n();
3090
+ }
3091
+ };
3092
+ },
3093
+ watchTimeout: 32,
3094
+ writeFile: async (e, t) => E(e, t),
3095
+ writeFileSync: E,
3096
+ generateContentHash: async (e, t) => {
3097
+ const r = await crypto.subtle.digest("SHA-256", (new TextEncoder).encode(e));
3098
+ let s = Array.from(new Uint8Array(r)).map((e => e.toString(16).padStart(2, "0"))).join("");
3099
+ return "number" == typeof t && (s = s.slice(0, t)), s;
3100
+ },
3101
+ createWorkerController: HAS_WEB_WORKER ? e => ((e, t) => {
3102
+ let r, s = 0, n = !1, o = !1, i = 0;
3103
+ const a = new Map, l = [], c = [], u = Math.max(Math.min(t, e.hardwareConcurrency), 2) - 1, d = Promise.resolve(), h = e => console.error(e), p = () => {
3104
+ let t = null;
3105
+ const s = e.getCompilerExecutingPath(), o = {
3106
+ name: "stencil.worker." + i++
3107
+ };
3108
+ try {
3109
+ t = new Worker(s, o);
3110
+ } catch (e) {
3111
+ null == r && (r = new Blob([ `importScripts('${s}');` ], {
3112
+ type: "application/javascript"
3113
+ })), t = new Worker(URL.createObjectURL(r), o);
3114
+ }
3115
+ const l = {
3116
+ worker: t,
3117
+ activeTasks: 0,
3118
+ sendQueue: []
3119
+ };
3120
+ return t.onerror = h, t.onmessage = e => ((e, t) => {
3121
+ if (!n) {
3122
+ const r = t.data;
3123
+ if (Array.isArray(r)) for (const t of r) if (t) {
3124
+ const r = a.get(t.stencilId);
3125
+ r ? (a.delete(t.stencilId), t.stencilRtnError ? r.reject(t.stencilRtnError) : r.resolve(t.stencilRtnValue),
3126
+ e.activeTasks--, (e.activeTasks < 0 || e.activeTasks > 50) && (e.activeTasks = 0)) : t.stencilRtnError && console.error(t.stencilRtnError);
3127
+ }
3128
+ }
3129
+ })(l, e), l;
3130
+ }, f = e => {
3131
+ e.sendQueue.length > 0 && (e.worker.postMessage(e.sendQueue), e.sendQueue.length = 0);
3132
+ }, m = e => {
3133
+ let t;
3134
+ if (c.length > 0) {
3135
+ if (t = c[0], u > 1) {
3136
+ for (const e of c) e.activeTasks < t.activeTasks && (t = e);
3137
+ t.activeTasks > 0 && c.length < u && (t = p(), c.push(t));
3138
+ }
3139
+ } else t = p(), c.push(t);
3140
+ t.activeTasks++, t.sendQueue.push(e);
3141
+ }, g = () => {
3142
+ o = !1, l.forEach(m), l.length = 0, c.forEach(f);
3143
+ }, y = (...e) => new Promise(((t, r) => {
3144
+ if (n) r("task canceled"); else {
3145
+ const n = {
3146
+ stencilId: s++,
3147
+ args: e
3148
+ };
3149
+ l.push(n), a.set(n.stencilId, {
3150
+ resolve: t,
3151
+ reject: r
3152
+ }), o || (o = !0, d.then(g));
3153
+ }
3154
+ }));
3155
+ return {
3156
+ send: y,
3157
+ destroy: () => {
3158
+ n = !0, a.forEach((e => e.reject("task canceled"))), a.clear(), c.forEach((e => e.worker.terminate())),
3159
+ c.length = 0;
3160
+ },
3161
+ handler: e => function(...t) {
3162
+ return y(e, ...t);
3163
+ },
3164
+ maxWorkers: u
3165
+ };
3166
+ })(C, e) : null,
3167
+ details: {
3168
+ cpuModel: "",
3169
+ freemem: () => 0,
3170
+ platform: "",
3171
+ release: "",
3172
+ totalmem: 0
3173
+ },
3174
+ copy: async (e, t) => (r.info("todo, copy task", e.length, t), {
3175
+ diagnostics: [],
3176
+ dirPaths: [],
3177
+ filePaths: []
3178
+ })
3179
+ };
3180
+ return C.resolveModuleId = e => ((e, t, r) => {
3181
+ const s = ((e, t, r) => ({
3182
+ async isFile(s, n) {
3183
+ const o = normalizeFsPath(s);
3184
+ if ((await t.stat(o)).isFile) n(null, !0); else {
3185
+ if (shouldFetchModule(o) && r.some((e => o.endsWith(e)))) {
3186
+ const r = getNodeModuleFetchUrl(e, packageVersions, o);
3187
+ return void n(null, "string" == typeof await fetchModuleAsync(e, t, packageVersions, r, o));
3188
+ }
3189
+ n(null, !1);
3190
+ }
3191
+ },
3192
+ async isDirectory(r, s) {
3193
+ const n = normalizeFsPath(r);
3194
+ if ((await t.stat(n)).isDirectory) s(null, !0); else {
3195
+ if (shouldFetchModule(n)) {
3196
+ if ("node_modules" === path$2.basename(n)) return t.sys.createDirSync(n), t.clearFileCache(n),
3197
+ void s(null, !0);
3198
+ if (isCommonDirModuleFile(n)) return void s(null, !1);
3199
+ for (const r of COMMON_DIR_FILENAMES) {
3200
+ const o = getCommonDirUrl(e, packageVersions, n, r), i = getCommonDirName(n, r), a = await fetchModuleAsync(e, t, packageVersions, o, i);
3201
+ if (isString(a)) return void s(null, !0);
3202
+ }
3203
+ }
3204
+ s(null, !1);
3205
+ }
3206
+ },
3207
+ async readFile(e, r) {
3208
+ const s = normalizeFsPath(e), n = await t.readFile(s);
3209
+ return isString(n) ? r(null, n) : r(`readFile not found: ${e}`);
3210
+ },
3211
+ async realpath(t, r) {
3212
+ const s = normalizeFsPath(t), n = await e.realpath(s);
3213
+ n.error && "ENOENT" !== n.error.code ? r(n.error) : r(null, n.error ? s : n.path);
3214
+ },
3215
+ extensions: r
3216
+ }))(e, null, r.exts);
3217
+ return s.basedir = path$2.dirname(normalizeFsPath(r.containingFile)), r.packageFilter ? s.packageFilter = r.packageFilter : null !== r.packageFilter && (s.packageFilter = e => (isString(e.main) && "" !== e.main || (e.main = "package.json"),
3218
+ e)), new Promise(((e, t) => {
3219
+ resolve(r.moduleId, s, ((s, n, o) => {
3220
+ if (s) t(s); else {
3221
+ n = normalizePath(n);
3222
+ const t = {
3223
+ moduleId: r.moduleId,
3224
+ resolveId: n,
3225
+ pkgData: o,
3226
+ pkgDirPath: getPackageDirPath(n, r.moduleId)
3227
+ };
3228
+ e(t);
3229
+ }
3230
+ }));
3231
+ }));
3232
+ })(C, 0, e), C;
3233
+ }, createTestingSystem = () => {
3234
+ let e = 0, t = 0;
3235
+ const r = createSystem();
3236
+ r.platformPath = path__default.default, r.generateContentHash = (e, t) => {
3237
+ let r = crypto$3.createHash("sha1").update(e).digest("hex").toLowerCase();
3238
+ return "number" == typeof t && (r = r.slice(0, t)), Promise.resolve(r);
3239
+ };
3240
+ const s = t => {
3241
+ const r = t;
3242
+ return (...t) => (e++, r.apply(r, t));
3243
+ }, n = e => {
3244
+ const r = e;
3245
+ return (...e) => (t++, r.apply(r, e));
3246
+ };
3247
+ if (r.access = s(r.access), r.accessSync = s(r.accessSync), r.homeDir = s(r.homeDir),
3248
+ r.readFile = s(r.readFile), r.readFileSync = s(r.readFileSync), r.readDir = s(r.readDir),
3249
+ r.readDirSync = s(r.readDirSync), r.stat = s(r.stat), r.statSync = s(r.statSync),
3250
+ r.copyFile = n(r.copyFile), r.createDir = n(r.createDir), r.createDirSync = n(r.createDirSync),
3251
+ r.removeFile = n(r.removeFile), r.removeFileSync = n(r.removeFileSync), r.writeFile = n(r.writeFile),
3252
+ r.writeFileSync = n(r.writeFileSync), r.getCompilerExecutingPath = () => "bin/stencil.js",
3253
+ Object.defineProperties(r, {
3254
+ diskReads: {
3255
+ get: () => e,
3256
+ set(t) {
3257
+ e = t;
3258
+ }
3259
+ },
3260
+ diskWrites: {
3261
+ get: () => t,
3262
+ set(e) {
3263
+ t = e;
3264
+ }
3265
+ }
3266
+ }), !function o(e) {
3267
+ return "diskReads" in e && "diskWrites" in e;
3268
+ }(r)) throw new Error("could not generate TestingSystem");
3269
+ return r;
3270
+ };
3271
+
3272
+ class EventSpy {
3273
+ constructor(e) {
3274
+ this.eventName = e, this.events = [], this.cursor = 0, this.queuedHandler = [];
3275
+ }
3276
+ get length() {
3277
+ return this.events.length;
3278
+ }
3279
+ get firstEvent() {
3280
+ return this.events[0] || null;
3281
+ }
3282
+ get lastEvent() {
3283
+ return this.events[this.events.length - 1] || null;
3284
+ }
3285
+ next() {
3286
+ const e = this.cursor;
3287
+ this.cursor++;
3288
+ const t = this.events[e];
3289
+ if (t) return Promise.resolve({
3290
+ done: !1,
3291
+ value: t
3292
+ });
3293
+ {
3294
+ let t;
3295
+ const r = new Promise((e => t = e));
3296
+ return this.queuedHandler.push(t), r.then((() => ({
3297
+ done: !1,
3298
+ value: this.events[e]
3299
+ })));
3300
+ }
3301
+ }
3302
+ push(e) {
3303
+ this.events.push(e);
3304
+ const t = this.queuedHandler.shift();
3305
+ t && t();
3306
+ }
3307
+ }
3308
+
3309
+ class E2EElement extends index_cjs.MockHTMLElement {
3310
+ _queueAction(e) {
3311
+ this._queuedActions.push(e);
3312
+ }
3313
+ constructor(e, t) {
3314
+ super(null, null), this._page = e, this._elmHandle = t, this._queuedActions = [],
3315
+ e._e2eElements.push(this);
3316
+ }
3317
+ find(e) {
3318
+ return find(this._page, this._elmHandle, e);
3319
+ }
3320
+ findAll(e) {
3321
+ return findAll(this._page, this._elmHandle, e);
3322
+ }
3323
+ callMethod(e, ...t) {
3324
+ return this._queueAction({
3325
+ methodName: e,
3326
+ methodArgs: t
3327
+ }), this.e2eRunActions();
3328
+ }
3329
+ triggerEvent(e, t) {
3330
+ this._queueAction({
3331
+ eventName: e,
3332
+ eventInitDict: t
3333
+ });
3334
+ }
3335
+ async spyOnEvent(e) {
3336
+ const t = new EventSpy(e);
3337
+ return await addE2EListener(this._page, this._elmHandle, e, (e => {
3338
+ t.push(e);
3339
+ })), t;
3340
+ }
3341
+ async click(e) {
3342
+ await this._elmHandle.click(e), await this._page.waitForChanges();
3343
+ }
3344
+ async focus() {
3345
+ await this._elmHandle.focus(), await this._page.waitForChanges();
3346
+ }
3347
+ async hover() {
3348
+ await this._elmHandle.hover(), await this._page.waitForChanges();
3349
+ }
3350
+ async isVisible() {
3351
+ this._validate();
3352
+ let e = !1;
3353
+ try {
3354
+ const t = this._elmHandle.executionContext();
3355
+ e = await t.evaluate((e => new Promise((t => {
3356
+ window.requestAnimationFrame((() => {
3357
+ if (e.isConnected) {
3358
+ const r = window.getComputedStyle(e);
3359
+ r && "none" !== r.display && "hidden" !== r.visibility && "0" !== r.opacity ? window.requestAnimationFrame((() => {
3360
+ e.clientWidth, t(!0);
3361
+ })) : t(!1);
3362
+ } else t(!1);
3363
+ }));
3364
+ }))), this._elmHandle);
3365
+ } catch (e) {}
3366
+ return e;
3367
+ }
3368
+ waitForEvent(e) {
3369
+ return waitForEvent(this._page, e, this._elmHandle);
3370
+ }
3371
+ waitForVisible() {
3372
+ return new Promise(((e, t) => {
3373
+ const r = setInterval((async () => {
3374
+ await this.isVisible() && (clearInterval(r), clearTimeout(o), e());
3375
+ }), 10), s = .5 * jasmine.DEFAULT_TIMEOUT_INTERVAL, n = new Error(`waitForVisible timed out: ${s}ms`), o = setTimeout((() => {
3376
+ clearTimeout(r), t(n);
3377
+ }), s);
3378
+ }));
3379
+ }
3380
+ waitForNotVisible() {
3381
+ return new Promise(((e, t) => {
3382
+ const r = setInterval((async () => {
3383
+ await this.isVisible() || (clearInterval(r), clearTimeout(o), e());
3384
+ }), 10), s = .5 * jasmine.DEFAULT_TIMEOUT_INTERVAL, n = new Error(`waitForNotVisible timed out: ${s}ms`), o = setTimeout((() => {
3385
+ clearTimeout(r), t(n);
3386
+ }), s);
3387
+ }));
3388
+ }
3389
+ isIntersectingViewport() {
3390
+ return this._elmHandle.isIntersectingViewport();
3391
+ }
3392
+ async press(e, t) {
3393
+ await this._elmHandle.press(e, t), await this._page.waitForChanges();
3394
+ }
3395
+ async tap() {
3396
+ await this._elmHandle.tap(), await this._page.waitForChanges();
3397
+ }
3398
+ async type(e, t) {
3399
+ await this._elmHandle.type(e, t), await this._page.waitForChanges();
3400
+ }
3401
+ async getProperty(e) {
3402
+ this._validate();
3403
+ const t = this._elmHandle.executionContext();
3404
+ return await t.evaluate(((e, t) => e[t]), this._elmHandle, e);
3405
+ }
3406
+ setProperty(e, t) {
3407
+ this._queueAction({
3408
+ setPropertyName: e,
3409
+ setPropertyValue: t
3410
+ });
3411
+ }
3412
+ getAttribute(e) {
3413
+ return this._validate(), super.getAttribute(e);
3414
+ }
3415
+ setAttribute(e, t) {
3416
+ this._queueAction({
3417
+ setAttributeName: e,
3418
+ setAttributeValue: t
3419
+ });
3420
+ }
3421
+ removeAttribute(e) {
3422
+ this._queueAction({
3423
+ removeAttribute: e
3424
+ });
3425
+ }
3426
+ toggleAttribute(e, t) {
3427
+ this._queueAction({
3428
+ toggleAttributeName: e,
3429
+ toggleAttributeForce: t
3430
+ });
3431
+ }
3432
+ get classList() {
3433
+ return {
3434
+ add: (...e) => {
3435
+ e.forEach((e => {
3436
+ this._queueAction({
3437
+ classAdd: e
3438
+ });
3439
+ }));
3440
+ },
3441
+ remove: (...e) => {
3442
+ e.forEach((e => {
3443
+ this._queueAction({
3444
+ classRemove: e
3445
+ });
3446
+ }));
3447
+ },
3448
+ toggle: e => {
3449
+ this._queueAction({
3450
+ classToggle: e
3451
+ });
3452
+ },
3453
+ contains: e => (this._validate(), super.className.split(" ").includes(e))
3454
+ };
3455
+ }
3456
+ get className() {
3457
+ return this._validate(), super.className;
3458
+ }
3459
+ set className(e) {
3460
+ this._queueAction({
3461
+ setPropertyName: "className",
3462
+ setPropertyValue: e
3463
+ });
3464
+ }
3465
+ get id() {
3466
+ return this._validate(), super.id;
3467
+ }
3468
+ set id(e) {
3469
+ this._queueAction({
3470
+ setPropertyName: "id",
3471
+ setPropertyValue: e
3472
+ });
3473
+ }
3474
+ get innerHTML() {
3475
+ return this._validate(), super.innerHTML;
3476
+ }
3477
+ set innerHTML(e) {
3478
+ this._queueAction({
3479
+ setPropertyName: "innerHTML",
3480
+ setPropertyValue: e
3481
+ });
3482
+ }
3483
+ get innerText() {
3484
+ return this._validate(), super.innerText;
3485
+ }
3486
+ set innerText(e) {
3487
+ this._queueAction({
3488
+ setPropertyName: "innerText",
3489
+ setPropertyValue: e
3490
+ });
3491
+ }
3492
+ get nodeValue() {
3493
+ return this._validate(), super.nodeValue;
3494
+ }
3495
+ set nodeValue(e) {
3496
+ "string" == typeof e && this._queueAction({
3497
+ setPropertyName: "nodeValue",
3498
+ setPropertyValue: e
3499
+ });
3500
+ }
3501
+ get outerHTML() {
3502
+ return this._validate(), super.outerHTML;
3503
+ }
3504
+ set outerHTML(e) {
3505
+ throw new Error("outerHTML is read-only");
3506
+ }
3507
+ get shadowRoot() {
3508
+ return this._validate(), super.shadowRoot;
3509
+ }
3510
+ set shadowRoot(e) {
3511
+ super.shadowRoot = e;
3512
+ }
3513
+ get tabIndex() {
3514
+ return this._validate(), super.tabIndex;
3515
+ }
3516
+ set tabIndex(e) {
3517
+ this._queueAction({
3518
+ setPropertyName: "tabIndex",
3519
+ setPropertyValue: e
3520
+ });
3521
+ }
3522
+ get textContent() {
3523
+ return this._validate(), super.textContent;
3524
+ }
3525
+ set textContent(e) {
3526
+ this._queueAction({
3527
+ setPropertyName: "textContent",
3528
+ setPropertyValue: e
3529
+ });
3530
+ }
3531
+ get title() {
3532
+ return this._validate(), super.title;
3533
+ }
3534
+ set title(e) {
3535
+ this._queueAction({
3536
+ setPropertyName: "title",
3537
+ setPropertyValue: e
3538
+ });
3539
+ }
3540
+ async getComputedStyle(e) {
3541
+ const t = await this._page.evaluate(((e, t) => {
3542
+ const r = {}, s = window.getComputedStyle(e, t);
3543
+ return Object.keys(s).forEach((e => {
3544
+ if (isNaN(e)) {
3545
+ const t = s[e];
3546
+ null != t && (r[e] = t);
3547
+ } else {
3548
+ const t = s[e];
3549
+ if (t.includes("-")) {
3550
+ const e = s.getPropertyValue(t);
3551
+ null != e && (r[t] = e);
3552
+ }
3553
+ }
3554
+ })), r;
3555
+ }), this._elmHandle, e);
3556
+ return t.getPropertyValue = e => t[e], t;
3557
+ }
3558
+ async e2eRunActions() {
3559
+ if (0 === this._queuedActions.length) return;
3560
+ const e = this._elmHandle.executionContext(), t = await e.evaluate(((e, t) => e.componentOnReady().then((() => {
3561
+ let r = null;
3562
+ return t.forEach((t => {
3563
+ if (t.methodName) r = e[t.methodName].apply(e, t.methodArgs); else if (t.setPropertyName) e[t.setPropertyName] = t.setPropertyValue; else if (t.setAttributeName) e.setAttribute(t.setAttributeName, t.setAttributeValue); else if (t.removeAttribute) e.removeAttribute(t.removeAttribute); else if (t.toggleAttributeName) "boolean" == typeof t.toggleAttributeForce ? e.toggleAttribute(t.toggleAttributeName, t.toggleAttributeForce) : e.toggleAttribute(t.toggleAttributeName); else if (t.classAdd) e.classList.add(t.classAdd); else if (t.classRemove) e.classList.remove(t.classRemove); else if (t.classToggle) e.classList.toggle(t.classToggle); else if (t.eventName) {
3564
+ const r = t.eventInitDict || {};
3565
+ "boolean" != typeof r.bubbles && (r.bubbles = !0), "boolean" != typeof r.cancelable && (r.cancelable = !0),
3566
+ "boolean" != typeof r.composed && (r.composed = !0);
3567
+ const s = new CustomEvent(t.eventName, r);
3568
+ e.dispatchEvent(s);
3569
+ }
3570
+ })), r && "function" == typeof r.then ? r.then((e => e)) : r;
3571
+ }))), this._elmHandle, this._queuedActions);
3572
+ return this._queuedActions.length = 0, t;
3573
+ }
3574
+ async e2eSync() {
3575
+ const e = this._elmHandle.executionContext(), {outerHTML: t, shadowRootHTML: r} = await e.evaluate((e => ({
3576
+ outerHTML: e.outerHTML,
3577
+ shadowRootHTML: e.shadowRoot ? e.shadowRoot.innerHTML : null
3578
+ })), this._elmHandle);
3579
+ "string" == typeof r ? (this.shadowRoot = index_cjs.parseHtmlToFragment(r), this.shadowRoot.host = this) : this.shadowRoot = null;
3580
+ const s = index_cjs.parseHtmlToFragment(t).firstElementChild;
3581
+ for (this.nodeName = s.nodeName, this.attributes = index_cjs.cloneAttributes(s.attributes); this.childNodes.length > 0; ) this.removeChild(this.childNodes[0]);
3582
+ for (;s.childNodes.length > 0; ) this.appendChild(s.childNodes[0]);
3583
+ }
3584
+ _validate() {
3585
+ if (this._queuedActions.length > 0) throw new Error("await page.waitForChanges() must be called before reading element information");
3586
+ }
3587
+ async e2eDispose() {
3588
+ this._elmHandle && (await this._elmHandle.dispose(), this._elmHandle = null);
3589
+ const e = this._page._e2eElements.indexOf(this);
3590
+ e > -1 && this._page._e2eElements.splice(e, 1), this._page = null;
3591
+ }
3592
+ }
3593
+
3594
+ const env = process.env, isOutputTargetDistLazy = e => e.type === DIST_LAZY, isOutputTargetWww = e => e.type === WWW, DIST_LAZY = "dist-lazy", WWW = "www";
3595
+
3596
+ exports.MockHeaders = MockHeaders, exports.MockRequest = MockRequest, exports.MockResponse = MockResponse,
3597
+ exports.createJestPuppeteerEnvironment = function createJestPuppeteerEnvironment() {
3598
+ const e = require("jest-environment-node");
3599
+ return class extends e {
3600
+ constructor(e) {
3601
+ super(e), this.browser = null, this.pages = [];
3602
+ }
3603
+ async setup() {
3604
+ "true" === process.env.__STENCIL_E2E_TESTS__ && (this.global.__NEW_TEST_PAGE__ = this.newPuppeteerPage.bind(this),
3605
+ this.global.__CLOSE_OPEN_PAGES__ = this.closeOpenPages.bind(this));
3606
+ }
3607
+ async newPuppeteerPage() {
3608
+ this.browser || (this.browser = await async function e() {
3609
+ const e = process.env, t = e.__STENCIL_BROWSER_WS_ENDPOINT__;
3610
+ if (!t) return null;
3611
+ const r = {
3612
+ browserWSEndpoint: t,
3613
+ ignoreHTTPSErrors: !0
3614
+ }, s = require(e.__STENCIL_PUPPETEER_MODULE__);
3615
+ return await s.connect(r);
3616
+ }());
3617
+ const t = await function r(e) {
3618
+ return e.newPage();
3619
+ }(this.browser);
3620
+ this.pages.push(t);
3621
+ const s = process.env;
3622
+ return "string" == typeof s.__STENCIL_DEFAULT_TIMEOUT__ && t.setDefaultTimeout(parseInt(s.__STENCIL_DEFAULT_TIMEOUT__, 10)),
3623
+ t;
3624
+ }
3625
+ async closeOpenPages() {
3626
+ await Promise.all(this.pages.map((e => e.close()))), this.pages.length = 0;
3627
+ }
3628
+ async teardown() {
3629
+ await super.teardown(), await this.closeOpenPages(), await async function e(t) {
3630
+ if (t) try {
3631
+ t.disconnect();
3632
+ } catch (e) {}
3633
+ }(this.browser), this.browser = null;
3634
+ }
3635
+ getVmContext() {
3636
+ return super.getVmContext();
3637
+ }
3638
+ };
3639
+ }, exports.createTestRunner = function createTestRunner() {
3640
+ var e;
3641
+ const t = null !== (e = require("jest-runner").default) && void 0 !== e ? e : require("jest-runner");
3642
+ return class r extends t {
3643
+ async runTests(e, t, r, s, n, o) {
3644
+ const i = process.env;
3645
+ if (e = e.filter((e => function t(e, r) {
3646
+ const s = (e = e.toLowerCase().replace(/\\/g, "/")).includes(".e2e.") || e.includes("/e2e.");
3647
+ return !("true" !== r.__STENCIL_E2E_TESTS__ || !s) || "true" === r.__STENCIL_SPEC_TESTS__ && !s;
3648
+ }(e.path, i))), "true" === i.__STENCIL_SCREENSHOT__) {
3649
+ const a = JSON.parse(i.__STENCIL_EMULATE_CONFIGS__);
3650
+ for (let l = 0; l < a.length; l++) setScreenshotEmulateData(a[l], i), await super.runTests(e, t, r, s, n, o);
3651
+ } else await super.runTests(e, t, r, s, n, o);
3652
+ }
3653
+ };
3654
+ }, exports.createTesting = async e => {
3655
+ e = function t(e) {
3656
+ return e.buildEs5 = !1, e.devMode = !0, e.minifyCss = !1, e.minifyJs = !1, e.hashFileNames = !1,
3657
+ e.validateTypes = !1, e._isTesting = !0, e.buildDist = !0, e.flags.serve = !1, e.flags.open = !1,
3658
+ e.outputTargets.forEach((e => {
3659
+ "www" === e.type && (e.serviceWorker = null);
3660
+ })), e.flags.args.includes("--watchAll") && (e.watch = !0), e;
3661
+ }(e);
3662
+ const {createCompiler: r} = require("../compiler/stencil.js"), s = await r(e);
3663
+ let n, o;
3664
+ const i = async () => {
3665
+ const t = [];
3666
+ e && (e.sys && e.sys.destroy && t.push(e.sys.destroy()), e = null), n && (n.close && t.push(n.close()),
3667
+ n = null), o && (o.close && t.push(o.close()), o = null), await Promise.all(t);
3668
+ };
3669
+ return {
3670
+ destroy: i,
3671
+ run: async (t = {}) => {
3672
+ let r, a = !1, l = !1, c = null;
3673
+ const u = [];
3674
+ try {
3675
+ if (!t.spec && !t.e2e) return e.logger.error("Testing requires either the --spec or --e2e command line flags, or both. For example, to run unit tests, use the command: stencil test --spec"),
3676
+ !1;
3677
+ if (r = process.env, t.e2e && (u.push("e2e"), r.__STENCIL_E2E_TESTS__ = "true"),
3678
+ t.spec && (u.push("spec"), r.__STENCIL_SPEC_TESTS__ = "true"), e.logger.info(e.logger.magenta(`testing ${u.join(" and ")} files${e.watch ? " (watch)" : ""}`)),
3679
+ a = !(!t.e2e || !t.screenshot), a && (r.__STENCIL_SCREENSHOT__ = "true", t.updateScreenshot ? e.logger.info(e.logger.magenta("updating master screenshots")) : e.logger.info(e.logger.magenta("comparing against master screenshots"))),
3680
+ t.e2e) {
3681
+ let t = null;
3682
+ e.outputTargets.forEach((e => {
3683
+ e.empty = !1;
3684
+ }));
3685
+ const a = !(e.flags && !1 === e.flags.build);
3686
+ a && e.watch && (c = await s.createWatcher()), a && (c ? (t = new Promise((e => {
3687
+ const t = c.on("buildFinish", (r => {
3688
+ t(), e(r);
3689
+ }));
3690
+ })), c.start()) : t = s.build()), e.devServer.openBrowser = !1, e.devServer.gzip = !1,
3691
+ e.devServer.reloadStrategy = null;
3692
+ const l = await Promise.all([ index_js.start(e.devServer, e.logger), startPuppeteerBrowser(e) ]);
3693
+ if (n = l[0], o = l[1], t) {
3694
+ const r = await t;
3695
+ if (!r || !e.watch && hasError(r && r.diagnostics)) return await i(), !1;
3696
+ }
3697
+ n && (r.__STENCIL_BROWSER_URL__ = n.browserUrl, e.logger.debug(`e2e dev server url: ${r.__STENCIL_BROWSER_URL__}`),
3698
+ r.__STENCIL_APP_SCRIPT_URL__ = function d(e, t) {
3699
+ return getAppUrl(e, t, `${e.fsNamespace}.esm.js`);
3700
+ }(e, n.browserUrl), e.logger.debug(`e2e app script url: ${r.__STENCIL_APP_SCRIPT_URL__}`),
3701
+ getAppStyleUrl(e, n.browserUrl) && (r.__STENCIL_APP_STYLE_URL__ = getAppStyleUrl(e, n.browserUrl),
3702
+ e.logger.debug(`e2e app style url: ${r.__STENCIL_APP_STYLE_URL__}`)));
3703
+ }
3704
+ } catch (t) {
3705
+ return e.logger.error(t), !1;
3706
+ }
3707
+ try {
3708
+ l = a ? await async function h(e, t) {
3709
+ e.logger.debug(`screenshot connector: ${e.testing.screenshotConnector}`);
3710
+ const r = new (require(e.testing.screenshotConnector)), s = path$2.join(e.sys.getCompilerExecutingPath(), "..", "..", "screenshot", "pixel-match.js");
3711
+ e.logger.debug(`pixelmatch module: ${s}`);
3712
+ const n = e.logger.createTimeSpan("screenshot, initBuild started", !0);
3713
+ await r.initBuild({
3714
+ buildId: createBuildId(),
3715
+ buildMessage: createBuildMessage(),
3716
+ buildTimestamp: Date.now(),
3717
+ appNamespace: e.namespace,
3718
+ rootDir: e.rootDir,
3719
+ cacheDir: e.cacheDir,
3720
+ packageDir: path$2.join(e.sys.getCompilerExecutingPath(), "..", ".."),
3721
+ updateMaster: e.flags.updateScreenshot,
3722
+ logger: e.logger,
3723
+ allowableMismatchedPixels: e.testing.allowableMismatchedPixels,
3724
+ allowableMismatchedRatio: e.testing.allowableMismatchedRatio,
3725
+ pixelmatchThreshold: e.testing.pixelmatchThreshold,
3726
+ waitBeforeScreenshot: e.testing.waitBeforeScreenshot,
3727
+ pixelmatchModulePath: s
3728
+ }), e.flags.updateScreenshot || await r.pullMasterBuild(), n.finish("screenshot, initBuild finished");
3729
+ const o = await Promise.all([ await r.getMasterBuild(), await r.getScreenshotCache() ]), i = o[0], a = o[1];
3730
+ t.__STENCIL_SCREENSHOT_BUILD__ = r.toJson(i, a);
3731
+ const l = e.logger.createTimeSpan("screenshot, tests started", !0), c = await runJest(e, t);
3732
+ l.finish(`screenshot, tests finished, passed: ${c}`);
3733
+ try {
3734
+ const t = e.logger.createTimeSpan("screenshot, completeTimespan started", !0);
3735
+ let s = await r.completeBuild(i);
3736
+ if (t.finish("screenshot, completeTimespan finished"), s) {
3737
+ const t = e.logger.createTimeSpan("screenshot, publishBuild started", !0);
3738
+ if (s = await r.publishBuild(s), t.finish("screenshot, publishBuild finished"),
3739
+ e.flags.updateScreenshot) s.currentBuild && "string" == typeof s.currentBuild.previewUrl && e.logger.info(e.logger.magenta(s.currentBuild.previewUrl)); else if (s.compare) {
3740
+ try {
3741
+ await r.updateScreenshotCache(a, s);
3742
+ } catch (t) {
3743
+ e.logger.error(t);
3744
+ }
3745
+ e.logger.info(`screenshots compared: ${s.compare.diffs.length}`), "string" == typeof s.compare.url && e.logger.info(e.logger.magenta(s.compare.url));
3746
+ }
3747
+ }
3748
+ } catch (t) {
3749
+ t instanceof Error ? e.logger.error(t, t.stack) : e.logger.error(t);
3750
+ }
3751
+ return c;
3752
+ }(e, r) : await runJest(e, r), e.logger.info(""), c && await c.close();
3753
+ } catch (t) {
3754
+ e.logger.error(t);
3755
+ }
3756
+ return l;
3757
+ }
3758
+ };
3759
+ }, exports.jestPreprocessor = jestPreprocessor, exports.jestSetupTestFramework = function jestSetupTestFramework() {
3760
+ global.Context = {}, global.resourcesUrl = "/build", expect.extend(expectExtend),
3761
+ expect.addSnapshotSerializer(HtmlSerializer), index_cjs.setupGlobal(global), function e(t) {
3762
+ const r = t.window;
3763
+ "fetch" in r || (r.fetch = function(e) {
3764
+ return globalMockFetch(e);
3765
+ }), "fetch" in t || (t.fetch = function(e) {
3766
+ return globalMockFetch(e);
3767
+ });
3768
+ }(global), beforeEach((() => {
3769
+ testing.resetPlatform(), testing.setErrorHandler(void 0), resetBuildConditionals(appData.BUILD),
3770
+ testing.modeResolutionChain.length = 0;
3771
+ })), afterEach((async () => {
3772
+ global.__CLOSE_OPEN_PAGES__ && await global.__CLOSE_OPEN_PAGES__(), testing.stopAutoApplyChanges(),
3773
+ index_cjs.teardownGlobal(global), global.Context = {}, global.resourcesUrl = "/build";
3774
+ }));
3775
+ const t = jasmine.getEnv();
3776
+ null != t && t.addReporter({
3777
+ specStarted: e => {
3778
+ global.currentSpec = e;
3779
+ }
3780
+ }), global.screenshotDescriptions = new Set;
3781
+ const r = process.env;
3782
+ if ("string" == typeof r.__STENCIL_DEFAULT_TIMEOUT__) {
3783
+ const e = parseInt(r.__STENCIL_DEFAULT_TIMEOUT__, 10);
3784
+ jest.setTimeout(1.5 * e), jasmine.DEFAULT_TIMEOUT_INTERVAL = e;
3785
+ }
3786
+ if ("string" == typeof r.__STENCIL_ENV__) {
3787
+ const e = JSON.parse(r.__STENCIL_ENV__);
3788
+ Object.assign(appData.Env, e);
3789
+ }
3790
+ }, exports.mockBuildCtx = function mockBuildCtx(e, t) {
3791
+ return e || (e = mockConfig()), t || (t = mockCompilerCtx(e)), new BuildContext(e, t);
3792
+ }, exports.mockCompilerCtx = mockCompilerCtx, exports.mockCompilerSystem = function mockCompilerSystem() {
3793
+ return createTestingSystem();
3794
+ }, exports.mockConfig = mockConfig, exports.mockDocument = function mockDocument(e = null) {
3795
+ return new index_cjs.MockWindow(e).document;
3796
+ }, exports.mockFetch = mockFetch, exports.mockLoadConfigInit = e => ({
3797
+ config: {},
3798
+ configPath: void 0,
3799
+ initTsConfig: !0,
3800
+ logger: void 0,
3801
+ sys: void 0,
3802
+ ...e
3803
+ }), exports.mockLogger = mockLogger, exports.mockModule = (e = {}) => ({
3804
+ cmps: [],
3805
+ coreRuntimeApis: [],
3806
+ collectionName: "",
3807
+ dtsFilePath: "",
3808
+ excludeFromCollection: !1,
3809
+ externalImports: [],
3810
+ htmlAttrNames: [],
3811
+ htmlTagNames: [],
3812
+ htmlParts: [],
3813
+ isCollectionDependency: !1,
3814
+ isLegacy: !1,
3815
+ jsFilePath: "",
3816
+ localImports: [],
3817
+ originalImports: [],
3818
+ originalCollectionComponentPath: "",
3819
+ potentialCmpRefs: [],
3820
+ sourceFilePath: "",
3821
+ staticSourceFile: "",
3822
+ staticSourceFileText: "",
3823
+ sourceMapPath: "",
3824
+ sourceMapFileText: "",
3825
+ hasVdomAttribute: !1,
3826
+ hasVdomClass: !1,
3827
+ hasVdomFunctional: !1,
3828
+ hasVdomKey: !1,
3829
+ hasVdomListener: !1,
3830
+ hasVdomPropOrAttr: !1,
3831
+ hasVdomRef: !1,
3832
+ hasVdomRender: !1,
3833
+ hasVdomStyle: !1,
3834
+ hasVdomText: !1,
3835
+ hasVdomXlink: !1,
3836
+ ...e
3837
+ }), exports.mockValidatedConfig = function mockValidatedConfig(e = {}) {
3838
+ var t;
3839
+ const r = mockConfig(e);
3840
+ return {
3841
+ ...r,
3842
+ flags: createConfigFlags(),
3843
+ logger: mockLogger(),
3844
+ outputTargets: null !== (t = r.outputTargets) && void 0 !== t ? t : [],
3845
+ rootDir: path__default.default.resolve("/"),
3846
+ sys: createTestingSystem(),
3847
+ testing: {},
3848
+ ...e
3849
+ };
3850
+ }, exports.mockWindow = function mockWindow(e = null) {
3851
+ return new index_cjs.MockWindow(e);
3852
+ }, exports.newE2EPage = async function newE2EPage(e = {}) {
3853
+ if (!global.__NEW_TEST_PAGE__) throw new Error("newE2EPage() is only available from E2E tests, and ran with the --e2e cmd line flag.");
3854
+ const t = await global.__NEW_TEST_PAGE__(), r = [];
3855
+ try {
3856
+ t._e2eElements = [], t._e2eGoto = t.goto, t._e2eClose = t.close, await async function s(e) {
3857
+ if (e.isClosed()) return;
3858
+ const t = env.__STENCIL_EMULATE__;
3859
+ if (!t) return;
3860
+ const r = JSON.parse(t), s = {
3861
+ viewport: r.viewport,
3862
+ userAgent: r.userAgent
3863
+ };
3864
+ await e.emulate(s);
3865
+ }(t), await t.setCacheEnabled(!1), await initPageEvents(t), function n(e) {
3866
+ const t = process.env;
3867
+ "true" === t.__STENCIL_SCREENSHOT__ ? e.compareScreenshot = (r, s) => {
3868
+ const n = global;
3869
+ let o, i = "", a = "";
3870
+ if (n.currentSpec && ("string" == typeof n.currentSpec.fullName && (i = n.currentSpec.fullName),
3871
+ "string" == typeof n.currentSpec.testPath && (a = n.currentSpec.testPath)), "string" == typeof r ? (i.length > 0 ? i += ", " + r : i = r,
3872
+ "object" == typeof s && (o = s)) : "object" == typeof r && (o = r), i = i.trim(),
3873
+ o = o || {}, !i) throw new Error(`Invalid screenshot description in "${a}"`);
3874
+ if (n.screenshotDescriptions.has(i)) throw new Error(`Screenshot description "${i}" found in "${a}" cannot be used for multiple screenshots and must be unique. To make screenshot descriptions unique within the same test, use the first argument to "compareScreenshot", such as "compareScreenshot('more to the description')".`);
3875
+ return n.screenshotDescriptions.add(i), async function l(e, t, r, s, n) {
3876
+ if ("string" != typeof t.__STENCIL_EMULATE__) throw new Error("compareScreenshot, missing screenshot emulate env var");
3877
+ if ("string" != typeof t.__STENCIL_SCREENSHOT_BUILD__) throw new Error("compareScreenshot, missing screen build env var");
3878
+ const o = JSON.parse(t.__STENCIL_EMULATE__), i = JSON.parse(t.__STENCIL_SCREENSHOT_BUILD__);
3879
+ await function a(e) {
3880
+ return new Promise((t => setTimeout(t, e)));
3881
+ }(i.timeoutBeforeScreenshot), await e.evaluate((() => new Promise((e => {
3882
+ window.requestAnimationFrame((() => {
3883
+ e();
3884
+ }));
3885
+ }))));
3886
+ const l = function c(e) {
3887
+ const t = {
3888
+ type: "png",
3889
+ fullPage: e.fullPage,
3890
+ omitBackground: e.omitBackground,
3891
+ encoding: "binary"
3892
+ };
3893
+ return e.clip && (t.clip = {
3894
+ x: e.clip.x,
3895
+ y: e.clip.y,
3896
+ width: e.clip.width,
3897
+ height: e.clip.height
3898
+ }), t;
3899
+ }(n), u = await e.screenshot(l), d = "number" == typeof n.pixelmatchThreshold ? n.pixelmatchThreshold : i.pixelmatchThreshold;
3900
+ let h = o.viewport.width, p = o.viewport.height;
3901
+ return n && n.clip && ("number" == typeof n.clip.width && (h = n.clip.width), "number" == typeof n.clip.height && (p = n.clip.height)),
3902
+ await compareScreenshot(o, i, u, r, h, p, s, d);
3903
+ }(e, t, i, a, o);
3904
+ } : e.compareScreenshot = async () => ({
3905
+ mismatchedPixels: 0,
3906
+ allowableMismatchedPixels: 1,
3907
+ allowableMismatchedRatio: 1,
3908
+ desc: "",
3909
+ width: 1,
3910
+ height: 1,
3911
+ deviceScaleFactor: 1
3912
+ });
3913
+ }(t);
3914
+ let s = null;
3915
+ t.close = async e => {
3916
+ try {
3917
+ if (Array.isArray(t._e2eElements)) {
3918
+ const e = t._e2eElements.map((async e => {
3919
+ "function" == typeof e.e2eDispose && await e.e2eDispose();
3920
+ }));
3921
+ await Promise.all(e);
3922
+ }
3923
+ } catch (e) {}
3924
+ const r = () => {
3925
+ throw new Error("The page was already closed");
3926
+ };
3927
+ t._e2eElements = r, t._e2eEvents = r, t._e2eGoto = r, t.find = r, t.debugger = r,
3928
+ t.findAll = r, t.compareScreenshot = r, t.setContent = r, t.spyOnEvent = r, t.waitForChanges = r,
3929
+ t.waitForEvent = r;
3930
+ try {
3931
+ t.isClosed() || await t._e2eClose(e);
3932
+ } catch (e) {}
3933
+ };
3934
+ const n = async () => (s || (s = t.evaluateHandle((() => document))), (await s).asElement());
3935
+ t.find = async e => {
3936
+ const r = await n();
3937
+ return find(t, r, e);
3938
+ }, t.findAll = async e => {
3939
+ const r = await n();
3940
+ return findAll(t, r, e);
3941
+ }, t.waitForEvent = async e => {
3942
+ const r = await n();
3943
+ return waitForEvent(t, e, r);
3944
+ }, t.getDiagnostics = () => r, t.waitForChanges = waitForChanges.bind(null, t),
3945
+ t.debugger = () => {
3946
+ if ("true" !== env.__STENCIL_E2E_DEVTOOLS__) throw new Error("Set the --devtools flag in order to use E2EPage.debugger()");
3947
+ return t.evaluate((() => new Promise((e => {
3948
+ e();
3949
+ }))));
3950
+ };
3951
+ const o = !0 === e.failOnConsoleError, i = !0 === e.failOnNetworkError;
3952
+ t.on("console", (e => {
3953
+ if ("error" === e.type() && (r.push({
3954
+ type: "error",
3955
+ message: e.text(),
3956
+ location: e.location().url
3957
+ }), o)) throw new Error(serializeConsoleMessage(e));
3958
+ !function t(e) {
3959
+ const t = serializeConsoleMessage(e), r = e.type(), s = "warning" === r ? "warn" : r;
3960
+ "debug" !== s && ("function" == typeof console[s] ? console[s](t) : console.log(r, t));
3961
+ }(e);
3962
+ })), t.on("pageerror", (e => {
3963
+ throw r.push({
3964
+ type: "pageerror",
3965
+ message: e.message,
3966
+ location: e.stack
3967
+ }), e;
3968
+ })), t.on("requestfailed", (e => {
3969
+ if (r.push({
3970
+ type: "requestfailed",
3971
+ message: e.failure().errorText,
3972
+ location: e.url()
3973
+ }), i) throw new Error(e.failure().errorText);
3974
+ console.error("requestfailed", e.url());
3975
+ })), "string" == typeof e.html ? await e2eSetContent(t, e.html, {
3976
+ waitUntil: e.waitUntil
3977
+ }) : "string" == typeof e.url ? await e2eGoTo(t, e.url, {
3978
+ waitUntil: e.waitUntil
3979
+ }) : (t.goto = e2eGoTo.bind(null, t), t.setContent = e2eSetContent.bind(null, t));
3980
+ } catch (e) {
3981
+ throw t && (t.isClosed() || await t.close()), e;
3982
+ }
3983
+ return t;
3984
+ }, exports.newSpecPage = async function newSpecPage(e) {
3985
+ var t;
3986
+ if (null == e) throw new Error("NewSpecPageOptions required");
3987
+ testing.resetPlatform(null !== (t = e.platform) && void 0 !== t ? t : {}), resetBuildConditionals(appData.BUILD),
3988
+ Array.isArray(e.components) && testing.registerComponents(e.components), e.hydrateClientSide && (e.includeAnnotations = !0),
3989
+ e.hydrateServerSide ? (e.includeAnnotations = !0, testing.setSupportsShadowDom(!1)) : (e.includeAnnotations = !!e.includeAnnotations,
3990
+ !1 === e.supportsShadowDom ? testing.setSupportsShadowDom(!1) : testing.setSupportsShadowDom(!0)),
3991
+ appData.BUILD.cssAnnotations = e.includeAnnotations;
3992
+ const r = new Set;
3993
+ testing.win.__stencil_spec_options = e;
3994
+ const s = testing.win.document, n = {
3995
+ win: testing.win,
3996
+ doc: s,
3997
+ body: s.body,
3998
+ build: appData.BUILD,
3999
+ styles: testing.styles,
4000
+ setContent: e => (s.body.innerHTML = e, testing.flushAll()),
4001
+ waitForChanges: testing.flushAll,
4002
+ flushLoadModule: testing.flushLoadModule,
4003
+ flushQueue: testing.flushQueue
4004
+ }, o = e.components.map((e => {
4005
+ if (null == e.COMPILER_META) throw new Error('Invalid component class: Missing static "COMPILER_META" property.');
4006
+ r.add(e.COMPILER_META.tagName), e.isProxied = !1, function t(e) {
4007
+ var t, r, s, n, o, i;
4008
+ "function" == typeof (null === (t = e.prototype) || void 0 === t ? void 0 : t.__componentWillLoad) && (e.prototype.componentWillLoad = e.prototype.__componentWillLoad,
4009
+ e.prototype.__componentWillLoad = null), "function" == typeof (null === (r = e.prototype) || void 0 === r ? void 0 : r.__componentWillUpdate) && (e.prototype.componentWillUpdate = e.prototype.__componentWillUpdate,
4010
+ e.prototype.__componentWillUpdate = null), "function" == typeof (null === (s = e.prototype) || void 0 === s ? void 0 : s.__componentWillRender) && (e.prototype.componentWillRender = e.prototype.__componentWillRender,
4011
+ e.prototype.__componentWillRender = null), "function" == typeof (null === (n = e.prototype) || void 0 === n ? void 0 : n.componentWillLoad) && (e.prototype.__componentWillLoad = e.prototype.componentWillLoad,
4012
+ e.prototype.componentWillLoad = function() {
4013
+ const e = this.__componentWillLoad();
4014
+ return null != e && "function" == typeof e.then ? testing.writeTask((() => e)) : testing.writeTask((() => Promise.resolve())),
4015
+ e;
4016
+ }), "function" == typeof (null === (o = e.prototype) || void 0 === o ? void 0 : o.componentWillUpdate) && (e.prototype.__componentWillUpdate = e.prototype.componentWillUpdate,
4017
+ e.prototype.componentWillUpdate = function() {
4018
+ const e = this.__componentWillUpdate();
4019
+ return null != e && "function" == typeof e.then ? testing.writeTask((() => e)) : testing.writeTask((() => Promise.resolve())),
4020
+ e;
4021
+ }), "function" == typeof (null === (i = e.prototype) || void 0 === i ? void 0 : i.componentWillRender) && (e.prototype.__componentWillRender = e.prototype.componentWillRender,
4022
+ e.prototype.componentWillRender = function() {
4023
+ const e = this.__componentWillRender();
4024
+ return null != e && "function" == typeof e.then ? testing.writeTask((() => e)) : testing.writeTask((() => Promise.resolve())),
4025
+ e;
4026
+ });
4027
+ }(e);
4028
+ const s = `${e.COMPILER_META.tagName}.${Math.round(899999 * Math.random()) + 1e5}`, n = e.COMPILER_META.styles;
4029
+ if (Array.isArray(n)) if (n.length > 1) {
4030
+ const t = {};
4031
+ n.forEach((e => {
4032
+ t[e.modeName] = e.styleStr;
4033
+ })), e.style = t;
4034
+ } else 1 === n.length && (e.style = n[0].styleStr);
4035
+ testing.registerModule(s, e);
4036
+ const o = ((e, t) => [ e, t.map((e => ((e, t) => {
4037
+ let r = 0;
4038
+ "shadow" === e.encapsulation ? (r |= 1, e.shadowDelegatesFocus && (r |= 16)) : "scoped" === e.encapsulation && (r |= 2),
4039
+ "shadow" !== e.encapsulation && e.htmlTagNames.includes("slot") && (r |= 4), e.hasMode && (r |= 32);
4040
+ const s = formatComponentRuntimeMembers(e, t), n = formatHostListeners(e);
4041
+ return trimFalsy([ r, e.tagName, Object.keys(s).length > 0 ? s : void 0, n.length > 0 ? n : void 0 ]);
4042
+ })(e, !0))) ])(s, [ e.COMPILER_META ]);
4043
+ return o;
4044
+ })), i = (e => {
4045
+ const t = e.some((e => e.htmlTagNames.includes("slot"))), r = e.some((e => "shadow" === e.encapsulation)), s = e.some((e => "shadow" !== e.encapsulation && e.htmlTagNames.includes("slot"))), n = {
4046
+ allRenderFn: e.every((e => e.hasRenderFn)),
4047
+ cmpDidLoad: e.some((e => e.hasComponentDidLoadFn)),
4048
+ cmpShouldUpdate: e.some((e => e.hasComponentShouldUpdateFn)),
4049
+ cmpDidUnload: e.some((e => e.hasComponentDidUnloadFn)),
4050
+ cmpDidUpdate: e.some((e => e.hasComponentDidUpdateFn)),
4051
+ cmpDidRender: e.some((e => e.hasComponentDidRenderFn)),
4052
+ cmpWillLoad: e.some((e => e.hasComponentWillLoadFn)),
4053
+ cmpWillUpdate: e.some((e => e.hasComponentWillUpdateFn)),
4054
+ cmpWillRender: e.some((e => e.hasComponentWillRenderFn)),
4055
+ connectedCallback: e.some((e => e.hasConnectedCallbackFn)),
4056
+ disconnectedCallback: e.some((e => e.hasDisconnectedCallbackFn)),
4057
+ element: e.some((e => e.hasElement)),
4058
+ event: e.some((e => e.hasEvent)),
4059
+ hasRenderFn: e.some((e => e.hasRenderFn)),
4060
+ lifecycle: e.some((e => e.hasLifecycle)),
4061
+ asyncLoading: !1,
4062
+ hostListener: e.some((e => e.hasListener)),
4063
+ hostListenerTargetWindow: e.some((e => e.hasListenerTargetWindow)),
4064
+ hostListenerTargetDocument: e.some((e => e.hasListenerTargetDocument)),
4065
+ hostListenerTargetBody: e.some((e => e.hasListenerTargetBody)),
4066
+ hostListenerTargetParent: e.some((e => e.hasListenerTargetParent)),
4067
+ hostListenerTarget: e.some((e => e.hasListenerTarget)),
4068
+ member: e.some((e => e.hasMember)),
4069
+ method: e.some((e => e.hasMethod)),
4070
+ mode: e.some((e => e.hasMode)),
4071
+ observeAttribute: e.some((e => e.hasAttribute)),
4072
+ prop: e.some((e => e.hasProp)),
4073
+ propBoolean: e.some((e => e.hasPropBoolean)),
4074
+ propNumber: e.some((e => e.hasPropNumber)),
4075
+ propString: e.some((e => e.hasPropString)),
4076
+ propMutable: e.some((e => e.hasPropMutable)),
4077
+ reflect: e.some((e => e.hasReflect)),
4078
+ scoped: e.some((e => "scoped" === e.encapsulation)),
4079
+ shadowDom: r,
4080
+ shadowDelegatesFocus: r && e.some((e => e.shadowDelegatesFocus)),
4081
+ slot: t,
4082
+ slotRelocation: s,
4083
+ state: e.some((e => e.hasState)),
4084
+ style: e.some((e => e.hasStyle)),
4085
+ svg: e.some((e => e.htmlTagNames.includes("svg"))),
4086
+ updatable: e.some((e => e.isUpdateable)),
4087
+ vdomAttribute: e.some((e => e.hasVdomAttribute)),
4088
+ vdomXlink: e.some((e => e.hasVdomXlink)),
4089
+ vdomClass: e.some((e => e.hasVdomClass)),
4090
+ vdomFunctional: e.some((e => e.hasVdomFunctional)),
4091
+ vdomKey: e.some((e => e.hasVdomKey)),
4092
+ vdomListener: e.some((e => e.hasVdomListener)),
4093
+ vdomPropOrAttr: e.some((e => e.hasVdomPropOrAttr)),
4094
+ vdomRef: e.some((e => e.hasVdomRef)),
4095
+ vdomRender: e.some((e => e.hasVdomRender)),
4096
+ vdomStyle: e.some((e => e.hasVdomStyle)),
4097
+ vdomText: e.some((e => e.hasVdomText)),
4098
+ watchCallback: e.some((e => e.hasWatchCallback)),
4099
+ taskQueue: !0
4100
+ };
4101
+ return n.asyncLoading = n.cmpWillUpdate || n.cmpWillLoad || n.cmpWillRender, n.vdomAttribute = n.vdomAttribute || n.reflect,
4102
+ n.vdomPropOrAttr = n.vdomPropOrAttr || n.reflect, n;
4103
+ })(e.components.map((e => e.COMPILER_META)));
4104
+ if (e.strictBuild ? Object.assign(appData.BUILD, i) : Object.keys(i).forEach((e => {
4105
+ !0 === i[e] && (appData.BUILD[e] = !0);
4106
+ })), appData.BUILD.asyncLoading = !0, e.hydrateClientSide ? (appData.BUILD.hydrateClientSide = !0,
4107
+ appData.BUILD.hydrateServerSide = !1) : e.hydrateServerSide && (appData.BUILD.hydrateServerSide = !0,
4108
+ appData.BUILD.hydrateClientSide = !1), appData.BUILD.cloneNodeFix = !1, appData.BUILD.shadowDomShim = !1,
4109
+ appData.BUILD.safari10 = !1, appData.BUILD.attachStyles = !!e.attachStyles, "string" == typeof e.url && (n.win.location.href = e.url),
4110
+ "string" == typeof e.direction && n.doc.documentElement.setAttribute("dir", e.direction),
4111
+ "string" == typeof e.language && n.doc.documentElement.setAttribute("lang", e.language),
4112
+ "string" == typeof e.cookie) try {
4113
+ n.doc.cookie = e.cookie;
4114
+ } catch (e) {}
4115
+ if ("string" == typeof e.referrer) try {
4116
+ n.doc.referrer = e.referrer;
4117
+ } catch (e) {}
4118
+ if ("string" == typeof e.userAgent) try {
4119
+ n.win.navigator.userAgent = e.userAgent;
4120
+ } catch (e) {}
4121
+ if (testing.bootstrapLazy(o), "function" == typeof e.template) {
4122
+ const t = {
4123
+ $ancestorComponent$: void 0,
4124
+ $flags$: 0,
4125
+ $modeName$: void 0,
4126
+ $cmpMeta$: {
4127
+ $flags$: 0,
4128
+ $tagName$: "body"
4129
+ },
4130
+ $hostElement$: n.body
4131
+ };
4132
+ testing.renderVdom(t, e.template());
4133
+ } else "string" == typeof e.html && (n.body.innerHTML = e.html);
4134
+ !1 !== e.flushQueue && await n.waitForChanges();
4135
+ let a = null;
4136
+ return Object.defineProperty(n, "root", {
4137
+ get() {
4138
+ if (null == a && (a = findRootComponent(r, n.body)), null != a) return a;
4139
+ const e = n.body.firstElementChild;
4140
+ return null != e ? e : null;
4141
+ }
4142
+ }), Object.defineProperty(n, "rootInstance", {
4143
+ get() {
4144
+ const e = testing.getHostRef(n.root);
4145
+ return null != e ? e.$lazyInstance$ : null;
4146
+ }
4147
+ }), e.hydrateServerSide && testing.insertVdomAnnotations(s, []), e.autoApplyChanges && (testing.startAutoApplyChanges(),
4148
+ n.waitForChanges = () => (console.error('waitForChanges() cannot be used manually if the "startAutoApplyChanges" option is enabled'),
4149
+ Promise.resolve())), n;
4150
+ }, exports.shuffleArray = function shuffleArray(e) {
4151
+ let t, r, s = e.length;
4152
+ for (;0 !== s; ) r = Math.floor(Math.random() * s), s -= 1, t = e[s], e[s] = e[r],
4153
+ e[r] = t;
4154
+ return e;
4155
+ }, exports.transpile = transpile;