@amwaljs/checkout-button 0.3.1 → 0.3.2

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 (888) hide show
  1. package/README.md +1 -1
  2. package/dist/checkout/checkout.esm.js +1 -1
  3. package/dist/checkout/{p-c03b6161.entry.js → p-00045a8c.entry.js} +1 -1
  4. package/dist/checkout/p-01bbe74f.entry.js +1 -0
  5. package/dist/checkout/p-051412fa.entry.js +1 -0
  6. package/dist/checkout/p-09cbe586.entry.js +4 -0
  7. package/dist/checkout/{p-439ad699.entry.js → p-0a85a01f.entry.js} +2 -2
  8. package/dist/checkout/{p-d5652cd4.entry.js → p-0bbfeb3c.entry.js} +1 -1
  9. package/dist/checkout/{p-4ae1a390.entry.js → p-0d96b482.entry.js} +1 -1
  10. package/dist/checkout/{p-DUa_5Mmb.js → p-0f03cd28.js} +2 -2
  11. package/dist/checkout/p-104d7733.entry.js +1 -0
  12. package/dist/checkout/{p-8036cf49.entry.js → p-10ad151a.entry.js} +5 -5
  13. package/dist/checkout/p-112455b1.js +1 -0
  14. package/dist/checkout/p-11beffea.entry.js +1 -0
  15. package/dist/checkout/p-13245fd4.js +1 -0
  16. package/dist/checkout/p-13741a94.entry.js +1 -0
  17. package/dist/checkout/p-14ea2c82.entry.js +1 -0
  18. package/dist/checkout/p-167dc7a7.entry.js +4 -0
  19. package/dist/checkout/p-1a749b59.entry.js +1 -0
  20. package/dist/checkout/p-1c718939.entry.js +1 -0
  21. package/dist/checkout/{p-11205aeb.entry.js → p-1cbb13f2.entry.js} +1 -1
  22. package/dist/checkout/{p-46ff73b3.entry.js → p-20df5234.entry.js} +1 -1
  23. package/dist/checkout/p-24068b1c.entry.js +1 -0
  24. package/dist/checkout/{p-7006753a.entry.js → p-28ccecc7.entry.js} +2 -2
  25. package/dist/checkout/p-361649c3.js +4 -0
  26. package/dist/{components/p-DoR35tr_.js → checkout/p-39ad94cf.js} +2 -2
  27. package/dist/checkout/p-3b75b22a.js +5 -0
  28. package/dist/checkout/p-3b80783d.js +8 -0
  29. package/dist/checkout/p-3d3eefc3.js +4 -0
  30. package/dist/checkout/p-3e1e3453.js +4 -0
  31. package/dist/checkout/p-3e681e57.js +4 -0
  32. package/dist/checkout/{p-bf933eb6.entry.js → p-3e8da476.entry.js} +1 -1
  33. package/dist/checkout/{p-1dc08181.entry.js → p-4028c0d2.entry.js} +1 -1
  34. package/dist/checkout/p-44c91c42.entry.js +1 -0
  35. package/dist/checkout/p-464f5a60.entry.js +1 -0
  36. package/dist/checkout/p-46b7ee7f.entry.js +1 -0
  37. package/dist/checkout/p-48784250.entry.js +1 -0
  38. package/dist/{components/p-wiOwkFtc.js → checkout/p-4be20bf2.js} +1 -1
  39. package/dist/{components/p-Dl_WhQZu.js → checkout/p-4f78d3a0.js} +2 -2
  40. package/dist/checkout/{p-4da4ecc4.entry.js → p-529bce3f.entry.js} +1 -1
  41. package/dist/checkout/p-536a0294.js +4 -0
  42. package/dist/checkout/{p-eae2d3f2.entry.js → p-5eecd5ef.entry.js} +1 -1
  43. package/dist/checkout/p-64257c8d.entry.js +1 -0
  44. package/dist/checkout/{p-5903b3af.entry.js → p-64bd1dd3.entry.js} +1 -1
  45. package/dist/checkout/{p-9b7d7231.entry.js → p-68a4caba.entry.js} +1 -1
  46. package/dist/checkout/{p-978b3762.entry.js → p-69242ed6.entry.js} +1 -1
  47. package/dist/checkout/{p-62b7c8b0.entry.js → p-6d886d7e.entry.js} +1 -1
  48. package/dist/checkout/{p-ofaUly0p.js → p-6fa979e3.js} +2 -2
  49. package/dist/checkout/p-6fb474f3.entry.js +1 -0
  50. package/dist/checkout/p-77104220.js +7 -0
  51. package/dist/checkout/{p-aba43d04.entry.js → p-79ec3e4b.entry.js} +1 -1
  52. package/dist/checkout/{p-cd2c344b.entry.js → p-7b51bf67.entry.js} +2 -2
  53. package/dist/checkout/p-7f0004c9.js +4 -0
  54. package/dist/checkout/p-7fe50ab4.entry.js +1 -0
  55. package/dist/checkout/p-880b451c.entry.js +4 -0
  56. package/dist/checkout/p-886dad62.entry.js +1 -0
  57. package/dist/checkout/p-886e8746.entry.js +1 -0
  58. package/dist/checkout/p-88abdf59.js +4 -0
  59. package/dist/checkout/{p-f845e91b.entry.js → p-8a97a411.entry.js} +1 -1
  60. package/dist/checkout/p-8af3c6cc.entry.js +1 -0
  61. package/dist/checkout/{p-8b015c21.entry.js → p-8c022f5d.entry.js} +1 -1
  62. package/dist/checkout/{p-56e307eb.entry.js → p-91855eae.entry.js} +1 -1
  63. package/dist/checkout/{p-ca257d45.entry.js → p-9185e55b.entry.js} +1 -1
  64. package/dist/checkout/{p-4b34896c.entry.js → p-926eda98.entry.js} +1 -1
  65. package/dist/checkout/p-93e5b313.entry.js +4 -0
  66. package/dist/checkout/{p-4a86b731.entry.js → p-97024acb.entry.js} +1 -1
  67. package/dist/checkout/p-99e447f9.js +1 -0
  68. package/dist/{components/p-BgOwfqIY.js → checkout/p-9b519de5.js} +2 -2
  69. package/dist/checkout/{p-b8245f6a.entry.js → p-9b65a6e5.entry.js} +1 -1
  70. package/dist/checkout/{p-53ae9dd0.entry.js → p-9cc1fdfb.entry.js} +1 -1
  71. package/dist/checkout/{p-8fc1287a.entry.js → p-9f26fb71.entry.js} +1 -1
  72. package/dist/checkout/p-9f41a631.entry.js +1 -0
  73. package/dist/checkout/{p-5f005b5e.entry.js → p-a2ce8858.entry.js} +1 -1
  74. package/dist/checkout/{p-e4d0702d.entry.js → p-a3fca65c.entry.js} +1 -1
  75. package/dist/checkout/{p-d370e756.entry.js → p-a6056eb1.entry.js} +2 -2
  76. package/dist/checkout/{p-c929d6ea.entry.js → p-a7b2cbb9.entry.js} +1 -1
  77. package/dist/{components/p-Dwo-QLgs.js → checkout/p-ab16e6ce.js} +1 -1
  78. package/dist/checkout/{p-63db3363.entry.js → p-ab9a18c4.entry.js} +1 -1
  79. package/dist/checkout/p-b038db20.js +4 -0
  80. package/dist/checkout/p-b4ad8642.entry.js +1 -0
  81. package/dist/checkout/p-b4cf78ad.entry.js +1 -0
  82. package/dist/checkout/p-b7be2ec0.js +4 -0
  83. package/dist/checkout/p-b84d9e44.js +4 -0
  84. package/dist/{components/p-CwRU9ccI.js → checkout/p-b8fdd517.js} +1 -1
  85. package/dist/checkout/{p-d799009b.entry.js → p-b9d8ab12.entry.js} +1 -1
  86. package/dist/checkout/p-bb1f698e.js +4 -0
  87. package/dist/checkout/p-bd17be25.js +4 -0
  88. package/dist/checkout/p-bd4df0bc.entry.js +1 -0
  89. package/dist/checkout/p-c152bdea.js +4 -0
  90. package/dist/checkout/{p-f22v7XAM.js → p-c30e2b28.js} +2 -2
  91. package/dist/checkout/{p-c2296aa1.entry.js → p-c61a3d5d.entry.js} +1 -1
  92. package/dist/checkout/p-c6ee4bb6.entry.js +1 -0
  93. package/dist/checkout/p-c771a565.entry.js +1 -0
  94. package/dist/checkout/{p-3c9a8bee.entry.js → p-c82b2823.entry.js} +1 -1
  95. package/dist/checkout/p-c8f7d1b5.entry.js +1 -0
  96. package/dist/checkout/p-ceef30cd.entry.js +1 -0
  97. package/dist/checkout/p-d5733333.entry.js +1 -0
  98. package/dist/checkout/p-d5bba69c.entry.js +1 -0
  99. package/dist/checkout/p-d60b2328.js +4 -0
  100. package/dist/checkout/p-d60e05e2.entry.js +1 -0
  101. package/dist/checkout/p-d6b04157.entry.js +1 -0
  102. package/dist/checkout/p-d7a430bf.js +2 -0
  103. package/dist/checkout/{p-B3WORC1a.js → p-d839c693.js} +1 -1
  104. package/dist/checkout/{p-141f2eab.entry.js → p-d9dfb3ae.entry.js} +3 -3
  105. package/dist/checkout/p-dc51d318.js +5 -0
  106. package/dist/checkout/p-ddbe30b8.entry.js +1 -0
  107. package/dist/checkout/p-de418dd1.entry.js +1 -0
  108. package/dist/checkout/{p-b4000357.entry.js → p-defa5f72.entry.js} +2 -2
  109. package/dist/checkout/{p-b90c064e.entry.js → p-df0fa5e1.entry.js} +2 -2
  110. package/dist/checkout/{p-c8740acc.entry.js → p-e0f073f1.entry.js} +3 -3
  111. package/dist/checkout/p-e237d611.entry.js +1 -0
  112. package/dist/checkout/p-ea71fb8d.entry.js +1 -0
  113. package/dist/checkout/{p-95563c4c.entry.js → p-eda93a0b.entry.js} +1 -1
  114. package/dist/checkout/p-eee05053.entry.js +1 -0
  115. package/dist/checkout/{p-95431a73.entry.js → p-f8460dc4.entry.js} +1 -1
  116. package/dist/checkout/p-f875507d.entry.js +1 -0
  117. package/dist/checkout/p-faf06441.js +4 -0
  118. package/dist/checkout/p-fb147065.entry.js +1 -0
  119. package/dist/checkout/{p-af32124b.entry.js → p-fb45cdd1.entry.js} +1 -1
  120. package/dist/cjs/_commonjsHelpers-537d719a.js +20 -0
  121. package/dist/cjs/amwal-checkout-button_5.cjs.entry.js +1298 -2881
  122. package/dist/cjs/amwal-installments-guide.cjs.entry.js +42 -43
  123. package/dist/cjs/amwal-pos.cjs.entry.js +3180 -3452
  124. package/dist/cjs/amwal-widget-modal.cjs.entry.js +162 -175
  125. package/dist/cjs/amwal-widget.cjs.entry.js +314 -343
  126. package/dist/cjs/{animation-BhN-MT4J.js → animation-26241cb2.js} +2 -2
  127. package/dist/cjs/{app-globals-NtXImkuk.js → app-globals-42a13029.js} +1 -1
  128. package/dist/cjs/{ar-CbT6TM-Q.js → ar-3a6829a4.js} +10 -4
  129. package/dist/cjs/{capacitor-CqhugS19.js → capacitor-a9365f60.js} +1 -1
  130. package/dist/cjs/checkout.cjs.js +19 -16
  131. package/dist/cjs/{data-UgkxeXMB.js → data-19081291.js} +1 -1
  132. package/dist/cjs/{form-controller-DRf0gBOg.js → form-controller-3ffb27b1.js} +1 -1
  133. package/dist/cjs/{framework-delegate-D-6PUvOi.js → framework-delegate-ab2cc190.js} +1 -1
  134. package/dist/cjs/{gesture-controller-IMq9Cgi2.js → gesture-controller-b1c0efac.js} +1 -1
  135. package/dist/cjs/{haptic-CC9tl6g8.js → haptic-80174512.js} +1 -1
  136. package/dist/cjs/{hardware-back-button-C2D2eOk8.js → hardware-back-button-ddfefd22.js} +3 -3
  137. package/dist/cjs/{helpers-B4vhh9gt.js → helpers-72ba682d.js} +4 -1
  138. package/dist/cjs/i18n-18ad02d5.js +13 -0
  139. package/dist/cjs/{index-CKcQE8Zg.js → index-0d0b84fb.js} +4 -3
  140. package/dist/cjs/{index-6eOg4xTk.js → index-2602a653.js} +0 -1
  141. package/dist/cjs/{index-DZA7ogU0.js → index-2cd1a895.js} +4 -4
  142. package/dist/cjs/index-7522b3a9.js +2256 -0
  143. package/dist/cjs/{index-bc_r9XRf.js → index-9b7d2c31.js} +9 -9
  144. package/dist/cjs/{index-q1ImtF5k.js → index-ce06e6a3.js} +3 -3
  145. package/dist/cjs/{index-XMjUjboS.js → index-da554121.js} +3 -3
  146. package/dist/cjs/{input-shims-CCRbO2DB.js → input-shims-1a8ed779.js} +6 -6
  147. package/dist/cjs/{input.utils-CyVgmmWQ.js → input.utils-67143876.js} +3 -3
  148. package/dist/cjs/ion-accordion-group.cjs.entry.js +199 -203
  149. package/dist/cjs/ion-accordion.cjs.entry.js +305 -305
  150. package/dist/cjs/ion-action-sheet_3.cjs.entry.js +695 -705
  151. package/dist/cjs/ion-app.cjs.entry.js +95 -93
  152. package/dist/cjs/ion-avatar.cjs.entry.js +14 -12
  153. package/dist/cjs/ion-back-button.cjs.entry.js +78 -76
  154. package/dist/cjs/ion-backdrop.cjs.entry.js +44 -42
  155. package/dist/cjs/ion-badge.cjs.entry.js +19 -17
  156. package/dist/cjs/ion-breadcrumb.cjs.entry.js +86 -84
  157. package/dist/cjs/ion-breadcrumbs.cjs.entry.js +120 -124
  158. package/dist/cjs/ion-buttons_3.cjs.entry.js +822 -822
  159. package/dist/cjs/ion-card-content.cjs.entry.js +19 -17
  160. package/dist/cjs/ion-card-header.cjs.entry.js +22 -20
  161. package/dist/cjs/ion-card-subtitle.cjs.entry.js +20 -18
  162. package/dist/cjs/ion-card-title.cjs.entry.js +20 -18
  163. package/dist/cjs/ion-card.cjs.entry.js +55 -53
  164. package/dist/cjs/ion-checkbox_7.cjs.entry.js +862 -882
  165. package/dist/cjs/ion-chip.cjs.entry.js +24 -22
  166. package/dist/cjs/ion-col.cjs.entry.js +110 -108
  167. package/dist/cjs/ion-content.cjs.entry.js +376 -374
  168. package/dist/cjs/ion-datetime-button.cjs.entry.js +330 -328
  169. package/dist/cjs/ion-datetime.cjs.entry.js +1547 -1567
  170. package/dist/cjs/ion-fab-button.cjs.entry.js +78 -76
  171. package/dist/cjs/ion-fab-list.cjs.entry.js +31 -31
  172. package/dist/cjs/ion-fab.cjs.entry.js +58 -58
  173. package/dist/cjs/ion-footer.cjs.entry.js +94 -92
  174. package/dist/cjs/ion-grid.cjs.entry.js +17 -15
  175. package/dist/cjs/ion-header.cjs.entry.js +143 -141
  176. package/dist/cjs/ion-icon.cjs.entry.js +104 -112
  177. package/dist/cjs/ion-img.cjs.entry.js +83 -83
  178. package/dist/cjs/ion-infinite-scroll-content.cjs.entry.js +34 -32
  179. package/dist/cjs/ion-infinite-scroll.cjs.entry.js +174 -176
  180. package/dist/cjs/ion-input.cjs.entry.js +447 -453
  181. package/dist/cjs/ion-item-divider.cjs.entry.js +23 -21
  182. package/dist/cjs/ion-item-group.cjs.entry.js +20 -18
  183. package/dist/cjs/ion-item-option.cjs.entry.js +45 -43
  184. package/dist/cjs/ion-item-options.cjs.entry.js +40 -38
  185. package/dist/cjs/ion-item-sliding.cjs.entry.js +391 -391
  186. package/dist/cjs/ion-loading.cjs.entry.js +162 -164
  187. package/dist/cjs/ion-menu-button.cjs.entry.js +60 -58
  188. package/dist/cjs/ion-menu-toggle.cjs.entry.js +36 -34
  189. package/dist/cjs/ion-menu.cjs.entry.js +606 -612
  190. package/dist/cjs/ion-modal.cjs.entry.js +551 -553
  191. package/dist/cjs/ion-nav-link.cjs.entry.js +17 -15
  192. package/dist/cjs/ion-nav.cjs.entry.js +823 -825
  193. package/dist/cjs/ion-note.cjs.entry.js +19 -17
  194. package/dist/cjs/ion-picker-column.cjs.entry.js +327 -327
  195. package/dist/cjs/ion-picker.cjs.entry.js +198 -200
  196. package/dist/cjs/ion-popover.cjs.entry.js +326 -330
  197. package/dist/cjs/ion-progress-bar.cjs.entry.js +44 -42
  198. package/dist/cjs/ion-range.cjs.entry.js +644 -654
  199. package/dist/cjs/ion-refresher-content.cjs.entry.js +53 -51
  200. package/dist/cjs/ion-refresher.cjs.entry.js +586 -586
  201. package/dist/cjs/ion-reorder-group.cjs.entry.js +252 -252
  202. package/dist/cjs/ion-reorder.cjs.entry.js +26 -24
  203. package/dist/cjs/ion-route-redirect.cjs.entry.js +19 -21
  204. package/dist/cjs/ion-route.cjs.entry.js +37 -41
  205. package/dist/cjs/ion-router-link.cjs.entry.js +31 -29
  206. package/dist/cjs/ion-router-outlet.cjs.entry.js +178 -178
  207. package/dist/cjs/ion-router.cjs.entry.js +266 -264
  208. package/dist/cjs/ion-row.cjs.entry.js +12 -10
  209. package/dist/cjs/ion-searchbar.cjs.entry.js +388 -396
  210. package/dist/cjs/ion-segment-button.cjs.entry.js +96 -96
  211. package/dist/cjs/ion-segment.cjs.entry.js +414 -420
  212. package/dist/cjs/ion-select-option.cjs.entry.js +16 -14
  213. package/dist/cjs/ion-select.cjs.entry.js +693 -699
  214. package/dist/cjs/ion-skeleton-text.cjs.entry.js +35 -33
  215. package/dist/cjs/ion-spinner.cjs.entry.js +50 -48
  216. package/dist/cjs/ion-split-pane.cjs.entry.js +120 -124
  217. package/dist/cjs/ion-tab-bar.cjs.entry.js +66 -66
  218. package/dist/cjs/ion-tab-button.cjs.entry.js +82 -80
  219. package/dist/cjs/ion-tab.cjs.entry.js +50 -50
  220. package/dist/cjs/ion-tabs.cjs.entry.js +134 -132
  221. package/dist/cjs/ion-textarea.cjs.entry.js +396 -400
  222. package/dist/cjs/ion-thumbnail.cjs.entry.js +12 -10
  223. package/dist/cjs/ion-title.cjs.entry.js +43 -43
  224. package/dist/cjs/ion-toast.cjs.entry.js +371 -375
  225. package/dist/cjs/ion-toggle.cjs.entry.js +230 -230
  226. package/dist/cjs/ion-toolbar.cjs.entry.js +61 -59
  227. package/dist/cjs/{ionic-global-DRLi5Iq3.js → ionic-global-3915f1f1.js} +55 -58
  228. package/dist/cjs/{ios.transition-D4vyO_a_.js → ios.transition-b9c0b967.js} +5 -5
  229. package/dist/cjs/{keyboard-iyHR2ZF4.js → keyboard-5d4b83b3.js} +3 -3
  230. package/dist/cjs/{keyboard-DuKzsHsS.js → keyboard-bc8ebbf7.js} +1 -1
  231. package/dist/cjs/{keyboard-controller-rH21qC_2.js → keyboard-controller-c6633754.js} +2 -2
  232. package/dist/cjs/loader.cjs.js +19 -8
  233. package/dist/cjs/{md.transition-Dkxy3kpE.js → md.transition-830acbb7.js} +5 -5
  234. package/dist/cjs/{menu-toggle-util-CmPuayU0.js → menu-toggle-util-315c26b3.js} +1 -1
  235. package/dist/cjs/{notch-controller-Dtpow1eD.js → notch-controller-dcf09601.js} +2 -2
  236. package/dist/cjs/{overlays-Bc8tk6t5.js → overlays-08819e3f.js} +6 -6
  237. package/dist/cjs/{refresher.utils-CPl6gciv.js → refresher.utils-e41509f7.js} +3 -3
  238. package/dist/cjs/{status-tap-XtIhF72O.js → status-tap-ec021cb4.js} +4 -4
  239. package/dist/cjs/{swipe-back-C9j0kufI.js → swipe-back-3d3a5129.js} +4 -4
  240. package/dist/collection/collection-manifest.json +8 -8
  241. package/dist/collection/components/amwal-checkout-button/amwal-checkout-button.js +1714 -1888
  242. package/dist/collection/components/amwal-checkout-button/amwal-checkout-button.stories.js +84 -84
  243. package/dist/collection/components/amwal-installments-guide/amwal-installments-guide.js +75 -80
  244. package/dist/collection/components/amwal-installments-guide/amwal-installments-guide.stories.js +25 -25
  245. package/dist/collection/components/amwal-installments-timeline/amwal-installments-timeline.js +506 -569
  246. package/dist/collection/components/amwal-installments-timeline/amwal-installments-timeline.stories.js +80 -80
  247. package/dist/collection/components/amwal-pos/amwal-pos.js +1022 -1094
  248. package/dist/collection/components/amwal-pos/amwal-pos.stories.js +209 -209
  249. package/dist/collection/components/amwal-widget/amwal-widget-modal.js +326 -350
  250. package/dist/collection/components/amwal-widget/amwal-widget.js +673 -736
  251. package/dist/collection/components/amwal-widget/amwal-widget.stories.js +184 -184
  252. package/dist/collection/lang/i18n.js +7 -7
  253. package/dist/components/amwal-checkout-button.d.ts +2 -2
  254. package/dist/components/amwal-checkout-button.js +3811 -1
  255. package/dist/components/amwal-installments-guide.d.ts +2 -2
  256. package/dist/components/amwal-installments-guide.js +75 -1
  257. package/dist/components/amwal-installments-timeline.d.ts +2 -2
  258. package/dist/components/amwal-installments-timeline.js +6 -1
  259. package/dist/components/amwal-pos.d.ts +2 -2
  260. package/dist/components/amwal-pos.js +3391 -1
  261. package/dist/components/amwal-widget-modal.d.ts +2 -2
  262. package/dist/components/amwal-widget-modal.js +6 -1
  263. package/dist/components/amwal-widget.d.ts +2 -2
  264. package/dist/components/amwal-widget.js +389 -1
  265. package/dist/components/index.d.ts +0 -6
  266. package/dist/components/index.js +6 -1
  267. package/dist/components/ion-accordion-group.js +248 -1
  268. package/dist/components/ion-accordion.js +353 -1
  269. package/dist/components/ion-action-sheet.js +6 -1
  270. package/dist/components/ion-alert.js +6 -1
  271. package/dist/components/ion-app.js +125 -1
  272. package/dist/components/ion-avatar.js +39 -1
  273. package/dist/components/ion-back-button.js +127 -1
  274. package/dist/components/ion-backdrop.js +6 -1
  275. package/dist/components/ion-badge.js +46 -1
  276. package/dist/components/ion-breadcrumb.js +131 -1
  277. package/dist/components/ion-breadcrumbs.js +152 -1
  278. package/dist/components/ion-button.js +6 -1
  279. package/dist/components/ion-buttons.js +6 -1
  280. package/dist/components/ion-card-content.js +43 -1
  281. package/dist/components/ion-card-header.js +50 -1
  282. package/dist/components/ion-card-subtitle.js +47 -1
  283. package/dist/components/ion-card-title.js +47 -1
  284. package/dist/components/ion-card.js +98 -1
  285. package/dist/components/ion-checkbox.js +6 -1
  286. package/dist/components/ion-chip.js +59 -1
  287. package/dist/components/ion-col.js +186 -2
  288. package/dist/components/ion-content.js +440 -1
  289. package/dist/components/ion-datetime-button.js +378 -1
  290. package/dist/components/ion-datetime.js +1961 -2
  291. package/dist/components/ion-fab-button.js +130 -1
  292. package/dist/components/ion-fab-list.js +56 -1
  293. package/dist/components/ion-fab.js +90 -1
  294. package/dist/components/ion-footer.js +152 -2
  295. package/dist/components/ion-grid.js +41 -1
  296. package/dist/components/ion-header.js +356 -2
  297. package/dist/components/ion-icon.js +6 -1
  298. package/dist/components/ion-img.js +124 -1
  299. package/dist/components/ion-infinite-scroll-content.js +69 -1
  300. package/dist/components/ion-infinite-scroll.js +209 -1
  301. package/dist/components/ion-input.js +564 -1
  302. package/dist/components/ion-item-divider.js +51 -1
  303. package/dist/components/ion-item-group.js +44 -1
  304. package/dist/components/ion-item-option.js +85 -1
  305. package/dist/components/ion-item-options.js +67 -1
  306. package/dist/components/ion-item-sliding.js +449 -1
  307. package/dist/components/ion-item.js +6 -1
  308. package/dist/components/ion-label.js +6 -1
  309. package/dist/components/ion-list-header.js +6 -1
  310. package/dist/components/ion-list.js +6 -1
  311. package/dist/components/ion-loading.js +325 -3
  312. package/dist/components/ion-menu-button.js +100 -1
  313. package/dist/components/ion-menu-toggle.js +57 -1
  314. package/dist/components/ion-menu.js +679 -1
  315. package/dist/components/ion-modal.js +1775 -3
  316. package/dist/components/ion-nav-link.js +63 -2
  317. package/dist/components/ion-nav.js +945 -2
  318. package/dist/components/ion-note.js +6 -1
  319. package/dist/components/ion-picker-column-internal.js +6 -1
  320. package/dist/components/ion-picker-column.js +6 -1
  321. package/dist/components/ion-picker-internal.js +6 -1
  322. package/dist/components/ion-picker.js +317 -3
  323. package/dist/components/ion-popover.js +6 -1
  324. package/dist/components/ion-progress-bar.js +79 -1
  325. package/dist/components/ion-radio-group.js +6 -1
  326. package/dist/components/ion-radio.js +6 -1
  327. package/dist/components/ion-range.js +778 -2
  328. package/dist/components/ion-refresher-content.js +90 -1
  329. package/dist/components/ion-refresher.js +652 -1
  330. package/dist/components/ion-reorder-group.js +300 -1
  331. package/dist/components/ion-reorder.js +58 -1
  332. package/dist/components/ion-ripple-effect.js +6 -1
  333. package/dist/components/ion-route-redirect.js +42 -1
  334. package/dist/components/ion-route.js +66 -1
  335. package/dist/components/ion-router-link.js +60 -1
  336. package/dist/components/ion-router-outlet.js +219 -1
  337. package/dist/components/ion-router.js +833 -3
  338. package/dist/components/ion-row.js +34 -1
  339. package/dist/components/ion-searchbar.js +472 -1
  340. package/dist/components/ion-segment-button.js +139 -1
  341. package/dist/components/ion-segment.js +472 -1
  342. package/dist/components/ion-select-option.js +42 -1
  343. package/dist/components/ion-select-popover.js +6 -1
  344. package/dist/components/ion-select.js +864 -1
  345. package/dist/components/ion-skeleton-text.js +59 -1
  346. package/dist/components/ion-spinner.js +6 -1
  347. package/dist/components/ion-split-pane.js +166 -1
  348. package/dist/components/ion-tab-bar.js +95 -1
  349. package/dist/components/ion-tab-button.js +125 -1
  350. package/dist/components/ion-tab.js +80 -1
  351. package/dist/components/ion-tabs.js +176 -1
  352. package/dist/components/ion-text.js +6 -1
  353. package/dist/components/ion-textarea.js +496 -1
  354. package/dist/components/ion-thumbnail.js +34 -1
  355. package/dist/components/ion-title.js +71 -1
  356. package/dist/components/ion-toast.js +914 -3
  357. package/dist/components/ion-toggle.js +282 -1
  358. package/dist/components/ion-toolbar.js +91 -1
  359. package/dist/components/p-01b49f83.js +269 -0
  360. package/dist/{esm/ios.transition-DMsViooj.js → components/p-02b77441.js} +2 -5
  361. package/dist/components/p-02bc6b21.js +203 -0
  362. package/dist/components/p-031ed92d.js +389 -0
  363. package/dist/components/p-03803c7d.js +369 -0
  364. package/dist/components/p-089e034e.js +234 -0
  365. package/dist/components/p-0dc7a5ff.js +512 -0
  366. package/dist/components/p-110f8490.js +566 -0
  367. package/dist/components/p-112455b1.js +17 -0
  368. package/dist/{esm/index-BMJhFU53.js → components/p-1596e301.js} +4 -4
  369. package/dist/components/p-1785e30a.js +318 -0
  370. package/dist/{esm/helpers-C6kqtbmV.js → components/p-2bb89b46.js} +5 -2
  371. package/dist/components/p-2d7d745d.js +224 -0
  372. package/dist/components/p-2fc99fef.js +262 -0
  373. package/dist/{esm/input-shims-DSFPFhb7.js → components/p-3296ebd9.js} +4 -6
  374. package/dist/{esm/data-Cl-_yBA0.js → components/p-39ad94cf.js} +2 -2
  375. package/dist/{esm/capacitor-CG3xQUND.js → components/p-3d3eefc3.js} +1 -1
  376. package/dist/{esm/form-controller-xetTxjL6.js → components/p-3e1d2896.js} +1 -1
  377. package/dist/{esm/keyboard-controller-CqGCg8tB.js → components/p-3e1e3453.js} +2 -2
  378. package/dist/{esm/md.transition-BQT2r4ED.js → components/p-503328f2.js} +2 -5
  379. package/dist/components/p-51c44f42.js +98 -0
  380. package/dist/components/p-5280b372.js +42 -0
  381. package/dist/{esm/index-DuUXGZp2.js → components/p-53e2dbe4.js} +3 -3
  382. package/dist/components/p-5441c730.js +851 -0
  383. package/dist/{esm/refresher.utils-D4tPnZsM.js → components/p-74e68924.js} +4 -4
  384. package/dist/{esm/framework-delegate-D_uGiYYw.js → components/p-76525f0f.js} +1 -1
  385. package/dist/{esm/index-CcopIPA0.js → components/p-77104220.js} +6 -4
  386. package/dist/components/p-77ccb793.js +185 -0
  387. package/dist/components/p-83e529db.js +380 -0
  388. package/dist/{esm/animation-DRf3dwMu.js → components/p-89c4c5cb.js} +2 -2
  389. package/dist/components/p-8b3d1e06.js +67 -0
  390. package/dist/components/p-901c16c5.js +210 -0
  391. package/dist/components/p-93e2a608.js +374 -0
  392. package/dist/components/p-95c79593.js +43 -0
  393. package/dist/components/p-96073863.js +82 -0
  394. package/dist/components/p-99e447f9.js +13 -0
  395. package/dist/{esm/keyboard-DgiyREKb.js → components/p-9b519de5.js} +1 -1
  396. package/dist/{esm/input.utils-BuIvhxo3.js → components/p-9d350d61.js} +3 -3
  397. package/dist/{esm/notch-controller-CQeDnZLe.js → components/p-9df67c24.js} +2 -2
  398. package/dist/components/p-a0e691dd.js +39 -0
  399. package/dist/components/p-ab10d1ae.js +47 -0
  400. package/dist/components/p-abc01c5d.js +194 -0
  401. package/dist/components/p-abd248d1.js +196 -0
  402. package/dist/{esm/haptic-D5jGzBs8.js → components/p-af073aaf.js} +2 -2
  403. package/dist/{esm/swipe-back-DE05lWQD.js → components/p-b32529b9.js} +3 -4
  404. package/dist/{esm/index-C75BfBAE.js → components/p-b8fdd517.js} +1 -2
  405. package/dist/components/p-cebc113f.js +38 -0
  406. package/dist/components/p-d25fd077.js +331 -0
  407. package/dist/{esm/menu-toggle-util-wdO31cdC.js → components/p-d3596f64.js} +1 -1
  408. package/dist/{esm/keyboard-DcbqYXj5.js → components/p-d60b2328.js} +1 -3
  409. package/dist/components/p-d69dc32f.js +97 -0
  410. package/dist/{esm/hardware-back-button-CzxcJiYO.js → components/p-d72e8d7b.js} +2 -3
  411. package/dist/{esm/ar-B3WORC1a.js → components/p-d839c693.js} +12 -5
  412. package/dist/{esm/index-D8d_89Nl.js → components/p-e187a77c.js} +1 -1
  413. package/dist/components/p-e65ea9fb.js +1379 -0
  414. package/dist/components/p-ec0e3f3f.js +2040 -0
  415. package/dist/components/p-ecb4db1c.js +64 -0
  416. package/dist/{esm/gesture-controller-CukVBo5-.js → components/p-f728a68f.js} +1 -1
  417. package/dist/components/p-f7e3c502.js +73 -0
  418. package/dist/components/p-fe463a42.js +272 -0
  419. package/dist/esm/_commonjsHelpers-9943807e.js +17 -0
  420. package/dist/esm/amwal-checkout-button_5.entry.js +1296 -2881
  421. package/dist/esm/amwal-installments-guide.entry.js +40 -43
  422. package/dist/esm/amwal-pos.entry.js +3178 -3452
  423. package/dist/esm/amwal-widget-modal.entry.js +160 -175
  424. package/dist/esm/amwal-widget.entry.js +312 -343
  425. package/dist/esm/animation-a6d5c3b1.js +1063 -0
  426. package/dist/esm/{app-globals-BHnkZZiH.js → app-globals-c817b28b.js} +1 -1
  427. package/dist/esm/ar-7d2629bf.js +51 -0
  428. package/dist/esm/capacitor-ba4337da.js +13 -0
  429. package/dist/esm/checkout.js +18 -16
  430. package/dist/esm/config-8e06237c.js +171 -0
  431. package/dist/esm/cubic-bezier-874f336d.js +90 -0
  432. package/dist/esm/data-8916315d.js +1628 -0
  433. package/dist/esm/dir-1d4aa386.js +18 -0
  434. package/dist/esm/focus-visible-32968d3d.js +75 -0
  435. package/dist/esm/form-controller-b1aa7393.js +64 -0
  436. package/dist/esm/framework-delegate-de1aa369.js +140 -0
  437. package/dist/esm/gesture-controller-58ffa500.js +195 -0
  438. package/dist/esm/haptic-4d4d8eb1.js +206 -0
  439. package/dist/esm/hardware-back-button-f93acff0.js +116 -0
  440. package/dist/esm/helpers-f0dcbd72.js +418 -0
  441. package/dist/esm/i18n-53f85411.js +13 -0
  442. package/dist/esm/{index-CNcx43L8.js → index-0b560278.js} +4 -4
  443. package/dist/esm/index-5894dd63.js +196 -0
  444. package/dist/esm/{index-DUF6JAQL.js → index-5a126e54.js} +6 -6
  445. package/dist/esm/index-5e663431.js +128 -0
  446. package/dist/esm/index-8cc94b11.js +2219 -0
  447. package/dist/esm/index-afdf867c.js +26 -0
  448. package/dist/esm/index-d9b41a43.js +34 -0
  449. package/dist/esm/index-f6dce931.js +466 -0
  450. package/dist/esm/index-fb97e55c.js +7 -0
  451. package/dist/esm/input-shims-75d4750d.js +617 -0
  452. package/dist/esm/input.utils-79bde07f.js +138 -0
  453. package/dist/esm/ion-accordion-group.entry.js +197 -203
  454. package/dist/esm/ion-accordion.entry.js +303 -305
  455. package/dist/esm/ion-action-sheet_3.entry.js +693 -705
  456. package/dist/esm/ion-app.entry.js +93 -93
  457. package/dist/esm/ion-avatar.entry.js +12 -12
  458. package/dist/esm/ion-back-button.entry.js +76 -76
  459. package/dist/esm/ion-backdrop.entry.js +42 -42
  460. package/dist/esm/ion-badge.entry.js +17 -17
  461. package/dist/esm/ion-breadcrumb.entry.js +84 -84
  462. package/dist/esm/ion-breadcrumbs.entry.js +118 -124
  463. package/dist/esm/ion-buttons_3.entry.js +820 -822
  464. package/dist/esm/ion-card-content.entry.js +17 -17
  465. package/dist/esm/ion-card-header.entry.js +20 -20
  466. package/dist/esm/ion-card-subtitle.entry.js +18 -18
  467. package/dist/esm/ion-card-title.entry.js +18 -18
  468. package/dist/esm/ion-card.entry.js +53 -53
  469. package/dist/esm/ion-checkbox_7.entry.js +860 -882
  470. package/dist/esm/ion-chip.entry.js +22 -22
  471. package/dist/esm/ion-col.entry.js +108 -108
  472. package/dist/esm/ion-content.entry.js +374 -374
  473. package/dist/esm/ion-datetime-button.entry.js +328 -328
  474. package/dist/esm/ion-datetime.entry.js +1545 -1567
  475. package/dist/esm/ion-fab-button.entry.js +76 -76
  476. package/dist/esm/ion-fab-list.entry.js +29 -31
  477. package/dist/esm/ion-fab.entry.js +56 -58
  478. package/dist/esm/ion-footer.entry.js +92 -92
  479. package/dist/esm/ion-grid.entry.js +15 -15
  480. package/dist/esm/ion-header.entry.js +141 -141
  481. package/dist/esm/ion-icon.entry.js +102 -112
  482. package/dist/esm/ion-img.entry.js +81 -83
  483. package/dist/esm/ion-infinite-scroll-content.entry.js +32 -32
  484. package/dist/esm/ion-infinite-scroll.entry.js +172 -176
  485. package/dist/esm/ion-input.entry.js +445 -453
  486. package/dist/esm/ion-item-divider.entry.js +21 -21
  487. package/dist/esm/ion-item-group.entry.js +18 -18
  488. package/dist/esm/ion-item-option.entry.js +43 -43
  489. package/dist/esm/ion-item-options.entry.js +38 -38
  490. package/dist/esm/ion-item-sliding.entry.js +389 -391
  491. package/dist/esm/ion-loading.entry.js +160 -164
  492. package/dist/esm/ion-menu-button.entry.js +58 -58
  493. package/dist/esm/ion-menu-toggle.entry.js +34 -34
  494. package/dist/esm/ion-menu.entry.js +604 -612
  495. package/dist/esm/ion-modal.entry.js +549 -553
  496. package/dist/esm/ion-nav-link.entry.js +15 -15
  497. package/dist/esm/ion-nav.entry.js +821 -825
  498. package/dist/esm/ion-note.entry.js +17 -17
  499. package/dist/esm/ion-picker-column.entry.js +325 -327
  500. package/dist/esm/ion-picker.entry.js +196 -200
  501. package/dist/esm/ion-popover.entry.js +324 -330
  502. package/dist/esm/ion-progress-bar.entry.js +42 -42
  503. package/dist/esm/ion-range.entry.js +642 -654
  504. package/dist/esm/ion-refresher-content.entry.js +51 -51
  505. package/dist/esm/ion-refresher.entry.js +584 -586
  506. package/dist/esm/ion-reorder-group.entry.js +250 -252
  507. package/dist/esm/ion-reorder.entry.js +24 -24
  508. package/dist/esm/ion-route-redirect.entry.js +17 -21
  509. package/dist/esm/ion-route.entry.js +35 -41
  510. package/dist/esm/ion-router-link.entry.js +29 -29
  511. package/dist/esm/ion-router-outlet.entry.js +176 -178
  512. package/dist/esm/ion-router.entry.js +264 -264
  513. package/dist/esm/ion-row.entry.js +10 -10
  514. package/dist/esm/ion-searchbar.entry.js +386 -396
  515. package/dist/esm/ion-segment-button.entry.js +94 -96
  516. package/dist/esm/ion-segment.entry.js +412 -420
  517. package/dist/esm/ion-select-option.entry.js +14 -14
  518. package/dist/esm/ion-select.entry.js +691 -699
  519. package/dist/esm/ion-skeleton-text.entry.js +33 -33
  520. package/dist/esm/ion-spinner.entry.js +48 -48
  521. package/dist/esm/ion-split-pane.entry.js +118 -124
  522. package/dist/esm/ion-tab-bar.entry.js +64 -66
  523. package/dist/esm/ion-tab-button.entry.js +80 -80
  524. package/dist/esm/ion-tab.entry.js +48 -50
  525. package/dist/esm/ion-tabs.entry.js +132 -132
  526. package/dist/esm/ion-textarea.entry.js +394 -400
  527. package/dist/esm/ion-thumbnail.entry.js +10 -10
  528. package/dist/esm/ion-title.entry.js +41 -43
  529. package/dist/esm/ion-toast.entry.js +369 -375
  530. package/dist/esm/ion-toggle.entry.js +228 -230
  531. package/dist/esm/ion-toolbar.entry.js +59 -59
  532. package/dist/esm/{ionic-global-DXXzPLPc.js → ionic-global-0b7766cb.js} +55 -58
  533. package/dist/esm/ios.transition-22fb53bc.js +651 -0
  534. package/dist/esm/keyboard-1f073554.js +82 -0
  535. package/dist/esm/keyboard-96b6e80b.js +146 -0
  536. package/dist/esm/keyboard-controller-5a2f625f.js +165 -0
  537. package/dist/esm/loader.js +17 -8
  538. package/dist/esm/lock-controller-632e3c10.js +38 -0
  539. package/dist/esm/md.transition-f6ff9834.js +57 -0
  540. package/dist/esm/menu-toggle-util-594849ff.js +12 -0
  541. package/dist/esm/notch-controller-d511b3b3.js +153 -0
  542. package/dist/esm/{overlays-SBLrmFy6.js → overlays-642a91df.js} +7 -7
  543. package/dist/esm/polyfills/core-js.js +11 -0
  544. package/dist/esm/polyfills/css-shim.js +1 -0
  545. package/dist/esm/polyfills/dom.js +79 -0
  546. package/dist/esm/polyfills/es5-html-element.js +1 -0
  547. package/dist/esm/polyfills/index.js +34 -0
  548. package/dist/esm/polyfills/system.js +6 -0
  549. package/dist/esm/refresher.utils-19137568.js +196 -0
  550. package/dist/esm/{status-tap-CjxQA4Bj.js → status-tap-bb6959a8.js} +4 -4
  551. package/dist/esm/swipe-back-6cec4c33.js +79 -0
  552. package/dist/esm/theme-35c700b7.js +43 -0
  553. package/dist/esm/watch-options-7bf43687.js +47 -0
  554. package/dist/node_modules/@ionic/core/dist/collection/components/accordion/accordion.ios.css +193 -0
  555. package/dist/node_modules/@ionic/core/dist/collection/components/accordion/accordion.md.css +135 -0
  556. package/dist/node_modules/@ionic/core/dist/collection/components/accordion-group/accordion-group.ios.css +127 -0
  557. package/dist/node_modules/@ionic/core/dist/collection/components/accordion-group/accordion-group.md.css +229 -0
  558. package/dist/node_modules/@ionic/core/dist/collection/components/action-sheet/action-sheet.ios.css +456 -0
  559. package/dist/node_modules/@ionic/core/dist/collection/components/action-sheet/action-sheet.md.css +384 -0
  560. package/dist/node_modules/@ionic/core/dist/collection/components/alert/alert.ios.css +755 -0
  561. package/dist/node_modules/@ionic/core/dist/collection/components/alert/alert.md.css +770 -0
  562. package/dist/node_modules/@ionic/core/dist/collection/components/app/app.css +17 -0
  563. package/dist/node_modules/@ionic/core/dist/collection/components/avatar/avatar.ios.css +132 -0
  564. package/dist/node_modules/@ionic/core/dist/collection/components/avatar/avatar.md.css +132 -0
  565. package/dist/node_modules/@ionic/core/dist/collection/components/back-button/back-button.ios.css +372 -0
  566. package/dist/node_modules/@ionic/core/dist/collection/components/back-button/back-button.md.css +385 -0
  567. package/dist/node_modules/@ionic/core/dist/collection/components/backdrop/backdrop.ios.css +136 -0
  568. package/dist/node_modules/@ionic/core/dist/collection/components/backdrop/backdrop.md.css +136 -0
  569. package/dist/node_modules/@ionic/core/dist/collection/components/badge/badge.ios.css +168 -0
  570. package/dist/node_modules/@ionic/core/dist/collection/components/badge/badge.md.css +164 -0
  571. package/dist/node_modules/@ionic/core/dist/collection/components/breadcrumb/breadcrumb.ios.css +326 -0
  572. package/dist/node_modules/@ionic/core/dist/collection/components/breadcrumb/breadcrumb.md.css +310 -0
  573. package/dist/node_modules/@ionic/core/dist/collection/components/breadcrumbs/breadcrumbs.ios.css +81 -0
  574. package/dist/node_modules/@ionic/core/dist/collection/components/breadcrumbs/breadcrumbs.md.css +80 -0
  575. package/dist/node_modules/@ionic/core/dist/collection/components/button/button.ios.css +596 -0
  576. package/dist/node_modules/@ionic/core/dist/collection/components/button/button.md.css +517 -0
  577. package/dist/node_modules/@ionic/core/dist/collection/components/buttons/buttons.ios.css +279 -0
  578. package/dist/node_modules/@ionic/core/dist/collection/components/buttons/buttons.md.css +299 -0
  579. package/dist/node_modules/@ionic/core/dist/collection/components/card/card.ios.css +203 -0
  580. package/dist/node_modules/@ionic/core/dist/collection/components/card/card.md.css +198 -0
  581. package/dist/node_modules/@ionic/core/dist/collection/components/card-content/card-content.ios.css +163 -0
  582. package/dist/node_modules/@ionic/core/dist/collection/components/card-content/card-content.md.css +165 -0
  583. package/dist/node_modules/@ionic/core/dist/collection/components/card-header/card-header.ios.css +141 -0
  584. package/dist/node_modules/@ionic/core/dist/collection/components/card-header/card-header.md.css +138 -0
  585. package/dist/node_modules/@ionic/core/dist/collection/components/card-subtitle/card-subtitle.ios.css +138 -0
  586. package/dist/node_modules/@ionic/core/dist/collection/components/card-subtitle/card-subtitle.md.css +136 -0
  587. package/dist/node_modules/@ionic/core/dist/collection/components/card-title/card-title.ios.css +137 -0
  588. package/dist/node_modules/@ionic/core/dist/collection/components/card-title/card-title.md.css +137 -0
  589. package/dist/node_modules/@ionic/core/dist/collection/components/checkbox/checkbox.ios.css +536 -0
  590. package/dist/node_modules/@ionic/core/dist/collection/components/checkbox/checkbox.md.css +552 -0
  591. package/dist/node_modules/@ionic/core/dist/collection/components/chip/chip.ios.css +212 -0
  592. package/dist/node_modules/@ionic/core/dist/collection/components/chip/chip.md.css +207 -0
  593. package/dist/node_modules/@ionic/core/dist/collection/components/col/col.css +200 -0
  594. package/dist/node_modules/@ionic/core/dist/collection/components/content/content.css +282 -0
  595. package/dist/node_modules/@ionic/core/dist/collection/components/datetime/datetime.ios.css +850 -0
  596. package/dist/node_modules/@ionic/core/dist/collection/components/datetime/datetime.md.css +706 -0
  597. package/dist/node_modules/@ionic/core/dist/collection/components/datetime-button/datetime-button.css +100 -0
  598. package/dist/node_modules/@ionic/core/dist/collection/components/fab/fab.css +366 -0
  599. package/dist/node_modules/@ionic/core/dist/collection/components/fab-button/fab-button.ios.css +422 -0
  600. package/dist/node_modules/@ionic/core/dist/collection/components/fab-button/fab-button.md.css +393 -0
  601. package/dist/node_modules/@ionic/core/dist/collection/components/fab-list/fab-list.css +240 -0
  602. package/dist/node_modules/@ionic/core/dist/collection/components/footer/footer.ios.css +146 -0
  603. package/dist/node_modules/@ionic/core/dist/collection/components/footer/footer.md.css +129 -0
  604. package/dist/node_modules/@ionic/core/dist/collection/components/grid/grid.css +235 -0
  605. package/dist/node_modules/@ionic/core/dist/collection/components/header/header.ios.css +250 -0
  606. package/dist/node_modules/@ionic/core/dist/collection/components/header/header.md.css +133 -0
  607. package/dist/node_modules/@ionic/core/dist/collection/components/img/img.css +12 -0
  608. package/dist/node_modules/@ionic/core/dist/collection/components/infinite-scroll/infinite-scroll.css +8 -0
  609. package/dist/node_modules/@ionic/core/dist/collection/components/infinite-scroll-content/infinite-scroll-content.ios.css +156 -0
  610. package/dist/node_modules/@ionic/core/dist/collection/components/infinite-scroll-content/infinite-scroll-content.md.css +156 -0
  611. package/dist/node_modules/@ionic/core/dist/collection/components/input/input.ios.css +833 -0
  612. package/dist/node_modules/@ionic/core/dist/collection/components/input/input.md.css +1446 -0
  613. package/dist/node_modules/@ionic/core/dist/collection/components/item/item.ios.css +815 -0
  614. package/dist/node_modules/@ionic/core/dist/collection/components/item/item.md.css +1187 -0
  615. package/dist/node_modules/@ionic/core/dist/collection/components/item-divider/item-divider.ios.css +351 -0
  616. package/dist/node_modules/@ionic/core/dist/collection/components/item-divider/item-divider.md.css +417 -0
  617. package/dist/node_modules/@ionic/core/dist/collection/components/item-group/item-group.ios.css +114 -0
  618. package/dist/node_modules/@ionic/core/dist/collection/components/item-group/item-group.md.css +114 -0
  619. package/dist/node_modules/@ionic/core/dist/collection/components/item-option/item-option.ios.css +242 -0
  620. package/dist/node_modules/@ionic/core/dist/collection/components/item-option/item-option.md.css +236 -0
  621. package/dist/node_modules/@ionic/core/dist/collection/components/item-options/item-options.ios.css +287 -0
  622. package/dist/node_modules/@ionic/core/dist/collection/components/item-options/item-options.md.css +284 -0
  623. package/dist/node_modules/@ionic/core/dist/collection/components/item-sliding/item-sliding.css +121 -0
  624. package/dist/node_modules/@ionic/core/dist/collection/components/label/label.ios.css +334 -0
  625. package/dist/node_modules/@ionic/core/dist/collection/components/label/label.md.css +421 -0
  626. package/dist/node_modules/@ionic/core/dist/collection/components/list/list.ios.css +242 -0
  627. package/dist/node_modules/@ionic/core/dist/collection/components/list/list.md.css +287 -0
  628. package/dist/node_modules/@ionic/core/dist/collection/components/list-header/list-header.ios.css +285 -0
  629. package/dist/node_modules/@ionic/core/dist/collection/components/list-header/list-header.md.css +266 -0
  630. package/dist/node_modules/@ionic/core/dist/collection/components/loading/loading.ios.css +205 -0
  631. package/dist/node_modules/@ionic/core/dist/collection/components/loading/loading.md.css +196 -0
  632. package/dist/node_modules/@ionic/core/dist/collection/components/menu/menu.ios.css +378 -0
  633. package/dist/node_modules/@ionic/core/dist/collection/components/menu/menu.md.css +374 -0
  634. package/dist/node_modules/@ionic/core/dist/collection/components/menu-button/menu-button.ios.css +279 -0
  635. package/dist/node_modules/@ionic/core/dist/collection/components/menu-button/menu-button.md.css +282 -0
  636. package/dist/node_modules/@ionic/core/dist/collection/components/menu-toggle/menu-toggle.css +3 -0
  637. package/dist/node_modules/@ionic/core/dist/collection/components/modal/modal.ios.css +357 -0
  638. package/dist/node_modules/@ionic/core/dist/collection/components/modal/modal.md.css +272 -0
  639. package/dist/node_modules/@ionic/core/dist/collection/components/nav/nav.css +64 -0
  640. package/dist/node_modules/@ionic/core/dist/collection/components/note/note.ios.css +127 -0
  641. package/dist/node_modules/@ionic/core/dist/collection/components/note/note.md.css +127 -0
  642. package/dist/node_modules/@ionic/core/dist/collection/components/picker/picker.ios.css +367 -0
  643. package/dist/node_modules/@ionic/core/dist/collection/components/picker/picker.md.css +354 -0
  644. package/dist/node_modules/@ionic/core/dist/collection/components/picker-column/picker-column.ios.css +255 -0
  645. package/dist/node_modules/@ionic/core/dist/collection/components/picker-column/picker-column.md.css +246 -0
  646. package/dist/node_modules/@ionic/core/dist/collection/components/picker-column-internal/picker-column-internal.ios.css +138 -0
  647. package/dist/node_modules/@ionic/core/dist/collection/components/picker-column-internal/picker-column-internal.md.css +196 -0
  648. package/dist/node_modules/@ionic/core/dist/collection/components/picker-internal/picker-internal.ios.css +262 -0
  649. package/dist/node_modules/@ionic/core/dist/collection/components/picker-internal/picker-internal.md.css +258 -0
  650. package/dist/node_modules/@ionic/core/dist/collection/components/popover/popover.ios.css +366 -0
  651. package/dist/node_modules/@ionic/core/dist/collection/components/popover/popover.md.css +266 -0
  652. package/dist/node_modules/@ionic/core/dist/collection/components/progress-bar/progress-bar.ios.css +261 -0
  653. package/dist/node_modules/@ionic/core/dist/collection/components/progress-bar/progress-bar.md.css +261 -0
  654. package/dist/node_modules/@ionic/core/dist/collection/components/radio/radio.ios.css +557 -0
  655. package/dist/node_modules/@ionic/core/dist/collection/components/radio/radio.md.css +580 -0
  656. package/dist/node_modules/@ionic/core/dist/collection/components/range/range.ios.css +660 -0
  657. package/dist/node_modules/@ionic/core/dist/collection/components/range/range.md.css +819 -0
  658. package/dist/node_modules/@ionic/core/dist/collection/components/refresher/refresher.ios.css +321 -0
  659. package/dist/node_modules/@ionic/core/dist/collection/components/refresher/refresher.md.css +316 -0
  660. package/dist/node_modules/@ionic/core/dist/collection/components/reorder/reorder.ios.css +77 -0
  661. package/dist/node_modules/@ionic/core/dist/collection/components/reorder/reorder.md.css +77 -0
  662. package/dist/node_modules/@ionic/core/dist/collection/components/reorder-group/reorder-group.css +89 -0
  663. package/dist/node_modules/@ionic/core/dist/collection/components/ripple-effect/ripple-effect.css +113 -0
  664. package/dist/node_modules/@ionic/core/dist/collection/components/router-link/router-link.css +84 -0
  665. package/dist/node_modules/@ionic/core/dist/collection/components/router-outlet/router-outlet.css +64 -0
  666. package/dist/node_modules/@ionic/core/dist/collection/components/row/row.css +136 -0
  667. package/dist/node_modules/@ionic/core/dist/collection/components/searchbar/searchbar.ios.css +477 -0
  668. package/dist/node_modules/@ionic/core/dist/collection/components/searchbar/searchbar.md.css +456 -0
  669. package/dist/node_modules/@ionic/core/dist/collection/components/segment/segment.ios.css +224 -0
  670. package/dist/node_modules/@ionic/core/dist/collection/components/segment/segment.md.css +214 -0
  671. package/dist/node_modules/@ionic/core/dist/collection/components/segment-button/segment-button.ios.css +520 -0
  672. package/dist/node_modules/@ionic/core/dist/collection/components/segment-button/segment-button.md.css +506 -0
  673. package/dist/node_modules/@ionic/core/dist/collection/components/select/select.ios.css +787 -0
  674. package/dist/node_modules/@ionic/core/dist/collection/components/select/select.md.css +1374 -0
  675. package/dist/node_modules/@ionic/core/dist/collection/components/select-option/select-option.css +3 -0
  676. package/dist/node_modules/@ionic/core/dist/collection/components/select-popover/select-popover.ios.css +190 -0
  677. package/dist/node_modules/@ionic/core/dist/collection/components/select-popover/select-popover.md.css +212 -0
  678. package/dist/node_modules/@ionic/core/dist/collection/components/skeleton-text/skeleton-text.css +108 -0
  679. package/dist/node_modules/@ionic/core/dist/collection/components/spinner/spinner.css +232 -0
  680. package/dist/node_modules/@ionic/core/dist/collection/components/split-pane/split-pane.ios.css +265 -0
  681. package/dist/node_modules/@ionic/core/dist/collection/components/split-pane/split-pane.md.css +265 -0
  682. package/dist/node_modules/@ionic/core/dist/collection/components/tab/tab.css +4 -0
  683. package/dist/node_modules/@ionic/core/dist/collection/components/tab-bar/tab-bar.ios.css +252 -0
  684. package/dist/node_modules/@ionic/core/dist/collection/components/tab-bar/tab-bar.md.css +239 -0
  685. package/dist/node_modules/@ionic/core/dist/collection/components/tab-button/tab-button.ios.css +477 -0
  686. package/dist/node_modules/@ionic/core/dist/collection/components/tab-button/tab-button.md.css +501 -0
  687. package/dist/node_modules/@ionic/core/dist/collection/components/tabs/tabs.css +74 -0
  688. package/dist/node_modules/@ionic/core/dist/collection/components/text/text.css +58 -0
  689. package/dist/node_modules/@ionic/core/dist/collection/components/textarea/textarea.ios.css +987 -0
  690. package/dist/node_modules/@ionic/core/dist/collection/components/textarea/textarea.md.css +1553 -0
  691. package/dist/node_modules/@ionic/core/dist/collection/components/thumbnail/thumbnail.css +76 -0
  692. package/dist/node_modules/@ionic/core/dist/collection/components/title/title.ios.css +183 -0
  693. package/dist/node_modules/@ionic/core/dist/collection/components/title/title.md.css +102 -0
  694. package/dist/node_modules/@ionic/core/dist/collection/components/toast/toast.ios.css +399 -0
  695. package/dist/node_modules/@ionic/core/dist/collection/components/toast/toast.md.css +429 -0
  696. package/dist/node_modules/@ionic/core/dist/collection/components/toggle/toggle.ios.css +680 -0
  697. package/dist/node_modules/@ionic/core/dist/collection/components/toggle/toggle.md.css +625 -0
  698. package/dist/node_modules/@ionic/core/dist/collection/components/toolbar/toolbar.ios.css +265 -0
  699. package/dist/node_modules/@ionic/core/dist/collection/components/toolbar/toolbar.md.css +244 -0
  700. package/dist/node_modules/ionicons/dist/collection/components/icon/icon.css +144 -0
  701. package/dist/types/components/amwal-checkout-button/amwal-checkout-button.d.ts +327 -327
  702. package/dist/types/components/amwal-checkout-button/amwal-checkout-button.stories.d.ts +34 -34
  703. package/dist/types/components/amwal-installments-guide/amwal-installments-guide.d.ts +14 -14
  704. package/dist/types/components/amwal-installments-guide/amwal-installments-guide.stories.d.ts +17 -17
  705. package/dist/types/components/amwal-installments-timeline/amwal-installments-timeline.d.ts +106 -106
  706. package/dist/types/components/amwal-installments-timeline/amwal-installments-timeline.stories.d.ts +67 -67
  707. package/dist/types/components/amwal-pos/amwal-pos.d.ts +228 -228
  708. package/dist/types/components/amwal-pos/amwal-pos.stories.d.ts +185 -185
  709. package/dist/types/components/amwal-widget/amwal-widget-modal.d.ts +56 -56
  710. package/dist/types/components/amwal-widget/amwal-widget.d.ts +165 -165
  711. package/dist/types/components/amwal-widget/amwal-widget.stories.d.ts +101 -101
  712. package/dist/types/components.d.ts +0 -206
  713. package/dist/types/lang/i18n.d.ts +1 -1
  714. package/dist/types/stencil-public-runtime.d.ts +21 -191
  715. package/loader/cdn.js +3 -1
  716. package/loader/index.cjs.js +3 -1
  717. package/loader/index.d.ts +1 -4
  718. package/loader/index.es2017.js +3 -1
  719. package/loader/index.js +3 -1
  720. package/loader/package.json +11 -0
  721. package/package.json +28 -34
  722. package/dist/checkout/p-0161d109.entry.js +0 -1
  723. package/dist/checkout/p-0a8ef1ec.entry.js +0 -1
  724. package/dist/checkout/p-10a72fbe.entry.js +0 -1
  725. package/dist/checkout/p-12ed4081.entry.js +0 -1
  726. package/dist/checkout/p-13c36adc.entry.js +0 -1
  727. package/dist/checkout/p-194b17d8.entry.js +0 -1
  728. package/dist/checkout/p-272a1ffd.entry.js +0 -1
  729. package/dist/checkout/p-307af48b.entry.js +0 -1
  730. package/dist/checkout/p-3207674d.entry.js +0 -1
  731. package/dist/checkout/p-3208e56f.entry.js +0 -1
  732. package/dist/checkout/p-4426eb3b.entry.js +0 -1
  733. package/dist/checkout/p-458da59f.entry.js +0 -1
  734. package/dist/checkout/p-46e69508.entry.js +0 -1
  735. package/dist/checkout/p-49046c16.entry.js +0 -4
  736. package/dist/checkout/p-53dc0e86.entry.js +0 -1
  737. package/dist/checkout/p-5a6fc9fd.entry.js +0 -1
  738. package/dist/checkout/p-5e65653a.entry.js +0 -1
  739. package/dist/checkout/p-5f124c24.entry.js +0 -1
  740. package/dist/checkout/p-6a8ad104.entry.js +0 -1
  741. package/dist/checkout/p-76fb4325.entry.js +0 -1
  742. package/dist/checkout/p-78db60fb.entry.js +0 -1
  743. package/dist/checkout/p-8e34a1bb.entry.js +0 -1
  744. package/dist/checkout/p-91474b10.entry.js +0 -1
  745. package/dist/checkout/p-93OyAGoo.js +0 -2
  746. package/dist/checkout/p-94a57258.entry.js +0 -1
  747. package/dist/checkout/p-BEVStXwd.js +0 -7
  748. package/dist/checkout/p-BQu7QPd5.js +0 -4
  749. package/dist/checkout/p-BR7SJd-v.js +0 -4
  750. package/dist/checkout/p-BcFRJSFv.js +0 -4
  751. package/dist/checkout/p-BcUxrseY.js +0 -1
  752. package/dist/checkout/p-BdG893XR.js +0 -4
  753. package/dist/checkout/p-BgOwfqIY.js +0 -4
  754. package/dist/checkout/p-Bm9bMvCb.js +0 -4
  755. package/dist/checkout/p-C03M5ZSM.js +0 -1
  756. package/dist/checkout/p-C6kqtbmV.js +0 -4
  757. package/dist/checkout/p-C75BfBAE.js +0 -1
  758. package/dist/checkout/p-CVrvo9Qz.js +0 -4
  759. package/dist/checkout/p-ChixdDt6.js +0 -4
  760. package/dist/checkout/p-Cjnmql4G.js +0 -8
  761. package/dist/checkout/p-D0I0TqZU.js +0 -4
  762. package/dist/checkout/p-D2NxOvQ8.js +0 -4
  763. package/dist/checkout/p-D8d_89Nl.js +0 -4
  764. package/dist/checkout/p-DAhcxcAh.js +0 -4
  765. package/dist/checkout/p-DDtPO7yO.js +0 -4
  766. package/dist/checkout/p-DKg_dYcq.js +0 -4
  767. package/dist/checkout/p-DMAPbDyG.js +0 -4
  768. package/dist/checkout/p-DihS-5gH.js +0 -4
  769. package/dist/checkout/p-DkrNcwKK.js +0 -5
  770. package/dist/checkout/p-Dzj_jqIY.js +0 -4
  771. package/dist/checkout/p-E8AXUhZ3.js +0 -7
  772. package/dist/checkout/p-Ufaww5Lq.js +0 -4
  773. package/dist/checkout/p-a90efa79.entry.js +0 -1
  774. package/dist/checkout/p-abd12b84.entry.js +0 -1
  775. package/dist/checkout/p-abe1becc.entry.js +0 -1
  776. package/dist/checkout/p-b2f66c60.entry.js +0 -4
  777. package/dist/checkout/p-b45f5952.entry.js +0 -1
  778. package/dist/checkout/p-c2240d19.entry.js +0 -1
  779. package/dist/checkout/p-c28b4374.entry.js +0 -1
  780. package/dist/checkout/p-cb2db223.entry.js +0 -1
  781. package/dist/checkout/p-cb3967fc.entry.js +0 -1
  782. package/dist/checkout/p-cef16f11.entry.js +0 -1
  783. package/dist/checkout/p-df1b4347.entry.js +0 -4
  784. package/dist/checkout/p-e4bc42fb.entry.js +0 -1
  785. package/dist/checkout/p-e785fb8a.entry.js +0 -1
  786. package/dist/checkout/p-e8bd206a.entry.js +0 -1
  787. package/dist/checkout/p-ef749875.entry.js +0 -1
  788. package/dist/checkout/p-f157b6b2.entry.js +0 -4
  789. package/dist/checkout/p-f351a19a.entry.js +0 -1
  790. package/dist/checkout/p-ff2e59e3.entry.js +0 -1
  791. package/dist/checkout/p-hAETByzF.js +0 -5
  792. package/dist/checkout/p-vn1iXXUO.js +0 -9
  793. package/dist/cjs/i18n-uGNv9SLK.js +0 -13
  794. package/dist/cjs/index-DncWzXDA.js +0 -3738
  795. package/dist/components/p-55BwDerf.js +0 -8
  796. package/dist/components/p-B-M4K7iJ.js +0 -7
  797. package/dist/components/p-B-hirT0v.js +0 -4
  798. package/dist/components/p-B3WORC1a.js +0 -1
  799. package/dist/components/p-B5XH2zAk.js +0 -1
  800. package/dist/components/p-B5ZghgSh.js +0 -4
  801. package/dist/components/p-BEVStXwd.js +0 -7
  802. package/dist/components/p-BH0TCnxk.js +0 -4
  803. package/dist/components/p-BIA8A9ZO.js +0 -1
  804. package/dist/components/p-BOkYKP6F.js +0 -1
  805. package/dist/components/p-BOm0KT2x.js +0 -1
  806. package/dist/components/p-Bb_Zji0h.js +0 -4
  807. package/dist/components/p-BmVRXR1y.js +0 -4
  808. package/dist/components/p-BnQDByf2.js +0 -1
  809. package/dist/components/p-BoxjYI-Q.js +0 -4
  810. package/dist/components/p-BriBxgcM.js +0 -1
  811. package/dist/components/p-BwKjt_Dc.js +0 -4
  812. package/dist/components/p-Bx78uXfc.js +0 -5
  813. package/dist/components/p-C-20JWsp.js +0 -4
  814. package/dist/components/p-C03M5ZSM.js +0 -1
  815. package/dist/components/p-C53feagD.js +0 -4
  816. package/dist/components/p-CLrB3zV0.js +0 -4
  817. package/dist/components/p-CN34uOrj.js +0 -9
  818. package/dist/components/p-CQmcNwZM.js +0 -4
  819. package/dist/components/p-CYd0Smt1.js +0 -1
  820. package/dist/components/p-CgPXSjzI.js +0 -4
  821. package/dist/components/p-Cho32MPa.js +0 -4
  822. package/dist/components/p-ClE6rMJs.js +0 -4
  823. package/dist/components/p-Cm9b7fIl.js +0 -1
  824. package/dist/components/p-CukVBo5-.js +0 -4
  825. package/dist/components/p-D2NxOvQ8.js +0 -4
  826. package/dist/components/p-D4DqwBlW.js +0 -4
  827. package/dist/components/p-D7YY0NXg.js +0 -4
  828. package/dist/components/p-D8OVJo1v.js +0 -7
  829. package/dist/components/p-DKg_dYcq.js +0 -4
  830. package/dist/components/p-DLVYPrYs.js +0 -1
  831. package/dist/components/p-DMmSL7_l.js +0 -1
  832. package/dist/components/p-DOPF2QRF.js +0 -1
  833. package/dist/components/p-DTgJTJD6.js +0 -1
  834. package/dist/components/p-DiVJyqlX.js +0 -4
  835. package/dist/components/p-DrS88eFz.js +0 -1
  836. package/dist/components/p-Dtdm8lKC.js +0 -4
  837. package/dist/components/p-DuZ7hY1a.js +0 -4
  838. package/dist/components/p-Dx-C8Ob_.js +0 -7
  839. package/dist/components/p-DxEgz9x_.js +0 -1
  840. package/dist/components/p-DxSo4SXG.js +0 -1
  841. package/dist/components/p-HSPzo8it.js +0 -1
  842. package/dist/components/p-OrwCUtWu.js +0 -4
  843. package/dist/components/p-UgkI2Wa4.js +0 -1
  844. package/dist/components/p-VeNdmYSo.js +0 -1
  845. package/dist/components/p-YbpebnFS.js +0 -4
  846. package/dist/components/p-ZjP4CjeZ.js +0 -4
  847. package/dist/components/p-_VuKPdkD.js +0 -4
  848. package/dist/components/p-aWL6BxTN.js +0 -4
  849. package/dist/components/p-hHmYLOfE.js +0 -4
  850. package/dist/components/p-qoI-S7yk.js +0 -4
  851. package/dist/components/p-uXV7tzS3.js +0 -1
  852. package/dist/components/p-yu3xCFhr.js +0 -7
  853. package/dist/components/p-zp5f483d.js +0 -1
  854. package/dist/esm/i18n-C_AfxZ5D.js +0 -13
  855. package/dist/esm/index-93OyAGoo.js +0 -3721
  856. /package/dist/checkout/{p-B-hirT0v.js → p-01ad898f.js} +0 -0
  857. /package/dist/checkout/{p-DiVJyqlX.js → p-350e7423.js} +0 -0
  858. /package/dist/checkout/{p-sObYyvOy.js → p-52b4c112.js} +0 -0
  859. /package/dist/checkout/{p-BmVRXR1y.js → p-620fa0ec.js} +0 -0
  860. /package/dist/checkout/{p-hHmYLOfE.js → p-94286cc3.js} +0 -0
  861. /package/dist/checkout/{p-D4RIp70E.js → p-9efbca93.js} +0 -0
  862. /package/dist/checkout/{p-Dtdm8lKC.js → p-9f4ac833.js} +0 -0
  863. /package/dist/checkout/{p-yu3xCFhr.js → p-b2289937.js} +0 -0
  864. /package/dist/checkout/{p-C53feagD.js → p-d5862637.js} +0 -0
  865. /package/dist/checkout/{p-ZjP4CjeZ.js → p-d7fe59ee.js} +0 -0
  866. /package/dist/{components/p-CYPPT3AE.js → checkout/p-e187a77c.js} +0 -0
  867. /package/dist/checkout/{p-CukVBo5-.js → p-f728a68f.js} +0 -0
  868. /package/dist/cjs/{compare-with-utils-JlLIkecm.js → compare-with-utils-adbe64a6.js} +0 -0
  869. /package/dist/cjs/{config-ptk2Lf4l.js → config-e2a8c0c7.js} +0 -0
  870. /package/dist/cjs/{cubic-bezier-Bv3PvaRI.js → cubic-bezier-5ff9b04e.js} +0 -0
  871. /package/dist/cjs/{dir-Br-7_bel.js → dir-374f13f2.js} +0 -0
  872. /package/dist/cjs/{focus-visible-Da2o6bTP.js → focus-visible-b7381162.js} +0 -0
  873. /package/dist/cjs/{index-CH3IFTaK.js → index-071786b4.js} +0 -0
  874. /package/dist/cjs/{index-D3mJ1Cix.js → index-a281cac3.js} +0 -0
  875. /package/dist/cjs/{lock-controller-58TZFRHC.js → lock-controller-e2dfece6.js} +0 -0
  876. /package/dist/cjs/{spinner-configs-BN41iw42.js → spinner-configs-036ebfd8.js} +0 -0
  877. /package/dist/cjs/{theme-DbHdw1Nx.js → theme-12dec869.js} +0 -0
  878. /package/dist/cjs/{watch-options-DOFUPyuf.js → watch-options-1cccbe6a.js} +0 -0
  879. /package/dist/{esm/lock-controller-B-hirT0v.js → components/p-01ad898f.js} +0 -0
  880. /package/dist/{esm/theme-DiVJyqlX.js → components/p-350e7423.js} +0 -0
  881. /package/dist/{esm/focus-visible-BmVRXR1y.js → components/p-620fa0ec.js} +0 -0
  882. /package/dist/{esm/cubic-bezier-hHmYLOfE.js → components/p-94286cc3.js} +0 -0
  883. /package/dist/{esm/watch-options-Dtdm8lKC.js → components/p-9f4ac833.js} +0 -0
  884. /package/dist/{esm/config-yu3xCFhr.js → components/p-b2289937.js} +0 -0
  885. /package/dist/{esm/dir-C53feagD.js → components/p-d5862637.js} +0 -0
  886. /package/dist/{esm/index-ZjP4CjeZ.js → components/p-d7fe59ee.js} +0 -0
  887. /package/dist/esm/{compare-with-utils-sObYyvOy.js → compare-with-utils-d58be312.js} +0 -0
  888. /package/dist/esm/{spinner-configs-D4RIp70E.js → spinner-configs-c9fb0813.js} +0 -0
