@postnord/pn-marketweb-components 4.1.1 → 4.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (337) hide show
  1. package/cjs/loader.cjs.js +1 -1
  2. package/cjs/pn-chat-message_2.cjs.entry.js +5 -5
  3. package/cjs/pn-chat-message_2.cjs.entry.js.map +1 -1
  4. package/cjs/pn-chat.cjs.entry.js +18 -6
  5. package/cjs/pn-chat.cjs.entry.js.map +1 -1
  6. package/cjs/pn-dropdown-choice-adds-row.cjs.entry.js +17 -3
  7. package/cjs/pn-dropdown-choice-adds-row.cjs.entry.js.map +1 -1
  8. package/cjs/pn-market-web-components.cjs.js +1 -1
  9. package/collection/components/input/pn-dropdown-choice-adds-row/pn-dropdown-choice-adds-row.js +53 -3
  10. package/collection/components/input/pn-dropdown-choice-adds-row/pn-dropdown-choice-adds-row.js.map +1 -1
  11. package/collection/components/input/pn-dropdown-choice-adds-row/pn-dropdown-choice-adds-row.stories.js +4 -0
  12. package/collection/components/widgets/pn-chat/pn-chat-message/pn-chat-message.css +27 -10
  13. package/collection/components/widgets/pn-chat/pn-chat-message/pn-chat-message.js +3 -3
  14. package/collection/components/widgets/pn-chat/pn-chat-message/pn-chat-message.js.map +1 -1
  15. package/collection/components/widgets/pn-chat/pn-chat-stories-constants.js +18 -0
  16. package/collection/components/widgets/pn-chat/pn-chat-stories-constants.js.map +1 -1
  17. package/collection/components/widgets/pn-chat/pn-chat.css +24 -13
  18. package/collection/components/widgets/pn-chat/pn-chat.js +17 -5
  19. package/collection/components/widgets/pn-chat/pn-chat.js.map +1 -1
  20. package/collection/components/widgets/pn-chat/pn-chat.stories.js +43 -0
  21. package/collection/components/widgets/pn-chat/pn-chat.stories.js.map +1 -1
  22. package/components/pn-chat-message2.js +5 -5
  23. package/components/pn-chat-message2.js.map +1 -1
  24. package/components/pn-chat.js +18 -6
  25. package/components/pn-chat.js.map +1 -1
  26. package/components/pn-dropdown-choice-adds-row.js +19 -3
  27. package/components/pn-dropdown-choice-adds-row.js.map +1 -1
  28. package/esm/loader.js +1 -1
  29. package/esm/pn-chat-message_2.entry.js +5 -5
  30. package/esm/pn-chat-message_2.entry.js.map +1 -1
  31. package/esm/pn-chat.entry.js +18 -6
  32. package/esm/pn-chat.entry.js.map +1 -1
  33. package/esm/pn-dropdown-choice-adds-row.entry.js +17 -3
  34. package/esm/pn-dropdown-choice-adds-row.entry.js.map +1 -1
  35. package/esm/pn-market-web-components.js +1 -1
  36. package/package.json +14 -17
  37. package/pn-market-web-components/p-4a8ef165.entry.js +2 -0
  38. package/pn-market-web-components/p-4a8ef165.entry.js.map +1 -0
  39. package/pn-market-web-components/p-62ce6700.entry.js +2 -0
  40. package/pn-market-web-components/p-62ce6700.entry.js.map +1 -0
  41. package/pn-market-web-components/p-6f6ed930.entry.js +2 -0
  42. package/pn-market-web-components/p-6f6ed930.entry.js.map +1 -0
  43. package/pn-market-web-components/pn-market-web-components.esm.js +1 -1
  44. package/pn-market-web-components/pn-market-web-components.esm.js.map +1 -1
  45. package/types/components/input/pn-dropdown-choice-adds-row/pn-dropdown-choice-adds-row.d.ts +2 -0
  46. package/types/components/widgets/pn-chat/pn-chat-stories-constants.d.ts +18 -0
  47. package/types/components/widgets/pn-chat/pn-chat.stories.d.ts +1 -0
  48. package/types/components.d.ts +4 -0
  49. package/umd/modules/@postnord/web-components/cjs/{index-BNXSyZmU.js → index-CNdVg5VI.js} +1 -1
  50. package/umd/modules/@postnord/web-components/cjs/{index-CAMqnx70.js → index-CfUQZtlH.js} +245 -1884
  51. package/umd/modules/@postnord/web-components/cjs/index.cjs.js +8 -5
  52. package/umd/modules/@postnord/web-components/cjs/loader.cjs.js +2 -2
  53. package/umd/modules/@postnord/web-components/cjs/pn-accordion-row.cjs.entry.js +1 -1
  54. package/umd/modules/@postnord/web-components/cjs/pn-accordion.cjs.entry.js +1 -1
  55. package/umd/modules/@postnord/web-components/cjs/pn-action-menu.cjs.entry.js +2 -2
  56. package/umd/modules/@postnord/web-components/cjs/pn-button-dropdown.cjs.entry.js +1 -1
  57. package/umd/modules/@postnord/web-components/cjs/pn-button_2.cjs.entry.js +1 -1
  58. package/umd/modules/@postnord/web-components/cjs/pn-card.cjs.entry.js +2 -2
  59. package/umd/modules/@postnord/web-components/cjs/pn-checkbox.cjs.entry.js +2 -2
  60. package/umd/modules/@postnord/web-components/cjs/pn-choice-chip.cjs.entry.js +1 -1
  61. package/umd/modules/@postnord/web-components/cjs/pn-counter.cjs.entry.js +13 -15
  62. package/umd/modules/@postnord/web-components/cjs/pn-date-picker.cjs.entry.js +12 -6
  63. package/umd/modules/@postnord/web-components/cjs/pn-fieldset.cjs.entry.js +2 -2
  64. package/umd/modules/@postnord/web-components/cjs/pn-file-upload.cjs.entry.js +2 -2
  65. package/umd/modules/@postnord/web-components/cjs/pn-footer.cjs.entry.js +2 -2
  66. package/umd/modules/@postnord/web-components/cjs/pn-header.cjs.entry.js +2 -2
  67. package/umd/modules/@postnord/web-components/cjs/pn-icon_2.cjs.entry.js +1 -1
  68. package/umd/modules/@postnord/web-components/cjs/pn-illustration.cjs.entry.js +1 -1
  69. package/umd/modules/@postnord/web-components/cjs/pn-input.cjs.entry.js +33 -16
  70. package/umd/modules/@postnord/web-components/cjs/pn-modal.cjs.entry.js +1 -1
  71. package/umd/modules/@postnord/web-components/cjs/pn-multiselect.cjs.entry.js +16 -5
  72. package/umd/modules/@postnord/web-components/cjs/pn-ocr-search.cjs.entry.js +2 -2
  73. package/umd/modules/@postnord/web-components/cjs/pn-page-nav-dropdown-item.cjs.entry.js +2 -2
  74. package/umd/modules/@postnord/web-components/cjs/pn-page-nav-item.cjs.entry.js +2 -2
  75. package/umd/modules/@postnord/web-components/cjs/pn-page-nav.cjs.entry.js +2 -2
  76. package/umd/modules/@postnord/web-components/cjs/pn-pagination.cjs.entry.js +2 -2
  77. package/umd/modules/@postnord/web-components/cjs/pn-progress-bar.cjs.entry.js +1 -1
  78. package/umd/modules/@postnord/web-components/cjs/pn-progress-indicator-step.cjs.entry.js +1 -1
  79. package/umd/modules/@postnord/web-components/cjs/pn-progress-indicator.cjs.entry.js +1 -1
  80. package/umd/modules/@postnord/web-components/cjs/pn-progress-stepper.cjs.entry.js +1 -1
  81. package/umd/modules/@postnord/web-components/cjs/pn-radio-button.cjs.entry.js +3 -3
  82. package/umd/modules/@postnord/web-components/cjs/pn-range.cjs.entry.js +3 -3
  83. package/umd/modules/@postnord/web-components/cjs/pn-read-only-button.cjs.entry.js +1 -1
  84. package/umd/modules/@postnord/web-components/cjs/pn-search-field.cjs.entry.js +2 -2
  85. package/umd/modules/@postnord/web-components/cjs/pn-segment.cjs.entry.js +2 -2
  86. package/umd/modules/@postnord/web-components/cjs/pn-segmented-control.cjs.entry.js +2 -2
  87. package/umd/modules/@postnord/web-components/cjs/pn-select.cjs.entry.js +10 -3
  88. package/umd/modules/@postnord/web-components/cjs/pn-tab.cjs.entry.js +2 -2
  89. package/umd/modules/@postnord/web-components/cjs/pn-table.cjs.entry.js +1 -1
  90. package/umd/modules/@postnord/web-components/cjs/pn-tablist.cjs.entry.js +2 -2
  91. package/umd/modules/@postnord/web-components/cjs/pn-text-link.cjs.entry.js +2 -2
  92. package/umd/modules/@postnord/web-components/cjs/pn-textarea.cjs.entry.js +19 -9
  93. package/umd/modules/@postnord/web-components/cjs/pn-tile.cjs.entry.js +2 -2
  94. package/umd/modules/@postnord/web-components/cjs/pn-toast.cjs.entry.js +2 -2
  95. package/umd/modules/@postnord/web-components/cjs/pn-toggle-switch.cjs.entry.js +3 -3
  96. package/umd/modules/@postnord/web-components/cjs/pn-tooltip.cjs.entry.js +1 -1
  97. package/umd/modules/@postnord/web-components/cjs/pn-wizard.cjs.entry.js +1 -1
  98. package/umd/modules/@postnord/web-components/cjs/pn-zipcode-search.cjs.entry.js +2 -2
  99. package/umd/modules/@postnord/web-components/cjs/postnord-web-components.cjs.js +3 -3
  100. package/umd/modules/@postnord/web-components/collection/collection-manifest.json +1 -1
  101. package/umd/modules/@postnord/web-components/collection/components/input/pn-counter/pn-counter.css +69 -27
  102. package/umd/modules/@postnord/web-components/collection/components/input/pn-counter/pn-counter.js +34 -13
  103. package/umd/modules/@postnord/web-components/collection/components/input/pn-date-picker/pn-date-picker.css +38 -1
  104. package/umd/modules/@postnord/web-components/collection/components/input/pn-date-picker/pn-date-picker.js +32 -3
  105. package/umd/modules/@postnord/web-components/collection/components/input/pn-fieldset/pn-fieldset.js +1 -1
  106. package/umd/modules/@postnord/web-components/collection/components/input/pn-file-upload/pn-file-upload.js +1 -1
  107. package/umd/modules/@postnord/web-components/collection/components/input/pn-input/pn-input.css +48 -9
  108. package/umd/modules/@postnord/web-components/collection/components/input/pn-input/pn-input.js +55 -15
  109. package/umd/modules/@postnord/web-components/collection/components/input/pn-multiselect/pn-multiselect.css +63 -22
  110. package/umd/modules/@postnord/web-components/collection/components/input/pn-multiselect/pn-multiselect.js +36 -2
  111. package/umd/modules/@postnord/web-components/collection/components/input/pn-radio-button/pn-radio-button.js +1 -1
  112. package/umd/modules/@postnord/web-components/collection/components/input/pn-range/pn-range.css +1 -1
  113. package/umd/modules/@postnord/web-components/collection/components/input/pn-range/pn-range.js +1 -1
  114. package/umd/modules/@postnord/web-components/collection/components/input/pn-search-field/pn-search-field.js +1 -1
  115. package/umd/modules/@postnord/web-components/collection/components/input/pn-segmented-control/pn-segmented-control.js +1 -1
  116. package/umd/modules/@postnord/web-components/collection/components/input/pn-segmented-control/segment/pn-segment.js +1 -1
  117. package/umd/modules/@postnord/web-components/collection/components/input/pn-select/pn-select.css +53 -14
  118. package/umd/modules/@postnord/web-components/collection/components/input/pn-select/pn-select.js +31 -1
  119. package/umd/modules/@postnord/web-components/collection/components/input/pn-textarea/pn-textarea.css +54 -5
  120. package/umd/modules/@postnord/web-components/collection/components/input/pn-textarea/pn-textarea.js +45 -13
  121. package/umd/modules/@postnord/web-components/collection/components/input/pn-toggle-switch/pn-toggle-switch.css +1 -1
  122. package/umd/modules/@postnord/web-components/collection/components/input/pn-toggle-switch/pn-toggle-switch.js +1 -1
  123. package/umd/modules/@postnord/web-components/collection/components/layout/pn-header/pn-header.js +1 -1
  124. package/umd/modules/@postnord/web-components/collection/components/navigation/pn-card/pn-card.js +1 -1
  125. package/umd/modules/@postnord/web-components/collection/components/navigation/pn-footer/pn-footer.js +1 -1
  126. package/umd/modules/@postnord/web-components/collection/components/navigation/pn-page-nav/dropdown-item/pn-page-nav-dropdown-item.js +1 -1
  127. package/umd/modules/@postnord/web-components/collection/components/navigation/pn-page-nav/item/pn-page-nav-item.js +1 -1
  128. package/umd/modules/@postnord/web-components/collection/components/navigation/pn-page-nav/menu/pn-page-nav.js +1 -1
  129. package/umd/modules/@postnord/web-components/collection/components/navigation/pn-pagination/pn-pagination.js +1 -1
  130. package/umd/modules/@postnord/web-components/collection/components/navigation/pn-tablist/pn-tablist.js +1 -1
  131. package/umd/modules/@postnord/web-components/collection/components/navigation/pn-tablist/tab/pn-tab.js +1 -1
  132. package/umd/modules/@postnord/web-components/collection/components/navigation/pn-text-link/pn-text-link.js +1 -1
  133. package/umd/modules/@postnord/web-components/collection/components/navigation/pn-tile/pn-tile.js +1 -1
  134. package/umd/modules/@postnord/web-components/collection/components/web-components/pn-ocr-search/pn-ocr-search.js +1 -1
  135. package/umd/modules/@postnord/web-components/collection/components/web-components/pn-zipcode-search/pn-zipcode-search.js +1 -1
  136. package/umd/modules/@postnord/web-components/components/helpers.js +1 -1
  137. package/umd/modules/@postnord/web-components/components/pn-card.js +1 -1
  138. package/umd/modules/@postnord/web-components/components/pn-counter.js +1 -1
  139. package/umd/modules/@postnord/web-components/components/pn-date-picker.js +1 -1
  140. package/umd/modules/@postnord/web-components/components/pn-fieldset.js +1 -1
  141. package/umd/modules/@postnord/web-components/components/pn-file-upload.js +1 -1
  142. package/umd/modules/@postnord/web-components/components/pn-footer.js +1 -1
  143. package/umd/modules/@postnord/web-components/components/pn-header.js +1 -1
  144. package/umd/modules/@postnord/web-components/components/pn-input2.js +1 -1
  145. package/umd/modules/@postnord/web-components/components/pn-multiselect.js +1 -1
  146. package/umd/modules/@postnord/web-components/components/pn-ocr-search.js +1 -1
  147. package/umd/modules/@postnord/web-components/components/pn-page-nav-dropdown-item.js +1 -1
  148. package/umd/modules/@postnord/web-components/components/pn-page-nav-item.js +1 -1
  149. package/umd/modules/@postnord/web-components/components/pn-page-nav.js +1 -1
  150. package/umd/modules/@postnord/web-components/components/pn-pagination.js +1 -1
  151. package/umd/modules/@postnord/web-components/components/pn-radio-button.js +1 -1
  152. package/umd/modules/@postnord/web-components/components/pn-range.js +1 -1
  153. package/umd/modules/@postnord/web-components/components/pn-search-field2.js +1 -1
  154. package/umd/modules/@postnord/web-components/components/pn-segment.js +1 -1
  155. package/umd/modules/@postnord/web-components/components/pn-segmented-control.js +1 -1
  156. package/umd/modules/@postnord/web-components/components/pn-select2.js +1 -1
  157. package/umd/modules/@postnord/web-components/components/pn-tab.js +1 -1
  158. package/umd/modules/@postnord/web-components/components/pn-tablist.js +1 -1
  159. package/umd/modules/@postnord/web-components/components/pn-text-link2.js +1 -1
  160. package/umd/modules/@postnord/web-components/components/pn-textarea.js +1 -1
  161. package/umd/modules/@postnord/web-components/components/pn-tile.js +1 -1
  162. package/umd/modules/@postnord/web-components/components/pn-toggle-switch.js +1 -1
  163. package/umd/modules/@postnord/web-components/components/pn-zipcode-search.js +1 -1
  164. package/umd/modules/@postnord/web-components/esm/{index-DWsprozV.js → index-CAEP792y.js} +245 -1884
  165. package/umd/modules/@postnord/web-components/esm/{index-BhpZuCL7.js → index-CosyroON.js} +1 -1
  166. package/umd/modules/@postnord/web-components/esm/index.js +9 -6
  167. package/umd/modules/@postnord/web-components/esm/loader.js +3 -3
  168. package/umd/modules/@postnord/web-components/esm/pn-accordion-row.entry.js +1 -1
  169. package/umd/modules/@postnord/web-components/esm/pn-accordion.entry.js +1 -1
  170. package/umd/modules/@postnord/web-components/esm/pn-action-menu.entry.js +2 -2
  171. package/umd/modules/@postnord/web-components/esm/pn-button-dropdown.entry.js +1 -1
  172. package/umd/modules/@postnord/web-components/esm/pn-button_2.entry.js +1 -1
  173. package/umd/modules/@postnord/web-components/esm/pn-card.entry.js +2 -2
  174. package/umd/modules/@postnord/web-components/esm/pn-checkbox.entry.js +2 -2
  175. package/umd/modules/@postnord/web-components/esm/pn-choice-chip.entry.js +1 -1
  176. package/umd/modules/@postnord/web-components/esm/pn-counter.entry.js +13 -15
  177. package/umd/modules/@postnord/web-components/esm/pn-date-picker.entry.js +12 -6
  178. package/umd/modules/@postnord/web-components/esm/pn-fieldset.entry.js +2 -2
  179. package/umd/modules/@postnord/web-components/esm/pn-file-upload.entry.js +2 -2
  180. package/umd/modules/@postnord/web-components/esm/pn-footer.entry.js +2 -2
  181. package/umd/modules/@postnord/web-components/esm/pn-header.entry.js +2 -2
  182. package/umd/modules/@postnord/web-components/esm/pn-icon_2.entry.js +1 -1
  183. package/umd/modules/@postnord/web-components/esm/pn-illustration.entry.js +1 -1
  184. package/umd/modules/@postnord/web-components/esm/pn-input.entry.js +33 -16
  185. package/umd/modules/@postnord/web-components/esm/pn-modal.entry.js +1 -1
  186. package/umd/modules/@postnord/web-components/esm/pn-multiselect.entry.js +16 -5
  187. package/umd/modules/@postnord/web-components/esm/pn-ocr-search.entry.js +2 -2
  188. package/umd/modules/@postnord/web-components/esm/pn-page-nav-dropdown-item.entry.js +2 -2
  189. package/umd/modules/@postnord/web-components/esm/pn-page-nav-item.entry.js +2 -2
  190. package/umd/modules/@postnord/web-components/esm/pn-page-nav.entry.js +2 -2
  191. package/umd/modules/@postnord/web-components/esm/pn-pagination.entry.js +2 -2
  192. package/umd/modules/@postnord/web-components/esm/pn-progress-bar.entry.js +1 -1
  193. package/umd/modules/@postnord/web-components/esm/pn-progress-indicator-step.entry.js +1 -1
  194. package/umd/modules/@postnord/web-components/esm/pn-progress-indicator.entry.js +1 -1
  195. package/umd/modules/@postnord/web-components/esm/pn-progress-stepper.entry.js +1 -1
  196. package/umd/modules/@postnord/web-components/esm/pn-radio-button.entry.js +3 -3
  197. package/umd/modules/@postnord/web-components/esm/pn-range.entry.js +3 -3
  198. package/umd/modules/@postnord/web-components/esm/pn-read-only-button.entry.js +1 -1
  199. package/umd/modules/@postnord/web-components/esm/pn-search-field.entry.js +2 -2
  200. package/umd/modules/@postnord/web-components/esm/pn-segment.entry.js +2 -2
  201. package/umd/modules/@postnord/web-components/esm/pn-segmented-control.entry.js +2 -2
  202. package/umd/modules/@postnord/web-components/esm/pn-select.entry.js +10 -3
  203. package/umd/modules/@postnord/web-components/esm/pn-tab.entry.js +2 -2
  204. package/umd/modules/@postnord/web-components/esm/pn-table.entry.js +1 -1
  205. package/umd/modules/@postnord/web-components/esm/pn-tablist.entry.js +2 -2
  206. package/umd/modules/@postnord/web-components/esm/pn-text-link.entry.js +2 -2
  207. package/umd/modules/@postnord/web-components/esm/pn-textarea.entry.js +19 -9
  208. package/umd/modules/@postnord/web-components/esm/pn-tile.entry.js +2 -2
  209. package/umd/modules/@postnord/web-components/esm/pn-toast.entry.js +2 -2
  210. package/umd/modules/@postnord/web-components/esm/pn-toggle-switch.entry.js +3 -3
  211. package/umd/modules/@postnord/web-components/esm/pn-tooltip.entry.js +1 -1
  212. package/umd/modules/@postnord/web-components/esm/pn-wizard.entry.js +1 -1
  213. package/umd/modules/@postnord/web-components/esm/pn-zipcode-search.entry.js +2 -2
  214. package/umd/modules/@postnord/web-components/esm/postnord-web-components.js +4 -4
  215. package/umd/modules/@postnord/web-components/hydrate/index.js +3597 -3562
  216. package/umd/modules/@postnord/web-components/hydrate/index.mjs +3597 -3562
  217. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/cli/index.cjs +1 -18
  218. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/cli/index.js +1 -18
  219. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/cli/package.json +1 -1
  220. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/package.json +1 -1
  221. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/stencil.js +70 -12
  222. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/dev-server/client/index.js +1 -1
  223. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/dev-server/client/package.json +1 -1
  224. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/dev-server/connector.html +2 -2
  225. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/dev-server/index.js +1 -1
  226. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/dev-server/package.json +1 -1
  227. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/dev-server/server-process.js +2 -19
  228. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/app-data/package.json +1 -1
  229. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/app-globals/package.json +1 -1
  230. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/client/index.js +214 -1832
  231. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/client/package.json +1 -1
  232. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/client/patch-browser.js +1 -1
  233. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/client/shadow-css.js +3 -3
  234. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/hydrate/index.js +5172 -5086
  235. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/hydrate/package.json +1 -1
  236. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/hydrate/runner.js +234 -263
  237. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/package.json +1 -1
  238. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/stencil-public-compiler.d.ts +10 -0
  239. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/testing/index.js +113 -74
  240. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/testing/jsx-dev-runtime.d.ts +2 -0
  241. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/testing/jsx-dev-runtime.js +8 -0
  242. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/testing/jsx-runtime.d.ts +2 -0
  243. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/testing/jsx-runtime.js +9 -0
  244. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/testing/package.json +1 -1
  245. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/mock-doc/index.cjs +13 -25
  246. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/mock-doc/index.d.ts +4 -3
  247. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/mock-doc/index.js +13 -25
  248. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/mock-doc/package.json +1 -1
  249. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/package.json +13 -2
  250. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/screenshot/index.js +1 -18
  251. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/screenshot/package.json +1 -1
  252. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/screenshot/pixel-match.js +1 -1
  253. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/sys/node/index.js +34 -34
  254. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/sys/node/package.json +1 -1
  255. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/sys/node/worker.js +1 -1
  256. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/index.js +19 -1
  257. package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/package.json +1 -1
  258. package/umd/modules/@postnord/web-components/package.json +19 -19
  259. package/umd/modules/@postnord/web-components/postnord-web-components/index.esm.js +1 -1
  260. package/umd/modules/@postnord/web-components/postnord-web-components/{p-215a8bab.entry.js → p-01ac1c67.entry.js} +1 -1
  261. package/umd/modules/@postnord/web-components/postnord-web-components/p-0dd15cc3.entry.js +5 -0
  262. package/umd/modules/@postnord/web-components/postnord-web-components/{p-f94947bd.entry.js → p-0e94a4dd.entry.js} +1 -1
  263. package/umd/modules/@postnord/web-components/postnord-web-components/{p-511bdc31.entry.js → p-0ed2ee53.entry.js} +1 -1
  264. package/umd/modules/@postnord/web-components/postnord-web-components/{p-e545c35d.entry.js → p-109ba1fc.entry.js} +1 -1
  265. package/umd/modules/@postnord/web-components/postnord-web-components/p-153311c8.entry.js +5 -0
  266. package/umd/modules/@postnord/web-components/postnord-web-components/{p-9d3890d0.entry.js → p-1a3c49ba.entry.js} +1 -1
  267. package/umd/modules/@postnord/web-components/postnord-web-components/{p-c9b8ed0a.entry.js → p-2610f8ab.entry.js} +1 -1
  268. package/umd/modules/@postnord/web-components/postnord-web-components/p-267c323e.entry.js +5 -0
  269. package/umd/modules/@postnord/web-components/postnord-web-components/{p-dfa861a7.entry.js → p-2a364778.entry.js} +1 -1
  270. package/umd/modules/@postnord/web-components/postnord-web-components/{p-5cbd90c0.entry.js → p-2a682ff9.entry.js} +1 -1
  271. package/umd/modules/@postnord/web-components/postnord-web-components/{p-b54f1a65.entry.js → p-2cce8a9f.entry.js} +1 -1
  272. package/umd/modules/@postnord/web-components/postnord-web-components/{p-44a6fe18.entry.js → p-2f4ad4a4.entry.js} +1 -1
  273. package/umd/modules/@postnord/web-components/postnord-web-components/{p-c867fce9.entry.js → p-306ec758.entry.js} +1 -1
  274. package/umd/modules/@postnord/web-components/postnord-web-components/{p-1d7b9fe8.entry.js → p-38e44ed0.entry.js} +1 -1
  275. package/umd/modules/@postnord/web-components/postnord-web-components/{p-66b77e7e.entry.js → p-3c96cb61.entry.js} +1 -1
  276. package/umd/modules/@postnord/web-components/postnord-web-components/{p-7ec29574.entry.js → p-3d2cac86.entry.js} +1 -1
  277. package/umd/modules/@postnord/web-components/postnord-web-components/{p-499ce292.entry.js → p-3d459401.entry.js} +1 -1
  278. package/umd/modules/@postnord/web-components/postnord-web-components/{p-795f8d58.entry.js → p-3deb5a9e.entry.js} +1 -1
  279. package/umd/modules/@postnord/web-components/postnord-web-components/p-41c09d4d.entry.js +5 -0
  280. package/umd/modules/@postnord/web-components/postnord-web-components/p-484dfaa4.entry.js +5 -0
  281. package/umd/modules/@postnord/web-components/postnord-web-components/{p-61af0540.entry.js → p-50116c0d.entry.js} +1 -1
  282. package/umd/modules/@postnord/web-components/postnord-web-components/{p-b8b5201d.entry.js → p-502b8430.entry.js} +1 -1
  283. package/umd/modules/@postnord/web-components/postnord-web-components/{p-96871fc2.entry.js → p-5b7c1333.entry.js} +1 -1
  284. package/umd/modules/@postnord/web-components/postnord-web-components/{p-3bc56c7f.entry.js → p-67f55491.entry.js} +1 -1
  285. package/umd/modules/@postnord/web-components/postnord-web-components/{p-cc1291a6.entry.js → p-838c17b9.entry.js} +1 -1
  286. package/umd/modules/@postnord/web-components/postnord-web-components/{p-e221d65e.entry.js → p-849d48c6.entry.js} +1 -1
  287. package/umd/modules/@postnord/web-components/postnord-web-components/{p-584c2057.entry.js → p-89aaa3c8.entry.js} +1 -1
  288. package/umd/modules/@postnord/web-components/postnord-web-components/{p-2becf18d.entry.js → p-8b2b6f5d.entry.js} +1 -1
  289. package/umd/modules/@postnord/web-components/postnord-web-components/p-93db2b9e.entry.js +5 -0
  290. package/umd/modules/@postnord/web-components/postnord-web-components/{p-99d7a33d.entry.js → p-97ffc4b3.entry.js} +1 -1
  291. package/umd/modules/@postnord/web-components/postnord-web-components/{p-0j4cY0b7.js → p-BlM_xfdt.js} +1 -1
  292. package/umd/modules/@postnord/web-components/postnord-web-components/p-CAEP792y.js +6 -0
  293. package/umd/modules/@postnord/web-components/postnord-web-components/{p-26233654.entry.js → p-b0710b87.entry.js} +1 -1
  294. package/umd/modules/@postnord/web-components/postnord-web-components/p-b3c4e3e8.entry.js +5 -0
  295. package/umd/modules/@postnord/web-components/postnord-web-components/{p-e5d0281b.entry.js → p-b8c4423b.entry.js} +1 -1
  296. package/umd/modules/@postnord/web-components/postnord-web-components/p-ba59528f.entry.js +5 -0
  297. package/umd/modules/@postnord/web-components/postnord-web-components/{p-92aa5cfa.entry.js → p-c0ae367c.entry.js} +1 -1
  298. package/umd/modules/@postnord/web-components/postnord-web-components/{p-ddc430a5.entry.js → p-c4c4c75b.entry.js} +1 -1
  299. package/umd/modules/@postnord/web-components/postnord-web-components/p-c843ae5e.entry.js +5 -0
  300. package/umd/modules/@postnord/web-components/postnord-web-components/{p-323e7706.entry.js → p-d1e27524.entry.js} +1 -1
  301. package/umd/modules/@postnord/web-components/postnord-web-components/{p-190d83cf.entry.js → p-d214e930.entry.js} +1 -1
  302. package/umd/modules/@postnord/web-components/postnord-web-components/{p-66fdb323.entry.js → p-d7091312.entry.js} +1 -1
  303. package/umd/modules/@postnord/web-components/postnord-web-components/{p-8f732dd9.entry.js → p-db2b7e5d.entry.js} +1 -1
  304. package/umd/modules/@postnord/web-components/postnord-web-components/p-e3fb693e.entry.js +5 -0
  305. package/umd/modules/@postnord/web-components/postnord-web-components/{p-10cb744b.entry.js → p-e83de0b1.entry.js} +1 -1
  306. package/umd/modules/@postnord/web-components/postnord-web-components/{p-bde90f4f.entry.js → p-ea50ecd2.entry.js} +1 -1
  307. package/umd/modules/@postnord/web-components/postnord-web-components/{p-1c376e6a.entry.js → p-edc28eee.entry.js} +1 -1
  308. package/umd/modules/@postnord/web-components/postnord-web-components/postnord-web-components.esm.js +1 -1
  309. package/umd/modules/@postnord/web-components/types/components/input/pn-counter/pn-counter.d.ts +27 -26
  310. package/umd/modules/@postnord/web-components/types/components/input/pn-input/pn-input.d.ts +9 -0
  311. package/umd/modules/@postnord/web-components/types/components/input/pn-select/pn-select.d.ts +3 -0
  312. package/umd/modules/@postnord/web-components/types/components/input/pn-textarea/pn-textarea.d.ts +10 -8
  313. package/umd/modules/@postnord/web-components/types/components.d.ts +72 -0
  314. package/umd/modules/@postnord/web-components/vscode-data.json +24 -0
  315. package/umd/pn-marketweb-init.js +1 -1
  316. package/umd/pn-marketweb-salesforce.js +1 -1
  317. package/vscode-data.json +8 -0
  318. package/collection/components/data-visualization/pn-stats-info/pn-stats-info-data/animationHelper.test.js +0 -95
  319. package/collection/components/data-visualization/pn-stats-info/pn-stats-info-data/animationHelper.test.js.map +0 -1
  320. package/pn-market-web-components/p-22a8fd6e.entry.js +0 -2
  321. package/pn-market-web-components/p-22a8fd6e.entry.js.map +0 -1
  322. package/pn-market-web-components/p-8afc2d30.entry.js +0 -2
  323. package/pn-market-web-components/p-8afc2d30.entry.js.map +0 -1
  324. package/pn-market-web-components/p-f97e58b8.entry.js +0 -2
  325. package/pn-market-web-components/p-f97e58b8.entry.js.map +0 -1
  326. package/types/components/data-visualization/pn-stats-info/pn-stats-info-data/animationHelper.test.d.ts +0 -1
  327. package/umd/modules/@postnord/web-components/postnord-web-components/p-1bd12040.entry.js +0 -5
  328. package/umd/modules/@postnord/web-components/postnord-web-components/p-5a36a4ce.entry.js +0 -5
  329. package/umd/modules/@postnord/web-components/postnord-web-components/p-5ca4200c.entry.js +0 -5
  330. package/umd/modules/@postnord/web-components/postnord-web-components/p-8751c301.entry.js +0 -5
  331. package/umd/modules/@postnord/web-components/postnord-web-components/p-DWsprozV.js +0 -6
  332. package/umd/modules/@postnord/web-components/postnord-web-components/p-a6363f85.entry.js +0 -5
  333. package/umd/modules/@postnord/web-components/postnord-web-components/p-b46922c6.entry.js +0 -5
  334. package/umd/modules/@postnord/web-components/postnord-web-components/p-de3ae08d.entry.js +0 -5
  335. package/umd/modules/@postnord/web-components/postnord-web-components/p-e6c7e352.entry.js +0 -5
  336. package/umd/modules/@postnord/web-components/postnord-web-components/p-ee6a305b.entry.js +0 -5
  337. package/umd/modules/@postnord/web-components/postnord-web-components/p-f667cb91.entry.js +0 -5
