@arcgis/map-components 4.29.0-test.0 → 4.29.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 (739) hide show
  1. package/LICENSE.md +13 -0
  2. package/README.md +21 -0
  3. package/dist/arcgis-map-components/arcgis-map-components.esm.js +6 -0
  4. package/dist/arcgis-map-components/assets/version-management/t9n/version-management.t9n.ar.json +37 -0
  5. package/dist/arcgis-map-components/assets/version-management/t9n/version-management.t9n.bg.json +37 -0
  6. package/dist/arcgis-map-components/assets/version-management/t9n/version-management.t9n.bs.json +37 -0
  7. package/dist/arcgis-map-components/assets/version-management/t9n/version-management.t9n.ca.json +37 -0
  8. package/dist/arcgis-map-components/assets/version-management/t9n/version-management.t9n.cs.json +37 -0
  9. package/dist/arcgis-map-components/assets/version-management/t9n/version-management.t9n.da.json +37 -0
  10. package/dist/arcgis-map-components/assets/version-management/t9n/version-management.t9n.de.json +37 -0
  11. package/dist/arcgis-map-components/assets/version-management/t9n/version-management.t9n.el.json +37 -0
  12. package/dist/arcgis-map-components/assets/version-management/t9n/version-management.t9n.en.json +37 -0
  13. package/dist/arcgis-map-components/assets/version-management/t9n/version-management.t9n.es.json +37 -0
  14. package/dist/arcgis-map-components/assets/version-management/t9n/version-management.t9n.et.json +37 -0
  15. package/dist/arcgis-map-components/assets/version-management/t9n/version-management.t9n.fi.json +37 -0
  16. package/dist/arcgis-map-components/assets/version-management/t9n/version-management.t9n.fr.json +37 -0
  17. package/dist/arcgis-map-components/assets/version-management/t9n/version-management.t9n.he.json +37 -0
  18. package/dist/arcgis-map-components/assets/version-management/t9n/version-management.t9n.hr.json +37 -0
  19. package/dist/arcgis-map-components/assets/version-management/t9n/version-management.t9n.hu.json +37 -0
  20. package/dist/arcgis-map-components/assets/version-management/t9n/version-management.t9n.id.json +37 -0
  21. package/dist/arcgis-map-components/assets/version-management/t9n/version-management.t9n.it.json +37 -0
  22. package/dist/arcgis-map-components/assets/version-management/t9n/version-management.t9n.ja.json +37 -0
  23. package/dist/arcgis-map-components/assets/version-management/t9n/version-management.t9n.ko.json +37 -0
  24. package/dist/arcgis-map-components/assets/version-management/t9n/version-management.t9n.lt.json +37 -0
  25. package/dist/arcgis-map-components/assets/version-management/t9n/version-management.t9n.lv.json +37 -0
  26. package/dist/arcgis-map-components/assets/version-management/t9n/version-management.t9n.nb.json +37 -0
  27. package/dist/arcgis-map-components/assets/version-management/t9n/version-management.t9n.nl.json +37 -0
  28. package/dist/arcgis-map-components/assets/version-management/t9n/version-management.t9n.pl.json +37 -0
  29. package/dist/arcgis-map-components/assets/version-management/t9n/version-management.t9n.pt-BR.json +37 -0
  30. package/dist/arcgis-map-components/assets/version-management/t9n/version-management.t9n.pt-PT.json +37 -0
  31. package/dist/arcgis-map-components/assets/version-management/t9n/version-management.t9n.ro.json +37 -0
  32. package/dist/arcgis-map-components/assets/version-management/t9n/version-management.t9n.ru.json +37 -0
  33. package/dist/arcgis-map-components/assets/version-management/t9n/version-management.t9n.sk.json +37 -0
  34. package/dist/arcgis-map-components/assets/version-management/t9n/version-management.t9n.sl.json +37 -0
  35. package/dist/arcgis-map-components/assets/version-management/t9n/version-management.t9n.sr.json +37 -0
  36. package/dist/arcgis-map-components/assets/version-management/t9n/version-management.t9n.sv.json +37 -0
  37. package/dist/arcgis-map-components/assets/version-management/t9n/version-management.t9n.th.json +37 -0
  38. package/dist/arcgis-map-components/assets/version-management/t9n/version-management.t9n.tr.json +37 -0
  39. package/dist/arcgis-map-components/assets/version-management/t9n/version-management.t9n.uk.json +37 -0
  40. package/dist/arcgis-map-components/assets/version-management/t9n/version-management.t9n.vi.json +37 -0
  41. package/dist/arcgis-map-components/assets/version-management/t9n/version-management.t9n.zh-CN.json +37 -0
  42. package/dist/arcgis-map-components/assets/version-management/t9n/version-management.t9n.zh-HK.json +37 -0
  43. package/dist/arcgis-map-components/assets/version-management/t9n/version-management.t9n.zh-TW.json +37 -0
  44. package/dist/arcgis-map-components/index.esm.js +5 -0
  45. package/dist/arcgis-map-components/p-03ba0fda.entry.js +6 -0
  46. package/dist/arcgis-map-components/p-09d1fa30.entry.js +6 -0
  47. package/dist/arcgis-map-components/p-0a7d9b10.js +7 -0
  48. package/dist/arcgis-map-components/p-0ab58f56.entry.js +6 -0
  49. package/dist/arcgis-map-components/p-0c15b118.entry.js +6 -0
  50. package/dist/arcgis-map-components/p-0e12b068.entry.js +6 -0
  51. package/dist/arcgis-map-components/p-11dc096a.entry.js +6 -0
  52. package/dist/arcgis-map-components/p-138f344c.entry.js +6 -0
  53. package/dist/arcgis-map-components/p-1392e55e.entry.js +6 -0
  54. package/dist/arcgis-map-components/p-13df63e3.entry.js +6 -0
  55. package/dist/arcgis-map-components/p-168fc61b.entry.js +6 -0
  56. package/dist/arcgis-map-components/p-1af0c58d.entry.js +6 -0
  57. package/dist/arcgis-map-components/p-1b5e55d0.entry.js +6 -0
  58. package/dist/arcgis-map-components/p-1e56dd90.entry.js +6 -0
  59. package/dist/arcgis-map-components/p-20272b55.js +6 -0
  60. package/dist/arcgis-map-components/p-291893c2.entry.js +6 -0
  61. package/dist/arcgis-map-components/p-2c06ba12.entry.js +6 -0
  62. package/dist/arcgis-map-components/p-2dc640ed.entry.js +6 -0
  63. package/dist/arcgis-map-components/p-3a0a6efa.entry.js +6 -0
  64. package/dist/arcgis-map-components/p-3c0e7652.entry.js +6 -0
  65. package/dist/arcgis-map-components/p-4690c4ff.entry.js +6 -0
  66. package/dist/arcgis-map-components/p-4b1e3886.entry.js +6 -0
  67. package/dist/arcgis-map-components/p-4f09345f.entry.js +6 -0
  68. package/dist/arcgis-map-components/p-56a95ba3.entry.js +6 -0
  69. package/dist/arcgis-map-components/p-584899e6.entry.js +6 -0
  70. package/dist/arcgis-map-components/p-58f212ae.entry.js +6 -0
  71. package/dist/arcgis-map-components/p-60a89824.entry.js +6 -0
  72. package/dist/arcgis-map-components/p-6c23ce45.entry.js +6 -0
  73. package/dist/arcgis-map-components/p-6e718744.entry.js +6 -0
  74. package/dist/arcgis-map-components/p-7b84ae7e.entry.js +6 -0
  75. package/dist/arcgis-map-components/p-8080f998.js +6 -0
  76. package/dist/arcgis-map-components/p-84026e39.entry.js +6 -0
  77. package/dist/arcgis-map-components/p-86eceb6c.entry.js +6 -0
  78. package/dist/arcgis-map-components/p-992cdc4c.entry.js +6 -0
  79. package/dist/arcgis-map-components/p-9ce44aab.entry.js +6 -0
  80. package/dist/arcgis-map-components/p-9e771c3c.js +6 -0
  81. package/dist/arcgis-map-components/p-a1943b88.entry.js +6 -0
  82. package/dist/arcgis-map-components/p-a6ff2d23.entry.js +6 -0
  83. package/dist/arcgis-map-components/p-a732030c.entry.js +6 -0
  84. package/dist/arcgis-map-components/p-ad253fba.entry.js +6 -0
  85. package/dist/arcgis-map-components/p-b074cff0.entry.js +6 -0
  86. package/dist/arcgis-map-components/p-b34848cd.entry.js +6 -0
  87. package/dist/arcgis-map-components/p-b4fcd367.entry.js +6 -0
  88. package/dist/arcgis-map-components/p-b556c334.entry.js +6 -0
  89. package/dist/arcgis-map-components/p-bcf32e68.entry.js +6 -0
  90. package/dist/arcgis-map-components/p-cb46e2af.entry.js +6 -0
  91. package/dist/arcgis-map-components/p-d5a46dcd.entry.js +6 -0
  92. package/dist/arcgis-map-components/p-d630c013.entry.js +6 -0
  93. package/dist/arcgis-map-components/p-dacdacd6.entry.js +6 -0
  94. package/dist/arcgis-map-components/p-de09fd10.entry.js +6 -0
  95. package/dist/arcgis-map-components/p-defc03a6.entry.js +6 -0
  96. package/dist/arcgis-map-components/p-df09cadb.entry.js +6 -0
  97. package/dist/arcgis-map-components/p-e38096f1.entry.js +6 -0
  98. package/dist/arcgis-map-components/p-ea5f7ab9.entry.js +6 -0
  99. package/dist/arcgis-map-components/p-ebde73ef.entry.js +6 -0
  100. package/dist/arcgis-map-components/p-eef4eccf.entry.js +6 -0
  101. package/dist/arcgis-map-components/p-f0f6c75d.entry.js +6 -0
  102. package/dist/arcgis-map-components/p-f3055fe7.entry.js +6 -0
  103. package/dist/arcgis-map-components/p-f7cfe67a.entry.js +6 -0
  104. package/dist/arcgis-map-components/p-f9fcdc47.entry.js +6 -0
  105. package/dist/arcgis-map-components/p-ffd00564.entry.js +6 -0
  106. package/dist/cjs/arcgis-area-measurement-2d.cjs.entry.js +116 -0
  107. package/dist/cjs/arcgis-area-measurement-3d.cjs.entry.js +124 -0
  108. package/dist/cjs/arcgis-attachments.cjs.entry.js +110 -0
  109. package/dist/cjs/arcgis-basemap-gallery_2.cjs.entry.js +723 -0
  110. package/dist/cjs/arcgis-basemap-layer-list.cjs.entry.js +362 -0
  111. package/dist/cjs/arcgis-basemap-toggle.cjs.entry.js +123 -0
  112. package/dist/cjs/arcgis-bookmarks.cjs.entry.js +250 -0
  113. package/dist/cjs/arcgis-building-explorer.cjs.entry.js +147 -0
  114. package/dist/cjs/arcgis-compass.cjs.entry.js +129 -0
  115. package/dist/cjs/arcgis-coordinate-conversion.cjs.entry.js +237 -0
  116. package/dist/cjs/arcgis-daylight.cjs.entry.js +222 -0
  117. package/dist/cjs/arcgis-directional-pad.cjs.entry.js +108 -0
  118. package/dist/cjs/arcgis-directions.cjs.entry.js +254 -0
  119. package/dist/cjs/arcgis-directline-measurement-3d.cjs.entry.js +136 -0
  120. package/dist/cjs/arcgis-distance-measurement-2d.cjs.entry.js +121 -0
  121. package/dist/cjs/arcgis-editor.cjs.entry.js +316 -0
  122. package/dist/cjs/arcgis-elevation-profile.cjs.entry.js +288 -0
  123. package/dist/cjs/arcgis-expand.cjs.entry.js +219 -0
  124. package/dist/cjs/arcgis-feature-form.cjs.entry.js +152 -0
  125. package/dist/cjs/arcgis-feature-table.cjs.entry.js +459 -0
  126. package/dist/cjs/arcgis-feature-templates.cjs.entry.js +140 -0
  127. package/dist/cjs/arcgis-feature.cjs.entry.js +244 -0
  128. package/dist/cjs/arcgis-features.cjs.entry.js +242 -0
  129. package/dist/cjs/arcgis-floor-filter.cjs.entry.js +131 -0
  130. package/dist/cjs/arcgis-fullscreen.cjs.entry.js +91 -0
  131. package/dist/cjs/arcgis-histogram-range-slider.cjs.entry.js +211 -0
  132. package/dist/cjs/arcgis-histogram.cjs.entry.js +151 -0
  133. package/dist/cjs/arcgis-home.cjs.entry.js +126 -0
  134. package/dist/cjs/arcgis-layer-list.cjs.entry.js +295 -0
  135. package/dist/cjs/arcgis-legend.cjs.entry.js +150 -0
  136. package/dist/cjs/arcgis-line-of-sight.cjs.entry.js +120 -0
  137. package/dist/cjs/arcgis-locate.cjs.entry.js +173 -0
  138. package/dist/cjs/arcgis-map-components.cjs.js +28 -0
  139. package/dist/cjs/arcgis-measurement.cjs.entry.js +139 -0
  140. package/dist/cjs/arcgis-navigation-toggle.cjs.entry.js +101 -0
  141. package/dist/cjs/arcgis-placement.cjs.entry.js +55 -0
  142. package/dist/cjs/arcgis-print.cjs.entry.js +190 -0
  143. package/dist/cjs/arcgis-scale-bar.cjs.entry.js +103 -0
  144. package/dist/cjs/arcgis-scale-range-slider.cjs.entry.js +208 -0
  145. package/dist/cjs/arcgis-scene.cjs.entry.js +651 -0
  146. package/dist/cjs/arcgis-search.cjs.entry.js +339 -0
  147. package/dist/cjs/arcgis-shadow-cast.cjs.entry.js +249 -0
  148. package/dist/cjs/arcgis-sketch.cjs.entry.js +508 -0
  149. package/dist/cjs/arcgis-slice.cjs.entry.js +148 -0
  150. package/dist/cjs/arcgis-slider.cjs.entry.js +234 -0
  151. package/dist/cjs/arcgis-swipe.cjs.entry.js +123 -0
  152. package/dist/cjs/arcgis-table-list.cjs.entry.js +283 -0
  153. package/dist/cjs/arcgis-time-slider.cjs.entry.js +236 -0
  154. package/dist/cjs/arcgis-track.cjs.entry.js +189 -0
  155. package/dist/cjs/arcgis-utility-network-associations.cjs.entry.js +353 -0
  156. package/dist/cjs/arcgis-utility-network-trace.cjs.entry.js +224 -0
  157. package/dist/cjs/arcgis-utility-network-validate-topology.cjs.entry.js +100 -0
  158. package/dist/cjs/arcgis-value-picker.cjs.entry.js +180 -0
  159. package/dist/cjs/arcgis-version-management-service-item_2.cjs.entry.js +156 -0
  160. package/dist/cjs/arcgis-version-management-version-item_2.cjs.entry.js +92 -0
  161. package/dist/cjs/arcgis-version-management.cjs.entry.js +170 -0
  162. package/dist/cjs/arcgis-weather.cjs.entry.js +108 -0
  163. package/dist/cjs/arcgis-zoom.cjs.entry.js +116 -0
  164. package/dist/cjs/component-utils-f77c943e.js +164 -0
  165. package/dist/cjs/disconnected-ec1c1b85.js +47 -0
  166. package/dist/cjs/index-11a44e53.js +2476 -0
  167. package/{cjs/index-bfda1cdc.js → dist/cjs/index-8bce9d37.js} +212 -188
  168. package/dist/cjs/index.cjs.js +7 -0
  169. package/dist/cjs/loader.cjs.js +18 -0
  170. package/{components → dist/components}/arcgis-area-measurement-2d.d.ts +2 -2
  171. package/dist/components/arcgis-area-measurement-2d.js +144 -0
  172. package/{components → dist/components}/arcgis-area-measurement-3d.d.ts +2 -2
  173. package/dist/components/arcgis-area-measurement-3d.js +155 -0
  174. package/{components → dist/components}/arcgis-attachments.d.ts +2 -2
  175. package/dist/components/arcgis-attachments.js +145 -0
  176. package/{components → dist/components}/arcgis-basemap-gallery.d.ts +2 -2
  177. package/dist/components/arcgis-basemap-gallery.js +156 -0
  178. package/{components → dist/components}/arcgis-basemap-layer-list.d.ts +2 -2
  179. package/dist/components/arcgis-basemap-layer-list.js +435 -0
  180. package/{components → dist/components}/arcgis-basemap-toggle.d.ts +2 -2
  181. package/dist/components/arcgis-basemap-toggle.js +152 -0
  182. package/{components → dist/components}/arcgis-bookmarks.d.ts +2 -2
  183. package/dist/components/arcgis-bookmarks.js +307 -0
  184. package/{components → dist/components}/arcgis-building-explorer.d.ts +2 -2
  185. package/dist/components/arcgis-building-explorer.js +183 -0
  186. package/{components → dist/components}/arcgis-compass.d.ts +2 -2
  187. package/dist/components/arcgis-compass.js +158 -0
  188. package/{components → dist/components}/arcgis-coordinate-conversion.d.ts +2 -2
  189. package/dist/components/arcgis-coordinate-conversion.js +288 -0
  190. package/{components → dist/components}/arcgis-daylight.d.ts +2 -2
  191. package/dist/components/arcgis-daylight.js +271 -0
  192. package/dist/components/arcgis-directional-pad.d.ts +11 -0
  193. package/dist/components/arcgis-directional-pad.js +135 -0
  194. package/{components → dist/components}/arcgis-directions.d.ts +2 -2
  195. package/dist/components/arcgis-directions.js +303 -0
  196. package/{components → dist/components}/arcgis-directline-measurement-3d.d.ts +2 -2
  197. package/dist/components/arcgis-directline-measurement-3d.js +168 -0
  198. package/{components → dist/components}/arcgis-distance-measurement-2d.d.ts +2 -2
  199. package/dist/components/arcgis-distance-measurement-2d.js +150 -0
  200. package/{components → dist/components}/arcgis-editor.d.ts +2 -2
  201. package/dist/components/arcgis-editor.js +381 -0
  202. package/{components → dist/components}/arcgis-elevation-profile.d.ts +2 -2
  203. package/dist/components/arcgis-elevation-profile.js +347 -0
  204. package/{components → dist/components}/arcgis-expand.d.ts +2 -2
  205. package/{components → dist/components}/arcgis-expand.js +6 -1
  206. package/{components → dist/components}/arcgis-feature-form.d.ts +2 -2
  207. package/dist/components/arcgis-feature-form.js +194 -0
  208. package/{components → dist/components}/arcgis-feature-table.d.ts +2 -2
  209. package/dist/components/arcgis-feature-table.js +550 -0
  210. package/{components → dist/components}/arcgis-feature-templates.d.ts +2 -2
  211. package/dist/components/arcgis-feature-templates.js +180 -0
  212. package/{components → dist/components}/arcgis-feature.d.ts +2 -2
  213. package/dist/components/arcgis-feature.js +293 -0
  214. package/{components → dist/components}/arcgis-features.d.ts +2 -2
  215. package/dist/components/arcgis-features.js +296 -0
  216. package/{components → dist/components}/arcgis-floor-filter.d.ts +2 -2
  217. package/dist/components/arcgis-floor-filter.js +163 -0
  218. package/{components → dist/components}/arcgis-fullscreen.d.ts +2 -2
  219. package/dist/components/arcgis-fullscreen.js +116 -0
  220. package/{components → dist/components}/arcgis-histogram-range-slider.d.ts +2 -2
  221. package/dist/components/arcgis-histogram-range-slider.js +267 -0
  222. package/{components → dist/components}/arcgis-histogram.d.ts +2 -2
  223. package/dist/components/arcgis-histogram.js +196 -0
  224. package/{components → dist/components}/arcgis-home.d.ts +2 -2
  225. package/dist/components/arcgis-home.js +157 -0
  226. package/{components → dist/components}/arcgis-layer-list.d.ts +2 -2
  227. package/dist/components/arcgis-layer-list.js +356 -0
  228. package/{components → dist/components}/arcgis-legend.d.ts +2 -2
  229. package/dist/components/arcgis-legend.js +185 -0
  230. package/{components → dist/components}/arcgis-line-of-sight.d.ts +2 -2
  231. package/dist/components/arcgis-line-of-sight.js +150 -0
  232. package/{components → dist/components}/arcgis-locate.d.ts +2 -2
  233. package/dist/components/arcgis-locate.js +212 -0
  234. package/{components → dist/components}/arcgis-map.d.ts +2 -2
  235. package/dist/components/arcgis-map.js +697 -0
  236. package/{components → dist/components}/arcgis-measurement.d.ts +2 -2
  237. package/dist/components/arcgis-measurement.js +173 -0
  238. package/{components → dist/components}/arcgis-navigation-toggle.d.ts +2 -2
  239. package/dist/components/arcgis-navigation-toggle.js +127 -0
  240. package/dist/components/arcgis-placement.d.ts +11 -0
  241. package/dist/components/arcgis-placement.js +76 -0
  242. package/{components → dist/components}/arcgis-print.d.ts +2 -2
  243. package/dist/components/arcgis-print.js +232 -0
  244. package/{components → dist/components}/arcgis-scale-bar.d.ts +2 -2
  245. package/dist/components/arcgis-scale-bar.js +130 -0
  246. package/{components → dist/components}/arcgis-scale-range-slider.d.ts +2 -2
  247. package/dist/components/arcgis-scale-range-slider.js +253 -0
  248. package/{components → dist/components}/arcgis-scene.d.ts +2 -2
  249. package/dist/components/arcgis-scene.js +748 -0
  250. package/{components → dist/components}/arcgis-search.d.ts +2 -2
  251. package/dist/components/arcgis-search.js +412 -0
  252. package/{components → dist/components}/arcgis-shadow-cast.d.ts +2 -2
  253. package/dist/components/arcgis-shadow-cast.js +303 -0
  254. package/{components → dist/components}/arcgis-sketch.d.ts +2 -2
  255. package/dist/components/arcgis-sketch.js +604 -0
  256. package/{components → dist/components}/arcgis-slice.d.ts +2 -2
  257. package/dist/components/arcgis-slice.js +184 -0
  258. package/{components → dist/components}/arcgis-slider.d.ts +2 -2
  259. package/dist/components/arcgis-slider.js +298 -0
  260. package/{components → dist/components}/arcgis-swipe.d.ts +2 -2
  261. package/dist/components/arcgis-swipe.js +156 -0
  262. package/{components → dist/components}/arcgis-table-list.d.ts +2 -2
  263. package/dist/components/arcgis-table-list.js +342 -0
  264. package/{components → dist/components}/arcgis-time-slider.d.ts +2 -2
  265. package/dist/components/arcgis-time-slider.js +289 -0
  266. package/{components → dist/components}/arcgis-track.d.ts +2 -2
  267. package/dist/components/arcgis-track.js +231 -0
  268. package/{components → dist/components}/arcgis-utility-network-associations.d.ts +2 -2
  269. package/dist/components/arcgis-utility-network-associations.js +422 -0
  270. package/{components → dist/components}/arcgis-utility-network-trace.d.ts +2 -2
  271. package/dist/components/arcgis-utility-network-trace.js +271 -0
  272. package/{components → dist/components}/arcgis-utility-network-validate-topology.d.ts +2 -2
  273. package/dist/components/arcgis-utility-network-validate-topology.js +127 -0
  274. package/{components → dist/components}/arcgis-value-picker.d.ts +2 -2
  275. package/dist/components/arcgis-value-picker.js +221 -0
  276. package/dist/components/arcgis-version-management-service-item.d.ts +11 -0
  277. package/dist/components/arcgis-version-management-service-item.js +11 -0
  278. package/dist/components/arcgis-version-management-version-item.d.ts +11 -0
  279. package/dist/components/arcgis-version-management-version-item.js +11 -0
  280. package/dist/components/arcgis-version-management-version-list.d.ts +11 -0
  281. package/dist/components/arcgis-version-management-version-list.js +11 -0
  282. package/dist/components/arcgis-version-management-version-properties.d.ts +11 -0
  283. package/dist/components/arcgis-version-management-version-properties.js +11 -0
  284. package/dist/components/arcgis-version-management.d.ts +11 -0
  285. package/dist/components/arcgis-version-management.js +223 -0
  286. package/{components → dist/components}/arcgis-weather.d.ts +2 -2
  287. package/dist/components/arcgis-weather.js +135 -0
  288. package/{components → dist/components}/arcgis-zoom.d.ts +2 -2
  289. package/dist/components/arcgis-zoom.js +145 -0
  290. package/dist/components/component-utils.js +154 -0
  291. package/dist/components/disconnected.js +45 -0
  292. package/dist/components/expand.js +262 -0
  293. package/dist/components/index.d.ts +33 -0
  294. package/dist/components/index.js +6 -0
  295. package/{components → dist/components}/index2.js +211 -188
  296. package/dist/components/version-management-service-item.js +115 -0
  297. package/dist/components/version-management-version-item.js +59 -0
  298. package/dist/components/version-management-version-list.js +96 -0
  299. package/dist/components/version-management-version-properties.js +114 -0
  300. package/dist/esm/arcgis-area-measurement-2d.entry.js +112 -0
  301. package/dist/esm/arcgis-area-measurement-3d.entry.js +120 -0
  302. package/dist/esm/arcgis-attachments.entry.js +106 -0
  303. package/dist/esm/arcgis-basemap-gallery_2.entry.js +718 -0
  304. package/dist/esm/arcgis-basemap-layer-list.entry.js +358 -0
  305. package/dist/esm/arcgis-basemap-toggle.entry.js +119 -0
  306. package/dist/esm/arcgis-bookmarks.entry.js +246 -0
  307. package/dist/esm/arcgis-building-explorer.entry.js +143 -0
  308. package/dist/esm/arcgis-compass.entry.js +125 -0
  309. package/dist/esm/arcgis-coordinate-conversion.entry.js +233 -0
  310. package/dist/esm/arcgis-daylight.entry.js +218 -0
  311. package/dist/esm/arcgis-directional-pad.entry.js +104 -0
  312. package/dist/esm/arcgis-directions.entry.js +250 -0
  313. package/dist/esm/arcgis-directline-measurement-3d.entry.js +132 -0
  314. package/dist/esm/arcgis-distance-measurement-2d.entry.js +117 -0
  315. package/dist/esm/arcgis-editor.entry.js +312 -0
  316. package/dist/esm/arcgis-elevation-profile.entry.js +284 -0
  317. package/dist/esm/arcgis-expand.entry.js +215 -0
  318. package/dist/esm/arcgis-feature-form.entry.js +148 -0
  319. package/dist/esm/arcgis-feature-table.entry.js +455 -0
  320. package/dist/esm/arcgis-feature-templates.entry.js +136 -0
  321. package/dist/esm/arcgis-feature.entry.js +240 -0
  322. package/dist/esm/arcgis-features.entry.js +238 -0
  323. package/dist/esm/arcgis-floor-filter.entry.js +127 -0
  324. package/dist/esm/arcgis-fullscreen.entry.js +87 -0
  325. package/dist/esm/arcgis-histogram-range-slider.entry.js +207 -0
  326. package/dist/esm/arcgis-histogram.entry.js +147 -0
  327. package/dist/esm/arcgis-home.entry.js +122 -0
  328. package/dist/esm/arcgis-layer-list.entry.js +291 -0
  329. package/dist/esm/arcgis-legend.entry.js +146 -0
  330. package/dist/esm/arcgis-line-of-sight.entry.js +116 -0
  331. package/dist/esm/arcgis-locate.entry.js +169 -0
  332. package/dist/esm/arcgis-map-components.js +23 -0
  333. package/dist/esm/arcgis-measurement.entry.js +135 -0
  334. package/dist/esm/arcgis-navigation-toggle.entry.js +97 -0
  335. package/dist/esm/arcgis-placement.entry.js +51 -0
  336. package/dist/esm/arcgis-print.entry.js +186 -0
  337. package/dist/esm/arcgis-scale-bar.entry.js +99 -0
  338. package/dist/esm/arcgis-scale-range-slider.entry.js +204 -0
  339. package/dist/esm/arcgis-scene.entry.js +647 -0
  340. package/dist/esm/arcgis-search.entry.js +335 -0
  341. package/dist/esm/arcgis-shadow-cast.entry.js +245 -0
  342. package/dist/esm/arcgis-sketch.entry.js +504 -0
  343. package/dist/esm/arcgis-slice.entry.js +144 -0
  344. package/dist/esm/arcgis-slider.entry.js +230 -0
  345. package/dist/esm/arcgis-swipe.entry.js +119 -0
  346. package/dist/esm/arcgis-table-list.entry.js +279 -0
  347. package/dist/esm/arcgis-time-slider.entry.js +232 -0
  348. package/dist/esm/arcgis-track.entry.js +185 -0
  349. package/dist/esm/arcgis-utility-network-associations.entry.js +349 -0
  350. package/dist/esm/arcgis-utility-network-trace.entry.js +220 -0
  351. package/dist/esm/arcgis-utility-network-validate-topology.entry.js +96 -0
  352. package/dist/esm/arcgis-value-picker.entry.js +176 -0
  353. package/dist/esm/arcgis-version-management-service-item_2.entry.js +151 -0
  354. package/dist/esm/arcgis-version-management-version-item_2.entry.js +87 -0
  355. package/dist/esm/arcgis-version-management.entry.js +166 -0
  356. package/dist/esm/arcgis-weather.entry.js +104 -0
  357. package/dist/esm/arcgis-zoom.entry.js +112 -0
  358. package/dist/esm/component-utils-352c412f.js +154 -0
  359. package/dist/esm/disconnected-3f01362d.js +45 -0
  360. package/{esm/index-c227d296.js → dist/esm/index-94c85b30.js} +211 -188
  361. package/dist/esm/index-ee66e916.js +2446 -0
  362. package/dist/esm/index.js +5 -0
  363. package/dist/esm/loader.js +14 -0
  364. package/dist/loader/cdn.js +7 -0
  365. package/dist/loader/index.cjs.js +7 -0
  366. package/{loader → dist/loader}/index.d.ts +2 -2
  367. package/dist/loader/index.es2017.js +7 -0
  368. package/{loader → dist/loader}/index.js +5 -1
  369. package/dist/types/components/area-measurement-2d/area-measurement-2d.d.ts +38 -0
  370. package/dist/types/components/area-measurement-3d/area-measurement-3d.d.ts +41 -0
  371. package/dist/types/components/attachments/attachments.d.ts +33 -0
  372. package/dist/types/components/basemap-gallery/basemap-gallery.d.ts +41 -0
  373. package/dist/types/components/basemap-layer-list/basemap-layer-list.d.ts +86 -0
  374. package/dist/types/components/basemap-toggle/basemap-toggle.d.ts +40 -0
  375. package/dist/types/components/bookmarks/bookmarks.d.ts +71 -0
  376. package/dist/types/components/building-explorer/building-explorer.d.ts +47 -0
  377. package/dist/types/components/compass/compass.d.ts +47 -0
  378. package/dist/types/components/coordinate-conversion/coordinate-conversion.d.ts +62 -0
  379. package/dist/types/components/daylight/daylight.d.ts +60 -0
  380. package/dist/types/components/directional-pad/directional-pad.d.ts +37 -0
  381. package/dist/types/components/directions/directions.d.ts +62 -0
  382. package/dist/types/components/directline-measurement-3d/directline-measurement-3d.d.ts +43 -0
  383. package/dist/types/components/distance-measurement-2d/distance-measurement-2d.d.ts +40 -0
  384. package/dist/types/components/editor/editor.d.ts +76 -0
  385. package/dist/types/components/elevation-profile/elevation-profile.d.ts +71 -0
  386. package/dist/types/components/expand/expand.d.ts +57 -0
  387. package/dist/types/components/feature/feature.d.ts +61 -0
  388. package/dist/types/components/feature-form/feature-form.d.ts +42 -0
  389. package/dist/types/components/feature-table/feature-table.d.ts +104 -0
  390. package/dist/types/components/feature-templates/feature-templates.d.ts +38 -0
  391. package/dist/types/components/features/features.d.ts +67 -0
  392. package/dist/types/components/floor-filter/floor-filter.d.ts +42 -0
  393. package/dist/types/components/fullscreen/fullscreen.d.ts +26 -0
  394. package/dist/types/components/histogram/histogram.d.ts +41 -0
  395. package/dist/types/components/histogram-range-slider/histogram-range-slider.d.ts +52 -0
  396. package/dist/types/components/home/home.d.ts +41 -0
  397. package/dist/types/components/layer-list/layer-list.d.ts +73 -0
  398. package/dist/types/components/legend/legend.d.ts +46 -0
  399. package/dist/types/components/line-of-sight/line-of-sight.d.ts +41 -0
  400. package/dist/types/components/locate/locate.d.ts +53 -0
  401. package/dist/types/components/map/map.d.ts +373 -0
  402. package/dist/types/components/measurement/measurement.d.ts +35 -0
  403. package/dist/types/components/navigation-toggle/navigation-toggle.d.ts +36 -0
  404. package/dist/types/components/placement/placement.d.ts +18 -0
  405. package/dist/types/components/print/print.d.ts +56 -0
  406. package/dist/types/components/scale-bar/scale-bar.d.ts +37 -0
  407. package/dist/types/components/scale-range-slider/scale-range-slider.d.ts +56 -0
  408. package/dist/types/components/scene/scene.d.ts +131 -0
  409. package/dist/types/components/search/search.d.ts +93 -0
  410. package/dist/types/components/shadow-cast/shadow-cast.d.ts +65 -0
  411. package/dist/types/components/sketch/sketch.d.ts +113 -0
  412. package/dist/types/components/slice/slice.d.ts +47 -0
  413. package/dist/types/components/slider/slider.d.ts +72 -0
  414. package/dist/types/components/swipe/swipe.d.ts +34 -0
  415. package/dist/types/components/table-list/table-list.d.ts +72 -0
  416. package/dist/types/components/time-slider/time-slider.d.ts +66 -0
  417. package/dist/types/components/track/track.d.ts +56 -0
  418. package/dist/types/components/utility-network-associations/utility-network-associations.d.ts +79 -0
  419. package/dist/types/components/utility-network-trace/utility-network-trace.d.ts +64 -0
  420. package/dist/types/components/utility-network-validate-topology/utility-network-validate-topology.d.ts +37 -0
  421. package/dist/types/components/value-picker/value-picker.d.ts +48 -0
  422. package/dist/types/components/version-management/t9n-types.d.ts +43 -0
  423. package/dist/types/components/version-management/version-management.d.ts +31 -0
  424. package/dist/types/components/version-management-service-item/version-management-service-item.d.ts +32 -0
  425. package/dist/types/components/version-management-version-item/version-management-version-item.d.ts +14 -0
  426. package/dist/types/components/version-management-version-list/version-management-version-list.d.ts +27 -0
  427. package/dist/types/components/version-management-version-properties/version-management-version-properties.d.ts +22 -0
  428. package/dist/types/components/weather/weather.d.ts +37 -0
  429. package/dist/types/components/zoom/zoom.d.ts +39 -0
  430. package/dist/types/components.d.ts +4395 -0
  431. package/{types → dist/types}/stencil-public-runtime.d.ts +61 -17
  432. package/dist/types/utils/SubWidget.d.ts +22 -0
  433. package/dist/types/utils/Widget.d.ts +38 -0
  434. package/dist/types/utils/component-utils.d.ts +31 -0
  435. package/{types → dist/types}/utils/disconnected.d.ts +1 -1
  436. package/dist/types/utils/expandable.d.ts +7 -0
  437. package/dist/types/utils/globalCss.d.ts +43 -0
  438. package/dist/types/utils/legacyIcon.d.ts +100 -0
  439. package/{types → dist/types}/utils/mapping-utils.d.ts +1 -1
  440. package/dist/types/utils/types.d.ts +3 -0
  441. package/package.json +54 -8
  442. package/arcgis-map-components/arcgis-map-components.esm.js +0 -1
  443. package/arcgis-map-components/index.esm.js +0 -0
  444. package/arcgis-map-components/p-01d9efae.entry.js +0 -1
  445. package/arcgis-map-components/p-11e7ce02.entry.js +0 -1
  446. package/arcgis-map-components/p-1435356e.entry.js +0 -1
  447. package/arcgis-map-components/p-174f9d11.entry.js +0 -1
  448. package/arcgis-map-components/p-18c653a4.entry.js +0 -1
  449. package/arcgis-map-components/p-1b5e33ea.entry.js +0 -1
  450. package/arcgis-map-components/p-1c631990.entry.js +0 -1
  451. package/arcgis-map-components/p-1e5e5ed9.js +0 -2
  452. package/arcgis-map-components/p-21721d4b.entry.js +0 -1
  453. package/arcgis-map-components/p-2becbf01.entry.js +0 -1
  454. package/arcgis-map-components/p-2c5be6b0.entry.js +0 -1
  455. package/arcgis-map-components/p-2d3406f7.js +0 -1
  456. package/arcgis-map-components/p-312ff83f.entry.js +0 -1
  457. package/arcgis-map-components/p-3361d81f.entry.js +0 -1
  458. package/arcgis-map-components/p-3587b4d8.entry.js +0 -1
  459. package/arcgis-map-components/p-3b5560bb.entry.js +0 -1
  460. package/arcgis-map-components/p-3e676259.entry.js +0 -1
  461. package/arcgis-map-components/p-47629a4c.entry.js +0 -1
  462. package/arcgis-map-components/p-4b5fa9a2.entry.js +0 -1
  463. package/arcgis-map-components/p-4bb15110.entry.js +0 -1
  464. package/arcgis-map-components/p-4c103777.entry.js +0 -1
  465. package/arcgis-map-components/p-4d5e7ddd.entry.js +0 -1
  466. package/arcgis-map-components/p-4fa3c6fe.entry.js +0 -1
  467. package/arcgis-map-components/p-501861a1.entry.js +0 -1
  468. package/arcgis-map-components/p-535bf289.entry.js +0 -1
  469. package/arcgis-map-components/p-5a91868a.entry.js +0 -1
  470. package/arcgis-map-components/p-5cabdee7.js +0 -1
  471. package/arcgis-map-components/p-5d835456.entry.js +0 -1
  472. package/arcgis-map-components/p-5db2786d.entry.js +0 -1
  473. package/arcgis-map-components/p-5ea3ce11.entry.js +0 -1
  474. package/arcgis-map-components/p-620959fc.js +0 -1
  475. package/arcgis-map-components/p-721673c8.entry.js +0 -1
  476. package/arcgis-map-components/p-8c18a99c.entry.js +0 -1
  477. package/arcgis-map-components/p-8d184d92.entry.js +0 -1
  478. package/arcgis-map-components/p-8fde8001.entry.js +0 -1
  479. package/arcgis-map-components/p-927f8748.entry.js +0 -1
  480. package/arcgis-map-components/p-9aad48fe.entry.js +0 -1
  481. package/arcgis-map-components/p-9c1b8e69.entry.js +0 -1
  482. package/arcgis-map-components/p-9e667282.entry.js +0 -1
  483. package/arcgis-map-components/p-a67dda4e.entry.js +0 -1
  484. package/arcgis-map-components/p-acb4a35a.entry.js +0 -1
  485. package/arcgis-map-components/p-b19043d5.entry.js +0 -1
  486. package/arcgis-map-components/p-b813c9e6.js +0 -1
  487. package/arcgis-map-components/p-bb6e5f04.entry.js +0 -1
  488. package/arcgis-map-components/p-bfae0a1f.entry.js +0 -1
  489. package/arcgis-map-components/p-c63a5c7f.entry.js +0 -1
  490. package/arcgis-map-components/p-ce14e49f.entry.js +0 -1
  491. package/arcgis-map-components/p-d3fbbf3f.entry.js +0 -1
  492. package/arcgis-map-components/p-d8be8a46.entry.js +0 -1
  493. package/arcgis-map-components/p-dafb17cf.entry.js +0 -1
  494. package/arcgis-map-components/p-ec2cc024.entry.js +0 -1
  495. package/arcgis-map-components/p-ef0b3818.entry.js +0 -1
  496. package/arcgis-map-components/p-f0e5dcc7.entry.js +0 -1
  497. package/arcgis-map-components/p-f5cc7f2d.entry.js +0 -1
  498. package/arcgis-map-components/p-f7b74cd4.entry.js +0 -1
  499. package/cjs/arcgis-area-measurement-2d.cjs.entry.js +0 -101
  500. package/cjs/arcgis-area-measurement-3d.cjs.entry.js +0 -94
  501. package/cjs/arcgis-attachments.cjs.entry.js +0 -73
  502. package/cjs/arcgis-basemap-gallery.cjs.entry.js +0 -97
  503. package/cjs/arcgis-basemap-layer-list.cjs.entry.js +0 -144
  504. package/cjs/arcgis-basemap-toggle.cjs.entry.js +0 -115
  505. package/cjs/arcgis-bookmarks.cjs.entry.js +0 -140
  506. package/cjs/arcgis-building-explorer.cjs.entry.js +0 -80
  507. package/cjs/arcgis-compass.cjs.entry.js +0 -90
  508. package/cjs/arcgis-coordinate-conversion.cjs.entry.js +0 -158
  509. package/cjs/arcgis-daylight.cjs.entry.js +0 -116
  510. package/cjs/arcgis-directions.cjs.entry.js +0 -194
  511. package/cjs/arcgis-directline-measurement-3d.cjs.entry.js +0 -114
  512. package/cjs/arcgis-distance-measurement-2d.cjs.entry.js +0 -106
  513. package/cjs/arcgis-editor.cjs.entry.js +0 -180
  514. package/cjs/arcgis-elevation-profile.cjs.entry.js +0 -136
  515. package/cjs/arcgis-expand_4.cjs.entry.js +0 -793
  516. package/cjs/arcgis-feature-form.cjs.entry.js +0 -36
  517. package/cjs/arcgis-feature-templates.cjs.entry.js +0 -73
  518. package/cjs/arcgis-feature.cjs.entry.js +0 -106
  519. package/cjs/arcgis-features.cjs.entry.js +0 -133
  520. package/cjs/arcgis-floor-filter.cjs.entry.js +0 -134
  521. package/cjs/arcgis-fullscreen.cjs.entry.js +0 -92
  522. package/cjs/arcgis-histogram-range-slider.cjs.entry.js +0 -80
  523. package/cjs/arcgis-histogram.cjs.entry.js +0 -36
  524. package/cjs/arcgis-home.cjs.entry.js +0 -108
  525. package/cjs/arcgis-layer-list.cjs.entry.js +0 -128
  526. package/cjs/arcgis-legend.cjs.entry.js +0 -146
  527. package/cjs/arcgis-line-of-sight.cjs.entry.js +0 -94
  528. package/cjs/arcgis-locate.cjs.entry.js +0 -158
  529. package/cjs/arcgis-map-components.cjs.js +0 -23
  530. package/cjs/arcgis-measurement.cjs.entry.js +0 -123
  531. package/cjs/arcgis-navigation-toggle.cjs.entry.js +0 -97
  532. package/cjs/arcgis-print.cjs.entry.js +0 -163
  533. package/cjs/arcgis-scale-bar.cjs.entry.js +0 -106
  534. package/cjs/arcgis-scale-range-slider.cjs.entry.js +0 -146
  535. package/cjs/arcgis-scene.cjs.entry.js +0 -126
  536. package/cjs/arcgis-shadow-cast.cjs.entry.js +0 -95
  537. package/cjs/arcgis-sketch.cjs.entry.js +0 -201
  538. package/cjs/arcgis-slice.cjs.entry.js +0 -103
  539. package/cjs/arcgis-slider.cjs.entry.js +0 -233
  540. package/cjs/arcgis-swipe.cjs.entry.js +0 -117
  541. package/cjs/arcgis-table-list.cjs.entry.js +0 -118
  542. package/cjs/arcgis-time-slider.cjs.entry.js +0 -216
  543. package/cjs/arcgis-track.cjs.entry.js +0 -147
  544. package/cjs/arcgis-utility-network-associations.cjs.entry.js +0 -220
  545. package/cjs/arcgis-utility-network-trace.cjs.entry.js +0 -162
  546. package/cjs/arcgis-utility-network-validate-topology.cjs.entry.js +0 -110
  547. package/cjs/arcgis-value-picker.cjs.entry.js +0 -160
  548. package/cjs/arcgis-weather.cjs.entry.js +0 -86
  549. package/cjs/arcgis-zoom.cjs.entry.js +0 -100
  550. package/cjs/component-utils-cbd20e88.js +0 -77
  551. package/cjs/disconnected-306cb220.js +0 -55
  552. package/cjs/index-6b51d5a0.js +0 -1611
  553. package/cjs/index.cjs.js +0 -2
  554. package/cjs/loader.cjs.js +0 -22
  555. package/cjs/mapping-utils-c2c7b994.js +0 -40
  556. package/components/arcgis-area-measurement-2d.js +0 -128
  557. package/components/arcgis-area-measurement-3d.js +0 -121
  558. package/components/arcgis-attachments.js +0 -99
  559. package/components/arcgis-basemap-gallery.js +0 -124
  560. package/components/arcgis-basemap-layer-list.js +0 -175
  561. package/components/arcgis-basemap-toggle.js +0 -143
  562. package/components/arcgis-bookmarks.js +0 -169
  563. package/components/arcgis-building-explorer.js +0 -105
  564. package/components/arcgis-compass.js +0 -109
  565. package/components/arcgis-coordinate-conversion.js +0 -193
  566. package/components/arcgis-daylight.js +0 -144
  567. package/components/arcgis-directions.js +0 -230
  568. package/components/arcgis-directline-measurement-3d.js +0 -142
  569. package/components/arcgis-distance-measurement-2d.js +0 -133
  570. package/components/arcgis-editor.js +0 -219
  571. package/components/arcgis-elevation-profile.js +0 -166
  572. package/components/arcgis-expand2.js +0 -107
  573. package/components/arcgis-feature-form.js +0 -55
  574. package/components/arcgis-feature-table.js +0 -355
  575. package/components/arcgis-feature-templates.js +0 -98
  576. package/components/arcgis-feature.js +0 -133
  577. package/components/arcgis-features.js +0 -169
  578. package/components/arcgis-floor-filter.js +0 -164
  579. package/components/arcgis-fullscreen.js +0 -111
  580. package/components/arcgis-histogram-range-slider.js +0 -106
  581. package/components/arcgis-histogram.js +0 -55
  582. package/components/arcgis-home.js +0 -129
  583. package/components/arcgis-layer-list.js +0 -158
  584. package/components/arcgis-legend.js +0 -177
  585. package/components/arcgis-line-of-sight.js +0 -120
  586. package/components/arcgis-locate.js +0 -184
  587. package/components/arcgis-map.js +0 -168
  588. package/components/arcgis-measurement.js +0 -153
  589. package/components/arcgis-navigation-toggle.js +0 -117
  590. package/components/arcgis-print.js +0 -197
  591. package/components/arcgis-scale-bar.js +0 -133
  592. package/components/arcgis-scale-range-slider.js +0 -177
  593. package/components/arcgis-scene.js +0 -150
  594. package/components/arcgis-search.js +0 -330
  595. package/components/arcgis-shadow-cast.js +0 -121
  596. package/components/arcgis-sketch.js +0 -238
  597. package/components/arcgis-slice.js +0 -130
  598. package/components/arcgis-slider.js +0 -281
  599. package/components/arcgis-swipe.js +0 -140
  600. package/components/arcgis-table-list.js +0 -147
  601. package/components/arcgis-time-slider.js +0 -256
  602. package/components/arcgis-track.js +0 -171
  603. package/components/arcgis-utility-network-associations.js +0 -258
  604. package/components/arcgis-utility-network-trace.js +0 -197
  605. package/components/arcgis-utility-network-validate-topology.js +0 -137
  606. package/components/arcgis-value-picker.js +0 -198
  607. package/components/arcgis-weather.js +0 -111
  608. package/components/arcgis-zoom.js +0 -121
  609. package/components/disconnected.js +0 -122
  610. package/components/index.d.ts +0 -83
  611. package/components/index.js +0 -54
  612. package/components/mapping-utils.js +0 -38
  613. package/esm/arcgis-area-measurement-2d.entry.js +0 -97
  614. package/esm/arcgis-area-measurement-3d.entry.js +0 -90
  615. package/esm/arcgis-attachments.entry.js +0 -69
  616. package/esm/arcgis-basemap-gallery.entry.js +0 -93
  617. package/esm/arcgis-basemap-layer-list.entry.js +0 -140
  618. package/esm/arcgis-basemap-toggle.entry.js +0 -111
  619. package/esm/arcgis-bookmarks.entry.js +0 -136
  620. package/esm/arcgis-building-explorer.entry.js +0 -76
  621. package/esm/arcgis-compass.entry.js +0 -86
  622. package/esm/arcgis-coordinate-conversion.entry.js +0 -154
  623. package/esm/arcgis-daylight.entry.js +0 -112
  624. package/esm/arcgis-directions.entry.js +0 -190
  625. package/esm/arcgis-directline-measurement-3d.entry.js +0 -110
  626. package/esm/arcgis-distance-measurement-2d.entry.js +0 -102
  627. package/esm/arcgis-editor.entry.js +0 -176
  628. package/esm/arcgis-elevation-profile.entry.js +0 -132
  629. package/esm/arcgis-expand_4.entry.js +0 -786
  630. package/esm/arcgis-feature-form.entry.js +0 -32
  631. package/esm/arcgis-feature-templates.entry.js +0 -69
  632. package/esm/arcgis-feature.entry.js +0 -102
  633. package/esm/arcgis-features.entry.js +0 -129
  634. package/esm/arcgis-floor-filter.entry.js +0 -130
  635. package/esm/arcgis-fullscreen.entry.js +0 -88
  636. package/esm/arcgis-histogram-range-slider.entry.js +0 -76
  637. package/esm/arcgis-histogram.entry.js +0 -32
  638. package/esm/arcgis-home.entry.js +0 -104
  639. package/esm/arcgis-layer-list.entry.js +0 -124
  640. package/esm/arcgis-legend.entry.js +0 -142
  641. package/esm/arcgis-line-of-sight.entry.js +0 -90
  642. package/esm/arcgis-locate.entry.js +0 -154
  643. package/esm/arcgis-map-components.js +0 -18
  644. package/esm/arcgis-measurement.entry.js +0 -119
  645. package/esm/arcgis-navigation-toggle.entry.js +0 -93
  646. package/esm/arcgis-print.entry.js +0 -159
  647. package/esm/arcgis-scale-bar.entry.js +0 -102
  648. package/esm/arcgis-scale-range-slider.entry.js +0 -142
  649. package/esm/arcgis-scene.entry.js +0 -122
  650. package/esm/arcgis-shadow-cast.entry.js +0 -91
  651. package/esm/arcgis-sketch.entry.js +0 -197
  652. package/esm/arcgis-slice.entry.js +0 -99
  653. package/esm/arcgis-slider.entry.js +0 -229
  654. package/esm/arcgis-swipe.entry.js +0 -113
  655. package/esm/arcgis-table-list.entry.js +0 -114
  656. package/esm/arcgis-time-slider.entry.js +0 -212
  657. package/esm/arcgis-track.entry.js +0 -143
  658. package/esm/arcgis-utility-network-associations.entry.js +0 -216
  659. package/esm/arcgis-utility-network-trace.entry.js +0 -158
  660. package/esm/arcgis-utility-network-validate-topology.entry.js +0 -106
  661. package/esm/arcgis-value-picker.entry.js +0 -156
  662. package/esm/arcgis-weather.entry.js +0 -82
  663. package/esm/arcgis-zoom.entry.js +0 -96
  664. package/esm/component-utils-2ebdae59.js +0 -73
  665. package/esm/disconnected-bc5fc8bc.js +0 -52
  666. package/esm/index-eb3ead33.js +0 -1583
  667. package/esm/index.js +0 -1
  668. package/esm/loader.js +0 -18
  669. package/esm/mapping-utils-26beb904.js +0 -38
  670. package/esm/polyfills/css-shim.js +0 -1
  671. package/loader/cdn.js +0 -3
  672. package/loader/index.cjs.js +0 -3
  673. package/loader/index.es2017.js +0 -3
  674. package/types/components/arcgis-area-measurement-2d/arcgis-area-measurement-2d.d.ts +0 -29
  675. package/types/components/arcgis-area-measurement-3d/arcgis-area-measurement-3d.d.ts +0 -28
  676. package/types/components/arcgis-attachments/arcgis-attachments.d.ts +0 -24
  677. package/types/components/arcgis-basemap-gallery/arcgis-basemap-gallery.d.ts +0 -29
  678. package/types/components/arcgis-basemap-layer-list/arcgis-basemap-layer-list.d.ts +0 -37
  679. package/types/components/arcgis-basemap-toggle/arcgis-basemap-toggle.d.ts +0 -31
  680. package/types/components/arcgis-bookmarks/arcgis-bookmarks.d.ts +0 -38
  681. package/types/components/arcgis-building-explorer/arcgis-building-explorer.d.ts +0 -25
  682. package/types/components/arcgis-compass/arcgis-compass.d.ts +0 -24
  683. package/types/components/arcgis-coordinate-conversion/arcgis-coordinate-conversion.d.ts +0 -45
  684. package/types/components/arcgis-daylight/arcgis-daylight.d.ts +0 -32
  685. package/types/components/arcgis-directions/arcgis-directions.d.ts +0 -46
  686. package/types/components/arcgis-directline-measurement-3d/arcgis-directline-measurement-3d.d.ts +0 -32
  687. package/types/components/arcgis-distance-measurement-2d/arcgis-distance-measurement-2d.d.ts +0 -30
  688. package/types/components/arcgis-editor/arcgis-editor.d.ts +0 -47
  689. package/types/components/arcgis-elevation-profile/arcgis-elevation-profile.d.ts +0 -36
  690. package/types/components/arcgis-expand/arcgis-expand.d.ts +0 -23
  691. package/types/components/arcgis-feature/arcgis-feature.d.ts +0 -30
  692. package/types/components/arcgis-feature-form/arcgis-feature-form.d.ts +0 -18
  693. package/types/components/arcgis-feature-table/arcgis-feature-table.d.ts +0 -71
  694. package/types/components/arcgis-feature-templates/arcgis-feature-templates.d.ts +0 -24
  695. package/types/components/arcgis-features/arcgis-features.d.ts +0 -37
  696. package/types/components/arcgis-floor-filter/arcgis-floor-filter.d.ts +0 -35
  697. package/types/components/arcgis-fullscreen/arcgis-fullscreen.d.ts +0 -25
  698. package/types/components/arcgis-histogram/arcgis-histogram.d.ts +0 -18
  699. package/types/components/arcgis-histogram-range-slider/arcgis-histogram-range-slider.d.ts +0 -25
  700. package/types/components/arcgis-home/arcgis-home.d.ts +0 -29
  701. package/types/components/arcgis-layer-list/arcgis-layer-list.d.ts +0 -37
  702. package/types/components/arcgis-legend/arcgis-legend.d.ts +0 -38
  703. package/types/components/arcgis-line-of-sight/arcgis-line-of-sight.d.ts +0 -28
  704. package/types/components/arcgis-locate/arcgis-locate.d.ts +0 -40
  705. package/types/components/arcgis-map/arcgis-map.d.ts +0 -33
  706. package/types/components/arcgis-measurement/arcgis-measurement.d.ts +0 -35
  707. package/types/components/arcgis-navigation-toggle/arcgis-navigation-toggle.d.ts +0 -26
  708. package/types/components/arcgis-print/arcgis-print.d.ts +0 -47
  709. package/types/components/arcgis-scale-bar/arcgis-scale-bar.d.ts +0 -30
  710. package/types/components/arcgis-scale-range-slider/arcgis-scale-range-slider.d.ts +0 -40
  711. package/types/components/arcgis-scene/arcgis-scene.d.ts +0 -29
  712. package/types/components/arcgis-search/arcgis-search.d.ts +0 -82
  713. package/types/components/arcgis-shadow-cast/arcgis-shadow-cast.d.ts +0 -28
  714. package/types/components/arcgis-sketch/arcgis-sketch.d.ts +0 -53
  715. package/types/components/arcgis-slice/arcgis-slice.d.ts +0 -30
  716. package/types/components/arcgis-slider/arcgis-slider.d.ts +0 -71
  717. package/types/components/arcgis-swipe/arcgis-swipe.d.ts +0 -33
  718. package/types/components/arcgis-table-list/arcgis-table-list.d.ts +0 -35
  719. package/types/components/arcgis-time-slider/arcgis-time-slider.d.ts +0 -54
  720. package/types/components/arcgis-track/arcgis-track.d.ts +0 -38
  721. package/types/components/arcgis-utility-network-associations/arcgis-utility-network-associations.d.ts +0 -52
  722. package/types/components/arcgis-utility-network-trace/arcgis-utility-network-trace.d.ts +0 -48
  723. package/types/components/arcgis-utility-network-validate-topology/arcgis-utility-network-validate-topology.d.ts +0 -30
  724. package/types/components/arcgis-value-picker/arcgis-value-picker.d.ts +0 -48
  725. package/types/components/arcgis-weather/arcgis-weather.d.ts +0 -26
  726. package/types/components/arcgis-zoom/arcgis-zoom.d.ts +0 -27
  727. package/types/components.d.ts +0 -2151
  728. package/types/utils/component-utils.d.ts +0 -22
  729. package/types/utils/expandable.d.ts +0 -6
  730. /package/{esm → dist/esm}/polyfills/core-js.js +0 -0
  731. /package/{esm → dist/esm}/polyfills/dom.js +0 -0
  732. /package/{esm → dist/esm}/polyfills/es5-html-element.js +0 -0
  733. /package/{esm → dist/esm}/polyfills/index.js +0 -0
  734. /package/{esm → dist/esm}/polyfills/system.js +0 -0
  735. /package/{index.cjs.js → dist/index.cjs.js} +0 -0
  736. /package/{index.js → dist/index.js} +0 -0
  737. /package/{loader → dist/loader}/package.json +0 -0
  738. /package/{types → dist/types}/components/types.d.ts +0 -0
  739. /package/{types → dist/types}/index.d.ts +0 -0