@@ -1,3721 +0,0 @@
1
- const NAMESPACE = 'checkout';
2
- const BUILD = /* checkout */ { hotModuleReplacement: false, hydratedSelectorName: "hydrated", lazyLoad: true, propChangeCallback: true, slotRelocation: true, state: true, updatable: true};
3
-
4
- /*
5
- Stencil Client Platform v4.40.1 | MIT Licensed | https://stenciljs.com
6
- */
7
- var __create = Object.create;
8
- var __defProp = Object.defineProperty;
9
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
10
- var __getOwnPropNames = Object.getOwnPropertyNames;
11
- var __getProtoOf = Object.getPrototypeOf;
12
- var __hasOwnProp = Object.prototype.hasOwnProperty;
13
- var __typeError = (msg) => {
14
- throw TypeError(msg);
15
- };
16
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
17
- var __commonJS = (cb, mod) => function __require() {
18
- return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
19
- };
20
- var __export = (target, all) => {
21
- for (var name in all)
22
- __defProp(target, name, { get: all[name], enumerable: true });
23
- };
24
- var __copyProps = (to, from, except, desc) => {
25
- if (from && typeof from === "object" || typeof from === "function") {
26
- for (let key of __getOwnPropNames(from))
27
- if (!__hasOwnProp.call(to, key) && key !== except)
28
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
29
- }
30
- return to;
31
- };
32
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
33
- // If the importer is in node compatibility mode or this is not an ESM
34
- // file that has been converted to a CommonJS file using a Babel-
35
- // compatible transform (i.e. "__esModule" has not been set), then set
36
- // "default" to the CommonJS "module.exports" for node compatibility.
37
- __defProp(target, "default", { value: mod, enumerable: true }) ,
38
- mod
39
- ));
40
- var __publicField = (obj, key, value) => __defNormalProp(obj, key + "" , value);
41
- var __accessCheck = (obj, member, msg) => member.has(obj) || __typeError("Cannot " + msg);
42
- var __privateGet = (obj, member, getter) => (__accessCheck(obj, member, "read from private field"), getter ? getter.call(obj) : member.get(obj));
43
- var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot add the same private member more than once") : member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
44
- var __privateSet = (obj, member, value, setter) => (__accessCheck(obj, member, "write to private field"), member.set(obj, value), value);
45
- var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "access private method"), method);
46
-
47
- // node_modules/balanced-match/index.js
48
- var require_balanced_match = __commonJS({
49
- "node_modules/balanced-match/index.js"(exports, module) {
50
- module.exports = balanced;
51
- function balanced(a, b, str) {
52
- if (a instanceof RegExp) a = maybeMatch(a, str);
53
- if (b instanceof RegExp) b = maybeMatch(b, str);
54
- var r = range(a, b, str);
55
- return r && {
56
- start: r[0],
57
- end: r[1],
58
- pre: str.slice(0, r[0]),
59
- body: str.slice(r[0] + a.length, r[1]),
60
- post: str.slice(r[1] + b.length)
61
- };
62
- }
63
- function maybeMatch(reg, str) {
64
- var m = str.match(reg);
65
- return m ? m[0] : null;
66
- }
67
- balanced.range = range;
68
- function range(a, b, str) {
69
- var begs, beg, left, right, result;
70
- var ai = str.indexOf(a);
71
- var bi = str.indexOf(b, ai + 1);
72
- var i2 = ai;
73
- if (ai >= 0 && bi > 0) {
74
- if (a === b) {
75
- return [ai, bi];
76
- }
77
- begs = [];
78
- left = str.length;
79
- while (i2 >= 0 && !result) {
80
- if (i2 == ai) {
81
- begs.push(i2);
82
- ai = str.indexOf(a, i2 + 1);
83
- } else if (begs.length == 1) {
84
- result = [begs.pop(), bi];
85
- } else {
86
- beg = begs.pop();
87
- if (beg < left) {
88
- left = beg;
89
- right = bi;
90
- }
91
- bi = str.indexOf(b, i2 + 1);
92
- }
93
- i2 = ai < bi && ai >= 0 ? ai : bi;
94
- }
95
- if (begs.length) {
96
- result = [left, right];
97
- }
98
- }
99
- return result;
100
- }
101
- }
102
- });
103
-
104
- // node_modules/brace-expansion/index.js
105
- var require_brace_expansion = __commonJS({
106
- "node_modules/brace-expansion/index.js"(exports, module) {
107
- var balanced = require_balanced_match();
108
- module.exports = expandTop;
109
- var escSlash = "\0SLASH" + Math.random() + "\0";
110
- var escOpen = "\0OPEN" + Math.random() + "\0";
111
- var escClose = "\0CLOSE" + Math.random() + "\0";
112
- var escComma = "\0COMMA" + Math.random() + "\0";
113
- var escPeriod = "\0PERIOD" + Math.random() + "\0";
114
- function numeric(str) {
115
- return parseInt(str, 10) == str ? parseInt(str, 10) : str.charCodeAt(0);
116
- }
117
- function escapeBraces(str) {
118
- return str.split("\\\\").join(escSlash).split("\\{").join(escOpen).split("\\}").join(escClose).split("\\,").join(escComma).split("\\.").join(escPeriod);
119
- }
120
- function unescapeBraces(str) {
121
- return str.split(escSlash).join("\\").split(escOpen).join("{").split(escClose).join("}").split(escComma).join(",").split(escPeriod).join(".");
122
- }
123
- function parseCommaParts(str) {
124
- if (!str)
125
- return [""];
126
- var parts = [];
127
- var m = balanced("{", "}", str);
128
- if (!m)
129
- return str.split(",");
130
- var pre = m.pre;
131
- var body = m.body;
132
- var post = m.post;
133
- var p = pre.split(",");
134
- p[p.length - 1] += "{" + body + "}";
135
- var postParts = parseCommaParts(post);
136
- if (post.length) {
137
- p[p.length - 1] += postParts.shift();
138
- p.push.apply(p, postParts);
139
- }
140
- parts.push.apply(parts, p);
141
- return parts;
142
- }
143
- function expandTop(str) {
144
- if (!str)
145
- return [];
146
- if (str.substr(0, 2) === "{}") {
147
- str = "\\{\\}" + str.substr(2);
148
- }
149
- return expand2(escapeBraces(str), true).map(unescapeBraces);
150
- }
151
- function embrace(str) {
152
- return "{" + str + "}";
153
- }
154
- function isPadded(el) {
155
- return /^-?0\d/.test(el);
156
- }
157
- function lte(i2, y) {
158
- return i2 <= y;
159
- }
160
- function gte(i2, y) {
161
- return i2 >= y;
162
- }
163
- function expand2(str, isTop) {
164
- var expansions = [];
165
- var m = balanced("{", "}", str);
166
- if (!m) return [str];
167
- var pre = m.pre;
168
- var post = m.post.length ? expand2(m.post, false) : [""];
169
- if (/\$$/.test(m.pre)) {
170
- for (var k = 0; k < post.length; k++) {
171
- var expansion = pre + "{" + m.body + "}" + post[k];
172
- expansions.push(expansion);
173
- }
174
- } else {
175
- var isNumericSequence = /^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(m.body);
176
- var isAlphaSequence = /^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(m.body);
177
- var isSequence = isNumericSequence || isAlphaSequence;
178
- var isOptions = m.body.indexOf(",") >= 0;
179
- if (!isSequence && !isOptions) {
180
- if (m.post.match(/,(?!,).*\}/)) {
181
- str = m.pre + "{" + m.body + escClose + m.post;
182
- return expand2(str);
183
- }
184
- return [str];
185
- }
186
- var n;
187
- if (isSequence) {
188
- n = m.body.split(/\.\./);
189
- } else {
190
- n = parseCommaParts(m.body);
191
- if (n.length === 1) {
192
- n = expand2(n[0], false).map(embrace);
193
- if (n.length === 1) {
194
- return post.map(function(p) {
195
- return m.pre + n[0] + p;
196
- });
197
- }
198
- }
199
- }
200
- var N;
201
- if (isSequence) {
202
- var x = numeric(n[0]);
203
- var y = numeric(n[1]);
204
- var width = Math.max(n[0].length, n[1].length);
205
- var incr = n.length == 3 ? Math.abs(numeric(n[2])) : 1;
206
- var test = lte;
207
- var reverse = y < x;
208
- if (reverse) {
209
- incr *= -1;
210
- test = gte;
211
- }
212
- var pad = n.some(isPadded);
213
- N = [];
214
- for (var i2 = x; test(i2, y); i2 += incr) {
215
- var c;
216
- if (isAlphaSequence) {
217
- c = String.fromCharCode(i2);
218
- if (c === "\\")
219
- c = "";
220
- } else {
221
- c = String(i2);
222
- if (pad) {
223
- var need = width - c.length;
224
- if (need > 0) {
225
- var z = new Array(need + 1).join("0");
226
- if (i2 < 0)
227
- c = "-" + z + c.slice(1);
228
- else
229
- c = z + c;
230
- }
231
- }
232
- }
233
- N.push(c);
234
- }
235
- } else {
236
- N = [];
237
- for (var j = 0; j < n.length; j++) {
238
- N.push.apply(N, expand2(n[j], false));
239
- }
240
- }
241
- for (var j = 0; j < N.length; j++) {
242
- for (var k = 0; k < post.length; k++) {
243
- var expansion = pre + N[j] + post[k];
244
- if (!isTop || isSequence || expansion)
245
- expansions.push(expansion);
246
- }
247
- }
248
- }
249
- return expansions;
250
- }
251
- }
252
- });
253
- var Build = {
254
- isBrowser: true};
255
-
256
- // src/utils/constants.ts
257
- var SVG_NS = "http://www.w3.org/2000/svg";
258
- var HTML_NS = "http://www.w3.org/1999/xhtml";
259
- var reWireGetterSetter = (instance, hostRef) => {
260
- var _a;
261
- const cmpMeta = hostRef.$cmpMeta$;
262
- const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
263
- members.map(([memberName, [memberFlags]]) => {
264
- if ((memberFlags & 31 /* Prop */ || memberFlags & 32 /* State */)) {
265
- const ogValue = instance[memberName];
266
- const ogDescriptor = getPropertyDescriptor(Object.getPrototypeOf(instance), memberName) || Object.getOwnPropertyDescriptor(instance, memberName);
267
- if (ogDescriptor) {
268
- Object.defineProperty(instance, memberName, {
269
- get() {
270
- return ogDescriptor.get.call(this);
271
- },
272
- set(newValue) {
273
- ogDescriptor.set.call(this, newValue);
274
- },
275
- configurable: true,
276
- enumerable: true
277
- });
278
- }
279
- instance[memberName] = hostRef.$instanceValues$.has(memberName) ? hostRef.$instanceValues$.get(memberName) : ogValue;
280
- }
281
- });
282
- };
283
- function getPropertyDescriptor(obj, memberName) {
284
- while (obj) {
285
- const desc = Object.getOwnPropertyDescriptor(obj, memberName);
286
- if (desc == null ? void 0 : desc.get) return desc;
287
- obj = Object.getPrototypeOf(obj);
288
- }
289
- return void 0;
290
- }
291
-
292
- // src/client/client-host-ref.ts
293
- var getHostRef = (ref) => {
294
- if (ref.__stencil__getHostRef) {
295
- return ref.__stencil__getHostRef();
296
- }
297
- return void 0;
298
- };
299
- var registerInstance = (lazyInstance, hostRef) => {
300
- if (!hostRef) return;
301
- lazyInstance.__stencil__getHostRef = () => hostRef;
302
- hostRef.$lazyInstance$ = lazyInstance;
303
- if (hostRef.$cmpMeta$.$flags$ & 512 /* hasModernPropertyDecls */ && (BUILD.state)) {
304
- reWireGetterSetter(lazyInstance, hostRef);
305
- }
306
- };
307
- var registerHost = (hostElement, cmpMeta) => {
308
- const hostRef = {
309
- $flags$: 0,
310
- $hostElement$: hostElement,
311
- $cmpMeta$: cmpMeta,
312
- $instanceValues$: /* @__PURE__ */ new Map(),
313
- $serializerValues$: /* @__PURE__ */ new Map()
314
- };
315
- {
316
- hostRef.$onInstancePromise$ = new Promise((r) => hostRef.$onInstanceResolve$ = r);
317
- }
318
- {
319
- hostRef.$onReadyPromise$ = new Promise((r) => hostRef.$onReadyResolve$ = r);
320
- hostElement["s-p"] = [];
321
- hostElement["s-rc"] = [];
322
- }
323
- {
324
- hostRef.$fetchedCbList$ = [];
325
- }
326
- const ref = hostRef;
327
- hostElement.__stencil__getHostRef = () => ref;
328
- return ref;
329
- };
330
- var isMemberInElement = (elm, memberName) => memberName in elm;
331
- var consoleError = (e, el) => (0, console.error)(e, el);
332
-
333
- // src/client/client-load-module.ts
334
- var cmpModules = /* @__PURE__ */ new Map();
335
- var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
336
- const exportName = cmpMeta.$tagName$.replace(/-/g, "_");
337
- const bundleId = cmpMeta.$lazyBundleId$;
338
- if (!bundleId) {
339
- return void 0;
340
- }
341
- const module = cmpModules.get(bundleId) ;
342
- if (module) {
343
- return module[exportName];
344
- }
345
- /*!__STENCIL_STATIC_IMPORT_SWITCH__*/
346
- return import(
347
- /* @vite-ignore */
348
- /* webpackInclude: /\.entry\.js$/ */
349
- /* webpackExclude: /\.system\.entry\.js$/ */
350
- /* webpackMode: "lazy" */
351
- `./${bundleId}.entry.js${""}`
352
- ).then(
353
- (importedModule) => {
354
- {
355
- cmpModules.set(bundleId, importedModule);
356
- }
357
- return importedModule[exportName];
358
- },
359
- (e) => {
360
- consoleError(e, hostRef.$hostElement$);
361
- }
362
- );
363
- };
364
-
365
- // src/client/client-style.ts
366
- var styles = /* @__PURE__ */ new Map();
367
- var modeResolutionChain = [];
368
- var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
369
- var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
370
- var XLINK_NS = "http://www.w3.org/1999/xlink";
371
- var win = typeof window !== "undefined" ? window : {};
372
- var plt = {
373
- $flags$: 0,
374
- $resourcesUrl$: "",
375
- jmp: (h2) => h2(),
376
- raf: (h2) => requestAnimationFrame(h2),
377
- ael: (el, eventName, listener, opts) => el.addEventListener(eventName, listener, opts),
378
- rel: (el, eventName, listener, opts) => el.removeEventListener(eventName, listener, opts),
379
- ce: (eventName, opts) => new CustomEvent(eventName, opts)
380
- };
381
- var setPlatformHelpers = (helpers) => {
382
- Object.assign(plt, helpers);
383
- };
384
- var supportsListenerOptions = /* @__PURE__ */ (() => {
385
- var _a;
386
- let supportsListenerOptions2 = false;
387
- try {
388
- (_a = win.document) == null ? void 0 : _a.addEventListener(
389
- "e",
390
- null,
391
- Object.defineProperty({}, "passive", {
392
- get() {
393
- supportsListenerOptions2 = true;
394
- }
395
- })
396
- );
397
- } catch (e) {
398
- }
399
- return supportsListenerOptions2;
400
- })();
401
- var promiseResolve = (v) => Promise.resolve(v);
402
- var supportsConstructableStylesheets = /* @__PURE__ */ (() => {
403
- try {
404
- if (!win.document.adoptedStyleSheets) {
405
- return false;
406
- }
407
- new CSSStyleSheet();
408
- return typeof new CSSStyleSheet().replaceSync === "function";
409
- } catch (e) {
410
- }
411
- return false;
412
- })() ;
413
- var supportsMutableAdoptedStyleSheets = supportsConstructableStylesheets ? /* @__PURE__ */ (() => !!win.document && Object.getOwnPropertyDescriptor(win.document.adoptedStyleSheets, "length").writable)() : false;
414
- var queuePending = false;
415
- var queueDomReads = [];
416
- var queueDomWrites = [];
417
- var queueTask = (queue, write) => (cb) => {
418
- queue.push(cb);
419
- if (!queuePending) {
420
- queuePending = true;
421
- if (write && plt.$flags$ & 4 /* queueSync */) {
422
- nextTick(flush);
423
- } else {
424
- plt.raf(flush);
425
- }
426
- }
427
- };
428
- var consume = (queue) => {
429
- for (let i2 = 0; i2 < queue.length; i2++) {
430
- try {
431
- queue[i2](performance.now());
432
- } catch (e) {
433
- consoleError(e);
434
- }
435
- }
436
- queue.length = 0;
437
- };
438
- var flush = () => {
439
- consume(queueDomReads);
440
- {
441
- consume(queueDomWrites);
442
- if (queuePending = queueDomReads.length > 0) {
443
- plt.raf(flush);
444
- }
445
- }
446
- };
447
- var nextTick = (cb) => promiseResolve().then(cb);
448
- var readTask = /* @__PURE__ */ queueTask(queueDomReads, false);
449
- var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
450
-
451
- // src/runtime/asset-path.ts
452
- var getAssetPath = (path2) => {
453
- const assetUrl = new URL(path2, plt.$resourcesUrl$);
454
- return assetUrl.origin !== win.location.origin ? assetUrl.href : assetUrl.pathname;
455
- };
456
-
457
- // src/utils/helpers.ts
458
- var isDef = (v) => v != null && v !== void 0;
459
- var isComplexType = (o) => {
460
- o = typeof o;
461
- return o === "object" || o === "function";
462
- };
463
-
464
- // node_modules/minimatch/dist/esm/index.js
465
- var import_brace_expansion = __toESM(require_brace_expansion());
466
-
467
- // node_modules/minimatch/dist/esm/assert-valid-pattern.js
468
- var MAX_PATTERN_LENGTH = 1024 * 64;
469
- var assertValidPattern = (pattern) => {
470
- if (typeof pattern !== "string") {
471
- throw new TypeError("invalid pattern");
472
- }
473
- if (pattern.length > MAX_PATTERN_LENGTH) {
474
- throw new TypeError("pattern is too long");
475
- }
476
- };
477
-
478
- // node_modules/minimatch/dist/esm/brace-expressions.js
479
- var posixClasses = {
480
- "[:alnum:]": ["\\p{L}\\p{Nl}\\p{Nd}", true],
481
- "[:alpha:]": ["\\p{L}\\p{Nl}", true],
482
- "[:ascii:]": ["\\x00-\\x7f", false],
483
- "[:blank:]": ["\\p{Zs}\\t", true],
484
- "[:cntrl:]": ["\\p{Cc}", true],
485
- "[:digit:]": ["\\p{Nd}", true],
486
- "[:graph:]": ["\\p{Z}\\p{C}", true, true],
487
- "[:lower:]": ["\\p{Ll}", true],
488
- "[:print:]": ["\\p{C}", true],
489
- "[:punct:]": ["\\p{P}", true],
490
- "[:space:]": ["\\p{Z}\\t\\r\\n\\v\\f", true],
491
- "[:upper:]": ["\\p{Lu}", true],
492
- "[:word:]": ["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}", true],
493
- "[:xdigit:]": ["A-Fa-f0-9", false]
494
- };
495
- var braceEscape = (s) => s.replace(/[[\]\\-]/g, "\\$&");
496
- var regexpEscape = (s) => s.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&");
497
- var rangesToString = (ranges) => ranges.join("");
498
- var parseClass = (glob, position) => {
499
- const pos = position;
500
- if (glob.charAt(pos) !== "[") {
501
- throw new Error("not in a brace expression");
502
- }
503
- const ranges = [];
504
- const negs = [];
505
- let i2 = pos + 1;
506
- let sawStart = false;
507
- let uflag = false;
508
- let escaping = false;
509
- let negate = false;
510
- let endPos = pos;
511
- let rangeStart = "";
512
- WHILE: while (i2 < glob.length) {
513
- const c = glob.charAt(i2);
514
- if ((c === "!" || c === "^") && i2 === pos + 1) {
515
- negate = true;
516
- i2++;
517
- continue;
518
- }
519
- if (c === "]" && sawStart && !escaping) {
520
- endPos = i2 + 1;
521
- break;
522
- }
523
- sawStart = true;
524
- if (c === "\\") {
525
- if (!escaping) {
526
- escaping = true;
527
- i2++;
528
- continue;
529
- }
530
- }
531
- if (c === "[" && !escaping) {
532
- for (const [cls, [unip, u, neg]] of Object.entries(posixClasses)) {
533
- if (glob.startsWith(cls, i2)) {
534
- if (rangeStart) {
535
- return ["$.", false, glob.length - pos, true];
536
- }
537
- i2 += cls.length;
538
- if (neg)
539
- negs.push(unip);
540
- else
541
- ranges.push(unip);
542
- uflag = uflag || u;
543
- continue WHILE;
544
- }
545
- }
546
- }
547
- escaping = false;
548
- if (rangeStart) {
549
- if (c > rangeStart) {
550
- ranges.push(braceEscape(rangeStart) + "-" + braceEscape(c));
551
- } else if (c === rangeStart) {
552
- ranges.push(braceEscape(c));
553
- }
554
- rangeStart = "";
555
- i2++;
556
- continue;
557
- }
558
- if (glob.startsWith("-]", i2 + 1)) {
559
- ranges.push(braceEscape(c + "-"));
560
- i2 += 2;
561
- continue;
562
- }
563
- if (glob.startsWith("-", i2 + 1)) {
564
- rangeStart = c;
565
- i2 += 2;
566
- continue;
567
- }
568
- ranges.push(braceEscape(c));
569
- i2++;
570
- }
571
- if (endPos < i2) {
572
- return ["", false, 0, false];
573
- }
574
- if (!ranges.length && !negs.length) {
575
- return ["$.", false, glob.length - pos, true];
576
- }
577
- if (negs.length === 0 && ranges.length === 1 && /^\\?.$/.test(ranges[0]) && !negate) {
578
- const r = ranges[0].length === 2 ? ranges[0].slice(-1) : ranges[0];
579
- return [regexpEscape(r), false, endPos - pos, false];
580
- }
581
- const sranges = "[" + (negate ? "^" : "") + rangesToString(ranges) + "]";
582
- const snegs = "[" + (negate ? "" : "^") + rangesToString(negs) + "]";
583
- const comb = ranges.length && negs.length ? "(" + sranges + "|" + snegs + ")" : ranges.length ? sranges : snegs;
584
- return [comb, uflag, endPos - pos, true];
585
- };
586
-
587
- // node_modules/minimatch/dist/esm/unescape.js
588
- var unescape = (s, { windowsPathsNoEscape = false } = {}) => {
589
- return windowsPathsNoEscape ? s.replace(/\[([^\/\\])\]/g, "$1") : s.replace(/((?!\\).|^)\[([^\/\\])\]/g, "$1$2").replace(/\\([^\/])/g, "$1");
590
- };
591
-
592
- // node_modules/minimatch/dist/esm/ast.js
593
- var types = /* @__PURE__ */ new Set(["!", "?", "+", "*", "@"]);
594
- var isExtglobType = (c) => types.has(c);
595
- var startNoTraversal = "(?!(?:^|/)\\.\\.?(?:$|/))";
596
- var startNoDot = "(?!\\.)";
597
- var addPatternStart = /* @__PURE__ */ new Set(["[", "."]);
598
- var justDots = /* @__PURE__ */ new Set(["..", "."]);
599
- var reSpecials = new Set("().*{}+?[]^$\\!");
600
- var regExpEscape = (s) => s.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&");
601
- var qmark = "[^/]";
602
- var star = qmark + "*?";
603
- var starNoEmpty = qmark + "+?";
604
- var _root, _hasMagic, _uflag, _parts, _parent, _parentIndex, _negs, _filledNegs, _options, _toString, _emptyExt, _AST_instances, fillNegs_fn, _AST_static, parseAST_fn, partsToRegExp_fn, parseGlob_fn;
605
- var _AST = class _AST {
606
- constructor(type, parent, options = {}) {
607
- __privateAdd(this, _AST_instances);
608
- __publicField(this, "type");
609
- __privateAdd(this, _root);
610
- __privateAdd(this, _hasMagic);
611
- __privateAdd(this, _uflag, false);
612
- __privateAdd(this, _parts, []);
613
- __privateAdd(this, _parent);
614
- __privateAdd(this, _parentIndex);
615
- __privateAdd(this, _negs);
616
- __privateAdd(this, _filledNegs, false);
617
- __privateAdd(this, _options);
618
- __privateAdd(this, _toString);
619
- // set to true if it's an extglob with no children
620
- // (which really means one child of '')
621
- __privateAdd(this, _emptyExt, false);
622
- this.type = type;
623
- if (type)
624
- __privateSet(this, _hasMagic, true);
625
- __privateSet(this, _parent, parent);
626
- __privateSet(this, _root, __privateGet(this, _parent) ? __privateGet(__privateGet(this, _parent), _root) : this);
627
- __privateSet(this, _options, __privateGet(this, _root) === this ? options : __privateGet(__privateGet(this, _root), _options));
628
- __privateSet(this, _negs, __privateGet(this, _root) === this ? [] : __privateGet(__privateGet(this, _root), _negs));
629
- if (type === "!" && !__privateGet(__privateGet(this, _root), _filledNegs))
630
- __privateGet(this, _negs).push(this);
631
- __privateSet(this, _parentIndex, __privateGet(this, _parent) ? __privateGet(__privateGet(this, _parent), _parts).length : 0);
632
- }
633
- get hasMagic() {
634
- if (__privateGet(this, _hasMagic) !== void 0)
635
- return __privateGet(this, _hasMagic);
636
- for (const p of __privateGet(this, _parts)) {
637
- if (typeof p === "string")
638
- continue;
639
- if (p.type || p.hasMagic)
640
- return __privateSet(this, _hasMagic, true);
641
- }
642
- return __privateGet(this, _hasMagic);
643
- }
644
- // reconstructs the pattern
645
- toString() {
646
- if (__privateGet(this, _toString) !== void 0)
647
- return __privateGet(this, _toString);
648
- if (!this.type) {
649
- return __privateSet(this, _toString, __privateGet(this, _parts).map((p) => String(p)).join(""));
650
- } else {
651
- return __privateSet(this, _toString, this.type + "(" + __privateGet(this, _parts).map((p) => String(p)).join("|") + ")");
652
- }
653
- }
654
- push(...parts) {
655
- for (const p of parts) {
656
- if (p === "")
657
- continue;
658
- if (typeof p !== "string" && !(p instanceof _AST && __privateGet(p, _parent) === this)) {
659
- throw new Error("invalid part: " + p);
660
- }
661
- __privateGet(this, _parts).push(p);
662
- }
663
- }
664
- toJSON() {
665
- var _a;
666
- const ret = this.type === null ? __privateGet(this, _parts).slice().map((p) => typeof p === "string" ? p : p.toJSON()) : [this.type, ...__privateGet(this, _parts).map((p) => p.toJSON())];
667
- if (this.isStart() && !this.type)
668
- ret.unshift([]);
669
- if (this.isEnd() && (this === __privateGet(this, _root) || __privateGet(__privateGet(this, _root), _filledNegs) && ((_a = __privateGet(this, _parent)) == null ? void 0 : _a.type) === "!")) {
670
- ret.push({});
671
- }
672
- return ret;
673
- }
674
- isStart() {
675
- var _a;
676
- if (__privateGet(this, _root) === this)
677
- return true;
678
- if (!((_a = __privateGet(this, _parent)) == null ? void 0 : _a.isStart()))
679
- return false;
680
- if (__privateGet(this, _parentIndex) === 0)
681
- return true;
682
- const p = __privateGet(this, _parent);
683
- for (let i2 = 0; i2 < __privateGet(this, _parentIndex); i2++) {
684
- const pp = __privateGet(p, _parts)[i2];
685
- if (!(pp instanceof _AST && pp.type === "!")) {
686
- return false;
687
- }
688
- }
689
- return true;
690
- }
691
- isEnd() {
692
- var _a, _b, _c;
693
- if (__privateGet(this, _root) === this)
694
- return true;
695
- if (((_a = __privateGet(this, _parent)) == null ? void 0 : _a.type) === "!")
696
- return true;
697
- if (!((_b = __privateGet(this, _parent)) == null ? void 0 : _b.isEnd()))
698
- return false;
699
- if (!this.type)
700
- return (_c = __privateGet(this, _parent)) == null ? void 0 : _c.isEnd();
701
- const pl = __privateGet(this, _parent) ? __privateGet(__privateGet(this, _parent), _parts).length : 0;
702
- return __privateGet(this, _parentIndex) === pl - 1;
703
- }
704
- copyIn(part) {
705
- if (typeof part === "string")
706
- this.push(part);
707
- else
708
- this.push(part.clone(this));
709
- }
710
- clone(parent) {
711
- const c = new _AST(this.type, parent);
712
- for (const p of __privateGet(this, _parts)) {
713
- c.copyIn(p);
714
- }
715
- return c;
716
- }
717
- static fromGlob(pattern, options = {}) {
718
- var _a;
719
- const ast = new _AST(null, void 0, options);
720
- __privateMethod(_a = _AST, _AST_static, parseAST_fn).call(_a, pattern, ast, 0, options);
721
- return ast;
722
- }
723
- // returns the regular expression if there's magic, or the unescaped
724
- // string if not.
725
- toMMPattern() {
726
- if (this !== __privateGet(this, _root))
727
- return __privateGet(this, _root).toMMPattern();
728
- const glob = this.toString();
729
- const [re, body, hasMagic, uflag] = this.toRegExpSource();
730
- const anyMagic = hasMagic || __privateGet(this, _hasMagic) || __privateGet(this, _options).nocase && !__privateGet(this, _options).nocaseMagicOnly && glob.toUpperCase() !== glob.toLowerCase();
731
- if (!anyMagic) {
732
- return body;
733
- }
734
- const flags = (__privateGet(this, _options).nocase ? "i" : "") + (uflag ? "u" : "");
735
- return Object.assign(new RegExp(`^${re}$`, flags), {
736
- _src: re,
737
- _glob: glob
738
- });
739
- }
740
- get options() {
741
- return __privateGet(this, _options);
742
- }
743
- // returns the string match, the regexp source, whether there's magic
744
- // in the regexp (so a regular expression is required) and whether or
745
- // not the uflag is needed for the regular expression (for posix classes)
746
- // TODO: instead of injecting the start/end at this point, just return
747
- // the BODY of the regexp, along with the start/end portions suitable
748
- // for binding the start/end in either a joined full-path makeRe context
749
- // (where we bind to (^|/), or a standalone matchPart context (where
750
- // we bind to ^, and not /). Otherwise slashes get duped!
751
- //
752
- // In part-matching mode, the start is:
753
- // - if not isStart: nothing
754
- // - if traversal possible, but not allowed: ^(?!\.\.?$)
755
- // - if dots allowed or not possible: ^
756
- // - if dots possible and not allowed: ^(?!\.)
757
- // end is:
758
- // - if not isEnd(): nothing
759
- // - else: $
760
- //
761
- // In full-path matching mode, we put the slash at the START of the
762
- // pattern, so start is:
763
- // - if first pattern: same as part-matching mode
764
- // - if not isStart(): nothing
765
- // - if traversal possible, but not allowed: /(?!\.\.?(?:$|/))
766
- // - if dots allowed or not possible: /
767
- // - if dots possible and not allowed: /(?!\.)
768
- // end is:
769
- // - if last pattern, same as part-matching mode
770
- // - else nothing
771
- //
772
- // Always put the (?:$|/) on negated tails, though, because that has to be
773
- // there to bind the end of the negated pattern portion, and it's easier to
774
- // just stick it in now rather than try to inject it later in the middle of
775
- // the pattern.
776
- //
777
- // We can just always return the same end, and leave it up to the caller
778
- // to know whether it's going to be used joined or in parts.
779
- // And, if the start is adjusted slightly, can do the same there:
780
- // - if not isStart: nothing
781
- // - if traversal possible, but not allowed: (?:/|^)(?!\.\.?$)
782
- // - if dots allowed or not possible: (?:/|^)
783
- // - if dots possible and not allowed: (?:/|^)(?!\.)
784
- //
785
- // But it's better to have a simpler binding without a conditional, for
786
- // performance, so probably better to return both start options.
787
- //
788
- // Then the caller just ignores the end if it's not the first pattern,
789
- // and the start always gets applied.
790
- //
791
- // But that's always going to be $ if it's the ending pattern, or nothing,
792
- // so the caller can just attach $ at the end of the pattern when building.
793
- //
794
- // So the todo is:
795
- // - better detect what kind of start is needed
796
- // - return both flavors of starting pattern
797
- // - attach $ at the end of the pattern when creating the actual RegExp
798
- //
799
- // Ah, but wait, no, that all only applies to the root when the first pattern
800
- // is not an extglob. If the first pattern IS an extglob, then we need all
801
- // that dot prevention biz to live in the extglob portions, because eg
802
- // +(*|.x*) can match .xy but not .yx.
803
- //
804
- // So, return the two flavors if it's #root and the first child is not an
805
- // AST, otherwise leave it to the child AST to handle it, and there,
806
- // use the (?:^|/) style of start binding.
807
- //
808
- // Even simplified further:
809
- // - Since the start for a join is eg /(?!\.) and the start for a part
810
- // is ^(?!\.), we can just prepend (?!\.) to the pattern (either root
811
- // or start or whatever) and prepend ^ or / at the Regexp construction.
812
- toRegExpSource(allowDot) {
813
- var _a;
814
- const dot = allowDot != null ? allowDot : !!__privateGet(this, _options).dot;
815
- if (__privateGet(this, _root) === this)
816
- __privateMethod(this, _AST_instances, fillNegs_fn).call(this);
817
- if (!this.type) {
818
- const noEmpty = this.isStart() && this.isEnd();
819
- const src = __privateGet(this, _parts).map((p) => {
820
- var _a2;
821
- const [re, _, hasMagic, uflag] = typeof p === "string" ? __privateMethod(_a2 = _AST, _AST_static, parseGlob_fn).call(_a2, p, __privateGet(this, _hasMagic), noEmpty) : p.toRegExpSource(allowDot);
822
- __privateSet(this, _hasMagic, __privateGet(this, _hasMagic) || hasMagic);
823
- __privateSet(this, _uflag, __privateGet(this, _uflag) || uflag);
824
- return re;
825
- }).join("");
826
- let start2 = "";
827
- if (this.isStart()) {
828
- if (typeof __privateGet(this, _parts)[0] === "string") {
829
- const dotTravAllowed = __privateGet(this, _parts).length === 1 && justDots.has(__privateGet(this, _parts)[0]);
830
- if (!dotTravAllowed) {
831
- const aps = addPatternStart;
832
- const needNoTrav = (
833
- // dots are allowed, and the pattern starts with [ or .
834
- dot && aps.has(src.charAt(0)) || // the pattern starts with \., and then [ or .
835
- src.startsWith("\\.") && aps.has(src.charAt(2)) || // the pattern starts with \.\., and then [ or .
836
- src.startsWith("\\.\\.") && aps.has(src.charAt(4))
837
- );
838
- const needNoDot = !dot && !allowDot && aps.has(src.charAt(0));
839
- start2 = needNoTrav ? startNoTraversal : needNoDot ? startNoDot : "";
840
- }
841
- }
842
- }
843
- let end = "";
844
- if (this.isEnd() && __privateGet(__privateGet(this, _root), _filledNegs) && ((_a = __privateGet(this, _parent)) == null ? void 0 : _a.type) === "!") {
845
- end = "(?:$|\\/)";
846
- }
847
- const final2 = start2 + src + end;
848
- return [
849
- final2,
850
- unescape(src),
851
- __privateSet(this, _hasMagic, !!__privateGet(this, _hasMagic)),
852
- __privateGet(this, _uflag)
853
- ];
854
- }
855
- const repeated = this.type === "*" || this.type === "+";
856
- const start = this.type === "!" ? "(?:(?!(?:" : "(?:";
857
- let body = __privateMethod(this, _AST_instances, partsToRegExp_fn).call(this, dot);
858
- if (this.isStart() && this.isEnd() && !body && this.type !== "!") {
859
- const s = this.toString();
860
- __privateSet(this, _parts, [s]);
861
- this.type = null;
862
- __privateSet(this, _hasMagic, void 0);
863
- return [s, unescape(this.toString()), false, false];
864
- }
865
- let bodyDotAllowed = !repeated || allowDot || dot || false ? "" : __privateMethod(this, _AST_instances, partsToRegExp_fn).call(this, true);
866
- if (bodyDotAllowed === body) {
867
- bodyDotAllowed = "";
868
- }
869
- if (bodyDotAllowed) {
870
- body = `(?:${body})(?:${bodyDotAllowed})*?`;
871
- }
872
- let final = "";
873
- if (this.type === "!" && __privateGet(this, _emptyExt)) {
874
- final = (this.isStart() && !dot ? startNoDot : "") + starNoEmpty;
875
- } else {
876
- const close = this.type === "!" ? (
877
- // !() must match something,but !(x) can match ''
878
- "))" + (this.isStart() && !dot && !allowDot ? startNoDot : "") + star + ")"
879
- ) : this.type === "@" ? ")" : this.type === "?" ? ")?" : this.type === "+" && bodyDotAllowed ? ")" : this.type === "*" && bodyDotAllowed ? `)?` : `)${this.type}`;
880
- final = start + body + close;
881
- }
882
- return [
883
- final,
884
- unescape(body),
885
- __privateSet(this, _hasMagic, !!__privateGet(this, _hasMagic)),
886
- __privateGet(this, _uflag)
887
- ];
888
- }
889
- };
890
- _root = new WeakMap();
891
- _hasMagic = new WeakMap();
892
- _uflag = new WeakMap();
893
- _parts = new WeakMap();
894
- _parent = new WeakMap();
895
- _parentIndex = new WeakMap();
896
- _negs = new WeakMap();
897
- _filledNegs = new WeakMap();
898
- _options = new WeakMap();
899
- _toString = new WeakMap();
900
- _emptyExt = new WeakMap();
901
- _AST_instances = new WeakSet();
902
- fillNegs_fn = function() {
903
- if (this !== __privateGet(this, _root))
904
- throw new Error("should only call on root");
905
- if (__privateGet(this, _filledNegs))
906
- return this;
907
- this.toString();
908
- __privateSet(this, _filledNegs, true);
909
- let n;
910
- while (n = __privateGet(this, _negs).pop()) {
911
- if (n.type !== "!")
912
- continue;
913
- let p = n;
914
- let pp = __privateGet(p, _parent);
915
- while (pp) {
916
- for (let i2 = __privateGet(p, _parentIndex) + 1; !pp.type && i2 < __privateGet(pp, _parts).length; i2++) {
917
- for (const part of __privateGet(n, _parts)) {
918
- if (typeof part === "string") {
919
- throw new Error("string part in extglob AST??");
920
- }
921
- part.copyIn(__privateGet(pp, _parts)[i2]);
922
- }
923
- }
924
- p = pp;
925
- pp = __privateGet(p, _parent);
926
- }
927
- }
928
- return this;
929
- };
930
- _AST_static = new WeakSet();
931
- parseAST_fn = function(str, ast, pos, opt) {
932
- var _a, _b;
933
- let escaping = false;
934
- let inBrace = false;
935
- let braceStart = -1;
936
- let braceNeg = false;
937
- if (ast.type === null) {
938
- let i3 = pos;
939
- let acc2 = "";
940
- while (i3 < str.length) {
941
- const c = str.charAt(i3++);
942
- if (escaping || c === "\\") {
943
- escaping = !escaping;
944
- acc2 += c;
945
- continue;
946
- }
947
- if (inBrace) {
948
- if (i3 === braceStart + 1) {
949
- if (c === "^" || c === "!") {
950
- braceNeg = true;
951
- }
952
- } else if (c === "]" && !(i3 === braceStart + 2 && braceNeg)) {
953
- inBrace = false;
954
- }
955
- acc2 += c;
956
- continue;
957
- } else if (c === "[") {
958
- inBrace = true;
959
- braceStart = i3;
960
- braceNeg = false;
961
- acc2 += c;
962
- continue;
963
- }
964
- if (!opt.noext && isExtglobType(c) && str.charAt(i3) === "(") {
965
- ast.push(acc2);
966
- acc2 = "";
967
- const ext2 = new _AST(c, ast);
968
- i3 = __privateMethod(_a = _AST, _AST_static, parseAST_fn).call(_a, str, ext2, i3, opt);
969
- ast.push(ext2);
970
- continue;
971
- }
972
- acc2 += c;
973
- }
974
- ast.push(acc2);
975
- return i3;
976
- }
977
- let i2 = pos + 1;
978
- let part = new _AST(null, ast);
979
- const parts = [];
980
- let acc = "";
981
- while (i2 < str.length) {
982
- const c = str.charAt(i2++);
983
- if (escaping || c === "\\") {
984
- escaping = !escaping;
985
- acc += c;
986
- continue;
987
- }
988
- if (inBrace) {
989
- if (i2 === braceStart + 1) {
990
- if (c === "^" || c === "!") {
991
- braceNeg = true;
992
- }
993
- } else if (c === "]" && !(i2 === braceStart + 2 && braceNeg)) {
994
- inBrace = false;
995
- }
996
- acc += c;
997
- continue;
998
- } else if (c === "[") {
999
- inBrace = true;
1000
- braceStart = i2;
1001
- braceNeg = false;
1002
- acc += c;
1003
- continue;
1004
- }
1005
- if (isExtglobType(c) && str.charAt(i2) === "(") {
1006
- part.push(acc);
1007
- acc = "";
1008
- const ext2 = new _AST(c, part);
1009
- part.push(ext2);
1010
- i2 = __privateMethod(_b = _AST, _AST_static, parseAST_fn).call(_b, str, ext2, i2, opt);
1011
- continue;
1012
- }
1013
- if (c === "|") {
1014
- part.push(acc);
1015
- acc = "";
1016
- parts.push(part);
1017
- part = new _AST(null, ast);
1018
- continue;
1019
- }
1020
- if (c === ")") {
1021
- if (acc === "" && __privateGet(ast, _parts).length === 0) {
1022
- __privateSet(ast, _emptyExt, true);
1023
- }
1024
- part.push(acc);
1025
- acc = "";
1026
- ast.push(...parts, part);
1027
- return i2;
1028
- }
1029
- acc += c;
1030
- }
1031
- ast.type = null;
1032
- __privateSet(ast, _hasMagic, void 0);
1033
- __privateSet(ast, _parts, [str.substring(pos - 1)]);
1034
- return i2;
1035
- };
1036
- partsToRegExp_fn = function(dot) {
1037
- return __privateGet(this, _parts).map((p) => {
1038
- if (typeof p === "string") {
1039
- throw new Error("string type in extglob ast??");
1040
- }
1041
- const [re, _, _hasMagic2, uflag] = p.toRegExpSource(dot);
1042
- __privateSet(this, _uflag, __privateGet(this, _uflag) || uflag);
1043
- return re;
1044
- }).filter((p) => !(this.isStart() && this.isEnd()) || !!p).join("|");
1045
- };
1046
- parseGlob_fn = function(glob, hasMagic, noEmpty = false) {
1047
- let escaping = false;
1048
- let re = "";
1049
- let uflag = false;
1050
- for (let i2 = 0; i2 < glob.length; i2++) {
1051
- const c = glob.charAt(i2);
1052
- if (escaping) {
1053
- escaping = false;
1054
- re += (reSpecials.has(c) ? "\\" : "") + c;
1055
- continue;
1056
- }
1057
- if (c === "\\") {
1058
- if (i2 === glob.length - 1) {
1059
- re += "\\\\";
1060
- } else {
1061
- escaping = true;
1062
- }
1063
- continue;
1064
- }
1065
- if (c === "[") {
1066
- const [src, needUflag, consumed, magic] = parseClass(glob, i2);
1067
- if (consumed) {
1068
- re += src;
1069
- uflag = uflag || needUflag;
1070
- i2 += consumed - 1;
1071
- hasMagic = hasMagic || magic;
1072
- continue;
1073
- }
1074
- }
1075
- if (c === "*") {
1076
- if (noEmpty && glob === "*")
1077
- re += starNoEmpty;
1078
- else
1079
- re += star;
1080
- hasMagic = true;
1081
- continue;
1082
- }
1083
- if (c === "?") {
1084
- re += qmark;
1085
- hasMagic = true;
1086
- continue;
1087
- }
1088
- re += regExpEscape(c);
1089
- }
1090
- return [re, unescape(glob), !!hasMagic, uflag];
1091
- };
1092
- __privateAdd(_AST, _AST_static);
1093
- var AST = _AST;
1094
-
1095
- // node_modules/minimatch/dist/esm/escape.js
1096
- var escape = (s, { windowsPathsNoEscape = false } = {}) => {
1097
- return windowsPathsNoEscape ? s.replace(/[?*()[\]]/g, "[$&]") : s.replace(/[?*()[\]\\]/g, "\\$&");
1098
- };
1099
-
1100
- // node_modules/minimatch/dist/esm/index.js
1101
- var minimatch = (p, pattern, options = {}) => {
1102
- assertValidPattern(pattern);
1103
- if (!options.nocomment && pattern.charAt(0) === "#") {
1104
- return false;
1105
- }
1106
- return new Minimatch(pattern, options).match(p);
1107
- };
1108
- var starDotExtRE = /^\*+([^+@!?\*\[\(]*)$/;
1109
- var starDotExtTest = (ext2) => (f) => !f.startsWith(".") && f.endsWith(ext2);
1110
- var starDotExtTestDot = (ext2) => (f) => f.endsWith(ext2);
1111
- var starDotExtTestNocase = (ext2) => {
1112
- ext2 = ext2.toLowerCase();
1113
- return (f) => !f.startsWith(".") && f.toLowerCase().endsWith(ext2);
1114
- };
1115
- var starDotExtTestNocaseDot = (ext2) => {
1116
- ext2 = ext2.toLowerCase();
1117
- return (f) => f.toLowerCase().endsWith(ext2);
1118
- };
1119
- var starDotStarRE = /^\*+\.\*+$/;
1120
- var starDotStarTest = (f) => !f.startsWith(".") && f.includes(".");
1121
- var starDotStarTestDot = (f) => f !== "." && f !== ".." && f.includes(".");
1122
- var dotStarRE = /^\.\*+$/;
1123
- var dotStarTest = (f) => f !== "." && f !== ".." && f.startsWith(".");
1124
- var starRE = /^\*+$/;
1125
- var starTest = (f) => f.length !== 0 && !f.startsWith(".");
1126
- var starTestDot = (f) => f.length !== 0 && f !== "." && f !== "..";
1127
- var qmarksRE = /^\?+([^+@!?\*\[\(]*)?$/;
1128
- var qmarksTestNocase = ([$0, ext2 = ""]) => {
1129
- const noext = qmarksTestNoExt([$0]);
1130
- if (!ext2)
1131
- return noext;
1132
- ext2 = ext2.toLowerCase();
1133
- return (f) => noext(f) && f.toLowerCase().endsWith(ext2);
1134
- };
1135
- var qmarksTestNocaseDot = ([$0, ext2 = ""]) => {
1136
- const noext = qmarksTestNoExtDot([$0]);
1137
- if (!ext2)
1138
- return noext;
1139
- ext2 = ext2.toLowerCase();
1140
- return (f) => noext(f) && f.toLowerCase().endsWith(ext2);
1141
- };
1142
- var qmarksTestDot = ([$0, ext2 = ""]) => {
1143
- const noext = qmarksTestNoExtDot([$0]);
1144
- return !ext2 ? noext : (f) => noext(f) && f.endsWith(ext2);
1145
- };
1146
- var qmarksTest = ([$0, ext2 = ""]) => {
1147
- const noext = qmarksTestNoExt([$0]);
1148
- return !ext2 ? noext : (f) => noext(f) && f.endsWith(ext2);
1149
- };
1150
- var qmarksTestNoExt = ([$0]) => {
1151
- const len = $0.length;
1152
- return (f) => f.length === len && !f.startsWith(".");
1153
- };
1154
- var qmarksTestNoExtDot = ([$0]) => {
1155
- const len = $0.length;
1156
- return (f) => f.length === len && f !== "." && f !== "..";
1157
- };
1158
- var defaultPlatform = typeof process === "object" && process ? typeof process.env === "object" && process.env && process.env.__MINIMATCH_TESTING_PLATFORM__ || process.platform : "posix";
1159
- var path = {
1160
- win32: { sep: "\\" },
1161
- posix: { sep: "/" }
1162
- };
1163
- var sep = defaultPlatform === "win32" ? path.win32.sep : path.posix.sep;
1164
- minimatch.sep = sep;
1165
- var GLOBSTAR = Symbol("globstar **");
1166
- minimatch.GLOBSTAR = GLOBSTAR;
1167
- var qmark2 = "[^/]";
1168
- var star2 = qmark2 + "*?";
1169
- var twoStarDot = "(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?";
1170
- var twoStarNoDot = "(?:(?!(?:\\/|^)\\.).)*?";
1171
- var filter = (pattern, options = {}) => (p) => minimatch(p, pattern, options);
1172
- minimatch.filter = filter;
1173
- var ext = (a, b = {}) => Object.assign({}, a, b);
1174
- var defaults = (def) => {
1175
- if (!def || typeof def !== "object" || !Object.keys(def).length) {
1176
- return minimatch;
1177
- }
1178
- const orig = minimatch;
1179
- const m = (p, pattern, options = {}) => orig(p, pattern, ext(def, options));
1180
- return Object.assign(m, {
1181
- Minimatch: class Minimatch extends orig.Minimatch {
1182
- constructor(pattern, options = {}) {
1183
- super(pattern, ext(def, options));
1184
- }
1185
- static defaults(options) {
1186
- return orig.defaults(ext(def, options)).Minimatch;
1187
- }
1188
- },
1189
- AST: class AST extends orig.AST {
1190
- /* c8 ignore start */
1191
- constructor(type, parent, options = {}) {
1192
- super(type, parent, ext(def, options));
1193
- }
1194
- /* c8 ignore stop */
1195
- static fromGlob(pattern, options = {}) {
1196
- return orig.AST.fromGlob(pattern, ext(def, options));
1197
- }
1198
- },
1199
- unescape: (s, options = {}) => orig.unescape(s, ext(def, options)),
1200
- escape: (s, options = {}) => orig.escape(s, ext(def, options)),
1201
- filter: (pattern, options = {}) => orig.filter(pattern, ext(def, options)),
1202
- defaults: (options) => orig.defaults(ext(def, options)),
1203
- makeRe: (pattern, options = {}) => orig.makeRe(pattern, ext(def, options)),
1204
- braceExpand: (pattern, options = {}) => orig.braceExpand(pattern, ext(def, options)),
1205
- match: (list, pattern, options = {}) => orig.match(list, pattern, ext(def, options)),
1206
- sep: orig.sep,
1207
- GLOBSTAR
1208
- });
1209
- };
1210
- minimatch.defaults = defaults;
1211
- var braceExpand = (pattern, options = {}) => {
1212
- assertValidPattern(pattern);
1213
- if (options.nobrace || !/\{(?:(?!\{).)*\}/.test(pattern)) {
1214
- return [pattern];
1215
- }
1216
- return (0, import_brace_expansion.default)(pattern);
1217
- };
1218
- minimatch.braceExpand = braceExpand;
1219
- var makeRe = (pattern, options = {}) => new Minimatch(pattern, options).makeRe();
1220
- minimatch.makeRe = makeRe;
1221
- var match = (list, pattern, options = {}) => {
1222
- const mm = new Minimatch(pattern, options);
1223
- list = list.filter((f) => mm.match(f));
1224
- if (mm.options.nonull && !list.length) {
1225
- list.push(pattern);
1226
- }
1227
- return list;
1228
- };
1229
- minimatch.match = match;
1230
- var globMagic = /[?*]|[+@!]\(.*?\)|\[|\]/;
1231
- var regExpEscape2 = (s) => s.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&");
1232
- var Minimatch = class {
1233
- options;
1234
- set;
1235
- pattern;
1236
- windowsPathsNoEscape;
1237
- nonegate;
1238
- negate;
1239
- comment;
1240
- empty;
1241
- preserveMultipleSlashes;
1242
- partial;
1243
- globSet;
1244
- globParts;
1245
- nocase;
1246
- isWindows;
1247
- platform;
1248
- windowsNoMagicRoot;
1249
- regexp;
1250
- constructor(pattern, options = {}) {
1251
- assertValidPattern(pattern);
1252
- options = options || {};
1253
- this.options = options;
1254
- this.pattern = pattern;
1255
- this.platform = options.platform || defaultPlatform;
1256
- this.isWindows = this.platform === "win32";
1257
- this.windowsPathsNoEscape = !!options.windowsPathsNoEscape || options.allowWindowsEscape === false;
1258
- if (this.windowsPathsNoEscape) {
1259
- this.pattern = this.pattern.replace(/\\/g, "/");
1260
- }
1261
- this.preserveMultipleSlashes = !!options.preserveMultipleSlashes;
1262
- this.regexp = null;
1263
- this.negate = false;
1264
- this.nonegate = !!options.nonegate;
1265
- this.comment = false;
1266
- this.empty = false;
1267
- this.partial = !!options.partial;
1268
- this.nocase = !!this.options.nocase;
1269
- this.windowsNoMagicRoot = options.windowsNoMagicRoot !== void 0 ? options.windowsNoMagicRoot : !!(this.isWindows && this.nocase);
1270
- this.globSet = [];
1271
- this.globParts = [];
1272
- this.set = [];
1273
- this.make();
1274
- }
1275
- hasMagic() {
1276
- if (this.options.magicalBraces && this.set.length > 1) {
1277
- return true;
1278
- }
1279
- for (const pattern of this.set) {
1280
- for (const part of pattern) {
1281
- if (typeof part !== "string")
1282
- return true;
1283
- }
1284
- }
1285
- return false;
1286
- }
1287
- debug(..._) {
1288
- }
1289
- make() {
1290
- const pattern = this.pattern;
1291
- const options = this.options;
1292
- if (!options.nocomment && pattern.charAt(0) === "#") {
1293
- this.comment = true;
1294
- return;
1295
- }
1296
- if (!pattern) {
1297
- this.empty = true;
1298
- return;
1299
- }
1300
- this.parseNegate();
1301
- this.globSet = [...new Set(this.braceExpand())];
1302
- if (options.debug) {
1303
- this.debug = (...args) => console.error(...args);
1304
- }
1305
- this.debug(this.pattern, this.globSet);
1306
- const rawGlobParts = this.globSet.map((s) => this.slashSplit(s));
1307
- this.globParts = this.preprocess(rawGlobParts);
1308
- this.debug(this.pattern, this.globParts);
1309
- let set = this.globParts.map((s, _, __) => {
1310
- if (this.isWindows && this.windowsNoMagicRoot) {
1311
- const isUNC = s[0] === "" && s[1] === "" && (s[2] === "?" || !globMagic.test(s[2])) && !globMagic.test(s[3]);
1312
- const isDrive = /^[a-z]:/i.test(s[0]);
1313
- if (isUNC) {
1314
- return [...s.slice(0, 4), ...s.slice(4).map((ss) => this.parse(ss))];
1315
- } else if (isDrive) {
1316
- return [s[0], ...s.slice(1).map((ss) => this.parse(ss))];
1317
- }
1318
- }
1319
- return s.map((ss) => this.parse(ss));
1320
- });
1321
- this.debug(this.pattern, set);
1322
- this.set = set.filter((s) => s.indexOf(false) === -1);
1323
- if (this.isWindows) {
1324
- for (let i2 = 0; i2 < this.set.length; i2++) {
1325
- const p = this.set[i2];
1326
- if (p[0] === "" && p[1] === "" && this.globParts[i2][2] === "?" && typeof p[3] === "string" && /^[a-z]:$/i.test(p[3])) {
1327
- p[2] = "?";
1328
- }
1329
- }
1330
- }
1331
- this.debug(this.pattern, this.set);
1332
- }
1333
- // various transforms to equivalent pattern sets that are
1334
- // faster to process in a filesystem walk. The goal is to
1335
- // eliminate what we can, and push all ** patterns as far
1336
- // to the right as possible, even if it increases the number
1337
- // of patterns that we have to process.
1338
- preprocess(globParts) {
1339
- if (this.options.noglobstar) {
1340
- for (let i2 = 0; i2 < globParts.length; i2++) {
1341
- for (let j = 0; j < globParts[i2].length; j++) {
1342
- if (globParts[i2][j] === "**") {
1343
- globParts[i2][j] = "*";
1344
- }
1345
- }
1346
- }
1347
- }
1348
- const { optimizationLevel = 1 } = this.options;
1349
- if (optimizationLevel >= 2) {
1350
- globParts = this.firstPhasePreProcess(globParts);
1351
- globParts = this.secondPhasePreProcess(globParts);
1352
- } else if (optimizationLevel >= 1) {
1353
- globParts = this.levelOneOptimize(globParts);
1354
- } else {
1355
- globParts = this.adjascentGlobstarOptimize(globParts);
1356
- }
1357
- return globParts;
1358
- }
1359
- // just get rid of adjascent ** portions
1360
- adjascentGlobstarOptimize(globParts) {
1361
- return globParts.map((parts) => {
1362
- let gs = -1;
1363
- while (-1 !== (gs = parts.indexOf("**", gs + 1))) {
1364
- let i2 = gs;
1365
- while (parts[i2 + 1] === "**") {
1366
- i2++;
1367
- }
1368
- if (i2 !== gs) {
1369
- parts.splice(gs, i2 - gs);
1370
- }
1371
- }
1372
- return parts;
1373
- });
1374
- }
1375
- // get rid of adjascent ** and resolve .. portions
1376
- levelOneOptimize(globParts) {
1377
- return globParts.map((parts) => {
1378
- parts = parts.reduce((set, part) => {
1379
- const prev = set[set.length - 1];
1380
- if (part === "**" && prev === "**") {
1381
- return set;
1382
- }
1383
- if (part === "..") {
1384
- if (prev && prev !== ".." && prev !== "." && prev !== "**") {
1385
- set.pop();
1386
- return set;
1387
- }
1388
- }
1389
- set.push(part);
1390
- return set;
1391
- }, []);
1392
- return parts.length === 0 ? [""] : parts;
1393
- });
1394
- }
1395
- levelTwoFileOptimize(parts) {
1396
- if (!Array.isArray(parts)) {
1397
- parts = this.slashSplit(parts);
1398
- }
1399
- let didSomething = false;
1400
- do {
1401
- didSomething = false;
1402
- if (!this.preserveMultipleSlashes) {
1403
- for (let i2 = 1; i2 < parts.length - 1; i2++) {
1404
- const p = parts[i2];
1405
- if (i2 === 1 && p === "" && parts[0] === "")
1406
- continue;
1407
- if (p === "." || p === "") {
1408
- didSomething = true;
1409
- parts.splice(i2, 1);
1410
- i2--;
1411
- }
1412
- }
1413
- if (parts[0] === "." && parts.length === 2 && (parts[1] === "." || parts[1] === "")) {
1414
- didSomething = true;
1415
- parts.pop();
1416
- }
1417
- }
1418
- let dd = 0;
1419
- while (-1 !== (dd = parts.indexOf("..", dd + 1))) {
1420
- const p = parts[dd - 1];
1421
- if (p && p !== "." && p !== ".." && p !== "**") {
1422
- didSomething = true;
1423
- parts.splice(dd - 1, 2);
1424
- dd -= 2;
1425
- }
1426
- }
1427
- } while (didSomething);
1428
- return parts.length === 0 ? [""] : parts;
1429
- }
1430
- // First phase: single-pattern processing
1431
- // <pre> is 1 or more portions
1432
- // <rest> is 1 or more portions
1433
- // <p> is any portion other than ., .., '', or **
1434
- // <e> is . or ''
1435
- //
1436
- // **/.. is *brutal* for filesystem walking performance, because
1437
- // it effectively resets the recursive walk each time it occurs,
1438
- // and ** cannot be reduced out by a .. pattern part like a regexp
1439
- // or most strings (other than .., ., and '') can be.
1440
- //
1441
- // <pre>/**/../<p>/<p>/<rest> -> {<pre>/../<p>/<p>/<rest>,<pre>/**/<p>/<p>/<rest>}
1442
- // <pre>/<e>/<rest> -> <pre>/<rest>
1443
- // <pre>/<p>/../<rest> -> <pre>/<rest>
1444
- // **/**/<rest> -> **/<rest>
1445
- //
1446
- // **/*/<rest> -> */**/<rest> <== not valid because ** doesn't follow
1447
- // this WOULD be allowed if ** did follow symlinks, or * didn't
1448
- firstPhasePreProcess(globParts) {
1449
- let didSomething = false;
1450
- do {
1451
- didSomething = false;
1452
- for (let parts of globParts) {
1453
- let gs = -1;
1454
- while (-1 !== (gs = parts.indexOf("**", gs + 1))) {
1455
- let gss = gs;
1456
- while (parts[gss + 1] === "**") {
1457
- gss++;
1458
- }
1459
- if (gss > gs) {
1460
- parts.splice(gs + 1, gss - gs);
1461
- }
1462
- let next = parts[gs + 1];
1463
- const p = parts[gs + 2];
1464
- const p2 = parts[gs + 3];
1465
- if (next !== "..")
1466
- continue;
1467
- if (!p || p === "." || p === ".." || !p2 || p2 === "." || p2 === "..") {
1468
- continue;
1469
- }
1470
- didSomething = true;
1471
- parts.splice(gs, 1);
1472
- const other = parts.slice(0);
1473
- other[gs] = "**";
1474
- globParts.push(other);
1475
- gs--;
1476
- }
1477
- if (!this.preserveMultipleSlashes) {
1478
- for (let i2 = 1; i2 < parts.length - 1; i2++) {
1479
- const p = parts[i2];
1480
- if (i2 === 1 && p === "" && parts[0] === "")
1481
- continue;
1482
- if (p === "." || p === "") {
1483
- didSomething = true;
1484
- parts.splice(i2, 1);
1485
- i2--;
1486
- }
1487
- }
1488
- if (parts[0] === "." && parts.length === 2 && (parts[1] === "." || parts[1] === "")) {
1489
- didSomething = true;
1490
- parts.pop();
1491
- }
1492
- }
1493
- let dd = 0;
1494
- while (-1 !== (dd = parts.indexOf("..", dd + 1))) {
1495
- const p = parts[dd - 1];
1496
- if (p && p !== "." && p !== ".." && p !== "**") {
1497
- didSomething = true;
1498
- const needDot = dd === 1 && parts[dd + 1] === "**";
1499
- const splin = needDot ? ["."] : [];
1500
- parts.splice(dd - 1, 2, ...splin);
1501
- if (parts.length === 0)
1502
- parts.push("");
1503
- dd -= 2;
1504
- }
1505
- }
1506
- }
1507
- } while (didSomething);
1508
- return globParts;
1509
- }
1510
- // second phase: multi-pattern dedupes
1511
- // {<pre>/*/<rest>,<pre>/<p>/<rest>} -> <pre>/*/<rest>
1512
- // {<pre>/<rest>,<pre>/<rest>} -> <pre>/<rest>
1513
- // {<pre>/**/<rest>,<pre>/<rest>} -> <pre>/**/<rest>
1514
- //
1515
- // {<pre>/**/<rest>,<pre>/**/<p>/<rest>} -> <pre>/**/<rest>
1516
- // ^-- not valid because ** doens't follow symlinks
1517
- secondPhasePreProcess(globParts) {
1518
- for (let i2 = 0; i2 < globParts.length - 1; i2++) {
1519
- for (let j = i2 + 1; j < globParts.length; j++) {
1520
- const matched = this.partsMatch(globParts[i2], globParts[j], !this.preserveMultipleSlashes);
1521
- if (!matched)
1522
- continue;
1523
- globParts[i2] = matched;
1524
- globParts[j] = [];
1525
- }
1526
- }
1527
- return globParts.filter((gs) => gs.length);
1528
- }
1529
- partsMatch(a, b, emptyGSMatch = false) {
1530
- let ai = 0;
1531
- let bi = 0;
1532
- let result = [];
1533
- let which = "";
1534
- while (ai < a.length && bi < b.length) {
1535
- if (a[ai] === b[bi]) {
1536
- result.push(which === "b" ? b[bi] : a[ai]);
1537
- ai++;
1538
- bi++;
1539
- } else if (emptyGSMatch && a[ai] === "**" && b[bi] === a[ai + 1]) {
1540
- result.push(a[ai]);
1541
- ai++;
1542
- } else if (emptyGSMatch && b[bi] === "**" && a[ai] === b[bi + 1]) {
1543
- result.push(b[bi]);
1544
- bi++;
1545
- } else if (a[ai] === "*" && b[bi] && (this.options.dot || !b[bi].startsWith(".")) && b[bi] !== "**") {
1546
- if (which === "b")
1547
- return false;
1548
- which = "a";
1549
- result.push(a[ai]);
1550
- ai++;
1551
- bi++;
1552
- } else if (b[bi] === "*" && a[ai] && (this.options.dot || !a[ai].startsWith(".")) && a[ai] !== "**") {
1553
- if (which === "a")
1554
- return false;
1555
- which = "b";
1556
- result.push(b[bi]);
1557
- ai++;
1558
- bi++;
1559
- } else {
1560
- return false;
1561
- }
1562
- }
1563
- return a.length === b.length && result;
1564
- }
1565
- parseNegate() {
1566
- if (this.nonegate)
1567
- return;
1568
- const pattern = this.pattern;
1569
- let negate = false;
1570
- let negateOffset = 0;
1571
- for (let i2 = 0; i2 < pattern.length && pattern.charAt(i2) === "!"; i2++) {
1572
- negate = !negate;
1573
- negateOffset++;
1574
- }
1575
- if (negateOffset)
1576
- this.pattern = pattern.slice(negateOffset);
1577
- this.negate = negate;
1578
- }
1579
- // set partial to true to test if, for example,
1580
- // "/a/b" matches the start of "/*/b/*/d"
1581
- // Partial means, if you run out of file before you run
1582
- // out of pattern, then that's fine, as long as all
1583
- // the parts match.
1584
- matchOne(file, pattern, partial = false) {
1585
- const options = this.options;
1586
- if (this.isWindows) {
1587
- const fileDrive = typeof file[0] === "string" && /^[a-z]:$/i.test(file[0]);
1588
- const fileUNC = !fileDrive && file[0] === "" && file[1] === "" && file[2] === "?" && /^[a-z]:$/i.test(file[3]);
1589
- const patternDrive = typeof pattern[0] === "string" && /^[a-z]:$/i.test(pattern[0]);
1590
- const patternUNC = !patternDrive && pattern[0] === "" && pattern[1] === "" && pattern[2] === "?" && typeof pattern[3] === "string" && /^[a-z]:$/i.test(pattern[3]);
1591
- const fdi = fileUNC ? 3 : fileDrive ? 0 : void 0;
1592
- const pdi = patternUNC ? 3 : patternDrive ? 0 : void 0;
1593
- if (typeof fdi === "number" && typeof pdi === "number") {
1594
- const [fd, pd] = [file[fdi], pattern[pdi]];
1595
- if (fd.toLowerCase() === pd.toLowerCase()) {
1596
- pattern[pdi] = fd;
1597
- if (pdi > fdi) {
1598
- pattern = pattern.slice(pdi);
1599
- } else if (fdi > pdi) {
1600
- file = file.slice(fdi);
1601
- }
1602
- }
1603
- }
1604
- }
1605
- const { optimizationLevel = 1 } = this.options;
1606
- if (optimizationLevel >= 2) {
1607
- file = this.levelTwoFileOptimize(file);
1608
- }
1609
- this.debug("matchOne", this, { file, pattern });
1610
- this.debug("matchOne", file.length, pattern.length);
1611
- for (var fi = 0, pi = 0, fl = file.length, pl = pattern.length; fi < fl && pi < pl; fi++, pi++) {
1612
- this.debug("matchOne loop");
1613
- var p = pattern[pi];
1614
- var f = file[fi];
1615
- this.debug(pattern, p, f);
1616
- if (p === false) {
1617
- return false;
1618
- }
1619
- if (p === GLOBSTAR) {
1620
- this.debug("GLOBSTAR", [pattern, p, f]);
1621
- var fr = fi;
1622
- var pr = pi + 1;
1623
- if (pr === pl) {
1624
- this.debug("** at the end");
1625
- for (; fi < fl; fi++) {
1626
- if (file[fi] === "." || file[fi] === ".." || !options.dot && file[fi].charAt(0) === ".")
1627
- return false;
1628
- }
1629
- return true;
1630
- }
1631
- while (fr < fl) {
1632
- var swallowee = file[fr];
1633
- this.debug("\nglobstar while", file, fr, pattern, pr, swallowee);
1634
- if (this.matchOne(file.slice(fr), pattern.slice(pr), partial)) {
1635
- this.debug("globstar found match!", fr, fl, swallowee);
1636
- return true;
1637
- } else {
1638
- if (swallowee === "." || swallowee === ".." || !options.dot && swallowee.charAt(0) === ".") {
1639
- this.debug("dot detected!", file, fr, pattern, pr);
1640
- break;
1641
- }
1642
- this.debug("globstar swallow a segment, and continue");
1643
- fr++;
1644
- }
1645
- }
1646
- if (partial) {
1647
- this.debug("\n>>> no match, partial?", file, fr, pattern, pr);
1648
- if (fr === fl) {
1649
- return true;
1650
- }
1651
- }
1652
- return false;
1653
- }
1654
- let hit;
1655
- if (typeof p === "string") {
1656
- hit = f === p;
1657
- this.debug("string match", p, f, hit);
1658
- } else {
1659
- hit = p.test(f);
1660
- this.debug("pattern match", p, f, hit);
1661
- }
1662
- if (!hit)
1663
- return false;
1664
- }
1665
- if (fi === fl && pi === pl) {
1666
- return true;
1667
- } else if (fi === fl) {
1668
- return partial;
1669
- } else if (pi === pl) {
1670
- return fi === fl - 1 && file[fi] === "";
1671
- } else {
1672
- throw new Error("wtf?");
1673
- }
1674
- }
1675
- braceExpand() {
1676
- return braceExpand(this.pattern, this.options);
1677
- }
1678
- parse(pattern) {
1679
- assertValidPattern(pattern);
1680
- const options = this.options;
1681
- if (pattern === "**")
1682
- return GLOBSTAR;
1683
- if (pattern === "")
1684
- return "";
1685
- let m;
1686
- let fastTest = null;
1687
- if (m = pattern.match(starRE)) {
1688
- fastTest = options.dot ? starTestDot : starTest;
1689
- } else if (m = pattern.match(starDotExtRE)) {
1690
- fastTest = (options.nocase ? options.dot ? starDotExtTestNocaseDot : starDotExtTestNocase : options.dot ? starDotExtTestDot : starDotExtTest)(m[1]);
1691
- } else if (m = pattern.match(qmarksRE)) {
1692
- fastTest = (options.nocase ? options.dot ? qmarksTestNocaseDot : qmarksTestNocase : options.dot ? qmarksTestDot : qmarksTest)(m);
1693
- } else if (m = pattern.match(starDotStarRE)) {
1694
- fastTest = options.dot ? starDotStarTestDot : starDotStarTest;
1695
- } else if (m = pattern.match(dotStarRE)) {
1696
- fastTest = dotStarTest;
1697
- }
1698
- const re = AST.fromGlob(pattern, this.options).toMMPattern();
1699
- if (fastTest && typeof re === "object") {
1700
- Reflect.defineProperty(re, "test", { value: fastTest });
1701
- }
1702
- return re;
1703
- }
1704
- makeRe() {
1705
- if (this.regexp || this.regexp === false)
1706
- return this.regexp;
1707
- const set = this.set;
1708
- if (!set.length) {
1709
- this.regexp = false;
1710
- return this.regexp;
1711
- }
1712
- const options = this.options;
1713
- const twoStar = options.noglobstar ? star2 : options.dot ? twoStarDot : twoStarNoDot;
1714
- const flags = new Set(options.nocase ? ["i"] : []);
1715
- let re = set.map((pattern) => {
1716
- const pp = pattern.map((p) => {
1717
- if (p instanceof RegExp) {
1718
- for (const f of p.flags.split(""))
1719
- flags.add(f);
1720
- }
1721
- return typeof p === "string" ? regExpEscape2(p) : p === GLOBSTAR ? GLOBSTAR : p._src;
1722
- });
1723
- pp.forEach((p, i2) => {
1724
- const next = pp[i2 + 1];
1725
- const prev = pp[i2 - 1];
1726
- if (p !== GLOBSTAR || prev === GLOBSTAR) {
1727
- return;
1728
- }
1729
- if (prev === void 0) {
1730
- if (next !== void 0 && next !== GLOBSTAR) {
1731
- pp[i2 + 1] = "(?:\\/|" + twoStar + "\\/)?" + next;
1732
- } else {
1733
- pp[i2] = twoStar;
1734
- }
1735
- } else if (next === void 0) {
1736
- pp[i2 - 1] = prev + "(?:\\/|" + twoStar + ")?";
1737
- } else if (next !== GLOBSTAR) {
1738
- pp[i2 - 1] = prev + "(?:\\/|\\/" + twoStar + "\\/)" + next;
1739
- pp[i2 + 1] = GLOBSTAR;
1740
- }
1741
- });
1742
- return pp.filter((p) => p !== GLOBSTAR).join("/");
1743
- }).join("|");
1744
- const [open, close] = set.length > 1 ? ["(?:", ")"] : ["", ""];
1745
- re = "^" + open + re + close + "$";
1746
- if (this.negate)
1747
- re = "^(?!" + re + ").+$";
1748
- try {
1749
- this.regexp = new RegExp(re, [...flags].join(""));
1750
- } catch (ex) {
1751
- this.regexp = false;
1752
- }
1753
- return this.regexp;
1754
- }
1755
- slashSplit(p) {
1756
- if (this.preserveMultipleSlashes) {
1757
- return p.split("/");
1758
- } else if (this.isWindows && /^\/\/[^\/]+/.test(p)) {
1759
- return ["", ...p.split(/\/+/)];
1760
- } else {
1761
- return p.split(/\/+/);
1762
- }
1763
- }
1764
- match(f, partial = this.partial) {
1765
- this.debug("match", f, this.pattern);
1766
- if (this.comment) {
1767
- return false;
1768
- }
1769
- if (this.empty) {
1770
- return f === "";
1771
- }
1772
- if (f === "/" && partial) {
1773
- return true;
1774
- }
1775
- const options = this.options;
1776
- if (this.isWindows) {
1777
- f = f.split("\\").join("/");
1778
- }
1779
- const ff = this.slashSplit(f);
1780
- this.debug(this.pattern, "split", ff);
1781
- const set = this.set;
1782
- this.debug(this.pattern, "set", set);
1783
- let filename = ff[ff.length - 1];
1784
- if (!filename) {
1785
- for (let i2 = ff.length - 2; !filename && i2 >= 0; i2--) {
1786
- filename = ff[i2];
1787
- }
1788
- }
1789
- for (let i2 = 0; i2 < set.length; i2++) {
1790
- const pattern = set[i2];
1791
- let file = ff;
1792
- if (options.matchBase && pattern.length === 1) {
1793
- file = [filename];
1794
- }
1795
- const hit = this.matchOne(file, pattern, partial);
1796
- if (hit) {
1797
- if (options.flipNegate) {
1798
- return true;
1799
- }
1800
- return !this.negate;
1801
- }
1802
- }
1803
- if (options.flipNegate) {
1804
- return false;
1805
- }
1806
- return this.negate;
1807
- }
1808
- static defaults(def) {
1809
- return minimatch.defaults(def).Minimatch;
1810
- }
1811
- };
1812
- minimatch.AST = AST;
1813
- minimatch.Minimatch = Minimatch;
1814
- minimatch.escape = escape;
1815
- minimatch.unescape = unescape;
1816
-
1817
- // src/utils/query-nonce-meta-tag-content.ts
1818
- function queryNonceMetaTagContent(doc) {
1819
- var _a, _b, _c;
1820
- return (_c = (_b = (_a = doc.head) == null ? void 0 : _a.querySelector('meta[name="csp-nonce"]')) == null ? void 0 : _b.getAttribute("content")) != null ? _c : void 0;
1821
- }
1822
-
1823
- // src/utils/regular-expression.ts
1824
- var escapeRegExpSpecialCharacters = (text) => {
1825
- return text.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
1826
- };
1827
-
1828
- // src/utils/result.ts
1829
- var result_exports = {};
1830
- __export(result_exports, {
1831
- err: () => err,
1832
- map: () => map,
1833
- ok: () => ok,
1834
- unwrap: () => unwrap,
1835
- unwrapErr: () => unwrapErr
1836
- });
1837
- var ok = (value) => ({
1838
- isOk: true,
1839
- isErr: false,
1840
- value
1841
- });
1842
- var err = (value) => ({
1843
- isOk: false,
1844
- isErr: true,
1845
- value
1846
- });
1847
- function map(result, fn) {
1848
- if (result.isOk) {
1849
- const val = fn(result.value);
1850
- if (val instanceof Promise) {
1851
- return val.then((newVal) => ok(newVal));
1852
- } else {
1853
- return ok(val);
1854
- }
1855
- }
1856
- if (result.isErr) {
1857
- const value = result.value;
1858
- return err(value);
1859
- }
1860
- throw "should never get here";
1861
- }
1862
- var unwrap = (result) => {
1863
- if (result.isOk) {
1864
- return result.value;
1865
- } else {
1866
- throw result.value;
1867
- }
1868
- };
1869
- var unwrapErr = (result) => {
1870
- if (result.isErr) {
1871
- return result.value;
1872
- } else {
1873
- throw result.value;
1874
- }
1875
- };
1876
-
1877
- // src/utils/style.ts
1878
- function createStyleSheetIfNeededAndSupported(styles2) {
1879
- return void 0;
1880
- }
1881
-
1882
- // src/utils/shadow-root.ts
1883
- var globalStyleSheet;
1884
- function createShadowRoot(cmpMeta) {
1885
- var _a;
1886
- const opts = { mode: "open" };
1887
- {
1888
- opts.delegatesFocus = !!(cmpMeta.$flags$ & 16 /* shadowDelegatesFocus */);
1889
- }
1890
- const shadowRoot = this.attachShadow(opts);
1891
- if (globalStyleSheet === void 0) globalStyleSheet = (_a = createStyleSheetIfNeededAndSupported()) != null ? _a : null;
1892
- if (globalStyleSheet) {
1893
- if (supportsMutableAdoptedStyleSheets) {
1894
- shadowRoot.adoptedStyleSheets.push(globalStyleSheet);
1895
- } else {
1896
- shadowRoot.adoptedStyleSheets = [...shadowRoot.adoptedStyleSheets, globalStyleSheet];
1897
- }
1898
- }
1899
- }
1900
- var updateFallbackSlotVisibility = (elm) => {
1901
- const childNodes = internalCall(elm, "childNodes");
1902
- if (elm.tagName && elm.tagName.includes("-") && elm["s-cr"] && elm.tagName !== "SLOT-FB") {
1903
- getHostSlotNodes(childNodes, elm.tagName).forEach((slotNode) => {
1904
- if (slotNode.nodeType === 1 /* ElementNode */ && slotNode.tagName === "SLOT-FB") {
1905
- if (getSlotChildSiblings(slotNode, getSlotName(slotNode), false).length) {
1906
- slotNode.hidden = true;
1907
- } else {
1908
- slotNode.hidden = false;
1909
- }
1910
- }
1911
- });
1912
- }
1913
- let i2 = 0;
1914
- for (i2 = 0; i2 < childNodes.length; i2++) {
1915
- const childNode = childNodes[i2];
1916
- if (childNode.nodeType === 1 /* ElementNode */ && internalCall(childNode, "childNodes").length) {
1917
- updateFallbackSlotVisibility(childNode);
1918
- }
1919
- }
1920
- };
1921
- var getSlottedChildNodes = (childNodes) => {
1922
- const result = [];
1923
- for (let i2 = 0; i2 < childNodes.length; i2++) {
1924
- const slottedNode = childNodes[i2]["s-nr"] || void 0;
1925
- if (slottedNode && slottedNode.isConnected) {
1926
- result.push(slottedNode);
1927
- }
1928
- }
1929
- return result;
1930
- };
1931
- function getHostSlotNodes(childNodes, hostName, slotName) {
1932
- let i2 = 0;
1933
- let slottedNodes = [];
1934
- let childNode;
1935
- for (; i2 < childNodes.length; i2++) {
1936
- childNode = childNodes[i2];
1937
- if (childNode["s-sr"] && (!hostName || childNode["s-hn"] === hostName) && (slotName === void 0)) {
1938
- slottedNodes.push(childNode);
1939
- }
1940
- slottedNodes = [...slottedNodes, ...getHostSlotNodes(childNode.childNodes, hostName, slotName)];
1941
- }
1942
- return slottedNodes;
1943
- }
1944
- var getSlotChildSiblings = (slot, slotName, includeSlot = true) => {
1945
- const childNodes = [];
1946
- if (includeSlot && slot["s-sr"] || !slot["s-sr"]) childNodes.push(slot);
1947
- let node = slot;
1948
- while (node = node.nextSibling) {
1949
- if (getSlotName(node) === slotName && (includeSlot || !node["s-sr"])) childNodes.push(node);
1950
- }
1951
- return childNodes;
1952
- };
1953
- var isNodeLocatedInSlot = (nodeToRelocate, slotName) => {
1954
- if (nodeToRelocate.nodeType === 1 /* ElementNode */) {
1955
- if (nodeToRelocate.getAttribute("slot") === null && slotName === "") {
1956
- return true;
1957
- }
1958
- if (nodeToRelocate.getAttribute("slot") === slotName) {
1959
- return true;
1960
- }
1961
- return false;
1962
- }
1963
- if (nodeToRelocate["s-sn"] === slotName) {
1964
- return true;
1965
- }
1966
- return slotName === "";
1967
- };
1968
- var getSlotName = (node) => typeof node["s-sn"] === "string" ? node["s-sn"] : node.nodeType === 1 && node.getAttribute("slot") || void 0;
1969
- function patchSlotNode(node) {
1970
- if (node.assignedElements || node.assignedNodes || !node["s-sr"]) return;
1971
- const assignedFactory = (elementsOnly) => (function(opts) {
1972
- const toReturn = [];
1973
- const slotName = this["s-sn"];
1974
- if (opts == null ? void 0 : opts.flatten) {
1975
- console.error(`
1976
- Flattening is not supported for Stencil non-shadow slots.
1977
- You can use \`.childNodes\` to nested slot fallback content.
1978
- If you have a particular use case, please open an issue on the Stencil repo.
1979
- `);
1980
- }
1981
- const parent = this["s-cr"].parentElement;
1982
- const slottedNodes = parent.__childNodes ? parent.childNodes : getSlottedChildNodes(parent.childNodes);
1983
- slottedNodes.forEach((n) => {
1984
- if (slotName === getSlotName(n)) {
1985
- toReturn.push(n);
1986
- }
1987
- });
1988
- if (elementsOnly) {
1989
- return toReturn.filter((n) => n.nodeType === 1 /* ElementNode */);
1990
- }
1991
- return toReturn;
1992
- }).bind(node);
1993
- node.assignedElements = assignedFactory(true);
1994
- node.assignedNodes = assignedFactory(false);
1995
- }
1996
- function internalCall(node, method) {
1997
- if ("__" + method in node) {
1998
- const toReturn = node["__" + method];
1999
- if (typeof toReturn !== "function") return toReturn;
2000
- return toReturn.bind(node);
2001
- } else {
2002
- if (typeof node[method] !== "function") return node[method];
2003
- return node[method].bind(node);
2004
- }
2005
- }
2006
- var createTime = (fnName, tagName = "") => {
2007
- {
2008
- return () => {
2009
- return;
2010
- };
2011
- }
2012
- };
2013
- var uniqueTime = (key, measureText) => {
2014
- {
2015
- return () => {
2016
- return;
2017
- };
2018
- }
2019
- };
2020
- var rootAppliedStyles = /* @__PURE__ */ new WeakMap();
2021
- var registerStyle = (scopeId2, cssText, allowCS) => {
2022
- let style = styles.get(scopeId2);
2023
- if (supportsConstructableStylesheets && allowCS) {
2024
- style = style || new CSSStyleSheet();
2025
- if (typeof style === "string") {
2026
- style = cssText;
2027
- } else {
2028
- style.replaceSync(cssText);
2029
- }
2030
- } else {
2031
- style = cssText;
2032
- }
2033
- styles.set(scopeId2, style);
2034
- };
2035
- var addStyle = (styleContainerNode, cmpMeta, mode) => {
2036
- var _a, _b, _c;
2037
- const scopeId2 = getScopeId(cmpMeta, mode);
2038
- const style = styles.get(scopeId2);
2039
- if (!win.document) {
2040
- return scopeId2;
2041
- }
2042
- styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : win.document;
2043
- if (style) {
2044
- if (typeof style === "string") {
2045
- styleContainerNode = styleContainerNode.head || styleContainerNode;
2046
- let appliedStyles = rootAppliedStyles.get(styleContainerNode);
2047
- let styleElm;
2048
- if (!appliedStyles) {
2049
- rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
2050
- }
2051
- if (!appliedStyles.has(scopeId2)) {
2052
- styleElm = win.document.createElement("style");
2053
- styleElm.innerHTML = style;
2054
- const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(win.document);
2055
- if (nonce != null) {
2056
- styleElm.setAttribute("nonce", nonce);
2057
- }
2058
- if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
2059
- if (styleContainerNode.nodeName === "HEAD") {
2060
- const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
2061
- const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
2062
- styleContainerNode.insertBefore(
2063
- styleElm,
2064
- (referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
2065
- );
2066
- } else if ("host" in styleContainerNode) {
2067
- if (supportsConstructableStylesheets) {
2068
- const currentWindow = (_b = styleContainerNode.defaultView) != null ? _b : styleContainerNode.ownerDocument.defaultView;
2069
- const stylesheet = new currentWindow.CSSStyleSheet();
2070
- stylesheet.replaceSync(style);
2071
- if (supportsMutableAdoptedStyleSheets) {
2072
- styleContainerNode.adoptedStyleSheets.unshift(stylesheet);
2073
- } else {
2074
- styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
2075
- }
2076
- } else {
2077
- const existingStyleContainer = styleContainerNode.querySelector("style");
2078
- if (existingStyleContainer) {
2079
- existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
2080
- } else {
2081
- styleContainerNode.prepend(styleElm);
2082
- }
2083
- }
2084
- } else {
2085
- styleContainerNode.append(styleElm);
2086
- }
2087
- }
2088
- if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
2089
- styleContainerNode.insertBefore(styleElm, null);
2090
- }
2091
- if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
2092
- styleElm.innerHTML += SLOT_FB_CSS;
2093
- }
2094
- if (appliedStyles) {
2095
- appliedStyles.add(scopeId2);
2096
- }
2097
- }
2098
- } else {
2099
- let appliedStyles = rootAppliedStyles.get(styleContainerNode);
2100
- if (!appliedStyles) {
2101
- rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
2102
- }
2103
- if (!appliedStyles.has(scopeId2)) {
2104
- const currentWindow = (_c = styleContainerNode.defaultView) != null ? _c : styleContainerNode.ownerDocument.defaultView;
2105
- let stylesheet;
2106
- if (style.constructor === currentWindow.CSSStyleSheet) {
2107
- stylesheet = style;
2108
- } else {
2109
- stylesheet = new currentWindow.CSSStyleSheet();
2110
- for (let i2 = 0; i2 < style.cssRules.length; i2++) {
2111
- stylesheet.insertRule(style.cssRules[i2].cssText, i2);
2112
- }
2113
- }
2114
- if (supportsMutableAdoptedStyleSheets) {
2115
- styleContainerNode.adoptedStyleSheets.push(stylesheet);
2116
- } else {
2117
- styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, stylesheet];
2118
- }
2119
- appliedStyles.add(scopeId2);
2120
- }
2121
- }
2122
- }
2123
- return scopeId2;
2124
- };
2125
- var attachStyles = (hostRef) => {
2126
- const cmpMeta = hostRef.$cmpMeta$;
2127
- const elm = hostRef.$hostElement$;
2128
- const flags = cmpMeta.$flags$;
2129
- const endAttachStyles = createTime("attachStyles", cmpMeta.$tagName$);
2130
- const scopeId2 = addStyle(
2131
- elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
2132
- cmpMeta,
2133
- hostRef.$modeName$
2134
- );
2135
- if (flags & 10 /* needsScopedEncapsulation */) {
2136
- elm["s-sc"] = scopeId2;
2137
- elm.classList.add(scopeId2 + "-h");
2138
- }
2139
- endAttachStyles();
2140
- };
2141
- var getScopeId = (cmp, mode) => "sc-" + (mode && cmp.$flags$ & 32 /* hasMode */ ? cmp.$tagName$ + "-" + mode : cmp.$tagName$);
2142
- var h = (nodeName, vnodeData, ...children) => {
2143
- if (typeof nodeName === "string") {
2144
- nodeName = transformTag(nodeName);
2145
- }
2146
- let child = null;
2147
- let key = null;
2148
- let slotName = null;
2149
- let simple = false;
2150
- let lastSimple = false;
2151
- const vNodeChildren = [];
2152
- const walk = (c) => {
2153
- for (let i2 = 0; i2 < c.length; i2++) {
2154
- child = c[i2];
2155
- if (Array.isArray(child)) {
2156
- walk(child);
2157
- } else if (child != null && typeof child !== "boolean") {
2158
- if (simple = typeof nodeName !== "function" && !isComplexType(child)) {
2159
- child = String(child);
2160
- }
2161
- if (simple && lastSimple) {
2162
- vNodeChildren[vNodeChildren.length - 1].$text$ += child;
2163
- } else {
2164
- vNodeChildren.push(simple ? newVNode(null, child) : child);
2165
- }
2166
- lastSimple = simple;
2167
- }
2168
- }
2169
- };
2170
- walk(children);
2171
- if (vnodeData) {
2172
- if (vnodeData.key) {
2173
- key = vnodeData.key;
2174
- }
2175
- if (vnodeData.name) {
2176
- slotName = vnodeData.name;
2177
- }
2178
- {
2179
- const classData = vnodeData.className || vnodeData.class;
2180
- if (classData) {
2181
- vnodeData.class = typeof classData !== "object" ? classData : Object.keys(classData).filter((k) => classData[k]).join(" ");
2182
- }
2183
- }
2184
- }
2185
- if (typeof nodeName === "function") {
2186
- return nodeName(
2187
- vnodeData === null ? {} : vnodeData,
2188
- vNodeChildren,
2189
- vdomFnUtils
2190
- );
2191
- }
2192
- const vnode = newVNode(nodeName, null);
2193
- vnode.$attrs$ = vnodeData;
2194
- if (vNodeChildren.length > 0) {
2195
- vnode.$children$ = vNodeChildren;
2196
- }
2197
- {
2198
- vnode.$key$ = key;
2199
- }
2200
- {
2201
- vnode.$name$ = slotName;
2202
- }
2203
- return vnode;
2204
- };
2205
- var newVNode = (tag, text) => {
2206
- const vnode = {
2207
- $flags$: 0,
2208
- $tag$: tag,
2209
- $text$: text,
2210
- $elm$: null,
2211
- $children$: null
2212
- };
2213
- {
2214
- vnode.$attrs$ = null;
2215
- }
2216
- {
2217
- vnode.$key$ = null;
2218
- }
2219
- {
2220
- vnode.$name$ = null;
2221
- }
2222
- return vnode;
2223
- };
2224
- var Host = {};
2225
- var isHost = (node) => node && node.$tag$ === Host;
2226
- var vdomFnUtils = {
2227
- forEach: (children, cb) => children.map(convertToPublic).forEach(cb),
2228
- map: (children, cb) => children.map(convertToPublic).map(cb).map(convertToPrivate)
2229
- };
2230
- var convertToPublic = (node) => ({
2231
- vattrs: node.$attrs$,
2232
- vchildren: node.$children$,
2233
- vkey: node.$key$,
2234
- vname: node.$name$,
2235
- vtag: node.$tag$,
2236
- vtext: node.$text$
2237
- });
2238
- var convertToPrivate = (node) => {
2239
- if (typeof node.vtag === "function") {
2240
- const vnodeData = { ...node.vattrs };
2241
- if (node.vkey) {
2242
- vnodeData.key = node.vkey;
2243
- }
2244
- if (node.vname) {
2245
- vnodeData.name = node.vname;
2246
- }
2247
- return h(node.vtag, vnodeData, ...node.vchildren || []);
2248
- }
2249
- const vnode = newVNode(node.vtag, node.vtext);
2250
- vnode.$attrs$ = node.vattrs;
2251
- vnode.$children$ = node.vchildren;
2252
- vnode.$key$ = node.vkey;
2253
- vnode.$name$ = node.vname;
2254
- return vnode;
2255
- };
2256
- var createSupportsRuleRe = (selector) => {
2257
- const safeSelector2 = escapeRegExpSpecialCharacters(selector);
2258
- return new RegExp(
2259
- // First capture group: match any context before the selector that's not inside @supports selector()
2260
- // Using negative lookahead to avoid matching inside @supports selector(...) condition
2261
- `(^|[^@]|@(?!supports\\s+selector\\s*\\([^{]*?${safeSelector2}))(${safeSelector2}\\b)`,
2262
- "g"
2263
- );
2264
- };
2265
- createSupportsRuleRe("::slotted");
2266
- createSupportsRuleRe(":host");
2267
- createSupportsRuleRe(":host-context");
2268
-
2269
- // src/runtime/mode.ts
2270
- var computeMode = (elm) => modeResolutionChain.map((h2) => h2(elm)).find((m) => !!m);
2271
- var setMode = (handler) => modeResolutionChain.push(handler);
2272
- var getMode = (ref) => {
2273
- var _a;
2274
- return (_a = getHostRef(ref)) == null ? void 0 : _a.$modeName$;
2275
- };
2276
- var parsePropertyValue = (propValue, propType, isFormAssociated) => {
2277
- if (propValue != null && !isComplexType(propValue)) {
2278
- if (propType & 4 /* Boolean */) {
2279
- {
2280
- return propValue === "false" ? false : propValue === "" || !!propValue;
2281
- }
2282
- }
2283
- if (propType & 2 /* Number */) {
2284
- return typeof propValue === "string" ? parseFloat(propValue) : typeof propValue === "number" ? propValue : NaN;
2285
- }
2286
- if (propType & 1 /* String */) {
2287
- return String(propValue);
2288
- }
2289
- return propValue;
2290
- }
2291
- return propValue;
2292
- };
2293
- var getElement = (ref) => {
2294
- var _a;
2295
- return (_a = getHostRef(ref)) == null ? void 0 : _a.$hostElement$ ;
2296
- };
2297
-
2298
- // src/runtime/event-emitter.ts
2299
- var createEvent = (ref, name, flags) => {
2300
- const elm = getElement(ref);
2301
- return {
2302
- emit: (detail) => {
2303
- return emitEvent(elm, name, {
2304
- bubbles: !!(flags & 4 /* Bubbles */),
2305
- composed: !!(flags & 2 /* Composed */),
2306
- cancelable: !!(flags & 1 /* Cancellable */),
2307
- detail
2308
- });
2309
- }
2310
- };
2311
- };
2312
- var emitEvent = (elm, name, opts) => {
2313
- const ev = plt.ce(name, opts);
2314
- elm.dispatchEvent(ev);
2315
- return ev;
2316
- };
2317
- var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
2318
- if (oldValue === newValue) {
2319
- return;
2320
- }
2321
- let isProp = isMemberInElement(elm, memberName);
2322
- let ln = memberName.toLowerCase();
2323
- if (memberName === "class") {
2324
- const classList = elm.classList;
2325
- const oldClasses = parseClassList(oldValue);
2326
- let newClasses = parseClassList(newValue);
2327
- {
2328
- classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
2329
- classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
2330
- }
2331
- } else if (memberName === "style") {
2332
- {
2333
- for (const prop in oldValue) {
2334
- if (!newValue || newValue[prop] == null) {
2335
- if (prop.includes("-")) {
2336
- elm.style.removeProperty(prop);
2337
- } else {
2338
- elm.style[prop] = "";
2339
- }
2340
- }
2341
- }
2342
- }
2343
- for (const prop in newValue) {
2344
- if (!oldValue || newValue[prop] !== oldValue[prop]) {
2345
- if (prop.includes("-")) {
2346
- elm.style.setProperty(prop, newValue[prop]);
2347
- } else {
2348
- elm.style[prop] = newValue[prop];
2349
- }
2350
- }
2351
- }
2352
- } else if (memberName === "key") ; else if (memberName === "ref") {
2353
- if (newValue) {
2354
- newValue(elm);
2355
- }
2356
- } else if ((!isProp ) && memberName[0] === "o" && memberName[1] === "n") {
2357
- if (memberName[2] === "-") {
2358
- memberName = memberName.slice(3);
2359
- } else if (isMemberInElement(win, ln)) {
2360
- memberName = ln.slice(2);
2361
- } else {
2362
- memberName = ln[2] + memberName.slice(3);
2363
- }
2364
- if (oldValue || newValue) {
2365
- const capture = memberName.endsWith(CAPTURE_EVENT_SUFFIX);
2366
- memberName = memberName.replace(CAPTURE_EVENT_REGEX, "");
2367
- if (oldValue) {
2368
- plt.rel(elm, memberName, oldValue, capture);
2369
- }
2370
- if (newValue) {
2371
- plt.ael(elm, memberName, newValue, capture);
2372
- }
2373
- }
2374
- } else {
2375
- const isComplex = isComplexType(newValue);
2376
- if ((isProp || isComplex && newValue !== null) && !isSvg) {
2377
- try {
2378
- if (!elm.tagName.includes("-")) {
2379
- const n = newValue == null ? "" : newValue;
2380
- if (memberName === "list") {
2381
- isProp = false;
2382
- } else if (oldValue == null || elm[memberName] != n) {
2383
- if (typeof elm.__lookupSetter__(memberName) === "function") {
2384
- elm[memberName] = n;
2385
- } else {
2386
- elm.setAttribute(memberName, n);
2387
- }
2388
- }
2389
- } else if (elm[memberName] !== newValue) {
2390
- elm[memberName] = newValue;
2391
- }
2392
- } catch (e) {
2393
- }
2394
- }
2395
- let xlink = false;
2396
- {
2397
- if (ln !== (ln = ln.replace(/^xlink\:?/, ""))) {
2398
- memberName = ln;
2399
- xlink = true;
2400
- }
2401
- }
2402
- if (newValue == null || newValue === false) {
2403
- if (newValue !== false || elm.getAttribute(memberName) === "") {
2404
- if (xlink) {
2405
- elm.removeAttributeNS(XLINK_NS, memberName);
2406
- } else {
2407
- elm.removeAttribute(memberName);
2408
- }
2409
- }
2410
- } else if ((!isProp || flags & 4 /* isHost */ || isSvg) && !isComplex && elm.nodeType === 1 /* ElementNode */) {
2411
- newValue = newValue === true ? "" : newValue;
2412
- if (xlink) {
2413
- elm.setAttributeNS(XLINK_NS, memberName, newValue);
2414
- } else {
2415
- elm.setAttribute(memberName, newValue);
2416
- }
2417
- }
2418
- }
2419
- };
2420
- var parseClassListRegex = /\s/;
2421
- var parseClassList = (value) => {
2422
- if (typeof value === "object" && value && "baseVal" in value) {
2423
- value = value.baseVal;
2424
- }
2425
- if (!value || typeof value !== "string") {
2426
- return [];
2427
- }
2428
- return value.split(parseClassListRegex);
2429
- };
2430
- var CAPTURE_EVENT_SUFFIX = "Capture";
2431
- var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
2432
-
2433
- // src/runtime/vdom/update-element.ts
2434
- var updateElement = (oldVnode, newVnode, isSvgMode2, isInitialRender) => {
2435
- const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
2436
- const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || {};
2437
- const newVnodeAttrs = newVnode.$attrs$ || {};
2438
- {
2439
- for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
2440
- if (!(memberName in newVnodeAttrs)) {
2441
- setAccessor(
2442
- elm,
2443
- memberName,
2444
- oldVnodeAttrs[memberName],
2445
- void 0,
2446
- isSvgMode2,
2447
- newVnode.$flags$);
2448
- }
2449
- }
2450
- }
2451
- for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
2452
- setAccessor(
2453
- elm,
2454
- memberName,
2455
- oldVnodeAttrs[memberName],
2456
- newVnodeAttrs[memberName],
2457
- isSvgMode2,
2458
- newVnode.$flags$);
2459
- }
2460
- };
2461
- function sortedAttrNames(attrNames) {
2462
- return attrNames.includes("ref") ? (
2463
- // we need to sort these to ensure that `'ref'` is the last attr
2464
- [...attrNames.filter((attr) => attr !== "ref"), "ref"]
2465
- ) : (
2466
- // no need to sort, return the original array
2467
- attrNames
2468
- );
2469
- }
2470
-
2471
- // src/runtime/vdom/vdom-render.ts
2472
- var scopeId;
2473
- var contentRef;
2474
- var hostTagName;
2475
- var useNativeShadowDom = false;
2476
- var checkSlotFallbackVisibility = false;
2477
- var checkSlotRelocate = false;
2478
- var isSvgMode = false;
2479
- var createElm = (oldParentVNode, newParentVNode, childIndex) => {
2480
- var _a;
2481
- const newVNode2 = newParentVNode.$children$[childIndex];
2482
- let i2 = 0;
2483
- let elm;
2484
- let childNode;
2485
- let oldVNode;
2486
- if (!useNativeShadowDom) {
2487
- checkSlotRelocate = true;
2488
- if (newVNode2.$tag$ === "slot") {
2489
- newVNode2.$flags$ |= newVNode2.$children$ ? (
2490
- // slot element has fallback content
2491
- // still create an element that "mocks" the slot element
2492
- 2 /* isSlotFallback */
2493
- ) : (
2494
- // slot element does not have fallback content
2495
- // create an html comment we'll use to always reference
2496
- // where actual slot content should sit next to
2497
- 1 /* isSlotReference */
2498
- );
2499
- }
2500
- }
2501
- if (newVNode2.$text$ !== null) {
2502
- elm = newVNode2.$elm$ = win.document.createTextNode(newVNode2.$text$);
2503
- } else if (newVNode2.$flags$ & 1 /* isSlotReference */) {
2504
- elm = newVNode2.$elm$ = win.document.createTextNode("");
2505
- {
2506
- updateElement(null, newVNode2, isSvgMode);
2507
- }
2508
- } else {
2509
- if (!isSvgMode) {
2510
- isSvgMode = newVNode2.$tag$ === "svg";
2511
- }
2512
- if (!win.document) {
2513
- throw new Error(
2514
- "You are trying to render a Stencil component in an environment that doesn't support the DOM. Make sure to populate the [`window`](https://developer.mozilla.org/en-US/docs/Web/API/Window/window) object before rendering a component."
2515
- );
2516
- }
2517
- elm = newVNode2.$elm$ = win.document.createElementNS(
2518
- isSvgMode ? SVG_NS : HTML_NS,
2519
- !useNativeShadowDom && BUILD.slotRelocation && newVNode2.$flags$ & 2 /* isSlotFallback */ ? "slot-fb" : newVNode2.$tag$
2520
- ) ;
2521
- if (isSvgMode && newVNode2.$tag$ === "foreignObject") {
2522
- isSvgMode = false;
2523
- }
2524
- {
2525
- updateElement(null, newVNode2, isSvgMode);
2526
- }
2527
- if (isDef(scopeId) && elm["s-si"] !== scopeId) {
2528
- elm.classList.add(elm["s-si"] = scopeId);
2529
- }
2530
- if (newVNode2.$children$) {
2531
- const appendTarget = newVNode2.$tag$ === "template" ? elm.content : elm;
2532
- for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
2533
- childNode = createElm(oldParentVNode, newVNode2, i2);
2534
- if (childNode) {
2535
- appendTarget.appendChild(childNode);
2536
- }
2537
- }
2538
- }
2539
- {
2540
- if (newVNode2.$tag$ === "svg") {
2541
- isSvgMode = false;
2542
- } else if (elm.tagName === "foreignObject") {
2543
- isSvgMode = true;
2544
- }
2545
- }
2546
- }
2547
- elm["s-hn"] = hostTagName;
2548
- {
2549
- if (newVNode2.$flags$ & (2 /* isSlotFallback */ | 1 /* isSlotReference */)) {
2550
- elm["s-sr"] = true;
2551
- elm["s-cr"] = contentRef;
2552
- elm["s-sn"] = newVNode2.$name$ || "";
2553
- elm["s-rf"] = (_a = newVNode2.$attrs$) == null ? void 0 : _a.ref;
2554
- patchSlotNode(elm);
2555
- oldVNode = oldParentVNode && oldParentVNode.$children$ && oldParentVNode.$children$[childIndex];
2556
- if (oldVNode && oldVNode.$tag$ === newVNode2.$tag$ && oldParentVNode.$elm$) {
2557
- {
2558
- putBackInOriginalLocation(oldParentVNode.$elm$, false);
2559
- }
2560
- }
2561
- {
2562
- addRemoveSlotScopedClass(contentRef, elm, newParentVNode.$elm$, oldParentVNode == null ? void 0 : oldParentVNode.$elm$);
2563
- }
2564
- }
2565
- }
2566
- return elm;
2567
- };
2568
- var putBackInOriginalLocation = (parentElm, recursive) => {
2569
- plt.$flags$ |= 1 /* isTmpDisconnected */;
2570
- const oldSlotChildNodes = Array.from(parentElm.__childNodes || parentElm.childNodes);
2571
- for (let i2 = oldSlotChildNodes.length - 1; i2 >= 0; i2--) {
2572
- const childNode = oldSlotChildNodes[i2];
2573
- if (childNode["s-hn"] !== hostTagName && childNode["s-ol"]) {
2574
- insertBefore(referenceNode(childNode).parentNode, childNode, referenceNode(childNode));
2575
- childNode["s-ol"].remove();
2576
- childNode["s-ol"] = void 0;
2577
- childNode["s-sh"] = void 0;
2578
- checkSlotRelocate = true;
2579
- }
2580
- if (recursive) {
2581
- putBackInOriginalLocation(childNode, recursive);
2582
- }
2583
- }
2584
- plt.$flags$ &= -2 /* isTmpDisconnected */;
2585
- };
2586
- var addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) => {
2587
- let containerElm = parentElm["s-cr"] && parentElm["s-cr"].parentNode || parentElm;
2588
- let childNode;
2589
- if (containerElm.shadowRoot && containerElm.tagName === hostTagName) {
2590
- containerElm = containerElm.shadowRoot;
2591
- }
2592
- if (parentVNode.$tag$ === "template") {
2593
- containerElm = containerElm.content;
2594
- }
2595
- for (; startIdx <= endIdx; ++startIdx) {
2596
- if (vnodes[startIdx]) {
2597
- childNode = createElm(null, parentVNode, startIdx);
2598
- if (childNode) {
2599
- vnodes[startIdx].$elm$ = childNode;
2600
- insertBefore(containerElm, childNode, referenceNode(before) );
2601
- }
2602
- }
2603
- }
2604
- };
2605
- var removeVnodes = (vnodes, startIdx, endIdx) => {
2606
- for (let index = startIdx; index <= endIdx; ++index) {
2607
- const vnode = vnodes[index];
2608
- if (vnode) {
2609
- const elm = vnode.$elm$;
2610
- nullifyVNodeRefs(vnode);
2611
- if (elm) {
2612
- {
2613
- checkSlotFallbackVisibility = true;
2614
- if (elm["s-ol"]) {
2615
- elm["s-ol"].remove();
2616
- } else {
2617
- putBackInOriginalLocation(elm, true);
2618
- }
2619
- }
2620
- elm.remove();
2621
- }
2622
- }
2623
- }
2624
- };
2625
- var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = false) => {
2626
- let oldStartIdx = 0;
2627
- let newStartIdx = 0;
2628
- let idxInOld = 0;
2629
- let i2 = 0;
2630
- let oldEndIdx = oldCh.length - 1;
2631
- let oldStartVnode = oldCh[0];
2632
- let oldEndVnode = oldCh[oldEndIdx];
2633
- let newEndIdx = newCh.length - 1;
2634
- let newStartVnode = newCh[0];
2635
- let newEndVnode = newCh[newEndIdx];
2636
- let node;
2637
- let elmToMove;
2638
- const containerElm = newVNode2.$tag$ === "template" ? parentElm.content : parentElm;
2639
- while (oldStartIdx <= oldEndIdx && newStartIdx <= newEndIdx) {
2640
- if (oldStartVnode == null) {
2641
- oldStartVnode = oldCh[++oldStartIdx];
2642
- } else if (oldEndVnode == null) {
2643
- oldEndVnode = oldCh[--oldEndIdx];
2644
- } else if (newStartVnode == null) {
2645
- newStartVnode = newCh[++newStartIdx];
2646
- } else if (newEndVnode == null) {
2647
- newEndVnode = newCh[--newEndIdx];
2648
- } else if (isSameVnode(oldStartVnode, newStartVnode, isInitialRender)) {
2649
- patch(oldStartVnode, newStartVnode, isInitialRender);
2650
- oldStartVnode = oldCh[++oldStartIdx];
2651
- newStartVnode = newCh[++newStartIdx];
2652
- } else if (isSameVnode(oldEndVnode, newEndVnode, isInitialRender)) {
2653
- patch(oldEndVnode, newEndVnode, isInitialRender);
2654
- oldEndVnode = oldCh[--oldEndIdx];
2655
- newEndVnode = newCh[--newEndIdx];
2656
- } else if (isSameVnode(oldStartVnode, newEndVnode, isInitialRender)) {
2657
- if ((oldStartVnode.$tag$ === "slot" || newEndVnode.$tag$ === "slot")) {
2658
- putBackInOriginalLocation(oldStartVnode.$elm$.parentNode, false);
2659
- }
2660
- patch(oldStartVnode, newEndVnode, isInitialRender);
2661
- insertBefore(containerElm, oldStartVnode.$elm$, oldEndVnode.$elm$.nextSibling);
2662
- oldStartVnode = oldCh[++oldStartIdx];
2663
- newEndVnode = newCh[--newEndIdx];
2664
- } else if (isSameVnode(oldEndVnode, newStartVnode, isInitialRender)) {
2665
- if ((oldStartVnode.$tag$ === "slot" || newEndVnode.$tag$ === "slot")) {
2666
- putBackInOriginalLocation(oldEndVnode.$elm$.parentNode, false);
2667
- }
2668
- patch(oldEndVnode, newStartVnode, isInitialRender);
2669
- insertBefore(containerElm, oldEndVnode.$elm$, oldStartVnode.$elm$);
2670
- oldEndVnode = oldCh[--oldEndIdx];
2671
- newStartVnode = newCh[++newStartIdx];
2672
- } else {
2673
- idxInOld = -1;
2674
- {
2675
- for (i2 = oldStartIdx; i2 <= oldEndIdx; ++i2) {
2676
- if (oldCh[i2] && oldCh[i2].$key$ !== null && oldCh[i2].$key$ === newStartVnode.$key$) {
2677
- idxInOld = i2;
2678
- break;
2679
- }
2680
- }
2681
- }
2682
- if (idxInOld >= 0) {
2683
- elmToMove = oldCh[idxInOld];
2684
- if (elmToMove.$tag$ !== newStartVnode.$tag$) {
2685
- node = createElm(oldCh && oldCh[newStartIdx], newVNode2, idxInOld);
2686
- } else {
2687
- patch(elmToMove, newStartVnode, isInitialRender);
2688
- oldCh[idxInOld] = void 0;
2689
- node = elmToMove.$elm$;
2690
- }
2691
- newStartVnode = newCh[++newStartIdx];
2692
- } else {
2693
- node = createElm(oldCh && oldCh[newStartIdx], newVNode2, newStartIdx);
2694
- newStartVnode = newCh[++newStartIdx];
2695
- }
2696
- if (node) {
2697
- {
2698
- insertBefore(
2699
- referenceNode(oldStartVnode.$elm$).parentNode,
2700
- node,
2701
- referenceNode(oldStartVnode.$elm$)
2702
- );
2703
- }
2704
- }
2705
- }
2706
- }
2707
- if (oldStartIdx > oldEndIdx) {
2708
- addVnodes(
2709
- parentElm,
2710
- newCh[newEndIdx + 1] == null ? null : newCh[newEndIdx + 1].$elm$,
2711
- newVNode2,
2712
- newCh,
2713
- newStartIdx,
2714
- newEndIdx
2715
- );
2716
- } else if (newStartIdx > newEndIdx) {
2717
- removeVnodes(oldCh, oldStartIdx, oldEndIdx);
2718
- }
2719
- };
2720
- var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
2721
- if (leftVNode.$tag$ === rightVNode.$tag$) {
2722
- if (leftVNode.$tag$ === "slot") {
2723
- return leftVNode.$name$ === rightVNode.$name$;
2724
- }
2725
- if (!isInitialRender) {
2726
- return leftVNode.$key$ === rightVNode.$key$;
2727
- }
2728
- if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
2729
- leftVNode.$key$ = rightVNode.$key$;
2730
- }
2731
- return true;
2732
- }
2733
- return false;
2734
- };
2735
- var referenceNode = (node) => node && node["s-ol"] || node;
2736
- var patch = (oldVNode, newVNode2, isInitialRender = false) => {
2737
- const elm = newVNode2.$elm$ = oldVNode.$elm$;
2738
- const oldChildren = oldVNode.$children$;
2739
- const newChildren = newVNode2.$children$;
2740
- const tag = newVNode2.$tag$;
2741
- const text = newVNode2.$text$;
2742
- let defaultHolder;
2743
- if (text === null) {
2744
- {
2745
- isSvgMode = tag === "svg" ? true : tag === "foreignObject" ? false : isSvgMode;
2746
- }
2747
- {
2748
- updateElement(oldVNode, newVNode2, isSvgMode);
2749
- }
2750
- if (oldChildren !== null && newChildren !== null) {
2751
- updateChildren(elm, oldChildren, newVNode2, newChildren, isInitialRender);
2752
- } else if (newChildren !== null) {
2753
- if (oldVNode.$text$ !== null) {
2754
- elm.textContent = "";
2755
- }
2756
- addVnodes(elm, null, newVNode2, newChildren, 0, newChildren.length - 1);
2757
- } else if (
2758
- // don't do this on initial render as it can cause non-hydrated content to be removed
2759
- !isInitialRender && BUILD.updatable && oldChildren !== null
2760
- ) {
2761
- removeVnodes(oldChildren, 0, oldChildren.length - 1);
2762
- } else ;
2763
- if (isSvgMode && tag === "svg") {
2764
- isSvgMode = false;
2765
- }
2766
- } else if ((defaultHolder = elm["s-cr"])) {
2767
- defaultHolder.parentNode.textContent = text;
2768
- } else if (oldVNode.$text$ !== text) {
2769
- elm.data = text;
2770
- }
2771
- };
2772
- var relocateNodes = [];
2773
- var markSlotContentForRelocation = (elm) => {
2774
- let node;
2775
- let hostContentNodes;
2776
- let j;
2777
- const children = elm.__childNodes || elm.childNodes;
2778
- for (const childNode of children) {
2779
- if (childNode["s-sr"] && (node = childNode["s-cr"]) && node.parentNode) {
2780
- hostContentNodes = node.parentNode.__childNodes || node.parentNode.childNodes;
2781
- const slotName = childNode["s-sn"];
2782
- for (j = hostContentNodes.length - 1; j >= 0; j--) {
2783
- node = hostContentNodes[j];
2784
- if (!node["s-cn"] && !node["s-nr"] && node["s-hn"] !== childNode["s-hn"] && (true)) {
2785
- if (isNodeLocatedInSlot(node, slotName)) {
2786
- let relocateNodeData = relocateNodes.find((r) => r.$nodeToRelocate$ === node);
2787
- checkSlotFallbackVisibility = true;
2788
- node["s-sn"] = node["s-sn"] || slotName;
2789
- if (relocateNodeData) {
2790
- relocateNodeData.$nodeToRelocate$["s-sh"] = childNode["s-hn"];
2791
- relocateNodeData.$slotRefNode$ = childNode;
2792
- } else {
2793
- node["s-sh"] = childNode["s-hn"];
2794
- relocateNodes.push({
2795
- $slotRefNode$: childNode,
2796
- $nodeToRelocate$: node
2797
- });
2798
- }
2799
- if (node["s-sr"]) {
2800
- relocateNodes.map((relocateNode) => {
2801
- if (isNodeLocatedInSlot(relocateNode.$nodeToRelocate$, node["s-sn"])) {
2802
- relocateNodeData = relocateNodes.find((r) => r.$nodeToRelocate$ === node);
2803
- if (relocateNodeData && !relocateNode.$slotRefNode$) {
2804
- relocateNode.$slotRefNode$ = relocateNodeData.$slotRefNode$;
2805
- }
2806
- }
2807
- });
2808
- }
2809
- } else if (!relocateNodes.some((r) => r.$nodeToRelocate$ === node)) {
2810
- relocateNodes.push({
2811
- $nodeToRelocate$: node
2812
- });
2813
- }
2814
- }
2815
- }
2816
- }
2817
- if (childNode.nodeType === 1 /* ElementNode */) {
2818
- markSlotContentForRelocation(childNode);
2819
- }
2820
- }
2821
- };
2822
- var nullifyVNodeRefs = (vNode) => {
2823
- {
2824
- vNode.$attrs$ && vNode.$attrs$.ref && vNode.$attrs$.ref(null);
2825
- vNode.$children$ && vNode.$children$.map(nullifyVNodeRefs);
2826
- }
2827
- };
2828
- var insertBefore = (parent, newNode, reference) => {
2829
- if (typeof newNode["s-sn"] === "string" && !!newNode["s-sr"] && !!newNode["s-cr"]) {
2830
- addRemoveSlotScopedClass(newNode["s-cr"], newNode, parent, newNode.parentElement);
2831
- }
2832
- {
2833
- return parent == null ? void 0 : parent.insertBefore(newNode, reference);
2834
- }
2835
- };
2836
- function addRemoveSlotScopedClass(reference, slotNode, newParent, oldParent) {
2837
- var _a, _b;
2838
- let scopeId2;
2839
- if (reference && typeof slotNode["s-sn"] === "string" && !!slotNode["s-sr"] && reference.parentNode && reference.parentNode["s-sc"] && (scopeId2 = slotNode["s-si"] || reference.parentNode["s-sc"])) {
2840
- const scopeName = slotNode["s-sn"];
2841
- const hostName = slotNode["s-hn"];
2842
- (_a = newParent.classList) == null ? void 0 : _a.add(scopeId2 + "-s");
2843
- if (oldParent && ((_b = oldParent.classList) == null ? void 0 : _b.contains(scopeId2 + "-s"))) {
2844
- let child = (oldParent.__childNodes || oldParent.childNodes)[0];
2845
- let found = false;
2846
- while (child) {
2847
- if (child["s-sn"] !== scopeName && child["s-hn"] === hostName && !!child["s-sr"]) {
2848
- found = true;
2849
- break;
2850
- }
2851
- child = child.nextSibling;
2852
- }
2853
- if (!found) oldParent.classList.remove(scopeId2 + "-s");
2854
- }
2855
- }
2856
- }
2857
- var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
2858
- var _a, _b, _c, _d;
2859
- const hostElm = hostRef.$hostElement$;
2860
- const cmpMeta = hostRef.$cmpMeta$;
2861
- const oldVNode = hostRef.$vnode$ || newVNode(null, null);
2862
- const isHostElement = isHost(renderFnResults);
2863
- const rootVnode = isHostElement ? renderFnResults : h(null, null, renderFnResults);
2864
- hostTagName = hostElm.tagName;
2865
- if (cmpMeta.$attrsToReflect$) {
2866
- rootVnode.$attrs$ = rootVnode.$attrs$ || {};
2867
- cmpMeta.$attrsToReflect$.forEach(([propName, attribute]) => {
2868
- {
2869
- rootVnode.$attrs$[attribute] = hostElm[propName];
2870
- }
2871
- });
2872
- }
2873
- if (isInitialLoad && rootVnode.$attrs$) {
2874
- for (const key of Object.keys(rootVnode.$attrs$)) {
2875
- if (hostElm.hasAttribute(key) && !["key", "ref", "style", "class"].includes(key)) {
2876
- rootVnode.$attrs$[key] = hostElm[key];
2877
- }
2878
- }
2879
- }
2880
- rootVnode.$tag$ = null;
2881
- rootVnode.$flags$ |= 4 /* isHost */;
2882
- hostRef.$vnode$ = rootVnode;
2883
- rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
2884
- {
2885
- scopeId = hostElm["s-sc"];
2886
- }
2887
- useNativeShadowDom = !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) && !(cmpMeta.$flags$ & 128 /* shadowNeedsScopedCss */);
2888
- {
2889
- contentRef = hostElm["s-cr"];
2890
- checkSlotFallbackVisibility = false;
2891
- }
2892
- patch(oldVNode, rootVnode, isInitialLoad);
2893
- {
2894
- plt.$flags$ |= 1 /* isTmpDisconnected */;
2895
- if (checkSlotRelocate) {
2896
- markSlotContentForRelocation(rootVnode.$elm$);
2897
- for (const relocateData of relocateNodes) {
2898
- const nodeToRelocate = relocateData.$nodeToRelocate$;
2899
- if (!nodeToRelocate["s-ol"] && win.document) {
2900
- const orgLocationNode = win.document.createTextNode("");
2901
- orgLocationNode["s-nr"] = nodeToRelocate;
2902
- insertBefore(nodeToRelocate.parentNode, nodeToRelocate["s-ol"] = orgLocationNode, nodeToRelocate);
2903
- }
2904
- }
2905
- for (const relocateData of relocateNodes) {
2906
- const nodeToRelocate = relocateData.$nodeToRelocate$;
2907
- const slotRefNode = relocateData.$slotRefNode$;
2908
- if (nodeToRelocate.nodeType === 1 /* ElementNode */ && isInitialLoad) {
2909
- nodeToRelocate["s-ih"] = (_a = nodeToRelocate.hidden) != null ? _a : false;
2910
- }
2911
- if (slotRefNode) {
2912
- const parentNodeRef = slotRefNode.parentNode;
2913
- let insertBeforeNode = slotRefNode.nextSibling;
2914
- {
2915
- let orgLocationNode = (_b = nodeToRelocate["s-ol"]) == null ? void 0 : _b.previousSibling;
2916
- while (orgLocationNode) {
2917
- let refNode = (_c = orgLocationNode["s-nr"]) != null ? _c : null;
2918
- if (refNode && refNode["s-sn"] === nodeToRelocate["s-sn"] && parentNodeRef === (refNode.__parentNode || refNode.parentNode)) {
2919
- refNode = refNode.nextSibling;
2920
- while (refNode === nodeToRelocate || (refNode == null ? void 0 : refNode["s-sr"])) {
2921
- refNode = refNode == null ? void 0 : refNode.nextSibling;
2922
- }
2923
- if (!refNode || !refNode["s-nr"]) {
2924
- insertBeforeNode = refNode;
2925
- break;
2926
- }
2927
- }
2928
- orgLocationNode = orgLocationNode.previousSibling;
2929
- }
2930
- }
2931
- const parent = nodeToRelocate.__parentNode || nodeToRelocate.parentNode;
2932
- const nextSibling = nodeToRelocate.__nextSibling || nodeToRelocate.nextSibling;
2933
- if (!insertBeforeNode && parentNodeRef !== parent || nextSibling !== insertBeforeNode) {
2934
- if (nodeToRelocate !== insertBeforeNode) {
2935
- if (!nodeToRelocate["s-hn"] && nodeToRelocate["s-ol"]) {
2936
- nodeToRelocate["s-hn"] = nodeToRelocate["s-ol"].parentNode.nodeName;
2937
- }
2938
- insertBefore(parentNodeRef, nodeToRelocate, insertBeforeNode);
2939
- if (nodeToRelocate.nodeType === 1 /* ElementNode */ && nodeToRelocate.tagName !== "SLOT-FB") {
2940
- nodeToRelocate.hidden = (_d = nodeToRelocate["s-ih"]) != null ? _d : false;
2941
- }
2942
- }
2943
- }
2944
- nodeToRelocate && typeof slotRefNode["s-rf"] === "function" && slotRefNode["s-rf"](slotRefNode);
2945
- } else if (nodeToRelocate.nodeType === 1 /* ElementNode */) {
2946
- nodeToRelocate.hidden = true;
2947
- }
2948
- }
2949
- }
2950
- if (checkSlotFallbackVisibility) {
2951
- updateFallbackSlotVisibility(rootVnode.$elm$);
2952
- }
2953
- plt.$flags$ &= -2 /* isTmpDisconnected */;
2954
- relocateNodes.length = 0;
2955
- }
2956
- contentRef = void 0;
2957
- };
2958
-
2959
- // src/runtime/update-component.ts
2960
- var attachToAncestor = (hostRef, ancestorComponent) => {
2961
- if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
2962
- const index = ancestorComponent["s-p"].push(
2963
- new Promise(
2964
- (r) => hostRef.$onRenderResolve$ = () => {
2965
- ancestorComponent["s-p"].splice(index - 1, 1);
2966
- r();
2967
- }
2968
- )
2969
- );
2970
- }
2971
- };
2972
- var scheduleUpdate = (hostRef, isInitialLoad) => {
2973
- {
2974
- hostRef.$flags$ |= 16 /* isQueuedForUpdate */;
2975
- }
2976
- if (hostRef.$flags$ & 4 /* isWaitingForChildren */) {
2977
- hostRef.$flags$ |= 512 /* needsRerender */;
2978
- return;
2979
- }
2980
- attachToAncestor(hostRef, hostRef.$ancestorComponent$);
2981
- const dispatch = () => dispatchHooks(hostRef, isInitialLoad);
2982
- if (isInitialLoad) {
2983
- queueMicrotask(() => {
2984
- dispatch();
2985
- });
2986
- return;
2987
- }
2988
- return writeTask(dispatch) ;
2989
- };
2990
- var dispatchHooks = (hostRef, isInitialLoad) => {
2991
- const elm = hostRef.$hostElement$;
2992
- const endSchedule = createTime("scheduleUpdate", hostRef.$cmpMeta$.$tagName$);
2993
- const instance = hostRef.$lazyInstance$ ;
2994
- if (!instance) {
2995
- throw new Error(
2996
- `Can't render component <${elm.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`
2997
- );
2998
- }
2999
- let maybePromise;
3000
- if (isInitialLoad) {
3001
- {
3002
- {
3003
- hostRef.$flags$ |= 256 /* isListenReady */;
3004
- if (hostRef.$queuedListeners$) {
3005
- hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event, elm));
3006
- hostRef.$queuedListeners$ = void 0;
3007
- }
3008
- }
3009
- if (hostRef.$fetchedCbList$.length) {
3010
- hostRef.$fetchedCbList$.forEach((cb) => cb(elm));
3011
- }
3012
- }
3013
- maybePromise = safeCall(instance, "componentWillLoad", void 0, elm);
3014
- } else {
3015
- maybePromise = safeCall(instance, "componentWillUpdate", void 0, elm);
3016
- }
3017
- maybePromise = enqueue(maybePromise, () => safeCall(instance, "componentWillRender", void 0, elm));
3018
- endSchedule();
3019
- return enqueue(maybePromise, () => updateComponent(hostRef, instance, isInitialLoad));
3020
- };
3021
- var enqueue = (maybePromise, fn) => isPromisey(maybePromise) ? maybePromise.then(fn).catch((err2) => {
3022
- console.error(err2);
3023
- fn();
3024
- }) : fn();
3025
- var isPromisey = (maybePromise) => maybePromise instanceof Promise || maybePromise && maybePromise.then && typeof maybePromise.then === "function";
3026
- var updateComponent = async (hostRef, instance, isInitialLoad) => {
3027
- var _a;
3028
- const elm = hostRef.$hostElement$;
3029
- const endUpdate = createTime("update", hostRef.$cmpMeta$.$tagName$);
3030
- const rc = elm["s-rc"];
3031
- if (isInitialLoad) {
3032
- attachStyles(hostRef);
3033
- }
3034
- const endRender = createTime("render", hostRef.$cmpMeta$.$tagName$);
3035
- {
3036
- callRender(hostRef, instance, elm, isInitialLoad);
3037
- }
3038
- if (rc) {
3039
- rc.map((cb) => cb());
3040
- elm["s-rc"] = void 0;
3041
- }
3042
- endRender();
3043
- endUpdate();
3044
- {
3045
- const childrenPromises = (_a = elm["s-p"]) != null ? _a : [];
3046
- const postUpdate = () => postUpdateComponent(hostRef);
3047
- if (childrenPromises.length === 0) {
3048
- postUpdate();
3049
- } else {
3050
- Promise.all(childrenPromises).then(postUpdate);
3051
- hostRef.$flags$ |= 4 /* isWaitingForChildren */;
3052
- childrenPromises.length = 0;
3053
- }
3054
- }
3055
- };
3056
- var callRender = (hostRef, instance, elm, isInitialLoad) => {
3057
- try {
3058
- instance = instance.render && instance.render();
3059
- {
3060
- hostRef.$flags$ &= -17 /* isQueuedForUpdate */;
3061
- }
3062
- {
3063
- hostRef.$flags$ |= 2 /* hasRendered */;
3064
- }
3065
- {
3066
- {
3067
- {
3068
- renderVdom(hostRef, instance, isInitialLoad);
3069
- }
3070
- }
3071
- }
3072
- } catch (e) {
3073
- consoleError(e, hostRef.$hostElement$);
3074
- }
3075
- return null;
3076
- };
3077
- var postUpdateComponent = (hostRef) => {
3078
- const tagName = hostRef.$cmpMeta$.$tagName$;
3079
- const elm = hostRef.$hostElement$;
3080
- const endPostUpdate = createTime("postUpdate", tagName);
3081
- const instance = hostRef.$lazyInstance$ ;
3082
- const ancestorComponent = hostRef.$ancestorComponent$;
3083
- safeCall(instance, "componentDidRender", void 0, elm);
3084
- if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
3085
- hostRef.$flags$ |= 64 /* hasLoadedComponent */;
3086
- {
3087
- addHydratedFlag(elm);
3088
- }
3089
- safeCall(instance, "componentDidLoad", void 0, elm);
3090
- endPostUpdate();
3091
- {
3092
- hostRef.$onReadyResolve$(elm);
3093
- if (!ancestorComponent) {
3094
- appDidLoad();
3095
- }
3096
- }
3097
- } else {
3098
- safeCall(instance, "componentDidUpdate", void 0, elm);
3099
- endPostUpdate();
3100
- }
3101
- {
3102
- hostRef.$onInstanceResolve$(elm);
3103
- }
3104
- {
3105
- if (hostRef.$onRenderResolve$) {
3106
- hostRef.$onRenderResolve$();
3107
- hostRef.$onRenderResolve$ = void 0;
3108
- }
3109
- if (hostRef.$flags$ & 512 /* needsRerender */) {
3110
- nextTick(() => scheduleUpdate(hostRef, false));
3111
- }
3112
- hostRef.$flags$ &= -517;
3113
- }
3114
- };
3115
- var forceUpdate = (ref) => {
3116
- var _a;
3117
- {
3118
- const hostRef = getHostRef(ref);
3119
- const isConnected = (_a = hostRef == null ? void 0 : hostRef.$hostElement$) == null ? void 0 : _a.isConnected;
3120
- if (isConnected && (hostRef.$flags$ & (2 /* hasRendered */ | 16 /* isQueuedForUpdate */)) === 2 /* hasRendered */) {
3121
- scheduleUpdate(hostRef, false);
3122
- }
3123
- return isConnected;
3124
- }
3125
- };
3126
- var appDidLoad = (who) => {
3127
- nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
3128
- };
3129
- var safeCall = (instance, method, arg, elm) => {
3130
- if (instance && instance[method]) {
3131
- try {
3132
- return instance[method](arg);
3133
- } catch (e) {
3134
- consoleError(e, elm);
3135
- }
3136
- }
3137
- return void 0;
3138
- };
3139
- var addHydratedFlag = (elm) => {
3140
- var _a;
3141
- return elm.classList.add((_a = BUILD.hydratedSelectorName) != null ? _a : "hydrated") ;
3142
- };
3143
-
3144
- // src/runtime/set-value.ts
3145
- var getValue = (ref, propName) => getHostRef(ref).$instanceValues$.get(propName);
3146
- var setValue = (ref, propName, newVal, cmpMeta) => {
3147
- const hostRef = getHostRef(ref);
3148
- if (!hostRef) {
3149
- return;
3150
- }
3151
- if (!hostRef) {
3152
- throw new Error(
3153
- `Couldn't find host element for "${cmpMeta.$tagName$}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/stenciljs/core/issues/5457).`
3154
- );
3155
- }
3156
- const elm = hostRef.$hostElement$ ;
3157
- const oldVal = hostRef.$instanceValues$.get(propName);
3158
- const flags = hostRef.$flags$;
3159
- const instance = hostRef.$lazyInstance$ ;
3160
- newVal = parsePropertyValue(
3161
- newVal,
3162
- cmpMeta.$members$[propName][0]);
3163
- const areBothNaN = Number.isNaN(oldVal) && Number.isNaN(newVal);
3164
- const didValueChange = newVal !== oldVal && !areBothNaN;
3165
- if ((!(flags & 8 /* isConstructingInstance */) || oldVal === void 0) && didValueChange) {
3166
- hostRef.$instanceValues$.set(propName, newVal);
3167
- if (cmpMeta.$watchers$) {
3168
- const watchMethods = cmpMeta.$watchers$[propName];
3169
- if (watchMethods) {
3170
- watchMethods.map((watcher) => {
3171
- try {
3172
- const [[watchMethodName, watcherFlags]] = Object.entries(watcher);
3173
- if (flags & 128 /* isWatchReady */ || watcherFlags & 1 /* Immediate */) {
3174
- if (!instance) {
3175
- hostRef.$fetchedCbList$.push(() => {
3176
- hostRef.$lazyInstance$[watchMethodName](newVal, oldVal, propName);
3177
- });
3178
- } else {
3179
- instance[watchMethodName](newVal, oldVal, propName);
3180
- }
3181
- }
3182
- } catch (e) {
3183
- consoleError(e, elm);
3184
- }
3185
- });
3186
- }
3187
- }
3188
- if ((flags & (2 /* hasRendered */ | 16 /* isQueuedForUpdate */)) === 2 /* hasRendered */) {
3189
- if (instance.componentShouldUpdate) {
3190
- if (instance.componentShouldUpdate(newVal, oldVal, propName) === false) {
3191
- return;
3192
- }
3193
- }
3194
- scheduleUpdate(hostRef, false);
3195
- }
3196
- }
3197
- };
3198
-
3199
- // src/runtime/proxy-component.ts
3200
- var proxyComponent = (Cstr, cmpMeta, flags) => {
3201
- var _a, _b;
3202
- const prototype = Cstr.prototype;
3203
- if (cmpMeta.$members$ || BUILD.propChangeCallback) {
3204
- {
3205
- if (Cstr.watchers && !cmpMeta.$watchers$) {
3206
- cmpMeta.$watchers$ = Cstr.watchers;
3207
- }
3208
- if (Cstr.deserializers && !cmpMeta.$deserializers$) {
3209
- cmpMeta.$deserializers$ = Cstr.deserializers;
3210
- }
3211
- if (Cstr.serializers && !cmpMeta.$serializers$) {
3212
- cmpMeta.$serializers$ = Cstr.serializers;
3213
- }
3214
- }
3215
- const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
3216
- members.map(([memberName, [memberFlags]]) => {
3217
- if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
3218
- const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(prototype, memberName) || {};
3219
- if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
3220
- if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
3221
- if (flags & 1 /* isElementConstructor */ || !origGetter) {
3222
- Object.defineProperty(prototype, memberName, {
3223
- get() {
3224
- {
3225
- if ((cmpMeta.$members$[memberName][0] & 2048 /* Getter */) === 0) {
3226
- return getValue(this, memberName);
3227
- }
3228
- const ref = getHostRef(this);
3229
- const instance = ref ? ref.$lazyInstance$ : prototype;
3230
- if (!instance) return;
3231
- return instance[memberName];
3232
- }
3233
- },
3234
- configurable: true,
3235
- enumerable: true
3236
- });
3237
- }
3238
- Object.defineProperty(prototype, memberName, {
3239
- set(newValue) {
3240
- const ref = getHostRef(this);
3241
- if (!ref) {
3242
- return;
3243
- }
3244
- if (origSetter) {
3245
- const currentValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
3246
- if (typeof currentValue === "undefined" && ref.$instanceValues$.get(memberName)) {
3247
- newValue = ref.$instanceValues$.get(memberName);
3248
- }
3249
- origSetter.apply(this, [
3250
- parsePropertyValue(
3251
- newValue,
3252
- memberFlags)
3253
- ]);
3254
- newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
3255
- setValue(this, memberName, newValue, cmpMeta);
3256
- return;
3257
- }
3258
- {
3259
- if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
3260
- setValue(this, memberName, newValue, cmpMeta);
3261
- if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
3262
- ref.$fetchedCbList$.push(() => {
3263
- if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
3264
- ref.$lazyInstance$[memberName] = newValue;
3265
- }
3266
- });
3267
- }
3268
- return;
3269
- }
3270
- const setterSetVal = () => {
3271
- const currentValue = ref.$lazyInstance$[memberName];
3272
- if (!ref.$instanceValues$.get(memberName) && currentValue) {
3273
- ref.$instanceValues$.set(memberName, currentValue);
3274
- }
3275
- ref.$lazyInstance$[memberName] = parsePropertyValue(
3276
- newValue,
3277
- memberFlags);
3278
- setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
3279
- };
3280
- if (ref.$lazyInstance$) {
3281
- setterSetVal();
3282
- } else {
3283
- ref.$fetchedCbList$.push(() => {
3284
- setterSetVal();
3285
- });
3286
- }
3287
- }
3288
- }
3289
- });
3290
- } else if (flags & 1 /* isElementConstructor */ && memberFlags & 64 /* Method */) {
3291
- Object.defineProperty(prototype, memberName, {
3292
- value(...args) {
3293
- var _a2;
3294
- const ref = getHostRef(this);
3295
- return (_a2 = ref == null ? void 0 : ref.$onInstancePromise$) == null ? void 0 : _a2.then(() => {
3296
- var _a3;
3297
- return (_a3 = ref.$lazyInstance$) == null ? void 0 : _a3[memberName](...args);
3298
- });
3299
- }
3300
- });
3301
- }
3302
- });
3303
- if ((flags & 1 /* isElementConstructor */)) {
3304
- const attrNameToPropName = /* @__PURE__ */ new Map();
3305
- prototype.attributeChangedCallback = function(attrName, oldValue, newValue) {
3306
- plt.jmp(() => {
3307
- var _a2;
3308
- const propName = attrNameToPropName.get(attrName);
3309
- const hostRef = getHostRef(this);
3310
- if (this.hasOwnProperty(propName) && BUILD.lazyLoad) {
3311
- newValue = this[propName];
3312
- delete this[propName];
3313
- }
3314
- if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
3315
- this[propName] == newValue) {
3316
- return;
3317
- } else if (propName == null) {
3318
- const flags2 = hostRef == null ? void 0 : hostRef.$flags$;
3319
- if (hostRef && flags2 && !(flags2 & 8 /* isConstructingInstance */) && newValue !== oldValue) {
3320
- const instance = hostRef.$lazyInstance$ ;
3321
- const entry = (_a2 = cmpMeta.$watchers$) == null ? void 0 : _a2[attrName];
3322
- entry == null ? void 0 : entry.forEach((watcher) => {
3323
- const [[watchMethodName, watcherFlags]] = Object.entries(watcher);
3324
- if (instance[watchMethodName] != null && (flags2 & 128 /* isWatchReady */ || watcherFlags & 1 /* Immediate */)) {
3325
- instance[watchMethodName].call(instance, newValue, oldValue, attrName);
3326
- }
3327
- });
3328
- }
3329
- return;
3330
- }
3331
- const propFlags = members.find(([m]) => m === propName);
3332
- if (propFlags && propFlags[1][0] & 4 /* Boolean */) {
3333
- newValue = newValue === null || newValue === "false" ? false : true;
3334
- }
3335
- const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
3336
- if (newValue != this[propName] && (!propDesc.get || !!propDesc.set)) {
3337
- this[propName] = newValue;
3338
- }
3339
- });
3340
- };
3341
- Cstr.observedAttributes = Array.from(
3342
- /* @__PURE__ */ new Set([
3343
- ...Object.keys((_b = cmpMeta.$watchers$) != null ? _b : {}),
3344
- ...members.filter(([_, m]) => m[0] & 31 /* HasAttribute */).map(([propName, m]) => {
3345
- var _a2;
3346
- const attrName = m[1] || propName;
3347
- attrNameToPropName.set(attrName, propName);
3348
- if (m[0] & 512 /* ReflectAttr */) {
3349
- (_a2 = cmpMeta.$attrsToReflect$) == null ? void 0 : _a2.push([propName, attrName]);
3350
- }
3351
- return attrName;
3352
- })
3353
- ])
3354
- );
3355
- }
3356
- }
3357
- return Cstr;
3358
- };
3359
-
3360
- // src/runtime/initialize-component.ts
3361
- var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
3362
- let Cstr;
3363
- if ((hostRef.$flags$ & 32 /* hasInitializedComponent */) === 0) {
3364
- hostRef.$flags$ |= 32 /* hasInitializedComponent */;
3365
- const bundleId = cmpMeta.$lazyBundleId$;
3366
- if (bundleId) {
3367
- const CstrImport = loadModule(cmpMeta, hostRef);
3368
- if (CstrImport && "then" in CstrImport) {
3369
- const endLoad = uniqueTime();
3370
- Cstr = await CstrImport;
3371
- endLoad();
3372
- } else {
3373
- Cstr = CstrImport;
3374
- }
3375
- if (!Cstr) {
3376
- throw new Error(`Constructor for "${cmpMeta.$tagName$}#${hostRef.$modeName$}" was not found`);
3377
- }
3378
- if (!Cstr.isProxied) {
3379
- {
3380
- cmpMeta.$watchers$ = Cstr.watchers;
3381
- cmpMeta.$serializers$ = Cstr.serializers;
3382
- cmpMeta.$deserializers$ = Cstr.deserializers;
3383
- }
3384
- proxyComponent(Cstr, cmpMeta, 2 /* proxyState */);
3385
- Cstr.isProxied = true;
3386
- }
3387
- const endNewInstance = createTime("createInstance", cmpMeta.$tagName$);
3388
- {
3389
- hostRef.$flags$ |= 8 /* isConstructingInstance */;
3390
- }
3391
- try {
3392
- new Cstr(hostRef);
3393
- } catch (e) {
3394
- consoleError(e, elm);
3395
- }
3396
- {
3397
- hostRef.$flags$ &= -9 /* isConstructingInstance */;
3398
- }
3399
- {
3400
- hostRef.$flags$ |= 128 /* isWatchReady */;
3401
- }
3402
- endNewInstance();
3403
- fireConnectedCallback(hostRef.$lazyInstance$, elm);
3404
- } else {
3405
- Cstr = elm.constructor;
3406
- const cmpTag = elm.localName;
3407
- customElements.whenDefined(cmpTag).then(() => hostRef.$flags$ |= 128 /* isWatchReady */);
3408
- }
3409
- if (Cstr && Cstr.style) {
3410
- let style;
3411
- if (typeof Cstr.style === "string") {
3412
- style = Cstr.style;
3413
- } else if (typeof Cstr.style !== "string") {
3414
- hostRef.$modeName$ = computeMode(elm);
3415
- if (hostRef.$modeName$) {
3416
- style = Cstr.style[hostRef.$modeName$];
3417
- }
3418
- }
3419
- const scopeId2 = getScopeId(cmpMeta, hostRef.$modeName$);
3420
- if (!styles.has(scopeId2) || BUILD.hotModuleReplacement) {
3421
- const endRegisterStyles = createTime("registerStyles", cmpMeta.$tagName$);
3422
- registerStyle(scopeId2, style, !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */));
3423
- endRegisterStyles();
3424
- }
3425
- }
3426
- }
3427
- const ancestorComponent = hostRef.$ancestorComponent$;
3428
- const schedule = () => scheduleUpdate(hostRef, true);
3429
- if (ancestorComponent && ancestorComponent["s-rc"]) {
3430
- ancestorComponent["s-rc"].push(schedule);
3431
- } else {
3432
- schedule();
3433
- }
3434
- };
3435
- var fireConnectedCallback = (instance, elm) => {
3436
- {
3437
- safeCall(instance, "connectedCallback", void 0, elm);
3438
- }
3439
- };
3440
-
3441
- // src/runtime/connected-callback.ts
3442
- var connectedCallback = (elm) => {
3443
- if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
3444
- const hostRef = getHostRef(elm);
3445
- if (!hostRef) {
3446
- return;
3447
- }
3448
- const cmpMeta = hostRef.$cmpMeta$;
3449
- const endConnected = createTime("connectedCallback", cmpMeta.$tagName$);
3450
- if (!(hostRef.$flags$ & 1 /* hasConnected */)) {
3451
- hostRef.$flags$ |= 1 /* hasConnected */;
3452
- {
3453
- if (// TODO(STENCIL-854): Remove code related to legacy shadowDomShim field
3454
- cmpMeta.$flags$ & (4 /* hasSlotRelocation */ | 8 /* needsShadowDomShim */)) {
3455
- setContentReference(elm);
3456
- }
3457
- }
3458
- {
3459
- let ancestorComponent = elm;
3460
- while (ancestorComponent = ancestorComponent.parentNode || ancestorComponent.host) {
3461
- if (ancestorComponent["s-p"]) {
3462
- attachToAncestor(hostRef, hostRef.$ancestorComponent$ = ancestorComponent);
3463
- break;
3464
- }
3465
- }
3466
- }
3467
- if (cmpMeta.$members$) {
3468
- Object.entries(cmpMeta.$members$).map(([memberName, [memberFlags]]) => {
3469
- if (memberFlags & 31 /* Prop */ && memberName in elm && elm[memberName] !== Object.prototype[memberName]) {
3470
- const value = elm[memberName];
3471
- delete elm[memberName];
3472
- elm[memberName] = value;
3473
- }
3474
- });
3475
- }
3476
- {
3477
- initializeComponent(elm, hostRef, cmpMeta);
3478
- }
3479
- } else {
3480
- addHostEventListeners(elm, hostRef, cmpMeta.$listeners$);
3481
- if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
3482
- fireConnectedCallback(hostRef.$lazyInstance$, elm);
3483
- } else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
3484
- hostRef.$onReadyPromise$.then(() => fireConnectedCallback(hostRef.$lazyInstance$, elm));
3485
- }
3486
- }
3487
- endConnected();
3488
- }
3489
- };
3490
- var setContentReference = (elm) => {
3491
- if (!win.document) {
3492
- return;
3493
- }
3494
- const contentRefElm = elm["s-cr"] = win.document.createComment(
3495
- ""
3496
- );
3497
- contentRefElm["s-cn"] = true;
3498
- insertBefore(elm, contentRefElm, elm.firstChild);
3499
- };
3500
- var disconnectInstance = (instance, elm) => {
3501
- {
3502
- safeCall(instance, "disconnectedCallback", void 0, elm || instance);
3503
- }
3504
- };
3505
- var disconnectedCallback = async (elm) => {
3506
- if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
3507
- const hostRef = getHostRef(elm);
3508
- {
3509
- if (hostRef == null ? void 0 : hostRef.$rmListeners$) {
3510
- hostRef.$rmListeners$.map((rmListener) => rmListener());
3511
- hostRef.$rmListeners$ = void 0;
3512
- }
3513
- }
3514
- if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
3515
- disconnectInstance(hostRef.$lazyInstance$, elm);
3516
- } else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
3517
- hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance$, elm));
3518
- }
3519
- }
3520
- if (rootAppliedStyles.has(elm)) {
3521
- rootAppliedStyles.delete(elm);
3522
- }
3523
- if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
3524
- rootAppliedStyles.delete(elm.shadowRoot);
3525
- }
3526
- };
3527
-
3528
- // src/runtime/bootstrap-lazy.ts
3529
- var bootstrapLazy = (lazyBundles, options = {}) => {
3530
- var _a;
3531
- if (!win.document) {
3532
- console.warn("Stencil: No document found. Skipping bootstrapping lazy components.");
3533
- return;
3534
- }
3535
- const endBootstrap = createTime();
3536
- const cmpTags = [];
3537
- const exclude = options.exclude || [];
3538
- const customElements2 = win.customElements;
3539
- const head = win.document.head;
3540
- const metaCharset = /* @__PURE__ */ head.querySelector("meta[charset]");
3541
- const dataStyles = /* @__PURE__ */ win.document.createElement("style");
3542
- const deferredConnectedCallbacks = [];
3543
- let appLoadFallback;
3544
- let isBootstrapping = true;
3545
- Object.assign(plt, options);
3546
- plt.$resourcesUrl$ = new URL(options.resourcesUrl || "./", win.document.baseURI).href;
3547
- let hasSlotRelocation = false;
3548
- lazyBundles.map((lazyBundle) => {
3549
- lazyBundle[1].map((compactMeta) => {
3550
- var _a2, _b, _c;
3551
- const cmpMeta = {
3552
- $flags$: compactMeta[0],
3553
- $tagName$: compactMeta[1],
3554
- $members$: compactMeta[2],
3555
- $listeners$: compactMeta[3]
3556
- };
3557
- if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
3558
- hasSlotRelocation = true;
3559
- }
3560
- {
3561
- cmpMeta.$members$ = compactMeta[2];
3562
- }
3563
- {
3564
- cmpMeta.$listeners$ = compactMeta[3];
3565
- }
3566
- {
3567
- cmpMeta.$attrsToReflect$ = [];
3568
- }
3569
- {
3570
- cmpMeta.$watchers$ = (_a2 = compactMeta[4]) != null ? _a2 : {};
3571
- cmpMeta.$serializers$ = (_b = compactMeta[5]) != null ? _b : {};
3572
- cmpMeta.$deserializers$ = (_c = compactMeta[6]) != null ? _c : {};
3573
- }
3574
- const tagName = transformTag(cmpMeta.$tagName$);
3575
- const HostElement = class extends HTMLElement {
3576
- // StencilLazyHost
3577
- constructor(self) {
3578
- super(self);
3579
- this.hasRegisteredEventListeners = false;
3580
- self = this;
3581
- registerHost(self, cmpMeta);
3582
- if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
3583
- {
3584
- if (!self.shadowRoot) {
3585
- createShadowRoot.call(self, cmpMeta);
3586
- } else {
3587
- if (self.shadowRoot.mode !== "open") {
3588
- throw new Error(
3589
- `Unable to re-use existing shadow root for ${cmpMeta.$tagName$}! Mode is set to ${self.shadowRoot.mode} but Stencil only supports open shadow roots.`
3590
- );
3591
- }
3592
- }
3593
- }
3594
- }
3595
- }
3596
- connectedCallback() {
3597
- const hostRef = getHostRef(this);
3598
- if (!hostRef) {
3599
- return;
3600
- }
3601
- if (!this.hasRegisteredEventListeners) {
3602
- this.hasRegisteredEventListeners = true;
3603
- addHostEventListeners(this, hostRef, cmpMeta.$listeners$);
3604
- }
3605
- if (appLoadFallback) {
3606
- clearTimeout(appLoadFallback);
3607
- appLoadFallback = null;
3608
- }
3609
- if (isBootstrapping) {
3610
- deferredConnectedCallbacks.push(this);
3611
- } else {
3612
- plt.jmp(() => connectedCallback(this));
3613
- }
3614
- }
3615
- disconnectedCallback() {
3616
- plt.jmp(() => disconnectedCallback(this));
3617
- plt.raf(() => {
3618
- var _a3;
3619
- const hostRef = getHostRef(this);
3620
- if (!hostRef) {
3621
- return;
3622
- }
3623
- const i2 = deferredConnectedCallbacks.findIndex((host) => host === this);
3624
- if (i2 > -1) {
3625
- deferredConnectedCallbacks.splice(i2, 1);
3626
- }
3627
- if (((_a3 = hostRef == null ? void 0 : hostRef.$vnode$) == null ? void 0 : _a3.$elm$) instanceof Node && !hostRef.$vnode$.$elm$.isConnected) {
3628
- delete hostRef.$vnode$.$elm$;
3629
- }
3630
- });
3631
- }
3632
- componentOnReady() {
3633
- var _a3;
3634
- return (_a3 = getHostRef(this)) == null ? void 0 : _a3.$onReadyPromise$;
3635
- }
3636
- };
3637
- cmpMeta.$lazyBundleId$ = lazyBundle[0];
3638
- if (!exclude.includes(tagName) && !customElements2.get(tagName)) {
3639
- cmpTags.push(tagName);
3640
- customElements2.define(
3641
- tagName,
3642
- proxyComponent(HostElement, cmpMeta, 1 /* isElementConstructor */)
3643
- );
3644
- }
3645
- });
3646
- });
3647
- if (cmpTags.length > 0) {
3648
- if (hasSlotRelocation) {
3649
- dataStyles.textContent += SLOT_FB_CSS;
3650
- }
3651
- {
3652
- dataStyles.textContent += cmpTags.sort() + HYDRATED_CSS;
3653
- }
3654
- if (dataStyles.innerHTML.length) {
3655
- dataStyles.setAttribute("data-styles", "");
3656
- const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(win.document);
3657
- if (nonce != null) {
3658
- dataStyles.setAttribute("nonce", nonce);
3659
- }
3660
- head.insertBefore(dataStyles, metaCharset ? metaCharset.nextSibling : head.firstChild);
3661
- }
3662
- }
3663
- isBootstrapping = false;
3664
- if (deferredConnectedCallbacks.length) {
3665
- deferredConnectedCallbacks.map((host) => host.connectedCallback());
3666
- } else {
3667
- {
3668
- plt.jmp(() => appLoadFallback = setTimeout(appDidLoad, 30));
3669
- }
3670
- }
3671
- endBootstrap();
3672
- };
3673
- var addHostEventListeners = (elm, hostRef, listeners, attachParentListeners) => {
3674
- if (listeners && win.document) {
3675
- listeners.map(([flags, name, method]) => {
3676
- const target = getHostListenerTarget(win.document, elm, flags) ;
3677
- const handler = hostListenerProxy(hostRef, method);
3678
- const opts = hostListenerOpts(flags);
3679
- plt.ael(target, name, handler, opts);
3680
- (hostRef.$rmListeners$ = hostRef.$rmListeners$ || []).push(() => plt.rel(target, name, handler, opts));
3681
- });
3682
- }
3683
- };
3684
- var hostListenerProxy = (hostRef, methodName) => (ev) => {
3685
- var _a;
3686
- try {
3687
- {
3688
- if (hostRef.$flags$ & 256 /* isListenReady */) {
3689
- (_a = hostRef.$lazyInstance$) == null ? void 0 : _a[methodName](ev);
3690
- } else {
3691
- (hostRef.$queuedListeners$ = hostRef.$queuedListeners$ || []).push([methodName, ev]);
3692
- }
3693
- }
3694
- } catch (e) {
3695
- consoleError(e, hostRef.$hostElement$);
3696
- }
3697
- };
3698
- var getHostListenerTarget = (doc, elm, flags) => {
3699
- if (flags & 4 /* TargetDocument */) {
3700
- return doc;
3701
- }
3702
- if (flags & 8 /* TargetWindow */) {
3703
- return win;
3704
- }
3705
- if (flags & 16 /* TargetBody */) {
3706
- return doc.body;
3707
- }
3708
- return elm;
3709
- };
3710
- var hostListenerOpts = (flags) => supportsListenerOptions ? {
3711
- passive: (flags & 1 /* Passive */) !== 0,
3712
- capture: (flags & 2 /* Capture */) !== 0
3713
- } : (flags & 2 /* Capture */) !== 0;
3714
-
3715
- // src/runtime/nonce.ts
3716
- var setNonce = (nonce) => plt.$nonce$ = nonce;
3717
- function transformTag(tag) {
3718
- return tag;
3719
- }
3720
-
3721
- export { Build as B, Host as H, readTask as a, bootstrapLazy as b, createEvent as c, setPlatformHelpers as d, getMode as e, forceUpdate as f, getElement as g, h, setMode as i, getAssetPath as j, promiseResolve as p, registerInstance as r, setNonce as s, writeTask as w };