@@ -6,254 +6,9 @@ const NAMESPACE = 'postnord-web-components';
6
6
  const BUILD = /* postnord-web-components */ { hotModuleReplacement: false, hydratedSelectorName: "hydrated", lazyLoad: true, propChangeCallback: true, shadowDom: false, slotRelocation: true, state: true, updatable: true};
7
7
 
8
8
  /*
9
- Stencil Client Platform v4.41.1 | MIT Licensed | https://stenciljs.com
9
+ Stencil Client Platform v4.41.3 | MIT Licensed | https://stenciljs.com
10
10
  */
11
- var __create = Object.create;
12
- var __defProp = Object.defineProperty;
13
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
14
- var __getOwnPropNames = Object.getOwnPropertyNames;
15
- var __getProtoOf = Object.getPrototypeOf;
16
- var __hasOwnProp = Object.prototype.hasOwnProperty;
17
- var __typeError = (msg) => {
18
- throw TypeError(msg);
19
- };
20
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
21
- var __commonJS = (cb, mod) => function __require() {
22
- return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
23
- };
24
- var __export = (target, all) => {
25
- for (var name in all)
26
- __defProp(target, name, { get: all[name], enumerable: true });
27
- };
28
- var __copyProps = (to, from, except, desc) => {
29
- if (from && typeof from === "object" || typeof from === "function") {
30
- for (let key of __getOwnPropNames(from))
31
- if (!__hasOwnProp.call(to, key) && key !== except)
32
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
33
- }
34
- return to;
35
- };
36
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
37
- // If the importer is in node compatibility mode or this is not an ESM
38
- // file that has been converted to a CommonJS file using a Babel-
39
- // compatible transform (i.e. "__esModule" has not been set), then set
40
- // "default" to the CommonJS "module.exports" for node compatibility.
41
- __defProp(target, "default", { value: mod, enumerable: true }) ,
42
- mod
43
- ));
44
- var __publicField = (obj, key, value) => __defNormalProp(obj, key + "" , value);
45
- var __accessCheck = (obj, member, msg) => member.has(obj) || __typeError("Cannot " + msg);
46
- var __privateGet = (obj, member, getter) => (__accessCheck(obj, member, "read from private field"), getter ? getter.call(obj) : member.get(obj));
47
- 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);
48
- var __privateSet = (obj, member, value, setter) => (__accessCheck(obj, member, "write to private field"), member.set(obj, value), value);
49
- var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "access private method"), method);
50
11
 