@@ -0,0 +1,2476 @@
1
+ /*!
2
+ * All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
+ * See https://js.arcgis.com/4.29/esri/copyright.txt for details.
4
+ * v4.29.0
5
+ */
6
+ 'use strict';
7
+
8
+ function _interopNamespace(e) {
9
+ if (e && e.__esModule) return e;
10
+ var n = Object.create(null);
11
+ if (e) {
12
+ Object.keys(e).forEach(function (k) {
13
+ if (k !== 'default') {
14
+ var d = Object.getOwnPropertyDescriptor(e, k);
15
+ Object.defineProperty(n, k, d.get ? d : {
16
+ enumerable: true,
17
+ get: function () {
18
+ return e[k];
19
+ }
20
+ });
21
+ }
22
+ });
23
+ }
24
+ n['default'] = e;
25
+ return Object.freeze(n);
26
+ }
27
+
28
+ const NAMESPACE = 'arcgis-map-components';
29
+ const BUILD = /* arcgis-map-components */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: true, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: false, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: true, element: false, event: true, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: false, hostListenerTarget: false, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: false, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: true, hydratedClass: false, initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: true, mode: false, observeAttribute: true, profile: false, prop: true, propBoolean: true, propMutable: true, propNumber: true, propString: true, reflect: true, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: true, slotChildNodesFix: false, slotRelocation: true, state: true, style: true, svg: false, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: false, vdomKey: false, vdomListener: true, vdomPropOrAttr: true, vdomRef: true, vdomRender: true, vdomStyle: false, vdomText: true, vdomXlink: false, watchCallback: true };
30
+
31
+ /**
32
+ * Virtual DOM patching algorithm based on Snabbdom by
33
+ * Simon Friis Vindum (@paldepind)
34
+ * Licensed under the MIT License
35
+ * https://github.com/snabbdom/snabbdom/blob/master/LICENSE
36
+ *
37
+ * Modified for Stencil's renderer and slot projection
38
+ */
39
+ let scopeId;
40
+ let contentRef;
41
+ let hostTagName;
42
+ let useNativeShadowDom = false;
43
+ let checkSlotFallbackVisibility = false;
44
+ let checkSlotRelocate = false;
45
+ let isSvgMode = false;
46
+ let queuePending = false;
47
+ const getAssetPath = (path) => {
48
+ const assetUrl = new URL(path, plt.$resourcesUrl$);
49
+ return assetUrl.origin !== win.location.origin ? assetUrl.href : assetUrl.pathname;
50
+ };
51
+ const createTime = (fnName, tagName = '') => {
52
+ {
53
+ return () => {
54
+ return;
55
+ };
56
+ }
57
+ };
58
+ const uniqueTime = (key, measureText) => {
59
+ {
60
+ return () => {
61
+ return;
62
+ };
63
+ }
64
+ };
65
+ const HYDRATED_CSS = '{visibility:hidden}[hydrated]{visibility:inherit}';
66
+ /**
67
+ * Constant for styles to be globally applied to `slot-fb` elements for pseudo-slot behavior.
68
+ *
69
+ * Two cascading rules must be used instead of a `:not()` selector due to Stencil browser
70
+ * support as of Stencil v4.
71
+ */
72
+ const SLOT_FB_CSS = 'slot-fb{display:contents}slot-fb[hidden]{display:none}';
73
+ /**
74
+ * Default style mode id
75
+ */
76
+ /**
77
+ * Reusable empty obj/array
78
+ * Don't add values to these!!
79
+ */
80
+ const EMPTY_OBJ = {};
81
+ const isDef = (v) => v != null;
82
+ /**
83
+ * Check whether a value is a 'complex type', defined here as an object or a
84
+ * function.
85
+ *
86
+ * @param o the value to check
87
+ * @returns whether it's a complex type or not
88
+ */
89
+ const isComplexType = (o) => {
90
+ // https://jsperf.com/typeof-fn-object/5
91
+ o = typeof o;
92
+ return o === 'object' || o === 'function';
93
+ };
94
+ /**
95
+ * Helper method for querying a `meta` tag that contains a nonce value
96
+ * out of a DOM's head.
97
+ *
98
+ * @param doc The DOM containing the `head` to query against
99
+ * @returns The content of the meta tag representing the nonce value, or `undefined` if no tag
100
+ * exists or the tag has no content.
101
+ */
102
+ function queryNonceMetaTagContent(doc) {
103
+ var _a, _b, _c;
104
+ return (_c = (_b = (_a = doc.head) === null || _a === void 0 ? void 0 : _a.querySelector('meta[name="csp-nonce"]')) === null || _b === void 0 ? void 0 : _b.getAttribute('content')) !== null && _c !== void 0 ? _c : undefined;
105
+ }
106
+ /**
107
+ * Production h() function based on Preact by
108
+ * Jason Miller (@developit)
109
+ * Licensed under the MIT License
110
+ * https://github.com/developit/preact/blob/master/LICENSE
111
+ *
112
+ * Modified for Stencil's compiler and vdom
113
+ */
114
+ // export function h(nodeName: string | d.FunctionalComponent, vnodeData: d.PropsType, child?: d.ChildType): d.VNode;
115
+ // export function h(nodeName: string | d.FunctionalComponent, vnodeData: d.PropsType, ...children: d.ChildType[]): d.VNode;
116
+ const h = (nodeName, vnodeData, ...children) => {
117
+ let child = null;
118
+ let slotName = null;
119
+ let simple = false;
120
+ let lastSimple = false;
121
+ const vNodeChildren = [];
122
+ const walk = (c) => {
123
+ for (let i = 0; i < c.length; i++) {
124
+ child = c[i];
125
+ if (Array.isArray(child)) {
126
+ walk(child);
127
+ }
128
+ else if (child != null && typeof child !== 'boolean') {
129
+ if ((simple = typeof nodeName !== 'function' && !isComplexType(child))) {
130
+ child = String(child);
131
+ }
132
+ if (simple && lastSimple) {
133
+ // If the previous child was simple (string), we merge both
134
+ vNodeChildren[vNodeChildren.length - 1].$text$ += child;
135
+ }
136
+ else {
137
+ // Append a new vNode, if it's text, we create a text vNode
138
+ vNodeChildren.push(simple ? newVNode(null, child) : child);
139
+ }
140
+ lastSimple = simple;
141
+ }
142
+ }
143
+ };
144
+ walk(children);
145
+ if (vnodeData) {
146
+ if (vnodeData.name) {
147
+ slotName = vnodeData.name;
148
+ }
149
+ // normalize class / className attributes
150
+ {
151
+ const classData = vnodeData.className || vnodeData.class;
152
+ if (classData) {
153
+ vnodeData.class =
154
+ typeof classData !== 'object'
155
+ ? classData
156
+ : Object.keys(classData)
157
+ .filter((k) => classData[k])
158
+ .join(' ');
159
+ }
160
+ }
161
+ }
162
+ const vnode = newVNode(nodeName, null);
163
+ vnode.$attrs$ = vnodeData;
164
+ if (vNodeChildren.length > 0) {
165
+ vnode.$children$ = vNodeChildren;
166
+ }
167
+ {
168
+ vnode.$name$ = slotName;
169
+ }
170
+ return vnode;
171
+ };
172
+ /**
173
+ * A utility function for creating a virtual DOM node from a tag and some
174
+ * possible text content.
175
+ *
176
+ * @param tag the tag for this element
177
+ * @param text possible text content for the node
178
+ * @returns a newly-minted virtual DOM node
179
+ */
180
+ const newVNode = (tag, text) => {
181
+ const vnode = {
182
+ $flags$: 0,
183
+ $tag$: tag,
184
+ $text$: text,
185
+ $elm$: null,
186
+ $children$: null,
187
+ };
188
+ {
189
+ vnode.$attrs$ = null;
190
+ }
191
+ {
192
+ vnode.$name$ = null;
193
+ }
194
+ return vnode;
195
+ };
196
+ const Host = {};
197
+ /**
198
+ * Check whether a given node is a Host node or not
199
+ *
200
+ * @param node the virtual DOM node to check
201
+ * @returns whether it's a Host node or not
202
+ */
203
+ const isHost = (node) => node && node.$tag$ === Host;
204
+ /**
205
+ * Parse a new property value for a given property type.
206
+ *
207
+ * While the prop value can reasonably be expected to be of `any` type as far as TypeScript's type checker is concerned,
208
+ * it is not safe to assume that the string returned by evaluating `typeof propValue` matches:
209
+ * 1. `any`, the type given to `propValue` in the function signature
210
+ * 2. the type stored from `propType`.
211
+ *
212
+ * This function provides the capability to parse/coerce a property's value to potentially any other JavaScript type.
213
+ *
214
+ * Property values represented in TSX preserve their type information. In the example below, the number 0 is passed to
215
+ * a component. This `propValue` will preserve its type information (`typeof propValue === 'number'`). Note that is
216
+ * based on the type of the value being passed in, not the type declared of the class member decorated with `@Prop`.
217
+ * ```tsx
218
+ * <my-cmp prop-val={0}></my-cmp>
219
+ * ```
220
+ *
221
+ * HTML prop values on the other hand, will always a string
222
+ *
223
+ * @param propValue the new value to coerce to some type
224
+ * @param propType the type of the prop, expressed as a binary number
225
+ * @returns the parsed/coerced value
226
+ */
227
+ const parsePropertyValue = (propValue, propType) => {
228
+ // ensure this value is of the correct prop type
229
+ if (propValue != null && !isComplexType(propValue)) {
230
+ if (propType & 4 /* MEMBER_FLAGS.Boolean */) {
231
+ // per the HTML spec, any string value means it is a boolean true value
232
+ // but we'll cheat here and say that the string "false" is the boolean false
233
+ return propValue === 'false' ? false : propValue === '' || !!propValue;
234
+ }
235
+ if (propType & 2 /* MEMBER_FLAGS.Number */) {
236
+ // force it to be a number
237
+ return parseFloat(propValue);
238
+ }
239
+ if (propType & 1 /* MEMBER_FLAGS.String */) {
240
+ // could have been passed as a number or boolean
241
+ // but we still want it as a string
242
+ return String(propValue);
243
+ }
244
+ // redundant return here for better minification
245
+ return propValue;
246
+ }
247
+ // not sure exactly what type we want
248
+ // so no need to change to a different type
249
+ return propValue;
250
+ };
251
+ const getElement = (ref) => (getHostRef(ref).$hostElement$ );
252
+ const createEvent = (ref, name, flags) => {
253
+ const elm = getElement(ref);
254
+ return {
255
+ emit: (detail) => {
256
+ return emitEvent(elm, name, {
257
+ bubbles: !!(flags & 4 /* EVENT_FLAGS.Bubbles */),
258
+ composed: !!(flags & 2 /* EVENT_FLAGS.Composed */),
259
+ cancelable: !!(flags & 1 /* EVENT_FLAGS.Cancellable */),
260
+ detail,
261
+ });
262
+ },
263
+ };
264
+ };
265
+ /**
266
+ * Helper function to create & dispatch a custom Event on a provided target
267
+ * @param elm the target of the Event
268
+ * @param name the name to give the custom Event
269
+ * @param opts options for configuring a custom Event
270
+ * @returns the custom Event
271
+ */
272
+ const emitEvent = (elm, name, opts) => {
273
+ const ev = plt.ce(name, opts);
274
+ elm.dispatchEvent(ev);
275
+ return ev;
276
+ };
277
+ const rootAppliedStyles = /*@__PURE__*/ new WeakMap();
278
+ const registerStyle = (scopeId, cssText, allowCS) => {
279
+ let style = styles.get(scopeId);
280
+ if (supportsConstructableStylesheets && allowCS) {
281
+ style = (style || new CSSStyleSheet());
282
+ if (typeof style === 'string') {
283
+ style = cssText;
284
+ }
285
+ else {
286
+ style.replaceSync(cssText);
287
+ }
288
+ }
289
+ else {
290
+ style = cssText;
291
+ }
292
+ styles.set(scopeId, style);
293
+ };
294
+ const addStyle = (styleContainerNode, cmpMeta, mode) => {
295
+ var _a;
296
+ const scopeId = getScopeId(cmpMeta);
297
+ const style = styles.get(scopeId);
298
+ // if an element is NOT connected then getRootNode() will return the wrong root node
299
+ // so the fallback is to always use the document for the root node in those cases
300
+ styleContainerNode = styleContainerNode.nodeType === 11 /* NODE_TYPE.DocumentFragment */ ? styleContainerNode : doc;
301
+ if (style) {
302
+ if (typeof style === 'string') {
303
+ styleContainerNode = styleContainerNode.head || styleContainerNode;
304
+ let appliedStyles = rootAppliedStyles.get(styleContainerNode);
305
+ let styleElm;
306
+ if (!appliedStyles) {
307
+ rootAppliedStyles.set(styleContainerNode, (appliedStyles = new Set()));
308
+ }
309
+ if (!appliedStyles.has(scopeId)) {
310
+ {
311
+ styleElm = doc.createElement('style');
312
+ styleElm.innerHTML = style;
313
+ // Apply CSP nonce to the style tag if it exists
314
+ const nonce = (_a = plt.$nonce$) !== null && _a !== void 0 ? _a : queryNonceMetaTagContent(doc);
315
+ if (nonce != null) {
316
+ styleElm.setAttribute('nonce', nonce);
317
+ }
318
+ styleContainerNode.insertBefore(styleElm, styleContainerNode.querySelector('link'));
319
+ }
320
+ // Add styles for `slot-fb` elements if we're using slots outside the Shadow DOM
321
+ if (cmpMeta.$flags$ & 4 /* CMP_FLAGS.hasSlotRelocation */) {
322
+ styleElm.innerHTML += SLOT_FB_CSS;
323
+ }
324
+ if (appliedStyles) {
325
+ appliedStyles.add(scopeId);
326
+ }
327
+ }
328
+ }
329
+ else if (!styleContainerNode.adoptedStyleSheets.includes(style)) {
330
+ styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
331
+ }
332
+ }
333
+ return scopeId;
334
+ };
335
+ const attachStyles = (hostRef) => {
336
+ const cmpMeta = hostRef.$cmpMeta$;
337
+ const elm = hostRef.$hostElement$;
338
+ const flags = cmpMeta.$flags$;
339
+ const endAttachStyles = createTime('attachStyles', cmpMeta.$tagName$);
340
+ const scopeId = addStyle(elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(), cmpMeta);
341
+ if (flags & 10 /* CMP_FLAGS.needsScopedEncapsulation */) {
342
+ // only required when we're NOT using native shadow dom (slot)
343
+ // or this browser doesn't support native shadow dom
344
+ // and this host element was NOT created with SSR
345
+ // let's pick out the inner content for slot projection
346
+ // create a node to represent where the original
347
+ // content was first placed, which is useful later on
348
+ // DOM WRITE!!
349
+ elm['s-sc'] = scopeId;
350
+ elm.classList.add(scopeId + '-h');
351
+ }
352
+ endAttachStyles();
353
+ };
354
+ const getScopeId = (cmp, mode) => 'sc-' + (cmp.$tagName$);
355
+ /**
356
+ * Production setAccessor() function based on Preact by
357
+ * Jason Miller (@developit)
358
+ * Licensed under the MIT License
359
+ * https://github.com/developit/preact/blob/master/LICENSE
360
+ *
361
+ * Modified for Stencil's compiler and vdom
362
+ */
363
+ /**
364
+ * When running a VDom render set properties present on a VDom node onto the
365
+ * corresponding HTML element.
366
+ *
367
+ * Note that this function has special functionality for the `class`,
368
+ * `style`, `key`, and `ref` attributes, as well as event handlers (like
369
+ * `onClick`, etc). All others are just passed through as-is.
370
+ *
371
+ * @param elm the HTMLElement onto which attributes should be set
372
+ * @param memberName the name of the attribute to set
373
+ * @param oldValue the old value for the attribute
374
+ * @param newValue the new value for the attribute
375
+ * @param isSvg whether we're in an svg context or not
376
+ * @param flags bitflags for Vdom variables
377
+ */
378
+ const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
379
+ if (oldValue !== newValue) {
380
+ let isProp = isMemberInElement(elm, memberName);
381
+ let ln = memberName.toLowerCase();
382
+ if (memberName === 'class') {
383
+ const classList = elm.classList;
384
+ const oldClasses = parseClassList(oldValue);
385
+ const newClasses = parseClassList(newValue);
386
+ classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
387
+ classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
388
+ }
389
+ else if (memberName === 'ref') {
390
+ // minifier will clean this up
391
+ if (newValue) {
392
+ newValue(elm);
393
+ }
394
+ }
395
+ else if ((!isProp ) &&
396
+ memberName[0] === 'o' &&
397
+ memberName[1] === 'n') {
398
+ // Event Handlers
399
+ // so if the member name starts with "on" and the 3rd characters is
400
+ // a capital letter, and it's not already a member on the element,
401
+ // then we're assuming it's an event listener
402
+ if (memberName[2] === '-') {
403
+ // on- prefixed events
404
+ // allows to be explicit about the dom event to listen without any magic
405
+ // under the hood:
406
+ // <my-cmp on-click> // listens for "click"
407
+ // <my-cmp on-Click> // listens for "Click"
408
+ // <my-cmp on-ionChange> // listens for "ionChange"
409
+ // <my-cmp on-EVENTS> // listens for "EVENTS"
410
+ memberName = memberName.slice(3);
411
+ }
412
+ else if (isMemberInElement(win, ln)) {
413
+ // standard event
414
+ // the JSX attribute could have been "onMouseOver" and the
415
+ // member name "onmouseover" is on the window's prototype
416
+ // so let's add the listener "mouseover", which is all lowercased
417
+ memberName = ln.slice(2);
418
+ }
419
+ else {
420
+ // custom event
421
+ // the JSX attribute could have been "onMyCustomEvent"
422
+ // so let's trim off the "on" prefix and lowercase the first character
423
+ // and add the listener "myCustomEvent"
424
+ // except for the first character, we keep the event name case
425
+ memberName = ln[2] + memberName.slice(3);
426
+ }
427
+ if (oldValue || newValue) {
428
+ // Need to account for "capture" events.
429
+ // If the event name ends with "Capture", we'll update the name to remove
430
+ // the "Capture" suffix and make sure the event listener is setup to handle the capture event.
431
+ const capture = memberName.endsWith(CAPTURE_EVENT_SUFFIX);
432
+ // Make sure we only replace the last instance of "Capture"
433
+ memberName = memberName.replace(CAPTURE_EVENT_REGEX, '');
434
+ if (oldValue) {
435
+ plt.rel(elm, memberName, oldValue, capture);
436
+ }
437
+ if (newValue) {
438
+ plt.ael(elm, memberName, newValue, capture);
439
+ }
440
+ }
441
+ }
442
+ else {
443
+ // Set property if it exists and it's not a SVG
444
+ const isComplex = isComplexType(newValue);
445
+ if ((isProp || (isComplex && newValue !== null)) && !isSvg) {
446
+ try {
447
+ if (!elm.tagName.includes('-')) {
448
+ const n = newValue == null ? '' : newValue;
449
+ // Workaround for Safari, moving the <input> caret when re-assigning the same valued
450
+ if (memberName === 'list') {
451
+ isProp = false;
452
+ }
453
+ else if (oldValue == null || elm[memberName] != n) {
454
+ elm[memberName] = n;
455
+ }
456
+ }
457
+ else {
458
+ elm[memberName] = newValue;
459
+ }
460
+ }
461
+ catch (e) {
462
+ /**
463
+ * in case someone tries to set a read-only property, e.g. "namespaceURI", we just ignore it
464
+ */
465
+ }
466
+ }
467
+ if (newValue == null || newValue === false) {
468
+ if (newValue !== false || elm.getAttribute(memberName) === '') {
469
+ {
470
+ elm.removeAttribute(memberName);
471
+ }
472
+ }
473
+ }
474
+ else if ((!isProp || flags & 4 /* VNODE_FLAGS.isHost */ || isSvg) && !isComplex) {
475
+ newValue = newValue === true ? '' : newValue;
476
+ {
477
+ elm.setAttribute(memberName, newValue);
478
+ }
479
+ }
480
+ }
481
+ }
482
+ };
483
+ const parseClassListRegex = /\s/;
484
+ /**
485
+ * Parsed a string of classnames into an array
486
+ * @param value className string, e.g. "foo bar baz"
487
+ * @returns list of classes, e.g. ["foo", "bar", "baz"]
488
+ */
489
+ const parseClassList = (value) => (!value ? [] : value.split(parseClassListRegex));
490
+ const CAPTURE_EVENT_SUFFIX = 'Capture';
491
+ const CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + '$');
492
+ const updateElement = (oldVnode, newVnode, isSvgMode, memberName) => {
493
+ // if the element passed in is a shadow root, which is a document fragment
494
+ // then we want to be adding attrs/props to the shadow root's "host" element
495
+ // if it's not a shadow root, then we add attrs/props to the same element
496
+ const elm = newVnode.$elm$.nodeType === 11 /* NODE_TYPE.DocumentFragment */ && newVnode.$elm$.host
497
+ ? newVnode.$elm$.host
498
+ : newVnode.$elm$;
499
+ const oldVnodeAttrs = (oldVnode && oldVnode.$attrs$) || EMPTY_OBJ;
500
+ const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
501
+ {
502
+ // remove attributes no longer present on the vnode by setting them to undefined
503
+ for (memberName in oldVnodeAttrs) {
504
+ if (!(memberName in newVnodeAttrs)) {
505
+ setAccessor(elm, memberName, oldVnodeAttrs[memberName], undefined, isSvgMode, newVnode.$flags$);
506
+ }
507
+ }
508
+ }
509
+ // add new & update changed attributes
510
+ for (memberName in newVnodeAttrs) {
511
+ setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode, newVnode.$flags$);
512
+ }
513
+ };
514
+ /**
515
+ * Create a DOM Node corresponding to one of the children of a given VNode.
516
+ *
517
+ * @param oldParentVNode the parent VNode from the previous render
518
+ * @param newParentVNode the parent VNode from the current render
519
+ * @param childIndex the index of the VNode, in the _new_ parent node's
520
+ * children, for which we will create a new DOM node
521
+ * @param parentElm the parent DOM node which our new node will be a child of
522
+ * @returns the newly created node
523
+ */
524
+ const createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
525
+ // tslint:disable-next-line: prefer-const
526
+ const newVNode = newParentVNode.$children$[childIndex];
527
+ let i = 0;
528
+ let elm;
529
+ let childNode;
530
+ let oldVNode;
531
+ if (!useNativeShadowDom) {
532
+ // remember for later we need to check to relocate nodes
533
+ checkSlotRelocate = true;
534
+ if (newVNode.$tag$ === 'slot') {
535
+ if (scopeId) {
536
+ // scoped css needs to add its scoped id to the parent element
537
+ parentElm.classList.add(scopeId + '-s');
538
+ }
539
+ newVNode.$flags$ |= newVNode.$children$
540
+ ? // slot element has fallback content
541
+ 2 /* VNODE_FLAGS.isSlotFallback */
542
+ : // slot element does not have fallback content
543
+ 1 /* VNODE_FLAGS.isSlotReference */;
544
+ }
545
+ }
546
+ if (newVNode.$text$ !== null) {
547
+ // create text node
548
+ elm = newVNode.$elm$ = doc.createTextNode(newVNode.$text$);
549
+ }
550
+ else if (newVNode.$flags$ & 1 /* VNODE_FLAGS.isSlotReference */) {
551
+ // create a slot reference node
552
+ elm = newVNode.$elm$ =
553
+ doc.createTextNode('');
554
+ }
555
+ else {
556
+ // create element
557
+ elm = newVNode.$elm$ = (doc.createElement(newVNode.$flags$ & 2 /* VNODE_FLAGS.isSlotFallback */
558
+ ? 'slot-fb'
559
+ : newVNode.$tag$));
560
+ // add css classes, attrs, props, listeners, etc.
561
+ {
562
+ updateElement(null, newVNode, isSvgMode);
563
+ }
564
+ if (isDef(scopeId) && elm['s-si'] !== scopeId) {
565
+ // if there is a scopeId and this is the initial render
566
+ // then let's add the scopeId as a css class
567
+ elm.classList.add((elm['s-si'] = scopeId));
568
+ }
569
+ if (newVNode.$children$) {
570
+ for (i = 0; i < newVNode.$children$.length; ++i) {
571
+ // create the node
572
+ childNode = createElm(oldParentVNode, newVNode, i, elm);
573
+ // return node could have been null
574
+ if (childNode) {
575
+ // append our new node
576
+ elm.appendChild(childNode);
577
+ }
578
+ }
579
+ }
580
+ }
581
+ // This needs to always happen so we can hide nodes that are projected
582
+ // to another component but don't end up in a slot
583
+ elm['s-hn'] = hostTagName;
584
+ {
585
+ if (newVNode.$flags$ & (2 /* VNODE_FLAGS.isSlotFallback */ | 1 /* VNODE_FLAGS.isSlotReference */)) {
586
+ // remember the content reference comment
587
+ elm['s-sr'] = true;
588
+ // remember the content reference comment
589
+ elm['s-cr'] = contentRef;
590
+ // remember the slot name, or empty string for default slot
591
+ elm['s-sn'] = newVNode.$name$ || '';
592
+ // check if we've got an old vnode for this slot
593
+ oldVNode = oldParentVNode && oldParentVNode.$children$ && oldParentVNode.$children$[childIndex];
594
+ if (oldVNode && oldVNode.$tag$ === newVNode.$tag$ && oldParentVNode.$elm$) {
595
+ {
596
+ // we've got an old slot vnode and the wrapper is being replaced
597
+ // so let's move the old slot content back to its original location
598
+ putBackInOriginalLocation(oldParentVNode.$elm$, false);
599
+ }
600
+ }
601
+ }
602
+ }
603
+ return elm;
604
+ };
605
+ const putBackInOriginalLocation = (parentElm, recursive) => {
606
+ plt.$flags$ |= 1 /* PLATFORM_FLAGS.isTmpDisconnected */;
607
+ const oldSlotChildNodes = parentElm.childNodes;
608
+ for (let i = oldSlotChildNodes.length - 1; i >= 0; i--) {
609
+ const childNode = oldSlotChildNodes[i];
610
+ if (childNode['s-hn'] !== hostTagName && childNode['s-ol']) {
611
+ // and relocate it back to it's original location
612
+ parentReferenceNode(childNode).insertBefore(childNode, referenceNode(childNode));
613
+ // remove the old original location comment entirely
614
+ // later on the patch function will know what to do
615
+ // and move this to the correct spot if need be
616
+ childNode['s-ol'].remove();
617
+ childNode['s-ol'] = undefined;
618
+ // Reset so we can correctly move the node around again.
619
+ childNode['s-sh'] = undefined;
620
+ checkSlotRelocate = true;
621
+ }
622
+ if (recursive) {
623
+ putBackInOriginalLocation(childNode, recursive);
624
+ }
625
+ }
626
+ plt.$flags$ &= ~1 /* PLATFORM_FLAGS.isTmpDisconnected */;
627
+ };
628
+ /**
629
+ * Create DOM nodes corresponding to a list of {@link d.Vnode} objects and
630
+ * add them to the DOM in the appropriate place.
631
+ *
632
+ * @param parentElm the DOM node which should be used as a parent for the new
633
+ * DOM nodes
634
+ * @param before a child of the `parentElm` which the new children should be
635
+ * inserted before (optional)
636
+ * @param parentVNode the parent virtual DOM node
637
+ * @param vnodes the new child virtual DOM nodes to produce DOM nodes for
638
+ * @param startIdx the index in the child virtual DOM nodes at which to start
639
+ * creating DOM nodes (inclusive)
640
+ * @param endIdx the index in the child virtual DOM nodes at which to stop
641
+ * creating DOM nodes (inclusive)
642
+ */
643
+ const addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) => {
644
+ let containerElm = ((parentElm['s-cr'] && parentElm['s-cr'].parentNode) || parentElm);
645
+ let childNode;
646
+ if (containerElm.shadowRoot && containerElm.tagName === hostTagName) {
647
+ containerElm = containerElm.shadowRoot;
648
+ }
649
+ for (; startIdx <= endIdx; ++startIdx) {
650
+ if (vnodes[startIdx]) {
651
+ childNode = createElm(null, parentVNode, startIdx, parentElm);
652
+ if (childNode) {
653
+ vnodes[startIdx].$elm$ = childNode;
654
+ containerElm.insertBefore(childNode, referenceNode(before) );
655
+ }
656
+ }
657
+ }
658
+ };
659
+ /**
660
+ * Remove the DOM elements corresponding to a list of {@link d.VNode} objects.
661
+ * This can be used to, for instance, clean up after a list of children which
662
+ * should no longer be shown.
663
+ *
664
+ * This function also handles some of Stencil's slot relocation logic.
665
+ *
666
+ * @param vnodes a list of virtual DOM nodes to remove
667
+ * @param startIdx the index at which to start removing nodes (inclusive)
668
+ * @param endIdx the index at which to stop removing nodes (inclusive)
669
+ */
670
+ const removeVnodes = (vnodes, startIdx, endIdx) => {
671
+ for (let index = startIdx; index <= endIdx; ++index) {
672
+ const vnode = vnodes[index];
673
+ if (vnode) {
674
+ const elm = vnode.$elm$;
675
+ nullifyVNodeRefs(vnode);
676
+ if (elm) {
677
+ {
678
+ // we're removing this element
679
+ // so it's possible we need to show slot fallback content now
680
+ checkSlotFallbackVisibility = true;
681
+ if (elm['s-ol']) {
682
+ // remove the original location comment
683
+ elm['s-ol'].remove();
684
+ }
685
+ else {
686
+ // it's possible that child nodes of the node
687
+ // that's being removed are slot nodes
688
+ putBackInOriginalLocation(elm, true);
689
+ }
690
+ }
691
+ // remove the vnode's element from the dom
692
+ elm.remove();
693
+ }
694
+ }
695
+ }
696
+ };
697
+ /**
698
+ * Reconcile the children of a new VNode with the children of an old VNode by
699
+ * traversing the two collections of children, identifying nodes that are
700
+ * conserved or changed, calling out to `patch` to make any necessary
701
+ * updates to the DOM, and rearranging DOM nodes as needed.
702
+ *
703
+ * The algorithm for reconciling children works by analyzing two 'windows' onto
704
+ * the two arrays of children (`oldCh` and `newCh`). We keep track of the
705
+ * 'windows' by storing start and end indices and references to the
706
+ * corresponding array entries. Initially the two 'windows' are basically equal
707
+ * to the entire array, but we progressively narrow the windows until there are
708
+ * no children left to update by doing the following:
709
+ *
710
+ * 1. Skip any `null` entries at the beginning or end of the two arrays, so
711
+ * that if we have an initial array like the following we'll end up dealing
712
+ * only with a window bounded by the highlighted elements:
713
+ *
714
+ * [null, null, VNode1 , ... , VNode2, null, null]
715
+ * ^^^^^^ ^^^^^^
716
+ *
717
+ * 2. Check to see if the elements at the head and tail positions are equal
718
+ * across the windows. This will basically detect elements which haven't
719
+ * been added, removed, or changed position, i.e. if you had the following
720
+ * VNode elements (represented as HTML):
721
+ *
722
+ * oldVNode: `<div><p><span>HEY</span></p></div>`
723
+ * newVNode: `<div><p><span>THERE</span></p></div>`
724
+ *
725
+ * Then when comparing the children of the `<div>` tag we check the equality
726
+ * of the VNodes corresponding to the `<p>` tags and, since they are the
727
+ * same tag in the same position, we'd be able to avoid completely
728
+ * re-rendering the subtree under them with a new DOM element and would just
729
+ * call out to `patch` to handle reconciling their children and so on.
730
+ *
731
+ * 3. Check, for both windows, to see if the element at the beginning of the
732
+ * window corresponds to the element at the end of the other window. This is
733
+ * a heuristic which will let us identify _some_ situations in which
734
+ * elements have changed position, for instance it _should_ detect that the
735
+ * children nodes themselves have not changed but merely moved in the
736
+ * following example:
737
+ *
738
+ * oldVNode: `<div><element-one /><element-two /></div>`
739
+ * newVNode: `<div><element-two /><element-one /></div>`
740
+ *
741
+ * If we find cases like this then we also need to move the concrete DOM
742
+ * elements corresponding to the moved children to write the re-order to the
743
+ * DOM.
744
+ *
745
+ * 4. Finally, if VNodes have the `key` attribute set on them we check for any
746
+ * nodes in the old children which have the same key as the first element in
747
+ * our window on the new children. If we find such a node we handle calling
748
+ * out to `patch`, moving relevant DOM nodes, and so on, in accordance with
749
+ * what we find.
750
+ *
751
+ * Finally, once we've narrowed our 'windows' to the point that either of them
752
+ * collapse (i.e. they have length 0) we then handle any remaining VNode
753
+ * insertion or deletion that needs to happen to get a DOM state that correctly
754
+ * reflects the new child VNodes. If, for instance, after our window on the old
755
+ * children has collapsed we still have more nodes on the new children that
756
+ * we haven't dealt with yet then we need to add them, or if the new children
757
+ * collapse but we still have unhandled _old_ children then we need to make
758
+ * sure the corresponding DOM nodes are removed.
759
+ *
760
+ * @param parentElm the node into which the parent VNode is rendered
761
+ * @param oldCh the old children of the parent node
762
+ * @param newVNode the new VNode which will replace the parent
763
+ * @param newCh the new children of the parent node
764
+ * @param isInitialRender whether or not this is the first render of the vdom
765
+ */
766
+ const updateChildren = (parentElm, oldCh, newVNode, newCh, isInitialRender = false) => {
767
+ let oldStartIdx = 0;
768
+ let newStartIdx = 0;
769
+ let oldEndIdx = oldCh.length - 1;
770
+ let oldStartVnode = oldCh[0];
771
+ let oldEndVnode = oldCh[oldEndIdx];
772
+ let newEndIdx = newCh.length - 1;
773
+ let newStartVnode = newCh[0];
774
+ let newEndVnode = newCh[newEndIdx];
775
+ let node;
776
+ while (oldStartIdx <= oldEndIdx && newStartIdx <= newEndIdx) {
777
+ if (oldStartVnode == null) {
778
+ // VNode might have been moved left
779
+ oldStartVnode = oldCh[++oldStartIdx];
780
+ }
781
+ else if (oldEndVnode == null) {
782
+ oldEndVnode = oldCh[--oldEndIdx];
783
+ }
784
+ else if (newStartVnode == null) {
785
+ newStartVnode = newCh[++newStartIdx];
786
+ }
787
+ else if (newEndVnode == null) {
788
+ newEndVnode = newCh[--newEndIdx];
789
+ }
790
+ else if (isSameVnode(oldStartVnode, newStartVnode, isInitialRender)) {
791
+ // if the start nodes are the same then we should patch the new VNode
792
+ // onto the old one, and increment our `newStartIdx` and `oldStartIdx`
793
+ // indices to reflect that. We don't need to move any DOM Nodes around
794
+ // since things are matched up in order.
795
+ patch(oldStartVnode, newStartVnode, isInitialRender);
796
+ oldStartVnode = oldCh[++oldStartIdx];
797
+ newStartVnode = newCh[++newStartIdx];
798
+ }
799
+ else if (isSameVnode(oldEndVnode, newEndVnode, isInitialRender)) {
800
+ // likewise, if the end nodes are the same we patch new onto old and
801
+ // decrement our end indices, and also likewise in this case we don't
802
+ // need to move any DOM Nodes.
803
+ patch(oldEndVnode, newEndVnode, isInitialRender);
804
+ oldEndVnode = oldCh[--oldEndIdx];
805
+ newEndVnode = newCh[--newEndIdx];
806
+ }
807
+ else if (isSameVnode(oldStartVnode, newEndVnode, isInitialRender)) {
808
+ // case: "Vnode moved right"
809
+ //
810
+ // We've found that the last node in our window on the new children is
811
+ // the same VNode as the _first_ node in our window on the old children
812
+ // we're dealing with now. Visually, this is the layout of these two
813
+ // nodes:
814
+ //
815
+ // newCh: [..., newStartVnode , ... , newEndVnode , ...]
816
+ // ^^^^^^^^^^^
817
+ // oldCh: [..., oldStartVnode , ... , oldEndVnode , ...]
818
+ // ^^^^^^^^^^^^^
819
+ //
820
+ // In this situation we need to patch `newEndVnode` onto `oldStartVnode`
821
+ // and move the DOM element for `oldStartVnode`.
822
+ if ((oldStartVnode.$tag$ === 'slot' || newEndVnode.$tag$ === 'slot')) {
823
+ putBackInOriginalLocation(oldStartVnode.$elm$.parentNode, false);
824
+ }
825
+ patch(oldStartVnode, newEndVnode, isInitialRender);
826
+ // We need to move the element for `oldStartVnode` into a position which
827
+ // will be appropriate for `newEndVnode`. For this we can use
828
+ // `.insertBefore` and `oldEndVnode.$elm$.nextSibling`. If there is a
829
+ // sibling for `oldEndVnode.$elm$` then we want to move the DOM node for
830
+ // `oldStartVnode` between `oldEndVnode` and it's sibling, like so:
831
+ //
832
+ // <old-start-node />
833
+ // <some-intervening-node />
834
+ // <old-end-node />
835
+ // <!-- -> <-- `oldStartVnode.$elm$` should be inserted here
836
+ // <next-sibling />
837
+ //
838
+ // If instead `oldEndVnode.$elm$` has no sibling then we just want to put
839
+ // the node for `oldStartVnode` at the end of the children of
840
+ // `parentElm`. Luckily, `Node.nextSibling` will return `null` if there
841
+ // aren't any siblings, and passing `null` to `Node.insertBefore` will
842
+ // append it to the children of the parent element.
843
+ parentElm.insertBefore(oldStartVnode.$elm$, oldEndVnode.$elm$.nextSibling);
844
+ oldStartVnode = oldCh[++oldStartIdx];
845
+ newEndVnode = newCh[--newEndIdx];
846
+ }
847
+ else if (isSameVnode(oldEndVnode, newStartVnode, isInitialRender)) {
848
+ // case: "Vnode moved left"
849
+ //
850
+ // We've found that the first node in our window on the new children is
851
+ // the same VNode as the _last_ node in our window on the old children.
852
+ // Visually, this is the layout of these two nodes:
853
+ //
854
+ // newCh: [..., newStartVnode , ... , newEndVnode , ...]
855
+ // ^^^^^^^^^^^^^
856
+ // oldCh: [..., oldStartVnode , ... , oldEndVnode , ...]
857
+ // ^^^^^^^^^^^
858
+ //
859
+ // In this situation we need to patch `newStartVnode` onto `oldEndVnode`
860
+ // (which will handle updating any changed attributes, reconciling their
861
+ // children etc) but we also need to move the DOM node to which
862
+ // `oldEndVnode` corresponds.
863
+ if ((oldStartVnode.$tag$ === 'slot' || newEndVnode.$tag$ === 'slot')) {
864
+ putBackInOriginalLocation(oldEndVnode.$elm$.parentNode, false);
865
+ }
866
+ patch(oldEndVnode, newStartVnode, isInitialRender);
867
+ // We've already checked above if `oldStartVnode` and `newStartVnode` are
868
+ // the same node, so since we're here we know that they are not. Thus we
869
+ // can move the element for `oldEndVnode` _before_ the element for
870
+ // `oldStartVnode`, leaving `oldStartVnode` to be reconciled in the
871
+ // future.
872
+ parentElm.insertBefore(oldEndVnode.$elm$, oldStartVnode.$elm$);
873
+ oldEndVnode = oldCh[--oldEndIdx];
874
+ newStartVnode = newCh[++newStartIdx];
875
+ }
876
+ else {
877
+ {
878
+ // We either didn't find an element in the old children that matches
879
+ // the key of the first new child OR the build is not using `key`
880
+ // attributes at all. In either case we need to create a new element
881
+ // for the new node.
882
+ node = createElm(oldCh && oldCh[newStartIdx], newVNode, newStartIdx, parentElm);
883
+ newStartVnode = newCh[++newStartIdx];
884
+ }
885
+ if (node) {
886
+ // if we created a new node then handle inserting it to the DOM
887
+ {
888
+ parentReferenceNode(oldStartVnode.$elm$).insertBefore(node, referenceNode(oldStartVnode.$elm$));
889
+ }
890
+ }
891
+ }
892
+ }
893
+ if (oldStartIdx > oldEndIdx) {
894
+ // we have some more new nodes to add which don't match up with old nodes
895
+ addVnodes(parentElm, newCh[newEndIdx + 1] == null ? null : newCh[newEndIdx + 1].$elm$, newVNode, newCh, newStartIdx, newEndIdx);
896
+ }
897
+ else if (newStartIdx > newEndIdx) {
898
+ // there are nodes in the `oldCh` array which no longer correspond to nodes
899
+ // in the new array, so lets remove them (which entails cleaning up the
900
+ // relevant DOM nodes)
901
+ removeVnodes(oldCh, oldStartIdx, oldEndIdx);
902
+ }
903
+ };
904
+ /**
905
+ * Compare two VNodes to determine if they are the same
906
+ *
907
+ * **NB**: This function is an equality _heuristic_ based on the available
908
+ * information set on the two VNodes and can be misleading under certain
909
+ * circumstances. In particular, if the two nodes do not have `key` attrs
910
+ * (available under `$key$` on VNodes) then the function falls back on merely
911
+ * checking that they have the same tag.
912
+ *
913
+ * So, in other words, if `key` attrs are not set on VNodes which may be
914
+ * changing order within a `children` array or something along those lines then
915
+ * we could obtain a false negative and then have to do needless re-rendering
916
+ * (i.e. we'd say two VNodes aren't equal when in fact they should be).
917
+ *
918
+ * @param leftVNode the first VNode to check
919
+ * @param rightVNode the second VNode to check
920
+ * @param isInitialRender whether or not this is the first render of the vdom
921
+ * @returns whether they're equal or not
922
+ */
923
+ const isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
924
+ // compare if two vnode to see if they're "technically" the same
925
+ // need to have the same element tag, and same key to be the same
926
+ if (leftVNode.$tag$ === rightVNode.$tag$) {
927
+ if (leftVNode.$tag$ === 'slot') {
928
+ return leftVNode.$name$ === rightVNode.$name$;
929
+ }
930
+ return true;
931
+ }
932
+ return false;
933
+ };
934
+ const referenceNode = (node) => {
935
+ // this node was relocated to a new location in the dom
936
+ // because of some other component's slot
937
+ // but we still have an html comment in place of where
938
+ // it's original location was according to it's original vdom
939
+ return (node && node['s-ol']) || node;
940
+ };
941
+ const parentReferenceNode = (node) => (node['s-ol'] ? node['s-ol'] : node).parentNode;
942
+ /**
943
+ * Handle reconciling an outdated VNode with a new one which corresponds to
944
+ * it. This function handles flushing updates to the DOM and reconciling the
945
+ * children of the two nodes (if any).
946
+ *
947
+ * @param oldVNode an old VNode whose DOM element and children we want to update
948
+ * @param newVNode a new VNode representing an updated version of the old one
949
+ * @param isInitialRender whether or not this is the first render of the vdom
950
+ */
951
+ const patch = (oldVNode, newVNode, isInitialRender = false) => {
952
+ const elm = (newVNode.$elm$ = oldVNode.$elm$);
953
+ const oldChildren = oldVNode.$children$;
954
+ const newChildren = newVNode.$children$;
955
+ const tag = newVNode.$tag$;
956
+ const text = newVNode.$text$;
957
+ let defaultHolder;
958
+ if (text === null) {
959
+ {
960
+ if (tag === 'slot')
961
+ ;
962
+ else {
963
+ // either this is the first render of an element OR it's an update
964
+ // AND we already know it's possible it could have changed
965
+ // this updates the element's css classes, attrs, props, listeners, etc.
966
+ updateElement(oldVNode, newVNode, isSvgMode);
967
+ }
968
+ }
969
+ if (oldChildren !== null && newChildren !== null) {
970
+ // looks like there's child vnodes for both the old and new vnodes
971
+ // so we need to call `updateChildren` to reconcile them
972
+ updateChildren(elm, oldChildren, newVNode, newChildren, isInitialRender);
973
+ }
974
+ else if (newChildren !== null) {
975
+ // no old child vnodes, but there are new child vnodes to add
976
+ if (oldVNode.$text$ !== null) {
977
+ // the old vnode was text, so be sure to clear it out
978
+ elm.textContent = '';
979
+ }
980
+ // add the new vnode children
981
+ addVnodes(elm, null, newVNode, newChildren, 0, newChildren.length - 1);
982
+ }
983
+ else if (oldChildren !== null) {
984
+ // no new child vnodes, but there are old child vnodes to remove
985
+ removeVnodes(oldChildren, 0, oldChildren.length - 1);
986
+ }
987
+ }
988
+ else if ((defaultHolder = elm['s-cr'])) {
989
+ // this element has slotted content
990
+ defaultHolder.parentNode.textContent = text;
991
+ }
992
+ else if (oldVNode.$text$ !== text) {
993
+ // update the text content for the text only vnode
994
+ // and also only if the text is different than before
995
+ elm.data = text;
996
+ }
997
+ };
998
+ /**
999
+ * Adjust the `.hidden` property as-needed on any nodes in a DOM subtree which
1000
+ * are slot fallbacks nodes.
1001
+ *
1002
+ * A slot fallback node should be visible by default. Then, it should be
1003
+ * conditionally hidden if:
1004
+ *
1005
+ * - it has a sibling with a `slot` property set to its slot name or if
1006
+ * - it is a default fallback slot node, in which case we hide if it has any
1007
+ * content
1008
+ *
1009
+ * @param elm the element of interest
1010
+ */
1011
+ const updateFallbackSlotVisibility = (elm) => {
1012
+ const childNodes = elm.childNodes;
1013
+ for (const childNode of childNodes) {
1014
+ if (childNode.nodeType === 1 /* NODE_TYPE.ElementNode */) {
1015
+ if (childNode['s-sr']) {
1016
+ // this is a slot fallback node
1017
+ // get the slot name for this slot reference node
1018
+ const slotName = childNode['s-sn'];
1019
+ // by default always show a fallback slot node
1020
+ // then hide it if there are other slots in the light dom
1021
+ childNode.hidden = false;
1022
+ // we need to check all of its sibling nodes in order to see if
1023
+ // `childNode` should be hidden
1024
+ for (const siblingNode of childNodes) {
1025
+ // Don't check the node against itself
1026
+ if (siblingNode !== childNode) {
1027
+ if (siblingNode['s-hn'] !== childNode['s-hn'] || slotName !== '') {
1028
+ // this sibling node is from a different component OR is a named
1029
+ // fallback slot node
1030
+ if (siblingNode.nodeType === 1 /* NODE_TYPE.ElementNode */ &&
1031
+ (slotName === siblingNode.getAttribute('slot') || slotName === siblingNode['s-sn'])) {
1032
+ childNode.hidden = true;
1033
+ break;
1034
+ }
1035
+ }
1036
+ else {
1037
+ // this is a default fallback slot node
1038
+ // any element or text node (with content)
1039
+ // should hide the default fallback slot node
1040
+ if (siblingNode.nodeType === 1 /* NODE_TYPE.ElementNode */ ||
1041
+ (siblingNode.nodeType === 3 /* NODE_TYPE.TextNode */ && siblingNode.textContent.trim() !== '')) {
1042
+ childNode.hidden = true;
1043
+ break;
1044
+ }
1045
+ }
1046
+ }
1047
+ }
1048
+ }
1049
+ // keep drilling down
1050
+ updateFallbackSlotVisibility(childNode);
1051
+ }
1052
+ }
1053
+ };
1054
+ /**
1055
+ * Component-global information about nodes which are either currently being
1056
+ * relocated or will be shortly.
1057
+ */
1058
+ const relocateNodes = [];
1059
+ /**
1060
+ * Mark the contents of a slot for relocation via adding references to them to
1061
+ * the {@link relocateNodes} data structure. The actual work of relocating them
1062
+ * will then be handled in {@link renderVdom}.
1063
+ *
1064
+ * @param elm a render node whose child nodes need to be relocated
1065
+ */
1066
+ const markSlotContentForRelocation = (elm) => {
1067
+ // tslint:disable-next-line: prefer-const
1068
+ let node;
1069
+ let hostContentNodes;
1070
+ let j;
1071
+ for (const childNode of elm.childNodes) {
1072
+ // we need to find child nodes which are slot references so we can then try
1073
+ // to match them up with nodes that need to be relocated
1074
+ if (childNode['s-sr'] && (node = childNode['s-cr']) && node.parentNode) {
1075
+ // first get the content reference comment node ('s-cr'), then we get
1076
+ // its parent, which is where all the host content is now
1077
+ hostContentNodes = node.parentNode.childNodes;
1078
+ const slotName = childNode['s-sn'];
1079
+ // iterate through all the nodes under the location where the host was
1080
+ // originally rendered
1081
+ for (j = hostContentNodes.length - 1; j >= 0; j--) {
1082
+ node = hostContentNodes[j];
1083
+ // check that the node is not a content reference node or a node
1084
+ // reference and then check that the host name does not match that of
1085
+ // childNode.
1086
+ // In addition, check that the slot either has not already been relocated, or
1087
+ // that its current location's host is not childNode's host. This is essentially
1088
+ // a check so that we don't try to relocate (and then hide) a node that is already
1089
+ // where it should be.
1090
+ if (!node['s-cn'] &&
1091
+ !node['s-nr'] &&
1092
+ node['s-hn'] !== childNode['s-hn'] &&
1093
+ (!BUILD.experimentalSlotFixes )) {
1094
+ // if `node` is located in the slot that `childNode` refers to (via the
1095
+ // `'s-sn'` property) then we need to relocate it from it's current spot
1096
+ // (under the host element parent) to the right slot location
1097
+ if (isNodeLocatedInSlot(node, slotName)) {
1098
+ // it's possible we've already decided to relocate this node
1099
+ let relocateNodeData = relocateNodes.find((r) => r.$nodeToRelocate$ === node);
1100
+ // made some changes to slots
1101
+ // let's make sure we also double check
1102
+ // fallbacks are correctly hidden or shown
1103
+ checkSlotFallbackVisibility = true;
1104
+ // ensure that the slot-name attr is correct
1105
+ node['s-sn'] = node['s-sn'] || slotName;
1106
+ if (relocateNodeData) {
1107
+ relocateNodeData.$nodeToRelocate$['s-sh'] = childNode['s-hn'];
1108
+ // we marked this node for relocation previously but didn't find
1109
+ // out the slot reference node to which it needs to be relocated
1110
+ // so write it down now!
1111
+ relocateNodeData.$slotRefNode$ = childNode;
1112
+ }
1113
+ else {
1114
+ node['s-sh'] = childNode['s-hn'];
1115
+ // add to our list of nodes to relocate
1116
+ relocateNodes.push({
1117
+ $slotRefNode$: childNode,
1118
+ $nodeToRelocate$: node,
1119
+ });
1120
+ }
1121
+ if (node['s-sr']) {
1122
+ relocateNodes.map((relocateNode) => {
1123
+ if (isNodeLocatedInSlot(relocateNode.$nodeToRelocate$, node['s-sn'])) {
1124
+ relocateNodeData = relocateNodes.find((r) => r.$nodeToRelocate$ === node);
1125
+ if (relocateNodeData && !relocateNode.$slotRefNode$) {
1126
+ relocateNode.$slotRefNode$ = relocateNodeData.$slotRefNode$;
1127
+ }
1128
+ }
1129
+ });
1130
+ }
1131
+ }
1132
+ else if (!relocateNodes.some((r) => r.$nodeToRelocate$ === node)) {
1133
+ // the node is not found within the slot (`childNode`) that we're
1134
+ // currently looking at, so we stick it into `relocateNodes` to
1135
+ // handle later. If we never find a home for this element then
1136
+ // we'll need to hide it
1137
+ relocateNodes.push({
1138
+ $nodeToRelocate$: node,
1139
+ });
1140
+ }
1141
+ }
1142
+ }
1143
+ }
1144
+ // if we're dealing with any type of element (capable of itself being a
1145
+ // slot reference or containing one) then we recur
1146
+ if (childNode.nodeType === 1 /* NODE_TYPE.ElementNode */) {
1147
+ markSlotContentForRelocation(childNode);
1148
+ }
1149
+ }
1150
+ };
1151
+ /**
1152
+ * Check whether a node is located in a given named slot.
1153
+ *
1154
+ * @param nodeToRelocate the node of interest
1155
+ * @param slotName the slot name to check
1156
+ * @returns whether the node is located in the slot or not
1157
+ */
1158
+ const isNodeLocatedInSlot = (nodeToRelocate, slotName) => {
1159
+ if (nodeToRelocate.nodeType === 1 /* NODE_TYPE.ElementNode */) {
1160
+ if (nodeToRelocate.getAttribute('slot') === null && slotName === '') {
1161
+ // if the node doesn't have a slot attribute, and the slot we're checking
1162
+ // is not a named slot, then we assume the node should be within the slot
1163
+ return true;
1164
+ }
1165
+ if (nodeToRelocate.getAttribute('slot') === slotName) {
1166
+ return true;
1167
+ }
1168
+ return false;
1169
+ }
1170
+ if (nodeToRelocate['s-sn'] === slotName) {
1171
+ return true;
1172
+ }
1173
+ return slotName === '';
1174
+ };
1175
+ /**
1176
+ * 'Nullify' any VDom `ref` callbacks on a VDom node or its children by calling
1177
+ * them with `null`. This signals that the DOM element corresponding to the VDom
1178
+ * node has been removed from the DOM.
1179
+ *
1180
+ * @param vNode a virtual DOM node
1181
+ */
1182
+ const nullifyVNodeRefs = (vNode) => {
1183
+ {
1184
+ vNode.$attrs$ && vNode.$attrs$.ref && vNode.$attrs$.ref(null);
1185
+ vNode.$children$ && vNode.$children$.map(nullifyVNodeRefs);
1186
+ }
1187
+ };
1188
+ /**
1189
+ * The main entry point for Stencil's virtual DOM-based rendering engine
1190
+ *
1191
+ * Given a {@link d.HostRef} container and some virtual DOM nodes, this
1192
+ * function will handle creating a virtual DOM tree with a single root, patching
1193
+ * the current virtual DOM tree onto an old one (if any), dealing with slot
1194
+ * relocation, and reflecting attributes.
1195
+ *
1196
+ * @param hostRef data needed to root and render the virtual DOM tree, such as
1197
+ * the DOM node into which it should be rendered.
1198
+ * @param renderFnResults the virtual DOM nodes to be rendered
1199
+ * @param isInitialLoad whether or not this is the first call after page load
1200
+ */
1201
+ const renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
1202
+ var _a, _b, _c, _d;
1203
+ const hostElm = hostRef.$hostElement$;
1204
+ const cmpMeta = hostRef.$cmpMeta$;
1205
+ const oldVNode = hostRef.$vnode$ || newVNode(null, null);
1206
+ // if `renderFnResults` is a Host node then we can use it directly. If not,
1207
+ // we need to call `h` again to wrap the children of our component in a
1208
+ // 'dummy' Host node (well, an empty vnode) since `renderVdom` assumes
1209
+ // implicitly that the top-level vdom node is 1) an only child and 2)
1210
+ // contains attrs that need to be set on the host element.
1211
+ const rootVnode = isHost(renderFnResults) ? renderFnResults : h(null, null, renderFnResults);
1212
+ hostTagName = hostElm.tagName;
1213
+ if (cmpMeta.$attrsToReflect$) {
1214
+ rootVnode.$attrs$ = rootVnode.$attrs$ || {};
1215
+ cmpMeta.$attrsToReflect$.map(([propName, attribute]) => (rootVnode.$attrs$[attribute] = hostElm[propName]));
1216
+ }
1217
+ // On the first render and *only* on the first render we want to check for
1218
+ // any attributes set on the host element which are also set on the vdom
1219
+ // node. If we find them, we override the value on the VDom node attrs with
1220
+ // the value from the host element, which allows developers building apps
1221
+ // with Stencil components to override e.g. the `role` attribute on a
1222
+ // component even if it's already set on the `Host`.
1223
+ if (isInitialLoad && rootVnode.$attrs$) {
1224
+ for (const key of Object.keys(rootVnode.$attrs$)) {
1225
+ // We have a special implementation in `setAccessor` for `style` and
1226
+ // `class` which reconciles values coming from the VDom with values
1227
+ // already present on the DOM element, so we don't want to override those
1228
+ // attributes on the VDom tree with values from the host element if they
1229
+ // are present.
1230
+ //
1231
+ // Likewise, `ref` and `key` are special internal values for the Stencil
1232
+ // runtime and we don't want to override those either.
1233
+ if (hostElm.hasAttribute(key) && !['key', 'ref', 'style', 'class'].includes(key)) {
1234
+ rootVnode.$attrs$[key] = hostElm[key];
1235
+ }
1236
+ }
1237
+ }
1238
+ rootVnode.$tag$ = null;
1239
+ rootVnode.$flags$ |= 4 /* VNODE_FLAGS.isHost */;
1240
+ hostRef.$vnode$ = rootVnode;
1241
+ rootVnode.$elm$ = oldVNode.$elm$ = (hostElm.shadowRoot || hostElm );
1242
+ {
1243
+ scopeId = hostElm['s-sc'];
1244
+ }
1245
+ {
1246
+ contentRef = hostElm['s-cr'];
1247
+ useNativeShadowDom = (cmpMeta.$flags$ & 1 /* CMP_FLAGS.shadowDomEncapsulation */) !== 0;
1248
+ // always reset
1249
+ checkSlotFallbackVisibility = false;
1250
+ }
1251
+ // synchronous patch
1252
+ patch(oldVNode, rootVnode, isInitialLoad);
1253
+ {
1254
+ // while we're moving nodes around existing nodes, temporarily disable
1255
+ // the disconnectCallback from working
1256
+ plt.$flags$ |= 1 /* PLATFORM_FLAGS.isTmpDisconnected */;
1257
+ if (checkSlotRelocate) {
1258
+ markSlotContentForRelocation(rootVnode.$elm$);
1259
+ for (const relocateData of relocateNodes) {
1260
+ const nodeToRelocate = relocateData.$nodeToRelocate$;
1261
+ if (!nodeToRelocate['s-ol']) {
1262
+ // add a reference node marking this node's original location
1263
+ // keep a reference to this node for later lookups
1264
+ const orgLocationNode = doc.createTextNode('');
1265
+ orgLocationNode['s-nr'] = nodeToRelocate;
1266
+ nodeToRelocate.parentNode.insertBefore((nodeToRelocate['s-ol'] = orgLocationNode), nodeToRelocate);
1267
+ }
1268
+ }
1269
+ for (const relocateData of relocateNodes) {
1270
+ const nodeToRelocate = relocateData.$nodeToRelocate$;
1271
+ const slotRefNode = relocateData.$slotRefNode$;
1272
+ if (slotRefNode) {
1273
+ const parentNodeRef = slotRefNode.parentNode;
1274
+ // When determining where to insert content, the most simple case would be
1275
+ // to relocate the node immediately following the slot reference node. We do this
1276
+ // by getting a reference to the node immediately following the slot reference node
1277
+ // since we will use `insertBefore` to manipulate the DOM.
1278
+ //
1279
+ // If there is no node immediately following the slot reference node, then we will just
1280
+ // end up appending the node as the last child of the parent.
1281
+ let insertBeforeNode = slotRefNode.nextSibling;
1282
+ // If the node we're currently planning on inserting the new node before is an element,
1283
+ // we need to do some additional checks to make sure we're inserting the node in the correct order.
1284
+ // The use case here would be that we have multiple nodes being relocated to the same slot. So, we want
1285
+ // to make sure they get inserted into their new how in the same order they were declared in their original location.
1286
+ //
1287
+ // TODO(STENCIL-914): Remove `experimentalSlotFixes` check
1288
+ {
1289
+ let orgLocationNode = (_a = nodeToRelocate['s-ol']) === null || _a === void 0 ? void 0 : _a.previousSibling;
1290
+ while (orgLocationNode) {
1291
+ let refNode = (_b = orgLocationNode['s-nr']) !== null && _b !== void 0 ? _b : null;
1292
+ if (refNode && refNode['s-sn'] === nodeToRelocate['s-sn'] && parentNodeRef === refNode.parentNode) {
1293
+ refNode = refNode.nextSibling;
1294
+ if (!refNode || !refNode['s-nr']) {
1295
+ insertBeforeNode = refNode;
1296
+ break;
1297
+ }
1298
+ }
1299
+ orgLocationNode = orgLocationNode.previousSibling;
1300
+ }
1301
+ }
1302
+ if ((!insertBeforeNode && parentNodeRef !== nodeToRelocate.parentNode) ||
1303
+ nodeToRelocate.nextSibling !== insertBeforeNode) {
1304
+ // we've checked that it's worth while to relocate
1305
+ // since that the node to relocate
1306
+ // has a different next sibling or parent relocated
1307
+ if (nodeToRelocate !== insertBeforeNode) {
1308
+ if (!nodeToRelocate['s-hn'] && nodeToRelocate['s-ol']) {
1309
+ // probably a component in the index.html that doesn't have its hostname set
1310
+ nodeToRelocate['s-hn'] = nodeToRelocate['s-ol'].parentNode.nodeName;
1311
+ }
1312
+ // Add it back to the dom but in its new home
1313
+ // If we get to this point and `insertBeforeNode` is `null`, that means
1314
+ // we're just going to append the node as the last child of the parent. Passing
1315
+ // `null` as the second arg here will trigger that behavior.
1316
+ parentNodeRef.insertBefore(nodeToRelocate, insertBeforeNode);
1317
+ // Reset the `hidden` value back to what it was defined as originally
1318
+ // This solves a problem where a `slot` is dynamically rendered and `hidden` may have
1319
+ // been set on content originally, but now it has a slot to go to so it should have
1320
+ // the value it was defined as having in the DOM, not what we overrode it to.
1321
+ if (nodeToRelocate.nodeType === 1 /* NODE_TYPE.ElementNode */) {
1322
+ nodeToRelocate.hidden = (_c = nodeToRelocate['s-ih']) !== null && _c !== void 0 ? _c : false;
1323
+ }
1324
+ }
1325
+ }
1326
+ }
1327
+ else {
1328
+ // this node doesn't have a slot home to go to, so let's hide it
1329
+ if (nodeToRelocate.nodeType === 1 /* NODE_TYPE.ElementNode */) {
1330
+ // Store the initial value of `hidden` so we can reset it later when
1331
+ // moving nodes around.
1332
+ if (isInitialLoad) {
1333
+ nodeToRelocate['s-ih'] = (_d = nodeToRelocate.hidden) !== null && _d !== void 0 ? _d : false;
1334
+ }
1335
+ nodeToRelocate.hidden = true;
1336
+ }
1337
+ }
1338
+ }
1339
+ }
1340
+ if (checkSlotFallbackVisibility) {
1341
+ updateFallbackSlotVisibility(rootVnode.$elm$);
1342
+ }
1343
+ // done moving nodes around
1344
+ // allow the disconnect callback to work again
1345
+ plt.$flags$ &= ~1 /* PLATFORM_FLAGS.isTmpDisconnected */;
1346
+ // always reset
1347
+ relocateNodes.length = 0;
1348
+ }
1349
+ };
1350
+ const attachToAncestor = (hostRef, ancestorComponent) => {
1351
+ if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent['s-p']) {
1352
+ ancestorComponent['s-p'].push(new Promise((r) => (hostRef.$onRenderResolve$ = r)));
1353
+ }
1354
+ };
1355
+ const scheduleUpdate = (hostRef, isInitialLoad) => {
1356
+ {
1357
+ hostRef.$flags$ |= 16 /* HOST_FLAGS.isQueuedForUpdate */;
1358
+ }
1359
+ if (hostRef.$flags$ & 4 /* HOST_FLAGS.isWaitingForChildren */) {
1360
+ hostRef.$flags$ |= 512 /* HOST_FLAGS.needsRerender */;
1361
+ return;
1362
+ }
1363
+ attachToAncestor(hostRef, hostRef.$ancestorComponent$);
1364
+ // there is no ancestor component or the ancestor component
1365
+ // has already fired off its lifecycle update then
1366
+ // fire off the initial update
1367
+ const dispatch = () => dispatchHooks(hostRef, isInitialLoad);
1368
+ return writeTask(dispatch) ;
1369
+ };
1370
+ /**
1371
+ * Dispatch initial-render and update lifecycle hooks, enqueuing calls to
1372
+ * component lifecycle methods like `componentWillLoad` as well as
1373
+ * {@link updateComponent}, which will kick off the virtual DOM re-render.
1374
+ *
1375
+ * @param hostRef a reference to a host DOM node
1376
+ * @param isInitialLoad whether we're on the initial load or not
1377
+ * @returns an empty Promise which is used to enqueue a series of operations for
1378
+ * the component
1379
+ */
1380
+ const dispatchHooks = (hostRef, isInitialLoad) => {
1381
+ const endSchedule = createTime('scheduleUpdate', hostRef.$cmpMeta$.$tagName$);
1382
+ const instance = hostRef.$lazyInstance$ ;
1383
+ // We're going to use this variable together with `enqueue` to implement a
1384
+ // little promise-based queue. We start out with it `undefined`. When we add
1385
+ // the first function to the queue we'll set this variable to be that
1386
+ // function's return value. When we attempt to add subsequent values to the
1387
+ // queue we'll check that value and, if it was a `Promise`, we'll then chain
1388
+ // the new function off of that `Promise` using `.then()`. This will give our
1389
+ // queue two nice properties:
1390
+ //
1391
+ // 1. If all functions added to the queue are synchronous they'll be called
1392
+ // synchronously right away.
1393
+ // 2. If all functions added to the queue are asynchronous they'll all be
1394
+ // called in order after `dispatchHooks` exits.
1395
+ let maybePromise;
1396
+ if (isInitialLoad) {
1397
+ {
1398
+ // If `componentWillLoad` returns a `Promise` then we want to wait on
1399
+ // whatever's going on in that `Promise` before we launch into
1400
+ // rendering the component, doing other lifecycle stuff, etc. So
1401
+ // in that case we assign the returned promise to the variable we
1402
+ // declared above to hold a possible 'queueing' Promise
1403
+ maybePromise = safeCall(instance, 'componentWillLoad');
1404
+ }
1405
+ }
1406
+ endSchedule();
1407
+ return enqueue(maybePromise, () => updateComponent(hostRef, instance, isInitialLoad));
1408
+ };
1409
+ /**
1410
+ * This function uses a Promise to implement a simple first-in, first-out queue
1411
+ * of functions to be called.
1412
+ *
1413
+ * The queue is ordered on the basis of the first argument. If it's
1414
+ * `undefined`, then nothing is on the queue yet, so the provided function can
1415
+ * be called synchronously (although note that this function may return a
1416
+ * `Promise`). The idea is that then the return value of that enqueueing
1417
+ * operation is kept around, so that if it was a `Promise` then subsequent
1418
+ * functions can be enqueued by calling this function again with that `Promise`
1419
+ * as the first argument.
1420
+ *
1421
+ * @param maybePromise either a `Promise` which should resolve before the next function is called or an 'empty' sentinel
1422
+ * @param fn a function to enqueue
1423
+ * @returns either a `Promise` or the return value of the provided function
1424
+ */
1425
+ const enqueue = (maybePromise, fn) => isPromisey(maybePromise) ? maybePromise.then(fn) : fn();
1426
+ /**
1427
+ * Check that a value is a `Promise`. To check, we first see if the value is an
1428
+ * instance of the `Promise` global. In a few circumstances, in particular if
1429
+ * the global has been overwritten, this is could be misleading, so we also do
1430
+ * a little 'duck typing' check to see if the `.then` property of the value is
1431
+ * defined and a function.
1432
+ *
1433
+ * @param maybePromise it might be a promise!
1434
+ * @returns whether it is or not
1435
+ */
1436
+ const isPromisey = (maybePromise) => maybePromise instanceof Promise ||
1437
+ (maybePromise && maybePromise.then && typeof maybePromise.then === 'function');
1438
+ /**
1439
+ * Update a component given reference to its host elements and so on.
1440
+ *
1441
+ * @param hostRef an object containing references to the element's host node,
1442
+ * VDom nodes, and other metadata
1443
+ * @param instance a reference to the underlying host element where it will be
1444
+ * rendered
1445
+ * @param isInitialLoad whether or not this function is being called as part of
1446
+ * the first render cycle
1447
+ */
1448
+ const updateComponent = async (hostRef, instance, isInitialLoad) => {
1449
+ var _a;
1450
+ const elm = hostRef.$hostElement$;
1451
+ const endUpdate = createTime('update', hostRef.$cmpMeta$.$tagName$);
1452
+ const rc = elm['s-rc'];
1453
+ if (isInitialLoad) {
1454
+ // DOM WRITE!
1455
+ attachStyles(hostRef);
1456
+ }
1457
+ const endRender = createTime('render', hostRef.$cmpMeta$.$tagName$);
1458
+ {
1459
+ callRender(hostRef, instance, elm, isInitialLoad);
1460
+ }
1461
+ if (rc) {
1462
+ // ok, so turns out there are some child host elements
1463
+ // waiting on this parent element to load
1464
+ // let's fire off all update callbacks waiting
1465
+ rc.map((cb) => cb());
1466
+ elm['s-rc'] = undefined;
1467
+ }
1468
+ endRender();
1469
+ endUpdate();
1470
+ {
1471
+ const childrenPromises = (_a = elm['s-p']) !== null && _a !== void 0 ? _a : [];
1472
+ const postUpdate = () => postUpdateComponent(hostRef);
1473
+ if (childrenPromises.length === 0) {
1474
+ postUpdate();
1475
+ }
1476
+ else {
1477
+ Promise.all(childrenPromises).then(postUpdate);
1478
+ hostRef.$flags$ |= 4 /* HOST_FLAGS.isWaitingForChildren */;
1479
+ childrenPromises.length = 0;
1480
+ }
1481
+ }
1482
+ };
1483
+ /**
1484
+ * Handle making the call to the VDom renderer with the proper context given
1485
+ * various build variables
1486
+ *
1487
+ * @param hostRef an object containing references to the element's host node,
1488
+ * VDom nodes, and other metadata
1489
+ * @param instance a reference to the underlying host element where it will be
1490
+ * rendered
1491
+ * @param elm the Host element for the component
1492
+ * @param isInitialLoad whether or not this function is being called as part of
1493
+ * @returns an empty promise
1494
+ */
1495
+ const callRender = (hostRef, instance, elm, isInitialLoad) => {
1496
+ try {
1497
+ /**
1498
+ * minification optimization: `allRenderFn` is `true` if all components have a `render`
1499
+ * method, so we can call the method immediately. If not, check before calling it.
1500
+ */
1501
+ instance = instance.render() ;
1502
+ {
1503
+ hostRef.$flags$ &= ~16 /* HOST_FLAGS.isQueuedForUpdate */;
1504
+ }
1505
+ {
1506
+ hostRef.$flags$ |= 2 /* HOST_FLAGS.hasRendered */;
1507
+ }
1508
+ {
1509
+ {
1510
+ // looks like we've got child nodes to render into this host element
1511
+ // or we need to update the css class/attrs on the host element
1512
+ // DOM WRITE!
1513
+ {
1514
+ renderVdom(hostRef, instance, isInitialLoad);
1515
+ }
1516
+ }
1517
+ }
1518
+ }
1519
+ catch (e) {
1520
+ consoleError(e, hostRef.$hostElement$);
1521
+ }
1522
+ return null;
1523
+ };
1524
+ const postUpdateComponent = (hostRef) => {
1525
+ const tagName = hostRef.$cmpMeta$.$tagName$;
1526
+ const elm = hostRef.$hostElement$;
1527
+ const endPostUpdate = createTime('postUpdate', tagName);
1528
+ const instance = hostRef.$lazyInstance$ ;
1529
+ const ancestorComponent = hostRef.$ancestorComponent$;
1530
+ {
1531
+ safeCall(instance, 'componentDidRender');
1532
+ }
1533
+ if (!(hostRef.$flags$ & 64 /* HOST_FLAGS.hasLoadedComponent */)) {
1534
+ hostRef.$flags$ |= 64 /* HOST_FLAGS.hasLoadedComponent */;
1535
+ {
1536
+ // DOM WRITE!
1537
+ addHydratedFlag(elm);
1538
+ }
1539
+ {
1540
+ safeCall(instance, 'componentDidLoad');
1541
+ }
1542
+ endPostUpdate();
1543
+ {
1544
+ hostRef.$onReadyResolve$(elm);
1545
+ if (!ancestorComponent) {
1546
+ appDidLoad();
1547
+ }
1548
+ }
1549
+ }
1550
+ else {
1551
+ endPostUpdate();
1552
+ }
1553
+ {
1554
+ hostRef.$onInstanceResolve$(elm);
1555
+ }
1556
+ // load events fire from bottom to top
1557
+ // the deepest elements load first then bubbles up
1558
+ {
1559
+ if (hostRef.$onRenderResolve$) {
1560
+ hostRef.$onRenderResolve$();
1561
+ hostRef.$onRenderResolve$ = undefined;
1562
+ }
1563
+ if (hostRef.$flags$ & 512 /* HOST_FLAGS.needsRerender */) {
1564
+ nextTick(() => scheduleUpdate(hostRef, false));
1565
+ }
1566
+ hostRef.$flags$ &= ~(4 /* HOST_FLAGS.isWaitingForChildren */ | 512 /* HOST_FLAGS.needsRerender */);
1567
+ }
1568
+ // ( •_•)
1569
+ // ( •_•)>⌐■-■
1570
+ // (⌐■_■)
1571
+ };
1572
+ const appDidLoad = (who) => {
1573
+ // on appload
1574
+ // we have finish the first big initial render
1575
+ {
1576
+ addHydratedFlag(doc.documentElement);
1577
+ }
1578
+ nextTick(() => emitEvent(win, 'appload', { detail: { namespace: NAMESPACE } }));
1579
+ };
1580
+ /**
1581
+ * Allows to safely call a method, e.g. `componentDidLoad`, on an instance,
1582
+ * e.g. custom element node. If a build figures out that e.g. no component
1583
+ * has a `componentDidLoad` method, the instance method gets removed from the
1584
+ * output bundle and this function returns `undefined`.
1585
+ * @param instance any object that may or may not contain methods
1586
+ * @param method method name
1587
+ * @param arg single arbitrary argument
1588
+ * @returns result of method call if it exists, otherwise `undefined`
1589
+ */
1590
+ const safeCall = (instance, method, arg) => {
1591
+ if (instance && instance[method]) {
1592
+ try {
1593
+ return instance[method](arg);
1594
+ }
1595
+ catch (e) {
1596
+ consoleError(e);
1597
+ }
1598
+ }
1599
+ return undefined;
1600
+ };
1601
+ const addHydratedFlag = (elm) => elm.setAttribute('hydrated', '')
1602
+ ;
1603
+ const getValue = (ref, propName) => getHostRef(ref).$instanceValues$.get(propName);
1604
+ const setValue = (ref, propName, newVal, cmpMeta) => {
1605
+ // check our new property value against our internal value
1606
+ const hostRef = getHostRef(ref);
1607
+ const elm = hostRef.$hostElement$ ;
1608
+ const oldVal = hostRef.$instanceValues$.get(propName);
1609
+ const flags = hostRef.$flags$;
1610
+ const instance = hostRef.$lazyInstance$ ;
1611
+ newVal = parsePropertyValue(newVal, cmpMeta.$members$[propName][0]);
1612
+ // explicitly check for NaN on both sides, as `NaN === NaN` is always false
1613
+ const areBothNaN = Number.isNaN(oldVal) && Number.isNaN(newVal);
1614
+ const didValueChange = newVal !== oldVal && !areBothNaN;
1615
+ if ((!(flags & 8 /* HOST_FLAGS.isConstructingInstance */) || oldVal === undefined) && didValueChange) {
1616
+ // gadzooks! the property's value has changed!!
1617
+ // set our new value!
1618
+ hostRef.$instanceValues$.set(propName, newVal);
1619
+ if (instance) {
1620
+ // get an array of method names of watch functions to call
1621
+ if (cmpMeta.$watchers$ && flags & 128 /* HOST_FLAGS.isWatchReady */) {
1622
+ const watchMethods = cmpMeta.$watchers$[propName];
1623
+ if (watchMethods) {
1624
+ // this instance is watching for when this property changed
1625
+ watchMethods.map((watchMethodName) => {
1626
+ try {
1627
+ // fire off each of the watch methods that are watching this property
1628
+ instance[watchMethodName](newVal, oldVal, propName);
1629
+ }
1630
+ catch (e) {
1631
+ consoleError(e, elm);
1632
+ }
1633
+ });
1634
+ }
1635
+ }
1636
+ if ((flags & (2 /* HOST_FLAGS.hasRendered */ | 16 /* HOST_FLAGS.isQueuedForUpdate */)) === 2 /* HOST_FLAGS.hasRendered */) {
1637
+ // looks like this value actually changed, so we've got work to do!
1638
+ // but only if we've already rendered, otherwise just chill out
1639
+ // queue that we need to do an update, but don't worry about queuing
1640
+ // up millions cuz this function ensures it only runs once
1641
+ scheduleUpdate(hostRef, false);
1642
+ }
1643
+ }
1644
+ }
1645
+ };
1646
+ /**
1647
+ * Attach a series of runtime constructs to a compiled Stencil component
1648
+ * constructor, including getters and setters for the `@Prop` and `@State`
1649
+ * decorators, callbacks for when attributes change, and so on.
1650
+ *
1651
+ * @param Cstr the constructor for a component that we need to process
1652
+ * @param cmpMeta metadata collected previously about the component
1653
+ * @param flags a number used to store a series of bit flags
1654
+ * @returns a reference to the same constructor passed in (but now mutated)
1655
+ */
1656
+ const proxyComponent = (Cstr, cmpMeta, flags) => {
1657
+ var _a;
1658
+ const prototype = Cstr.prototype;
1659
+ if (cmpMeta.$members$) {
1660
+ if (Cstr.watchers) {
1661
+ cmpMeta.$watchers$ = Cstr.watchers;
1662
+ }
1663
+ // It's better to have a const than two Object.entries()
1664
+ const members = Object.entries(cmpMeta.$members$);
1665
+ members.map(([memberName, [memberFlags]]) => {
1666
+ if ((memberFlags & 31 /* MEMBER_FLAGS.Prop */ ||
1667
+ ((flags & 2 /* PROXY_FLAGS.proxyState */) && memberFlags & 32 /* MEMBER_FLAGS.State */))) {
1668
+ // proxyComponent - prop
1669
+ Object.defineProperty(prototype, memberName, {
1670
+ get() {
1671
+ // proxyComponent, get value
1672
+ return getValue(this, memberName);
1673
+ },
1674
+ set(newValue) {
1675
+ // proxyComponent, set value
1676
+ setValue(this, memberName, newValue, cmpMeta);
1677
+ },
1678
+ configurable: true,
1679
+ enumerable: true,
1680
+ });
1681
+ }
1682
+ else if (flags & 1 /* PROXY_FLAGS.isElementConstructor */ &&
1683
+ memberFlags & 64 /* MEMBER_FLAGS.Method */) {
1684
+ // proxyComponent - method
1685
+ Object.defineProperty(prototype, memberName, {
1686
+ value(...args) {
1687
+ var _a;
1688
+ const ref = getHostRef(this);
1689
+ return (_a = ref === null || ref === void 0 ? void 0 : ref.$onInstancePromise$) === null || _a === void 0 ? void 0 : _a.then(() => { var _a; return (_a = ref.$lazyInstance$) === null || _a === void 0 ? void 0 : _a[memberName](...args); });
1690
+ },
1691
+ });
1692
+ }
1693
+ });
1694
+ if ((flags & 1 /* PROXY_FLAGS.isElementConstructor */)) {
1695
+ const attrNameToPropName = new Map();
1696
+ prototype.attributeChangedCallback = function (attrName, oldValue, newValue) {
1697
+ plt.jmp(() => {
1698
+ var _a;
1699
+ const propName = attrNameToPropName.get(attrName);
1700
+ // In a web component lifecycle the attributeChangedCallback runs prior to connectedCallback
1701
+ // in the case where an attribute was set inline.
1702
+ // ```html
1703
+ // <my-component some-attribute="some-value"></my-component>
1704
+ // ```
1705
+ //
1706
+ // There is an edge case where a developer sets the attribute inline on a custom element and then
1707
+ // programmatically changes it before it has been upgraded as shown below:
1708
+ //
1709
+ // ```html
1710
+ // <!-- this component has _not_ been upgraded yet -->
1711
+ // <my-component id="test" some-attribute="some-value"></my-component>
1712
+ // <script>
1713
+ // // grab non-upgraded component
1714
+ // el = document.querySelector("#test");
1715
+ // el.someAttribute = "another-value";
1716
+ // // upgrade component
1717
+ // customElements.define('my-component', MyComponent);
1718
+ // </script>
1719
+ // ```
1720
+ // In this case if we do not un-shadow here and use the value of the shadowing property, attributeChangedCallback
1721
+ // will be called with `newValue = "some-value"` and will set the shadowed property (this.someAttribute = "another-value")
1722
+ // to the value that was set inline i.e. "some-value" from above example. When
1723
+ // the connectedCallback attempts to un-shadow it will use "some-value" as the initial value rather than "another-value"
1724
+ //
1725
+ // The case where the attribute was NOT set inline but was not set programmatically shall be handled/un-shadowed
1726
+ // by connectedCallback as this attributeChangedCallback will not fire.
1727
+ //
1728
+ // https://developers.google.com/web/fundamentals/web-components/best-practices#lazy-properties
1729
+ //
1730
+ // TODO(STENCIL-16) we should think about whether or not we actually want to be reflecting the attributes to
1731
+ // properties here given that this goes against best practices outlined here
1732
+ // https://developers.google.com/web/fundamentals/web-components/best-practices#avoid-reentrancy
1733
+ if (this.hasOwnProperty(propName)) {
1734
+ newValue = this[propName];
1735
+ delete this[propName];
1736
+ }
1737
+ else if (prototype.hasOwnProperty(propName) &&
1738
+ typeof this[propName] === 'number' &&
1739
+ this[propName] == newValue) {
1740
+ // if the propName exists on the prototype of `Cstr`, this update may be a result of Stencil using native
1741
+ // APIs to reflect props as attributes. Calls to `setAttribute(someElement, propName)` will result in
1742
+ // `propName` to be converted to a `DOMString`, which may not be what we want for other primitive props.
1743
+ return;
1744
+ }
1745
+ else if (propName == null) {
1746
+ // At this point we should know this is not a "member", so we can treat it like watching an attribute
1747
+ // on a vanilla web component
1748
+ const hostRef = getHostRef(this);
1749
+ const flags = hostRef === null || hostRef === void 0 ? void 0 : hostRef.$flags$;
1750
+ // We only want to trigger the callback(s) if:
1751
+ // 1. The instance is ready
1752
+ // 2. The watchers are ready
1753
+ // 3. The value has changed
1754
+ if (flags &&
1755
+ !(flags & 8 /* HOST_FLAGS.isConstructingInstance */) &&
1756
+ flags & 128 /* HOST_FLAGS.isWatchReady */ &&
1757
+ newValue !== oldValue) {
1758
+ const instance = hostRef.$lazyInstance$ ;
1759
+ const entry = (_a = cmpMeta.$watchers$) === null || _a === void 0 ? void 0 : _a[attrName];
1760
+ entry === null || entry === void 0 ? void 0 : entry.forEach((callbackName) => {
1761
+ if (instance[callbackName] != null) {
1762
+ instance[callbackName].call(instance, newValue, oldValue, attrName);
1763
+ }
1764
+ });
1765
+ }
1766
+ return;
1767
+ }
1768
+ this[propName] = newValue === null && typeof this[propName] === 'boolean' ? false : newValue;
1769
+ });
1770
+ };
1771
+ // Create an array of attributes to observe
1772
+ // This list in comprised of all strings used within a `@Watch()` decorator
1773
+ // on a component as well as any Stencil-specific "members" (`@Prop()`s and `@State()`s).
1774
+ // As such, there is no way to guarantee type-safety here that a user hasn't entered
1775
+ // an invalid attribute.
1776
+ Cstr.observedAttributes = Array.from(new Set([
1777
+ ...Object.keys((_a = cmpMeta.$watchers$) !== null && _a !== void 0 ? _a : {}),
1778
+ ...members
1779
+ .filter(([_, m]) => m[0] & 15 /* MEMBER_FLAGS.HasAttribute */)
1780
+ .map(([propName, m]) => {
1781
+ var _a;
1782
+ const attrName = m[1] || propName;
1783
+ attrNameToPropName.set(attrName, propName);
1784
+ if (m[0] & 512 /* MEMBER_FLAGS.ReflectAttr */) {
1785
+ (_a = cmpMeta.$attrsToReflect$) === null || _a === void 0 ? void 0 : _a.push([propName, attrName]);
1786
+ }
1787
+ return attrName;
1788
+ }),
1789
+ ]));
1790
+ }
1791
+ }
1792
+ return Cstr;
1793
+ };
1794
+ /**
1795
+ * Initialize a Stencil component given a reference to its host element, its
1796
+ * runtime bookkeeping data structure, runtime metadata about the component,
1797
+ * and (optionally) an HMR version ID.
1798
+ *
1799
+ * @param elm a host element
1800
+ * @param hostRef the element's runtime bookkeeping object
1801
+ * @param cmpMeta runtime metadata for the Stencil component
1802
+ * @param hmrVersionId an (optional) HMR version ID
1803
+ */
1804
+ const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1805
+ let Cstr;
1806
+ // initializeComponent
1807
+ if ((hostRef.$flags$ & 32 /* HOST_FLAGS.hasInitializedComponent */) === 0) {
1808
+ // Let the runtime know that the component has been initialized
1809
+ hostRef.$flags$ |= 32 /* HOST_FLAGS.hasInitializedComponent */;
1810
+ {
1811
+ // lazy loaded components
1812
+ // request the component's implementation to be
1813
+ // wired up with the host element
1814
+ Cstr = loadModule(cmpMeta);
1815
+ if (Cstr.then) {
1816
+ // Await creates a micro-task avoid if possible
1817
+ const endLoad = uniqueTime();
1818
+ Cstr = await Cstr;
1819
+ endLoad();
1820
+ }
1821
+ if (!Cstr.isProxied) {
1822
+ // we've never proxied this Constructor before
1823
+ // let's add the getters/setters to its prototype before
1824
+ // the first time we create an instance of the implementation
1825
+ {
1826
+ cmpMeta.$watchers$ = Cstr.watchers;
1827
+ }
1828
+ proxyComponent(Cstr, cmpMeta, 2 /* PROXY_FLAGS.proxyState */);
1829
+ Cstr.isProxied = true;
1830
+ }
1831
+ const endNewInstance = createTime('createInstance', cmpMeta.$tagName$);
1832
+ // ok, time to construct the instance
1833
+ // but let's keep track of when we start and stop
1834
+ // so that the getters/setters don't incorrectly step on data
1835
+ {
1836
+ hostRef.$flags$ |= 8 /* HOST_FLAGS.isConstructingInstance */;
1837
+ }
1838
+ // construct the lazy-loaded component implementation
1839
+ // passing the hostRef is very important during
1840
+ // construction in order to directly wire together the
1841
+ // host element and the lazy-loaded instance
1842
+ try {
1843
+ new Cstr(hostRef);
1844
+ }
1845
+ catch (e) {
1846
+ consoleError(e);
1847
+ }
1848
+ {
1849
+ hostRef.$flags$ &= ~8 /* HOST_FLAGS.isConstructingInstance */;
1850
+ }
1851
+ {
1852
+ hostRef.$flags$ |= 128 /* HOST_FLAGS.isWatchReady */;
1853
+ }
1854
+ endNewInstance();
1855
+ }
1856
+ if (Cstr.style) {
1857
+ // this component has styles but we haven't registered them yet
1858
+ let style = Cstr.style;
1859
+ const scopeId = getScopeId(cmpMeta);
1860
+ if (!styles.has(scopeId)) {
1861
+ const endRegisterStyles = createTime('registerStyles', cmpMeta.$tagName$);
1862
+ registerStyle(scopeId, style, !!(cmpMeta.$flags$ & 1 /* CMP_FLAGS.shadowDomEncapsulation */));
1863
+ endRegisterStyles();
1864
+ }
1865
+ }
1866
+ }
1867
+ // we've successfully created a lazy instance
1868
+ const ancestorComponent = hostRef.$ancestorComponent$;
1869
+ const schedule = () => scheduleUpdate(hostRef, true);
1870
+ if (ancestorComponent && ancestorComponent['s-rc']) {
1871
+ // this is the initial load and this component it has an ancestor component
1872
+ // but the ancestor component has NOT fired its will update lifecycle yet
1873
+ // so let's just cool our jets and wait for the ancestor to continue first
1874
+ // this will get fired off when the ancestor component
1875
+ // finally gets around to rendering its lazy self
1876
+ // fire off the initial update
1877
+ ancestorComponent['s-rc'].push(schedule);
1878
+ }
1879
+ else {
1880
+ schedule();
1881
+ }
1882
+ };
1883
+ const fireConnectedCallback = (instance) => {
1884
+ };
1885
+ const connectedCallback = (elm) => {
1886
+ if ((plt.$flags$ & 1 /* PLATFORM_FLAGS.isTmpDisconnected */) === 0) {
1887
+ const hostRef = getHostRef(elm);
1888
+ const cmpMeta = hostRef.$cmpMeta$;
1889
+ const endConnected = createTime('connectedCallback', cmpMeta.$tagName$);
1890
+ if (!(hostRef.$flags$ & 1 /* HOST_FLAGS.hasConnected */)) {
1891
+ // first time this component has connected
1892
+ hostRef.$flags$ |= 1 /* HOST_FLAGS.hasConnected */;
1893
+ {
1894
+ // initUpdate
1895
+ // if the slot polyfill is required we'll need to put some nodes
1896
+ // in here to act as original content anchors as we move nodes around
1897
+ // host element has been connected to the DOM
1898
+ if ((// TODO(STENCIL-854): Remove code related to legacy shadowDomShim field
1899
+ cmpMeta.$flags$ & (4 /* CMP_FLAGS.hasSlotRelocation */ | 8 /* CMP_FLAGS.needsShadowDomShim */))) {
1900
+ setContentReference(elm);
1901
+ }
1902
+ }
1903
+ {
1904
+ // find the first ancestor component (if there is one) and register
1905
+ // this component as one of the actively loading child components for its ancestor
1906
+ let ancestorComponent = elm;
1907
+ while ((ancestorComponent = ancestorComponent.parentNode || ancestorComponent.host)) {
1908
+ // climb up the ancestors looking for the first
1909
+ // component that hasn't finished its lifecycle update yet
1910
+ if (ancestorComponent['s-p']) {
1911
+ // we found this components first ancestor component
1912
+ // keep a reference to this component's ancestor component
1913
+ attachToAncestor(hostRef, (hostRef.$ancestorComponent$ = ancestorComponent));
1914
+ break;
1915
+ }
1916
+ }
1917
+ }
1918
+ // Lazy properties
1919
+ // https://developers.google.com/web/fundamentals/web-components/best-practices#lazy-properties
1920
+ if (cmpMeta.$members$) {
1921
+ Object.entries(cmpMeta.$members$).map(([memberName, [memberFlags]]) => {
1922
+ if (memberFlags & 31 /* MEMBER_FLAGS.Prop */ && elm.hasOwnProperty(memberName)) {
1923
+ const value = elm[memberName];
1924
+ delete elm[memberName];
1925
+ elm[memberName] = value;
1926
+ }
1927
+ });
1928
+ }
1929
+ {
1930
+ initializeComponent(elm, hostRef, cmpMeta);
1931
+ }
1932
+ }
1933
+ else {
1934
+ // fire off connectedCallback() on component instance
1935
+ if (hostRef === null || hostRef === void 0 ? void 0 : hostRef.$lazyInstance$) ;
1936
+ else if (hostRef === null || hostRef === void 0 ? void 0 : hostRef.$onReadyPromise$) {
1937
+ hostRef.$onReadyPromise$.then(() => fireConnectedCallback());
1938
+ }
1939
+ }
1940
+ endConnected();
1941
+ }
1942
+ };
1943
+ const setContentReference = (elm) => {
1944
+ // only required when we're NOT using native shadow dom (slot)
1945
+ // or this browser doesn't support native shadow dom
1946
+ // and this host element was NOT created with SSR
1947
+ // let's pick out the inner content for slot projection
1948
+ // create a node to represent where the original
1949
+ // content was first placed, which is useful later on
1950
+ const contentRefElm = (elm['s-cr'] = doc.createComment(''));
1951
+ contentRefElm['s-cn'] = true;
1952
+ elm.insertBefore(contentRefElm, elm.firstChild);
1953
+ };
1954
+ const disconnectInstance = (instance) => {
1955
+ {
1956
+ safeCall(instance, 'disconnectedCallback');
1957
+ }
1958
+ };
1959
+ const disconnectedCallback = async (elm) => {
1960
+ if ((plt.$flags$ & 1 /* PLATFORM_FLAGS.isTmpDisconnected */) === 0) {
1961
+ const hostRef = getHostRef(elm);
1962
+ if (hostRef === null || hostRef === void 0 ? void 0 : hostRef.$lazyInstance$) {
1963
+ disconnectInstance(hostRef.$lazyInstance$);
1964
+ }
1965
+ else if (hostRef === null || hostRef === void 0 ? void 0 : hostRef.$onReadyPromise$) {
1966
+ hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance$));
1967
+ }
1968
+ }
1969
+ };
1970
+ const bootstrapLazy = (lazyBundles, options = {}) => {
1971
+ var _a;
1972
+ const endBootstrap = createTime();
1973
+ const cmpTags = [];
1974
+ const exclude = options.exclude || [];
1975
+ const customElements = win.customElements;
1976
+ const head = doc.head;
1977
+ const metaCharset = /*@__PURE__*/ head.querySelector('meta[charset]');
1978
+ const dataStyles = /*@__PURE__*/ doc.createElement('style');
1979
+ const deferredConnectedCallbacks = [];
1980
+ let appLoadFallback;
1981
+ let isBootstrapping = true;
1982
+ Object.assign(plt, options);
1983
+ plt.$resourcesUrl$ = new URL(options.resourcesUrl || './', doc.baseURI).href;
1984
+ let hasSlotRelocation = false;
1985
+ lazyBundles.map((lazyBundle) => {
1986
+ lazyBundle[1].map((compactMeta) => {
1987
+ var _a;
1988
+ const cmpMeta = {
1989
+ $flags$: compactMeta[0],
1990
+ $tagName$: compactMeta[1],
1991
+ $members$: compactMeta[2],
1992
+ $listeners$: compactMeta[3],
1993
+ };
1994
+ // Check if we are using slots outside the shadow DOM in this component.
1995
+ // We'll use this information later to add styles for `slot-fb` elements
1996
+ if (cmpMeta.$flags$ & 4 /* CMP_FLAGS.hasSlotRelocation */) {
1997
+ hasSlotRelocation = true;
1998
+ }
1999
+ {
2000
+ cmpMeta.$members$ = compactMeta[2];
2001
+ }
2002
+ {
2003
+ cmpMeta.$attrsToReflect$ = [];
2004
+ }
2005
+ {
2006
+ cmpMeta.$watchers$ = (_a = compactMeta[4]) !== null && _a !== void 0 ? _a : {};
2007
+ }
2008
+ const tagName = cmpMeta.$tagName$;
2009
+ const HostElement = class extends HTMLElement {
2010
+ // StencilLazyHost
2011
+ constructor(self) {
2012
+ // @ts-ignore
2013
+ super(self);
2014
+ self = this;
2015
+ registerHost(self, cmpMeta);
2016
+ if (cmpMeta.$flags$ & 1 /* CMP_FLAGS.shadowDomEncapsulation */) {
2017
+ // this component is using shadow dom
2018
+ // and this browser supports shadow dom
2019
+ // add the read-only property "shadowRoot" to the host element
2020
+ // adding the shadow root build conditionals to minimize runtime
2021
+ {
2022
+ {
2023
+ self.attachShadow({ mode: 'open' });
2024
+ }
2025
+ }
2026
+ }
2027
+ }
2028
+ connectedCallback() {
2029
+ if (appLoadFallback) {
2030
+ clearTimeout(appLoadFallback);
2031
+ appLoadFallback = null;
2032
+ }
2033
+ if (isBootstrapping) {
2034
+ // connectedCallback will be processed once all components have been registered
2035
+ deferredConnectedCallbacks.push(this);
2036
+ }
2037
+ else {
2038
+ plt.jmp(() => connectedCallback(this));
2039
+ }
2040
+ }
2041
+ disconnectedCallback() {
2042
+ plt.jmp(() => disconnectedCallback(this));
2043
+ }
2044
+ componentOnReady() {
2045
+ return getHostRef(this).$onReadyPromise$;
2046
+ }
2047
+ };
2048
+ cmpMeta.$lazyBundleId$ = lazyBundle[0];
2049
+ if (!exclude.includes(tagName) && !customElements.get(tagName)) {
2050
+ cmpTags.push(tagName);
2051
+ customElements.define(tagName, proxyComponent(HostElement, cmpMeta, 1 /* PROXY_FLAGS.isElementConstructor */));
2052
+ }
2053
+ });
2054
+ });
2055
+ // Add styles for `slot-fb` elements if any of our components are using slots outside the Shadow DOM
2056
+ if (hasSlotRelocation) {
2057
+ dataStyles.innerHTML += SLOT_FB_CSS;
2058
+ }
2059
+ // Add hydration styles
2060
+ {
2061
+ dataStyles.innerHTML += cmpTags + HYDRATED_CSS;
2062
+ }
2063
+ // If we have styles, add them to the DOM
2064
+ if (dataStyles.innerHTML.length) {
2065
+ dataStyles.setAttribute('data-styles', '');
2066
+ // Apply CSP nonce to the style tag if it exists
2067
+ const nonce = (_a = plt.$nonce$) !== null && _a !== void 0 ? _a : queryNonceMetaTagContent(doc);
2068
+ if (nonce != null) {
2069
+ dataStyles.setAttribute('nonce', nonce);
2070
+ }
2071
+ // Insert the styles into the document head
2072
+ // NOTE: this _needs_ to happen last so we can ensure the nonce (and other attributes) are applied
2073
+ head.insertBefore(dataStyles, metaCharset ? metaCharset.nextSibling : head.firstChild);
2074
+ }
2075
+ // Process deferred connectedCallbacks now all components have been registered
2076
+ isBootstrapping = false;
2077
+ if (deferredConnectedCallbacks.length) {
2078
+ deferredConnectedCallbacks.map((host) => host.connectedCallback());
2079
+ }
2080
+ else {
2081
+ {
2082
+ plt.jmp(() => (appLoadFallback = setTimeout(appDidLoad, 30)));
2083
+ }
2084
+ }
2085
+ // Fallback appLoad event
2086
+ endBootstrap();
2087
+ };
2088
+ /**
2089
+ * Assigns the given value to the nonce property on the runtime platform object.
2090
+ * During runtime, this value is used to set the nonce attribute on all dynamically created script and style tags.
2091
+ * @param nonce The value to be assigned to the platform nonce property.
2092
+ * @returns void
2093
+ */
2094
+ const setNonce = (nonce) => (plt.$nonce$ = nonce);
2095
+ /**
2096
+ * A WeakMap mapping runtime component references to their corresponding host reference
2097
+ * instances.
2098
+ */
2099
+ const hostRefs = /*@__PURE__*/ new WeakMap();
2100
+ /**
2101
+ * Given a {@link d.RuntimeRef} retrieve the corresponding {@link d.HostRef}
2102
+ *
2103
+ * @param ref the runtime ref of interest
2104
+ * @returns the Host reference (if found) or undefined
2105
+ */
2106
+ const getHostRef = (ref) => hostRefs.get(ref);
2107
+ /**
2108
+ * Register a lazy instance with the {@link hostRefs} object so it's
2109
+ * corresponding {@link d.HostRef} can be retrieved later.
2110
+ *
2111
+ * @param lazyInstance the lazy instance of interest
2112
+ * @param hostRef that instances `HostRef` object
2113
+ * @returns a reference to the host ref WeakMap
2114
+ */
2115
+ const registerInstance = (lazyInstance, hostRef) => hostRefs.set((hostRef.$lazyInstance$ = lazyInstance), hostRef);
2116
+ /**
2117
+ * Register a host element for a Stencil component, setting up various metadata
2118
+ * and callbacks based on {@link BUILD} flags as well as the component's runtime
2119
+ * metadata.
2120
+ *
2121
+ * @param hostElement the host element to register
2122
+ * @param cmpMeta runtime metadata for that component
2123
+ * @returns a reference to the host ref WeakMap
2124
+ */
2125
+ const registerHost = (hostElement, cmpMeta) => {
2126
+ const hostRef = {
2127
+ $flags$: 0,
2128
+ $hostElement$: hostElement,
2129
+ $cmpMeta$: cmpMeta,
2130
+ $instanceValues$: new Map(),
2131
+ };
2132
+ {
2133
+ hostRef.$onInstancePromise$ = new Promise((r) => (hostRef.$onInstanceResolve$ = r));
2134
+ }
2135
+ {
2136
+ hostRef.$onReadyPromise$ = new Promise((r) => (hostRef.$onReadyResolve$ = r));
2137
+ hostElement['s-p'] = [];
2138
+ hostElement['s-rc'] = [];
2139
+ }
2140
+ return hostRefs.set(hostElement, hostRef);
2141
+ };
2142
+ const isMemberInElement = (elm, memberName) => memberName in elm;
2143
+ const consoleError = (e, el) => (0, console.error)(e, el);
2144
+ const cmpModules = /*@__PURE__*/ new Map();
2145
+ const loadModule = (cmpMeta, hostRef, hmrVersionId) => {
2146
+ // loadModuleImport
2147
+ const exportName = cmpMeta.$tagName$.replace(/-/g, '_');
2148
+ const bundleId = cmpMeta.$lazyBundleId$;
2149
+ const module = cmpModules.get(bundleId) ;
2150
+ if (module) {
2151
+ return module[exportName];
2152
+ }
2153
+
2154
+ if (!hmrVersionId || !BUILD.hotModuleReplacement) {
2155
+ const processMod = importedModule => {
2156
+ cmpModules.set(bundleId, importedModule);
2157
+ return importedModule[exportName];
2158
+ }
2159
+ switch(bundleId) {
2160
+
2161
+ case 'arcgis-basemap-gallery_2.cjs':
2162
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2163
+ /* webpackMode: "lazy" */
2164
+ './arcgis-basemap-gallery_2.cjs.entry.js')); }).then(processMod, consoleError);
2165
+ case 'arcgis-area-measurement-2d.cjs':
2166
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2167
+ /* webpackMode: "lazy" */
2168
+ './arcgis-area-measurement-2d.cjs.entry.js')); }).then(processMod, consoleError);
2169
+ case 'arcgis-area-measurement-3d.cjs':
2170
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2171
+ /* webpackMode: "lazy" */
2172
+ './arcgis-area-measurement-3d.cjs.entry.js')); }).then(processMod, consoleError);
2173
+ case 'arcgis-attachments.cjs':
2174
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2175
+ /* webpackMode: "lazy" */
2176
+ './arcgis-attachments.cjs.entry.js')); }).then(processMod, consoleError);
2177
+ case 'arcgis-basemap-layer-list.cjs':
2178
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2179
+ /* webpackMode: "lazy" */
2180
+ './arcgis-basemap-layer-list.cjs.entry.js')); }).then(processMod, consoleError);
2181
+ case 'arcgis-basemap-toggle.cjs':
2182
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2183
+ /* webpackMode: "lazy" */
2184
+ './arcgis-basemap-toggle.cjs.entry.js')); }).then(processMod, consoleError);
2185
+ case 'arcgis-bookmarks.cjs':
2186
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2187
+ /* webpackMode: "lazy" */
2188
+ './arcgis-bookmarks.cjs.entry.js')); }).then(processMod, consoleError);
2189
+ case 'arcgis-building-explorer.cjs':
2190
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2191
+ /* webpackMode: "lazy" */
2192
+ './arcgis-building-explorer.cjs.entry.js')); }).then(processMod, consoleError);
2193
+ case 'arcgis-compass.cjs':
2194
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2195
+ /* webpackMode: "lazy" */
2196
+ './arcgis-compass.cjs.entry.js')); }).then(processMod, consoleError);
2197
+ case 'arcgis-coordinate-conversion.cjs':
2198
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2199
+ /* webpackMode: "lazy" */
2200
+ './arcgis-coordinate-conversion.cjs.entry.js')); }).then(processMod, consoleError);
2201
+ case 'arcgis-daylight.cjs':
2202
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2203
+ /* webpackMode: "lazy" */
2204
+ './arcgis-daylight.cjs.entry.js')); }).then(processMod, consoleError);
2205
+ case 'arcgis-directional-pad.cjs':
2206
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2207
+ /* webpackMode: "lazy" */
2208
+ './arcgis-directional-pad.cjs.entry.js')); }).then(processMod, consoleError);
2209
+ case 'arcgis-directions.cjs':
2210
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2211
+ /* webpackMode: "lazy" */
2212
+ './arcgis-directions.cjs.entry.js')); }).then(processMod, consoleError);
2213
+ case 'arcgis-directline-measurement-3d.cjs':
2214
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2215
+ /* webpackMode: "lazy" */
2216
+ './arcgis-directline-measurement-3d.cjs.entry.js')); }).then(processMod, consoleError);
2217
+ case 'arcgis-distance-measurement-2d.cjs':
2218
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2219
+ /* webpackMode: "lazy" */
2220
+ './arcgis-distance-measurement-2d.cjs.entry.js')); }).then(processMod, consoleError);
2221
+ case 'arcgis-editor.cjs':
2222
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2223
+ /* webpackMode: "lazy" */
2224
+ './arcgis-editor.cjs.entry.js')); }).then(processMod, consoleError);
2225
+ case 'arcgis-elevation-profile.cjs':
2226
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2227
+ /* webpackMode: "lazy" */
2228
+ './arcgis-elevation-profile.cjs.entry.js')); }).then(processMod, consoleError);
2229
+ case 'arcgis-feature.cjs':
2230
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2231
+ /* webpackMode: "lazy" */
2232
+ './arcgis-feature.cjs.entry.js')); }).then(processMod, consoleError);
2233
+ case 'arcgis-feature-form.cjs':
2234
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2235
+ /* webpackMode: "lazy" */
2236
+ './arcgis-feature-form.cjs.entry.js')); }).then(processMod, consoleError);
2237
+ case 'arcgis-feature-table.cjs':
2238
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2239
+ /* webpackMode: "lazy" */
2240
+ './arcgis-feature-table.cjs.entry.js')); }).then(processMod, consoleError);
2241
+ case 'arcgis-feature-templates.cjs':
2242
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2243
+ /* webpackMode: "lazy" */
2244
+ './arcgis-feature-templates.cjs.entry.js')); }).then(processMod, consoleError);
2245
+ case 'arcgis-features.cjs':
2246
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2247
+ /* webpackMode: "lazy" */
2248
+ './arcgis-features.cjs.entry.js')); }).then(processMod, consoleError);
2249
+ case 'arcgis-floor-filter.cjs':
2250
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2251
+ /* webpackMode: "lazy" */
2252
+ './arcgis-floor-filter.cjs.entry.js')); }).then(processMod, consoleError);
2253
+ case 'arcgis-fullscreen.cjs':
2254
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2255
+ /* webpackMode: "lazy" */
2256
+ './arcgis-fullscreen.cjs.entry.js')); }).then(processMod, consoleError);
2257
+ case 'arcgis-histogram.cjs':
2258
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2259
+ /* webpackMode: "lazy" */
2260
+ './arcgis-histogram.cjs.entry.js')); }).then(processMod, consoleError);
2261
+ case 'arcgis-histogram-range-slider.cjs':
2262
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2263
+ /* webpackMode: "lazy" */
2264
+ './arcgis-histogram-range-slider.cjs.entry.js')); }).then(processMod, consoleError);
2265
+ case 'arcgis-home.cjs':
2266
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2267
+ /* webpackMode: "lazy" */
2268
+ './arcgis-home.cjs.entry.js')); }).then(processMod, consoleError);
2269
+ case 'arcgis-layer-list.cjs':
2270
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2271
+ /* webpackMode: "lazy" */
2272
+ './arcgis-layer-list.cjs.entry.js')); }).then(processMod, consoleError);
2273
+ case 'arcgis-legend.cjs':
2274
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2275
+ /* webpackMode: "lazy" */
2276
+ './arcgis-legend.cjs.entry.js')); }).then(processMod, consoleError);
2277
+ case 'arcgis-line-of-sight.cjs':
2278
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2279
+ /* webpackMode: "lazy" */
2280
+ './arcgis-line-of-sight.cjs.entry.js')); }).then(processMod, consoleError);
2281
+ case 'arcgis-locate.cjs':
2282
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2283
+ /* webpackMode: "lazy" */
2284
+ './arcgis-locate.cjs.entry.js')); }).then(processMod, consoleError);
2285
+ case 'arcgis-measurement.cjs':
2286
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2287
+ /* webpackMode: "lazy" */
2288
+ './arcgis-measurement.cjs.entry.js')); }).then(processMod, consoleError);
2289
+ case 'arcgis-navigation-toggle.cjs':
2290
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2291
+ /* webpackMode: "lazy" */
2292
+ './arcgis-navigation-toggle.cjs.entry.js')); }).then(processMod, consoleError);
2293
+ case 'arcgis-placement.cjs':
2294
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2295
+ /* webpackMode: "lazy" */
2296
+ './arcgis-placement.cjs.entry.js')); }).then(processMod, consoleError);
2297
+ case 'arcgis-print.cjs':
2298
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2299
+ /* webpackMode: "lazy" */
2300
+ './arcgis-print.cjs.entry.js')); }).then(processMod, consoleError);
2301
+ case 'arcgis-scale-bar.cjs':
2302
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2303
+ /* webpackMode: "lazy" */
2304
+ './arcgis-scale-bar.cjs.entry.js')); }).then(processMod, consoleError);
2305
+ case 'arcgis-scale-range-slider.cjs':
2306
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2307
+ /* webpackMode: "lazy" */
2308
+ './arcgis-scale-range-slider.cjs.entry.js')); }).then(processMod, consoleError);
2309
+ case 'arcgis-scene.cjs':
2310
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2311
+ /* webpackMode: "lazy" */
2312
+ './arcgis-scene.cjs.entry.js')); }).then(processMod, consoleError);
2313
+ case 'arcgis-search.cjs':
2314
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2315
+ /* webpackMode: "lazy" */
2316
+ './arcgis-search.cjs.entry.js')); }).then(processMod, consoleError);
2317
+ case 'arcgis-shadow-cast.cjs':
2318
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2319
+ /* webpackMode: "lazy" */
2320
+ './arcgis-shadow-cast.cjs.entry.js')); }).then(processMod, consoleError);
2321
+ case 'arcgis-sketch.cjs':
2322
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2323
+ /* webpackMode: "lazy" */
2324
+ './arcgis-sketch.cjs.entry.js')); }).then(processMod, consoleError);
2325
+ case 'arcgis-slice.cjs':
2326
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2327
+ /* webpackMode: "lazy" */
2328
+ './arcgis-slice.cjs.entry.js')); }).then(processMod, consoleError);
2329
+ case 'arcgis-slider.cjs':
2330
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2331
+ /* webpackMode: "lazy" */
2332
+ './arcgis-slider.cjs.entry.js')); }).then(processMod, consoleError);
2333
+ case 'arcgis-swipe.cjs':
2334
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2335
+ /* webpackMode: "lazy" */
2336
+ './arcgis-swipe.cjs.entry.js')); }).then(processMod, consoleError);
2337
+ case 'arcgis-table-list.cjs':
2338
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2339
+ /* webpackMode: "lazy" */
2340
+ './arcgis-table-list.cjs.entry.js')); }).then(processMod, consoleError);
2341
+ case 'arcgis-time-slider.cjs':
2342
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2343
+ /* webpackMode: "lazy" */
2344
+ './arcgis-time-slider.cjs.entry.js')); }).then(processMod, consoleError);
2345
+ case 'arcgis-track.cjs':
2346
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2347
+ /* webpackMode: "lazy" */
2348
+ './arcgis-track.cjs.entry.js')); }).then(processMod, consoleError);
2349
+ case 'arcgis-utility-network-associations.cjs':
2350
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2351
+ /* webpackMode: "lazy" */
2352
+ './arcgis-utility-network-associations.cjs.entry.js')); }).then(processMod, consoleError);
2353
+ case 'arcgis-utility-network-trace.cjs':
2354
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2355
+ /* webpackMode: "lazy" */
2356
+ './arcgis-utility-network-trace.cjs.entry.js')); }).then(processMod, consoleError);
2357
+ case 'arcgis-utility-network-validate-topology.cjs':
2358
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2359
+ /* webpackMode: "lazy" */
2360
+ './arcgis-utility-network-validate-topology.cjs.entry.js')); }).then(processMod, consoleError);
2361
+ case 'arcgis-value-picker.cjs':
2362
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2363
+ /* webpackMode: "lazy" */
2364
+ './arcgis-value-picker.cjs.entry.js')); }).then(processMod, consoleError);
2365
+ case 'arcgis-version-management.cjs':
2366
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2367
+ /* webpackMode: "lazy" */
2368
+ './arcgis-version-management.cjs.entry.js')); }).then(processMod, consoleError);
2369
+ case 'arcgis-weather.cjs':
2370
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2371
+ /* webpackMode: "lazy" */
2372
+ './arcgis-weather.cjs.entry.js')); }).then(processMod, consoleError);
2373
+ case 'arcgis-zoom.cjs':
2374
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2375
+ /* webpackMode: "lazy" */
2376
+ './arcgis-zoom.cjs.entry.js')); }).then(processMod, consoleError);
2377
+ case 'arcgis-version-management-service-item_2.cjs':
2378
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2379
+ /* webpackMode: "lazy" */
2380
+ './arcgis-version-management-service-item_2.cjs.entry.js')); }).then(processMod, consoleError);
2381
+ case 'arcgis-version-management-version-item_2.cjs':
2382
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2383
+ /* webpackMode: "lazy" */
2384
+ './arcgis-version-management-version-item_2.cjs.entry.js')); }).then(processMod, consoleError);
2385
+ case 'arcgis-expand.cjs':
2386
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2387
+ /* webpackMode: "lazy" */
2388
+ './arcgis-expand.cjs.entry.js')); }).then(processMod, consoleError);
2389
+ }
2390
+ }
2391
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2392
+ /* @vite-ignore */
2393
+ /* webpackInclude: /\.entry\.js$/ */
2394
+ /* webpackExclude: /\.system\.entry\.js$/ */
2395
+ /* webpackMode: "lazy" */
2396
+ `./${bundleId}.entry.js${''}`)); }).then((importedModule) => {
2397
+ {
2398
+ cmpModules.set(bundleId, importedModule);
2399
+ }
2400
+ return importedModule[exportName];
2401
+ }, consoleError);
2402
+ };
2403
+ const styles = /*@__PURE__*/ new Map();
2404
+ const win = typeof window !== 'undefined' ? window : {};
2405
+ const doc = win.document || { head: {} };
2406
+ const plt = {
2407
+ $flags$: 0,
2408
+ $resourcesUrl$: '',
2409
+ jmp: (h) => h(),
2410
+ raf: (h) => requestAnimationFrame(h),
2411
+ ael: (el, eventName, listener, opts) => el.addEventListener(eventName, listener, opts),
2412
+ rel: (el, eventName, listener, opts) => el.removeEventListener(eventName, listener, opts),
2413
+ ce: (eventName, opts) => new CustomEvent(eventName, opts),
2414
+ };
2415
+ const promiseResolve = (v) => Promise.resolve(v);
2416
+ const supportsConstructableStylesheets = /*@__PURE__*/ (() => {
2417
+ try {
2418
+ new CSSStyleSheet();
2419
+ return typeof new CSSStyleSheet().replaceSync === 'function';
2420
+ }
2421
+ catch (e) { }
2422
+ return false;
2423
+ })()
2424
+ ;
2425
+ const queueDomReads = [];
2426
+ const queueDomWrites = [];
2427
+ const queueTask = (queue, write) => (cb) => {
2428
+ queue.push(cb);
2429
+ if (!queuePending) {
2430
+ queuePending = true;
2431
+ if (write && plt.$flags$ & 4 /* PLATFORM_FLAGS.queueSync */) {
2432
+ nextTick(flush);
2433
+ }
2434
+ else {
2435
+ plt.raf(flush);
2436
+ }
2437
+ }
2438
+ };
2439
+ const consume = (queue) => {
2440
+ for (let i = 0; i < queue.length; i++) {
2441
+ try {
2442
+ queue[i](performance.now());
2443
+ }
2444
+ catch (e) {
2445
+ consoleError(e);
2446
+ }
2447
+ }
2448
+ queue.length = 0;
2449
+ };
2450
+ const flush = () => {
2451
+ // always force a bunch of medium callbacks to run, but still have
2452
+ // a throttle on how many can run in a certain time
2453
+ // DOM READS!!!
2454
+ consume(queueDomReads);
2455
+ // DOM WRITES!!!
2456
+ {
2457
+ consume(queueDomWrites);
2458
+ if ((queuePending = queueDomReads.length > 0)) {
2459
+ // still more to do yet, but we've run out of time
2460
+ // let's let this thing cool off and try again in the next tick
2461
+ plt.raf(flush);
2462
+ }
2463
+ }
2464
+ };
2465
+ const nextTick = (cb) => promiseResolve().then(cb);
2466
+ const writeTask = /*@__PURE__*/ queueTask(queueDomWrites, true);
2467
+
2468
+ exports.Host = Host;
2469
+ exports.bootstrapLazy = bootstrapLazy;
2470
+ exports.createEvent = createEvent;
2471
+ exports.getAssetPath = getAssetPath;
2472
+ exports.getElement = getElement;
2473
+ exports.h = h;
2474
+ exports.promiseResolve = promiseResolve;
2475
+ exports.registerInstance = registerInstance;
2476
+ exports.setNonce = setNonce;