@mountaya/elements 0.0.0-stage → 0.1.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 (831) hide show
  1. package/CHANGELOG.md +235 -0
  2. package/LICENCE.fr.txt +280 -0
  3. package/LICENSE.txt +262 -0
  4. package/README.md +1509 -2
  5. package/THIRD-PARTY-NOTICES.txt +103 -0
  6. package/dist/accentColor-GNKBD2CW.js +4 -0
  7. package/dist/accentColor-GNKBD2CW.js.map +1 -0
  8. package/dist/accentColor-VX2JSMGE.cjs +17 -0
  9. package/dist/accentColor-VX2JSMGE.cjs.map +1 -0
  10. package/dist/agent/index.cjs +1964 -0
  11. package/dist/agent/index.cjs.map +1 -0
  12. package/dist/agent/index.d.cts +2016 -0
  13. package/dist/agent/index.d.ts +2016 -0
  14. package/dist/agent/index.js +1937 -0
  15. package/dist/agent/index.js.map +1 -0
  16. package/dist/amenities-B3-qAjxu.d.cts +160 -0
  17. package/dist/amenities-B3-qAjxu.d.ts +160 -0
  18. package/dist/bundle-Je5zsRFg.d.cts +222 -0
  19. package/dist/bundle-xYrrbJTH.d.ts +222 -0
  20. package/dist/camera/index.cjs +3477 -0
  21. package/dist/camera/index.cjs.map +1 -0
  22. package/dist/camera/index.d.cts +1751 -0
  23. package/dist/camera/index.d.ts +1751 -0
  24. package/dist/camera/index.js +3328 -0
  25. package/dist/camera/index.js.map +1 -0
  26. package/dist/camera-BrFLU1DH.d.cts +549 -0
  27. package/dist/camera-C48Ykaxv.d.ts +549 -0
  28. package/dist/chunk-23PFRRB6.js +3 -0
  29. package/dist/chunk-23PFRRB6.js.map +1 -0
  30. package/dist/chunk-2GI5SAH2.js +71 -0
  31. package/dist/chunk-2GI5SAH2.js.map +1 -0
  32. package/dist/chunk-2MQK6A74.js +39 -0
  33. package/dist/chunk-2MQK6A74.js.map +1 -0
  34. package/dist/chunk-2RE7R4LD.js +73 -0
  35. package/dist/chunk-2RE7R4LD.js.map +1 -0
  36. package/dist/chunk-3JZQKN4O.js +6 -0
  37. package/dist/chunk-3JZQKN4O.js.map +1 -0
  38. package/dist/chunk-3NDXVUUI.js +50 -0
  39. package/dist/chunk-3NDXVUUI.js.map +1 -0
  40. package/dist/chunk-3R4GFTUM.cjs +59 -0
  41. package/dist/chunk-3R4GFTUM.cjs.map +1 -0
  42. package/dist/chunk-3RVUQ6JN.cjs +22 -0
  43. package/dist/chunk-3RVUQ6JN.cjs.map +1 -0
  44. package/dist/chunk-4F6BJMJC.cjs +49 -0
  45. package/dist/chunk-4F6BJMJC.cjs.map +1 -0
  46. package/dist/chunk-4NWQD4BX.js +132 -0
  47. package/dist/chunk-4NWQD4BX.js.map +1 -0
  48. package/dist/chunk-5K2MH3R6.js +10 -0
  49. package/dist/chunk-5K2MH3R6.js.map +1 -0
  50. package/dist/chunk-6ACRNQQQ.cjs +8 -0
  51. package/dist/chunk-6ACRNQQQ.cjs.map +1 -0
  52. package/dist/chunk-6D26E3IA.js +66 -0
  53. package/dist/chunk-6D26E3IA.js.map +1 -0
  54. package/dist/chunk-6ESAW35P.cjs +80 -0
  55. package/dist/chunk-6ESAW35P.cjs.map +1 -0
  56. package/dist/chunk-6LIW2A5M.cjs +1176 -0
  57. package/dist/chunk-6LIW2A5M.cjs.map +1 -0
  58. package/dist/chunk-6OTTWVCA.js +57 -0
  59. package/dist/chunk-6OTTWVCA.js.map +1 -0
  60. package/dist/chunk-6VROJ4UG.js +862 -0
  61. package/dist/chunk-6VROJ4UG.js.map +1 -0
  62. package/dist/chunk-6Y7FTGO4.js +23 -0
  63. package/dist/chunk-6Y7FTGO4.js.map +1 -0
  64. package/dist/chunk-75I4CG64.js +104 -0
  65. package/dist/chunk-75I4CG64.js.map +1 -0
  66. package/dist/chunk-7CUBXHAH.cjs +14 -0
  67. package/dist/chunk-7CUBXHAH.cjs.map +1 -0
  68. package/dist/chunk-7GTCURVY.js +52 -0
  69. package/dist/chunk-7GTCURVY.js.map +1 -0
  70. package/dist/chunk-7IWOL6AM.cjs +100 -0
  71. package/dist/chunk-7IWOL6AM.cjs.map +1 -0
  72. package/dist/chunk-7QN7M667.cjs +151 -0
  73. package/dist/chunk-7QN7M667.cjs.map +1 -0
  74. package/dist/chunk-A6KQDKLM.cjs +1197 -0
  75. package/dist/chunk-A6KQDKLM.cjs.map +1 -0
  76. package/dist/chunk-A77EA67G.js +354 -0
  77. package/dist/chunk-A77EA67G.js.map +1 -0
  78. package/dist/chunk-AFKOABJ4.cjs +7194 -0
  79. package/dist/chunk-AFKOABJ4.cjs.map +1 -0
  80. package/dist/chunk-AG6JV5Z2.cjs +183 -0
  81. package/dist/chunk-AG6JV5Z2.cjs.map +1 -0
  82. package/dist/chunk-APBK7NMS.js +30 -0
  83. package/dist/chunk-APBK7NMS.js.map +1 -0
  84. package/dist/chunk-AWO5YA7A.cjs +33 -0
  85. package/dist/chunk-AWO5YA7A.cjs.map +1 -0
  86. package/dist/chunk-AZATU6QW.js +108 -0
  87. package/dist/chunk-AZATU6QW.js.map +1 -0
  88. package/dist/chunk-BD2U3WST.cjs +623 -0
  89. package/dist/chunk-BD2U3WST.cjs.map +1 -0
  90. package/dist/chunk-BHBEOU6L.cjs +65 -0
  91. package/dist/chunk-BHBEOU6L.cjs.map +1 -0
  92. package/dist/chunk-CNOSNYNE.js +8 -0
  93. package/dist/chunk-CNOSNYNE.js.map +1 -0
  94. package/dist/chunk-CW3EFR4O.js +12 -0
  95. package/dist/chunk-CW3EFR4O.js.map +1 -0
  96. package/dist/chunk-DASVRNBK.js +7187 -0
  97. package/dist/chunk-DASVRNBK.js.map +1 -0
  98. package/dist/chunk-DJ6LCKYP.js +42 -0
  99. package/dist/chunk-DJ6LCKYP.js.map +1 -0
  100. package/dist/chunk-E5FHQAIO.cjs +45 -0
  101. package/dist/chunk-E5FHQAIO.cjs.map +1 -0
  102. package/dist/chunk-EOML5OTY.cjs +360 -0
  103. package/dist/chunk-EOML5OTY.cjs.map +1 -0
  104. package/dist/chunk-EP5CASHL.js +613 -0
  105. package/dist/chunk-EP5CASHL.js.map +1 -0
  106. package/dist/chunk-EP5OEEVZ.cjs +14 -0
  107. package/dist/chunk-EP5OEEVZ.cjs.map +1 -0
  108. package/dist/chunk-EUXI3FGQ.js +150 -0
  109. package/dist/chunk-EUXI3FGQ.js.map +1 -0
  110. package/dist/chunk-EWFSHCOS.js +40 -0
  111. package/dist/chunk-EWFSHCOS.js.map +1 -0
  112. package/dist/chunk-EX2C5K2T.cjs +25 -0
  113. package/dist/chunk-EX2C5K2T.cjs.map +1 -0
  114. package/dist/chunk-FEXWDQIZ.cjs +8 -0
  115. package/dist/chunk-FEXWDQIZ.cjs.map +1 -0
  116. package/dist/chunk-FEYBFY7H.cjs +358 -0
  117. package/dist/chunk-FEYBFY7H.cjs.map +1 -0
  118. package/dist/chunk-FRGAV6N6.cjs +34 -0
  119. package/dist/chunk-FRGAV6N6.cjs.map +1 -0
  120. package/dist/chunk-G5DHP5VF.js +6 -0
  121. package/dist/chunk-G5DHP5VF.js.map +1 -0
  122. package/dist/chunk-G5W2UHV2.js +99 -0
  123. package/dist/chunk-G5W2UHV2.js.map +1 -0
  124. package/dist/chunk-G7OP7O2C.cjs +39 -0
  125. package/dist/chunk-G7OP7O2C.cjs.map +1 -0
  126. package/dist/chunk-GE6CFCAM.cjs +25 -0
  127. package/dist/chunk-GE6CFCAM.cjs.map +1 -0
  128. package/dist/chunk-GIFALLHI.cjs +111 -0
  129. package/dist/chunk-GIFALLHI.cjs.map +1 -0
  130. package/dist/chunk-GLFET5GM.js +129 -0
  131. package/dist/chunk-GLFET5GM.js.map +1 -0
  132. package/dist/chunk-GQ6UFPFM.js +22 -0
  133. package/dist/chunk-GQ6UFPFM.js.map +1 -0
  134. package/dist/chunk-GQJWVMXS.js +129 -0
  135. package/dist/chunk-GQJWVMXS.js.map +1 -0
  136. package/dist/chunk-GVVJPUKC.js +80 -0
  137. package/dist/chunk-GVVJPUKC.js.map +1 -0
  138. package/dist/chunk-GZ2HOCQ2.cjs +134 -0
  139. package/dist/chunk-GZ2HOCQ2.cjs.map +1 -0
  140. package/dist/chunk-HCBOHXWP.js +37 -0
  141. package/dist/chunk-HCBOHXWP.js.map +1 -0
  142. package/dist/chunk-IBQJDVHF.cjs +281 -0
  143. package/dist/chunk-IBQJDVHF.cjs.map +1 -0
  144. package/dist/chunk-ISLB6Y5Q.cjs +106 -0
  145. package/dist/chunk-ISLB6Y5Q.cjs.map +1 -0
  146. package/dist/chunk-J55CRR4F.js +105 -0
  147. package/dist/chunk-J55CRR4F.js.map +1 -0
  148. package/dist/chunk-JBG6Z6MQ.cjs +28 -0
  149. package/dist/chunk-JBG6Z6MQ.cjs.map +1 -0
  150. package/dist/chunk-K3RQOZRU.js +61 -0
  151. package/dist/chunk-K3RQOZRU.js.map +1 -0
  152. package/dist/chunk-KDJYS4GB.cjs +703 -0
  153. package/dist/chunk-KDJYS4GB.cjs.map +1 -0
  154. package/dist/chunk-KMCAHUZM.cjs +4 -0
  155. package/dist/chunk-KMCAHUZM.cjs.map +1 -0
  156. package/dist/chunk-KUCBNPC6.js +87 -0
  157. package/dist/chunk-KUCBNPC6.js.map +1 -0
  158. package/dist/chunk-KV6UE5A4.js +50 -0
  159. package/dist/chunk-KV6UE5A4.js.map +1 -0
  160. package/dist/chunk-L6TZ2HQR.cjs +18 -0
  161. package/dist/chunk-L6TZ2HQR.cjs.map +1 -0
  162. package/dist/chunk-L7QHHGG2.cjs +141 -0
  163. package/dist/chunk-L7QHHGG2.cjs.map +1 -0
  164. package/dist/chunk-LHK3Y2AL.js +271 -0
  165. package/dist/chunk-LHK3Y2AL.js.map +1 -0
  166. package/dist/chunk-LO5RYRBH.cjs +6317 -0
  167. package/dist/chunk-LO5RYRBH.cjs.map +1 -0
  168. package/dist/chunk-LS5SJMUO.cjs +194 -0
  169. package/dist/chunk-LS5SJMUO.cjs.map +1 -0
  170. package/dist/chunk-LUGTMZFN.cjs +42 -0
  171. package/dist/chunk-LUGTMZFN.cjs.map +1 -0
  172. package/dist/chunk-LVUQU6D5.js +32 -0
  173. package/dist/chunk-LVUQU6D5.js.map +1 -0
  174. package/dist/chunk-M2QRC2GZ.js +166 -0
  175. package/dist/chunk-M2QRC2GZ.js.map +1 -0
  176. package/dist/chunk-M6QJYQIM.cjs +53 -0
  177. package/dist/chunk-M6QJYQIM.cjs.map +1 -0
  178. package/dist/chunk-MGCPH5EO.js +12 -0
  179. package/dist/chunk-MGCPH5EO.js.map +1 -0
  180. package/dist/chunk-MLVUWEZR.cjs +474 -0
  181. package/dist/chunk-MLVUWEZR.cjs.map +1 -0
  182. package/dist/chunk-MTAMJMZL.cjs +707 -0
  183. package/dist/chunk-MTAMJMZL.cjs.map +1 -0
  184. package/dist/chunk-MXL5AT3N.js +48 -0
  185. package/dist/chunk-MXL5AT3N.js.map +1 -0
  186. package/dist/chunk-MYEQSESM.cjs +75 -0
  187. package/dist/chunk-MYEQSESM.cjs.map +1 -0
  188. package/dist/chunk-N3VPF6ZD.js +427 -0
  189. package/dist/chunk-N3VPF6ZD.js.map +1 -0
  190. package/dist/chunk-N6VUAIGI.js +7 -0
  191. package/dist/chunk-N6VUAIGI.js.map +1 -0
  192. package/dist/chunk-N6XRLUN6.js +6286 -0
  193. package/dist/chunk-N6XRLUN6.js.map +1 -0
  194. package/dist/chunk-NOGDOZIT.cjs +114 -0
  195. package/dist/chunk-NOGDOZIT.cjs.map +1 -0
  196. package/dist/chunk-NUWXEISH.cjs +10 -0
  197. package/dist/chunk-NUWXEISH.cjs.map +1 -0
  198. package/dist/chunk-NZCZHXYN.cjs +161 -0
  199. package/dist/chunk-NZCZHXYN.cjs.map +1 -0
  200. package/dist/chunk-ODROSWQX.cjs +53 -0
  201. package/dist/chunk-ODROSWQX.cjs.map +1 -0
  202. package/dist/chunk-OE36AYKG.cjs +82 -0
  203. package/dist/chunk-OE36AYKG.cjs.map +1 -0
  204. package/dist/chunk-OLON7MO6.cjs +437 -0
  205. package/dist/chunk-OLON7MO6.cjs.map +1 -0
  206. package/dist/chunk-PBUOR2IT.js +277 -0
  207. package/dist/chunk-PBUOR2IT.js.map +1 -0
  208. package/dist/chunk-PC2ELXFF.cjs +225 -0
  209. package/dist/chunk-PC2ELXFF.cjs.map +1 -0
  210. package/dist/chunk-PCSGXLOC.js +71 -0
  211. package/dist/chunk-PCSGXLOC.js.map +1 -0
  212. package/dist/chunk-PFNMP6FQ.js +56 -0
  213. package/dist/chunk-PFNMP6FQ.js.map +1 -0
  214. package/dist/chunk-PIWSZTIP.js +690 -0
  215. package/dist/chunk-PIWSZTIP.js.map +1 -0
  216. package/dist/chunk-PKWHJ2GI.js +136 -0
  217. package/dist/chunk-PKWHJ2GI.js.map +1 -0
  218. package/dist/chunk-PLMVBX2A.cjs +76 -0
  219. package/dist/chunk-PLMVBX2A.cjs.map +1 -0
  220. package/dist/chunk-PM3XCD2G.cjs +113 -0
  221. package/dist/chunk-PM3XCD2G.cjs.map +1 -0
  222. package/dist/chunk-QAL4GZO7.cjs +143 -0
  223. package/dist/chunk-QAL4GZO7.cjs.map +1 -0
  224. package/dist/chunk-QDB2SEA2.js +74 -0
  225. package/dist/chunk-QDB2SEA2.js.map +1 -0
  226. package/dist/chunk-QOV7UNUN.js +25 -0
  227. package/dist/chunk-QOV7UNUN.js.map +1 -0
  228. package/dist/chunk-QQUWYLSF.cjs +50 -0
  229. package/dist/chunk-QQUWYLSF.cjs.map +1 -0
  230. package/dist/chunk-QUMBH3U4.cjs +9 -0
  231. package/dist/chunk-QUMBH3U4.cjs.map +1 -0
  232. package/dist/chunk-R4KA7OFQ.js +12 -0
  233. package/dist/chunk-R4KA7OFQ.js.map +1 -0
  234. package/dist/chunk-RBSGAZQQ.js +17 -0
  235. package/dist/chunk-RBSGAZQQ.js.map +1 -0
  236. package/dist/chunk-RM5YJWZI.js +46 -0
  237. package/dist/chunk-RM5YJWZI.js.map +1 -0
  238. package/dist/chunk-ROKNKXA4.cjs +8 -0
  239. package/dist/chunk-ROKNKXA4.cjs.map +1 -0
  240. package/dist/chunk-RQG6D546.cjs +75 -0
  241. package/dist/chunk-RQG6D546.cjs.map +1 -0
  242. package/dist/chunk-SG4YDD5L.cjs +74 -0
  243. package/dist/chunk-SG4YDD5L.cjs.map +1 -0
  244. package/dist/chunk-SNRCA7EO.js +56 -0
  245. package/dist/chunk-SNRCA7EO.js.map +1 -0
  246. package/dist/chunk-SO75R4WW.cjs +22 -0
  247. package/dist/chunk-SO75R4WW.cjs.map +1 -0
  248. package/dist/chunk-SP34NHFI.js +45 -0
  249. package/dist/chunk-SP34NHFI.js.map +1 -0
  250. package/dist/chunk-SSKSSBWJ.cjs +179 -0
  251. package/dist/chunk-SSKSSBWJ.cjs.map +1 -0
  252. package/dist/chunk-TB5663C2.js +1108 -0
  253. package/dist/chunk-TB5663C2.js.map +1 -0
  254. package/dist/chunk-TGH4NRES.js +220 -0
  255. package/dist/chunk-TGH4NRES.js.map +1 -0
  256. package/dist/chunk-TJ6ZPNID.js +189 -0
  257. package/dist/chunk-TJ6ZPNID.js.map +1 -0
  258. package/dist/chunk-U45T35N2.cjs +90 -0
  259. package/dist/chunk-U45T35N2.cjs.map +1 -0
  260. package/dist/chunk-UKVOPEZ2.js +442 -0
  261. package/dist/chunk-UKVOPEZ2.js.map +1 -0
  262. package/dist/chunk-UTB4NROA.cjs +887 -0
  263. package/dist/chunk-UTB4NROA.cjs.map +1 -0
  264. package/dist/chunk-UTW33B5V.js +6 -0
  265. package/dist/chunk-UTW33B5V.js.map +1 -0
  266. package/dist/chunk-UYUBSD2V.cjs +33 -0
  267. package/dist/chunk-UYUBSD2V.cjs.map +1 -0
  268. package/dist/chunk-V3JEP5AG.cjs +59 -0
  269. package/dist/chunk-V3JEP5AG.cjs.map +1 -0
  270. package/dist/chunk-VFAGJXHR.js +18 -0
  271. package/dist/chunk-VFAGJXHR.js.map +1 -0
  272. package/dist/chunk-VMEE57E5.cjs +58 -0
  273. package/dist/chunk-VMEE57E5.cjs.map +1 -0
  274. package/dist/chunk-VQVBEX3Y.cjs +113 -0
  275. package/dist/chunk-VQVBEX3Y.cjs.map +1 -0
  276. package/dist/chunk-VZDXX7TT.cjs +64 -0
  277. package/dist/chunk-VZDXX7TT.cjs.map +1 -0
  278. package/dist/chunk-WE5ZTI4D.js +346 -0
  279. package/dist/chunk-WE5ZTI4D.js.map +1 -0
  280. package/dist/chunk-WEFUVABP.js +19 -0
  281. package/dist/chunk-WEFUVABP.js.map +1 -0
  282. package/dist/chunk-WMU4LRKC.js +28 -0
  283. package/dist/chunk-WMU4LRKC.js.map +1 -0
  284. package/dist/chunk-WQ24RRHL.cjs +354 -0
  285. package/dist/chunk-WQ24RRHL.cjs.map +1 -0
  286. package/dist/chunk-WW4CGS7G.cjs +26 -0
  287. package/dist/chunk-WW4CGS7G.cjs.map +1 -0
  288. package/dist/chunk-WXE5WCTM.js +1144 -0
  289. package/dist/chunk-WXE5WCTM.js.map +1 -0
  290. package/dist/chunk-X23BGIYA.cjs +37 -0
  291. package/dist/chunk-X23BGIYA.cjs.map +1 -0
  292. package/dist/chunk-XEW4FTR2.js +98 -0
  293. package/dist/chunk-XEW4FTR2.js.map +1 -0
  294. package/dist/chunk-XIOI4IYW.js +167 -0
  295. package/dist/chunk-XIOI4IYW.js.map +1 -0
  296. package/dist/chunk-XLVPJ37V.cjs +44 -0
  297. package/dist/chunk-XLVPJ37V.cjs.map +1 -0
  298. package/dist/chunk-XOHAXXZA.cjs +51 -0
  299. package/dist/chunk-XOHAXXZA.cjs.map +1 -0
  300. package/dist/chunk-Y4NRIHK6.cjs +313 -0
  301. package/dist/chunk-Y4NRIHK6.cjs.map +1 -0
  302. package/dist/chunk-Y4YMMKL3.js +23 -0
  303. package/dist/chunk-Y4YMMKL3.js.map +1 -0
  304. package/dist/chunk-YJNYBVE3.cjs +14 -0
  305. package/dist/chunk-YJNYBVE3.cjs.map +1 -0
  306. package/dist/chunk-Z762QNQP.cjs +60 -0
  307. package/dist/chunk-Z762QNQP.cjs.map +1 -0
  308. package/dist/chunk-ZG5KMBOF.js +669 -0
  309. package/dist/chunk-ZG5KMBOF.js.map +1 -0
  310. package/dist/chunk-ZKONQEFA.js +344 -0
  311. package/dist/chunk-ZKONQEFA.js.map +1 -0
  312. package/dist/chunk-ZR5X7QMH.js +39 -0
  313. package/dist/chunk-ZR5X7QMH.js.map +1 -0
  314. package/dist/chunk-ZW4BJQ26.js +84 -0
  315. package/dist/chunk-ZW4BJQ26.js.map +1 -0
  316. package/dist/climbs-BhlWuu0x.d.ts +70 -0
  317. package/dist/climbs-DgBFwySV.d.cts +70 -0
  318. package/dist/collab/index.cjs +1283 -0
  319. package/dist/collab/index.cjs.map +1 -0
  320. package/dist/collab/index.d.cts +850 -0
  321. package/dist/collab/index.d.ts +850 -0
  322. package/dist/collab/index.js +1274 -0
  323. package/dist/collab/index.js.map +1 -0
  324. package/dist/data/index.cjs +132 -0
  325. package/dist/data/index.cjs.map +1 -0
  326. package/dist/data/index.d.cts +468 -0
  327. package/dist/data/index.d.ts +468 -0
  328. package/dist/data/index.js +15 -0
  329. package/dist/data/index.js.map +1 -0
  330. package/dist/editor/index.cjs +4506 -0
  331. package/dist/editor/index.cjs.map +1 -0
  332. package/dist/editor/index.d.cts +59 -0
  333. package/dist/editor/index.d.ts +59 -0
  334. package/dist/editor/index.js +4486 -0
  335. package/dist/editor/index.js.map +1 -0
  336. package/dist/elevationTiles-pmsb9wnU.d.cts +77 -0
  337. package/dist/elevationTiles-pmsb9wnU.d.ts +77 -0
  338. package/dist/errors/index.cjs +28 -0
  339. package/dist/errors/index.cjs.map +1 -0
  340. package/dist/errors/index.d.cts +125 -0
  341. package/dist/errors/index.d.ts +125 -0
  342. package/dist/errors/index.js +3 -0
  343. package/dist/errors/index.js.map +1 -0
  344. package/dist/geo/index.cjs +232 -0
  345. package/dist/geo/index.cjs.map +1 -0
  346. package/dist/geo/index.d.cts +821 -0
  347. package/dist/geo/index.d.ts +821 -0
  348. package/dist/geo/index.js +15 -0
  349. package/dist/geo/index.js.map +1 -0
  350. package/dist/geodesy-543qXKtI.d.cts +78 -0
  351. package/dist/geodesy-543qXKtI.d.ts +78 -0
  352. package/dist/geolocation-DDkQdWMN.d.cts +106 -0
  353. package/dist/geolocation-DDkQdWMN.d.ts +106 -0
  354. package/dist/i18n/fr/index.cjs +338 -0
  355. package/dist/i18n/fr/index.cjs.map +1 -0
  356. package/dist/i18n/fr/index.d.cts +25 -0
  357. package/dist/i18n/fr/index.d.ts +25 -0
  358. package/dist/i18n/fr/index.js +336 -0
  359. package/dist/i18n/fr/index.js.map +1 -0
  360. package/dist/i18n/index.cjs +464 -0
  361. package/dist/i18n/index.cjs.map +1 -0
  362. package/dist/i18n/index.d.cts +227 -0
  363. package/dist/i18n/index.d.ts +227 -0
  364. package/dist/i18n/index.js +430 -0
  365. package/dist/i18n/index.js.map +1 -0
  366. package/dist/icons/index.cjs +116 -0
  367. package/dist/icons/index.cjs.map +1 -0
  368. package/dist/icons/index.d.cts +457 -0
  369. package/dist/icons/index.d.ts +457 -0
  370. package/dist/icons/index.js +11 -0
  371. package/dist/icons/index.js.map +1 -0
  372. package/dist/index.cjs +1869 -0
  373. package/dist/index.cjs.map +1 -0
  374. package/dist/index.d.cts +251 -0
  375. package/dist/index.d.ts +251 -0
  376. package/dist/index.js +67 -0
  377. package/dist/index.js.map +1 -0
  378. package/dist/itinerary-Dp2ZnqgD.d.cts +178 -0
  379. package/dist/itinerary-Dp2ZnqgD.d.ts +178 -0
  380. package/dist/language-CEWQ5uYw.d.cts +69 -0
  381. package/dist/language-CEWQ5uYw.d.ts +69 -0
  382. package/dist/layers/index.cjs +318 -0
  383. package/dist/layers/index.cjs.map +1 -0
  384. package/dist/layers/index.d.cts +1555 -0
  385. package/dist/layers/index.d.ts +1555 -0
  386. package/dist/layers/index.js +17 -0
  387. package/dist/layers/index.js.map +1 -0
  388. package/dist/map-client/index.cjs +4 -0
  389. package/dist/map-client/index.cjs.map +1 -0
  390. package/dist/map-client/index.d.cts +1856 -0
  391. package/dist/map-client/index.d.ts +1856 -0
  392. package/dist/map-client/index.js +3 -0
  393. package/dist/map-client/index.js.map +1 -0
  394. package/dist/maplibre-worker.mjs +12 -0
  395. package/dist/markerSprite-DGBQF6PO.cjs +49 -0
  396. package/dist/markerSprite-DGBQF6PO.cjs.map +1 -0
  397. package/dist/markerSprite-DZLTR6F6.js +8 -0
  398. package/dist/markerSprite-DZLTR6F6.js.map +1 -0
  399. package/dist/mountayaMap-C9mxRFib.d.cts +3277 -0
  400. package/dist/mountayaMap-DgnlQ2fE.d.ts +3277 -0
  401. package/dist/navigation/index.cjs +699 -0
  402. package/dist/navigation/index.cjs.map +1 -0
  403. package/dist/navigation/index.d.cts +632 -0
  404. package/dist/navigation/index.d.ts +632 -0
  405. package/dist/navigation/index.js +689 -0
  406. package/dist/navigation/index.js.map +1 -0
  407. package/dist/order-BLhsGsH8.d.ts +132 -0
  408. package/dist/order-BZkUwMou.d.cts +132 -0
  409. package/dist/paint-BgUcj8l7.d.cts +118 -0
  410. package/dist/paint-Dx_qGNE_.d.ts +118 -0
  411. package/dist/profile/index.cjs +675 -0
  412. package/dist/profile/index.cjs.map +1 -0
  413. package/dist/profile/index.d.cts +2086 -0
  414. package/dist/profile/index.d.ts +2086 -0
  415. package/dist/profile/index.js +18 -0
  416. package/dist/profile/index.js.map +1 -0
  417. package/dist/provider-DM71XnLX.d.cts +121 -0
  418. package/dist/provider-DM71XnLX.d.ts +121 -0
  419. package/dist/roadAccess-D_rOE4xW.d.cts +86 -0
  420. package/dist/roadAccess-D_rOE4xW.d.ts +86 -0
  421. package/dist/routeProfile-BKfSfxx6.d.ts +210 -0
  422. package/dist/routeProfile-BsSUABXv.d.cts +210 -0
  423. package/dist/seams/index.cjs +39 -0
  424. package/dist/seams/index.cjs.map +1 -0
  425. package/dist/seams/index.d.cts +254 -0
  426. package/dist/seams/index.d.ts +254 -0
  427. package/dist/seams/index.js +6 -0
  428. package/dist/seams/index.js.map +1 -0
  429. package/dist/search/index.cjs +147 -0
  430. package/dist/search/index.cjs.map +1 -0
  431. package/dist/search/index.d.cts +888 -0
  432. package/dist/search/index.d.ts +888 -0
  433. package/dist/search/index.js +14 -0
  434. package/dist/search/index.js.map +1 -0
  435. package/dist/searchHighlight-DFE7LVIL.cjs +33 -0
  436. package/dist/searchHighlight-DFE7LVIL.cjs.map +1 -0
  437. package/dist/searchHighlight-MHAQZVWG.js +12 -0
  438. package/dist/searchHighlight-MHAQZVWG.js.map +1 -0
  439. package/dist/searchLimits-j99-NTXR.d.cts +24 -0
  440. package/dist/searchLimits-j99-NTXR.d.ts +24 -0
  441. package/dist/sections-CVlc2Inr.d.cts +953 -0
  442. package/dist/sections-CmtaduLc.d.ts +953 -0
  443. package/dist/segmentRoute-C5UL_5bp.d.ts +172 -0
  444. package/dist/segmentRoute-CIo6dR8Y.d.cts +172 -0
  445. package/dist/strings-30RSdIat.d.cts +552 -0
  446. package/dist/strings-DPTIbzT5.d.ts +552 -0
  447. package/dist/stripeImage-CQUXM2YI.js +14 -0
  448. package/dist/stripeImage-CQUXM2YI.js.map +1 -0
  449. package/dist/stripeImage-R43OPA6U.cjs +39 -0
  450. package/dist/stripeImage-R43OPA6U.cjs.map +1 -0
  451. package/dist/style/index.cjs +116 -0
  452. package/dist/style/index.cjs.map +1 -0
  453. package/dist/style/index.d.cts +538 -0
  454. package/dist/style/index.d.ts +538 -0
  455. package/dist/style/index.js +11 -0
  456. package/dist/style/index.js.map +1 -0
  457. package/dist/styles.css +11 -0
  458. package/dist/testing/index.cjs +629 -0
  459. package/dist/testing/index.cjs.map +1 -0
  460. package/dist/testing/index.d.cts +265 -0
  461. package/dist/testing/index.d.ts +265 -0
  462. package/dist/testing/index.js +623 -0
  463. package/dist/testing/index.js.map +1 -0
  464. package/dist/timezone/index.cjs +759 -0
  465. package/dist/timezone/index.cjs.map +1 -0
  466. package/dist/timezone/index.d.cts +53 -0
  467. package/dist/timezone/index.d.ts +53 -0
  468. package/dist/timezone/index.js +757 -0
  469. package/dist/timezone/index.js.map +1 -0
  470. package/dist/types-B034JMjl.d.ts +973 -0
  471. package/dist/types-B2NDLxQA.d.cts +21 -0
  472. package/dist/types-B2NDLxQA.d.ts +21 -0
  473. package/dist/types-BEv8V_8V.d.cts +55 -0
  474. package/dist/types-BEv8V_8V.d.ts +55 -0
  475. package/dist/types-C8aX5KMU.d.cts +973 -0
  476. package/dist/types-CTQwbSdA.d.cts +321 -0
  477. package/dist/types-nO2joeRk.d.ts +321 -0
  478. package/dist/units/index.cjs +99 -0
  479. package/dist/units/index.cjs.map +1 -0
  480. package/dist/units/index.d.cts +75 -0
  481. package/dist/units/index.d.ts +75 -0
  482. package/dist/units/index.js +6 -0
  483. package/dist/units/index.js.map +1 -0
  484. package/dist/units-D9mBrusY.d.cts +900 -0
  485. package/dist/units-D9mBrusY.d.ts +900 -0
  486. package/dist/video/index.cjs +2198 -0
  487. package/dist/video/index.cjs.map +1 -0
  488. package/dist/video/index.d.cts +873 -0
  489. package/dist/video/index.d.ts +873 -0
  490. package/dist/video/index.js +2173 -0
  491. package/dist/video/index.js.map +1 -0
  492. package/dist/videoOverlay-Dh_D5_Zs.d.cts +44 -0
  493. package/dist/videoOverlay-Dh_D5_Zs.d.ts +44 -0
  494. package/dist/view/index.cjs +43 -0
  495. package/dist/view/index.cjs.map +1 -0
  496. package/dist/view/index.d.cts +836 -0
  497. package/dist/view/index.d.ts +836 -0
  498. package/dist/view/index.js +34 -0
  499. package/dist/view/index.js.map +1 -0
  500. package/dist/zones-B05QA8fy.d.cts +75 -0
  501. package/dist/zones-B05QA8fy.d.ts +75 -0
  502. package/package.json +433 -4
  503. package/src/agent/engines/session.ts +2255 -0
  504. package/src/agent/index.ts +109 -0
  505. package/src/agent/rules/agentError.ts +128 -0
  506. package/src/agent/rules/boundedInputJson.ts +53 -0
  507. package/src/agent/rules/conversation.ts +629 -0
  508. package/src/agent/rules/conversationFaults.ts +349 -0
  509. package/src/agent/rules/conversationHost.ts +390 -0
  510. package/src/agent/rules/dispatcher.ts +102 -0
  511. package/src/agent/rules/errorCodes.ts +78 -0
  512. package/src/agent/rules/errorStatus.ts +65 -0
  513. package/src/agent/rules/scriptedTransport.ts +390 -0
  514. package/src/agent/rules/stickToBottom.ts +38 -0
  515. package/src/agent/rules/toolResultPayload.ts +197 -0
  516. package/src/auth/rules/clientHeader.ts +22 -0
  517. package/src/auth/rules/sentCredential.ts +76 -0
  518. package/src/auth/rules/transformRequest.ts +803 -0
  519. package/src/camera/engines/videoFlight.ts +1758 -0
  520. package/src/camera/index.ts +157 -0
  521. package/src/camera/rules/clearance.ts +1099 -0
  522. package/src/camera/rules/fit.ts +132 -0
  523. package/src/camera/rules/modes.ts +1023 -0
  524. package/src/camera/rules/plan.ts +478 -0
  525. package/src/camera/rules/planner.ts +129 -0
  526. package/src/camera/rules/poseRanges.ts +38 -0
  527. package/src/camera/rules/presets.ts +185 -0
  528. package/src/camera/rules/profileSamples.ts +243 -0
  529. package/src/camera/rules/route.ts +596 -0
  530. package/src/camera/rules/routeContent.ts +104 -0
  531. package/src/camera/rules/spline.ts +765 -0
  532. package/src/camera/rules/sweptViewports.ts +39 -0
  533. package/src/camera/rules/track.ts +1412 -0
  534. package/src/camera/rules/vocabulary.ts +130 -0
  535. package/src/camera/rules/zoom.ts +216 -0
  536. package/src/collab/engines/session.ts +1902 -0
  537. package/src/collab/engines/trailingThrottle.ts +151 -0
  538. package/src/collab/index.ts +56 -0
  539. package/src/collab/rules/dispatch.ts +143 -0
  540. package/src/collab/rules/peerNames.ts +51 -0
  541. package/src/collab/rules/scriptedTransport.ts +244 -0
  542. package/src/compose/engines/baseMapSwitch.ts +1136 -0
  543. package/src/compose/engines/events.ts +962 -0
  544. package/src/compose/engines/mountayaMap.ts +5674 -0
  545. package/src/compose/engines/sentCredentials.ts +146 -0
  546. package/src/compose/engines/slotRequests.ts +413 -0
  547. package/src/compose/rules/accessRefusal.ts +109 -0
  548. package/src/compose/rules/accessStanding.ts +75 -0
  549. package/src/compose/rules/analysisKinds.ts +331 -0
  550. package/src/compose/rules/analysisLayers.ts +176 -0
  551. package/src/compose/rules/cameraMoves.ts +38 -0
  552. package/src/compose/rules/carriedLayers.ts +87 -0
  553. package/src/compose/rules/developmentWarnings.ts +166 -0
  554. package/src/compose/rules/fitCamera.ts +54 -0
  555. package/src/compose/rules/geoJsonSlot.ts +61 -0
  556. package/src/compose/rules/geometrySlots.ts +155 -0
  557. package/src/compose/rules/glyphNode.ts +62 -0
  558. package/src/compose/rules/layerKeys.ts +92 -0
  559. package/src/compose/rules/layerOrder.ts +85 -0
  560. package/src/compose/rules/layersManifest.ts +26 -0
  561. package/src/compose/rules/mapOptions.ts +300 -0
  562. package/src/compose/rules/maplibreWorkerVersion.gen.ts +8 -0
  563. package/src/compose/rules/markerPin.ts +122 -0
  564. package/src/compose/rules/markerRegistry.ts +85 -0
  565. package/src/compose/rules/markerSprite.ts +382 -0
  566. package/src/compose/rules/maxBounds.ts +120 -0
  567. package/src/compose/rules/overlayLookup.ts +49 -0
  568. package/src/compose/rules/paintDiff.ts +38 -0
  569. package/src/compose/rules/panLock.ts +77 -0
  570. package/src/compose/rules/patch.ts +124 -0
  571. package/src/compose/rules/queriedFeature.ts +55 -0
  572. package/src/compose/rules/queryLayers.ts +46 -0
  573. package/src/compose/rules/searchHighlight.ts +313 -0
  574. package/src/compose/rules/slotNames.ts +19 -0
  575. package/src/compose/rules/stripeImage.ts +253 -0
  576. package/src/compose/rules/swapMarker.ts +66 -0
  577. package/src/compose/rules/terrainVariant.ts +88 -0
  578. package/src/compose/rules/types.ts +566 -0
  579. package/src/compose/rules/urlHash.ts +19 -0
  580. package/src/compose/rules/viewOptions.ts +451 -0
  581. package/src/compose/rules/workerUrl.ts +96 -0
  582. package/src/data/engines/itineraryResource.ts +643 -0
  583. package/src/data/index.ts +78 -0
  584. package/src/data/rules/adapt.ts +473 -0
  585. package/src/data/rules/editModes.ts +51 -0
  586. package/src/data/rules/itinerary.ts +168 -0
  587. package/src/data/rules/nullable.ts +63 -0
  588. package/src/data/rules/roadAccess.ts +169 -0
  589. package/src/data/rules/segmentGroups.ts +309 -0
  590. package/src/data/rules/selectors.ts +95 -0
  591. package/src/data/rules/zones.ts +79 -0
  592. package/src/draw/engines/boundaryEngine.ts +1003 -0
  593. package/src/draw/engines/framedAdapter.ts +198 -0
  594. package/src/draw/engines/pointerCursor.ts +205 -0
  595. package/src/draw/engines/segmentEngine.ts +1405 -0
  596. package/src/draw/engines/snapIndex.ts +254 -0
  597. package/src/draw/engines/waypointEngine.ts +574 -0
  598. package/src/draw/engines/zoneEngine.ts +1137 -0
  599. package/src/draw/rules/drawFrame.ts +123 -0
  600. package/src/draw/rules/insertVertex.ts +226 -0
  601. package/src/draw/rules/screenSpace.ts +62 -0
  602. package/src/draw/rules/seeds.ts +185 -0
  603. package/src/draw/rules/snap.ts +115 -0
  604. package/src/draw/rules/snapCameraKey.ts +50 -0
  605. package/src/draw/rules/terraDrawShared.ts +214 -0
  606. package/src/draw/rules/zoneOutline.ts +213 -0
  607. package/src/editing/engines/cursor.ts +505 -0
  608. package/src/editing/engines/draftMarker.ts +149 -0
  609. package/src/editing/rules/accent.ts +11 -0
  610. package/src/editing/rules/engine.ts +286 -0
  611. package/src/editing/rules/placement.ts +22 -0
  612. package/src/editing/rules/positions.ts +89 -0
  613. package/src/editing/rules/sources.ts +9 -0
  614. package/src/editing/rules/types.ts +457 -0
  615. package/src/editing/rules/vocabulary.ts +10 -0
  616. package/src/editing/rules/waypointCursor.ts +228 -0
  617. package/src/editor/engines/directionArrows.ts +459 -0
  618. package/src/editor/engines/directions.ts +1383 -0
  619. package/src/editor/engines/editorClient.ts +134 -0
  620. package/src/editor/engines/eventScope.ts +59 -0
  621. package/src/editor/engines/frameLoop.ts +159 -0
  622. package/src/editor/engines/itineraryPreview.ts +272 -0
  623. package/src/editor/engines/mapLockGuard.ts +66 -0
  624. package/src/editor/engines/overlayRenderer.ts +2696 -0
  625. package/src/editor/engines/peerDraft.ts +760 -0
  626. package/src/editor/engines/poiPick.ts +305 -0
  627. package/src/editor/engines/pointPick.ts +84 -0
  628. package/src/editor/engines/roadAccessLine.ts +140 -0
  629. package/src/editor/engines/searchHighlight.ts +183 -0
  630. package/src/editor/engines/viewClient.ts +4083 -0
  631. package/src/editor/engines/zoneBadges.ts +503 -0
  632. package/src/editor/index.ts +97 -0
  633. package/src/editor/rules/accentColor.ts +116 -0
  634. package/src/editor/rules/camera.ts +121 -0
  635. package/src/editor/rules/contract.ts +125 -0
  636. package/src/editor/rules/icons.ts +825 -0
  637. package/src/editor/rules/markerElements.ts +244 -0
  638. package/src/editor/rules/style.ts +51 -0
  639. package/src/editor/rules/terrain.ts +98 -0
  640. package/src/editor/rules/tileWarm.ts +191 -0
  641. package/src/editor/rules/tilesReload.ts +158 -0
  642. package/src/editor/rules/zoneBadgePlacement.ts +1832 -0
  643. package/src/editor/rules/zoneTimeStyling.ts +119 -0
  644. package/src/errors/index.ts +25 -0
  645. package/src/errors/rules/errors.ts +157 -0
  646. package/src/errors/rules/print.ts +129 -0
  647. package/src/geo/index.ts +94 -0
  648. package/src/geo/rules/boundaries.ts +105 -0
  649. package/src/geo/rules/camera.ts +496 -0
  650. package/src/geo/rules/corridor.ts +242 -0
  651. package/src/geo/rules/elevationTiles.ts +269 -0
  652. package/src/geo/rules/formatLngLat.ts +63 -0
  653. package/src/geo/rules/geodesy.ts +125 -0
  654. package/src/geo/rules/geometry.ts +362 -0
  655. package/src/geo/rules/lineWalk.ts +77 -0
  656. package/src/geo/rules/longitude.ts +99 -0
  657. package/src/geo/rules/searchLimits.ts +22 -0
  658. package/src/geo/rules/segmentGeometry.ts +80 -0
  659. package/src/geo/rules/terrain.ts +107 -0
  660. package/src/geo/rules/tuples.ts +124 -0
  661. package/src/geo/rules/types.ts +54 -0
  662. package/src/geo/rules/webMercator.ts +57 -0
  663. package/src/i18n/fr/index.ts +17 -0
  664. package/src/i18n/fr/rules/fr.ts +85 -0
  665. package/src/i18n/fr/rules/words.gen.ts +277 -0
  666. package/src/i18n/index.ts +81 -0
  667. package/src/i18n/rules/bundle.ts +378 -0
  668. package/src/i18n/rules/config.ts +71 -0
  669. package/src/i18n/rules/endonyms.gen.ts +19 -0
  670. package/src/i18n/rules/language.ts +92 -0
  671. package/src/i18n/rules/localizedName.ts +33 -0
  672. package/src/i18n/rules/merge.ts +106 -0
  673. package/src/i18n/rules/scope.ts +127 -0
  674. package/src/i18n/rules/strings.ts +632 -0
  675. package/src/i18n/rules/videoOverlay.ts +121 -0
  676. package/src/i18n/rules/wordForms.ts +95 -0
  677. package/src/i18n/rules/words.gen.ts +277 -0
  678. package/src/icons/index.ts +54 -0
  679. package/src/icons/rules/activities.ts +40 -0
  680. package/src/icons/rules/amenities.ts +250 -0
  681. package/src/icons/rules/artwork.gen.ts +83 -0
  682. package/src/icons/rules/artwork.ts +47 -0
  683. package/src/icons/rules/fallback.ts +21 -0
  684. package/src/icons/rules/lucideMarkers.gen.ts +112 -0
  685. package/src/icons/rules/lucideUi.gen.ts +197 -0
  686. package/src/icons/rules/paint.ts +107 -0
  687. package/src/icons/rules/parse.ts +475 -0
  688. package/src/icons/rules/provider.ts +373 -0
  689. package/src/icons/rules/sprites.ts +54 -0
  690. package/src/icons/rules/ui.ts +348 -0
  691. package/src/icons/rules/waypoints.ts +215 -0
  692. package/src/index.ts +1012 -0
  693. package/src/layers/engines/layersSelection.ts +515 -0
  694. package/src/layers/engines/readoutEngine.ts +131 -0
  695. package/src/layers/index.ts +151 -0
  696. package/src/layers/rules/analysis.ts +135 -0
  697. package/src/layers/rules/enrichment.ts +30 -0
  698. package/src/layers/rules/geoJson.ts +270 -0
  699. package/src/layers/rules/hover.ts +67 -0
  700. package/src/layers/rules/itineraries.ts +182 -0
  701. package/src/layers/rules/layersPanel.ts +237 -0
  702. package/src/layers/rules/order.ts +194 -0
  703. package/src/layers/rules/overlayInstant.ts +49 -0
  704. package/src/layers/rules/overlays.ts +52 -0
  705. package/src/layers/rules/poiPanel.ts +119 -0
  706. package/src/layers/rules/pois.ts +114 -0
  707. package/src/layers/rules/readout.ts +340 -0
  708. package/src/layers/rules/streetView.ts +16 -0
  709. package/src/layers/rules/tileTimestamp.ts +146 -0
  710. package/src/layers/rules/timeSlider.ts +192 -0
  711. package/src/layers/rules/timeWindow.ts +123 -0
  712. package/src/layers/rules/zones.ts +43 -0
  713. package/src/layers/rules/zoom.ts +77 -0
  714. package/src/map-client/index.ts +71 -0
  715. package/src/map-client/rules/mapClient.ts +1943 -0
  716. package/src/navigation/engines/navigation.ts +493 -0
  717. package/src/navigation/index.ts +51 -0
  718. package/src/navigation/rules/followedRoute.ts +78 -0
  719. package/src/navigation/rules/instructions.ts +89 -0
  720. package/src/navigation/rules/itineraryRoute.ts +232 -0
  721. package/src/navigation/rules/offRoute.ts +41 -0
  722. package/src/navigation/rules/progress.ts +230 -0
  723. package/src/navigation/rules/prompts.ts +217 -0
  724. package/src/navigation/rules/routeRequest.ts +98 -0
  725. package/src/navigation/rules/status.ts +142 -0
  726. package/src/navigation/rules/steps.ts +234 -0
  727. package/src/navigation/rules/types.ts +83 -0
  728. package/src/profile/index.ts +307 -0
  729. package/src/profile/rules/amenityBadge.ts +35 -0
  730. package/src/profile/rules/amenityFilter.ts +74 -0
  731. package/src/profile/rules/amenityStacks.ts +66 -0
  732. package/src/profile/rules/axis.ts +89 -0
  733. package/src/profile/rules/axisCulling.ts +83 -0
  734. package/src/profile/rules/axisLookup.ts +180 -0
  735. package/src/profile/rules/climbs.ts +292 -0
  736. package/src/profile/rules/cursorMarker.ts +122 -0
  737. package/src/profile/rules/cursorReadout.ts +104 -0
  738. package/src/profile/rules/curvePlacement.ts +216 -0
  739. package/src/profile/rules/dock.ts +293 -0
  740. package/src/profile/rules/elevation.ts +1263 -0
  741. package/src/profile/rules/instant.ts +89 -0
  742. package/src/profile/rules/intl.ts +237 -0
  743. package/src/profile/rules/legEmphasis.ts +53 -0
  744. package/src/profile/rules/profileColors.ts +66 -0
  745. package/src/profile/rules/profileLayout.ts +59 -0
  746. package/src/profile/rules/profileSlices.ts +55 -0
  747. package/src/profile/rules/routeProfile.ts +475 -0
  748. package/src/profile/rules/rowMatch.ts +50 -0
  749. package/src/profile/rules/scale.ts +650 -0
  750. package/src/profile/rules/scaleFrame.ts +171 -0
  751. package/src/profile/rules/sectionChips.ts +83 -0
  752. package/src/profile/rules/sections.ts +923 -0
  753. package/src/profile/rules/slopeRamp.ts +160 -0
  754. package/src/profile/rules/statStrip.ts +103 -0
  755. package/src/profile/rules/steepness.ts +51 -0
  756. package/src/profile/rules/tableCells.ts +269 -0
  757. package/src/profile/rules/tableCursor.ts +87 -0
  758. package/src/profile/rules/unitPatterns.ts +335 -0
  759. package/src/profile/rules/units.ts +1025 -0
  760. package/src/profile/rules/waypointCard.ts +593 -0
  761. package/src/profile/rules/webAddress.ts +130 -0
  762. package/src/profile/rules/windowSpans.ts +65 -0
  763. package/src/rules/asciiFold.ts +17 -0
  764. package/src/rules/inDevelopment.ts +54 -0
  765. package/src/rules/listeners.ts +62 -0
  766. package/src/rules/timers.ts +9 -0
  767. package/src/rules/types.ts +22 -0
  768. package/src/rules/uuid.ts +87 -0
  769. package/src/seams/engines/geolocateControl.ts +286 -0
  770. package/src/seams/index.ts +50 -0
  771. package/src/seams/rules/clock.ts +169 -0
  772. package/src/seams/rules/geolocation.ts +165 -0
  773. package/src/seams/rules/segmentRoute.ts +187 -0
  774. package/src/search/engines/search.ts +1093 -0
  775. package/src/search/index.ts +114 -0
  776. package/src/search/rules/describe.ts +383 -0
  777. package/src/search/rules/filters.ts +195 -0
  778. package/src/search/rules/highlight.ts +270 -0
  779. package/src/search/rules/pick.ts +90 -0
  780. package/src/search/rules/rows.ts +258 -0
  781. package/src/search/rules/searchFocus.ts +27 -0
  782. package/src/search/rules/searchViewport.ts +44 -0
  783. package/src/search/rules/shown.ts +77 -0
  784. package/src/search/rules/types.ts +340 -0
  785. package/src/stream/rules/reconnectSchedule.ts +83 -0
  786. package/src/style/engines/organizationRead.ts +80 -0
  787. package/src/style/index.ts +63 -0
  788. package/src/style/rules/apply.ts +268 -0
  789. package/src/style/rules/attribution.ts +119 -0
  790. package/src/style/rules/itineraryLine.ts +142 -0
  791. package/src/style/rules/language.ts +668 -0
  792. package/src/style/rules/layout.gen.ts +27 -0
  793. package/src/style/rules/organization.ts +96 -0
  794. package/src/style/rules/paint.ts +143 -0
  795. package/src/style/rules/panelLayout.ts +51 -0
  796. package/src/style/rules/roadAccessColors.ts +29 -0
  797. package/src/style/rules/roadAccessLine.ts +267 -0
  798. package/src/style/rules/segmentColors.ts +207 -0
  799. package/src/testing/catalogs.ts +103 -0
  800. package/src/testing/index.ts +30 -0
  801. package/src/testing/mapClient.ts +241 -0
  802. package/src/testing/mountayaMap.ts +741 -0
  803. package/src/timezone/index.ts +14 -0
  804. package/src/timezone/rules/viewport.ts +875 -0
  805. package/src/units/index.ts +55 -0
  806. package/src/units/rules/conversions.ts +620 -0
  807. package/src/units/rules/preferenceChoices.ts +124 -0
  808. package/src/units/rules/preferences.ts +77 -0
  809. package/src/units/rules/rounding.ts +69 -0
  810. package/src/video/engines/videoRun.ts +654 -0
  811. package/src/video/engines/viewClient.ts +6 -0
  812. package/src/video/index.ts +83 -0
  813. package/src/video/profileOverlay/rules/contract.ts +212 -0
  814. package/src/video/profileOverlay/rules/curve.ts +216 -0
  815. package/src/video/profileOverlay/rules/draw.ts +410 -0
  816. package/src/video/profileOverlay/rules/fonts.ts +54 -0
  817. package/src/video/profileOverlay/rules/graphDesign.ts +690 -0
  818. package/src/video/profileOverlay/rules/minimalDesign.ts +144 -0
  819. package/src/video/profileOverlay/rules/registry.ts +23 -0
  820. package/src/video/profileOverlay/rules/staticLayer.ts +582 -0
  821. package/src/video/profileOverlay/rules/stripDesign.ts +327 -0
  822. package/src/video/profileOverlay/rules/types.ts +78 -0
  823. package/src/video/rules/videoConstants.ts +250 -0
  824. package/src/video/rules/videoEncoder.ts +277 -0
  825. package/src/video/rules/videoFrames.ts +99 -0
  826. package/src/video/rules/videoPreview.ts +185 -0
  827. package/src/video/rules/videoRecorder.ts +746 -0
  828. package/src/video/rules/videoWatermark.ts +155 -0
  829. package/src/video/rules/watermarkMark.ts +40 -0
  830. package/src/view/engines/viewClient.ts +6 -0
  831. package/src/view/index.ts +20 -0