51
- // node_modules/balanced-match/index.js
52
- var require_balanced_match = __commonJS({
53
- "node_modules/balanced-match/index.js"(exports, module) {
54
- module.exports = balanced;
55
- function balanced(a, b, str) {
56
- if (a instanceof RegExp) a = maybeMatch(a, str);
57
- if (b instanceof RegExp) b = maybeMatch(b, str);
58
- var r = range(a, b, str);
59
- return r && {
60
- start: r[0],
61
- end: r[1],
62
- pre: str.slice(0, r[0]),
63
- body: str.slice(r[0] + a.length, r[1]),
64
- post: str.slice(r[1] + b.length)
65
- };
66
- }
67
- function maybeMatch(reg, str) {
68
- var m = str.match(reg);
69
- return m ? m[0] : null;
70
- }
71
- balanced.range = range;
72
- function range(a, b, str) {
73
- var begs, beg, left, right, result;
74
- var ai = str.indexOf(a);
75
- var bi = str.indexOf(b, ai + 1);
76
- var i2 = ai;
77
- if (ai >= 0 && bi > 0) {
78
- if (a === b) {
79
- return [ai, bi];
80
- }
81
- begs = [];
82
- left = str.length;
83
- while (i2 >= 0 && !result) {
84
- if (i2 == ai) {
85
- begs.push(i2);
86
- ai = str.indexOf(a, i2 + 1);
87
- } else if (begs.length == 1) {
88
- result = [begs.pop(), bi];
89
- } else {
90
- beg = begs.pop();
91
- if (beg < left) {
92
- left = beg;
93
- right = bi;
94
- }
95
- bi = str.indexOf(b, i2 + 1);
96
- }
97
- i2 = ai < bi && ai >= 0 ? ai : bi;
98
- }
99
- if (begs.length) {
100
- result = [left, right];
101
- }
102
- }
103
- return result;
104
- }
105
- }
106
- });
107
-
108
- // node_modules/brace-expansion/index.js
109
- var require_brace_expansion = __commonJS({
110
- "node_modules/brace-expansion/index.js"(exports, module) {
111
- var balanced = require_balanced_match();
112
- module.exports = expandTop;
113
- var escSlash = "\0SLASH" + Math.random() + "\0";
114
- var escOpen = "\0OPEN" + Math.random() + "\0";
115
- var escClose = "\0CLOSE" + Math.random() + "\0";
116
- var escComma = "\0COMMA" + Math.random() + "\0";
117
- var escPeriod = "\0PERIOD" + Math.random() + "\0";
118
- function numeric(str) {
119
- return parseInt(str, 10) == str ? parseInt(str, 10) : str.charCodeAt(0);
120
- }
121
- function escapeBraces(str) {
122
- return str.split("\\\\").join(escSlash).split("\\{").join(escOpen).split("\\}").join(escClose).split("\\,").join(escComma).split("\\.").join(escPeriod);
123
- }
124
- function unescapeBraces(str) {
125
- return str.split(escSlash).join("\\").split(escOpen).join("{").split(escClose).join("}").split(escComma).join(",").split(escPeriod).join(".");
126
- }
127
- function parseCommaParts(str) {
128
- if (!str)
129
- return [""];
130
- var parts = [];
131
- var m = balanced("{", "}", str);
132
- if (!m)
133
- return str.split(",");
134
- var pre = m.pre;
135
- var body = m.body;
136
- var post = m.post;
137
- var p = pre.split(",");
138
- p[p.length - 1] += "{" + body + "}";
139
- var postParts = parseCommaParts(post);
140
- if (post.length) {
141
- p[p.length - 1] += postParts.shift();
142
- p.push.apply(p, postParts);
143
- }
144
- parts.push.apply(parts, p);
145
- return parts;
146
- }
147
- function expandTop(str) {
148
- if (!str)
149
- return [];
150
- if (str.substr(0, 2) === "{}") {
151
- str = "\\{\\}" + str.substr(2);
152
- }
153
- return expand2(escapeBraces(str), true).map(unescapeBraces);
154
- }
155
- function embrace(str) {
156
- return "{" + str + "}";
157
- }
158
- function isPadded(el) {
159
- return /^-?0\d/.test(el);
160
- }
161
- function lte(i2, y) {
162
- return i2 <= y;
163
- }
164
- function gte(i2, y) {
165
- return i2 >= y;
166
- }
167
- function expand2(str, isTop) {
168
- var expansions = [];
169
- var m = balanced("{", "}", str);
170
- if (!m) return [str];
171
- var pre = m.pre;
172
- var post = m.post.length ? expand2(m.post, false) : [""];
173
- if (/\$$/.test(m.pre)) {
174
- for (var k = 0; k < post.length; k++) {
175
- var expansion = pre + "{" + m.body + "}" + post[k];
176
- expansions.push(expansion);
177
- }
178
- } else {
179
- var isNumericSequence = /^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(m.body);
180
- var isAlphaSequence = /^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(m.body);
181
- var isSequence = isNumericSequence || isAlphaSequence;
182
- var isOptions = m.body.indexOf(",") >= 0;
183
- if (!isSequence && !isOptions) {
184
- if (m.post.match(/,(?!,).*\}/)) {
185
- str = m.pre + "{" + m.body + escClose + m.post;
186
- return expand2(str);
187
- }
188
- return [str];
189
- }
190
- var n;
191
- if (isSequence) {
192
- n = m.body.split(/\.\./);
193
- } else {
194
- n = parseCommaParts(m.body);
195
- if (n.length === 1) {
196
- n = expand2(n[0], false).map(embrace);
197
- if (n.length === 1) {
198
- return post.map(function(p) {
199
- return m.pre + n[0] + p;
200
- });
201
- }
202
- }
203
- }
204
- var N;
205
- if (isSequence) {
206
- var x = numeric(n[0]);
207
- var y = numeric(n[1]);
208
- var width = Math.max(n[0].length, n[1].length);
209
- var incr = n.length == 3 ? Math.abs(numeric(n[2])) : 1;
210
- var test = lte;
211
- var reverse = y < x;
212
- if (reverse) {
213
- incr *= -1;
214
- test = gte;
215
- }
216
- var pad = n.some(isPadded);
217
- N = [];
218
- for (var i2 = x; test(i2, y); i2 += incr) {
219
- var c;
220
- if (isAlphaSequence) {
221
- c = String.fromCharCode(i2);
222
- if (c === "\\")
223
- c = "";
224
- } else {
225
- c = String(i2);
226
- if (pad) {
227
- var need = width - c.length;
228
- if (need > 0) {
229
- var z = new Array(need + 1).join("0");
230
- if (i2 < 0)
231
- c = "-" + z + c.slice(1);
232
- else
233
- c = z + c;
234
- }
235
- }
236
- }
237
- N.push(c);
238
- }
239
- } else {
240
- N = [];
241
- for (var j = 0; j < n.length; j++) {
242
- N.push.apply(N, expand2(n[j], false));
243
- }
244
- }
245
- for (var j = 0; j < N.length; j++) {
246
- for (var k = 0; k < post.length; k++) {
247
- var expansion = pre + N[j] + post[k];
248
- if (!isTop || isSequence || expansion)
249
- expansions.push(expansion);
250
- }
251
- }
252
- }
253
- return expansions;
254
- }
255
- }
256
- });
257
12
 
258
13
  // src/utils/constants.ts
259
14
  var SVG_NS = "http://www.w3.org/2000/svg";
@@ -575,1625 +330,105 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
575
330
  }
576
331
  return importedModule[exportName];
577
332
  },
