@mountaya/elements 0.1.0 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (862) hide show
  1. package/CHANGELOG.md +38 -0
  2. package/README.md +4 -3
  3. package/THIRD-PARTY-NOTICES.txt +1 -1
  4. package/dist/agent/index.cjs +1152 -1905
  5. package/dist/agent/index.cjs.map +1 -1
  6. package/dist/agent/index.d.cts +1152 -1202
  7. package/dist/agent/index.d.ts +1152 -1202
  8. package/dist/agent/index.js +1147 -1903
  9. package/dist/agent/index.js.map +1 -1
  10. package/dist/camera/index.cjs +2470 -3435
  11. package/dist/camera/index.cjs.map +1 -1
  12. package/dist/camera/index.d.cts +716 -744
  13. package/dist/camera/index.d.ts +716 -744
  14. package/dist/camera/index.js +2438 -3323
  15. package/dist/camera/index.js.map +1 -1
  16. package/dist/{units-D9mBrusY.d.cts → chunk-5pTPpv4v.d.cts} +38 -41
  17. package/dist/{units-D9mBrusY.d.ts → chunk-5pTPpv4v.d.ts} +38 -41
  18. package/dist/{order-BLhsGsH8.d.ts → chunk-6JzFMFHh.d.ts} +15 -28
  19. package/dist/chunk-6qyuJVvt.d.ts +513 -0
  20. package/dist/chunk-9fp0lDic.cjs +583 -0
  21. package/dist/chunk-9fp0lDic.cjs.map +1 -0
  22. package/dist/{zones-B05QA8fy.d.ts → chunk-A48H1rDg.d.cts} +2 -4
  23. package/dist/{zones-B05QA8fy.d.cts → chunk-A48H1rDg.d.ts} +2 -4
  24. package/dist/chunk-B-m1AchR.cjs +57 -0
  25. package/dist/chunk-B-m1AchR.cjs.map +1 -0
  26. package/dist/{bundle-xYrrbJTH.d.ts → chunk-B-qFTf04.d.ts} +51 -57
  27. package/dist/chunk-B0YROiZh.d.cts +1475 -0
  28. package/dist/chunk-B14wgOvH.d.cts +68 -0
  29. package/dist/chunk-B19l3j9r.cjs +150 -0
  30. package/dist/chunk-B19l3j9r.cjs.map +1 -0
  31. package/dist/chunk-B2PtjVKg.cjs +86 -0
  32. package/dist/chunk-B2PtjVKg.cjs.map +1 -0
  33. package/dist/chunk-B56Oyb7W.cjs +70 -0
  34. package/dist/chunk-B56Oyb7W.cjs.map +1 -0
  35. package/dist/chunk-B5WGMQwK.cjs +113 -0
  36. package/dist/chunk-B5WGMQwK.cjs.map +1 -0
  37. package/dist/{types-nO2joeRk.d.ts → chunk-B98mKrdu.d.cts} +103 -122
  38. package/dist/{videoOverlay-Dh_D5_Zs.d.ts → chunk-BB0PmqIM.d.cts} +10 -10
  39. package/dist/chunk-BBikve0Z.cjs +269 -0
  40. package/dist/chunk-BBikve0Z.cjs.map +1 -0
  41. package/dist/chunk-BHeXmM0X.js +37 -0
  42. package/dist/chunk-BHeXmM0X.js.map +1 -0
  43. package/dist/chunk-BI8WZLpU.cjs +281 -0
  44. package/dist/chunk-BI8WZLpU.cjs.map +1 -0
  45. package/dist/chunk-BIEc_SkR.cjs +29 -0
  46. package/dist/chunk-BIEc_SkR.cjs.map +1 -0
  47. package/dist/chunk-BJ6L6_W9.cjs +553 -0
  48. package/dist/chunk-BJ6L6_W9.cjs.map +1 -0
  49. package/dist/chunk-BJ91UCbB.js +11 -0
  50. package/dist/chunk-BJ91UCbB.js.map +1 -0
  51. package/dist/chunk-BJEZWTKj.cjs +166 -0
  52. package/dist/chunk-BJEZWTKj.cjs.map +1 -0
  53. package/dist/chunk-BJz54mfg.cjs +10 -0
  54. package/dist/chunk-BJz54mfg.cjs.map +1 -0
  55. package/dist/{sections-CVlc2Inr.d.cts → chunk-BNX5LAfN.d.cts} +289 -330
  56. package/dist/chunk-BP6KgA86.js +35 -0
  57. package/dist/chunk-BP6KgA86.js.map +1 -0
  58. package/dist/{segmentRoute-C5UL_5bp.d.ts → chunk-BRnjQq6K.d.cts} +44 -59
  59. package/dist/chunk-BSiMEwPS.js +46 -0
  60. package/dist/chunk-BSiMEwPS.js.map +1 -0
  61. package/dist/chunk-BTPjDw_y.cjs +16 -0
  62. package/dist/chunk-BTPjDw_y.cjs.map +1 -0
  63. package/dist/chunk-BTUUABGI.js +17 -0
  64. package/dist/chunk-BTUUABGI.js.map +1 -0
  65. package/dist/chunk-BUeL9y7s.cjs +45 -0
  66. package/dist/chunk-BUeL9y7s.cjs.map +1 -0
  67. package/dist/chunk-BWMuCNc9.cjs +172 -0
  68. package/dist/chunk-BWMuCNc9.cjs.map +1 -0
  69. package/dist/chunk-BWjRfhpF.js +126 -0
  70. package/dist/chunk-BWjRfhpF.js.map +1 -0
  71. package/dist/{types-CTQwbSdA.d.cts → chunk-BZ5KyZXI.d.ts} +103 -122
  72. package/dist/chunk-B_4SVmvh.js +94 -0
  73. package/dist/chunk-B_4SVmvh.js.map +1 -0
  74. package/dist/chunk-BcTUuZQ3.js +95 -0
  75. package/dist/chunk-BcTUuZQ3.js.map +1 -0
  76. package/dist/chunk-BdkqSsJe.cjs +140 -0
  77. package/dist/chunk-BdkqSsJe.cjs.map +1 -0
  78. package/dist/chunk-BfktMVmI.js +70 -0
  79. package/dist/chunk-BfktMVmI.js.map +1 -0
  80. package/dist/chunk-BfzQb0EK.cjs +6 -0
  81. package/dist/chunk-BhWfT-22.d.cts +808 -0
  82. package/dist/chunk-BjJcqX5J.cjs +60 -0
  83. package/dist/chunk-BjJcqX5J.cjs.map +1 -0
  84. package/dist/{geodesy-543qXKtI.d.ts → chunk-Bk0L8g5J.d.cts} +3 -4
  85. package/dist/{geodesy-543qXKtI.d.cts → chunk-Bk0L8g5J.d.ts} +3 -4
  86. package/dist/chunk-Bl4_uVa6.cjs +11 -0
  87. package/dist/chunk-Bl4_uVa6.cjs.map +1 -0
  88. package/dist/chunk-BlKF4lrp.js +43 -0
  89. package/dist/chunk-BlKF4lrp.js.map +1 -0
  90. package/dist/chunk-Bm1FieGR.js +4 -0
  91. package/dist/chunk-Bm1FieGR.js.map +1 -0
  92. package/dist/chunk-Bn6ZbxkS.cjs +27 -0
  93. package/dist/chunk-BpN3hr6a.cjs +541 -0
  94. package/dist/chunk-BpN3hr6a.cjs.map +1 -0
  95. package/dist/{order-BZkUwMou.d.cts → chunk-Bq_WHTfd.d.cts} +15 -28
  96. package/dist/chunk-Bqt4LBBz.cjs +648 -0
  97. package/dist/chunk-Bqt4LBBz.cjs.map +1 -0
  98. package/dist/{language-CEWQ5uYw.d.cts → chunk-Bqt97zwf.d.cts} +3 -18
  99. package/dist/{language-CEWQ5uYw.d.ts → chunk-Bqt97zwf.d.ts} +3 -18
  100. package/dist/chunk-BsBiN4w6.d.cts +245 -0
  101. package/dist/chunk-BvTpOUoC.cjs +207 -0
  102. package/dist/chunk-BvTpOUoC.cjs.map +1 -0
  103. package/dist/chunk-BwK6Hl3q.cjs +446 -0
  104. package/dist/chunk-BwK6Hl3q.cjs.map +1 -0
  105. package/dist/{elevationTiles-pmsb9wnU.d.cts → chunk-BxDQZDXR.d.cts} +26 -27
  106. package/dist/{elevationTiles-pmsb9wnU.d.ts → chunk-BxDQZDXR.d.ts} +26 -27
  107. package/dist/chunk-BxUio8kX.js +20 -0
  108. package/dist/chunk-BxUio8kX.js.map +1 -0
  109. package/dist/chunk-BxaocpFi.d.cts +1 -0
  110. package/dist/chunk-Bywi0K1N.js +36 -0
  111. package/dist/chunk-Bywi0K1N.js.map +1 -0
  112. package/dist/chunk-C-IlmkDl.js +59 -0
  113. package/dist/chunk-C-IlmkDl.js.map +1 -0
  114. package/dist/chunk-C5PtVewq.d.ts +389 -0
  115. package/dist/chunk-C5dpC7mQ.js +19 -0
  116. package/dist/chunk-C5dpC7mQ.js.map +1 -0
  117. package/dist/chunk-C5q1sgSa.js +46 -0
  118. package/dist/chunk-C5q1sgSa.js.map +1 -0
  119. package/dist/chunk-C6fU9G5I.cjs +221 -0
  120. package/dist/chunk-C6fU9G5I.cjs.map +1 -0
  121. package/dist/chunk-C71dpWUK.js +5 -0
  122. package/dist/chunk-C71dpWUK.js.map +1 -0
  123. package/dist/chunk-C82N1gQX.d.ts +1831 -0
  124. package/dist/chunk-C8HdaHpu.js +118 -0
  125. package/dist/chunk-C8HdaHpu.js.map +1 -0
  126. package/dist/chunk-C8ZGryck.js +236 -0
  127. package/dist/chunk-C8ZGryck.js.map +1 -0
  128. package/dist/chunk-C95NG0oD.cjs +43 -0
  129. package/dist/chunk-C95NG0oD.cjs.map +1 -0
  130. package/dist/chunk-C9aR8DXb.js +9 -0
  131. package/dist/chunk-C9aR8DXb.js.map +1 -0
  132. package/dist/{camera-C48Ykaxv.d.ts → chunk-CAUZnoCs.d.ts} +135 -159
  133. package/dist/chunk-CBXWWuM9.cjs +82 -0
  134. package/dist/chunk-CBXWWuM9.cjs.map +1 -0
  135. package/dist/chunk-CC_Kquu7.d.cts +125 -0
  136. package/dist/chunk-CC_Kquu7.d.ts +125 -0
  137. package/dist/chunk-CCp85vXg.cjs +60 -0
  138. package/dist/chunk-CCp85vXg.cjs.map +1 -0
  139. package/dist/chunk-CEcB1_uK.js +39 -0
  140. package/dist/chunk-CEcB1_uK.js.map +1 -0
  141. package/dist/{bundle-Je5zsRFg.d.cts → chunk-CFIo021l.d.cts} +51 -57
  142. package/dist/chunk-CH_IZoJE.js +33 -0
  143. package/dist/chunk-CH_IZoJE.js.map +1 -0
  144. package/dist/chunk-CHrasH_g.cjs +25 -0
  145. package/dist/chunk-CHrasH_g.cjs.map +1 -0
  146. package/dist/chunk-CJVoSaAE.cjs +3 -0
  147. package/dist/chunk-CJp8nGcb.js +96 -0
  148. package/dist/chunk-CJp8nGcb.js.map +1 -0
  149. package/dist/chunk-CJwUtkOt.js +112 -0
  150. package/dist/chunk-CJwUtkOt.js.map +1 -0
  151. package/dist/chunk-CKhCOVIf.d.cts +751 -0
  152. package/dist/chunk-CKiVSRYg.js +50 -0
  153. package/dist/chunk-CKiVSRYg.js.map +1 -0
  154. package/dist/chunk-CKtd19eD.cjs +59 -0
  155. package/dist/chunk-CKtd19eD.cjs.map +1 -0
  156. package/dist/chunk-CL92KE3j.d.ts +3188 -0
  157. package/dist/chunk-CLqUlkAe.js +54 -0
  158. package/dist/chunk-CLqUlkAe.js.map +1 -0
  159. package/dist/chunk-CMG5OV0q.cjs +4741 -0
  160. package/dist/chunk-CMG5OV0q.cjs.map +1 -0
  161. package/dist/chunk-CN_TKSgm.js +10 -0
  162. package/dist/chunk-CN_TKSgm.js.map +1 -0
  163. package/dist/chunk-CNe6MtqV.cjs +29 -0
  164. package/dist/chunk-CNe6MtqV.cjs.map +1 -0
  165. package/dist/chunk-COQkDTC5.js +83 -0
  166. package/dist/chunk-COQkDTC5.js.map +1 -0
  167. package/dist/chunk-CPBl6K4M.cjs +168 -0
  168. package/dist/chunk-CPBl6K4M.cjs.map +1 -0
  169. package/dist/chunk-CPx0ZYFB.d.ts +3 -0
  170. package/dist/chunk-CQQhcP_C.d.ts +197 -0
  171. package/dist/chunk-CTNoajFh.d.cts +389 -0
  172. package/dist/chunk-CTd-qgJc.cjs +384 -0
  173. package/dist/chunk-CTd-qgJc.cjs.map +1 -0
  174. package/dist/chunk-CW80YYtU.cjs +1056 -0
  175. package/dist/chunk-CW80YYtU.cjs.map +1 -0
  176. package/dist/{searchLimits-j99-NTXR.d.ts → chunk-CWpqBgkF.d.cts} +2 -2
  177. package/dist/{searchLimits-j99-NTXR.d.cts → chunk-CWpqBgkF.d.ts} +2 -2
  178. package/dist/chunk-CXjRArgy.d.ts +3 -0
  179. package/dist/chunk-CXonfH3-.cjs +14 -0
  180. package/dist/chunk-CXonfH3-.cjs.map +1 -0
  181. package/dist/chunk-CYcouGXN.d.ts +825 -0
  182. package/dist/chunk-CZDAzEBw.cjs +1621 -0
  183. package/dist/chunk-CZDAzEBw.cjs.map +1 -0
  184. package/dist/{amenities-B3-qAjxu.d.cts → chunk-C_fQFr70.d.cts} +40 -41
  185. package/dist/{amenities-B3-qAjxu.d.ts → chunk-C_fQFr70.d.ts} +40 -41
  186. package/dist/chunk-CbOtHnnB.cjs +359 -0
  187. package/dist/chunk-CbOtHnnB.cjs.map +1 -0
  188. package/dist/chunk-CdA6ZMGk.d.cts +825 -0
  189. package/dist/chunk-Ce1_thm7.js +146 -0
  190. package/dist/chunk-Ce1_thm7.js.map +1 -0
  191. package/dist/chunk-CeD8Hw0j.d.cts +3188 -0
  192. package/dist/{camera-BrFLU1DH.d.cts → chunk-CeiTuMyt.d.cts} +135 -159
  193. package/dist/chunk-Ch1OLzLi.js +1 -0
  194. package/dist/chunk-Cizu_j1N.cjs +87 -0
  195. package/dist/chunk-Cizu_j1N.cjs.map +1 -0
  196. package/dist/chunk-CjDe9z6A.d.cts +427 -0
  197. package/dist/chunk-Cl1etdlu.js +63 -0
  198. package/dist/chunk-Cl1etdlu.js.map +1 -0
  199. package/dist/chunk-CmoVJDoz.js +4 -0
  200. package/dist/chunk-CmoVJDoz.js.map +1 -0
  201. package/dist/chunk-CnLucxjG.cjs +197 -0
  202. package/dist/chunk-CnLucxjG.cjs.map +1 -0
  203. package/dist/chunk-CsWjBmdi.cjs +56 -0
  204. package/dist/chunk-CsWjBmdi.cjs.map +1 -0
  205. package/dist/chunk-CuseO5MZ.d.cts +3 -0
  206. package/dist/chunk-CvMHibbA.d.ts +427 -0
  207. package/dist/chunk-CwDeiN5U.js +870 -0
  208. package/dist/chunk-CwDeiN5U.js.map +1 -0
  209. package/dist/chunk-Cwdmx4tG.js +1 -0
  210. package/dist/{geolocation-DDkQdWMN.d.cts → chunk-D-4MxHTt.d.cts} +33 -34
  211. package/dist/{geolocation-DDkQdWMN.d.ts → chunk-D-4MxHTt.d.ts} +33 -34
  212. package/dist/chunk-D0LF-99V.js +1093 -0
  213. package/dist/chunk-D0LF-99V.js.map +1 -0
  214. package/dist/chunk-D1fe-0c_.js +367 -0
  215. package/dist/chunk-D1fe-0c_.js.map +1 -0
  216. package/dist/chunk-D21fEI6A.d.ts +1926 -0
  217. package/dist/chunk-D39gAxya.cjs +89 -0
  218. package/dist/chunk-D39gAxya.cjs.map +1 -0
  219. package/dist/chunk-D6KdIW5e.cjs +228 -0
  220. package/dist/chunk-D6KdIW5e.cjs.map +1 -0
  221. package/dist/chunk-D6qHYbgW.d.cts +36 -0
  222. package/dist/{videoOverlay-Dh_D5_Zs.d.cts → chunk-D89E-w70.d.ts} +10 -10
  223. package/dist/chunk-D8bdTysL.js +552 -0
  224. package/dist/chunk-D8bdTysL.js.map +1 -0
  225. package/dist/chunk-D96QJT24.cjs +109 -0
  226. package/dist/chunk-D96QJT24.cjs.map +1 -0
  227. package/dist/chunk-DAmkQl-i.js +119 -0
  228. package/dist/chunk-DAmkQl-i.js.map +1 -0
  229. package/dist/chunk-DEfsb2lc.cjs +10 -0
  230. package/dist/chunk-DEfsb2lc.cjs.map +1 -0
  231. package/dist/chunk-DIFjT5-V.d.cts +66 -0
  232. package/dist/{sections-CmtaduLc.d.ts → chunk-DJpUw8TN.d.ts} +289 -330
  233. package/dist/chunk-DK6lm2IZ.cjs +11 -0
  234. package/dist/chunk-DK6lm2IZ.cjs.map +1 -0
  235. package/dist/chunk-DKqgr31j.cjs +61 -0
  236. package/dist/chunk-DKqgr31j.cjs.map +1 -0
  237. package/dist/chunk-DLZ0QYm9.js +37 -0
  238. package/dist/chunk-DLZ0QYm9.js.map +1 -0
  239. package/dist/chunk-DLjS0uaC.js +4 -0
  240. package/dist/chunk-DLjS0uaC.js.map +1 -0
  241. package/dist/chunk-DMokwmOV.cjs +49 -0
  242. package/dist/chunk-DMokwmOV.cjs.map +1 -0
  243. package/dist/chunk-DMvWgBZL.d.cts +1831 -0
  244. package/dist/chunk-DNfGfIF3.js +31 -0
  245. package/dist/chunk-DNfGfIF3.js.map +1 -0
  246. package/dist/chunk-DQbSRe8D.d.ts +245 -0
  247. package/dist/chunk-DSGkP8_y.js +45 -0
  248. package/dist/chunk-DSGkP8_y.js.map +1 -0
  249. package/dist/chunk-DTctvfSd.d.cts +197 -0
  250. package/dist/chunk-DWe7igyw.cjs +206 -0
  251. package/dist/chunk-DWe7igyw.cjs.map +1 -0
  252. package/dist/chunk-DWsMP5JR.d.ts +68 -0
  253. package/dist/{provider-DM71XnLX.d.cts → chunk-DWsm3HIW.d.cts} +37 -38
  254. package/dist/{provider-DM71XnLX.d.ts → chunk-DWsm3HIW.d.ts} +37 -38
  255. package/dist/chunk-DXABHjLa.cjs +3 -0
  256. package/dist/chunk-D_BeqSbc.cjs +42 -0
  257. package/dist/chunk-D_BeqSbc.cjs.map +1 -0
  258. package/dist/chunk-D_svQNdW.d.ts +66 -0
  259. package/dist/chunk-Dav4xWrp.js +330 -0
  260. package/dist/chunk-Dav4xWrp.js.map +1 -0
  261. package/dist/chunk-DbCPhepL.js +293 -0
  262. package/dist/chunk-DbCPhepL.js.map +1 -0
  263. package/dist/chunk-DcrTy-y2.cjs +43 -0
  264. package/dist/chunk-DcrTy-y2.cjs.map +1 -0
  265. package/dist/chunk-Ddv484ld.js +487 -0
  266. package/dist/chunk-Ddv484ld.js.map +1 -0
  267. package/dist/chunk-De0bjnhY.cjs +88 -0
  268. package/dist/chunk-De0bjnhY.cjs.map +1 -0
  269. package/dist/chunk-De2FmNPu.cjs +32 -0
  270. package/dist/chunk-De2FmNPu.cjs.map +1 -0
  271. package/dist/{segmentRoute-CIo6dR8Y.d.cts → chunk-DeSjQXiI.d.ts} +44 -59
  272. package/dist/chunk-Den0Ta6C.js +132 -0
  273. package/dist/chunk-Den0Ta6C.js.map +1 -0
  274. package/dist/chunk-DiDKEeEa.js +8 -0
  275. package/dist/chunk-DiDKEeEa.js.map +1 -0
  276. package/dist/chunk-Dj60k5PU.js +197 -0
  277. package/dist/chunk-Dj60k5PU.js.map +1 -0
  278. package/dist/chunk-DjnYQBCN.js +4705 -0
  279. package/dist/chunk-DjnYQBCN.js.map +1 -0
  280. package/dist/chunk-Dk9VKvyq.d.ts +1 -0
  281. package/dist/chunk-Dor1ERI9.cjs +85 -0
  282. package/dist/chunk-Dor1ERI9.cjs.map +1 -0
  283. package/dist/chunk-DpMouOoH.js +451 -0
  284. package/dist/chunk-DpMouOoH.js.map +1 -0
  285. package/dist/chunk-DposgdNL.cjs +52 -0
  286. package/dist/chunk-DposgdNL.cjs.map +1 -0
  287. package/dist/chunk-DqLTG_5Q.d.cts +3 -0
  288. package/dist/{roadAccess-D_rOE4xW.d.cts → chunk-Dr5MCIpS.d.cts} +5 -28
  289. package/dist/{roadAccess-D_rOE4xW.d.ts → chunk-Dr5MCIpS.d.ts} +5 -28
  290. package/dist/chunk-DrudttCC.cjs +4 -0
  291. package/dist/chunk-DsDYVJQC.js +173 -0
  292. package/dist/chunk-DsDYVJQC.js.map +1 -0
  293. package/dist/chunk-Dw8ur6FJ.js +27 -0
  294. package/dist/chunk-Dw8ur6FJ.js.map +1 -0
  295. package/dist/chunk-DwG6M_0v.js +64 -0
  296. package/dist/chunk-DwG6M_0v.js.map +1 -0
  297. package/dist/chunk-Dy9a5ibO.js +284 -0
  298. package/dist/chunk-Dy9a5ibO.js.map +1 -0
  299. package/dist/chunk-DyayZlQJ.js +157 -0
  300. package/dist/chunk-DyayZlQJ.js.map +1 -0
  301. package/dist/chunk-DyhJZC2i.js +126 -0
  302. package/dist/chunk-DyhJZC2i.js.map +1 -0
  303. package/dist/chunk-F9zBzmmG.cjs +45 -0
  304. package/dist/chunk-F9zBzmmG.cjs.map +1 -0
  305. package/dist/chunk-FyCYofv2.js +116 -0
  306. package/dist/chunk-FyCYofv2.js.map +1 -0
  307. package/dist/chunk-GHJRjAk2.js +1 -0
  308. package/dist/chunk-H14isiSf.d.ts +751 -0
  309. package/dist/chunk-HIJzXoN4.js +7 -0
  310. package/dist/chunk-HIJzXoN4.js.map +1 -0
  311. package/dist/chunk-Id_8kRtu.d.ts +36 -0
  312. package/dist/chunk-KN60yxBQ.js +5 -0
  313. package/dist/chunk-KN60yxBQ.js.map +1 -0
  314. package/dist/chunk-NM5yg6bh.cjs +82 -0
  315. package/dist/chunk-NM5yg6bh.cjs.map +1 -0
  316. package/dist/chunk-OXr3zJfM.cjs +119 -0
  317. package/dist/chunk-OXr3zJfM.cjs.map +1 -0
  318. package/dist/chunk-QGqgNC4z.d.ts +928 -0
  319. package/dist/chunk-QJBtJrZ0.js +36 -0
  320. package/dist/chunk-QJBtJrZ0.js.map +1 -0
  321. package/dist/{routeProfile-BsSUABXv.d.cts → chunk-QKWhxfPv.d.cts} +196 -45
  322. package/dist/{routeProfile-BKfSfxx6.d.ts → chunk-QKWhxfPv.d.ts} +196 -45
  323. package/dist/chunk-QXW7b4Ev.d.cts +410 -0
  324. package/dist/chunk-RHZrxUrM.cjs +39 -0
  325. package/dist/chunk-RHZrxUrM.cjs.map +1 -0
  326. package/dist/chunk-RTxe2i66.js +91 -0
  327. package/dist/chunk-RTxe2i66.js.map +1 -0
  328. package/dist/chunk-RrKkJb6P.js +16 -0
  329. package/dist/chunk-RrKkJb6P.js.map +1 -0
  330. package/dist/chunk-VOJqpcnM.cjs +181 -0
  331. package/dist/chunk-VOJqpcnM.cjs.map +1 -0
  332. package/dist/chunk-VljGTrid.js +1 -0
  333. package/dist/chunk-X3UVwUEK.d.cts +513 -0
  334. package/dist/chunk-X9K2WChn.cjs +28 -0
  335. package/dist/chunk-X9K2WChn.cjs.map +1 -0
  336. package/dist/chunk-YrtOx6oy.js +251 -0
  337. package/dist/chunk-YrtOx6oy.js.map +1 -0
  338. package/dist/chunk-bY7ySujI.d.cts +928 -0
  339. package/dist/chunk-bYf1sBz5.d.cts +11 -0
  340. package/dist/chunk-bYf1sBz5.d.ts +11 -0
  341. package/dist/chunk-blfknWoM.d.cts +1926 -0
  342. package/dist/chunk-blqsohAb.js +113 -0
  343. package/dist/chunk-blqsohAb.js.map +1 -0
  344. package/dist/chunk-cDMCjodI.cjs +58 -0
  345. package/dist/chunk-cDMCjodI.cjs.map +1 -0
  346. package/dist/chunk-cWjE3qd6.cjs +10 -0
  347. package/dist/chunk-cWjE3qd6.cjs.map +1 -0
  348. package/dist/chunk-dfOgV3fu.js +26 -0
  349. package/dist/chunk-dfOgV3fu.js.map +1 -0
  350. package/dist/chunk-f9cTwUX1.cjs +125 -0
  351. package/dist/chunk-f9cTwUX1.cjs.map +1 -0
  352. package/dist/chunk-fHVYEZs4.cjs +28 -0
  353. package/dist/chunk-fHVYEZs4.cjs.map +1 -0
  354. package/dist/chunk-fWRUMgRI.js +22 -0
  355. package/dist/chunk-fWRUMgRI.js.map +1 -0
  356. package/dist/{types-BEv8V_8V.d.cts → chunk-fozLXfHY.d.cts} +8 -8
  357. package/dist/{types-BEv8V_8V.d.ts → chunk-fozLXfHY.d.ts} +8 -8
  358. package/dist/chunk-gWmB1l3A.cjs +3122 -0
  359. package/dist/chunk-gWmB1l3A.cjs.map +1 -0
  360. package/dist/chunk-gbj2R-_w.js +58 -0
  361. package/dist/chunk-gbj2R-_w.js.map +1 -0
  362. package/dist/chunk-iIWxsAXd.js +59 -0
  363. package/dist/chunk-iIWxsAXd.js.map +1 -0
  364. package/dist/chunk-lItIuOIS.cjs +137 -0
  365. package/dist/chunk-lItIuOIS.cjs.map +1 -0
  366. package/dist/chunk-m6Rh4PCe.cjs +798 -0
  367. package/dist/chunk-m6Rh4PCe.cjs.map +1 -0
  368. package/dist/chunk-o3IRANDf.cjs +99 -0
  369. package/dist/chunk-o3IRANDf.cjs.map +1 -0
  370. package/dist/chunk-obUcg3Sk.d.ts +808 -0
  371. package/dist/chunk-ohsf-6Rn.js +600 -0
  372. package/dist/chunk-ohsf-6Rn.js.map +1 -0
  373. package/dist/chunk-pBleU6Nv.js +3061 -0
  374. package/dist/chunk-pBleU6Nv.js.map +1 -0
  375. package/dist/chunk-px4e99cy.js +71 -0
  376. package/dist/chunk-px4e99cy.js.map +1 -0
  377. package/dist/chunk-qwYDLeXc.cjs +99 -0
  378. package/dist/chunk-qwYDLeXc.cjs.map +1 -0
  379. package/dist/chunk-rF_859Qk.cjs +101 -0
  380. package/dist/chunk-rF_859Qk.cjs.map +1 -0
  381. package/dist/chunk-rLJkqJ5j.d.ts +1475 -0
  382. package/dist/chunk-twQItIRg.cjs +338 -0
  383. package/dist/chunk-twQItIRg.cjs.map +1 -0
  384. package/dist/chunk-vnPrMVjY.js +10 -0
  385. package/dist/chunk-vnPrMVjY.js.map +1 -0
  386. package/dist/chunk-ws3bVwaS.d.ts +410 -0
  387. package/dist/chunk-xh3UkuVs.cjs +246 -0
  388. package/dist/chunk-xh3UkuVs.cjs.map +1 -0
  389. package/dist/chunk-yMzRr26E.js +153 -0
  390. package/dist/chunk-yMzRr26E.js.map +1 -0
  391. package/dist/collab/index.cjs +802 -1254
  392. package/dist/collab/index.cjs.map +1 -1
  393. package/dist/collab/index.d.cts +518 -544
  394. package/dist/collab/index.d.ts +518 -544
  395. package/dist/collab/index.js +797 -1252
  396. package/dist/collab/index.js.map +1 -1
  397. package/dist/data/index.cjs +39 -132
  398. package/dist/data/index.d.cts +6 -468
  399. package/dist/data/index.d.ts +6 -468
  400. package/dist/data/index.js +7 -15
  401. package/dist/editor/index.cjs +2631 -4424
  402. package/dist/editor/index.cjs.map +1 -1
  403. package/dist/editor/index.d.cts +10 -59
  404. package/dist/editor/index.d.ts +10 -59
  405. package/dist/editor/index.js +2619 -4403
  406. package/dist/editor/index.js.map +1 -1
  407. package/dist/errors/index.cjs +11 -28
  408. package/dist/errors/index.d.cts +2 -125
  409. package/dist/errors/index.d.ts +2 -125
  410. package/dist/errors/index.js +1 -3
  411. package/dist/geo/index.cjs +68 -232
  412. package/dist/geo/index.d.cts +6 -821
  413. package/dist/geo/index.d.ts +6 -821
  414. package/dist/geo/index.js +11 -15
  415. package/dist/i18n/fr/index.cjs +329 -334
  416. package/dist/i18n/fr/index.cjs.map +1 -1
  417. package/dist/i18n/fr/index.d.cts +3 -10
  418. package/dist/i18n/fr/index.d.ts +3 -10
  419. package/dist/i18n/fr/index.js +324 -332
  420. package/dist/i18n/fr/index.js.map +1 -1
  421. package/dist/i18n/index.cjs +434 -447
  422. package/dist/i18n/index.cjs.map +1 -1
  423. package/dist/i18n/index.d.cts +152 -111
  424. package/dist/i18n/index.d.ts +152 -111
  425. package/dist/i18n/index.js +420 -420
  426. package/dist/i18n/index.js.map +1 -1
  427. package/dist/icons/index.cjs +37 -116
  428. package/dist/icons/index.d.cts +4 -457
  429. package/dist/icons/index.d.ts +4 -457
  430. package/dist/icons/index.js +8 -11
  431. package/dist/index.cjs +515 -1867
  432. package/dist/index.cjs.map +1 -1
  433. package/dist/index.d.cts +44 -121
  434. package/dist/index.d.ts +44 -121
  435. package/dist/index.js +52 -65
  436. package/dist/index.js.map +1 -1
  437. package/dist/layers/index.cjs +83 -318
  438. package/dist/layers/index.d.cts +3 -1555
  439. package/dist/layers/index.d.ts +3 -1555
  440. package/dist/layers/index.js +5 -17
  441. package/dist/map-client/index.cjs +5 -4
  442. package/dist/map-client/index.d.cts +6 -1856
  443. package/dist/map-client/index.d.ts +6 -1856
  444. package/dist/map-client/index.js +0 -3
  445. package/dist/maplibre-worker.mjs +4 -4
  446. package/dist/navigation/index.cjs +584 -671
  447. package/dist/navigation/index.cjs.map +1 -1
  448. package/dist/navigation/index.d.cts +191 -272
  449. package/dist/navigation/index.d.ts +191 -272
  450. package/dist/navigation/index.js +579 -669
  451. package/dist/navigation/index.js.map +1 -1
  452. package/dist/profile/index.cjs +177 -675
  453. package/dist/profile/index.d.cts +8 -2086
  454. package/dist/profile/index.d.ts +8 -2086
  455. package/dist/profile/index.js +10 -18
  456. package/dist/seams/index.cjs +15 -39
  457. package/dist/seams/index.d.cts +4 -254
  458. package/dist/seams/index.d.ts +4 -254
  459. package/dist/seams/index.js +4 -6
  460. package/dist/search/index.cjs +39 -147
  461. package/dist/search/index.d.cts +6 -888
  462. package/dist/search/index.d.ts +6 -888
  463. package/dist/search/index.js +3 -14
  464. package/dist/style/index.cjs +34 -116
  465. package/dist/style/index.d.cts +5 -538
  466. package/dist/style/index.d.ts +5 -538
  467. package/dist/style/index.js +5 -11
  468. package/dist/testing/index.cjs +432 -617
  469. package/dist/testing/index.cjs.map +1 -1
  470. package/dist/testing/index.d.cts +61 -109
  471. package/dist/testing/index.d.ts +61 -109
  472. package/dist/testing/index.js +427 -615
  473. package/dist/testing/index.js.map +1 -1
  474. package/dist/timezone/index.cjs +1946 -752
  475. package/dist/timezone/index.cjs.map +1 -1
  476. package/dist/timezone/index.d.cts +4 -29
  477. package/dist/timezone/index.d.ts +4 -29
  478. package/dist/timezone/index.js +1941 -750
  479. package/dist/timezone/index.js.map +1 -1
  480. package/dist/units/index.cjs +29 -99
  481. package/dist/units/index.d.cts +3 -75
  482. package/dist/units/index.d.ts +3 -75
  483. package/dist/units/index.js +3 -6
  484. package/dist/video/index.cjs +1684 -2169
  485. package/dist/video/index.cjs.map +1 -1
  486. package/dist/video/index.d.cts +386 -413
  487. package/dist/video/index.d.ts +386 -413
  488. package/dist/video/index.js +1678 -2162
  489. package/dist/video/index.js.map +1 -1
  490. package/dist/view/index.cjs +6 -42
  491. package/dist/view/index.d.cts +3 -836
  492. package/dist/view/index.d.ts +3 -836
  493. package/dist/view/index.js +1 -34
  494. package/package.json +12 -12
  495. package/src/auth/rules/clientHeader.ts +1 -1
  496. package/src/camera/rules/modes.ts +38 -42
  497. package/src/camera/rules/routeContent.ts +1 -0
  498. package/src/collab/index.ts +1 -5
  499. package/src/compose/engines/mountayaMap.ts +16 -42
  500. package/src/compose/rules/developmentWarnings.ts +4 -3
  501. package/src/compose/rules/fitBox.ts +67 -0
  502. package/src/compose/rules/maplibreWorkerVersion.gen.ts +1 -1
  503. package/src/compose/rules/maxBounds.ts +5 -5
  504. package/src/compose/rules/types.ts +4 -11
  505. package/src/compose/rules/workerUrl.ts +41 -6
  506. package/src/editing/rules/engine.ts +4 -2
  507. package/src/editor/engines/viewClient.ts +8 -0
  508. package/src/editor/rules/contract.ts +1 -6
  509. package/src/errors/rules/errors.ts +1 -0
  510. package/src/geo/index.ts +1 -6
  511. package/src/i18n/index.ts +1 -0
  512. package/src/i18n/rules/dates.ts +165 -0
  513. package/src/index.ts +5 -24
  514. package/src/map-client/rules/mapClient.ts +4 -2
  515. package/src/profile/rules/scale.ts +1 -5
  516. package/src/profile/rules/waypointCard.ts +8 -11
  517. package/src/search/index.ts +3 -18
  518. package/src/video/index.ts +1 -1
  519. package/src/video/profileOverlay/rules/contract.ts +1 -3
  520. package/src/video/rules/videoEncoder.ts +1 -1
  521. package/dist/accentColor-GNKBD2CW.js +0 -4
  522. package/dist/accentColor-GNKBD2CW.js.map +0 -1
  523. package/dist/accentColor-VX2JSMGE.cjs +0 -17
  524. package/dist/accentColor-VX2JSMGE.cjs.map +0 -1
  525. package/dist/chunk-23PFRRB6.js +0 -3
  526. package/dist/chunk-23PFRRB6.js.map +0 -1
  527. package/dist/chunk-2GI5SAH2.js +0 -71
  528. package/dist/chunk-2GI5SAH2.js.map +0 -1
  529. package/dist/chunk-2MQK6A74.js +0 -39
  530. package/dist/chunk-2MQK6A74.js.map +0 -1
  531. package/dist/chunk-2RE7R4LD.js +0 -73
  532. package/dist/chunk-2RE7R4LD.js.map +0 -1
  533. package/dist/chunk-3JZQKN4O.js +0 -6
  534. package/dist/chunk-3JZQKN4O.js.map +0 -1
  535. package/dist/chunk-3NDXVUUI.js +0 -50
  536. package/dist/chunk-3NDXVUUI.js.map +0 -1
  537. package/dist/chunk-3R4GFTUM.cjs +0 -59
  538. package/dist/chunk-3R4GFTUM.cjs.map +0 -1
  539. package/dist/chunk-3RVUQ6JN.cjs +0 -22
  540. package/dist/chunk-3RVUQ6JN.cjs.map +0 -1
  541. package/dist/chunk-4F6BJMJC.cjs +0 -49
  542. package/dist/chunk-4F6BJMJC.cjs.map +0 -1
  543. package/dist/chunk-4NWQD4BX.js +0 -132
  544. package/dist/chunk-4NWQD4BX.js.map +0 -1
  545. package/dist/chunk-5K2MH3R6.js +0 -10
  546. package/dist/chunk-5K2MH3R6.js.map +0 -1
  547. package/dist/chunk-6ACRNQQQ.cjs +0 -8
  548. package/dist/chunk-6ACRNQQQ.cjs.map +0 -1
  549. package/dist/chunk-6D26E3IA.js +0 -66
  550. package/dist/chunk-6D26E3IA.js.map +0 -1
  551. package/dist/chunk-6ESAW35P.cjs +0 -80
  552. package/dist/chunk-6ESAW35P.cjs.map +0 -1
  553. package/dist/chunk-6LIW2A5M.cjs +0 -1176
  554. package/dist/chunk-6LIW2A5M.cjs.map +0 -1
  555. package/dist/chunk-6OTTWVCA.js +0 -57
  556. package/dist/chunk-6OTTWVCA.js.map +0 -1
  557. package/dist/chunk-6VROJ4UG.js +0 -862
  558. package/dist/chunk-6VROJ4UG.js.map +0 -1
  559. package/dist/chunk-6Y7FTGO4.js +0 -23
  560. package/dist/chunk-6Y7FTGO4.js.map +0 -1
  561. package/dist/chunk-75I4CG64.js +0 -104
  562. package/dist/chunk-75I4CG64.js.map +0 -1
  563. package/dist/chunk-7CUBXHAH.cjs +0 -14
  564. package/dist/chunk-7CUBXHAH.cjs.map +0 -1
  565. package/dist/chunk-7GTCURVY.js +0 -52
  566. package/dist/chunk-7GTCURVY.js.map +0 -1
  567. package/dist/chunk-7IWOL6AM.cjs +0 -100
  568. package/dist/chunk-7IWOL6AM.cjs.map +0 -1
  569. package/dist/chunk-7QN7M667.cjs +0 -151
  570. package/dist/chunk-7QN7M667.cjs.map +0 -1
  571. package/dist/chunk-A6KQDKLM.cjs +0 -1197
  572. package/dist/chunk-A6KQDKLM.cjs.map +0 -1
  573. package/dist/chunk-A77EA67G.js +0 -354
  574. package/dist/chunk-A77EA67G.js.map +0 -1
  575. package/dist/chunk-AFKOABJ4.cjs +0 -7194
  576. package/dist/chunk-AFKOABJ4.cjs.map +0 -1
  577. package/dist/chunk-AG6JV5Z2.cjs +0 -183
  578. package/dist/chunk-AG6JV5Z2.cjs.map +0 -1
  579. package/dist/chunk-APBK7NMS.js +0 -30
  580. package/dist/chunk-APBK7NMS.js.map +0 -1
  581. package/dist/chunk-AWO5YA7A.cjs +0 -33
  582. package/dist/chunk-AWO5YA7A.cjs.map +0 -1
  583. package/dist/chunk-AZATU6QW.js +0 -108
  584. package/dist/chunk-AZATU6QW.js.map +0 -1
  585. package/dist/chunk-BD2U3WST.cjs +0 -623
  586. package/dist/chunk-BD2U3WST.cjs.map +0 -1
  587. package/dist/chunk-BHBEOU6L.cjs +0 -65
  588. package/dist/chunk-BHBEOU6L.cjs.map +0 -1
  589. package/dist/chunk-CNOSNYNE.js +0 -8
  590. package/dist/chunk-CNOSNYNE.js.map +0 -1
  591. package/dist/chunk-CW3EFR4O.js +0 -12
  592. package/dist/chunk-CW3EFR4O.js.map +0 -1
  593. package/dist/chunk-DASVRNBK.js +0 -7187
  594. package/dist/chunk-DASVRNBK.js.map +0 -1
  595. package/dist/chunk-DJ6LCKYP.js +0 -42
  596. package/dist/chunk-DJ6LCKYP.js.map +0 -1
  597. package/dist/chunk-E5FHQAIO.cjs +0 -45
  598. package/dist/chunk-E5FHQAIO.cjs.map +0 -1
  599. package/dist/chunk-EOML5OTY.cjs +0 -360
  600. package/dist/chunk-EOML5OTY.cjs.map +0 -1
  601. package/dist/chunk-EP5CASHL.js +0 -613
  602. package/dist/chunk-EP5CASHL.js.map +0 -1
  603. package/dist/chunk-EP5OEEVZ.cjs +0 -14
  604. package/dist/chunk-EP5OEEVZ.cjs.map +0 -1
  605. package/dist/chunk-EUXI3FGQ.js +0 -150
  606. package/dist/chunk-EUXI3FGQ.js.map +0 -1
  607. package/dist/chunk-EWFSHCOS.js +0 -40
  608. package/dist/chunk-EWFSHCOS.js.map +0 -1
  609. package/dist/chunk-EX2C5K2T.cjs +0 -25
  610. package/dist/chunk-EX2C5K2T.cjs.map +0 -1
  611. package/dist/chunk-FEXWDQIZ.cjs +0 -8
  612. package/dist/chunk-FEXWDQIZ.cjs.map +0 -1
  613. package/dist/chunk-FEYBFY7H.cjs +0 -358
  614. package/dist/chunk-FEYBFY7H.cjs.map +0 -1
  615. package/dist/chunk-FRGAV6N6.cjs +0 -34
  616. package/dist/chunk-FRGAV6N6.cjs.map +0 -1
  617. package/dist/chunk-G5DHP5VF.js +0 -6
  618. package/dist/chunk-G5DHP5VF.js.map +0 -1
  619. package/dist/chunk-G5W2UHV2.js +0 -99
  620. package/dist/chunk-G5W2UHV2.js.map +0 -1
  621. package/dist/chunk-G7OP7O2C.cjs +0 -39
  622. package/dist/chunk-G7OP7O2C.cjs.map +0 -1
  623. package/dist/chunk-GE6CFCAM.cjs +0 -25
  624. package/dist/chunk-GE6CFCAM.cjs.map +0 -1
  625. package/dist/chunk-GIFALLHI.cjs +0 -111
  626. package/dist/chunk-GIFALLHI.cjs.map +0 -1
  627. package/dist/chunk-GLFET5GM.js +0 -129
  628. package/dist/chunk-GLFET5GM.js.map +0 -1
  629. package/dist/chunk-GQ6UFPFM.js +0 -22
  630. package/dist/chunk-GQ6UFPFM.js.map +0 -1
  631. package/dist/chunk-GQJWVMXS.js +0 -129
  632. package/dist/chunk-GQJWVMXS.js.map +0 -1
  633. package/dist/chunk-GVVJPUKC.js +0 -80
  634. package/dist/chunk-GVVJPUKC.js.map +0 -1
  635. package/dist/chunk-GZ2HOCQ2.cjs +0 -134
  636. package/dist/chunk-GZ2HOCQ2.cjs.map +0 -1
  637. package/dist/chunk-HCBOHXWP.js +0 -37
  638. package/dist/chunk-HCBOHXWP.js.map +0 -1
  639. package/dist/chunk-IBQJDVHF.cjs +0 -281
  640. package/dist/chunk-IBQJDVHF.cjs.map +0 -1
  641. package/dist/chunk-ISLB6Y5Q.cjs +0 -106
  642. package/dist/chunk-ISLB6Y5Q.cjs.map +0 -1
  643. package/dist/chunk-J55CRR4F.js +0 -105
  644. package/dist/chunk-J55CRR4F.js.map +0 -1
  645. package/dist/chunk-JBG6Z6MQ.cjs +0 -28
  646. package/dist/chunk-JBG6Z6MQ.cjs.map +0 -1
  647. package/dist/chunk-K3RQOZRU.js +0 -61
  648. package/dist/chunk-K3RQOZRU.js.map +0 -1
  649. package/dist/chunk-KDJYS4GB.cjs +0 -703
  650. package/dist/chunk-KDJYS4GB.cjs.map +0 -1
  651. package/dist/chunk-KMCAHUZM.cjs +0 -4
  652. package/dist/chunk-KMCAHUZM.cjs.map +0 -1
  653. package/dist/chunk-KUCBNPC6.js +0 -87
  654. package/dist/chunk-KUCBNPC6.js.map +0 -1
  655. package/dist/chunk-KV6UE5A4.js +0 -50
  656. package/dist/chunk-KV6UE5A4.js.map +0 -1
  657. package/dist/chunk-L6TZ2HQR.cjs +0 -18
  658. package/dist/chunk-L6TZ2HQR.cjs.map +0 -1
  659. package/dist/chunk-L7QHHGG2.cjs +0 -141
  660. package/dist/chunk-L7QHHGG2.cjs.map +0 -1
  661. package/dist/chunk-LHK3Y2AL.js +0 -271
  662. package/dist/chunk-LHK3Y2AL.js.map +0 -1
  663. package/dist/chunk-LO5RYRBH.cjs +0 -6317
  664. package/dist/chunk-LO5RYRBH.cjs.map +0 -1
  665. package/dist/chunk-LS5SJMUO.cjs +0 -194
  666. package/dist/chunk-LS5SJMUO.cjs.map +0 -1
  667. package/dist/chunk-LUGTMZFN.cjs +0 -42
  668. package/dist/chunk-LUGTMZFN.cjs.map +0 -1
  669. package/dist/chunk-LVUQU6D5.js +0 -32
  670. package/dist/chunk-LVUQU6D5.js.map +0 -1
  671. package/dist/chunk-M2QRC2GZ.js +0 -166
  672. package/dist/chunk-M2QRC2GZ.js.map +0 -1
  673. package/dist/chunk-M6QJYQIM.cjs +0 -53
  674. package/dist/chunk-M6QJYQIM.cjs.map +0 -1
  675. package/dist/chunk-MGCPH5EO.js +0 -12
  676. package/dist/chunk-MGCPH5EO.js.map +0 -1
  677. package/dist/chunk-MLVUWEZR.cjs +0 -474
  678. package/dist/chunk-MLVUWEZR.cjs.map +0 -1
  679. package/dist/chunk-MTAMJMZL.cjs +0 -707
  680. package/dist/chunk-MTAMJMZL.cjs.map +0 -1
  681. package/dist/chunk-MXL5AT3N.js +0 -48
  682. package/dist/chunk-MXL5AT3N.js.map +0 -1
  683. package/dist/chunk-MYEQSESM.cjs +0 -75
  684. package/dist/chunk-MYEQSESM.cjs.map +0 -1
  685. package/dist/chunk-N3VPF6ZD.js +0 -427
  686. package/dist/chunk-N3VPF6ZD.js.map +0 -1
  687. package/dist/chunk-N6VUAIGI.js +0 -7
  688. package/dist/chunk-N6VUAIGI.js.map +0 -1
  689. package/dist/chunk-N6XRLUN6.js +0 -6286
  690. package/dist/chunk-N6XRLUN6.js.map +0 -1
  691. package/dist/chunk-NOGDOZIT.cjs +0 -114
  692. package/dist/chunk-NOGDOZIT.cjs.map +0 -1
  693. package/dist/chunk-NUWXEISH.cjs +0 -10
  694. package/dist/chunk-NUWXEISH.cjs.map +0 -1
  695. package/dist/chunk-NZCZHXYN.cjs +0 -161
  696. package/dist/chunk-NZCZHXYN.cjs.map +0 -1
  697. package/dist/chunk-ODROSWQX.cjs +0 -53
  698. package/dist/chunk-ODROSWQX.cjs.map +0 -1
  699. package/dist/chunk-OE36AYKG.cjs +0 -82
  700. package/dist/chunk-OE36AYKG.cjs.map +0 -1
  701. package/dist/chunk-OLON7MO6.cjs +0 -437
  702. package/dist/chunk-OLON7MO6.cjs.map +0 -1
  703. package/dist/chunk-PBUOR2IT.js +0 -277
  704. package/dist/chunk-PBUOR2IT.js.map +0 -1
  705. package/dist/chunk-PC2ELXFF.cjs +0 -225
  706. package/dist/chunk-PC2ELXFF.cjs.map +0 -1
  707. package/dist/chunk-PCSGXLOC.js +0 -71
  708. package/dist/chunk-PCSGXLOC.js.map +0 -1
  709. package/dist/chunk-PFNMP6FQ.js +0 -56
  710. package/dist/chunk-PFNMP6FQ.js.map +0 -1
  711. package/dist/chunk-PIWSZTIP.js +0 -690
  712. package/dist/chunk-PIWSZTIP.js.map +0 -1
  713. package/dist/chunk-PKWHJ2GI.js +0 -136
  714. package/dist/chunk-PKWHJ2GI.js.map +0 -1
  715. package/dist/chunk-PLMVBX2A.cjs +0 -76
  716. package/dist/chunk-PLMVBX2A.cjs.map +0 -1
  717. package/dist/chunk-PM3XCD2G.cjs +0 -113
  718. package/dist/chunk-PM3XCD2G.cjs.map +0 -1
  719. package/dist/chunk-QAL4GZO7.cjs +0 -143
  720. package/dist/chunk-QAL4GZO7.cjs.map +0 -1
  721. package/dist/chunk-QDB2SEA2.js +0 -74
  722. package/dist/chunk-QDB2SEA2.js.map +0 -1
  723. package/dist/chunk-QOV7UNUN.js +0 -25
  724. package/dist/chunk-QOV7UNUN.js.map +0 -1
  725. package/dist/chunk-QQUWYLSF.cjs +0 -50
  726. package/dist/chunk-QQUWYLSF.cjs.map +0 -1
  727. package/dist/chunk-QUMBH3U4.cjs +0 -9
  728. package/dist/chunk-QUMBH3U4.cjs.map +0 -1
  729. package/dist/chunk-R4KA7OFQ.js +0 -12
  730. package/dist/chunk-R4KA7OFQ.js.map +0 -1
  731. package/dist/chunk-RBSGAZQQ.js +0 -17
  732. package/dist/chunk-RBSGAZQQ.js.map +0 -1
  733. package/dist/chunk-RM5YJWZI.js +0 -46
  734. package/dist/chunk-RM5YJWZI.js.map +0 -1
  735. package/dist/chunk-ROKNKXA4.cjs +0 -8
  736. package/dist/chunk-ROKNKXA4.cjs.map +0 -1
  737. package/dist/chunk-RQG6D546.cjs +0 -75
  738. package/dist/chunk-RQG6D546.cjs.map +0 -1
  739. package/dist/chunk-SG4YDD5L.cjs +0 -74
  740. package/dist/chunk-SG4YDD5L.cjs.map +0 -1
  741. package/dist/chunk-SNRCA7EO.js +0 -56
  742. package/dist/chunk-SNRCA7EO.js.map +0 -1
  743. package/dist/chunk-SO75R4WW.cjs +0 -22
  744. package/dist/chunk-SO75R4WW.cjs.map +0 -1
  745. package/dist/chunk-SP34NHFI.js +0 -45
  746. package/dist/chunk-SP34NHFI.js.map +0 -1
  747. package/dist/chunk-SSKSSBWJ.cjs +0 -179
  748. package/dist/chunk-SSKSSBWJ.cjs.map +0 -1
  749. package/dist/chunk-TB5663C2.js +0 -1108
  750. package/dist/chunk-TB5663C2.js.map +0 -1
  751. package/dist/chunk-TGH4NRES.js +0 -220
  752. package/dist/chunk-TGH4NRES.js.map +0 -1
  753. package/dist/chunk-TJ6ZPNID.js +0 -189
  754. package/dist/chunk-TJ6ZPNID.js.map +0 -1
  755. package/dist/chunk-U45T35N2.cjs +0 -90
  756. package/dist/chunk-U45T35N2.cjs.map +0 -1
  757. package/dist/chunk-UKVOPEZ2.js +0 -442
  758. package/dist/chunk-UKVOPEZ2.js.map +0 -1
  759. package/dist/chunk-UTB4NROA.cjs +0 -887
  760. package/dist/chunk-UTB4NROA.cjs.map +0 -1
  761. package/dist/chunk-UTW33B5V.js +0 -6
  762. package/dist/chunk-UTW33B5V.js.map +0 -1
  763. package/dist/chunk-UYUBSD2V.cjs +0 -33
  764. package/dist/chunk-UYUBSD2V.cjs.map +0 -1
  765. package/dist/chunk-V3JEP5AG.cjs +0 -59
  766. package/dist/chunk-V3JEP5AG.cjs.map +0 -1
  767. package/dist/chunk-VFAGJXHR.js +0 -18
  768. package/dist/chunk-VFAGJXHR.js.map +0 -1
  769. package/dist/chunk-VMEE57E5.cjs +0 -58
  770. package/dist/chunk-VMEE57E5.cjs.map +0 -1
  771. package/dist/chunk-VQVBEX3Y.cjs +0 -113
  772. package/dist/chunk-VQVBEX3Y.cjs.map +0 -1
  773. package/dist/chunk-VZDXX7TT.cjs +0 -64
  774. package/dist/chunk-VZDXX7TT.cjs.map +0 -1
  775. package/dist/chunk-WE5ZTI4D.js +0 -346
  776. package/dist/chunk-WE5ZTI4D.js.map +0 -1
  777. package/dist/chunk-WEFUVABP.js +0 -19
  778. package/dist/chunk-WEFUVABP.js.map +0 -1
  779. package/dist/chunk-WMU4LRKC.js +0 -28
  780. package/dist/chunk-WMU4LRKC.js.map +0 -1
  781. package/dist/chunk-WQ24RRHL.cjs +0 -354
  782. package/dist/chunk-WQ24RRHL.cjs.map +0 -1
  783. package/dist/chunk-WW4CGS7G.cjs +0 -26
  784. package/dist/chunk-WW4CGS7G.cjs.map +0 -1
  785. package/dist/chunk-WXE5WCTM.js +0 -1144
  786. package/dist/chunk-WXE5WCTM.js.map +0 -1
  787. package/dist/chunk-X23BGIYA.cjs +0 -37
  788. package/dist/chunk-X23BGIYA.cjs.map +0 -1
  789. package/dist/chunk-XEW4FTR2.js +0 -98
  790. package/dist/chunk-XEW4FTR2.js.map +0 -1
  791. package/dist/chunk-XIOI4IYW.js +0 -167
  792. package/dist/chunk-XIOI4IYW.js.map +0 -1
  793. package/dist/chunk-XLVPJ37V.cjs +0 -44
  794. package/dist/chunk-XLVPJ37V.cjs.map +0 -1
  795. package/dist/chunk-XOHAXXZA.cjs +0 -51
  796. package/dist/chunk-XOHAXXZA.cjs.map +0 -1
  797. package/dist/chunk-Y4NRIHK6.cjs +0 -313
  798. package/dist/chunk-Y4NRIHK6.cjs.map +0 -1
  799. package/dist/chunk-Y4YMMKL3.js +0 -23
  800. package/dist/chunk-Y4YMMKL3.js.map +0 -1
  801. package/dist/chunk-YJNYBVE3.cjs +0 -14
  802. package/dist/chunk-YJNYBVE3.cjs.map +0 -1
  803. package/dist/chunk-Z762QNQP.cjs +0 -60
  804. package/dist/chunk-Z762QNQP.cjs.map +0 -1
  805. package/dist/chunk-ZG5KMBOF.js +0 -669
  806. package/dist/chunk-ZG5KMBOF.js.map +0 -1
  807. package/dist/chunk-ZKONQEFA.js +0 -344
  808. package/dist/chunk-ZKONQEFA.js.map +0 -1
  809. package/dist/chunk-ZR5X7QMH.js +0 -39
  810. package/dist/chunk-ZR5X7QMH.js.map +0 -1
  811. package/dist/chunk-ZW4BJQ26.js +0 -84
  812. package/dist/chunk-ZW4BJQ26.js.map +0 -1
  813. package/dist/climbs-BhlWuu0x.d.ts +0 -70
  814. package/dist/climbs-DgBFwySV.d.cts +0 -70
  815. package/dist/data/index.cjs.map +0 -1
  816. package/dist/data/index.js.map +0 -1
  817. package/dist/errors/index.cjs.map +0 -1
  818. package/dist/errors/index.js.map +0 -1
  819. package/dist/geo/index.cjs.map +0 -1
  820. package/dist/geo/index.js.map +0 -1
  821. package/dist/icons/index.cjs.map +0 -1
  822. package/dist/icons/index.js.map +0 -1
  823. package/dist/itinerary-Dp2ZnqgD.d.cts +0 -178
  824. package/dist/itinerary-Dp2ZnqgD.d.ts +0 -178
  825. package/dist/layers/index.cjs.map +0 -1
  826. package/dist/layers/index.js.map +0 -1
  827. package/dist/map-client/index.cjs.map +0 -1
  828. package/dist/map-client/index.js.map +0 -1
  829. package/dist/markerSprite-DGBQF6PO.cjs +0 -49
  830. package/dist/markerSprite-DGBQF6PO.cjs.map +0 -1
  831. package/dist/markerSprite-DZLTR6F6.js +0 -8
  832. package/dist/markerSprite-DZLTR6F6.js.map +0 -1
  833. package/dist/mountayaMap-C9mxRFib.d.cts +0 -3277
  834. package/dist/mountayaMap-DgnlQ2fE.d.ts +0 -3277
  835. package/dist/paint-BgUcj8l7.d.cts +0 -118
  836. package/dist/paint-Dx_qGNE_.d.ts +0 -118
  837. package/dist/profile/index.cjs.map +0 -1
  838. package/dist/profile/index.js.map +0 -1
  839. package/dist/seams/index.cjs.map +0 -1
  840. package/dist/seams/index.js.map +0 -1
  841. package/dist/search/index.cjs.map +0 -1
  842. package/dist/search/index.js.map +0 -1
  843. package/dist/searchHighlight-DFE7LVIL.cjs +0 -33
  844. package/dist/searchHighlight-DFE7LVIL.cjs.map +0 -1
  845. package/dist/searchHighlight-MHAQZVWG.js +0 -12
  846. package/dist/searchHighlight-MHAQZVWG.js.map +0 -1
  847. package/dist/strings-30RSdIat.d.cts +0 -552
  848. package/dist/strings-DPTIbzT5.d.ts +0 -552
  849. package/dist/stripeImage-CQUXM2YI.js +0 -14
  850. package/dist/stripeImage-CQUXM2YI.js.map +0 -1
  851. package/dist/stripeImage-R43OPA6U.cjs +0 -39
  852. package/dist/stripeImage-R43OPA6U.cjs.map +0 -1
  853. package/dist/style/index.cjs.map +0 -1
  854. package/dist/style/index.js.map +0 -1
  855. package/dist/types-B034JMjl.d.ts +0 -973
  856. package/dist/types-B2NDLxQA.d.cts +0 -21
  857. package/dist/types-B2NDLxQA.d.ts +0 -21
  858. package/dist/types-C8aX5KMU.d.cts +0 -973
  859. package/dist/units/index.cjs.map +0 -1
  860. package/dist/units/index.js.map +0 -1
  861. package/dist/view/index.cjs.map +0 -1
  862. package/dist/view/index.js.map +0 -1