@@ -0,0 +1,182 @@
1
+ /**
2
+ * The itinerary tile contract: source-layer names, and the paint the platform strokes
3
+ * itineraries with.
4
+ *
5
+ * A tile layer's `id` in the `/v1/tile-layers` manifest is unstable and per-source-prefixed, so
6
+ * it is not something to match on. The `source_layer` is the stable contract, and it is
7
+ * what a caller scoping `queryRenderedFeatures` or a click handler to itinerary geometry
8
+ * should use.
9
+ *
10
+ * The paint constants exist so an itinerary you draw yourself (a preview, a proposed
11
+ * alternative, an itinerary not yet saved) looks like the itineraries the platform serves. Two
12
+ * renders of the same line stroked differently read as a bug.
13
+ */
14
+
15
+ /**
16
+ * The source-layer names the itinerary vector tiles emit: routed segment geometry, solid
17
+ * and dashed sharing one source-layer, and waypoints.
18
+ */
19
+ export const ITINERARY_LINE_SOURCE_LAYER = "itinerary_lines";
20
+ /** The source-layer the itinerary tiles carry waypoints and the derived endpoints in. */
21
+ export const ITINERARY_POINT_SOURCE_LAYER = "itinerary_points";
22
+ /**
23
+ * The source-layer the itinerary tiles carry restricted stretches in: one line feature per
24
+ * stretch of a segment that follows a way restricting who may pass, carrying `segment_id`,
25
+ * `itinerary_id` and `kind` (a member of `ROAD_ACCESS_KINDS` from `@mountaya/elements/data`).
26
+ * The tiles carry it from zoom 9, the zoom they start drawing waypoints at, and no specification
27
+ * declares a layer for it, so a map draws it with layers of its own.
28
+ */
29
+ export const ITINERARY_RESTRICTION_SOURCE_LAYER = "itinerary_restrictions";
30
+
31
+ /**
32
+ * ITINERARY_ENDPOINT_ICONS are the icon names carried by the derived start and end rows.
33
+ *
34
+ * Those two rows carry their SEGMENT's colour, while every other row in the same points
35
+ * source-layer carries a waypoint's own colour, and one `icon-image` expression covers
36
+ * both, so the icon name is the only thing separating them. Recolouring segments means
37
+ * matching these two names, or the recolour reaches an author's waypoint pins too.
38
+ */
39
+ export const ITINERARY_ENDPOINT_ICONS = ["flag-start", "flag-end"] as const;
40
+
41
+ /**
42
+ * ITINERARY_CASING_LAYER_SUFFIX ends the layer id of the white outline drawn beneath the
43
+ * itinerary lines.
44
+ *
45
+ * The casing shares the `itinerary_lines` source-layer with the lines it sits under, so
46
+ * `source_layer` cannot tell them apart and the id is the only thing that can. That
47
+ * distinction is load-bearing rather than cosmetic: see {@link isItineraryCasingLayer}.
48
+ */
49
+ export const ITINERARY_CASING_LAYER_SUFFIX = "-casing";
50
+
51
+ /**
52
+ * ITINERARY_LINE_WIDTH_STOPS is the zoom-to-width ramp every itinerary line is stroked at,
53
+ * and ITINERARY_CASING_WIDTH_STOPS the ramp of the white outline beneath it.
54
+ *
55
+ * Each casing width is two pixels larger, so the halo reads as a constant one-pixel border
56
+ * on either side at every zoom rather than as a fraction of the stroke. Both are flat
57
+ * `zoom, width, …` pairs: the tail a MapLibre `["interpolate", ["linear"], ["zoom"], …]`
58
+ * expression takes. The stops are the datum; the expression is assembly.
59
+ */
60
+ export const ITINERARY_LINE_WIDTH_STOPS = [7, 2, 10, 2, 13, 3, 16, 5] as const;
61
+ /** The zoom-to-width ramp of the outline beneath an itinerary line. */
62
+ export const ITINERARY_CASING_WIDTH_STOPS = [7, 4, 10, 4, 13, 5, 16, 7] as const;
63
+
64
+ /**
65
+ * ITINERARY_CASING_COLOR and ITINERARY_CASING_OPACITY paint that outline. Not quite
66
+ * opaque, so a dense stack of switchbacks does not turn into a white mass.
67
+ */
68
+ export const ITINERARY_CASING_COLOR = "#ffffff";
69
+ /** The opacity the outline beneath an itinerary line paints at. */
70
+ export const ITINERARY_CASING_OPACITY = 0.9;
71
+
72
+ /**
73
+ * itineraryLineLayout is the layout every itinerary line layer shares.
74
+ *
75
+ * Round caps and joins are what make a routed polyline read as a drawn line. MapLibre's
76
+ * default butt cap notches every segment boundary, and its mitre join throws a spike off
77
+ * every switchback, which on mountain terrain is most of the itinerary.
78
+ */
79
+ export const itineraryLineLayout = { "line-cap": "round", "line-join": "round" } as const;
80
+
81
+ /**
82
+ * ITINERARY_LINE_DASHARRAY is the pattern a provisional itinerary line paints in. The pair
83
+ * is measured in line widths, so `[2, 2]` is a one-to-one dash at any stroke.
84
+ */
85
+ export const ITINERARY_LINE_DASHARRAY = [2, 2] as const;
86
+
87
+ /**
88
+ * ITINERARY_DASHED_OPACITY is what a provisional line paints at.
89
+ *
90
+ * High enough to follow, low enough that the eye settles on the solid itinerary beside it: a
91
+ * comparison cue rather than a second answer.
92
+ */
93
+ export const ITINERARY_DASHED_OPACITY = 0.6;
94
+
95
+ /**
96
+ * isItineraryCasingLayer reports whether a manifest tile layer is the casing rather than an
97
+ * itinerary line.
98
+ *
99
+ * The casing takes part in exactly two of the paint folds a renderer applies, and must be
100
+ * held out of the rest:
101
+ *
102
+ * - **Opacity and width: yes.** It is the same stroke as the line above it, so dimming,
103
+ * hover-thickening or excluding an itinerary has to move both, or the halo detaches from what
104
+ * it is haloing.
105
+ * - **Colour: no.** Its whole job is to be the one thing on the map that is NOT the
106
+ * itinerary's colour. Tinting it to the segment colour makes it invisible.
107
+ * - **Dash: no.** `line-dasharray` is measured in line widths and the casing is wider by
108
+ * definition, so a dash copied onto it runs long and drifts out of phase with the line's.
109
+ * - **Direction companions: no.** Flow lines and chevrons are generated per itinerary line
110
+ * layer; generating a second set from the casing doubles every arrow on the itinerary.
111
+ */
112
+ export const isItineraryCasingLayer = (layer: { id: string }): boolean =>
113
+ layer.id.endsWith(ITINERARY_CASING_LAYER_SUFFIX);
114
+
115
+ /**
116
+ * RoadAccessHostLayer is what the restricted-stretch layers read of the tile layers they are
117
+ * placed beside: a layer's id, the source-layer it draws and its kind.
118
+ */
119
+ interface RoadAccessHostLayer {
120
+ readonly id: string;
121
+ readonly source_layer: string;
122
+ readonly type: string;
123
+ }
124
+
125
+ // The suffixes that name the two layers a source's restricted stretches are drawn on, the
126
+ // stripes and the warning icons, after the line the stripes take their width from. No
127
+ // specification declares a layer for `itinerary_restrictions`, so a renderer adds both and every
128
+ // reader of them derives the same ids from that line.
129
+ const ROAD_ACCESS_STRIPE_LAYER_SUFFIX = "__road-access-stripe";
130
+ const ROAD_ACCESS_ICON_LAYER_SUFFIX = "__road-access-icon";
131
+
132
+ /**
133
+ * roadAccessLineLayerOf answers the itinerary line layer a source's restricted stretches are
134
+ * drawn beside: its first line layer that is no casing, or undefined for a source that draws no
135
+ * itinerary line.
136
+ *
137
+ * One per source, because the stretches are one source-layer however many line layers split the
138
+ * segments between them (a solid one and a dashed one), and a second set of stripes over the
139
+ * first would draw every stretch twice.
140
+ */
141
+ export const roadAccessLineLayerOf = <Layer extends RoadAccessHostLayer>(source: {
142
+ readonly layers: readonly Layer[];
143
+ }): Layer | undefined =>
144
+ source.layers.find(
145
+ (layer) =>
146
+ layer.source_layer === ITINERARY_LINE_SOURCE_LAYER &&
147
+ layer.type === "line" &&
148
+ !isItineraryCasingLayer(layer),
149
+ );
150
+
151
+ /** roadAccessStripeLayerId names the stripe layer drawn beside the line layer `lineLayerId`. */
152
+ export const roadAccessStripeLayerId = (lineLayerId: string): string =>
153
+ `${lineLayerId}${ROAD_ACCESS_STRIPE_LAYER_SUFFIX}`;
154
+
155
+ /** roadAccessIconLayerId names the icon layer drawn beside the line layer `lineLayerId`. */
156
+ export const roadAccessIconLayerId = (lineLayerId: string): string =>
157
+ `${lineLayerId}${ROAD_ACCESS_ICON_LAYER_SUFFIX}`;
158
+
159
+ /**
160
+ * roadAccessIconLayerIdOf answers the id of the layer a source's restricted-stretch icons are
161
+ * drawn on, or null for a source that draws no itinerary line and so no restricted stretch.
162
+ *
163
+ * A source's restricted stretches are drawn by the map that mounts it rather than declared by
164
+ * its specification, so this is how a surface reads a click or a hover on their icons: the id is
165
+ * the one the map gave the layer.
166
+ *
167
+ * @example
168
+ * ```ts
169
+ * import type { TileSchema } from "@mountaya/client";
170
+ * import { roadAccessIconLayerIdOf } from "@mountaya/elements/layers";
171
+ *
172
+ * declare const sources: TileSchema.TileSource[];
173
+ * const iconLayerIds = sources.flatMap((source) => roadAccessIconLayerIdOf(source) ?? []);
174
+ * ```
175
+ */
176
+ export const roadAccessIconLayerIdOf = (source: {
177
+ readonly layers: readonly RoadAccessHostLayer[];
178
+ }): string | null => {
179
+ const line = roadAccessLineLayerOf(source);
180
+
181
+ return line === undefined ? null : roadAccessIconLayerId(line.id);
182
+ };
@@ -0,0 +1,237 @@
1
+ import type { Locales, RestSchema } from "@mountaya/client";
2
+
3
+ import { localizedName } from "../../i18n/rules/localizedName.js";
4
+ import { ENRICHMENT_CATEGORY_SLUG, isEnrichmentCategory, POIS_OVERLAY_SLUG } from "./enrichment.js";
5
+
6
+ /**
7
+ * The choice a section's rows make: `terrain`, one base map among the catalogue's terrains;
8
+ * `overlay`, one classic overlay among every classic category's at once; `enrichment`, each
9
+ * enrichment on or off by itself.
10
+ */
11
+ export type LayersPanelChoice = "enrichment" | "overlay" | "terrain";
12
+
13
+ /** One entry a layers picker lists: a terrain or an overlay. */
14
+ export interface LayersPanelRow {
15
+ /** The entry's slug, which a press hands on. */
16
+ readonly slug: string;
17
+ /** The entry's name in the reader's language, else its English name, else its slug. */
18
+ readonly label: string;
19
+ /** Whether the selection holds the entry. */
20
+ readonly checked: boolean;
21
+ /**
22
+ * What the row shows beside its label: its lock where the entry is out of the viewer's reach,
23
+ * whether or not the selection holds it, a tick where the selection holds it, and nothing
24
+ * otherwise.
25
+ */
26
+ readonly mark: "lock" | "tick" | null;
27
+ }
28
+
29
+ /** One classic category the overlays' category switch offers. */
30
+ export interface LayersPanelCategory {
31
+ /** The category's slug, which the reader's pick names. */
32
+ readonly slug: string;
33
+ /** The category's name in the reader's language, else its English name, else its slug. */
34
+ readonly name: string;
35
+ }
36
+
37
+ /**
38
+ * One section of a layers picker, by the choice it makes, in the order a picker lists them: the
39
+ * terrains as picture cards, the enrichments as switches, the classic overlays as picture cards
40
+ * one category at a time, and the time.
41
+ *
42
+ * A section is headed by a word of the elements' `layers` section (`terrain`, `enrichment`,
43
+ * `overlays`, `time`) and states the catalogue category it lists as `category`: the enrichment
44
+ * category's slug for the enrichments, the category the picker opens on for the overlays, and
45
+ * none for the terrains and the time. Its rows are in the catalogue's order.
46
+ */
47
+ export type LayersPanelSection =
48
+ | {
49
+ /** The terrains, one base map among them. */
50
+ readonly choice: "terrain";
51
+ readonly heading: { readonly word: "terrain" };
52
+ readonly category: null;
53
+ readonly rows: readonly LayersPanelRow[];
54
+ }
55
+ | {
56
+ /** Every enrichment, each on or off by itself. */
57
+ readonly choice: "enrichment";
58
+ readonly heading: { readonly word: "enrichment" };
59
+ readonly category: string;
60
+ readonly rows: readonly LayersPanelRow[];
61
+ }
62
+ | {
63
+ /** One classic overlay among every classic category's, shown one category at a time. */
64
+ readonly choice: "overlay";
65
+ readonly heading: { readonly word: "overlays" };
66
+ /** The category the picker opens on, whose overlays are the rows. */
67
+ readonly category: string;
68
+ /**
69
+ * Every classic category holding an overlay, in the catalogue's order. A picker draws a
70
+ * switch between them where it lists two or more.
71
+ */
72
+ readonly categories: readonly LayersPanelCategory[];
73
+ readonly rows: readonly LayersPanelRow[];
74
+ }
75
+ | {
76
+ /** The time, which a slider chooses and no row lists. */
77
+ readonly choice: "time";
78
+ readonly heading: { readonly word: "time" };
79
+ readonly category: null;
80
+ readonly rows: readonly LayersPanelRow[];
81
+ };
82
+
83
+ /** What a layers picker lists: the catalogue, what the selection holds, and how a row reads. */
84
+ export interface LayersPanelInput {
85
+ /** The layers catalogue, or null until it has been read. */
86
+ readonly catalogue: Pick<RestSchema.Layers, "overlays" | "terrains"> | null;
87
+ /** The terrain, the classic overlay and the enrichments the selection holds. */
88
+ readonly selection: {
89
+ readonly enrichments: readonly string[];
90
+ readonly overlay: string | null;
91
+ readonly terrain: string | null;
92
+ };
93
+ /** The language the rows and the categories are named in. */
94
+ readonly language: string;
95
+ /**
96
+ * Whether an entry is out of the viewer's reach, so its row shows its lock. No entry is, where
97
+ * this is omitted.
98
+ */
99
+ readonly isLocked?: ((slug: string) => boolean) | undefined;
100
+ /**
101
+ * The classic category the reader last picked in the overlays' category switch, which a picker
102
+ * holds as its own state. None is picked where this is omitted, and a pick that names no
103
+ * category on offer is none.
104
+ */
105
+ readonly picked?: string | null | undefined;
106
+ /** Whether the host offers the time, so the picker lists its section. Omitted, it does not. */
107
+ readonly offersTime?: boolean | undefined;
108
+ }
109
+
110
+ /**
111
+ * What a press on a row asks for: the selection's command for the row's choice, with the row's
112
+ * slug, or, for a locked row, the report that the entry was pressed.
113
+ */
114
+ export type LayersPanelPress =
115
+ | { readonly command: LayersPanelChoice; readonly slug: string }
116
+ | { readonly locked: string };
117
+
118
+ /**
119
+ * layersPanelSections lists what a layers picker offers, as the map studio's layers panel lists
120
+ * it, up to four sections in this order:
121
+ *
122
+ * 1. **The terrains**, as picture cards in one choice. The section stands while the catalogue is
123
+ * still to be read, with no row.
124
+ * 2. **The enrichments**, as switches: the overlays of every enrichment category, in the
125
+ * catalogue's order, the points of interest left out, since their own picker drives them.
126
+ * The section stands where it lists a row.
127
+ * 3. **The classic overlays**, as picture cards in one choice across every classic category,
128
+ * shown one category at a time. `categories` lists each classic category holding an overlay,
129
+ * and the rows are the overlays of the one the picker opens on: the reader's `picked` category
130
+ * where it is listed, else the first listed category holding the selected overlay, else the
131
+ * first listed. The section stands where it lists a category.
132
+ * 4. **The time**, with no row, where the host offers it (`offersTime`).
133
+ *
134
+ * The split between the kinds is the catalogue's own, never a preference: base maps replace one
135
+ * another, classic overlays replace one another across categories, since two of them repaint the
136
+ * same ground, and enrichments stack ({@link isEnrichmentCategory}). A category is named as a row
137
+ * is labelled.
138
+ *
139
+ * @example
140
+ * ```ts
141
+ * import { layersPanelSections } from "@mountaya/elements/layers";
142
+ *
143
+ * const sections = layersPanelSections({
144
+ * catalogue: null,
145
+ * language: "fr",
146
+ * offersTime: true,
147
+ * picked: null,
148
+ * selection: { enrichments: [], overlay: null, terrain: null },
149
+ * });
150
+ * ```
151
+ */
152
+ export const layersPanelSections = ({
153
+ catalogue,
154
+ isLocked,
155
+ language,
156
+ offersTime,
157
+ picked,
158
+ selection,
159
+ }: LayersPanelInput): readonly LayersPanelSection[] => {
160
+ const rowOf = (
161
+ entry: { readonly locales: Locales; readonly slug: string },
162
+ checked: boolean,
163
+ ): LayersPanelRow => ({
164
+ checked,
165
+ label: localizedName(entry, language),
166
+ mark: isLocked?.(entry.slug) === true ? "lock" : checked ? "tick" : null,
167
+ slug: entry.slug,
168
+ });
169
+ const allCategories = catalogue?.overlays ?? [];
170
+ const sections: LayersPanelSection[] = [
171
+ {
172
+ category: null,
173
+ choice: "terrain",
174
+ heading: { word: "terrain" },
175
+ rows: (catalogue?.terrains ?? []).map((terrain) =>
176
+ rowOf(terrain, terrain.slug === selection.terrain),
177
+ ),
178
+ },
179
+ ];
180
+
181
+ const enrichments = allCategories
182
+ .filter(isEnrichmentCategory)
183
+ .flatMap((category) => category.children)
184
+ .filter((child) => child.slug !== POIS_OVERLAY_SLUG)
185
+ .map((child) => rowOf(child, selection.enrichments.includes(child.slug)));
186
+ if (enrichments.length > 0) {
187
+ sections.push({
188
+ category: ENRICHMENT_CATEGORY_SLUG,
189
+ choice: "enrichment",
190
+ heading: { word: "enrichment" },
191
+ rows: enrichments,
192
+ });
193
+ }
194
+
195
+ // A category with no overlay offers nothing to pick, so it is no tab of the switch.
196
+ const classic = allCategories.filter(
197
+ (category) => !isEnrichmentCategory(category) && category.children.length > 0,
198
+ );
199
+ const opened =
200
+ classic.find((category) => category.slug === picked) ??
201
+ classic.find((category) =>
202
+ category.children.some((child) => child.slug === selection.overlay),
203
+ ) ??
204
+ classic[0];
205
+ if (opened !== undefined) {
206
+ sections.push({
207
+ categories: classic.map((category) => ({
208
+ name: localizedName(category, language),
209
+ slug: category.slug,
210
+ })),
211
+ category: opened.slug,
212
+ choice: "overlay",
213
+ heading: { word: "overlays" },
214
+ rows: opened.children.map((child) => rowOf(child, child.slug === selection.overlay)),
215
+ });
216
+ }
217
+
218
+ if (offersTime === true) {
219
+ sections.push({ category: null, choice: "time", heading: { word: "time" }, rows: [] });
220
+ }
221
+
222
+ return sections;
223
+ };
224
+
225
+ /**
226
+ * layersPanelPress answers what a press on a row of a layers picker asks for: the report of the
227
+ * entry where the row shows its lock, which selects nothing, and otherwise the command of the
228
+ * row's choice, which the selection carries out.
229
+ *
230
+ * @param choice The choice of the section the row stands in.
231
+ * @param row The row pressed.
232
+ */
233
+ export const layersPanelPress = (
234
+ choice: LayersPanelChoice,
235
+ row: Pick<LayersPanelRow, "mark" | "slug">,
236
+ ): LayersPanelPress =>
237
+ row.mark === "lock" ? { locked: row.slug } : { command: choice, slug: row.slug };
@@ -0,0 +1,194 @@
1
+ /**
2
+ * The deterministic stacking order for the layers this package owns above a base style.
3
+ *
4
+ * The ranking is arithmetic over source-layer names: a number per band, spaced so a band added
5
+ * between two neighbours takes a value between them, and a table a consumer can patch. Nothing
6
+ * here reads a live map, which is what lets a build step, a server deciding what a tile layer
7
+ * should look like, or a second language reproduce the same z-order this package draws.
8
+ *
9
+ * Resolving a rank into a MapLibre `beforeId` is the half that needs a live map, and it lives
10
+ * in `compose/rules/layerOrder.ts` beside the facade that calls it.
11
+ */
12
+
13
+ import type { TileLayer } from "../../rules/types.js";
14
+ import {
15
+ ITINERARY_LINE_SOURCE_LAYER,
16
+ ITINERARY_POINT_SOURCE_LAYER,
17
+ ITINERARY_RESTRICTION_SOURCE_LAYER,
18
+ } from "./itineraries.js";
19
+ import { ZONE_FILL_SOURCE_LAYER } from "./zones.js";
20
+
21
+ /**
22
+ * POI_SOURCE_LAYER_NAMES are the vector source-layers that carry points of interest. `road`
23
+ * carries the parking-aisle line.
24
+ *
25
+ * A tuple rather than a bare set, because the names do double duty: the set derived below
26
+ * answers runtime membership, while the tuple's literal types key the rank table so a name
27
+ * added here that nobody ranks refuses to compile.
28
+ */
29
+ export const POI_SOURCE_LAYER_NAMES = [
30
+ "parking",
31
+ "poi_accommodation",
32
+ "poi_food",
33
+ "poi_healthcare",
34
+ "poi_tourism",
35
+ "road",
36
+ "street_furniture",
37
+ ] as const;
38
+
39
+ /**
40
+ * poiSourceLayers is the same list as a set, for membership checks.
41
+ *
42
+ * These are also the OpenMapTiles layers the vector base styles carry, which is why this is
43
+ * exported rather than kept private: querying features under the cursor means naming the
44
+ * same set, and a consumer that does so from its own copy gets a query that silently stops
45
+ * matching the ranking the moment either list moves.
46
+ */
47
+ export const poiSourceLayers: ReadonlySet<string> = new Set<string>(POI_SOURCE_LAYER_NAMES);
48
+
49
+ /**
50
+ * LayerRank is the deterministic stacking order, bottom to top, for the layers this package
51
+ * owns above the base style. A layer's rank decides where it inserts relative to the
52
+ * others, so **z-order never depends on add order**: an overlay added after an itinerary can
53
+ * never cover it. A numeric comparison of two ranks gives the stacking order directly, and
54
+ * the values are spaced rather than consecutive so a band added between two neighbours takes
55
+ * a number between them instead of renumbering everything above it. A rank is any number, so a
56
+ * consumer's own band is written as the number it sits at:
57
+ * `layerRanks: { my_overlay: LayerRank.POI + 2 }` reads the same as `82`, between the points of
58
+ * interest and the itinerary's waypoints.
59
+ *
60
+ * This is the single most valuable convention in the package, because it is the one an
61
+ * integrator would otherwise rediscover as a bug report: layers added in the order the user
62
+ * happened to click them, and a hillshade drawn over the itinerary it was meant to sit under.
63
+ *
64
+ * `ZONE` bands the zones overlay (each polygon and its outline) between the Street View
65
+ * coverage and itinerary line ranks, so zones draw above terrain and generic overlays but
66
+ * beneath routed segments and waypoint symbols. `ITINERARY_FOCUS` bands the geometry a map
67
+ * draws over its itinerary lines from data, an itinerary being planned and the leg a reader points
68
+ * at, just above the lines and beneath their restricted stretches, so the order the calls arrive
69
+ * in never stacks it under the route it lights. `ITINERARY_RESTRICTION` bands the restricted
70
+ * stretches of a route (the stripes drawn along a stretch that follows a way restricting who may
71
+ * pass) directly over the itinerary lines they mark, and below the direction indicator, so a
72
+ * restriction is never painted under the line it qualifies and the arrows still read across it.
73
+ * A stretch's warning icon takes `ITINERARY_POINT` instead: symbols give way to the symbols
74
+ * stacked above them, and a warning must not be the one that gives way to a chevron.
75
+ * `ITINERARY_DIRECTION` bands the synthetic
76
+ * direction indicator (the animated flow line plus the chevron symbols) directly above the
77
+ * itinerary lines, so the arrows and flow draw on top of their own itineraries yet below POIs
78
+ * and waypoint symbols. `STREETVIEW_CORRIDOR` bands the Street View droppable-zone band
79
+ * directly above the itinerary line and direction so the corridor reads over the itinerary, yet
80
+ * below POI and itinerary point symbols so those stay legible while the pegman drags. `POI`
81
+ * sits between `STREETVIEW_CORRIDOR` and `ITINERARY_POINT`, so the POIs overlay draws above
82
+ * routed segments (a route never hides a POI) yet below itinerary point symbols.
83
+ *
84
+ * `CHROME` is the ceiling, and it bands what the user is doing rather than what they are
85
+ * looking at: a draft marker being dragged, the live direction indicators on a segment under
86
+ * edit, a search result highlighted from a list. Those are transient, they are the subject of
87
+ * the interaction, and they must not be buried by content that happens to arrive during it,
88
+ * which is exactly what happens to an unranked layer, since anchoring returns "on top" when
89
+ * it finds nothing ranked higher and the next ranked add therefore lands above.
90
+ *
91
+ * Base-style layers carry no rank and always sit beneath everything here. Markers are DOM
92
+ * elements anchored to the map container, not style layers, so they sit above the canvas
93
+ * and are not ranked.
94
+ */
95
+ export enum LayerRank {
96
+ HILLSHADE = 10,
97
+ OVERLAY = 20,
98
+ STREETVIEW_COVERAGE = 30,
99
+ ZONE = 40,
100
+ ITINERARY_LINE = 50,
101
+ ITINERARY_FOCUS = 52,
102
+ ITINERARY_RESTRICTION = 55,
103
+ ITINERARY_DIRECTION = 60,
104
+ STREETVIEW_CORRIDOR = 70,
105
+ POI = 80,
106
+ ITINERARY_POINT = 90,
107
+ CHROME = 100,
108
+ }
109
+
110
+ /**
111
+ * KnownRankedSourceLayer is every source-layer name this package itself draws from: the
112
+ * itinerary and zone tile-contract names plus the POI set. The union is spelled from the
113
+ * constants rather than as strings, so a constant whose value moves takes the rank table's
114
+ * keys with it.
115
+ */
116
+ type KnownRankedSourceLayer =
117
+ | typeof ITINERARY_LINE_SOURCE_LAYER
118
+ | typeof ITINERARY_POINT_SOURCE_LAYER
119
+ | typeof ITINERARY_RESTRICTION_SOURCE_LAYER
120
+ | typeof ZONE_FILL_SOURCE_LAYER
121
+ | (typeof POI_SOURCE_LAYER_NAMES)[number];
122
+
123
+ /**
124
+ * rankByKnownSourceLayer is the rank table, typed over the full union so it is
125
+ * compile-time exhaustive: a source-layer added to the constants above without a deliberate
126
+ * rank here refuses to compile, instead of silently falling to the OVERLAY band and
127
+ * rendering under the itinerary.
128
+ */
129
+ const rankByKnownSourceLayer: Record<KnownRankedSourceLayer, LayerRank> = {
130
+ [ITINERARY_LINE_SOURCE_LAYER]: LayerRank.ITINERARY_LINE,
131
+ [ITINERARY_POINT_SOURCE_LAYER]: LayerRank.ITINERARY_POINT,
132
+ [ITINERARY_RESTRICTION_SOURCE_LAYER]: LayerRank.ITINERARY_RESTRICTION,
133
+ [ZONE_FILL_SOURCE_LAYER]: LayerRank.ZONE,
134
+ parking: LayerRank.POI,
135
+ poi_accommodation: LayerRank.POI,
136
+ poi_food: LayerRank.POI,
137
+ poi_healthcare: LayerRank.POI,
138
+ poi_tourism: LayerRank.POI,
139
+ road: LayerRank.POI,
140
+ street_furniture: LayerRank.POI,
141
+ };
142
+
143
+ /**
144
+ * tileSourceLayerRanks maps each known source-layer to the band its layers draw in.
145
+ *
146
+ * Among the layers added above the base style, each family has source-layer names only it
147
+ * uses (itineraries `itinerary_lines`/`itinerary_points`/`itinerary_restrictions`, zones
148
+ * `fills`, POIs the set above), so the source-layer alone classifies a manifest layer
149
+ * unambiguously. A zone's area and its outline band together, because the geometry kind that
150
+ * paints a source-layer never changes its rank.
151
+ *
152
+ * A RECORD rather than a `ReadonlyMap`, because it is not only a constant.
153
+ * `MapPaint.layerRanks` lets a consumer patch it (a product whose own overlay has to draw above
154
+ * the itinerary line can answer this table rather than only read it), and a patch is folded
155
+ * with `mergeSection`, which merges objects and replaces everything else. A Map would be
156
+ * replaced wholesale by any patch touching it, so "add one band" would mean restating every
157
+ * entry.
158
+ *
159
+ * Widened from {@link rankByKnownSourceLayer}'s exhaustive union to an open string key for the
160
+ * same reason: a consumer's own tiles carry source-layers this package has never heard of, and
161
+ * those are exactly the ones with no default to keep.
162
+ */
163
+ export const tileSourceLayerRanks: Readonly<Record<string, number>> = rankByKnownSourceLayer;
164
+
165
+ /**
166
+ * rankForTileLayer maps a manifest tile layer to its stacking rank. Hillshade shades the
167
+ * terrain, so it sits at the bottom whatever source-layer its data rides in; every other
168
+ * layer takes the rank its source-layer holds in the table it is handed, and one the table does
169
+ * not know is a generic overlay: the documented fallback for a source-layer this package has
170
+ * never heard of.
171
+ *
172
+ * `ranks` is the SEAM, and it is the second parameter rather than a module constant because "what
173
+ * paints over what" is half of how a map looks: a consumer whose own overlay has to sit above the
174
+ * itinerary line says so by answering the table. `MapPaint.layerRanks` is where a patch lands;
175
+ * `MountayaMap` resolves it once and passes the result here.
176
+ *
177
+ * @param layer The manifest tile layer, read for its `type` and its `source_layer`.
178
+ * @param ranks The rank table to read. Defaults to {@link tileSourceLayerRanks}, the shipped one.
179
+ * @returns The layer's rank: a member of {@link LayerRank}, or the number a patched table states.
180
+ */
181
+ export const rankForTileLayer = (
182
+ layer: TileLayer,
183
+ ranks: Readonly<Record<string, number>> = tileSourceLayerRanks,
184
+ ): number => {
185
+ if (layer.type === "hillshade") {
186
+ return LayerRank.HILLSHADE;
187
+ }
188
+
189
+ // An own key alone: a consumer's source layer named `constructor` or `toString` is one the
190
+ // table does not know, and a plain read would answer the member every object inherits.
191
+ const rank = Object.hasOwn(ranks, layer.source_layer) ? ranks[layer.source_layer] : undefined;
192
+
193
+ return rank ?? LayerRank.OVERLAY;
194
+ };
@@ -0,0 +1,49 @@
1
+ import { convertDuration } from "../../units/rules/conversions.js";
2
+
3
+ /**
4
+ * overlayInstant answers the moment a map's time-dependent surfaces show: the tiles a server
5
+ * stamps with an instant, the light a hillshade is drawn under, and the line a surface states the
6
+ * moment on.
7
+ *
8
+ * A pinned instant is itself, to the millisecond, whatever the clock reads: behind the pin, ahead
9
+ * of it, and under a clock that reads none. With none pinned it is the start of the minute the
10
+ * clock's reading falls in, the reading floored to a whole minute from the epoch, so a reading
11
+ * before the epoch falls in the minute before it. Every surface that reads it therefore shows one
12
+ * moment, and moves when the minute does.
13
+ *
14
+ * An Invalid Date names no instant and is read as none pinned, as a pin restored from a link
15
+ * that names no moment is.
16
+ *
17
+ * It keeps no time and reads no clock: the caller hands over the clock's reading, and asks again
18
+ * when the pin changes or the minute turns.
19
+ *
20
+ * @param pinned The instant a reader pinned, the layers selection's `instant`, or null with none
21
+ * pinned.
22
+ * @param nowMs The clock's reading, in epoch milliseconds.
23
+ * @returns The instant to show, a `Date` of the caller's own. Null with none pinned under a clock
24
+ * that reads no instant (`NaN`, an infinity, or a reading past the instants a `Date` holds):
25
+ * there is no moment to show, and a surface draws nothing for it.
26
+ *
27
+ * @example
28
+ * ```ts
29
+ * import { overlayInstant } from "@mountaya/elements/layers";
30
+ *
31
+ * const minuteStart = Date.UTC(2026, 2, 14, 12, 0);
32
+ *
33
+ * overlayInstant(new Date("2026-03-14T09:26:53.900Z"), minuteStart); // the pinned instant
34
+ * overlayInstant(null, minuteStart + 59_999); // the start of that minute
35
+ * overlayInstant(null, Number.NaN); // null: the clock reads no instant
36
+ * ```
37
+ */
38
+ export const overlayInstant = (pinned: Date | null, nowMs: number): Date | null => {
39
+ const pinnedMs = pinned === null ? Number.NaN : pinned.getTime();
40
+ if (!Number.isNaN(pinnedMs)) {
41
+ return new Date(pinnedMs);
42
+ }
43
+
44
+ // Floored rather than truncated, so a reading before the epoch falls in the minute before it.
45
+ const minutes = Math.floor(convertDuration(nowMs, "millisecond", "minute"));
46
+ const minute = new Date(convertDuration(minutes, "minute", "millisecond"));
47
+
48
+ return Number.isNaN(minute.getTime()) ? null : minute;
49
+ };