578
- (e) => {
579
- consoleError(e, hostRef.$hostElement$);
580
- }
581
- );
582
- };
583
-
584
- // src/client/client-style.ts
585
- var styles = /* @__PURE__ */ new Map();
586
-
587
- // src/runtime/runtime-constants.ts
588
- var CONTENT_REF_ID = "r";
589
- var ORG_LOCATION_ID = "o";
590
- var SLOT_NODE_ID = "s";
591
- var TEXT_NODE_ID = "t";
592
- var COMMENT_NODE_ID = "c";
593
- var HYDRATE_ID = "s-id";
594
- var HYDRATED_STYLE_ID = "sty-id";
595
- var HYDRATE_CHILD_ID = "c-id";
596
- var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
597
- var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
598
- var XLINK_NS = "http://www.w3.org/1999/xlink";
599
- var win = typeof window !== "undefined" ? window : {};
600
- var H = win.HTMLElement || class {
601
- };
602
- var plt = {
603
- $flags$: 0,
604
- $resourcesUrl$: "",
605
- jmp: (h2) => h2(),
606
- raf: (h2) => requestAnimationFrame(h2),
607
- ael: (el, eventName, listener, opts) => el.addEventListener(eventName, listener, opts),
608
- rel: (el, eventName, listener, opts) => el.removeEventListener(eventName, listener, opts),
609
- ce: (eventName, opts) => new CustomEvent(eventName, opts)
610
- };
611
- var supportsShadow = BUILD.shadowDom;
612
- var supportsListenerOptions = /* @__PURE__ */ (() => {
613
- var _a;
614
- let supportsListenerOptions2 = false;
615
- try {
616
- (_a = win.document) == null ? void 0 : _a.addEventListener(
617
- "e",
618
- null,
619
- Object.defineProperty({}, "passive", {
620
- get() {
621
- supportsListenerOptions2 = true;
622
- }
623
- })
624
- );
625
- } catch (e) {
626
- }
627
- return supportsListenerOptions2;
628
- })();
629
- var promiseResolve = (v) => Promise.resolve(v);
630
- var supportsConstructableStylesheets = /* @__PURE__ */ (() => {
631
- try {
632
- if (!win.document.adoptedStyleSheets) {
633
- return false;
634
- }
635
- new CSSStyleSheet();
636
- return typeof new CSSStyleSheet().replaceSync === "function";
637
- } catch (e) {
638
- }
639
- return false;
640
- })() ;
641
- var supportsMutableAdoptedStyleSheets = supportsConstructableStylesheets ? /* @__PURE__ */ (() => !!win.document && Object.getOwnPropertyDescriptor(win.document.adoptedStyleSheets, "length").writable)() : false;
642
- var queuePending = false;
643
- var queueDomReads = [];
644
- var queueDomWrites = [];
645
- var queueTask = (queue, write) => (cb) => {
646
- queue.push(cb);
647
- if (!queuePending) {
648
- queuePending = true;
649
- if (write && plt.$flags$ & 4 /* queueSync */) {
650
- nextTick(flush);
651
- } else {
652
- plt.raf(flush);
653
- }
654
- }
655
- };
656
- var consume = (queue) => {
657
- for (let i2 = 0; i2 < queue.length; i2++) {
658
- try {
659
- queue[i2](performance.now());
660
- } catch (e) {
661
- consoleError(e);
662
- }
663
- }
664
- queue.length = 0;
665
- };
666
- var flush = () => {
667
- consume(queueDomReads);
668
- {
669
- consume(queueDomWrites);
670
- if (queuePending = queueDomReads.length > 0) {
671
- plt.raf(flush);
672
- }
673
- }
674
- };
675
- var nextTick = (cb) => promiseResolve().then(cb);
676
- var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
677
- var isComplexType = (o) => {
678
- o = typeof o;
679
- return o === "object" || o === "function";
680
- };
681
-
682
- // node_modules/minimatch/dist/esm/index.js
683
- var import_brace_expansion = __toESM(require_brace_expansion());
684
-
685
- // node_modules/minimatch/dist/esm/assert-valid-pattern.js
686
- var MAX_PATTERN_LENGTH = 1024 * 64;
687
- var assertValidPattern = (pattern) => {
688
- if (typeof pattern !== "string") {
689
- throw new TypeError("invalid pattern");
690
- }
691
- if (pattern.length > MAX_PATTERN_LENGTH) {
692
- throw new TypeError("pattern is too long");
693
- }
694
- };
695
-
696
- // node_modules/minimatch/dist/esm/brace-expressions.js
697
- var posixClasses = {
698
- "[:alnum:]": ["\\p{L}\\p{Nl}\\p{Nd}", true],
699
- "[:alpha:]": ["\\p{L}\\p{Nl}", true],
700
- "[:ascii:]": ["\\x00-\\x7f", false],
701
- "[:blank:]": ["\\p{Zs}\\t", true],
702
- "[:cntrl:]": ["\\p{Cc}", true],
703
- "[:digit:]": ["\\p{Nd}", true],
704
- "[:graph:]": ["\\p{Z}\\p{C}", true, true],
705
- "[:lower:]": ["\\p{Ll}", true],
706
- "[:print:]": ["\\p{C}", true],
707
- "[:punct:]": ["\\p{P}", true],
708
- "[:space:]": ["\\p{Z}\\t\\r\\n\\v\\f", true],
709
- "[:upper:]": ["\\p{Lu}", true],
710
- "[:word:]": ["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}", true],
711
- "[:xdigit:]": ["A-Fa-f0-9", false]
712
- };
713
- var braceEscape = (s) => s.replace(/[[\]\\-]/g, "\\$&");
714
- var regexpEscape = (s) => s.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&");
715
- var rangesToString = (ranges) => ranges.join("");
716
- var parseClass = (glob, position) => {
717
- const pos = position;
718
- if (glob.charAt(pos) !== "[") {
719
- throw new Error("not in a brace expression");
720
- }
721
- const ranges = [];
722
- const negs = [];
723
- let i2 = pos + 1;
724
- let sawStart = false;
725
- let uflag = false;
726
- let escaping = false;
727
- let negate = false;
728
- let endPos = pos;
729
- let rangeStart = "";
730
- WHILE: while (i2 < glob.length) {
731
- const c = glob.charAt(i2);
732
- if ((c === "!" || c === "^") && i2 === pos + 1) {
733
- negate = true;
734
- i2++;
735
- continue;
736
- }
737
- if (c === "]" && sawStart && !escaping) {
738
- endPos = i2 + 1;
739
- break;
740
- }
741
- sawStart = true;
742
- if (c === "\\") {
743
- if (!escaping) {
744
- escaping = true;
745
- i2++;
746
- continue;
747
- }
748
- }
749
- if (c === "[" && !escaping) {
750
- for (const [cls, [unip, u, neg]] of Object.entries(posixClasses)) {
751
- if (glob.startsWith(cls, i2)) {
752
- if (rangeStart) {
753
- return ["$.", false, glob.length - pos, true];
754
- }
755
- i2 += cls.length;
756
- if (neg)
757
- negs.push(unip);
758
- else
759
- ranges.push(unip);
760
- uflag = uflag || u;
761
- continue WHILE;
762
- }
763
- }
764
- }
765
- escaping = false;
766
- if (rangeStart) {
767
- if (c > rangeStart) {
768
- ranges.push(braceEscape(rangeStart) + "-" + braceEscape(c));
769
- } else if (c === rangeStart) {
770
- ranges.push(braceEscape(c));
771
- }
772
- rangeStart = "";
773
- i2++;
774
- continue;
775
- }
776
- if (glob.startsWith("-]", i2 + 1)) {
777
- ranges.push(braceEscape(c + "-"));
778
- i2 += 2;
779
- continue;
780
- }
781
- if (glob.startsWith("-", i2 + 1)) {
782
- rangeStart = c;
783
- i2 += 2;
784
- continue;
785
- }
786
- ranges.push(braceEscape(c));
787
- i2++;
788
- }
789
- if (endPos < i2) {
790
- return ["", false, 0, false];
791
- }
792
- if (!ranges.length && !negs.length) {
793
- return ["$.", false, glob.length - pos, true];
794
- }
795
- if (negs.length === 0 && ranges.length === 1 && /^\\?.$/.test(ranges[0]) && !negate) {
796
- const r = ranges[0].length === 2 ? ranges[0].slice(-1) : ranges[0];
797
- return [regexpEscape(r), false, endPos - pos, false];
798
- }
799
- const sranges = "[" + (negate ? "^" : "") + rangesToString(ranges) + "]";
800
- const snegs = "[" + (negate ? "" : "^") + rangesToString(negs) + "]";
801
- const comb = ranges.length && negs.length ? "(" + sranges + "|" + snegs + ")" : ranges.length ? sranges : snegs;
802
- return [comb, uflag, endPos - pos, true];
803
- };
804
-
805
- // node_modules/minimatch/dist/esm/unescape.js
806
- var unescape = (s, { windowsPathsNoEscape = false } = {}) => {
807
- return windowsPathsNoEscape ? s.replace(/\[([^\/\\])\]/g, "$1") : s.replace(/((?!\\).|^)\[([^\/\\])\]/g, "$1$2").replace(/\\([^\/])/g, "$1");
808
- };
809
-
810
- // node_modules/minimatch/dist/esm/ast.js
811
- var types = /* @__PURE__ */ new Set(["!", "?", "+", "*", "@"]);
812
- var isExtglobType = (c) => types.has(c);
813
- var startNoTraversal = "(?!(?:^|/)\\.\\.?(?:$|/))";
814
- var startNoDot = "(?!\\.)";
815
- var addPatternStart = /* @__PURE__ */ new Set(["[", "."]);
816
- var justDots = /* @__PURE__ */ new Set(["..", "."]);
817
- var reSpecials = new Set("().*{}+?[]^$\\!");
818
- var regExpEscape = (s) => s.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&");
819
- var qmark = "[^/]";
820
- var star = qmark + "*?";
821
- var starNoEmpty = qmark + "+?";
822
- var _root, _hasMagic, _uflag, _parts, _parent, _parentIndex, _negs, _filledNegs, _options, _toString, _emptyExt, _AST_instances, fillNegs_fn, _AST_static, parseAST_fn, partsToRegExp_fn, parseGlob_fn;
823
- var _AST = class _AST {
824
- constructor(type, parent, options = {}) {
825
- __privateAdd(this, _AST_instances);
826
- __publicField(this, "type");
827
- __privateAdd(this, _root);
828
- __privateAdd(this, _hasMagic);
829
- __privateAdd(this, _uflag, false);
830
- __privateAdd(this, _parts, []);
831
- __privateAdd(this, _parent);
832
- __privateAdd(this, _parentIndex);
833
- __privateAdd(this, _negs);
834
- __privateAdd(this, _filledNegs, false);
835
- __privateAdd(this, _options);
836
- __privateAdd(this, _toString);
837
- // set to true if it's an extglob with no children
838
- // (which really means one child of '')
839
- __privateAdd(this, _emptyExt, false);
840
- this.type = type;
841
- if (type)
842
- __privateSet(this, _hasMagic, true);
843
- __privateSet(this, _parent, parent);
844
- __privateSet(this, _root, __privateGet(this, _parent) ? __privateGet(__privateGet(this, _parent), _root) : this);
845
- __privateSet(this, _options, __privateGet(this, _root) === this ? options : __privateGet(__privateGet(this, _root), _options));
846
- __privateSet(this, _negs, __privateGet(this, _root) === this ? [] : __privateGet(__privateGet(this, _root), _negs));
847
- if (type === "!" && !__privateGet(__privateGet(this, _root), _filledNegs))
848
- __privateGet(this, _negs).push(this);
849
- __privateSet(this, _parentIndex, __privateGet(this, _parent) ? __privateGet(__privateGet(this, _parent), _parts).length : 0);
850
- }
851
- get hasMagic() {
852
- if (__privateGet(this, _hasMagic) !== void 0)
853
- return __privateGet(this, _hasMagic);
854
- for (const p of __privateGet(this, _parts)) {
855
- if (typeof p === "string")
856
- continue;
857
- if (p.type || p.hasMagic)
858
- return __privateSet(this, _hasMagic, true);
859
- }
860
- return __privateGet(this, _hasMagic);
861
- }
862
- // reconstructs the pattern
863
- toString() {
864
- if (__privateGet(this, _toString) !== void 0)
865
- return __privateGet(this, _toString);
866
- if (!this.type) {
867
- return __privateSet(this, _toString, __privateGet(this, _parts).map((p) => String(p)).join(""));
868
- } else {
869
- return __privateSet(this, _toString, this.type + "(" + __privateGet(this, _parts).map((p) => String(p)).join("|") + ")");
870
- }
871
- }
872
- push(...parts) {
873
- for (const p of parts) {
874
- if (p === "")
875
- continue;
876
- if (typeof p !== "string" && !(p instanceof _AST && __privateGet(p, _parent) === this)) {
877
- throw new Error("invalid part: " + p);
878
- }
879
- __privateGet(this, _parts).push(p);
880
- }
881
- }
882
- toJSON() {
883
- var _a;
884
- 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())];
885
- if (this.isStart() && !this.type)
886
- ret.unshift([]);
887
- if (this.isEnd() && (this === __privateGet(this, _root) || __privateGet(__privateGet(this, _root), _filledNegs) && ((_a = __privateGet(this, _parent)) == null ? void 0 : _a.type) === "!")) {
888
- ret.push({});
889
- }
890
- return ret;
891
- }
892
- isStart() {
893
- var _a;
894
- if (__privateGet(this, _root) === this)
895
- return true;
896
- if (!((_a = __privateGet(this, _parent)) == null ? void 0 : _a.isStart()))
897
- return false;
898
- if (__privateGet(this, _parentIndex) === 0)
899
- return true;
900
- const p = __privateGet(this, _parent);
901
- for (let i2 = 0; i2 < __privateGet(this, _parentIndex); i2++) {
902
- const pp = __privateGet(p, _parts)[i2];
903
- if (!(pp instanceof _AST && pp.type === "!")) {
904
- return false;
905
- }
906
- }
907
- return true;
908
- }
909
- isEnd() {
910
- var _a, _b, _c;
911
- if (__privateGet(this, _root) === this)
912
- return true;
913
- if (((_a = __privateGet(this, _parent)) == null ? void 0 : _a.type) === "!")
914
- return true;
915
- if (!((_b = __privateGet(this, _parent)) == null ? void 0 : _b.isEnd()))
916
- return false;
917
- if (!this.type)
918
- return (_c = __privateGet(this, _parent)) == null ? void 0 : _c.isEnd();
919
- const pl = __privateGet(this, _parent) ? __privateGet(__privateGet(this, _parent), _parts).length : 0;
920
- return __privateGet(this, _parentIndex) === pl - 1;
921
- }
922
- copyIn(part) {
923
- if (typeof part === "string")
924
- this.push(part);
925
- else
926
- this.push(part.clone(this));
927
- }
928
- clone(parent) {
929
- const c = new _AST(this.type, parent);
930
- for (const p of __privateGet(this, _parts)) {
931
- c.copyIn(p);
932
- }
933
- return c;
934
- }
935
- static fromGlob(pattern, options = {}) {
936
- var _a;
937
- const ast = new _AST(null, void 0, options);
938
- __privateMethod(_a = _AST, _AST_static, parseAST_fn).call(_a, pattern, ast, 0, options);
939
- return ast;
940
- }
941
- // returns the regular expression if there's magic, or the unescaped
942
- // string if not.
943
- toMMPattern() {
944
- if (this !== __privateGet(this, _root))
945
- return __privateGet(this, _root).toMMPattern();
946
- const glob = this.toString();
947
- const [re, body, hasMagic, uflag] = this.toRegExpSource();
948
- const anyMagic = hasMagic || __privateGet(this, _hasMagic) || __privateGet(this, _options).nocase && !__privateGet(this, _options).nocaseMagicOnly && glob.toUpperCase() !== glob.toLowerCase();
949
- if (!anyMagic) {
950
- return body;
951
- }
952
- const flags = (__privateGet(this, _options).nocase ? "i" : "") + (uflag ? "u" : "");
953
- return Object.assign(new RegExp(`^${re}$`, flags), {
954
- _src: re,
955
- _glob: glob
956
- });
957
- }
958
- get options() {
959
- return __privateGet(this, _options);
960
- }
961
- // returns the string match, the regexp source, whether there's magic
962
- // in the regexp (so a regular expression is required) and whether or
963
- // not the uflag is needed for the regular expression (for posix classes)
964
- // TODO: instead of injecting the start/end at this point, just return
965
- // the BODY of the regexp, along with the start/end portions suitable
966
- // for binding the start/end in either a joined full-path makeRe context
967
- // (where we bind to (^|/), or a standalone matchPart context (where
968
- // we bind to ^, and not /). Otherwise slashes get duped!
969
- //
970
- // In part-matching mode, the start is:
971
- // - if not isStart: nothing
972
- // - if traversal possible, but not allowed: ^(?!\.\.?$)
973
- // - if dots allowed or not possible: ^
974
- // - if dots possible and not allowed: ^(?!\.)
975
- // end is:
976
- // - if not isEnd(): nothing
977
- // - else: $
978
- //
979
- // In full-path matching mode, we put the slash at the START of the
980
- // pattern, so start is:
981
- // - if first pattern: same as part-matching mode
982
- // - if not isStart(): nothing
983
- // - if traversal possible, but not allowed: /(?!\.\.?(?:$|/))
984
- // - if dots allowed or not possible: /
985
- // - if dots possible and not allowed: /(?!\.)
986
- // end is:
987
- // - if last pattern, same as part-matching mode
988
- // - else nothing
989
- //
990
- // Always put the (?:$|/) on negated tails, though, because that has to be
991
- // there to bind the end of the negated pattern portion, and it's easier to
992
- // just stick it in now rather than try to inject it later in the middle of
993
- // the pattern.
994
- //
995
- // We can just always return the same end, and leave it up to the caller
996
- // to know whether it's going to be used joined or in parts.
997
- // And, if the start is adjusted slightly, can do the same there:
998
- // - if not isStart: nothing
999
- // - if traversal possible, but not allowed: (?:/|^)(?!\.\.?$)
1000
- // - if dots allowed or not possible: (?:/|^)
1001
- // - if dots possible and not allowed: (?:/|^)(?!\.)
1002
- //
1003
- // But it's better to have a simpler binding without a conditional, for
1004
- // performance, so probably better to return both start options.
1005
- //
1006
- // Then the caller just ignores the end if it's not the first pattern,
1007
- // and the start always gets applied.
1008
- //
1009
- // But that's always going to be $ if it's the ending pattern, or nothing,
1010
- // so the caller can just attach $ at the end of the pattern when building.
1011
- //
1012
- // So the todo is:
1013
- // - better detect what kind of start is needed
1014
- // - return both flavors of starting pattern
1015
- // - attach $ at the end of the pattern when creating the actual RegExp
1016
- //
1017
- // Ah, but wait, no, that all only applies to the root when the first pattern
1018
- // is not an extglob. If the first pattern IS an extglob, then we need all
1019
- // that dot prevention biz to live in the extglob portions, because eg
1020
- // +(*|.x*) can match .xy but not .yx.
1021
- //
1022
- // So, return the two flavors if it's #root and the first child is not an
1023
- // AST, otherwise leave it to the child AST to handle it, and there,
1024
- // use the (?:^|/) style of start binding.
1025
- //
1026
- // Even simplified further:
1027
- // - Since the start for a join is eg /(?!\.) and the start for a part
1028
- // is ^(?!\.), we can just prepend (?!\.) to the pattern (either root
1029
- // or start or whatever) and prepend ^ or / at the Regexp construction.
1030
- toRegExpSource(allowDot) {
1031
- var _a;
1032
- const dot = allowDot != null ? allowDot : !!__privateGet(this, _options).dot;
1033
- if (__privateGet(this, _root) === this)
1034
- __privateMethod(this, _AST_instances, fillNegs_fn).call(this);
1035
- if (!this.type) {
1036
- const noEmpty = this.isStart() && this.isEnd();
1037
- const src = __privateGet(this, _parts).map((p) => {
1038
- var _a2;
1039
- const [re, _, hasMagic, uflag] = typeof p === "string" ? __privateMethod(_a2 = _AST, _AST_static, parseGlob_fn).call(_a2, p, __privateGet(this, _hasMagic), noEmpty) : p.toRegExpSource(allowDot);
1040
- __privateSet(this, _hasMagic, __privateGet(this, _hasMagic) || hasMagic);
1041
- __privateSet(this, _uflag, __privateGet(this, _uflag) || uflag);
1042
- return re;
1043
- }).join("");
1044
- let start2 = "";
1045
- if (this.isStart()) {
1046
- if (typeof __privateGet(this, _parts)[0] === "string") {
1047
- const dotTravAllowed = __privateGet(this, _parts).length === 1 && justDots.has(__privateGet(this, _parts)[0]);
1048
- if (!dotTravAllowed) {
1049
- const aps = addPatternStart;
1050
- const needNoTrav = (
1051
- // dots are allowed, and the pattern starts with [ or .
1052
- dot && aps.has(src.charAt(0)) || // the pattern starts with \., and then [ or .
1053
- src.startsWith("\\.") && aps.has(src.charAt(2)) || // the pattern starts with \.\., and then [ or .
1054
- src.startsWith("\\.\\.") && aps.has(src.charAt(4))
1055
- );
1056
- const needNoDot = !dot && !allowDot && aps.has(src.charAt(0));
1057
- start2 = needNoTrav ? startNoTraversal : needNoDot ? startNoDot : "";
1058
- }
1059
- }
1060
- }
1061
- let end = "";
1062
- if (this.isEnd() && __privateGet(__privateGet(this, _root), _filledNegs) && ((_a = __privateGet(this, _parent)) == null ? void 0 : _a.type) === "!") {
1063
- end = "(?:$|\\/)";
1064
- }
1065
- const final2 = start2 + src + end;
1066
- return [
1067
- final2,
1068
- unescape(src),
1069
- __privateSet(this, _hasMagic, !!__privateGet(this, _hasMagic)),
1070
- __privateGet(this, _uflag)
1071
- ];
1072
- }
1073
- const repeated = this.type === "*" || this.type === "+";
1074
- const start = this.type === "!" ? "(?:(?!(?:" : "(?:";
1075
- let body = __privateMethod(this, _AST_instances, partsToRegExp_fn).call(this, dot);
1076
- if (this.isStart() && this.isEnd() && !body && this.type !== "!") {
1077
- const s = this.toString();
1078
- __privateSet(this, _parts, [s]);
1079
- this.type = null;
1080
- __privateSet(this, _hasMagic, void 0);
1081
- return [s, unescape(this.toString()), false, false];
1082
- }
1083
- let bodyDotAllowed = !repeated || allowDot || dot || false ? "" : __privateMethod(this, _AST_instances, partsToRegExp_fn).call(this, true);
1084
- if (bodyDotAllowed === body) {
1085
- bodyDotAllowed = "";
1086
- }
1087
- if (bodyDotAllowed) {
1088
- body = `(?:${body})(?:${bodyDotAllowed})*?`;
1089
- }
1090
- let final = "";
1091
- if (this.type === "!" && __privateGet(this, _emptyExt)) {
1092
- final = (this.isStart() && !dot ? startNoDot : "") + starNoEmpty;
1093
- } else {
1094
- const close = this.type === "!" ? (
1095
- // !() must match something,but !(x) can match ''
1096
- "))" + (this.isStart() && !dot && !allowDot ? startNoDot : "") + star + ")"
1097
- ) : this.type === "@" ? ")" : this.type === "?" ? ")?" : this.type === "+" && bodyDotAllowed ? ")" : this.type === "*" && bodyDotAllowed ? `)?` : `)${this.type}`;
1098
- final = start + body + close;
1099
- }
1100
- return [
1101
- final,
1102
- unescape(body),
1103
- __privateSet(this, _hasMagic, !!__privateGet(this, _hasMagic)),
1104
- __privateGet(this, _uflag)
1105
- ];
1106
- }
1107
- };
1108
- _root = new WeakMap();
1109
- _hasMagic = new WeakMap();
1110
- _uflag = new WeakMap();
1111
- _parts = new WeakMap();
1112
- _parent = new WeakMap();
1113
- _parentIndex = new WeakMap();
1114
- _negs = new WeakMap();
1115
- _filledNegs = new WeakMap();
1116
- _options = new WeakMap();
1117
- _toString = new WeakMap();
1118
- _emptyExt = new WeakMap();
1119
- _AST_instances = new WeakSet();
1120
- fillNegs_fn = function() {
1121
- if (this !== __privateGet(this, _root))
1122
- throw new Error("should only call on root");
1123
- if (__privateGet(this, _filledNegs))
1124
- return this;
1125
- this.toString();
1126
- __privateSet(this, _filledNegs, true);
1127
- let n;
1128
- while (n = __privateGet(this, _negs).pop()) {
1129
- if (n.type !== "!")
1130
- continue;
1131
- let p = n;
1132
- let pp = __privateGet(p, _parent);
1133
- while (pp) {
1134
- for (let i2 = __privateGet(p, _parentIndex) + 1; !pp.type && i2 < __privateGet(pp, _parts).length; i2++) {
1135
- for (const part of __privateGet(n, _parts)) {
1136
- if (typeof part === "string") {
1137
- throw new Error("string part in extglob AST??");
1138
- }
1139
- part.copyIn(__privateGet(pp, _parts)[i2]);
1140
- }
1141
- }
1142
- p = pp;
1143
- pp = __privateGet(p, _parent);
1144
- }
1145
- }
1146
- return this;
1147
- };
1148
- _AST_static = new WeakSet();
1149
- parseAST_fn = function(str, ast, pos, opt) {
1150
- var _a, _b;
1151
- let escaping = false;
1152
- let inBrace = false;
1153
- let braceStart = -1;
1154
- let braceNeg = false;
1155
- if (ast.type === null) {
1156
- let i3 = pos;
1157
- let acc2 = "";
1158
- while (i3 < str.length) {
1159
- const c = str.charAt(i3++);
1160
- if (escaping || c === "\\") {
1161
- escaping = !escaping;
1162
- acc2 += c;
1163
- continue;
1164
- }
1165
- if (inBrace) {
1166
- if (i3 === braceStart + 1) {
1167
- if (c === "^" || c === "!") {
1168
- braceNeg = true;
1169
- }
1170
- } else if (c === "]" && !(i3 === braceStart + 2 && braceNeg)) {
1171
- inBrace = false;
1172
- }
1173
- acc2 += c;
1174
- continue;
1175
- } else if (c === "[") {
1176
- inBrace = true;
1177
- braceStart = i3;
1178
- braceNeg = false;
1179
- acc2 += c;
1180
- continue;
1181
- }
1182
- if (!opt.noext && isExtglobType(c) && str.charAt(i3) === "(") {
1183
- ast.push(acc2);
1184
- acc2 = "";
1185
- const ext2 = new _AST(c, ast);
1186
- i3 = __privateMethod(_a = _AST, _AST_static, parseAST_fn).call(_a, str, ext2, i3, opt);
1187
- ast.push(ext2);
1188
- continue;
1189
- }
1190
- acc2 += c;
1191
- }
1192
- ast.push(acc2);
1193
- return i3;
1194
- }
1195
- let i2 = pos + 1;
1196
- let part = new _AST(null, ast);
1197
- const parts = [];
1198
- let acc = "";
1199
- while (i2 < str.length) {
1200
- const c = str.charAt(i2++);
1201
- if (escaping || c === "\\") {
1202
- escaping = !escaping;
1203
- acc += c;
1204
- continue;
1205
- }
1206
- if (inBrace) {
1207
- if (i2 === braceStart + 1) {
1208
- if (c === "^" || c === "!") {
1209
- braceNeg = true;
1210
- }
1211
- } else if (c === "]" && !(i2 === braceStart + 2 && braceNeg)) {
1212
- inBrace = false;
1213
- }
1214
- acc += c;
1215
- continue;
1216
- } else if (c === "[") {
1217
- inBrace = true;
1218
- braceStart = i2;
1219
- braceNeg = false;
1220
- acc += c;
1221
- continue;
1222
- }
1223
- if (isExtglobType(c) && str.charAt(i2) === "(") {
1224
- part.push(acc);
1225
- acc = "";
1226
- const ext2 = new _AST(c, part);
1227
- part.push(ext2);
1228
- i2 = __privateMethod(_b = _AST, _AST_static, parseAST_fn).call(_b, str, ext2, i2, opt);
1229
- continue;
1230
- }
1231
- if (c === "|") {
1232
- part.push(acc);
1233
- acc = "";
1234
- parts.push(part);
1235
- part = new _AST(null, ast);
1236
- continue;
1237
- }
1238
- if (c === ")") {
1239
- if (acc === "" && __privateGet(ast, _parts).length === 0) {
1240
- __privateSet(ast, _emptyExt, true);
1241
- }
1242
- part.push(acc);
1243
- acc = "";
1244
- ast.push(...parts, part);
1245
- return i2;
1246
- }
1247
- acc += c;
1248
- }
1249
- ast.type = null;
1250
- __privateSet(ast, _hasMagic, void 0);
1251
- __privateSet(ast, _parts, [str.substring(pos - 1)]);
1252
- return i2;
1253
- };
1254
- partsToRegExp_fn = function(dot) {
1255
- return __privateGet(this, _parts).map((p) => {
1256
- if (typeof p === "string") {
1257
- throw new Error("string type in extglob ast??");
1258
- }
1259
- const [re, _, _hasMagic2, uflag] = p.toRegExpSource(dot);
1260
- __privateSet(this, _uflag, __privateGet(this, _uflag) || uflag);
1261
- return re;
1262
- }).filter((p) => !(this.isStart() && this.isEnd()) || !!p).join("|");
1263
- };
1264
- parseGlob_fn = function(glob, hasMagic, noEmpty = false) {
1265
- let escaping = false;
1266
- let re = "";
1267
- let uflag = false;
1268
- for (let i2 = 0; i2 < glob.length; i2++) {
1269
- const c = glob.charAt(i2);
1270
- if (escaping) {
1271
- escaping = false;
1272
- re += (reSpecials.has(c) ? "\\" : "") + c;
1273
- continue;
1274
- }
1275
- if (c === "\\") {
1276
- if (i2 === glob.length - 1) {
1277
- re += "\\\\";
1278
- } else {
1279
- escaping = true;
1280
- }
1281
- continue;
1282
- }
1283
- if (c === "[") {
1284
- const [src, needUflag, consumed, magic] = parseClass(glob, i2);
1285
- if (consumed) {
1286
- re += src;
1287
- uflag = uflag || needUflag;
1288
- i2 += consumed - 1;
1289
- hasMagic = hasMagic || magic;
1290
- continue;
1291
- }
1292
- }
1293
- if (c === "*") {
1294
- if (noEmpty && glob === "*")
1295
- re += starNoEmpty;
1296
- else
1297
- re += star;
1298
- hasMagic = true;
1299
- continue;
1300
- }
1301
- if (c === "?") {
1302
- re += qmark;
1303
- hasMagic = true;
1304
- continue;
1305
- }
1306
- re += regExpEscape(c);
1307
- }
1308
- return [re, unescape(glob), !!hasMagic, uflag];
1309
- };
1310
- __privateAdd(_AST, _AST_static);
1311
- var AST = _AST;
1312
-
1313
- // node_modules/minimatch/dist/esm/escape.js
1314
- var escape = (s, { windowsPathsNoEscape = false } = {}) => {
1315
- return windowsPathsNoEscape ? s.replace(/[?*()[\]]/g, "[$&]") : s.replace(/[?*()[\]\\]/g, "\\$&");
1316
- };
1317
-
1318
- // node_modules/minimatch/dist/esm/index.js
1319
- var minimatch = (p, pattern, options = {}) => {
1320
- assertValidPattern(pattern);
1321
- if (!options.nocomment && pattern.charAt(0) === "#") {
1322
- return false;
1323
- }
1324
- return new Minimatch(pattern, options).match(p);
1325
- };
1326
- var starDotExtRE = /^\*+([^+@!?\*\[\(]*)$/;
1327
- var starDotExtTest = (ext2) => (f) => !f.startsWith(".") && f.endsWith(ext2);
1328
- var starDotExtTestDot = (ext2) => (f) => f.endsWith(ext2);
1329
- var starDotExtTestNocase = (ext2) => {
1330
- ext2 = ext2.toLowerCase();
1331
- return (f) => !f.startsWith(".") && f.toLowerCase().endsWith(ext2);
1332
- };
1333
- var starDotExtTestNocaseDot = (ext2) => {
1334
- ext2 = ext2.toLowerCase();
1335
- return (f) => f.toLowerCase().endsWith(ext2);
1336
- };
1337
- var starDotStarRE = /^\*+\.\*+$/;
1338
- var starDotStarTest = (f) => !f.startsWith(".") && f.includes(".");
1339
- var starDotStarTestDot = (f) => f !== "." && f !== ".." && f.includes(".");
1340
- var dotStarRE = /^\.\*+$/;
1341
- var dotStarTest = (f) => f !== "." && f !== ".." && f.startsWith(".");
1342
- var starRE = /^\*+$/;
1343
- var starTest = (f) => f.length !== 0 && !f.startsWith(".");
1344
- var starTestDot = (f) => f.length !== 0 && f !== "." && f !== "..";
1345
- var qmarksRE = /^\?+([^+@!?\*\[\(]*)?$/;
1346
- var qmarksTestNocase = ([$0, ext2 = ""]) => {
1347
- const noext = qmarksTestNoExt([$0]);
1348
- if (!ext2)
1349
- return noext;
1350
- ext2 = ext2.toLowerCase();
1351
- return (f) => noext(f) && f.toLowerCase().endsWith(ext2);
1352
- };
1353
- var qmarksTestNocaseDot = ([$0, ext2 = ""]) => {
1354
- const noext = qmarksTestNoExtDot([$0]);
1355
- if (!ext2)
1356
- return noext;
1357
- ext2 = ext2.toLowerCase();
1358
- return (f) => noext(f) && f.toLowerCase().endsWith(ext2);
1359
- };
1360
- var qmarksTestDot = ([$0, ext2 = ""]) => {
1361
- const noext = qmarksTestNoExtDot([$0]);
1362
- return !ext2 ? noext : (f) => noext(f) && f.endsWith(ext2);
1363
- };
1364
- var qmarksTest = ([$0, ext2 = ""]) => {
1365
- const noext = qmarksTestNoExt([$0]);
1366
- return !ext2 ? noext : (f) => noext(f) && f.endsWith(ext2);
1367
- };
1368
- var qmarksTestNoExt = ([$0]) => {
1369
- const len = $0.length;
1370
- return (f) => f.length === len && !f.startsWith(".");
1371
- };
1372
- var qmarksTestNoExtDot = ([$0]) => {
1373
- const len = $0.length;
1374
- return (f) => f.length === len && f !== "." && f !== "..";
1375
- };
1376
- var defaultPlatform = typeof process === "object" && process ? typeof process.env === "object" && process.env && process.env.__MINIMATCH_TESTING_PLATFORM__ || process.platform : "posix";
1377
- var path = {
1378
- win32: { sep: "\\" },
1379
- posix: { sep: "/" }
1380
- };
1381
- var sep = defaultPlatform === "win32" ? path.win32.sep : path.posix.sep;
1382
- minimatch.sep = sep;
1383
- var GLOBSTAR = Symbol("globstar **");
1384
- minimatch.GLOBSTAR = GLOBSTAR;
1385
- var qmark2 = "[^/]";
1386
- var star2 = qmark2 + "*?";
1387
- var twoStarDot = "(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?";
1388
- var twoStarNoDot = "(?:(?!(?:\\/|^)\\.).)*?";
1389
- var filter = (pattern, options = {}) => (p) => minimatch(p, pattern, options);
1390
- minimatch.filter = filter;
1391
- var ext = (a, b = {}) => Object.assign({}, a, b);
1392
- var defaults = (def) => {
1393
- if (!def || typeof def !== "object" || !Object.keys(def).length) {
1394
- return minimatch;
1395
- }
1396
- const orig = minimatch;
1397
- const m = (p, pattern, options = {}) => orig(p, pattern, ext(def, options));
1398
- return Object.assign(m, {
1399
- Minimatch: class Minimatch extends orig.Minimatch {
1400
- constructor(pattern, options = {}) {
1401
- super(pattern, ext(def, options));
1402
- }
1403
- static defaults(options) {
1404
- return orig.defaults(ext(def, options)).Minimatch;
1405
- }
1406
- },
1407
- AST: class AST extends orig.AST {
1408
- /* c8 ignore start */
1409
- constructor(type, parent, options = {}) {
1410
- super(type, parent, ext(def, options));
1411
- }
1412
- /* c8 ignore stop */
1413
- static fromGlob(pattern, options = {}) {
1414
- return orig.AST.fromGlob(pattern, ext(def, options));
1415
- }
1416
- },
1417
- unescape: (s, options = {}) => orig.unescape(s, ext(def, options)),
1418
- escape: (s, options = {}) => orig.escape(s, ext(def, options)),
1419
- filter: (pattern, options = {}) => orig.filter(pattern, ext(def, options)),
1420
- defaults: (options) => orig.defaults(ext(def, options)),
1421
- makeRe: (pattern, options = {}) => orig.makeRe(pattern, ext(def, options)),
1422
- braceExpand: (pattern, options = {}) => orig.braceExpand(pattern, ext(def, options)),
1423
- match: (list, pattern, options = {}) => orig.match(list, pattern, ext(def, options)),
1424
- sep: orig.sep,
1425
- GLOBSTAR
1426
- });
1427
- };
1428
- minimatch.defaults = defaults;
1429
- var braceExpand = (pattern, options = {}) => {
1430
- assertValidPattern(pattern);
1431
- if (options.nobrace || !/\{(?:(?!\{).)*\}/.test(pattern)) {
1432
- return [pattern];
1433
- }
1434
- return (0, import_brace_expansion.default)(pattern);
1435
- };
1436
- minimatch.braceExpand = braceExpand;
1437
- var makeRe = (pattern, options = {}) => new Minimatch(pattern, options).makeRe();
1438
- minimatch.makeRe = makeRe;
1439
- var match = (list, pattern, options = {}) => {
1440
- const mm = new Minimatch(pattern, options);
1441
- list = list.filter((f) => mm.match(f));
1442
- if (mm.options.nonull && !list.length) {
1443
- list.push(pattern);
1444
- }
1445
- return list;
1446
- };
1447
- minimatch.match = match;
1448
- var globMagic = /[?*]|[+@!]\(.*?\)|\[|\]/;
1449
- var regExpEscape2 = (s) => s.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&");
1450
- var Minimatch = class {
1451
- options;
1452
- set;
1453
- pattern;
1454
- windowsPathsNoEscape;
1455
- nonegate;
1456
- negate;
1457
- comment;
1458
- empty;
1459
- preserveMultipleSlashes;
1460
- partial;
1461
- globSet;
1462
- globParts;
1463
- nocase;
1464
- isWindows;
1465
- platform;
1466
- windowsNoMagicRoot;
1467
- regexp;
1468
- constructor(pattern, options = {}) {
1469
- assertValidPattern(pattern);
1470
- options = options || {};
1471
- this.options = options;
1472
- this.pattern = pattern;
1473
- this.platform = options.platform || defaultPlatform;
1474
- this.isWindows = this.platform === "win32";
1475
- this.windowsPathsNoEscape = !!options.windowsPathsNoEscape || options.allowWindowsEscape === false;
1476
- if (this.windowsPathsNoEscape) {
1477
- this.pattern = this.pattern.replace(/\\/g, "/");
1478
- }
1479
- this.preserveMultipleSlashes = !!options.preserveMultipleSlashes;
1480
- this.regexp = null;
1481
- this.negate = false;
1482
- this.nonegate = !!options.nonegate;
1483
- this.comment = false;
1484
- this.empty = false;
1485
- this.partial = !!options.partial;
1486
- this.nocase = !!this.options.nocase;
1487
- this.windowsNoMagicRoot = options.windowsNoMagicRoot !== void 0 ? options.windowsNoMagicRoot : !!(this.isWindows && this.nocase);
1488
- this.globSet = [];
1489
- this.globParts = [];
1490
- this.set = [];
1491
- this.make();
1492
- }
1493
- hasMagic() {
1494
- if (this.options.magicalBraces && this.set.length > 1) {
1495
- return true;
1496
- }
1497
- for (const pattern of this.set) {
1498
- for (const part of pattern) {
1499
- if (typeof part !== "string")
1500
- return true;
1501
- }
1502
- }
1503
- return false;
1504
- }
1505
- debug(..._) {
1506
- }
1507
- make() {
1508
- const pattern = this.pattern;
1509
- const options = this.options;
1510
- if (!options.nocomment && pattern.charAt(0) === "#") {
1511
- this.comment = true;
1512
- return;
1513
- }
1514
- if (!pattern) {
1515
- this.empty = true;
1516
- return;
1517
- }
1518
- this.parseNegate();
1519
- this.globSet = [...new Set(this.braceExpand())];
1520
- if (options.debug) {
1521
- this.debug = (...args) => console.error(...args);
1522
- }
1523
- this.debug(this.pattern, this.globSet);
1524
- const rawGlobParts = this.globSet.map((s) => this.slashSplit(s));
1525
- this.globParts = this.preprocess(rawGlobParts);
1526
- this.debug(this.pattern, this.globParts);
1527
- let set = this.globParts.map((s, _, __) => {
1528
- if (this.isWindows && this.windowsNoMagicRoot) {
1529
- const isUNC = s[0] === "" && s[1] === "" && (s[2] === "?" || !globMagic.test(s[2])) && !globMagic.test(s[3]);
1530
- const isDrive = /^[a-z]:/i.test(s[0]);
1531
- if (isUNC) {
1532
- return [...s.slice(0, 4), ...s.slice(4).map((ss) => this.parse(ss))];
1533
- } else if (isDrive) {
1534
- return [s[0], ...s.slice(1).map((ss) => this.parse(ss))];
1535
- }
1536
- }
1537
- return s.map((ss) => this.parse(ss));
1538
- });
1539
- this.debug(this.pattern, set);
1540
- this.set = set.filter((s) => s.indexOf(false) === -1);
1541
- if (this.isWindows) {
1542
- for (let i2 = 0; i2 < this.set.length; i2++) {
1543
- const p = this.set[i2];
1544
- if (p[0] === "" && p[1] === "" && this.globParts[i2][2] === "?" && typeof p[3] === "string" && /^[a-z]:$/i.test(p[3])) {
1545
- p[2] = "?";
1546
- }
1547
- }
1548
- }
1549
- this.debug(this.pattern, this.set);
1550
- }
1551
- // various transforms to equivalent pattern sets that are
1552
- // faster to process in a filesystem walk. The goal is to
1553
- // eliminate what we can, and push all ** patterns as far
1554
- // to the right as possible, even if it increases the number
1555
- // of patterns that we have to process.
1556
- preprocess(globParts) {
1557
- if (this.options.noglobstar) {
1558
- for (let i2 = 0; i2 < globParts.length; i2++) {
1559
- for (let j = 0; j < globParts[i2].length; j++) {
1560
- if (globParts[i2][j] === "**") {
1561
- globParts[i2][j] = "*";
1562
- }
1563
- }
1564
- }
1565
- }
1566
- const { optimizationLevel = 1 } = this.options;
1567
- if (optimizationLevel >= 2) {
1568
- globParts = this.firstPhasePreProcess(globParts);
1569
- globParts = this.secondPhasePreProcess(globParts);
1570
- } else if (optimizationLevel >= 1) {
1571
- globParts = this.levelOneOptimize(globParts);
1572
- } else {
1573
- globParts = this.adjascentGlobstarOptimize(globParts);
1574
- }
1575
- return globParts;
1576
- }
1577
- // just get rid of adjascent ** portions
1578
- adjascentGlobstarOptimize(globParts) {
1579
- return globParts.map((parts) => {
1580
- let gs = -1;
1581
- while (-1 !== (gs = parts.indexOf("**", gs + 1))) {
1582
- let i2 = gs;
1583
- while (parts[i2 + 1] === "**") {
1584
- i2++;
1585
- }
1586
- if (i2 !== gs) {
1587
- parts.splice(gs, i2 - gs);
1588
- }
1589
- }
1590
- return parts;
1591
- });
1592
- }
1593
- // get rid of adjascent ** and resolve .. portions
1594
- levelOneOptimize(globParts) {
1595
- return globParts.map((parts) => {
1596
- parts = parts.reduce((set, part) => {
1597
- const prev = set[set.length - 1];
1598
- if (part === "**" && prev === "**") {
1599
- return set;
1600
- }
1601
- if (part === "..") {
1602
- if (prev && prev !== ".." && prev !== "." && prev !== "**") {
1603
- set.pop();
1604
- return set;
1605
- }
1606
- }
1607
- set.push(part);
1608
- return set;
1609
- }, []);
1610
- return parts.length === 0 ? [""] : parts;
1611
- });
1612
- }
1613
- levelTwoFileOptimize(parts) {
1614
- if (!Array.isArray(parts)) {
1615
- parts = this.slashSplit(parts);
1616
- }
1617
- let didSomething = false;
1618
- do {
1619
- didSomething = false;
1620
- if (!this.preserveMultipleSlashes) {
1621
- for (let i2 = 1; i2 < parts.length - 1; i2++) {
1622
- const p = parts[i2];
1623
- if (i2 === 1 && p === "" && parts[0] === "")
1624
- continue;
1625
- if (p === "." || p === "") {
1626
- didSomething = true;
1627
- parts.splice(i2, 1);
1628
- i2--;
1629
- }
1630
- }
1631
- if (parts[0] === "." && parts.length === 2 && (parts[1] === "." || parts[1] === "")) {
1632
- didSomething = true;
1633
- parts.pop();
1634
- }
1635
- }
1636
- let dd = 0;
1637
- while (-1 !== (dd = parts.indexOf("..", dd + 1))) {
1638
- const p = parts[dd - 1];
1639
- if (p && p !== "." && p !== ".." && p !== "**") {
1640
- didSomething = true;
1641
- parts.splice(dd - 1, 2);
1642
- dd -= 2;
1643
- }
1644
- }
1645
- } while (didSomething);
1646
- return parts.length === 0 ? [""] : parts;
1647
- }
1648
- // First phase: single-pattern processing
1649
- // <pre> is 1 or more portions
1650
- // <rest> is 1 or more portions
1651
- // <p> is any portion other than ., .., '', or **
1652
- // <e> is . or ''
1653
- //
1654
- // **/.. is *brutal* for filesystem walking performance, because
1655
- // it effectively resets the recursive walk each time it occurs,
1656
- // and ** cannot be reduced out by a .. pattern part like a regexp
1657
- // or most strings (other than .., ., and '') can be.
1658
- //
1659
- // <pre>/**/../<p>/<p>/<rest> -> {<pre>/../<p>/<p>/<rest>,<pre>/**/<p>/<p>/<rest>}
1660
- // <pre>/<e>/<rest> -> <pre>/<rest>
1661
- // <pre>/<p>/../<rest> -> <pre>/<rest>
1662
- // **/**/<rest> -> **/<rest>
1663
- //
1664
- // **/*/<rest> -> */**/<rest> <== not valid because ** doesn't follow
1665
- // this WOULD be allowed if ** did follow symlinks, or * didn't
1666
- firstPhasePreProcess(globParts) {
1667
- let didSomething = false;
1668
- do {
1669
- didSomething = false;
1670
- for (let parts of globParts) {
1671
- let gs = -1;
1672
- while (-1 !== (gs = parts.indexOf("**", gs + 1))) {
1673
- let gss = gs;
1674
- while (parts[gss + 1] === "**") {
1675
- gss++;
1676
- }
1677
- if (gss > gs) {
1678
- parts.splice(gs + 1, gss - gs);
1679
- }
1680
- let next = parts[gs + 1];
1681
- const p = parts[gs + 2];
1682
- const p2 = parts[gs + 3];
1683
- if (next !== "..")
1684
- continue;
1685
- if (!p || p === "." || p === ".." || !p2 || p2 === "." || p2 === "..") {
1686
- continue;
1687
- }
1688
- didSomething = true;
1689
- parts.splice(gs, 1);
1690
- const other = parts.slice(0);
1691
- other[gs] = "**";
1692
- globParts.push(other);
1693
- gs--;
1694
- }
1695
- if (!this.preserveMultipleSlashes) {
1696
- for (let i2 = 1; i2 < parts.length - 1; i2++) {
1697
- const p = parts[i2];
1698
- if (i2 === 1 && p === "" && parts[0] === "")
1699
- continue;
1700
- if (p === "." || p === "") {
1701
- didSomething = true;
1702
- parts.splice(i2, 1);
1703
- i2--;
1704
- }
1705
- }
1706
- if (parts[0] === "." && parts.length === 2 && (parts[1] === "." || parts[1] === "")) {
1707
- didSomething = true;
1708
- parts.pop();
1709
- }
1710
- }
1711
- let dd = 0;
1712
- while (-1 !== (dd = parts.indexOf("..", dd + 1))) {
1713
- const p = parts[dd - 1];
1714
- if (p && p !== "." && p !== ".." && p !== "**") {
1715
- didSomething = true;
1716
- const needDot = dd === 1 && parts[dd + 1] === "**";
1717
- const splin = needDot ? ["."] : [];
1718
- parts.splice(dd - 1, 2, ...splin);
1719
- if (parts.length === 0)
1720
- parts.push("");
1721
- dd -= 2;
1722
- }
1723
- }
1724
- }
1725
- } while (didSomething);
1726
- return globParts;
1727
- }
1728
- // second phase: multi-pattern dedupes
1729
- // {<pre>/*/<rest>,<pre>/<p>/<rest>} -> <pre>/*/<rest>
1730
- // {<pre>/<rest>,<pre>/<rest>} -> <pre>/<rest>
1731
- // {<pre>/**/<rest>,<pre>/<rest>} -> <pre>/**/<rest>
1732
- //
1733
- // {<pre>/**/<rest>,<pre>/**/<p>/<rest>} -> <pre>/**/<rest>
1734
- // ^-- not valid because ** doens't follow symlinks
1735
- secondPhasePreProcess(globParts) {
1736
- for (let i2 = 0; i2 < globParts.length - 1; i2++) {
1737
- for (let j = i2 + 1; j < globParts.length; j++) {
1738
- const matched = this.partsMatch(globParts[i2], globParts[j], !this.preserveMultipleSlashes);
1739
- if (!matched)
1740
- continue;
1741
- globParts[i2] = matched;
1742
- globParts[j] = [];
1743
- }
1744
- }
1745
- return globParts.filter((gs) => gs.length);
1746
- }
1747
- partsMatch(a, b, emptyGSMatch = false) {
1748
- let ai = 0;
1749
- let bi = 0;
1750
- let result = [];
1751
- let which = "";
1752
- while (ai < a.length && bi < b.length) {
1753
- if (a[ai] === b[bi]) {
1754
- result.push(which === "b" ? b[bi] : a[ai]);
1755
- ai++;
1756
- bi++;
1757
- } else if (emptyGSMatch && a[ai] === "**" && b[bi] === a[ai + 1]) {
1758
- result.push(a[ai]);
1759
- ai++;
1760
- } else if (emptyGSMatch && b[bi] === "**" && a[ai] === b[bi + 1]) {
1761
- result.push(b[bi]);
1762
- bi++;
1763
- } else if (a[ai] === "*" && b[bi] && (this.options.dot || !b[bi].startsWith(".")) && b[bi] !== "**") {
1764
- if (which === "b")
1765
- return false;
1766
- which = "a";
1767
- result.push(a[ai]);
1768
- ai++;
1769
- bi++;
1770
- } else if (b[bi] === "*" && a[ai] && (this.options.dot || !a[ai].startsWith(".")) && a[ai] !== "**") {
1771
- if (which === "a")
1772
- return false;
1773
- which = "b";
1774
- result.push(b[bi]);
1775
- ai++;
1776
- bi++;
1777
- } else {
1778
- return false;
1779
- }
1780
- }
1781
- return a.length === b.length && result;
1782
- }
1783
- parseNegate() {
1784
- if (this.nonegate)
1785
- return;
1786
- const pattern = this.pattern;
1787
- let negate = false;
1788
- let negateOffset = 0;
1789
- for (let i2 = 0; i2 < pattern.length && pattern.charAt(i2) === "!"; i2++) {
1790
- negate = !negate;
1791
- negateOffset++;
1792
- }
1793
- if (negateOffset)
1794
- this.pattern = pattern.slice(negateOffset);
1795
- this.negate = negate;
1796
- }
1797
- // set partial to true to test if, for example,
1798
- // "/a/b" matches the start of "/*/b/*/d"
1799
- // Partial means, if you run out of file before you run
1800
- // out of pattern, then that's fine, as long as all
1801
- // the parts match.
1802
- matchOne(file, pattern, partial = false) {
1803
- const options = this.options;
1804
- if (this.isWindows) {
1805
- const fileDrive = typeof file[0] === "string" && /^[a-z]:$/i.test(file[0]);
1806
- const fileUNC = !fileDrive && file[0] === "" && file[1] === "" && file[2] === "?" && /^[a-z]:$/i.test(file[3]);
1807
- const patternDrive = typeof pattern[0] === "string" && /^[a-z]:$/i.test(pattern[0]);
1808
- const patternUNC = !patternDrive && pattern[0] === "" && pattern[1] === "" && pattern[2] === "?" && typeof pattern[3] === "string" && /^[a-z]:$/i.test(pattern[3]);
1809
- const fdi = fileUNC ? 3 : fileDrive ? 0 : void 0;
1810
- const pdi = patternUNC ? 3 : patternDrive ? 0 : void 0;
1811
- if (typeof fdi === "number" && typeof pdi === "number") {
1812
- const [fd, pd] = [file[fdi], pattern[pdi]];
1813
- if (fd.toLowerCase() === pd.toLowerCase()) {
1814
- pattern[pdi] = fd;
1815
- if (pdi > fdi) {
1816
- pattern = pattern.slice(pdi);
1817
- } else if (fdi > pdi) {
1818
- file = file.slice(fdi);
1819
- }
1820
- }
1821
- }
1822
- }
1823
- const { optimizationLevel = 1 } = this.options;
1824
- if (optimizationLevel >= 2) {
1825
- file = this.levelTwoFileOptimize(file);
1826
- }
1827
- this.debug("matchOne", this, { file, pattern });
1828
- this.debug("matchOne", file.length, pattern.length);
1829
- for (var fi = 0, pi = 0, fl = file.length, pl = pattern.length; fi < fl && pi < pl; fi++, pi++) {
1830
- this.debug("matchOne loop");
1831
- var p = pattern[pi];
1832
- var f = file[fi];
1833
- this.debug(pattern, p, f);
1834
- if (p === false) {
1835
- return false;
1836
- }
1837
- if (p === GLOBSTAR) {
1838
- this.debug("GLOBSTAR", [pattern, p, f]);
1839
- var fr = fi;
1840
- var pr = pi + 1;
1841
- if (pr === pl) {
1842
- this.debug("** at the end");
1843
- for (; fi < fl; fi++) {
1844
- if (file[fi] === "." || file[fi] === ".." || !options.dot && file[fi].charAt(0) === ".")
1845
- return false;
1846
- }
1847
- return true;
1848
- }
1849
- while (fr < fl) {
1850
- var swallowee = file[fr];
1851
- this.debug("\nglobstar while", file, fr, pattern, pr, swallowee);
1852
- if (this.matchOne(file.slice(fr), pattern.slice(pr), partial)) {
1853
- this.debug("globstar found match!", fr, fl, swallowee);
1854
- return true;
1855
- } else {
1856
- if (swallowee === "." || swallowee === ".." || !options.dot && swallowee.charAt(0) === ".") {
1857
- this.debug("dot detected!", file, fr, pattern, pr);
1858
- break;
1859
- }
1860
- this.debug("globstar swallow a segment, and continue");
1861
- fr++;
1862
- }
1863
- }
1864
- if (partial) {
1865
- this.debug("\n>>> no match, partial?", file, fr, pattern, pr);
1866
- if (fr === fl) {
1867
- return true;
1868
- }
1869
- }
1870
- return false;
1871
- }
1872
- let hit;
1873
- if (typeof p === "string") {
1874
- hit = f === p;
1875
- this.debug("string match", p, f, hit);
1876
- } else {
1877
- hit = p.test(f);
1878
- this.debug("pattern match", p, f, hit);
1879
- }
1880
- if (!hit)
1881
- return false;
1882
- }
1883
- if (fi === fl && pi === pl) {
1884
- return true;
1885
- } else if (fi === fl) {
1886
- return partial;
1887
- } else if (pi === pl) {
1888
- return fi === fl - 1 && file[fi] === "";
1889
- } else {
1890
- throw new Error("wtf?");
1891
- }
1892
- }
1893
- braceExpand() {
1894
- return braceExpand(this.pattern, this.options);
1895
- }
1896
- parse(pattern) {
1897
- assertValidPattern(pattern);
1898
- const options = this.options;
1899
- if (pattern === "**")
1900
- return GLOBSTAR;
1901
- if (pattern === "")
1902
- return "";
1903
- let m;
1904
- let fastTest = null;
1905
- if (m = pattern.match(starRE)) {
1906
- fastTest = options.dot ? starTestDot : starTest;
1907
- } else if (m = pattern.match(starDotExtRE)) {
1908
- fastTest = (options.nocase ? options.dot ? starDotExtTestNocaseDot : starDotExtTestNocase : options.dot ? starDotExtTestDot : starDotExtTest)(m[1]);
1909
- } else if (m = pattern.match(qmarksRE)) {
1910
- fastTest = (options.nocase ? options.dot ? qmarksTestNocaseDot : qmarksTestNocase : options.dot ? qmarksTestDot : qmarksTest)(m);
1911
- } else if (m = pattern.match(starDotStarRE)) {
1912
- fastTest = options.dot ? starDotStarTestDot : starDotStarTest;
1913
- } else if (m = pattern.match(dotStarRE)) {
1914
- fastTest = dotStarTest;
1915
- }
1916
- const re = AST.fromGlob(pattern, this.options).toMMPattern();
1917
- if (fastTest && typeof re === "object") {
1918
- Reflect.defineProperty(re, "test", { value: fastTest });
1919
- }
1920
- return re;
1921
- }
1922
- makeRe() {
1923
- if (this.regexp || this.regexp === false)
1924
- return this.regexp;
1925
- const set = this.set;
1926
- if (!set.length) {
1927
- this.regexp = false;
1928
- return this.regexp;
1929
- }
1930
- const options = this.options;
1931
- const twoStar = options.noglobstar ? star2 : options.dot ? twoStarDot : twoStarNoDot;
1932
- const flags = new Set(options.nocase ? ["i"] : []);
1933
- let re = set.map((pattern) => {
1934
- const pp = pattern.map((p) => {
1935
- if (p instanceof RegExp) {
1936
- for (const f of p.flags.split(""))
1937
- flags.add(f);
1938
- }
1939
- return typeof p === "string" ? regExpEscape2(p) : p === GLOBSTAR ? GLOBSTAR : p._src;
1940
- });
1941
- pp.forEach((p, i2) => {
1942
- const next = pp[i2 + 1];
1943
- const prev = pp[i2 - 1];
1944
- if (p !== GLOBSTAR || prev === GLOBSTAR) {
1945
- return;
1946
- }
1947
- if (prev === void 0) {
1948
- if (next !== void 0 && next !== GLOBSTAR) {
1949
- pp[i2 + 1] = "(?:\\/|" + twoStar + "\\/)?" + next;
1950
- } else {
1951
- pp[i2] = twoStar;
1952
- }
1953
- } else if (next === void 0) {
1954
- pp[i2 - 1] = prev + "(?:\\/|" + twoStar + ")?";
1955
- } else if (next !== GLOBSTAR) {
1956
- pp[i2 - 1] = prev + "(?:\\/|\\/" + twoStar + "\\/)" + next;
1957
- pp[i2 + 1] = GLOBSTAR;
1958
- }
1959
- });
1960
- return pp.filter((p) => p !== GLOBSTAR).join("/");
1961
- }).join("|");
1962
- const [open, close] = set.length > 1 ? ["(?:", ")"] : ["", ""];
1963
- re = "^" + open + re + close + "$";
1964
- if (this.negate)
1965
- re = "^(?!" + re + ").+$";
1966
- try {
1967
- this.regexp = new RegExp(re, [...flags].join(""));
1968
- } catch (ex) {
1969
- this.regexp = false;
1970
- }
1971
- return this.regexp;
1972
- }
1973
- slashSplit(p) {
1974
- if (this.preserveMultipleSlashes) {
1975
- return p.split("/");
1976
- } else if (this.isWindows && /^\/\/[^\/]+/.test(p)) {
1977
- return ["", ...p.split(/\/+/)];
1978
- } else {
1979
- return p.split(/\/+/);
1980
- }
1981
- }
1982
- match(f, partial = this.partial) {
1983
- this.debug("match", f, this.pattern);
1984
- if (this.comment) {
1985
- return false;
1986
- }
1987
- if (this.empty) {
1988
- return f === "";
1989
- }
1990
- if (f === "/" && partial) {
1991
- return true;
1992
- }
1993
- const options = this.options;
1994
- if (this.isWindows) {
1995
- f = f.split("\\").join("/");
1996
- }
1997
- const ff = this.slashSplit(f);
1998
- this.debug(this.pattern, "split", ff);
1999
- const set = this.set;
2000
- this.debug(this.pattern, "set", set);
2001
- let filename = ff[ff.length - 1];
2002
- if (!filename) {
2003
- for (let i2 = ff.length - 2; !filename && i2 >= 0; i2--) {
2004
- filename = ff[i2];
2005
- }
2006
- }
2007
- for (let i2 = 0; i2 < set.length; i2++) {
2008
- const pattern = set[i2];
2009
- let file = ff;
2010
- if (options.matchBase && pattern.length === 1) {
2011
- file = [filename];
2012
- }
2013
- const hit = this.matchOne(file, pattern, partial);
2014
- if (hit) {
2015
- if (options.flipNegate) {
2016
- return true;
2017
- }
2018
- return !this.negate;
2019
- }
2020
- }
2021
- if (options.flipNegate) {
2022
- return false;
2023
- }
2024
- return this.negate;
2025
- }
2026
- static defaults(def) {
2027
- return minimatch.defaults(def).Minimatch;
2028
- }
2029
- };
2030
- minimatch.AST = AST;
2031
- minimatch.Minimatch = Minimatch;
2032
- minimatch.escape = escape;
2033
- minimatch.unescape = unescape;
2034
-
2035
- // src/utils/query-nonce-meta-tag-content.ts
2036
- function queryNonceMetaTagContent(doc) {
2037
- var _a, _b, _c;
2038
- 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;
2039
- }
2040
-
2041
- // src/utils/regular-expression.ts
2042
- var escapeRegExpSpecialCharacters = (text) => {
2043
- return text.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
2044
- };
2045
-
2046
- // src/utils/remote-value.ts
2047
- var RemoteValue = class _RemoteValue {
2048
- /**
2049
- * Deserializes a LocalValue serialized object back to its original JavaScript representation
2050
- *
2051
- * @param serialized The serialized LocalValue object
2052
- * @returns The original JavaScript value/object
2053
- */
2054
- static fromLocalValue(serialized) {
2055
- const type = serialized[TYPE_CONSTANT];
2056
- const value = VALUE_CONSTANT in serialized ? serialized[VALUE_CONSTANT] : void 0;
2057
- switch (type) {
2058
- case "string" /* String */:
2059
- return value;
2060
- case "boolean" /* Boolean */:
2061
- return value;
2062
- case "bigint" /* BigInt */:
2063
- return BigInt(value);
2064
- case "undefined" /* Undefined */:
2065
- return void 0;
2066
- case "null" /* Null */:
2067
- return null;
2068
- case "number" /* Number */:
2069
- if (value === "NaN") return NaN;
2070
- if (value === "-0") return -0;
2071
- if (value === "Infinity") return Infinity;
2072
- if (value === "-Infinity") return -Infinity;
2073
- return value;
2074
- case "array" /* Array */:
2075
- return value.map((item) => _RemoteValue.fromLocalValue(item));
2076
- case "date" /* Date */:
2077
- return new Date(value);
2078
- case "map" /* Map */:
2079
- const map2 = /* @__PURE__ */ new Map();
2080
- for (const [key, val] of value) {
2081
- const deserializedKey = typeof key === "object" && key !== null ? _RemoteValue.fromLocalValue(key) : key;
2082
- const deserializedValue = _RemoteValue.fromLocalValue(val);
2083
- map2.set(deserializedKey, deserializedValue);
2084
- }
2085
- return map2;
2086
- case "object" /* Object */:
2087
- const obj = {};
2088
- for (const [key, val] of value) {
2089
- obj[key] = _RemoteValue.fromLocalValue(val);
2090
- }
2091
- return obj;
2092
- case "regexp" /* RegularExpression */:
2093
- const { pattern, flags } = value;
2094
- return new RegExp(pattern, flags);
2095
- case "set" /* Set */:
2096
- const set = /* @__PURE__ */ new Set();
2097
- for (const item of value) {
2098
- set.add(_RemoteValue.fromLocalValue(item));
2099
- }
2100
- return set;
2101
- case "symbol" /* Symbol */:
2102
- return Symbol(value);
2103
- default:
2104
- throw new Error(`Unsupported type: ${type}`);
333
+ (e) => {
334
+ consoleError(e, hostRef.$hostElement$);
2105
335
  }
336
+ );
337
+ };
338
+
339
+ // src/client/client-style.ts
340
+ var styles = /* @__PURE__ */ new Map();
341
+
342
+ // src/runtime/runtime-constants.ts
343
+ var CONTENT_REF_ID = "r";
344
+ var ORG_LOCATION_ID = "o";
345
+ var SLOT_NODE_ID = "s";
346
+ var TEXT_NODE_ID = "t";
347
+ var COMMENT_NODE_ID = "c";
348
+ var HYDRATE_ID = "s-id";
349
+ var HYDRATED_STYLE_ID = "sty-id";
350
+ var HYDRATE_CHILD_ID = "c-id";
351
+ var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
352
+ var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
353
+ var XLINK_NS = "http://www.w3.org/1999/xlink";
354
+ var win = typeof window !== "undefined" ? window : {};
355
+ var H = win.HTMLElement || class {
356
+ };
357
+ var plt = {
358
+ $flags$: 0,
359
+ $resourcesUrl$: "",
360
+ jmp: (h2) => h2(),
361
+ raf: (h2) => requestAnimationFrame(h2),
362
+ ael: (el, eventName, listener, opts) => el.addEventListener(eventName, listener, opts),
363
+ rel: (el, eventName, listener, opts) => el.removeEventListener(eventName, listener, opts),
364
+ ce: (eventName, opts) => new CustomEvent(eventName, opts)
365
+ };
366
+ var supportsShadow = BUILD.shadowDom;
367
+ var supportsListenerOptions = /* @__PURE__ */ (() => {
368
+ var _a;
369
+ let supportsListenerOptions2 = false;
370
+ try {
371
+ (_a = win.document) == null ? void 0 : _a.addEventListener(
372
+ "e",
373
+ null,
374
+ Object.defineProperty({}, "passive", {
375
+ get() {
376
+ supportsListenerOptions2 = true;
377
+ }
378
+ })
379
+ );
380
+ } catch (e) {
2106
381
  }
2107
- /**
2108
- * Utility method to deserialize multiple LocalValues at once
2109
- *
2110
- * @param serializedValues Array of serialized LocalValue objects
2111
- * @returns Array of deserialized JavaScript values
2112
- */
2113
- static fromLocalValueArray(serializedValues) {
2114
- return serializedValues.map((value) => _RemoteValue.fromLocalValue(value));
2115
- }
2116
- /**
2117
- * Verifies if the given object matches the structure of a serialized LocalValue
2118
- *
2119
- * @param obj Object to verify
2120
- * @returns boolean indicating if the object has LocalValue structure
2121
- */
2122
- static isLocalValueObject(obj) {
2123
- if (typeof obj !== "object" || obj === null) {
2124
- return false;
2125
- }
2126
- if (!obj.hasOwnProperty(TYPE_CONSTANT)) {
2127
- return false;
2128
- }
2129
- const type = obj[TYPE_CONSTANT];
2130
- const hasTypeProperty = Object.values({ ...PrimitiveType, ...NonPrimitiveType }).includes(type);
2131
- if (!hasTypeProperty) {
382
+ return supportsListenerOptions2;
383
+ })();
384
+ var promiseResolve = (v) => Promise.resolve(v);
385
+ var supportsConstructableStylesheets = /* @__PURE__ */ (() => {
386
+ try {
387
+ if (!win.document.adoptedStyleSheets) {
2132
388
  return false;
2133
389
  }
2134
- if (type !== "null" /* Null */ && type !== "undefined" /* Undefined */) {
2135
- return obj.hasOwnProperty(VALUE_CONSTANT);
2136
- }
2137
- return true;
390
+ new CSSStyleSheet();
391
+ return typeof new CSSStyleSheet().replaceSync === "function";
392
+ } catch (e) {
2138
393
  }
2139
- };
2140
-
2141
- // src/utils/result.ts
2142
- var result_exports = {};
2143
- __export(result_exports, {
2144
- err: () => err,
2145
- map: () => map,
2146
- ok: () => ok,
2147
- unwrap: () => unwrap,
2148
- unwrapErr: () => unwrapErr
2149
- });
2150
- var ok = (value) => ({
2151
- isOk: true,
2152
- isErr: false,
2153
- value
2154
- });
2155
- var err = (value) => ({
2156
- isOk: false,
2157
- isErr: true,
2158
- value
2159
- });
2160
- function map(result, fn) {
2161
- if (result.isOk) {
2162
- const val = fn(result.value);
2163
- if (val instanceof Promise) {
2164
- return val.then((newVal) => ok(newVal));
394
+ return false;
395
+ })() ;
396
+ var supportsMutableAdoptedStyleSheets = supportsConstructableStylesheets ? /* @__PURE__ */ (() => !!win.document && Object.getOwnPropertyDescriptor(win.document.adoptedStyleSheets, "length").writable)() : false;
397
+ var queuePending = false;
398
+ var queueDomReads = [];
399
+ var queueDomWrites = [];
400
+ var queueTask = (queue, write) => (cb) => {
401
+ queue.push(cb);
402
+ if (!queuePending) {
403
+ queuePending = true;
404
+ if (write && plt.$flags$ & 4 /* queueSync */) {
405
+ nextTick(flush);
2165
406
  } else {
2166
- return ok(val);
407
+ plt.raf(flush);
2167
408
  }
2168
409
  }
2169
- if (result.isErr) {
2170
- const value = result.value;
2171
- return err(value);
2172
- }
2173
- throw "should never get here";
2174
- }
2175
- var unwrap = (result) => {
2176
- if (result.isOk) {
2177
- return result.value;
2178
- } else {
2179
- throw result.value;
2180
- }
2181
410
  };
2182
- var unwrapErr = (result) => {
2183
- if (result.isErr) {
2184
- return result.value;
2185
- } else {
2186
- throw result.value;
411
+ var consume = (queue) => {
412
+ for (let i2 = 0; i2 < queue.length; i2++) {
413
+ try {
414
+ queue[i2](performance.now());
415
+ } catch (e) {
416
+ consoleError(e);
417
+ }
2187
418
  }
419
+ queue.length = 0;
2188
420
  };
2189
-
2190
- // src/utils/serialize.ts
2191
- function deserializeProperty(value) {
2192
- if (typeof value !== "string" || !value.startsWith(SERIALIZED_PREFIX)) {
2193
- return value;
421
+ var flush = () => {
422
+ consume(queueDomReads);
423
+ {
424
+ consume(queueDomWrites);
425
+ if (queuePending = queueDomReads.length > 0) {
426
+ plt.raf(flush);
427
+ }
2194
428
  }
2195
- return RemoteValue.fromLocalValue(JSON.parse(atob(value.slice(SERIALIZED_PREFIX.length))));
2196
- }
429
+ };
430
+ var nextTick = (cb) => promiseResolve().then(cb);
431
+ var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
2197
432
  var updateFallbackSlotVisibility = (elm) => {
2198
433
  const childNodes = internalCall(elm, "childNodes");
2199
434
  if (elm.tagName && elm.tagName.includes("-") && elm["s-cr"] && elm.tagName !== "SLOT-FB") {
@@ -2461,6 +696,14 @@ var uniqueTime = (key, measureText) => {
2461
696
  };
2462
697
  }
2463
698
  };
699
+
700
+ // src/utils/query-nonce-meta-tag-content.ts
701
+ function queryNonceMetaTagContent(doc) {
702
+ var _a, _b, _c;
703
+ 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;
704
+ }
705
+
706
+ // src/runtime/styles.ts
2464
707
  var rootAppliedStyles = /* @__PURE__ */ new WeakMap();
2465
708
  var registerStyle = (scopeId2, cssText, allowCS) => {
2466
709
  let style = styles.get(scopeId2);
@@ -2494,10 +737,10 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
2494
737
  }
2495
738
  const existingStyleElm = styleContainerNode.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`);
2496
739
  if (existingStyleElm) {
2497
- existingStyleElm.innerHTML = style;
740
+ existingStyleElm.textContent = style;
2498
741
  } else if (!appliedStyles.has(scopeId2)) {
2499
742
  styleElm = win.document.createElement("style");
2500
- styleElm.innerHTML = style;
743
+ styleElm.textContent = style;
2501
744
  const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(win.document);
2502
745
  if (nonce != null) {
2503
746
  styleElm.setAttribute("nonce", nonce);
@@ -2523,7 +766,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
2523
766
  } else {
2524
767
  const existingStyleContainer = styleContainerNode.querySelector("style");
2525
768
  if (existingStyleContainer) {
2526
- existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
769
+ existingStyleContainer.textContent = style + existingStyleContainer.textContent;
2527
770
  } else {
2528
771
  styleContainerNode.prepend(styleElm);
2529
772
  }
@@ -2536,7 +779,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
2536
779
  styleContainerNode.insertBefore(styleElm, null);
2537
780
  }
2538
781
  if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
2539
- styleElm.innerHTML += SLOT_FB_CSS;
782
+ styleElm.textContent += SLOT_FB_CSS;
2540
783
  }
2541
784
  if (appliedStyles) {
2542
785
  appliedStyles.add(scopeId2);
@@ -2579,6 +822,12 @@ var attachStyles = (hostRef) => {
2579
822
  endAttachStyles();
2580
823
  };
2581
824
  var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
825
+ var isComplexType = (o) => {
826
+ o = typeof o;
827
+ return o === "object" || o === "function";
828
+ };
829
+
830
+ // src/runtime/vdom/h.ts
2582
831
  var h = (nodeName, vnodeData, ...children) => {
2583
832
  if (typeof nodeName === "string") {
2584
833
  nodeName = transformTag(nodeName);
@@ -2646,7 +895,8 @@ var newVNode = (tag, text) => {
2646
895
  const vnode = {
2647
896
  $flags$: 0,
2648
897
  $tag$: tag,
2649
- $text$: text,
898
+ // Normalize undefined to null to prevent rendering "undefined" as text
899
+ $text$: text != null ? text : null,
2650
900
  $elm$: null,
2651
901
  $children$: null
2652
902
  };
@@ -2740,7 +990,7 @@ var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
2740
990
  cmpMeta.$cmpMeta$);
2741
991
  const styleSheet = win.document.querySelector(`style[sty-id="${scopeId3}"]`);
2742
992
  if (styleSheet) {
2743
- hostElm.shadowRoot.append(styleSheet.cloneNode(true));
993
+ shadowRootNodes.unshift(styleSheet.cloneNode(true));
2744
994
  }
2745
995
  }
2746
996
  }
@@ -3040,18 +1290,111 @@ var findCorrespondingNode = (node, type) => {
3040
1290
  } while (sibling && (sibling.nodeType !== type || !sibling.nodeValue));
3041
1291
  return sibling;
3042
1292
  };
3043
- var createSupportsRuleRe = (selector) => {
3044
- const safeSelector2 = escapeRegExpSpecialCharacters(selector);
3045
- return new RegExp(
3046
- // First capture group: match any context before the selector that's not inside @supports selector()
3047
- // Using negative lookahead to avoid matching inside @supports selector(...) condition
3048
- `(^|[^@]|@(?!supports\\s+selector\\s*\\([^{]*?${safeSelector2}))(${safeSelector2}\\b)`,
3049
- "g"
3050
- );
1293
+
1294
+ // src/utils/remote-value.ts
1295
+ var RemoteValue = class _RemoteValue {
1296
+ /**
1297
+ * Deserializes a LocalValue serialized object back to its original JavaScript representation
1298
+ *
1299
+ * @param serialized The serialized LocalValue object
1300
+ * @returns The original JavaScript value/object
1301
+ */
1302
+ static fromLocalValue(serialized) {
1303
+ const type = serialized[TYPE_CONSTANT];
1304
+ const value = VALUE_CONSTANT in serialized ? serialized[VALUE_CONSTANT] : void 0;
1305
+ switch (type) {
1306
+ case "string" /* String */:
1307
+ return value;
1308
+ case "boolean" /* Boolean */:
1309
+ return value;
1310
+ case "bigint" /* BigInt */:
1311
+ return BigInt(value);
1312
+ case "undefined" /* Undefined */:
1313
+ return void 0;
1314
+ case "null" /* Null */:
1315
+ return null;
1316
+ case "number" /* Number */:
1317
+ if (value === "NaN") return NaN;
1318
+ if (value === "-0") return -0;
1319
+ if (value === "Infinity") return Infinity;
1320
+ if (value === "-Infinity") return -Infinity;
1321
+ return value;
1322
+ case "array" /* Array */:
1323
+ return value.map((item) => _RemoteValue.fromLocalValue(item));
1324
+ case "date" /* Date */:
1325
+ return new Date(value);
1326
+ case "map" /* Map */:
1327
+ const map = /* @__PURE__ */ new Map();
1328
+ for (const [key, val] of value) {
1329
+ const deserializedKey = typeof key === "object" && key !== null ? _RemoteValue.fromLocalValue(key) : key;
1330
+ const deserializedValue = _RemoteValue.fromLocalValue(val);
1331
+ map.set(deserializedKey, deserializedValue);
1332
+ }
1333
+ return map;
1334
+ case "object" /* Object */:
1335
+ const obj = {};
1336
+ for (const [key, val] of value) {
1337
+ obj[key] = _RemoteValue.fromLocalValue(val);
1338
+ }
1339
+ return obj;
1340
+ case "regexp" /* RegularExpression */:
1341
+ const { pattern, flags } = value;
1342
+ return new RegExp(pattern, flags);
1343
+ case "set" /* Set */:
1344
+ const set = /* @__PURE__ */ new Set();
1345
+ for (const item of value) {
1346
+ set.add(_RemoteValue.fromLocalValue(item));
1347
+ }
1348
+ return set;
1349
+ case "symbol" /* Symbol */:
1350
+ return Symbol(value);
1351
+ default:
1352
+ throw new Error(`Unsupported type: ${type}`);
1353
+ }
1354
+ }
1355
+ /**
1356
+ * Utility method to deserialize multiple LocalValues at once
1357
+ *
1358
+ * @param serializedValues Array of serialized LocalValue objects
1359
+ * @returns Array of deserialized JavaScript values
1360
+ */
1361
+ static fromLocalValueArray(serializedValues) {
1362
+ return serializedValues.map((value) => _RemoteValue.fromLocalValue(value));
1363
+ }
1364
+ /**
1365
+ * Verifies if the given object matches the structure of a serialized LocalValue
1366
+ *
1367
+ * @param obj Object to verify
1368
+ * @returns boolean indicating if the object has LocalValue structure
1369
+ */
1370
+ static isLocalValueObject(obj) {
1371
+ if (typeof obj !== "object" || obj === null) {
1372
+ return false;
1373
+ }
1374
+ if (!obj.hasOwnProperty(TYPE_CONSTANT)) {
1375
+ return false;
1376
+ }
1377
+ const type = obj[TYPE_CONSTANT];
1378
+ const hasTypeProperty = Object.values({ ...PrimitiveType, ...NonPrimitiveType }).includes(type);
1379
+ if (!hasTypeProperty) {
1380
+ return false;
1381
+ }
1382
+ if (type !== "null" /* Null */ && type !== "undefined" /* Undefined */) {
1383
+ return obj.hasOwnProperty(VALUE_CONSTANT);
1384
+ }
1385
+ return true;
1386
+ }
3051
1387
  };
3052
- createSupportsRuleRe("::slotted");
3053
- createSupportsRuleRe(":host");
3054
- createSupportsRuleRe(":host-context");
1388
+
1389
+ // src/utils/serialize.ts
1390
+ function deserializeProperty(value) {
1391
+ if (typeof value !== "string" || !value.startsWith(SERIALIZED_PREFIX)) {
1392
+ return value;
1393
+ }
1394
+ return RemoteValue.fromLocalValue(JSON.parse(atob(value.slice(SERIALIZED_PREFIX.length))));
1395
+ }
1396
+
1397
+ // src/runtime/parse-property-value.ts
3055
1398
  var parsePropertyValue = (propValue, propType, isFormAssociated) => {
3056
1399
  if (typeof propValue === "string" && propValue.startsWith(SERIALIZED_PREFIX)) {
3057
1400
  propValue = deserializeProperty(propValue);
@@ -3142,7 +1485,7 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
3142
1485
  }
3143
1486
  } else if (memberName === "key") ; else if (memberName === "ref") {
3144
1487
  if (newValue) {
3145
- newValue(elm);
1488
+ queueRefAttachment(newValue, elm);
3146
1489
  }
3147
1490
  } else if ((!isProp ) && memberName[0] === "o" && memberName[1] === "n") {
3148
1491
  if (memberName[2] === "-") {
@@ -3268,6 +1611,8 @@ var useNativeShadowDom = false;
3268
1611
  var checkSlotFallbackVisibility = false;
3269
1612
  var checkSlotRelocate = false;
3270
1613
  var isSvgMode = false;
1614
+ var refCallbacksToRemove = [];
1615
+ var refCallbacksToAttach = [];
3271
1616
  var createElm = (oldParentVNode, newParentVNode, childIndex) => {
3272
1617
  var _a;
3273
1618
  const newVNode2 = newParentVNode.$children$[childIndex];
@@ -3290,7 +1635,7 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
3290
1635
  );
3291
1636
  }
3292
1637
  }
3293
- if (newVNode2.$text$ !== null) {
1638
+ if (newVNode2.$text$ != null) {
3294
1639
  elm = newVNode2.$elm$ = win.document.createTextNode(newVNode2.$text$);
3295
1640
  } else if (newVNode2.$flags$ & 1 /* isSlotReference */) {
3296
1641
  elm = newVNode2.$elm$ = win.document.createTextNode("");
@@ -3302,9 +1647,7 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
3302
1647
  isSvgMode = newVNode2.$tag$ === "svg";
3303
1648
  }
3304
1649
  if (!win.document) {
3305
- throw new Error(
3306
- "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."
3307
- );
1650
+ throw new Error("You are trying to render a Stencil component in an environment that doesn't support the DOM.");
3308
1651
  }
3309
1652
  elm = newVNode2.$elm$ = win.document.createElementNS(
3310
1653
  isSvgMode ? SVG_NS : HTML_NS,
@@ -3549,7 +1892,7 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
3549
1892
  const tag = newVNode2.$tag$;
3550
1893
  const text = newVNode2.$text$;
3551
1894
  let defaultHolder;
3552
- if (text === null) {
1895
+ if (text == null) {
3553
1896
  {
3554
1897
  isSvgMode = tag === "svg" ? true : tag === "foreignObject" ? false : isSvgMode;
3555
1898
  }
@@ -3638,16 +1981,33 @@ var markSlotContentForRelocation = (elm) => {
3638
1981
  };
3639
1982
  var nullifyVNodeRefs = (vNode) => {
3640
1983
  {
3641
- vNode.$attrs$ && vNode.$attrs$.ref && vNode.$attrs$.ref(null);
1984
+ if (vNode.$attrs$ && vNode.$attrs$.ref) {
1985
+ refCallbacksToRemove.push(() => vNode.$attrs$.ref(null));
1986
+ }
3642
1987
  vNode.$children$ && vNode.$children$.map(nullifyVNodeRefs);
3643
1988
  }
3644
1989
  };
1990
+ var queueRefAttachment = (refCallback, elm) => {
1991
+ {
1992
+ refCallbacksToAttach.push(() => refCallback(elm));
1993
+ }
1994
+ };
1995
+ var flushQueuedRefCallbacks = () => {
1996
+ {
1997
+ refCallbacksToRemove.forEach((cb) => cb());
1998
+ refCallbacksToRemove.length = 0;
1999
+ refCallbacksToAttach.forEach((cb) => cb());
2000
+ refCallbacksToAttach.length = 0;
2001
+ }
2002
+ };
3645
2003
  var insertBefore = (parent, newNode, reference, isInitialLoad) => {
3646
- if (typeof newNode["s-sn"] === "string") {
3647
- parent.insertBefore(newNode, reference);
3648
- const { slotNode } = findSlotFromSlottedNode(newNode);
3649
- if (slotNode && !isInitialLoad) dispatchSlotChangeEvent(slotNode);
3650
- return newNode;
2004
+ {
2005
+ if (typeof newNode["s-sn"] === "string") {
2006
+ parent.insertBefore(newNode, reference);
2007
+ const { slotNode } = findSlotFromSlottedNode(newNode);
2008
+ if (slotNode && !isInitialLoad) dispatchSlotChangeEvent(slotNode);
2009
+ return newNode;
2010
+ }
3651
2011
  }
3652
2012
  if (parent.__insertBefore) {
3653
2013
  return parent.__insertBefore(newNode, reference);
@@ -3783,6 +2143,7 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
3783
2143
  }
3784
2144
  }
3785
2145
  contentRef = void 0;
2146
+ flushQueuedRefCallbacks();
3786
2147
  };
3787
2148
 
3788
2149
  // src/runtime/update-component.ts
@@ -3851,8 +2212,8 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
3851
2212
  endSchedule();
3852
2213
  return enqueue(maybePromise, () => updateComponent(hostRef, instance, isInitialLoad));
3853
2214
  };
3854
- var enqueue = (maybePromise, fn) => isPromisey(maybePromise) ? maybePromise.then(fn).catch((err2) => {
3855
- console.error(err2);
2215
+ var enqueue = (maybePromise, fn) => isPromisey(maybePromise) ? maybePromise.then(fn).catch((err) => {
2216
+ console.error(err);
3856
2217
  fn();
3857
2218
  }) : fn();
3858
2219
  var isPromisey = (maybePromise) => maybePromise instanceof Promise || maybePromise && maybePromise.then && typeof maybePromise.then === "function";