@@ -1,1555 +1,3 @@
1
- import { RestSchema, DirectionsResult, IsochronesResult, DataSchema, MatrixResult, GeocodeResult, PoisResult, SuggestionsResult } from '@mountaya/client';
2
- import { ElevationSource, ElevationTile, TerrainReading } from '../geo/index.cjs';
3
- import { FeatureCollection, LineString, Point } from 'geojson';
4
- export { L as LayerRank, P as POI_SOURCE_LAYER_NAMES, p as poiSourceLayers, r as rankForTileLayer, t as tileSourceLayerRanks } from '../order-BZkUwMou.cjs';
5
- import '../types-B2NDLxQA.cjs';
6
-
7
- /**
8
- * LayersSelectionTarget is the map a {@link LayersSelectionEngine} drives: the layers manifest,
9
- * the terrain, overlay and enrichment slots a selection draws into, and the instant it draws the
10
- * time-aware overlays for.
11
- *
12
- * Structural, so `MountayaMap` satisfies it without being named and a double satisfies it with no
13
- * renderer behind it. That is also what keeps `@mountaya/elements/layers` free of `maplibre-gl`:
14
- * the entry names the members a selection calls, never the map class. The test beside this
15
- * module asserts that the map satisfies it, so a slot signature that drifts fails there.
16
- */
17
- interface LayersSelectionTarget {
18
- /** Reads the layers manifest: every terrain and overlay the credential may draw. */
19
- readonly loadLayers: () => Promise<RestSchema.Layers>;
20
- /** Switches the base map to the terrain with this slug. */
21
- readonly setTerrain: (slug: string) => Promise<void>;
22
- /** Draws the classic overlay with this slug in place of the one drawn before; null clears it. */
23
- readonly setOverlay: (slug: string | null) => Promise<void>;
24
- /** Draws the enrichment overlay with this slug on top of whatever is drawn. */
25
- readonly addEnrichment: (slug: string) => Promise<void>;
26
- /** Removes the enrichment overlay with this slug. */
27
- readonly removeEnrichment: (slug: string) => void;
28
- /**
29
- * Pins the instant the map draws the classic overlay the server stamps for, or none with null,
30
- * which draws the catalogue's own addresses, the server's present.
31
- */
32
- readonly setInstant: (instant: Date | null) => Promise<void>;
33
- /**
34
- * Reports the slug of the catalogue terrain the map shows, or null when it shows none: before
35
- * one is up, or under a style of the host's own. Read once per manifest, as it lands, and
36
- * never to drive the map.
37
- *
38
- * Optional, because a target with no way to report a terrain is a target that reports none:
39
- * the selection then states no terrain until one is selected.
40
- */
41
- readonly getTerrain?: (() => string | null) | undefined;
42
- }
43
- /** LayersSelectionEngineOptions names the map a {@link LayersSelectionEngine} drives. */
44
- interface LayersSelectionEngineOptions {
45
- /**
46
- * The map the selection draws into, or null while there is none. Without a map the commands
47
- * still record what was asked for and drive nothing, and no manifest is read.
48
- */
49
- readonly map: LayersSelectionTarget | null;
50
- }
51
- /**
52
- * LayersSelectionSnapshot is what a {@link LayersSelectionEngine} holds: the manifest, the
53
- * catalogue split into the categories that replace and the ones that stack, the current
54
- * selection, and the instant pinned.
55
- */
56
- interface LayersSelectionSnapshot {
57
- /** The manifest, or null until it has been read from the current map. */
58
- readonly manifest: RestSchema.Layers | null;
59
- /** The manifest's terrains, in its order; empty until it has been read. */
60
- readonly terrains: readonly RestSchema.Terrain[];
61
- /** The categories whose overlays replace one another, in the manifest's order. */
62
- readonly classicCategories: readonly RestSchema.CategoryOverlays[];
63
- /** The categories whose overlays stack, in the manifest's order. */
64
- readonly enrichmentCategories: readonly RestSchema.CategoryOverlays[];
65
- /**
66
- * The selected terrain's slug, or null while none is selected. When the manifest is read and
67
- * nothing is selected yet, it states the terrain the map reports it shows
68
- * ({@link LayersSelectionTarget.getTerrain}), and stays null for a map that reports none, so a
69
- * picker marks what the map draws and never a guess; a terrain selected earlier is kept.
70
- */
71
- readonly terrain: string | null;
72
- /** The selected classic overlay's slug, or null while none is selected. */
73
- readonly overlay: string | null;
74
- /** The selected enrichments' slugs, in the order they were turned on. */
75
- readonly enrichments: readonly string[];
76
- /**
77
- * The instant pinned for the time-aware overlays, or null with none pinned, which is the clock's
78
- * reading. A replaced map starts with none.
79
- */
80
- readonly instant: Date | null;
81
- /**
82
- * The outcome of the latest manifest read or command to settle: the failure it met, or null
83
- * once one succeeds, and null while none has settled since the current map was configured. A
84
- * failure is the `Error` the map rejected or threw with, or, for a failure that is no `Error`,
85
- * a `MountayaElementsRejectionError` that names what failed and holds the value as its `cause`.
86
- */
87
- readonly error: Error | null;
88
- }
89
- /**
90
- * LayersSelectionEngine is the terrain, overlay and enrichment selection behind a layers picker:
91
- * it reads the manifest, holds what the user asked for, and drives the map's slots by the
92
- * catalogue's composition rules.
93
- *
94
- * - **Classic overlays are exclusive.** Slope, snow depth and avalanche risk each repaint the same
95
- * ground, so selecting one replaces the last, and a second press on the selected one clears it.
96
- * - **Enrichment overlays stack.** Hillshade under a slope overlay under an itinerary is a
97
- * legitimate composition, so each toggles on its own.
98
- * - **One instant is pinned, or none.** The map draws the classic overlay the server stamps for
99
- * the instant pinned last, and the pin stands through every other command.
100
- *
101
- * Which category is which is {@link isEnrichmentCategory}'s answer, read once per manifest.
102
- *
103
- * The selection is never mirrored into the map or back. The map is the source of truth for what
104
- * is drawn and this engine for what was asked for, so a command the map refuses keeps its
105
- * selection and reports the refusal as the snapshot's `error`: the two disagree honestly rather
106
- * than a picker snapping back with no explanation. A command drives the map at once whether or
107
- * not anything subscribes. Nothing here throws: a map that throws rather than rejects, on a
108
- * command or on the manifest read, is reported through `error` the same way.
109
- *
110
- * Every listener is told of every change. One that throws stops neither the engine nor the
111
- * listeners after it, and its error is no outcome of a command: it is thrown again on a
112
- * microtask, as the program's own uncaught error, and never reaches `error`.
113
- *
114
- * The lifecycle is the listeners, as for every engine here. Constructing one reads nothing; the
115
- * first subscriber reads the manifest and states the terrain the map reports it shows, without
116
- * asking the map to switch to it; the last unsubscribe parks, and an answer landing while parked
117
- * reaches no snapshot. A resume joins the read already made, so React's StrictMode, which
118
- * subscribes, unsubscribes and subscribes again, costs one read. A failed read is not kept: the
119
- * next resume asks again, and so does the same map handed to
120
- * {@link LayersSelectionEngine.configure} again.
121
- * {@link LayersSelectionEngine.dispose} is the latch, for an owner that is not a component.
122
- *
123
- * A replaced map starts a fresh selection: it draws nothing the previous one did, so an overlay
124
- * still marked selected would read as drawn, and the next press on it would clear rather than
125
- * draw. A manifest or a refusal owed to an earlier selection never lands, even when a later
126
- * replacement brings the same map back.
127
- *
128
- * Nothing here keeps time, so the engine takes no clock and no debounce.
129
- *
130
- * @example
131
- * ```ts
132
- * import {
133
- * LayersSelectionEngine,
134
- * type LayersSelectionSnapshot,
135
- * type LayersSelectionTarget,
136
- * } from "@mountaya/elements/layers";
137
- *
138
- * declare const map: LayersSelectionTarget;
139
- * declare const render: (snapshot: LayersSelectionSnapshot) => void;
140
- *
141
- * const layers = new LayersSelectionEngine({ map });
142
- * const release = layers.subscribe(() => render(layers.getSnapshot()));
143
- *
144
- * layers.setOverlay("slopes");
145
- * layers.toggleEnrichment("hillshade");
146
- * release();
147
- * ```
148
- */
149
- declare class LayersSelectionEngine {
150
- private map;
151
- private snapshot;
152
- private readonly listeners;
153
- /**
154
- * The manifest read made for the current map, kept so a resume joins it rather than reading
155
- * twice. Cleared when it fails and when the map is replaced.
156
- */
157
- private manifestRead;
158
- /**
159
- * The token of the resume whose read may still land. A park or a replaced map clears it, which
160
- * is what keeps an answer nobody is waiting for out of the snapshot.
161
- */
162
- private watching;
163
- /**
164
- * The token of the selection a command is issued under. Every fresh selection replaces it, so a
165
- * refusal owed to an earlier one is told apart even when the same map comes back.
166
- */
167
- private selection;
168
- /** Whether nobody is watching. A parked engine reads nothing. */
169
- private parked;
170
- private disposed;
171
- /**
172
- * Constructing one holds the map and does nothing else. A binding constructs during a render
173
- * its framework is free to throw away, and a constructor that read the manifest would leave the
174
- * discarded copy reading. Omitted options mean no map.
175
- */
176
- constructor(options?: LayersSelectionEngineOptions);
177
- /** getSnapshot returns the current selection, by reference and stable between changes. */
178
- getSnapshot(): LayersSelectionSnapshot;
179
- /**
180
- * subscribe registers a listener for every change of the snapshot, and returns its own
181
- * unsubscribe.
182
- *
183
- * The first listener resumes the engine and the last one leaving parks it, the one lifecycle a
184
- * component can express correctly: React tears an effect down and sets it up again with the same
185
- * object under StrictMode, so a latch here would leave a live picker bound to a dead engine. A
186
- * binding hands its framework a STABLE `subscribe`; a fresh closure per render parks and resumes
187
- * on every render.
188
- */
189
- subscribe(listener: () => void): () => void;
190
- /**
191
- * configure replaces the map the selection drives.
192
- *
193
- * The map it drives already changes nothing, except that, while anything subscribes, it is asked
194
- * for its manifest again where its read failed: handing the map again is how a failed read is
195
- * retried, and the failure stays the snapshot's `error` until the new read settles. A binding
196
- * that hands the map on every render retries a failed read on each one. A different map, null
197
- * included, starts a fresh selection and, while anything subscribes, reads its manifest.
198
- */
199
- configure(options: LayersSelectionEngineOptions): void;
200
- /**
201
- * setTerrain selects the terrain with this slug and switches the map's base to it. The map is
202
- * asked even for the terrain already selected, which is how a switch it refused is retried.
203
- */
204
- setTerrain(slug: string): void;
205
- /**
206
- * setOverlay selects the classic overlay with this slug, replacing the one selected before, and
207
- * draws it. Passing the slug already selected clears it, which is what a second press means;
208
- * null clears whatever is selected.
209
- */
210
- setOverlay(slug: string | null): void;
211
- /**
212
- * toggleEnrichment turns the enrichment overlay with this slug on when it is off and off when it
213
- * is on, leaving every other overlay as it is.
214
- */
215
- toggleEnrichment(slug: string): void;
216
- /**
217
- * setInstant pins the instant the map draws the time-aware overlays for, and asks the map for it
218
- * at once; null pins none, which is the clock's reading. An Invalid Date names no instant and
219
- * pins none.
220
- *
221
- * The map is asked even for the instant already pinned, which is how a pin it refused is
222
- * retried, and the pin stands through every other command until the map is replaced. Without a
223
- * map the pin is held and drives nothing, so a selection with no map is a store of the time a
224
- * host drives its own map from.
225
- */
226
- setInstant(instant: Date | null): void;
227
- /**
228
- * dispose drops every listener and every answer still to land, for good.
229
- *
230
- * Idempotent, and every call after it is a no-op rather than an error: an owner torn down
231
- * mid-press should not have to guard the calls it already queued.
232
- */
233
- dispose(): void;
234
- /**
235
- * resume reads the current map's manifest when the snapshot does not hold it yet, joining the
236
- * read already made for this map when there is one.
237
- */
238
- private resume;
239
- /**
240
- * drive runs one command against the current map and reports its outcome: its failure, whether
241
- * the map rejects or throws, and its success by clearing the failure an earlier command
242
- * reported. An outcome owed to an earlier selection describes a drawing the current one never
243
- * asked for, so it is dropped, the same map brought back included.
244
- */
245
- private drive;
246
- /**
247
- * commit publishes a snapshot and tells every listener, whatever one of them does: the first
248
- * fault a listener throws is surfaced once they have all been told ({@link notifyListeners}),
249
- * so no caller here has to decide what a listener's exception does to a command or to a read.
250
- */
251
- private commit;
252
- }
253
-
254
- /** The readout a map holds open: the point it was pressed at, and the terrain read there. */
255
- interface ReadoutOpen {
256
- /** The point, `[longitude, latitude]`. */
257
- readonly position: readonly [number, number];
258
- /** The camera's zoom when it opened, which decides the rows it states. */
259
- readonly zoom: number;
260
- /** The terrain read off the elevation tiles, or `null` until every tile it needs answered. */
261
- readonly terrain: TerrainReading | null;
262
- }
263
- /** What the engine reads the terrain through: the map's elevation source and its tiles. */
264
- interface ReadoutEngineOptions {
265
- /**
266
- * The elevation source the terrain is read off, as the map read it, or `null` where the map
267
- * reads none. Asked once a readout opens at the detail zoom.
268
- */
269
- readonly source: () => Promise<ElevationSource | null>;
270
- /**
271
- * Reads one elevation tile, decoded into its pixels, through the client's tile transport and
272
- * under the credential the map draws its base map with. The signal aborts once the readout it
273
- * was asked for closes or moves.
274
- */
275
- readonly readTile: (tile: Pick<ElevationTile, "x" | "y" | "z">, signal: AbortSignal) => Promise<ElevationTile>;
276
- }
277
- /**
278
- * ReadoutEngine holds the readout a right-click or a long press opens on a map, and reads the
279
- * terrain it states.
280
- *
281
- * {@link ReadoutEngine.open} opens it at a point, in place of one already open: at once, with no
282
- * terrain, and at the detail zoom, 13 and above, it reads the elevation tiles the terrain at the
283
- * point needs, at the source's deepest zoom. The terrain joins it once every tile has answered; a
284
- * tile that fails leaves it without terrain, and an answer to a readout since closed or replaced
285
- * lands nowhere. Below the detail zoom nothing is read. A camera move or a tap closes it, which the
286
- * binding tells {@link ReadoutEngine.close}; a host that turned the readout off opens none.
287
- */
288
- declare class ReadoutEngine {
289
- private readonly options;
290
- private readonly listeners;
291
- private snapshot;
292
- /** The reads of the readout open, aborted once it closes or moves. */
293
- private reads;
294
- constructor(options: ReadoutEngineOptions);
295
- /** getSnapshot answers the readout open, by reference and stable between changes, or `null`. */
296
- getSnapshot(): ReadoutOpen | null;
297
- /** subscribe registers a listener for every change, and returns its own unsubscribe. */
298
- subscribe(listener: () => void): () => void;
299
- /**
300
- * open opens the readout at a point, in place of one already open, and at the detail zoom reads
301
- * the terrain there.
302
- *
303
- * @param position The point pressed, `[longitude, latitude]`.
304
- * @param zoom The camera's zoom.
305
- */
306
- open(position: readonly [number, number], zoom: number): void;
307
- /** close closes the readout, on a camera move or a tap. An answer still on its way lands nowhere. */
308
- close(): void;
309
- /** destroy closes the readout and lets go of every listener. */
310
- destroy(): void;
311
- private readTerrain;
312
- private set;
313
- }
314
-
315
- /**
316
- * How Data API results are painted.
317
- *
318
- * Paint constants only (no MapLibre types), so this sits beside `zones.ts` and `pois.ts`
319
- * and stays usable from a worker or a server render. The expressions that consume these
320
- * live at the renderer boundary, in `compose/`.
321
- *
322
- * The three treatments here each encode a rule an integrator would otherwise guess at:
323
- * isochrone bands are a *sequence* and must read as one; a suggestion set has one chosen
324
- * itinerary and several alternatives that must not compete with it; and a matrix connector's
325
- * whole job is to show relative cost.
326
- */
327
- /**
328
- * ISOCHRONE_RAMP is the sequential scale isochrone bands are filled from, nearest first.
329
- *
330
- * **Not `zoneLevelColors`**, even though isochrones band at the ZONE rank. Those colours are
331
- * *semantic* (danger, info, resolved, warning), and reusing them would paint a 15-minute
332
- * reachability band "danger red" for no reason, which reads as an alert rather than a
333
- * measurement.
334
- *
335
- * Ordered light-to-dark so the nearest band is the palest: a reader's eye goes to the dark
336
- * edge, which is the limit of reach and the thing actually being asked about. A handful of
337
- * stops, because a request for more bands than that produces contours no one can tell apart:
338
- * past the last stop the ramp cycles rather than inventing colours, which is visibly wrong at
339
- * a glance instead of subtly wrong.
340
- */
341
- declare const ISOCHRONE_RAMP: readonly ["#c5f6fa", "#99e9f2", "#66d9e8", "#3bc9db", "#22b8cf", "#15aabf"];
342
- /** The fill opacity of an isochrone band. Low, because bands overlap by construction. */
343
- declare const ISOCHRONE_FILL_OPACITY = 0.35;
344
- /** The outline of an isochrone band, so adjacent bands stay distinguishable when stacked. */
345
- declare const ISOCHRONE_LINE_COLOR = "#0b7285";
346
- /** The width of an isochrone band's outline, in pixels. */
347
- declare const ISOCHRONE_LINE_WIDTH = 1;
348
- /**
349
- * isochroneColor picks a band's fill from its position in the requested sequence.
350
- *
351
- * Keyed on INDEX rather than on the `value` itself, and that is deliberate: a range of
352
- * `[900, 1800, 2700]` and one of `[60, 120, 180]` are both three bands and should look
353
- * identical, because the question ("how far in three steps") is the same. Colouring by
354
- * absolute value would make a short walk and a long drive incomparable.
355
- */
356
- declare const isochroneColor: (index: number) => string;
357
- /**
358
- * The suggestion treatment: one chosen itinerary drawn solid, the rest dashed and dimmed.
359
- *
360
- * The dash and the dimming are the ITINERARY ones, aliased rather than restated. A suggested
361
- * alternative and an unconfirmed draft are the same claim (this line is provisional), and a
362
- * reader who learns the treatment on one surface must not meet a different one on the next.
363
- * They keep their own names because a caller reaching for the suggestion treatment should
364
- * not have to know it originates in the itinerary contract.
365
- */
366
- declare const SUGGESTION_CHOSEN_COLOR = "#2b8a3e";
367
- /** The colour of a suggestion the reader has not chosen. */
368
- declare const SUGGESTION_ALTERNATIVE_COLOR = "#868e96";
369
- /** The opacity an alternative suggestion paints at, the provisional itinerary's. */
370
- declare const SUGGESTION_ALTERNATIVE_OPACITY = 0.6;
371
- /** The dash an alternative suggestion paints in, the provisional itinerary's. */
372
- declare const SUGGESTION_ALTERNATIVE_DASHARRAY: readonly [2, 2];
373
- /** The directions result line. Distinct from an itinerary's, which is saved rather than computed. */
374
- declare const DIRECTIONS_LINE_COLOR = "#1c7ed6";
375
- /**
376
- * The matrix connector scale.
377
- *
378
- * A connector's only job is relative cost, so width carries it: the cheapest pair in the
379
- * grid draws at the minimum and the dearest at the maximum, interpolated between. Absolute
380
- * widths would say nothing: one matrix's "far" is another's "next door".
381
- */
382
- declare const MATRIX_LINE_COLOR = "#7048e8";
383
- /** The width of the cheapest connector of a matrix, in pixels. */
384
- declare const MATRIX_LINE_MIN_WIDTH = 1;
385
- /** The width of the dearest connector of a matrix, in pixels. */
386
- declare const MATRIX_LINE_MAX_WIDTH = 6;
387
- /** The opacity a matrix connector paints at. */
388
- declare const MATRIX_LINE_OPACITY = 0.55;
389
- /**
390
- * matrixLineWidth scales one cell's cost onto the connector width range.
391
- *
392
- * A degenerate grid, every pair identical or a single pair, has no spread to scale against,
393
- * so it draws at the minimum rather than dividing by zero and painting NaN, which MapLibre
394
- * renders as nothing at all. All three arguments are checked for finiteness, not just the
395
- * value: an infinite bound divides infinity by infinity, which is NaN, and a clamp cannot
396
- * rescue a NaN, since Math.min and Math.max both propagate it.
397
- *
398
- * The result is clamped rather than trusted to land in range. The renderer hands this the
399
- * grid's own extrema, so its interpolation cannot overshoot, but a published helper is called
400
- * with whatever the integrator has: a cost from outside the grid it was scaled against
401
- * extrapolates, and the two ends of the scale stop meaning what the legend says they mean.
402
- * Below the minimum it runs down through zero, which `line-width` is not specified to take
403
- * at all.
404
- *
405
- * @param value The cell's cost.
406
- * @param min The cheapest cost of the grid.
407
- * @param max The dearest cost of the grid.
408
- * @returns The connector's width in pixels, from {@link MATRIX_LINE_MIN_WIDTH} to
409
- * {@link MATRIX_LINE_MAX_WIDTH}.
410
- */
411
- declare const matrixLineWidth: (value: number, min: number, max: number) => number;
412
- /** The place and POI result markers. Circles, so they never collide with the sprite catalogue. */
413
- declare const RESULT_POINT_RADIUS = 6;
414
- /** The colour of a result marker's outline. */
415
- declare const RESULT_POINT_STROKE_COLOR = "#ffffff";
416
- /** The width of a result marker's outline, in pixels. */
417
- declare const RESULT_POINT_STROKE_WIDTH = 2;
418
- /** The fill of a geocoded place's marker. */
419
- declare const PLACE_POINT_COLOR = "#f59f00";
420
- /** The fill of a point of interest's marker. */
421
- declare const POI_RESULT_POINT_COLOR = "#1c7ed6";
422
-
423
- /**
424
- * ENRICHMENT_CATEGORY_SLUG is the slug of the layers catalogue's category whose overlays STACK
425
- * rather than replace one another: hillshade, points of interest and the like, drawn over a
426
- * classic overlay rather than in place of it.
427
- *
428
- * It is the catalogue's own key for the distinction, and every surface that composes overlays
429
- * reads it through {@link isEnrichmentCategory}.
430
- */
431
- declare const ENRICHMENT_CATEGORY_SLUG = "enrichment";
432
- /**
433
- * POIS_OVERLAY_SLUG is the slug of the points-of-interest overlay, an enrichment of its own kind.
434
- *
435
- * It toggles as any enrichment does, but a host drives it through the points-of-interest picker
436
- * (or from a place picker of its own) rather than through a switch beside the hillshade, so the
437
- * layers picker lists no switch for it. Named here so a surface leaves it out without spelling the
438
- * slug.
439
- */
440
- declare const POIS_OVERLAY_SLUG = "pois";
441
- /**
442
- * isEnrichmentCategory reports whether a layers catalogue category holds overlays that stack.
443
- *
444
- * Only the category keyed {@link ENRICHMENT_CATEGORY_SLUG} does. Every other category is classic,
445
- * a new one included, and that is the safer default: a new classic overlay replacing the one
446
- * drawn before it is correct, where a new one stacking would paint over it. The slug is compared
447
- * exactly, as the catalogue writes it.
448
- */
449
- declare const isEnrichmentCategory: (category: {
450
- readonly slug: string;
451
- }) => boolean;
452
-
453
- /**
454
- * Turning Data API results into drawable GeoJSON.
455
- *
456
- * Pure, synchronous and free of MapLibre, so every conversion is testable without a map, and a
457
- * port or a headless consumer draws a Data API answer by the same rule: the interesting cases are
458
- * all data-shaped (an itinerary with no geometry, a matrix cell the router could not solve, a band
459
- * sequence longer than the ramp).
460
- *
461
- * Every feature carries its source datum in `properties`. That is what makes `featureclick`
462
- * useful rather than decorative: clicking a band answers `{ value: 1800, area, … }` instead
463
- * of an anonymous polygon, and an application never has to index back into the result it
464
- * was handed to find out what was clicked.
465
- *
466
- * Every member a converter names is written, `null` where the datum states none, so a feature's
467
- * properties have one shape whatever the answer held, and every SDK writes the same object. A
468
- * place, a POI or a matrix location whose point names no place is a feature all the same, with no
469
- * geometry, as RFC 7946 allows: every datum keeps its feature, and a renderer draws nothing for it.
470
- */
471
-
472
- /** The property keys the converters stamp, so layer expressions and tests agree on them. */
473
- declare const analysisProps: {
474
- readonly COLOR: "mtyaColor";
475
- readonly INDEX: "mtyaIndex";
476
- readonly KIND: "mtyaKind";
477
- readonly WIDTH: "mtyaWidth";
478
- };
479
- /**
480
- * isochronesToGeoJson draws each band as a polygon, palest nearest.
481
- *
482
- * Bands are emitted in the order the API returned them, which is the order they were
483
- * requested in, and since they nest by construction, that order is also back-to-front.
484
- * Reversing or sorting here would put the largest band on top and hide every one inside it.
485
- */
486
- declare const isochronesToGeoJson: (result: IsochronesResult) => FeatureCollection;
487
- /** directionsToGeoJson draws each returned route, with its metrics on the feature. */
488
- declare const directionsToGeoJson: (result: DirectionsResult) => FeatureCollection;
489
- /**
490
- * suggestionsToGeoJson draws the candidate set, one itinerary chosen and the rest alternatives.
491
- *
492
- * The first itinerary is chosen by default because the API returns them best-first. `chosen`
493
- * overrides that, so an application whose user picked a different candidate redraws by
494
- * index rather than by reordering the result it was given.
495
- *
496
- * @param result The suggestions the Data API answered.
497
- * @param chosen The index of the chosen itinerary. Defaults to 0, the API's best.
498
- */
499
- declare const suggestionsToGeoJson: (result: SuggestionsResult, chosen?: number) => FeatureCollection;
500
- /**
501
- * placesToGeoJson draws geocode hits as points, labelled.
502
- *
503
- * A place whose point names no place is still a feature, with no geometry, so every place keeps
504
- * its feature and its `mtyaIndex`. A renderer draws nothing for it.
505
- */
506
- declare const placesToGeoJson: (result: GeocodeResult) => FeatureCollection<Point | null>;
507
- /**
508
- * poisToGeoJson draws POI query hits as points.
509
- *
510
- * A POI whose point names no place is still a feature, with no geometry, as
511
- * {@link placesToGeoJson} draws a place.
512
- */
513
- declare const poisToGeoJson: (result: PoisResult) => FeatureCollection<Point | null>;
514
- /**
515
- * matrixToGeoJson synthesises what the matrix result does not contain.
516
- *
517
- * A matrix answers grids of numbers and no geometry at all, so this is the one converter
518
- * that invents rather than translates: a straight connector per solved pair, plus a point
519
- * per location. The connectors are **not itineraries** (they are the straight line between two
520
- * places, weighted by what the router said travelling between them costs), and the
521
- * `mtyaKind` of "matrix-connector" says so to anything reading the features back.
522
- *
523
- * Three cases are handled because all three are ordinary:
524
- *
525
- * - A cell the router could not solve arrives as `null` and is skipped, rather than drawn
526
- * at width NaN, which MapLibre renders as nothing while logging nothing. A cell that is no
527
- * finite number is unsolved the same way.
528
- * - The diagonal (a location to itself) is skipped; it is always zero and draws as a dot.
529
- * - `sources` and `destinations` subset the grid, so row `i` is `locations[sources[i]]`
530
- * rather than `locations[i]`. Ignoring that draws every connector from the wrong place,
531
- * plausibly enough that it survives review.
532
- *
533
- * A metric this release does not know names no grid, so it draws no connector and the locations
534
- * still draw. A location that names no place is a feature with no geometry, keeping its index.
535
- */
536
- declare const matrixToGeoJson: (input: Pick<DataSchema.MatrixInput, "locations" | "metrics" | "sources" | "destinations">, result: MatrixResult) => FeatureCollection<LineString | Point | null>;
537
-
538
- /** HoveredItinerary is what a pointer is over: a leg, a place, both or neither. */
539
- interface HoveredItinerary {
540
- /** The id of the leg under the pointer, or null where it is over none. */
541
- readonly segmentId: string | null;
542
- /** The id of the place under the pointer, or null where it is over none. */
543
- readonly waypointId: string | null;
544
- }
545
- /** The part of a feature the read takes: its properties. */
546
- interface HoverFeature {
547
- readonly properties?: Readonly<Record<string, unknown>> | null | undefined;
548
- }
549
- /**
550
- * hoveredItinerary reads what a pointer is over from the features under it, topmost first: the
551
- * first leg and the first place they name.
552
- *
553
- * Each is read from the feature's properties, `segment_id` and `waypoint_id`, as a string that is
554
- * not empty, and never from the feature's own id: the itinerary's vector tiles leave that unset, so
555
- * a read of it would find nothing under the pointer, ever. A feature naming no leg, or naming one
556
- * by a value that is no id, gives way to the next, and a feature naming both answers both: a place
557
- * standing on its own leg is one answer to two questions.
558
- *
559
- * @param features The features under the pointer, topmost first.
560
- * @returns The leg and the place, each null where no feature names one.
561
- *
562
- * @example
563
- * ```ts
564
- * import { hoveredItinerary } from "@mountaya/elements/layers";
565
- *
566
- * hoveredItinerary([
567
- * { properties: { waypoint_id: "hut" } },
568
- * { properties: { segment_id: "climb" } },
569
- * ]); // { segmentId: "climb", waypointId: "hut" }
570
- * ```
571
- */
572
- declare const hoveredItinerary: (features: readonly HoverFeature[]) => HoveredItinerary;
573
-
574
- /**
575
- * The itinerary tile contract: source-layer names, and the paint the platform strokes
576
- * itineraries with.
577
- *
578
- * A tile layer's `id` in the `/v1/tile-layers` manifest is unstable and per-source-prefixed, so
579
- * it is not something to match on. The `source_layer` is the stable contract, and it is
580
- * what a caller scoping `queryRenderedFeatures` or a click handler to itinerary geometry
581
- * should use.
582
- *
583
- * The paint constants exist so an itinerary you draw yourself (a preview, a proposed
584
- * alternative, an itinerary not yet saved) looks like the itineraries the platform serves. Two
585
- * renders of the same line stroked differently read as a bug.
586
- */
587
- /**
588
- * The source-layer names the itinerary vector tiles emit: routed segment geometry, solid
589
- * and dashed sharing one source-layer, and waypoints.
590
- */
591
- declare const ITINERARY_LINE_SOURCE_LAYER = "itinerary_lines";
592
- /** The source-layer the itinerary tiles carry waypoints and the derived endpoints in. */
593
- declare const ITINERARY_POINT_SOURCE_LAYER = "itinerary_points";
594
- /**
595
- * The source-layer the itinerary tiles carry restricted stretches in: one line feature per
596
- * stretch of a segment that follows a way restricting who may pass, carrying `segment_id`,
597
- * `itinerary_id` and `kind` (a member of `ROAD_ACCESS_KINDS` from `@mountaya/elements/data`).
598
- * The tiles carry it from zoom 9, the zoom they start drawing waypoints at, and no specification
599
- * declares a layer for it, so a map draws it with layers of its own.
600
- */
601
- declare const ITINERARY_RESTRICTION_SOURCE_LAYER = "itinerary_restrictions";
602
- /**
603
- * ITINERARY_ENDPOINT_ICONS are the icon names carried by the derived start and end rows.
604
- *
605
- * Those two rows carry their SEGMENT's colour, while every other row in the same points
606
- * source-layer carries a waypoint's own colour, and one `icon-image` expression covers
607
- * both, so the icon name is the only thing separating them. Recolouring segments means
608
- * matching these two names, or the recolour reaches an author's waypoint pins too.
609
- */
610
- declare const ITINERARY_ENDPOINT_ICONS: readonly ["flag-start", "flag-end"];
611
- /**
612
- * ITINERARY_CASING_LAYER_SUFFIX ends the layer id of the white outline drawn beneath the
613
- * itinerary lines.
614
- *
615
- * The casing shares the `itinerary_lines` source-layer with the lines it sits under, so
616
- * `source_layer` cannot tell them apart and the id is the only thing that can. That
617
- * distinction is load-bearing rather than cosmetic: see {@link isItineraryCasingLayer}.
618
- */
619
- declare const ITINERARY_CASING_LAYER_SUFFIX = "-casing";
620
- /**
621
- * ITINERARY_LINE_WIDTH_STOPS is the zoom-to-width ramp every itinerary line is stroked at,
622
- * and ITINERARY_CASING_WIDTH_STOPS the ramp of the white outline beneath it.
623
- *
624
- * Each casing width is two pixels larger, so the halo reads as a constant one-pixel border
625
- * on either side at every zoom rather than as a fraction of the stroke. Both are flat
626
- * `zoom, width, …` pairs: the tail a MapLibre `["interpolate", ["linear"], ["zoom"], …]`
627
- * expression takes. The stops are the datum; the expression is assembly.
628
- */
629
- declare const ITINERARY_LINE_WIDTH_STOPS: readonly [7, 2, 10, 2, 13, 3, 16, 5];
630
- /** The zoom-to-width ramp of the outline beneath an itinerary line. */
631
- declare const ITINERARY_CASING_WIDTH_STOPS: readonly [7, 4, 10, 4, 13, 5, 16, 7];
632
- /**
633
- * ITINERARY_CASING_COLOR and ITINERARY_CASING_OPACITY paint that outline. Not quite
634
- * opaque, so a dense stack of switchbacks does not turn into a white mass.
635
- */
636
- declare const ITINERARY_CASING_COLOR = "#ffffff";
637
- /** The opacity the outline beneath an itinerary line paints at. */
638
- declare const ITINERARY_CASING_OPACITY = 0.9;
639
- /**
640
- * itineraryLineLayout is the layout every itinerary line layer shares.
641
- *
642
- * Round caps and joins are what make a routed polyline read as a drawn line. MapLibre's
643
- * default butt cap notches every segment boundary, and its mitre join throws a spike off
644
- * every switchback, which on mountain terrain is most of the itinerary.
645
- */
646
- declare const itineraryLineLayout: {
647
- readonly "line-cap": "round";
648
- readonly "line-join": "round";
649
- };
650
- /**
651
- * ITINERARY_LINE_DASHARRAY is the pattern a provisional itinerary line paints in. The pair
652
- * is measured in line widths, so `[2, 2]` is a one-to-one dash at any stroke.
653
- */
654
- declare const ITINERARY_LINE_DASHARRAY: readonly [2, 2];
655
- /**
656
- * ITINERARY_DASHED_OPACITY is what a provisional line paints at.
657
- *
658
- * High enough to follow, low enough that the eye settles on the solid itinerary beside it: a
659
- * comparison cue rather than a second answer.
660
- */
661
- declare const ITINERARY_DASHED_OPACITY = 0.6;
662
- /**
663
- * isItineraryCasingLayer reports whether a manifest tile layer is the casing rather than an
664
- * itinerary line.
665
- *
666
- * The casing takes part in exactly two of the paint folds a renderer applies, and must be
667
- * held out of the rest:
668
- *
669
- * - **Opacity and width: yes.** It is the same stroke as the line above it, so dimming,
670
- * hover-thickening or excluding an itinerary has to move both, or the halo detaches from what
671
- * it is haloing.
672
- * - **Colour: no.** Its whole job is to be the one thing on the map that is NOT the
673
- * itinerary's colour. Tinting it to the segment colour makes it invisible.
674
- * - **Dash: no.** `line-dasharray` is measured in line widths and the casing is wider by
675
- * definition, so a dash copied onto it runs long and drifts out of phase with the line's.
676
- * - **Direction companions: no.** Flow lines and chevrons are generated per itinerary line
677
- * layer; generating a second set from the casing doubles every arrow on the itinerary.
678
- */
679
- declare const isItineraryCasingLayer: (layer: {
680
- id: string;
681
- }) => boolean;
682
- /**
683
- * RoadAccessHostLayer is what the restricted-stretch layers read of the tile layers they are
684
- * placed beside: a layer's id, the source-layer it draws and its kind.
685
- */
686
- interface RoadAccessHostLayer {
687
- readonly id: string;
688
- readonly source_layer: string;
689
- readonly type: string;
690
- }
691
- /**
692
- * roadAccessIconLayerIdOf answers the id of the layer a source's restricted-stretch icons are
693
- * drawn on, or null for a source that draws no itinerary line and so no restricted stretch.
694
- *
695
- * A source's restricted stretches are drawn by the map that mounts it rather than declared by
696
- * its specification, so this is how a surface reads a click or a hover on their icons: the id is
697
- * the one the map gave the layer.
698
- *
699
- * @example
700
- * ```ts
701
- * import type { TileSchema } from "@mountaya/client";
702
- * import { roadAccessIconLayerIdOf } from "@mountaya/elements/layers";
703
- *
704
- * declare const sources: TileSchema.TileSource[];
705
- * const iconLayerIds = sources.flatMap((source) => roadAccessIconLayerIdOf(source) ?? []);
706
- * ```
707
- */
708
- declare const roadAccessIconLayerIdOf: (source: {
709
- readonly layers: readonly RoadAccessHostLayer[];
710
- }) => string | null;
711
-
712
- /**
713
- * The choice a section's rows make: `terrain`, one base map among the catalogue's terrains;
714
- * `overlay`, one classic overlay among every classic category's at once; `enrichment`, each
715
- * enrichment on or off by itself.
716
- */
717
- type LayersPanelChoice = "enrichment" | "overlay" | "terrain";
718
- /** One entry a layers picker lists: a terrain or an overlay. */
719
- interface LayersPanelRow {
720
- /** The entry's slug, which a press hands on. */
721
- readonly slug: string;
722
- /** The entry's name in the reader's language, else its English name, else its slug. */
723
- readonly label: string;
724
- /** Whether the selection holds the entry. */
725
- readonly checked: boolean;
726
- /**
727
- * What the row shows beside its label: its lock where the entry is out of the viewer's reach,
728
- * whether or not the selection holds it, a tick where the selection holds it, and nothing
729
- * otherwise.
730
- */
731
- readonly mark: "lock" | "tick" | null;
732
- }
733
- /** One classic category the overlays' category switch offers. */
734
- interface LayersPanelCategory {
735
- /** The category's slug, which the reader's pick names. */
736
- readonly slug: string;
737
- /** The category's name in the reader's language, else its English name, else its slug. */
738
- readonly name: string;
739
- }
740
- /**
741
- * One section of a layers picker, by the choice it makes, in the order a picker lists them: the
742
- * terrains as picture cards, the enrichments as switches, the classic overlays as picture cards
743
- * one category at a time, and the time.
744
- *
745
- * A section is headed by a word of the elements' `layers` section (`terrain`, `enrichment`,
746
- * `overlays`, `time`) and states the catalogue category it lists as `category`: the enrichment
747
- * category's slug for the enrichments, the category the picker opens on for the overlays, and
748
- * none for the terrains and the time. Its rows are in the catalogue's order.
749
- */
750
- type LayersPanelSection = {
751
- /** The terrains, one base map among them. */
752
- readonly choice: "terrain";
753
- readonly heading: {
754
- readonly word: "terrain";
755
- };
756
- readonly category: null;
757
- readonly rows: readonly LayersPanelRow[];
758
- } | {
759
- /** Every enrichment, each on or off by itself. */
760
- readonly choice: "enrichment";
761
- readonly heading: {
762
- readonly word: "enrichment";
763
- };
764
- readonly category: string;
765
- readonly rows: readonly LayersPanelRow[];
766
- } | {
767
- /** One classic overlay among every classic category's, shown one category at a time. */
768
- readonly choice: "overlay";
769
- readonly heading: {
770
- readonly word: "overlays";
771
- };
772
- /** The category the picker opens on, whose overlays are the rows. */
773
- readonly category: string;
774
- /**
775
- * Every classic category holding an overlay, in the catalogue's order. A picker draws a
776
- * switch between them where it lists two or more.
777
- */
778
- readonly categories: readonly LayersPanelCategory[];
779
- readonly rows: readonly LayersPanelRow[];
780
- } | {
781
- /** The time, which a slider chooses and no row lists. */
782
- readonly choice: "time";
783
- readonly heading: {
784
- readonly word: "time";
785
- };
786
- readonly category: null;
787
- readonly rows: readonly LayersPanelRow[];
788
- };
789
- /** What a layers picker lists: the catalogue, what the selection holds, and how a row reads. */
790
- interface LayersPanelInput {
791
- /** The layers catalogue, or null until it has been read. */
792
- readonly catalogue: Pick<RestSchema.Layers, "overlays" | "terrains"> | null;
793
- /** The terrain, the classic overlay and the enrichments the selection holds. */
794
- readonly selection: {
795
- readonly enrichments: readonly string[];
796
- readonly overlay: string | null;
797
- readonly terrain: string | null;
798
- };
799
- /** The language the rows and the categories are named in. */
800
- readonly language: string;
801
- /**
802
- * Whether an entry is out of the viewer's reach, so its row shows its lock. No entry is, where
803
- * this is omitted.
804
- */
805
- readonly isLocked?: ((slug: string) => boolean) | undefined;
806
- /**
807
- * The classic category the reader last picked in the overlays' category switch, which a picker
808
- * holds as its own state. None is picked where this is omitted, and a pick that names no
809
- * category on offer is none.
810
- */
811
- readonly picked?: string | null | undefined;
812
- /** Whether the host offers the time, so the picker lists its section. Omitted, it does not. */
813
- readonly offersTime?: boolean | undefined;
814
- }
815
- /**
816
- * What a press on a row asks for: the selection's command for the row's choice, with the row's
817
- * slug, or, for a locked row, the report that the entry was pressed.
818
- */
819
- type LayersPanelPress = {
820
- readonly command: LayersPanelChoice;
821
- readonly slug: string;
822
- } | {
823
- readonly locked: string;
824
- };
825
- /**
826
- * layersPanelSections lists what a layers picker offers, as the map studio's layers panel lists
827
- * it, up to four sections in this order:
828
- *
829
- * 1. **The terrains**, as picture cards in one choice. The section stands while the catalogue is
830
- * still to be read, with no row.
831
- * 2. **The enrichments**, as switches: the overlays of every enrichment category, in the
832
- * catalogue's order, the points of interest left out, since their own picker drives them.
833
- * The section stands where it lists a row.
834
- * 3. **The classic overlays**, as picture cards in one choice across every classic category,
835
- * shown one category at a time. `categories` lists each classic category holding an overlay,
836
- * and the rows are the overlays of the one the picker opens on: the reader's `picked` category
837
- * where it is listed, else the first listed category holding the selected overlay, else the
838
- * first listed. The section stands where it lists a category.
839
- * 4. **The time**, with no row, where the host offers it (`offersTime`).
840
- *
841
- * The split between the kinds is the catalogue's own, never a preference: base maps replace one
842
- * another, classic overlays replace one another across categories, since two of them repaint the
843
- * same ground, and enrichments stack ({@link isEnrichmentCategory}). A category is named as a row
844
- * is labelled.
845
- *
846
- * @example
847
- * ```ts
848
- * import { layersPanelSections } from "@mountaya/elements/layers";
849
- *
850
- * const sections = layersPanelSections({
851
- * catalogue: null,
852
- * language: "fr",
853
- * offersTime: true,
854
- * picked: null,
855
- * selection: { enrichments: [], overlay: null, terrain: null },
856
- * });
857
- * ```
858
- */
859
- declare const layersPanelSections: ({ catalogue, isLocked, language, offersTime, picked, selection, }: LayersPanelInput) => readonly LayersPanelSection[];
860
- /**
861
- * layersPanelPress answers what a press on a row of a layers picker asks for: the report of the
862
- * entry where the row shows its lock, which selects nothing, and otherwise the command of the
863
- * row's choice, which the selection carries out.
864
- *
865
- * @param choice The choice of the section the row stands in.
866
- * @param row The row pressed.
867
- */
868
- declare const layersPanelPress: (choice: LayersPanelChoice, row: Pick<LayersPanelRow, "mark" | "slug">) => LayersPanelPress;
869
-
870
- /**
871
- * overlayInstant answers the moment a map's time-dependent surfaces show: the tiles a server
872
- * stamps with an instant, the light a hillshade is drawn under, and the line a surface states the
873
- * moment on.
874
- *
875
- * A pinned instant is itself, to the millisecond, whatever the clock reads: behind the pin, ahead
876
- * of it, and under a clock that reads none. With none pinned it is the start of the minute the
877
- * clock's reading falls in, the reading floored to a whole minute from the epoch, so a reading
878
- * before the epoch falls in the minute before it. Every surface that reads it therefore shows one
879
- * moment, and moves when the minute does.
880
- *
881
- * An Invalid Date names no instant and is read as none pinned, as a pin restored from a link
882
- * that names no moment is.
883
- *
884
- * It keeps no time and reads no clock: the caller hands over the clock's reading, and asks again
885
- * when the pin changes or the minute turns.
886
- *
887
- * @param pinned The instant a reader pinned, the layers selection's `instant`, or null with none
888
- * pinned.
889
- * @param nowMs The clock's reading, in epoch milliseconds.
890
- * @returns The instant to show, a `Date` of the caller's own. Null with none pinned under a clock
891
- * that reads no instant (`NaN`, an infinity, or a reading past the instants a `Date` holds):
892
- * there is no moment to show, and a surface draws nothing for it.
893
- *
894
- * @example
895
- * ```ts
896
- * import { overlayInstant } from "@mountaya/elements/layers";
897
- *
898
- * const minuteStart = Date.UTC(2026, 2, 14, 12, 0);
899
- *
900
- * overlayInstant(new Date("2026-03-14T09:26:53.900Z"), minuteStart); // the pinned instant
901
- * overlayInstant(null, minuteStart + 59_999); // the start of that minute
902
- * overlayInstant(null, Number.NaN); // null: the clock reads no instant
903
- * ```
904
- */
905
- declare const overlayInstant: (pinned: Date | null, nowMs: number) => Date | null;
906
-
907
- /**
908
- * OverlayKind is how an overlay of the layers manifest is drawn: a `classic` overlay replaces the
909
- * one drawn before it, an `enrichment` stacks over it. {@link isEnrichmentCategory} decides which
910
- * a category holds.
911
- */
912
- type OverlayKind = "classic" | "enrichment";
913
- /**
914
- * findOverlay answers the layers manifest's own entry for an overlay, by its slug.
915
- *
916
- * The categories are read in the manifest's order, and the first overlay that carries the slug
917
- * is the answer. A map draws a classic overlay and an enrichment through two calls, so a caller
918
- * that knows which it draws names the kind, and an overlay of the other kind is no answer.
919
- *
920
- * @param layers The layers manifest, already read.
921
- * @param slug The overlay's slug, as the manifest spells it.
922
- * @param kind The kind of overlay asked for. Omitted, an overlay of either kind.
923
- * @returns The manifest's entry, or null where it holds no overlay of that kind under the slug.
924
- *
925
- * @example
926
- * ```ts
927
- * import { findOverlay } from "@mountaya/elements/layers";
928
- * import type { RestSchema } from "@mountaya/client";
929
- *
930
- * declare const layers: RestSchema.Layers;
931
- *
932
- * const hillshade = findOverlay(layers, "hillshade", "enrichment");
933
- * ```
934
- */
935
- declare const findOverlay: (layers: Pick<RestSchema.Layers, "overlays">, slug: string, kind?: OverlayKind | undefined) => RestSchema.Overlay | null;
936
-
937
- /** One row a points-of-interest picker offers: a drawn manifest key, or a curated group of them. */
938
- interface PoiPanelRow {
939
- /** The manifest key, or the group's id. */
940
- readonly id: string;
941
- /** A group's own label, a key's from the labels handed in, else the key itself. */
942
- readonly label: string;
943
- /** The glyph role a group names to draw beside its label, where it names one. */
944
- readonly glyph: string | undefined;
945
- /** The drawn keys the row's toggle drives, and none that is not drawn. */
946
- readonly keys: readonly string[];
947
- /** Whether the row is on: while any key it drives is shown. */
948
- readonly visible: boolean;
949
- }
950
- /** What a points-of-interest picker reads: what the map draws and shows, and how it is curated. */
951
- interface PoiPanelRowsInput {
952
- /** The manifest keys drawn at the points-of-interest rank, in the order drawn. */
953
- readonly drawn: readonly string[];
954
- /** Whether a drawn key is shown, as the map answers it. */
955
- readonly isKeyVisible: (key: string) => boolean;
956
- /** Restricts the rows to these keys, in this order. Every drawn key, where omitted. */
957
- readonly keys?: readonly string[] | undefined;
958
- /** Curated groups, a row each, in this order. They supersede `keys`. */
959
- readonly groups?: readonly {
960
- readonly id: string;
961
- readonly label: string;
962
- readonly keys: readonly string[];
963
- readonly glyph?: string | undefined;
964
- }[] | undefined;
965
- /**
966
- * The ids of the groups an application holds on, where it holds that state itself: a group row
967
- * then reads it rather than the map.
968
- */
969
- readonly activeGroups?: readonly string[] | undefined;
970
- /** A label per manifest key, for a row of a key. A key with no entry is labelled by itself. */
971
- readonly labels?: Readonly<Record<string, string>> | undefined;
972
- }
973
- /** The rows a points-of-interest picker offers, and its master row. */
974
- interface PoiPanelRows {
975
- /** The rows, in order. None where nothing is drawn, and the picker then shows nothing. */
976
- readonly rows: readonly PoiPanelRow[];
977
- /** Whether the master row, which turns the whole overlay on and off, is on: while any row is. */
978
- readonly anyVisible: boolean;
979
- }
980
- /**
981
- * poiPanelRows resolves the rows a points-of-interest picker offers and whether each is on.
982
- *
983
- * A row is offered only for what is drawn. A curated key whose overlay is not drawn would render
984
- * a toggle that reports success and changes nothing. A group survives on any of its keys being
985
- * drawn and then drives the drawn ones alone, where the alternative drops a whole concept
986
- * because one of the layers behind it is absent, which is the manifest's business and not the
987
- * reader's. The master row reads the rows rather than a flag of its own, so it can never say the
988
- * overlay is off while a row under it is on.
989
- *
990
- * @example
991
- * ```ts
992
- * import { poiPanelRows } from "@mountaya/elements/layers";
993
- *
994
- * const { anyVisible, rows } = poiPanelRows({
995
- * drawn: ["spring", "parking"],
996
- * groups: [{ id: "water", keys: ["spring", "fountain"], label: "Water" }],
997
- * isKeyVisible: () => true,
998
- * });
999
- * ```
1000
- */
1001
- declare const poiPanelRows: ({ activeGroups, drawn, groups, isKeyVisible, keys, labels, }: PoiPanelRowsInput) => PoiPanelRows;
1002
- /**
1003
- * poiPanelNoteZoom answers the zoom below which a points-of-interest picker says the overlay draws
1004
- * nothing: the overlay's floor zoom, and no zoom at all where it states none or one that is no
1005
- * number, so the note is never raised there.
1006
- *
1007
- * The note is what the picker says while the camera stands below it, never at it.
1008
- *
1009
- * @param minZoom The zoom below which the overlay draws nothing.
1010
- */
1011
- declare const poiPanelNoteZoom: (minZoom: number | undefined) => number;
1012
-
1013
- /**
1014
- * Points of interest: the tile vocabulary, and the icon and colour each category renders
1015
- * with.
1016
- *
1017
- * Two vocabularies meet here. The POI vector tiles and the OpenMapTiles base style speak
1018
- * lower-case `class`/`subclass` strings (`restaurant`, `camp_site`, `alpine_hut`), while
1019
- * the Data API speaks the upper-snake `PoiCategory` enum. Anything that turns a clicked
1020
- * tile feature into an API value crosses that line, and this module is the crossing.
1021
- */
1022
-
1023
- type PoiCategory = DataSchema.PoiCategory;
1024
- /**
1025
- * omtCategoryToPoiEnum resolves an OpenMapTiles tile category string to the API's
1026
- * `PoiCategory`, or null when the category is outside the mapped vocabulary.
1027
- *
1028
- * Null rather than a guess: a caller turning a map click into an API call should decline
1029
- * rather than send a category the user did not point at. The input's ASCII capitals are folded
1030
- * first, so a `Restaurant` from a style variant still resolves, and nothing else is: a Kelvin
1031
- * sign is no `k`.
1032
- */
1033
- declare const omtCategoryToPoiEnum: (category: string) => PoiCategory | null;
1034
- /**
1035
- * PoiCategoryStyle is the glyph name and feature colour one POI category renders with.
1036
- */
1037
- interface PoiCategoryStyle {
1038
- /** The feature colour, as a CSS hex colour. */
1039
- readonly color: string;
1040
- /** The glyph name the category is drawn with. */
1041
- readonly icon: string;
1042
- }
1043
- /**
1044
- * poiCategoryStyles maps every `PoiCategory` to the icon and colour it is drawn in.
1045
- *
1046
- * The categories the POI tile overlay also renders mirror the platform's own tile styling
1047
- * exactly, which is what makes a search-result marker sit on top of the tile-rendered POI
1048
- * at the zooms where both are visible instead of beside it in a different colour. The
1049
- * search-only categories (returnable by search, absent from the tile overlay) use
1050
- * palette-aligned colours and category-appropriate glyphs.
1051
- *
1052
- * Exhaustive over the enum with no fallback, so a category added to the API surfaces here
1053
- * as a compile error rather than an unstyled marker.
1054
- *
1055
- * The `icon` values name glyphs, and whether a given set carries one is a property of that
1056
- * set: see {@link IconProvider}. A provider missing a glyph is a marker to answer with
1057
- * your own default, not an error.
1058
- */
1059
- declare const poiCategoryStyles: Readonly<Record<PoiCategory, PoiCategoryStyle>>;
1060
-
1061
- /**
1062
- * What the readout a right-click or a long press opens on a map states, as a model: the point of
1063
- * interest and the zone drawn there, the band the classic overlay draws, the terrain read off the
1064
- * elevation tiles, and the coordinates, each where the map holds it.
1065
- *
1066
- * The rows name their words and hold their values; an element writes each in the reader's words
1067
- * and measures. Nothing here reads the map: the map gathers what stands at the point and hands it
1068
- * in.
1069
- */
1070
-
1071
- /**
1072
- * The eighth of the compass an aspect faces, as `aspectCardinal` names it. Written here rather
1073
- * than imported, so the readout's declarations name no module of the renderer's chunk.
1074
- */
1075
- type ReadoutCardinal = "E" | "N" | "NE" | "NW" | "S" | "SE" | "SW" | "W";
1076
- /** The measure a classic overlay's band is written in, by its slug. */
1077
- type ReadoutMeasure = "distance" | "humidity" | "snowfall" | "speed" | "temperature";
1078
- /** What the map holds at the point a readout opens on. */
1079
- interface ReadoutInput {
1080
- /** The point, `[longitude, latitude]`. */
1081
- readonly position: readonly [number, number];
1082
- /** The camera's zoom when the readout opened. */
1083
- readonly zoom: number;
1084
- /** The terrain read off the elevation tiles, or `null` where the map holds no reading. */
1085
- readonly terrain: {
1086
- readonly elevation: number | null;
1087
- readonly slope: number | null;
1088
- readonly aspect: number | null;
1089
- } | null;
1090
- /** The topmost point of interest drawn there: its name and the category its tile states. */
1091
- readonly poi: {
1092
- readonly name: string;
1093
- readonly category: string;
1094
- } | null;
1095
- /** The topmost zone drawn there, its window's bounds in Unix seconds as its tile states them. */
1096
- readonly zone: {
1097
- readonly name: string;
1098
- readonly description: string;
1099
- readonly level: string;
1100
- readonly startAt: number | null;
1101
- readonly endAt: number | null;
1102
- } | null;
1103
- /** The classic overlay the map draws: its slug, its name, and whether its tiles are vector. */
1104
- readonly overlay: {
1105
- readonly slug: string;
1106
- readonly name: string;
1107
- readonly vector: boolean;
1108
- } | null;
1109
- /** The band of the first of the overlay's features at the point stating one. */
1110
- readonly band: {
1111
- readonly min: number | null;
1112
- readonly max: number | null;
1113
- } | null;
1114
- /** The moment the map shows, in epoch milliseconds, or `null`. */
1115
- readonly instant: number | null;
1116
- }
1117
- /** A terrain reading of the readout. */
1118
- type ReadoutReading = {
1119
- readonly reading: "altitude";
1120
- readonly value: number;
1121
- readonly word: "readout.altitude";
1122
- } | {
1123
- readonly reading: "slope";
1124
- readonly value: number;
1125
- readonly color: string;
1126
- readonly word: "readout.slope";
1127
- } | {
1128
- readonly reading: "aspect";
1129
- readonly value: number;
1130
- readonly cardinal: ReadoutCardinal | null;
1131
- readonly cardinalWord: `readout.aspects.${ReadoutCardinal}` | null;
1132
- readonly word: "readout.aspect";
1133
- };
1134
- /** A row of the readout, in the order the readout states them. */
1135
- type ReadoutRow = {
1136
- readonly row: "poi";
1137
- readonly name: string | null;
1138
- readonly category: DataSchema.PoiCategory | null;
1139
- readonly label: string;
1140
- } | {
1141
- readonly row: "band";
1142
- readonly overlay: string;
1143
- readonly measure: ReadoutMeasure;
1144
- readonly pace: "per-time" | null;
1145
- readonly values: readonly number[];
1146
- readonly word: "readout.overlayRange" | null;
1147
- readonly time: {
1148
- readonly moment: number;
1149
- readonly word: "readout.overlayTime";
1150
- } | null;
1151
- } | {
1152
- readonly row: "terrain";
1153
- readonly readings: readonly ReadoutReading[];
1154
- } | {
1155
- readonly row: "instant";
1156
- readonly moment: number;
1157
- readonly word: "readout.overlayTime";
1158
- } | {
1159
- readonly row: "coordinates";
1160
- readonly text: string;
1161
- readonly copy: string;
1162
- readonly word: "readout.coordinates";
1163
- } | {
1164
- readonly row: "zoom-in";
1165
- readonly word: "readout.zoomInForDetails";
1166
- } | {
1167
- readonly row: "zone";
1168
- readonly name: string | null;
1169
- readonly description: string | null;
1170
- readonly level: string;
1171
- readonly levelWord: `readout.zoneLevels.${RestSchema.ZoneLevel}` | null;
1172
- readonly color: string;
1173
- readonly window: {
1174
- readonly start: number | null;
1175
- readonly end: number | null;
1176
- readonly word: "readout.zoneWindowFrom" | "readout.zoneWindowRange" | "readout.zoneWindowUntil";
1177
- } | null;
1178
- readonly word: "readout.zone";
1179
- };
1180
- /**
1181
- * The word a category is read as: the resolver's, else its English title. Answered by the host,
1182
- * as a search result words its category.
1183
- */
1184
- type ReadoutCategoryLabel = (category: DataSchema.PoiCategory) => string | null | undefined;
1185
- /**
1186
- * readoutRows answers what a map's readout states at a point, each row only where the map holds
1187
- * it, in this order: at the detail zoom, 13 and above, the point of interest; at any zoom, the
1188
- * band the classic overlay draws, for a vector overlay the readout's table names; at the detail
1189
- * zoom, the terrain's altitude, slope and aspect; the moment alone, for a vector overlay whose band
1190
- * is not stated; the coordinates, always; below the detail zoom, an invitation to zoom in; and at
1191
- * the detail zoom, the zone.
1192
- *
1193
- * A row holds no place link, no waypoint action and no street-level view: those are the editor's
1194
- * and the embed page's own.
1195
- *
1196
- * @param input What the map holds at the point.
1197
- * @param categoryLabel The reader's word for a point of interest's category; without it, or for a
1198
- * category it has no word for, the category's English title.
1199
- * @returns The rows, in order.
1200
- */
1201
- declare const readoutRows: (input: ReadoutInput, categoryLabel?: ReadoutCategoryLabel) => readonly ReadoutRow[];
1202
-
1203
- /**
1204
- * STREETVIEW_MIN_ZOOM is the lowest zoom a Street View panorama is aimed from.
1205
- *
1206
- * Below it the coverage raster `MountayaMap.setStreetviewCoverage` draws is too coarse to tell a
1207
- * road that holds imagery from the one beside it, so a pegman control is inert there, and a
1208
- * surface that offers anything at a precise point of the map (a panorama, a place's details)
1209
- * offers it from this zoom up.
1210
- *
1211
- * @example
1212
- * ```ts
1213
- * import { STREETVIEW_MIN_ZOOM } from "@mountaya/elements/layers";
1214
- *
1215
- * const aimable = (zoom: number): boolean => zoom >= STREETVIEW_MIN_ZOOM;
1216
- * ```
1217
- */
1218
- declare const STREETVIEW_MIN_ZOOM = 13;
1219
-
1220
- /** TimestampedSource is one tile source, and the tile addresses that ask it for an instant. */
1221
- interface TimestampedSource {
1222
- /** The source's id in the layers catalogue, which a map draws it under. */
1223
- readonly sourceId: string;
1224
- /** The source's tile address templates, each carrying the instant as `timestamp`. */
1225
- readonly tiles: string[];
1226
- }
1227
- /**
1228
- * timestampedSources answers the tile sources a map asks again for an instant: those of the
1229
- * selected classic overlay, where the catalogue says the server resolves its time
1230
- * (`capabilities.server.timestamp`), each with tile addresses that carry the instant as their
1231
- * `timestamp` parameter, in UTC to the millisecond.
1232
- *
1233
- * The overlay is looked up among the catalogue's classic categories alone, every category but the
1234
- * one keyed `enrichment`: an enrichment is never stamped. None is answered with no overlay
1235
- * selected, for a slug no classic category holds, for an overlay the server does not stamp, and
1236
- * for an `instant` that names no moment (an Invalid Date), which has no spelling to stamp an
1237
- * address with.
1238
- *
1239
- * Each address keeps every other part as written: an existing `timestamp` is replaced where it
1240
- * stands, a repeated one and every empty pair are dropped, and an address with no scheme is kept
1241
- * as it is. A caller swaps each source's tiles in place, so the overlay asks again with no remove
1242
- * and add.
1243
- *
1244
- * @param catalogue The layers catalogue.
1245
- * @param overlay The slug of the classic overlay a layers selection holds, or null.
1246
- * @param instant The instant to ask for, as `overlayInstant` answers it.
1247
- *
1248
- * @example
1249
- * ```ts
1250
- * import { timestampedSources } from "@mountaya/elements/layers";
1251
- * import type { RestSchema } from "@mountaya/client";
1252
- *
1253
- * declare const catalogue: RestSchema.Layers;
1254
- *
1255
- * const sources = timestampedSources(catalogue, "snow-depth", new Date("2026-03-14T09:00:00Z"));
1256
- * ```
1257
- */
1258
- declare const timestampedSources: (catalogue: Pick<RestSchema.Layers, "overlays">, overlay: string | null, instant: Date) => TimestampedSource[];
1259
-
1260
- /**
1261
- * TIME_WINDOW_PAST_HOURS is how far before the clock's reading a time slider's track reaches, in
1262
- * hours.
1263
- *
1264
- * The Tile API draws an overlay it stamps for an instant from three days back. The track stops an
1265
- * hour short of that on purpose: a request leaves at one instant and is checked against the
1266
- * server's clock at a later one, so an instant a full 72 hours back would already be past the
1267
- * limit when it arrives.
1268
- */
1269
- declare const TIME_WINDOW_PAST_HOURS = 71;
1270
- /**
1271
- * TIME_WINDOW_FUTURE_HOURS is how far after the clock's reading a time slider's track reaches, in
1272
- * hours: the six days ahead the Tile API draws a stamped overlay for.
1273
- */
1274
- declare const TIME_WINDOW_FUTURE_HOURS = 144;
1275
- /**
1276
- * TimeSliderWindow is the track of a time slider, one stop an hour, laid out around one clock
1277
- * reading.
1278
- *
1279
- * A stop is a whole number of hours from the track's start: stop 0 is the earliest instant the
1280
- * time-aware overlays hold, {@link TimeSliderWindow.nowValue} the stop of the clock's reading and
1281
- * {@link TimeSliderWindow.maxValue} the last.
1282
- *
1283
- * A track has an instant at every stop or at none, and {@link TimeSliderWindow.startMs} says
1284
- * which: {@link timeSliderWindow} states when a track has none.
1285
- */
1286
- interface TimeSliderWindow {
1287
- /**
1288
- * dateAt answers the instant a stop stands for: the track's start plus the stop's hours.
1289
- *
1290
- * It answers null on a track of no instant, and for a value that stands for none: one that is
1291
- * not a number, or one so far off the track that a `Date` cannot hold its instant. What it
1292
- * answers is therefore always safe to format and to send.
1293
- */
1294
- readonly dateAt: (value: number) => Date | null;
1295
- /** The track's last stop: its whole length, in hours. */
1296
- readonly maxValue: number;
1297
- /** The stop that stands for the clock's reading. */
1298
- readonly nowValue: number;
1299
- /**
1300
- * The instant stop 0 stands for, in epoch milliseconds, or null on a track of no instant.
1301
- */
1302
- readonly startMs: number | null;
1303
- /**
1304
- * valueAt answers the stop an instant is placed at: its nearest stop, a half hour going to the
1305
- * later one, and the nearest end for an instant off the track, so a pin the track has moved
1306
- * past still places a thumb.
1307
- *
1308
- * No pin is placed at {@link TimeSliderWindow.nowValue}, and so is an Invalid Date, which names
1309
- * no instant, and every instant on a track of no instant.
1310
- */
1311
- readonly valueAt: (instant: Date | null) => number;
1312
- }
1313
- /**
1314
- * timeSliderWindow lays a time slider's track out around `nowMs`, the clock's reading in epoch
1315
- * milliseconds, at one stop an hour, from {@link TIME_WINDOW_PAST_HOURS} before it to
1316
- * {@link TIME_WINDOW_FUTURE_HOURS} after it.
1317
- *
1318
- * It reads no clock: the caller hands over the reading, so a host that pins or replays time moves
1319
- * the track with it.
1320
- *
1321
- * **A reading that is no instant.** A clock that reads `NaN`, an infinite number, or one so far
1322
- * out that an end of the track falls past the instants a `Date` holds (8.64e15 milliseconds from
1323
- * the epoch) lays out a track of no instant. Its stops are hours and its length is no clock's, so
1324
- * {@link TimeSliderWindow.maxValue} and {@link TimeSliderWindow.nowValue} are what they always
1325
- * are; {@link TimeSliderWindow.startMs} is null, {@link TimeSliderWindow.dateAt} answers null for
1326
- * every stop and {@link TimeSliderWindow.valueAt} places every instant at `nowValue`. A slider
1327
- * reads that as a track with nothing to place and nothing to pin.
1328
- *
1329
- * @example
1330
- * ```ts
1331
- * import { timeSliderWindow } from "@mountaya/elements/layers";
1332
- *
1333
- * declare const pinned: Date | null;
1334
- *
1335
- * const track = timeSliderWindow(Date.now());
1336
- * const thumb = track.valueAt(pinned);
1337
- * const sixHoursLater = track.dateAt(thumb + 6);
1338
- * ```
1339
- */
1340
- declare const timeSliderWindow: (nowMs: number) => TimeSliderWindow;
1341
-
1342
- /**
1343
- * What a time slider draws and commits over its track, a {@link TimeSliderWindow}: its ticks,
1344
- * what a release of its thumb pins, and what its thumb reads at a stop.
1345
- *
1346
- * A slider in any binding is these three answers and the track's own members: its thumb stands
1347
- * at `valueAt` of the pinned instant, its fill runs from `nowValue` to the thumb, and it is held,
1348
- * under the word `layers.timeUnavailable`, where `startMs` is null. The words a tick and a readout
1349
- * carry are keys of the elements' `layers` section, so every binding says them in the reader's
1350
- * language through the same copy.
1351
- */
1352
-
1353
- /** The words of the elements' `layers` section a tick of a time slider is labelled with. */
1354
- type TickWord = "timeMinus2d" | "timeNow" | "timePlus2d" | "timePlus5d";
1355
- /** TimeSliderTick is one tick of a time slider's track. */
1356
- interface TimeSliderTick {
1357
- /** The stop the tick stands at. */
1358
- readonly value: number;
1359
- /** The word of the elements' `layers` section the tick is labelled with, or null for none. */
1360
- readonly word: TickWord | null;
1361
- }
1362
- /**
1363
- * timeSliderTicks answers the ticks of a time slider: one at the stop of the clock's reading and
1364
- * one at every whole day either side of it, as far as the track runs, in the track's order. A
1365
- * tick of a labelled day carries its word, `timeMinus2d`, `timeNow`, `timePlus2d` or
1366
- * `timePlus5d`, and every other tick none.
1367
- *
1368
- * The ticks are the same for every reading, since the track's stops are hours and its length is
1369
- * no clock's: a track of no instant ticks as any other.
1370
- *
1371
- * @param timeWindow The track, as `timeSliderWindow` lays it out.
1372
- *
1373
- * @example
1374
- * ```ts
1375
- * import { timeSliderTicks, timeSliderWindow } from "@mountaya/elements/layers";
1376
- *
1377
- * const ticks = timeSliderTicks(timeSliderWindow(Date.now()));
1378
- * ```
1379
- */
1380
- declare const timeSliderTicks: (timeWindow: Pick<TimeSliderWindow, "maxValue" | "nowValue">) => readonly TimeSliderTick[];
1381
- /**
1382
- * timeSliderRelease answers what a release of a time slider's thumb on a stop commits: the
1383
- * instant the stop stands for as the pin, or no pin on the stop of the clock's reading, so every
1384
- * surface that reads the time follows the clock again rather than holding the moment it read at
1385
- * the release.
1386
- *
1387
- * A track of no instant commits nothing: a stop of it names no time to show.
1388
- *
1389
- * @param timeWindow The track, as `timeSliderWindow` lays it out.
1390
- * @param value The stop the thumb is let go on.
1391
- * @returns `{ pin }`, the instant to pin or null for none, which a binding hands to the layers
1392
- * selection's `setInstant`; or null where the release commits nothing.
1393
- *
1394
- * @example
1395
- * ```ts
1396
- * import { type LayersSelectionEngine, timeSliderRelease, timeSliderWindow } from "@mountaya/elements/layers";
1397
- *
1398
- * declare const selection: LayersSelectionEngine;
1399
- * declare const value: number;
1400
- *
1401
- * const released = timeSliderRelease(timeSliderWindow(Date.now()), value);
1402
- * if (released !== null) {
1403
- * selection.setInstant(released.pin);
1404
- * }
1405
- * ```
1406
- */
1407
- declare const timeSliderRelease: (timeWindow: Pick<TimeSliderWindow, "dateAt" | "nowValue">, value: number) => {
1408
- readonly pin: Date | null;
1409
- } | null;
1410
- /**
1411
- * TimeSliderReadout is what a time slider's thumb reads at a stop: the instant it stands for, and
1412
- * its offset from the stop of the clock's reading as a word of the elements' `layers` section with
1413
- * its count.
1414
- *
1415
- * The word is `timeNow`, with no count, at the stop of the clock's reading, and otherwise a counted
1416
- * word, `timeHoursAhead` or `timeHoursAgo` under a day and `timeDaysAhead` or `timeDaysAgo` from a
1417
- * day on, with the whole hours or days as its count, never below one.
1418
- */
1419
- type TimeSliderReadout = {
1420
- /** The instant the stop stands for, or null for a stop of a track of no instant. */
1421
- readonly instant: Date | null;
1422
- /** The word the stop of the clock's reading reads. */
1423
- readonly word: "timeNow";
1424
- /** No count: the word counts nothing. */
1425
- readonly count: null;
1426
- } | {
1427
- /** The instant the stop stands for, or null for a stop of a track of no instant. */
1428
- readonly instant: Date | null;
1429
- /** The counted word the offset reads, ahead of the clock's reading or behind it. */
1430
- readonly word: "timeDaysAgo" | "timeDaysAhead" | "timeHoursAgo" | "timeHoursAhead";
1431
- /** The whole hours or days of the offset, never below one. */
1432
- readonly count: number;
1433
- };
1434
- /**
1435
- * timeSliderReadout answers what a time slider's thumb reads at a stop: the instant the stop
1436
- * stands for, and its offset from the stop of the clock's reading, in hours.
1437
- *
1438
- * No offset reads `timeNow`. An offset under a day reads its whole hours, and one of a day or
1439
- * more its whole days, truncated toward the clock's reading, so 47 hours ahead reads one day
1440
- * ahead: a day here is 24 stops, never a calendar day, which is why the words are counted ones
1441
- * ("in 1 day") and never a platform's relative words ("tomorrow"). A stop of a track of no instant
1442
- * reads its offset alone.
1443
- *
1444
- * A binding writes the tooltip as the instant through the locale services (the reader's weekday,
1445
- * day, month, hour and minute in the device's time zone), then ` · `, then the offset's word.
1446
- *
1447
- * @param timeWindow The track, as `timeSliderWindow` lays it out.
1448
- * @param value The stop the thumb stands at.
1449
- *
1450
- * @example
1451
- * ```ts
1452
- * import { timeSliderReadout, timeSliderWindow } from "@mountaya/elements/layers";
1453
- * import { elementsStrings } from "@mountaya/elements/i18n";
1454
- *
1455
- * const readout = timeSliderReadout(timeSliderWindow(Date.now()), 77);
1456
- * const words = elementsStrings.en.layers;
1457
- * const said = readout.word === "timeNow" ? words.timeNow : words[readout.word](readout.count);
1458
- * ```
1459
- */
1460
- declare const timeSliderReadout: (timeWindow: Pick<TimeSliderWindow, "dateAt" | "nowValue">, value: number) => TimeSliderReadout;
1461
-
1462
- /**
1463
- * The zone tile contract: the source-layer name, and the severity palette.
1464
- *
1465
- * As with itineraries, a manifest layer's `id` is unstable and the `source_layer` is the
1466
- * stable thing to match on. A zone is a single polygon whatever mode drew it, so zone tiles
1467
- * carry exactly one source-layer.
1468
- */
1469
-
1470
- /**
1471
- * The source-layer the zone vector tiles emit: `fills` carries the polygon every zone mode
1472
- * draws. A manifest may style it more than once (an area and its outline), and every one of
1473
- * those layers names this source-layer.
1474
- */
1475
- declare const ZONE_FILL_SOURCE_LAYER = "fills";
1476
- /**
1477
- * zoneLevelColors maps each zone severity level to the hex colour its tile geometry
1478
- * paints in.
1479
- *
1480
- * The platform bakes the same mapping into the tile layer paint, so this is what a live
1481
- * draft, a legend swatch, or a zone you render yourself must use to match the served
1482
- * tiles. A divergence paints a persisted zone and an unsaved one of the same level in two
1483
- * different colours.
1484
- *
1485
- * Typed as `Record<ZoneLevel, string>` against the published enum, so a level added to the
1486
- * contract surfaces here as a compile error rather than a silently missing colour. Note the
1487
- * resolved level is spelled `resolved`, not `success`.
1488
- */
1489
- declare const zoneLevelColors: Readonly<Record<RestSchema.ZoneLevel, string>>;
1490
- /**
1491
- * ZONE_DEFAULT_COLOR is what a data-driven `match` on `level` should coalesce to for a
1492
- * feature whose level is unset or outside the known set. It is its own constant so the
1493
- * fallback reads as a deliberate choice rather than a copy of the info hex.
1494
- */
1495
- declare const ZONE_DEFAULT_COLOR: string;
1496
-
1497
- /**
1498
- * PaintedLayers is the part of a tile specification this module reads: every source, and the
1499
- * zoom window each of its layers declares. A `/v1/tile-layers` overlay and a Tile API specification
1500
- * both have it, which is why the argument names the shape rather than either type.
1501
- */
1502
- interface PaintedLayers {
1503
- readonly layers: ReadonlyArray<{
1504
- readonly zoom_max: number;
1505
- readonly zoom_min: number;
1506
- }>;
1507
- }
1508
- /**
1509
- * paintZoomRange is the zoom window a specification PAINTS across, which is its layers' and not
1510
- * its sources'.
1511
- *
1512
- * A source's `zoom_min` and `zoom_max` say where its tiles are served. Past a source's `zoom_max`
1513
- * the map overzooms the deepest tile it holds, and a layer drawing from that source keeps
1514
- * painting to its own `zoom_max`: a points-of-interest source served to zoom 15 carries layers
1515
- * drawn to 22, as terrain served to 14 does. So the window runs from the lowest `zoom_min` to the
1516
- * highest `zoom_max` across every layer of every source. A source's own `zoom_max` belongs where
1517
- * the renderer reads it, as that source's `maxzoom`, and it bounds nothing here.
1518
- *
1519
- * `null` for sources that hold no layer: nothing paints at any zoom, so a camera eased into the
1520
- * window would have nowhere to go.
1521
- */
1522
- declare const paintZoomRange: (sources: readonly PaintedLayers[]) => {
1523
- readonly maxzoom: number;
1524
- readonly minzoom: number;
1525
- } | null;
1526
- /**
1527
- * zoomIntoRange answers the zoom a camera moves to so that a window of zooms paints, or null where
1528
- * it stays where it is.
1529
- *
1530
- * A layer outside its zoom window paints nothing and reports nothing, so a camera below the window
1531
- * moves up to its floor and one above it down to its ceiling: the nearer edge, the shortest move
1532
- * that shows the content. A camera inside the window, its edges included, stays, and so does any
1533
- * camera before a window with an end that is no finite number or a floor above its ceiling, which
1534
- * no move satisfies.
1535
- *
1536
- * @param zoom The camera's zoom.
1537
- * @param window The zoom window a specification paints across ({@link paintZoomRange}), or one a
1538
- * layer states.
1539
- * @returns The zoom to move to, or null to stay.
1540
- *
1541
- * @example
1542
- * ```ts
1543
- * import { zoomIntoRange } from "@mountaya/elements/layers";
1544
- *
1545
- * zoomIntoRange(6, { maxzoom: 14, minzoom: 10 }); // 10
1546
- * zoomIntoRange(12, { maxzoom: 14, minzoom: 10 }); // null
1547
- * ```
1548
- */
1549
- declare const zoomIntoRange: (zoom: number, window: {
1550
- readonly maxzoom: number;
1551
- readonly minzoom: number;
1552
- }) => number | null;
1553
-
1554
- export { DIRECTIONS_LINE_COLOR, ENRICHMENT_CATEGORY_SLUG, ISOCHRONE_FILL_OPACITY, ISOCHRONE_LINE_COLOR, ISOCHRONE_LINE_WIDTH, ISOCHRONE_RAMP, ITINERARY_CASING_COLOR, ITINERARY_CASING_LAYER_SUFFIX, ITINERARY_CASING_OPACITY, ITINERARY_CASING_WIDTH_STOPS, ITINERARY_DASHED_OPACITY, ITINERARY_ENDPOINT_ICONS, ITINERARY_LINE_DASHARRAY, ITINERARY_LINE_SOURCE_LAYER, ITINERARY_LINE_WIDTH_STOPS, ITINERARY_POINT_SOURCE_LAYER, ITINERARY_RESTRICTION_SOURCE_LAYER, LayersSelectionEngine, MATRIX_LINE_COLOR, MATRIX_LINE_MAX_WIDTH, MATRIX_LINE_MIN_WIDTH, MATRIX_LINE_OPACITY, PLACE_POINT_COLOR, POIS_OVERLAY_SLUG, POI_RESULT_POINT_COLOR, RESULT_POINT_RADIUS, RESULT_POINT_STROKE_COLOR, RESULT_POINT_STROKE_WIDTH, ReadoutEngine, STREETVIEW_MIN_ZOOM, SUGGESTION_ALTERNATIVE_COLOR, SUGGESTION_ALTERNATIVE_DASHARRAY, SUGGESTION_ALTERNATIVE_OPACITY, SUGGESTION_CHOSEN_COLOR, TIME_WINDOW_FUTURE_HOURS, TIME_WINDOW_PAST_HOURS, ZONE_DEFAULT_COLOR, ZONE_FILL_SOURCE_LAYER, analysisProps, directionsToGeoJson, findOverlay, hoveredItinerary, isEnrichmentCategory, isItineraryCasingLayer, isochroneColor, isochronesToGeoJson, itineraryLineLayout, layersPanelPress, layersPanelSections, matrixLineWidth, matrixToGeoJson, omtCategoryToPoiEnum, overlayInstant, paintZoomRange, placesToGeoJson, poiCategoryStyles, poiPanelNoteZoom, poiPanelRows, poisToGeoJson, readoutRows, roadAccessIconLayerIdOf, suggestionsToGeoJson, timeSliderReadout, timeSliderRelease, timeSliderTicks, timeSliderWindow, timestampedSources, zoneLevelColors, zoomIntoRange };
1555
- export type { HoveredItinerary, LayersPanelCategory, LayersPanelChoice, LayersPanelInput, LayersPanelPress, LayersPanelRow, LayersPanelSection, LayersSelectionEngineOptions, LayersSelectionSnapshot, LayersSelectionTarget, OverlayKind, PaintedLayers, PoiCategoryStyle, PoiPanelRow, PoiPanelRows, PoiPanelRowsInput, ReadoutCategoryLabel, ReadoutEngineOptions, ReadoutInput, ReadoutMeasure, ReadoutOpen, ReadoutReading, ReadoutRow, TimeSliderReadout, TimeSliderTick, TimeSliderWindow, TimestampedSource };
1
+ import { $ as ITINERARY_POINT_SOURCE_LAYER, A as PoiPanelRowsInput, At as SUGGESTION_ALTERNATIVE_COLOR, B as LayersPanelRow, Bt as LayersSelectionEngineOptions, C as ReadoutRow, Ct as MATRIX_LINE_MIN_WIDTH, D as poiCategoryStyles, Dt as RESULT_POINT_RADIUS, E as omtCategoryToPoiEnum, Et as POI_RESULT_POINT_COLOR, F as overlayInstant, Ft as matrixLineWidth, G as ITINERARY_CASING_LAYER_SUFFIX, H as layersPanelPress, Ht as LayersSelectionTarget, I as LayersPanelCategory, It as ReadoutEngine, J as ITINERARY_DASHED_OPACITY, K as ITINERARY_CASING_OPACITY, L as LayersPanelChoice, Lt as ReadoutEngineOptions, M as poiPanelRows, Mt as SUGGESTION_ALTERNATIVE_OPACITY, N as OverlayKind, Nt as SUGGESTION_CHOSEN_COLOR, O as PoiPanelRow, Ot as RESULT_POINT_STROKE_COLOR, P as findOverlay, Pt as isochroneColor, Q as ITINERARY_LINE_WIDTH_STOPS, R as LayersPanelInput, Rt as ReadoutOpen, S as ReadoutReading, St as MATRIX_LINE_MAX_WIDTH, T as PoiCategoryStyle, Tt as PLACE_POINT_COLOR, U as layersPanelSections, V as LayersPanelSection, Vt as LayersSelectionSnapshot, W as ITINERARY_CASING_COLOR, X as ITINERARY_LINE_DASHARRAY, Y as ITINERARY_ENDPOINT_ICONS, Z as ITINERARY_LINE_SOURCE_LAYER, _ as timestampedSources, _t as ISOCHRONE_FILL_OPACITY, a as ZONE_FILL_SOURCE_LAYER, at as hoveredItinerary, b as ReadoutInput, bt as ISOCHRONE_RAMP, c as TimeSliderTick, ct as isochronesToGeoJson, d as timeSliderTicks, dt as poisToGeoJson, et as ITINERARY_RESTRICTION_SOURCE_LAYER, f as TIME_WINDOW_FUTURE_HOURS, ft as suggestionsToGeoJson, g as TimestampedSource, gt as DIRECTIONS_LINE_COLOR, h as timeSliderWindow, ht as isEnrichmentCategory, i as ZONE_DEFAULT_COLOR, it as HoveredItinerary, j as poiPanelNoteZoom, jt as SUGGESTION_ALTERNATIVE_DASHARRAY, k as PoiPanelRows, kt as RESULT_POINT_STROKE_WIDTH, l as timeSliderReadout, lt as matrixToGeoJson, m as TimeSliderWindow, mt as POIS_OVERLAY_SLUG, n as paintZoomRange, nt as itineraryLineLayout, o as zoneLevelColors, ot as analysisProps, p as TIME_WINDOW_PAST_HOURS, pt as ENRICHMENT_CATEGORY_SLUG, q as ITINERARY_CASING_WIDTH_STOPS, r as zoomIntoRange, rt as roadAccessIconLayerIdOf, s as TimeSliderReadout, st as directionsToGeoJson, t as PaintedLayers, tt as isItineraryCasingLayer, u as timeSliderRelease, ut as placesToGeoJson, v as STREETVIEW_MIN_ZOOM, vt as ISOCHRONE_LINE_COLOR, w as readoutRows, wt as MATRIX_LINE_OPACITY, x as ReadoutMeasure, xt as MATRIX_LINE_COLOR, y as ReadoutCategoryLabel, yt as ISOCHRONE_LINE_WIDTH, z as LayersPanelPress, zt as LayersSelectionEngine } from "../chunk-B0YROiZh.cjs";
2
+ import { a as tileSourceLayerRanks, i as rankForTileLayer, n as POI_SOURCE_LAYER_NAMES, r as poiSourceLayers, t as LayerRank } from "../chunk-Bq_WHTfd.cjs";
3
+ export { DIRECTIONS_LINE_COLOR, ENRICHMENT_CATEGORY_SLUG, type HoveredItinerary, ISOCHRONE_FILL_OPACITY, ISOCHRONE_LINE_COLOR, ISOCHRONE_LINE_WIDTH, ISOCHRONE_RAMP, ITINERARY_CASING_COLOR, ITINERARY_CASING_LAYER_SUFFIX, ITINERARY_CASING_OPACITY, ITINERARY_CASING_WIDTH_STOPS, ITINERARY_DASHED_OPACITY, ITINERARY_ENDPOINT_ICONS, ITINERARY_LINE_DASHARRAY, ITINERARY_LINE_SOURCE_LAYER, ITINERARY_LINE_WIDTH_STOPS, ITINERARY_POINT_SOURCE_LAYER, ITINERARY_RESTRICTION_SOURCE_LAYER, LayerRank, type LayersPanelCategory, type LayersPanelChoice, type LayersPanelInput, type LayersPanelPress, type LayersPanelRow, type LayersPanelSection, LayersSelectionEngine, type LayersSelectionEngineOptions, type LayersSelectionSnapshot, type LayersSelectionTarget, MATRIX_LINE_COLOR, MATRIX_LINE_MAX_WIDTH, MATRIX_LINE_MIN_WIDTH, MATRIX_LINE_OPACITY, type OverlayKind, PLACE_POINT_COLOR, POIS_OVERLAY_SLUG, POI_RESULT_POINT_COLOR, POI_SOURCE_LAYER_NAMES, type PaintedLayers, type PoiCategoryStyle, type PoiPanelRow, type PoiPanelRows, type PoiPanelRowsInput, RESULT_POINT_RADIUS, RESULT_POINT_STROKE_COLOR, RESULT_POINT_STROKE_WIDTH, type ReadoutCategoryLabel, ReadoutEngine, type ReadoutEngineOptions, type ReadoutInput, type ReadoutMeasure, type ReadoutOpen, type ReadoutReading, type ReadoutRow, STREETVIEW_MIN_ZOOM, SUGGESTION_ALTERNATIVE_COLOR, SUGGESTION_ALTERNATIVE_DASHARRAY, SUGGESTION_ALTERNATIVE_OPACITY, SUGGESTION_CHOSEN_COLOR, TIME_WINDOW_FUTURE_HOURS, TIME_WINDOW_PAST_HOURS, type TimeSliderReadout, type TimeSliderTick, type TimeSliderWindow, type TimestampedSource, ZONE_DEFAULT_COLOR, ZONE_FILL_SOURCE_LAYER, analysisProps, directionsToGeoJson, findOverlay, hoveredItinerary, isEnrichmentCategory, isItineraryCasingLayer, isochroneColor, isochronesToGeoJson, itineraryLineLayout, layersPanelPress, layersPanelSections, matrixLineWidth, matrixToGeoJson, omtCategoryToPoiEnum, overlayInstant, paintZoomRange, placesToGeoJson, poiCategoryStyles, poiPanelNoteZoom, poiPanelRows, poiSourceLayers, poisToGeoJson, rankForTileLayer, readoutRows, roadAccessIconLayerIdOf, suggestionsToGeoJson, tileSourceLayerRanks, timeSliderReadout, timeSliderRelease, timeSliderTicks, timeSliderWindow, timestampedSources, zoneLevelColors, zoomIntoRange };