@mountaya/elements 0.0.0-stage → 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.
- package/CHANGELOG.md +273 -0
- package/LICENCE.fr.txt +280 -0
- package/LICENSE.txt +262 -0
- package/README.md +1510 -2
- package/THIRD-PARTY-NOTICES.txt +103 -0
- package/dist/agent/index.cjs +1211 -0
- package/dist/agent/index.cjs.map +1 -0
- package/dist/agent/index.d.cts +1966 -0
- package/dist/agent/index.d.ts +1966 -0
- package/dist/agent/index.js +1181 -0
- package/dist/agent/index.js.map +1 -0
- package/dist/camera/index.cjs +2512 -0
- package/dist/camera/index.cjs.map +1 -0
- package/dist/camera/index.d.cts +1723 -0
- package/dist/camera/index.d.ts +1723 -0
- package/dist/camera/index.js +2443 -0
- package/dist/camera/index.js.map +1 -0
- package/dist/chunk-5pTPpv4v.d.cts +897 -0
- package/dist/chunk-5pTPpv4v.d.ts +897 -0
- package/dist/chunk-6JzFMFHh.d.ts +119 -0
- package/dist/chunk-6qyuJVvt.d.ts +513 -0
- package/dist/chunk-9fp0lDic.cjs +583 -0
- package/dist/chunk-9fp0lDic.cjs.map +1 -0
- package/dist/chunk-A48H1rDg.d.cts +73 -0
- package/dist/chunk-A48H1rDg.d.ts +73 -0
- package/dist/chunk-B-m1AchR.cjs +57 -0
- package/dist/chunk-B-m1AchR.cjs.map +1 -0
- package/dist/chunk-B-qFTf04.d.ts +216 -0
- package/dist/chunk-B0YROiZh.d.cts +1475 -0
- package/dist/chunk-B14wgOvH.d.cts +68 -0
- package/dist/chunk-B19l3j9r.cjs +150 -0
- package/dist/chunk-B19l3j9r.cjs.map +1 -0
- package/dist/chunk-B2PtjVKg.cjs +86 -0
- package/dist/chunk-B2PtjVKg.cjs.map +1 -0
- package/dist/chunk-B56Oyb7W.cjs +70 -0
- package/dist/chunk-B56Oyb7W.cjs.map +1 -0
- package/dist/chunk-B5WGMQwK.cjs +113 -0
- package/dist/chunk-B5WGMQwK.cjs.map +1 -0
- package/dist/chunk-B98mKrdu.d.cts +302 -0
- package/dist/chunk-BB0PmqIM.d.cts +44 -0
- package/dist/chunk-BBikve0Z.cjs +269 -0
- package/dist/chunk-BBikve0Z.cjs.map +1 -0
- package/dist/chunk-BHeXmM0X.js +37 -0
- package/dist/chunk-BHeXmM0X.js.map +1 -0
- package/dist/chunk-BI8WZLpU.cjs +281 -0
- package/dist/chunk-BI8WZLpU.cjs.map +1 -0
- package/dist/chunk-BIEc_SkR.cjs +29 -0
- package/dist/chunk-BIEc_SkR.cjs.map +1 -0
- package/dist/chunk-BJ6L6_W9.cjs +553 -0
- package/dist/chunk-BJ6L6_W9.cjs.map +1 -0
- package/dist/chunk-BJ91UCbB.js +11 -0
- package/dist/chunk-BJ91UCbB.js.map +1 -0
- package/dist/chunk-BJEZWTKj.cjs +166 -0
- package/dist/chunk-BJEZWTKj.cjs.map +1 -0
- package/dist/chunk-BJz54mfg.cjs +10 -0
- package/dist/chunk-BJz54mfg.cjs.map +1 -0
- package/dist/chunk-BNX5LAfN.d.cts +912 -0
- package/dist/chunk-BP6KgA86.js +35 -0
- package/dist/chunk-BP6KgA86.js.map +1 -0
- package/dist/chunk-BRnjQq6K.d.cts +157 -0
- package/dist/chunk-BSiMEwPS.js +46 -0
- package/dist/chunk-BSiMEwPS.js.map +1 -0
- package/dist/chunk-BTPjDw_y.cjs +16 -0
- package/dist/chunk-BTPjDw_y.cjs.map +1 -0
- package/dist/chunk-BTUUABGI.js +17 -0
- package/dist/chunk-BTUUABGI.js.map +1 -0
- package/dist/chunk-BUeL9y7s.cjs +45 -0
- package/dist/chunk-BUeL9y7s.cjs.map +1 -0
- package/dist/chunk-BWMuCNc9.cjs +172 -0
- package/dist/chunk-BWMuCNc9.cjs.map +1 -0
- package/dist/chunk-BWjRfhpF.js +126 -0
- package/dist/chunk-BWjRfhpF.js.map +1 -0
- package/dist/chunk-BZ5KyZXI.d.ts +302 -0
- package/dist/chunk-B_4SVmvh.js +94 -0
- package/dist/chunk-B_4SVmvh.js.map +1 -0
- package/dist/chunk-BcTUuZQ3.js +95 -0
- package/dist/chunk-BcTUuZQ3.js.map +1 -0
- package/dist/chunk-BdkqSsJe.cjs +140 -0
- package/dist/chunk-BdkqSsJe.cjs.map +1 -0
- package/dist/chunk-BfktMVmI.js +70 -0
- package/dist/chunk-BfktMVmI.js.map +1 -0
- package/dist/chunk-BfzQb0EK.cjs +6 -0
- package/dist/chunk-BhWfT-22.d.cts +808 -0
- package/dist/chunk-BjJcqX5J.cjs +60 -0
- package/dist/chunk-BjJcqX5J.cjs.map +1 -0
- package/dist/chunk-Bk0L8g5J.d.cts +77 -0
- package/dist/chunk-Bk0L8g5J.d.ts +77 -0
- package/dist/chunk-Bl4_uVa6.cjs +11 -0
- package/dist/chunk-Bl4_uVa6.cjs.map +1 -0
- package/dist/chunk-BlKF4lrp.js +43 -0
- package/dist/chunk-BlKF4lrp.js.map +1 -0
- package/dist/chunk-Bm1FieGR.js +4 -0
- package/dist/chunk-Bm1FieGR.js.map +1 -0
- package/dist/chunk-Bn6ZbxkS.cjs +27 -0
- package/dist/chunk-BpN3hr6a.cjs +541 -0
- package/dist/chunk-BpN3hr6a.cjs.map +1 -0
- package/dist/chunk-Bq_WHTfd.d.cts +119 -0
- package/dist/chunk-Bqt4LBBz.cjs +648 -0
- package/dist/chunk-Bqt4LBBz.cjs.map +1 -0
- package/dist/chunk-Bqt97zwf.d.cts +54 -0
- package/dist/chunk-Bqt97zwf.d.ts +54 -0
- package/dist/chunk-BsBiN4w6.d.cts +245 -0
- package/dist/chunk-BvTpOUoC.cjs +207 -0
- package/dist/chunk-BvTpOUoC.cjs.map +1 -0
- package/dist/chunk-BwK6Hl3q.cjs +446 -0
- package/dist/chunk-BwK6Hl3q.cjs.map +1 -0
- package/dist/chunk-BxDQZDXR.d.cts +76 -0
- package/dist/chunk-BxDQZDXR.d.ts +76 -0
- package/dist/chunk-BxUio8kX.js +20 -0
- package/dist/chunk-BxUio8kX.js.map +1 -0
- package/dist/chunk-BxaocpFi.d.cts +1 -0
- package/dist/chunk-Bywi0K1N.js +36 -0
- package/dist/chunk-Bywi0K1N.js.map +1 -0
- package/dist/chunk-C-IlmkDl.js +59 -0
- package/dist/chunk-C-IlmkDl.js.map +1 -0
- package/dist/chunk-C5PtVewq.d.ts +389 -0
- package/dist/chunk-C5dpC7mQ.js +19 -0
- package/dist/chunk-C5dpC7mQ.js.map +1 -0
- package/dist/chunk-C5q1sgSa.js +46 -0
- package/dist/chunk-C5q1sgSa.js.map +1 -0
- package/dist/chunk-C6fU9G5I.cjs +221 -0
- package/dist/chunk-C6fU9G5I.cjs.map +1 -0
- package/dist/chunk-C71dpWUK.js +5 -0
- package/dist/chunk-C71dpWUK.js.map +1 -0
- package/dist/chunk-C82N1gQX.d.ts +1831 -0
- package/dist/chunk-C8HdaHpu.js +118 -0
- package/dist/chunk-C8HdaHpu.js.map +1 -0
- package/dist/chunk-C8ZGryck.js +236 -0
- package/dist/chunk-C8ZGryck.js.map +1 -0
- package/dist/chunk-C95NG0oD.cjs +43 -0
- package/dist/chunk-C95NG0oD.cjs.map +1 -0
- package/dist/chunk-C9aR8DXb.js +9 -0
- package/dist/chunk-C9aR8DXb.js.map +1 -0
- package/dist/chunk-CAUZnoCs.d.ts +525 -0
- package/dist/chunk-CBXWWuM9.cjs +82 -0
- package/dist/chunk-CBXWWuM9.cjs.map +1 -0
- package/dist/chunk-CC_Kquu7.d.cts +125 -0
- package/dist/chunk-CC_Kquu7.d.ts +125 -0
- package/dist/chunk-CCp85vXg.cjs +60 -0
- package/dist/chunk-CCp85vXg.cjs.map +1 -0
- package/dist/chunk-CEcB1_uK.js +39 -0
- package/dist/chunk-CEcB1_uK.js.map +1 -0
- package/dist/chunk-CFIo021l.d.cts +216 -0
- package/dist/chunk-CH_IZoJE.js +33 -0
- package/dist/chunk-CH_IZoJE.js.map +1 -0
- package/dist/chunk-CHrasH_g.cjs +25 -0
- package/dist/chunk-CHrasH_g.cjs.map +1 -0
- package/dist/chunk-CJVoSaAE.cjs +3 -0
- package/dist/chunk-CJp8nGcb.js +96 -0
- package/dist/chunk-CJp8nGcb.js.map +1 -0
- package/dist/chunk-CJwUtkOt.js +112 -0
- package/dist/chunk-CJwUtkOt.js.map +1 -0
- package/dist/chunk-CKhCOVIf.d.cts +751 -0
- package/dist/chunk-CKiVSRYg.js +50 -0
- package/dist/chunk-CKiVSRYg.js.map +1 -0
- package/dist/chunk-CKtd19eD.cjs +59 -0
- package/dist/chunk-CKtd19eD.cjs.map +1 -0
- package/dist/chunk-CL92KE3j.d.ts +3188 -0
- package/dist/chunk-CLqUlkAe.js +54 -0
- package/dist/chunk-CLqUlkAe.js.map +1 -0
- package/dist/chunk-CMG5OV0q.cjs +4741 -0
- package/dist/chunk-CMG5OV0q.cjs.map +1 -0
- package/dist/chunk-CN_TKSgm.js +10 -0
- package/dist/chunk-CN_TKSgm.js.map +1 -0
- package/dist/chunk-CNe6MtqV.cjs +29 -0
- package/dist/chunk-CNe6MtqV.cjs.map +1 -0
- package/dist/chunk-COQkDTC5.js +83 -0
- package/dist/chunk-COQkDTC5.js.map +1 -0
- package/dist/chunk-CPBl6K4M.cjs +168 -0
- package/dist/chunk-CPBl6K4M.cjs.map +1 -0
- package/dist/chunk-CPx0ZYFB.d.ts +3 -0
- package/dist/chunk-CQQhcP_C.d.ts +197 -0
- package/dist/chunk-CTNoajFh.d.cts +389 -0
- package/dist/chunk-CTd-qgJc.cjs +384 -0
- package/dist/chunk-CTd-qgJc.cjs.map +1 -0
- package/dist/chunk-CW80YYtU.cjs +1056 -0
- package/dist/chunk-CW80YYtU.cjs.map +1 -0
- package/dist/chunk-CWpqBgkF.d.cts +24 -0
- package/dist/chunk-CWpqBgkF.d.ts +24 -0
- package/dist/chunk-CXjRArgy.d.ts +3 -0
- package/dist/chunk-CXonfH3-.cjs +14 -0
- package/dist/chunk-CXonfH3-.cjs.map +1 -0
- package/dist/chunk-CYcouGXN.d.ts +825 -0
- package/dist/chunk-CZDAzEBw.cjs +1621 -0
- package/dist/chunk-CZDAzEBw.cjs.map +1 -0
- package/dist/chunk-C_fQFr70.d.cts +159 -0
- package/dist/chunk-C_fQFr70.d.ts +159 -0
- package/dist/chunk-CbOtHnnB.cjs +359 -0
- package/dist/chunk-CbOtHnnB.cjs.map +1 -0
- package/dist/chunk-CdA6ZMGk.d.cts +825 -0
- package/dist/chunk-Ce1_thm7.js +146 -0
- package/dist/chunk-Ce1_thm7.js.map +1 -0
- package/dist/chunk-CeD8Hw0j.d.cts +3188 -0
- package/dist/chunk-CeiTuMyt.d.cts +525 -0
- package/dist/chunk-Ch1OLzLi.js +1 -0
- package/dist/chunk-Cizu_j1N.cjs +87 -0
- package/dist/chunk-Cizu_j1N.cjs.map +1 -0
- package/dist/chunk-CjDe9z6A.d.cts +427 -0
- package/dist/chunk-Cl1etdlu.js +63 -0
- package/dist/chunk-Cl1etdlu.js.map +1 -0
- package/dist/chunk-CmoVJDoz.js +4 -0
- package/dist/chunk-CmoVJDoz.js.map +1 -0
- package/dist/chunk-CnLucxjG.cjs +197 -0
- package/dist/chunk-CnLucxjG.cjs.map +1 -0
- package/dist/chunk-CsWjBmdi.cjs +56 -0
- package/dist/chunk-CsWjBmdi.cjs.map +1 -0
- package/dist/chunk-CuseO5MZ.d.cts +3 -0
- package/dist/chunk-CvMHibbA.d.ts +427 -0
- package/dist/chunk-CwDeiN5U.js +870 -0
- package/dist/chunk-CwDeiN5U.js.map +1 -0
- package/dist/chunk-Cwdmx4tG.js +1 -0
- package/dist/chunk-D-4MxHTt.d.cts +105 -0
- package/dist/chunk-D-4MxHTt.d.ts +105 -0
- package/dist/chunk-D0LF-99V.js +1093 -0
- package/dist/chunk-D0LF-99V.js.map +1 -0
- package/dist/chunk-D1fe-0c_.js +367 -0
- package/dist/chunk-D1fe-0c_.js.map +1 -0
- package/dist/chunk-D21fEI6A.d.ts +1926 -0
- package/dist/chunk-D39gAxya.cjs +89 -0
- package/dist/chunk-D39gAxya.cjs.map +1 -0
- package/dist/chunk-D6KdIW5e.cjs +228 -0
- package/dist/chunk-D6KdIW5e.cjs.map +1 -0
- package/dist/chunk-D6qHYbgW.d.cts +36 -0
- package/dist/chunk-D89E-w70.d.ts +44 -0
- package/dist/chunk-D8bdTysL.js +552 -0
- package/dist/chunk-D8bdTysL.js.map +1 -0
- package/dist/chunk-D96QJT24.cjs +109 -0
- package/dist/chunk-D96QJT24.cjs.map +1 -0
- package/dist/chunk-DAmkQl-i.js +119 -0
- package/dist/chunk-DAmkQl-i.js.map +1 -0
- package/dist/chunk-DEfsb2lc.cjs +10 -0
- package/dist/chunk-DEfsb2lc.cjs.map +1 -0
- package/dist/chunk-DIFjT5-V.d.cts +66 -0
- package/dist/chunk-DJpUw8TN.d.ts +912 -0
- package/dist/chunk-DK6lm2IZ.cjs +11 -0
- package/dist/chunk-DK6lm2IZ.cjs.map +1 -0
- package/dist/chunk-DKqgr31j.cjs +61 -0
- package/dist/chunk-DKqgr31j.cjs.map +1 -0
- package/dist/chunk-DLZ0QYm9.js +37 -0
- package/dist/chunk-DLZ0QYm9.js.map +1 -0
- package/dist/chunk-DLjS0uaC.js +4 -0
- package/dist/chunk-DLjS0uaC.js.map +1 -0
- package/dist/chunk-DMokwmOV.cjs +49 -0
- package/dist/chunk-DMokwmOV.cjs.map +1 -0
- package/dist/chunk-DMvWgBZL.d.cts +1831 -0
- package/dist/chunk-DNfGfIF3.js +31 -0
- package/dist/chunk-DNfGfIF3.js.map +1 -0
- package/dist/chunk-DQbSRe8D.d.ts +245 -0
- package/dist/chunk-DSGkP8_y.js +45 -0
- package/dist/chunk-DSGkP8_y.js.map +1 -0
- package/dist/chunk-DTctvfSd.d.cts +197 -0
- package/dist/chunk-DWe7igyw.cjs +206 -0
- package/dist/chunk-DWe7igyw.cjs.map +1 -0
- package/dist/chunk-DWsMP5JR.d.ts +68 -0
- package/dist/chunk-DWsm3HIW.d.cts +120 -0
- package/dist/chunk-DWsm3HIW.d.ts +120 -0
- package/dist/chunk-DXABHjLa.cjs +3 -0
- package/dist/chunk-D_BeqSbc.cjs +42 -0
- package/dist/chunk-D_BeqSbc.cjs.map +1 -0
- package/dist/chunk-D_svQNdW.d.ts +66 -0
- package/dist/chunk-Dav4xWrp.js +330 -0
- package/dist/chunk-Dav4xWrp.js.map +1 -0
- package/dist/chunk-DbCPhepL.js +293 -0
- package/dist/chunk-DbCPhepL.js.map +1 -0
- package/dist/chunk-DcrTy-y2.cjs +43 -0
- package/dist/chunk-DcrTy-y2.cjs.map +1 -0
- package/dist/chunk-Ddv484ld.js +487 -0
- package/dist/chunk-Ddv484ld.js.map +1 -0
- package/dist/chunk-De0bjnhY.cjs +88 -0
- package/dist/chunk-De0bjnhY.cjs.map +1 -0
- package/dist/chunk-De2FmNPu.cjs +32 -0
- package/dist/chunk-De2FmNPu.cjs.map +1 -0
- package/dist/chunk-DeSjQXiI.d.ts +157 -0
- package/dist/chunk-Den0Ta6C.js +132 -0
- package/dist/chunk-Den0Ta6C.js.map +1 -0
- package/dist/chunk-DiDKEeEa.js +8 -0
- package/dist/chunk-DiDKEeEa.js.map +1 -0
- package/dist/chunk-Dj60k5PU.js +197 -0
- package/dist/chunk-Dj60k5PU.js.map +1 -0
- package/dist/chunk-DjnYQBCN.js +4705 -0
- package/dist/chunk-DjnYQBCN.js.map +1 -0
- package/dist/chunk-Dk9VKvyq.d.ts +1 -0
- package/dist/chunk-Dor1ERI9.cjs +85 -0
- package/dist/chunk-Dor1ERI9.cjs.map +1 -0
- package/dist/chunk-DpMouOoH.js +451 -0
- package/dist/chunk-DpMouOoH.js.map +1 -0
- package/dist/chunk-DposgdNL.cjs +52 -0
- package/dist/chunk-DposgdNL.cjs.map +1 -0
- package/dist/chunk-DqLTG_5Q.d.cts +3 -0
- package/dist/chunk-Dr5MCIpS.d.cts +63 -0
- package/dist/chunk-Dr5MCIpS.d.ts +63 -0
- package/dist/chunk-DrudttCC.cjs +4 -0
- package/dist/chunk-DsDYVJQC.js +173 -0
- package/dist/chunk-DsDYVJQC.js.map +1 -0
- package/dist/chunk-Dw8ur6FJ.js +27 -0
- package/dist/chunk-Dw8ur6FJ.js.map +1 -0
- package/dist/chunk-DwG6M_0v.js +64 -0
- package/dist/chunk-DwG6M_0v.js.map +1 -0
- package/dist/chunk-Dy9a5ibO.js +284 -0
- package/dist/chunk-Dy9a5ibO.js.map +1 -0
- package/dist/chunk-DyayZlQJ.js +157 -0
- package/dist/chunk-DyayZlQJ.js.map +1 -0
- package/dist/chunk-DyhJZC2i.js +126 -0
- package/dist/chunk-DyhJZC2i.js.map +1 -0
- package/dist/chunk-F9zBzmmG.cjs +45 -0
- package/dist/chunk-F9zBzmmG.cjs.map +1 -0
- package/dist/chunk-FyCYofv2.js +116 -0
- package/dist/chunk-FyCYofv2.js.map +1 -0
- package/dist/chunk-GHJRjAk2.js +1 -0
- package/dist/chunk-H14isiSf.d.ts +751 -0
- package/dist/chunk-HIJzXoN4.js +7 -0
- package/dist/chunk-HIJzXoN4.js.map +1 -0
- package/dist/chunk-Id_8kRtu.d.ts +36 -0
- package/dist/chunk-KN60yxBQ.js +5 -0
- package/dist/chunk-KN60yxBQ.js.map +1 -0
- package/dist/chunk-NM5yg6bh.cjs +82 -0
- package/dist/chunk-NM5yg6bh.cjs.map +1 -0
- package/dist/chunk-OXr3zJfM.cjs +119 -0
- package/dist/chunk-OXr3zJfM.cjs.map +1 -0
- package/dist/chunk-QGqgNC4z.d.ts +928 -0
- package/dist/chunk-QJBtJrZ0.js +36 -0
- package/dist/chunk-QJBtJrZ0.js.map +1 -0
- package/dist/chunk-QKWhxfPv.d.cts +361 -0
- package/dist/chunk-QKWhxfPv.d.ts +361 -0
- package/dist/chunk-QXW7b4Ev.d.cts +410 -0
- package/dist/chunk-RHZrxUrM.cjs +39 -0
- package/dist/chunk-RHZrxUrM.cjs.map +1 -0
- package/dist/chunk-RTxe2i66.js +91 -0
- package/dist/chunk-RTxe2i66.js.map +1 -0
- package/dist/chunk-RrKkJb6P.js +16 -0
- package/dist/chunk-RrKkJb6P.js.map +1 -0
- package/dist/chunk-VOJqpcnM.cjs +181 -0
- package/dist/chunk-VOJqpcnM.cjs.map +1 -0
- package/dist/chunk-VljGTrid.js +1 -0
- package/dist/chunk-X3UVwUEK.d.cts +513 -0
- package/dist/chunk-X9K2WChn.cjs +28 -0
- package/dist/chunk-X9K2WChn.cjs.map +1 -0
- package/dist/chunk-YrtOx6oy.js +251 -0
- package/dist/chunk-YrtOx6oy.js.map +1 -0
- package/dist/chunk-bY7ySujI.d.cts +928 -0
- package/dist/chunk-bYf1sBz5.d.cts +11 -0
- package/dist/chunk-bYf1sBz5.d.ts +11 -0
- package/dist/chunk-blfknWoM.d.cts +1926 -0
- package/dist/chunk-blqsohAb.js +113 -0
- package/dist/chunk-blqsohAb.js.map +1 -0
- package/dist/chunk-cDMCjodI.cjs +58 -0
- package/dist/chunk-cDMCjodI.cjs.map +1 -0
- package/dist/chunk-cWjE3qd6.cjs +10 -0
- package/dist/chunk-cWjE3qd6.cjs.map +1 -0
- package/dist/chunk-dfOgV3fu.js +26 -0
- package/dist/chunk-dfOgV3fu.js.map +1 -0
- package/dist/chunk-f9cTwUX1.cjs +125 -0
- package/dist/chunk-f9cTwUX1.cjs.map +1 -0
- package/dist/chunk-fHVYEZs4.cjs +28 -0
- package/dist/chunk-fHVYEZs4.cjs.map +1 -0
- package/dist/chunk-fWRUMgRI.js +22 -0
- package/dist/chunk-fWRUMgRI.js.map +1 -0
- package/dist/chunk-fozLXfHY.d.cts +55 -0
- package/dist/chunk-fozLXfHY.d.ts +55 -0
- package/dist/chunk-gWmB1l3A.cjs +3122 -0
- package/dist/chunk-gWmB1l3A.cjs.map +1 -0
- package/dist/chunk-gbj2R-_w.js +58 -0
- package/dist/chunk-gbj2R-_w.js.map +1 -0
- package/dist/chunk-iIWxsAXd.js +59 -0
- package/dist/chunk-iIWxsAXd.js.map +1 -0
- package/dist/chunk-lItIuOIS.cjs +137 -0
- package/dist/chunk-lItIuOIS.cjs.map +1 -0
- package/dist/chunk-m6Rh4PCe.cjs +798 -0
- package/dist/chunk-m6Rh4PCe.cjs.map +1 -0
- package/dist/chunk-o3IRANDf.cjs +99 -0
- package/dist/chunk-o3IRANDf.cjs.map +1 -0
- package/dist/chunk-obUcg3Sk.d.ts +808 -0
- package/dist/chunk-ohsf-6Rn.js +600 -0
- package/dist/chunk-ohsf-6Rn.js.map +1 -0
- package/dist/chunk-pBleU6Nv.js +3061 -0
- package/dist/chunk-pBleU6Nv.js.map +1 -0
- package/dist/chunk-px4e99cy.js +71 -0
- package/dist/chunk-px4e99cy.js.map +1 -0
- package/dist/chunk-qwYDLeXc.cjs +99 -0
- package/dist/chunk-qwYDLeXc.cjs.map +1 -0
- package/dist/chunk-rF_859Qk.cjs +101 -0
- package/dist/chunk-rF_859Qk.cjs.map +1 -0
- package/dist/chunk-rLJkqJ5j.d.ts +1475 -0
- package/dist/chunk-twQItIRg.cjs +338 -0
- package/dist/chunk-twQItIRg.cjs.map +1 -0
- package/dist/chunk-vnPrMVjY.js +10 -0
- package/dist/chunk-vnPrMVjY.js.map +1 -0
- package/dist/chunk-ws3bVwaS.d.ts +410 -0
- package/dist/chunk-xh3UkuVs.cjs +246 -0
- package/dist/chunk-xh3UkuVs.cjs.map +1 -0
- package/dist/chunk-yMzRr26E.js +153 -0
- package/dist/chunk-yMzRr26E.js.map +1 -0
- package/dist/collab/index.cjs +831 -0
- package/dist/collab/index.cjs.map +1 -0
- package/dist/collab/index.d.cts +824 -0
- package/dist/collab/index.d.ts +824 -0
- package/dist/collab/index.js +819 -0
- package/dist/collab/index.js.map +1 -0
- package/dist/data/index.cjs +39 -0
- package/dist/data/index.d.cts +6 -0
- package/dist/data/index.d.ts +6 -0
- package/dist/data/index.js +7 -0
- package/dist/editor/index.cjs +2713 -0
- package/dist/editor/index.cjs.map +1 -0
- package/dist/editor/index.d.cts +10 -0
- package/dist/editor/index.d.ts +10 -0
- package/dist/editor/index.js +2702 -0
- package/dist/editor/index.js.map +1 -0
- package/dist/errors/index.cjs +11 -0
- package/dist/errors/index.d.cts +2 -0
- package/dist/errors/index.d.ts +2 -0
- package/dist/errors/index.js +1 -0
- package/dist/geo/index.cjs +68 -0
- package/dist/geo/index.d.cts +6 -0
- package/dist/geo/index.d.ts +6 -0
- package/dist/geo/index.js +11 -0
- package/dist/i18n/fr/index.cjs +333 -0
- package/dist/i18n/fr/index.cjs.map +1 -0
- package/dist/i18n/fr/index.d.cts +18 -0
- package/dist/i18n/fr/index.d.ts +18 -0
- package/dist/i18n/fr/index.js +328 -0
- package/dist/i18n/fr/index.js.map +1 -0
- package/dist/i18n/index.cjs +451 -0
- package/dist/i18n/index.cjs.map +1 -0
- package/dist/i18n/index.d.cts +268 -0
- package/dist/i18n/index.d.ts +268 -0
- package/dist/i18n/index.js +430 -0
- package/dist/i18n/index.js.map +1 -0
- package/dist/icons/index.cjs +37 -0
- package/dist/icons/index.d.cts +4 -0
- package/dist/icons/index.d.ts +4 -0
- package/dist/icons/index.js +8 -0
- package/dist/index.cjs +517 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +174 -0
- package/dist/index.d.ts +174 -0
- package/dist/index.js +54 -0
- package/dist/index.js.map +1 -0
- package/dist/layers/index.cjs +83 -0
- package/dist/layers/index.d.cts +3 -0
- package/dist/layers/index.d.ts +3 -0
- package/dist/layers/index.js +5 -0
- package/dist/map-client/index.cjs +5 -0
- package/dist/map-client/index.d.cts +6 -0
- package/dist/map-client/index.d.ts +6 -0
- package/dist/map-client/index.js +0 -0
- package/dist/maplibre-worker.mjs +12 -0
- package/dist/navigation/index.cjs +612 -0
- package/dist/navigation/index.cjs.map +1 -0
- package/dist/navigation/index.d.cts +551 -0
- package/dist/navigation/index.d.ts +551 -0
- package/dist/navigation/index.js +599 -0
- package/dist/navigation/index.js.map +1 -0
- package/dist/profile/index.cjs +177 -0
- package/dist/profile/index.d.cts +8 -0
- package/dist/profile/index.d.ts +8 -0
- package/dist/profile/index.js +10 -0
- package/dist/seams/index.cjs +15 -0
- package/dist/seams/index.d.cts +4 -0
- package/dist/seams/index.d.ts +4 -0
- package/dist/seams/index.js +4 -0
- package/dist/search/index.cjs +39 -0
- package/dist/search/index.d.cts +6 -0
- package/dist/search/index.d.ts +6 -0
- package/dist/search/index.js +3 -0
- package/dist/style/index.cjs +34 -0
- package/dist/style/index.d.cts +5 -0
- package/dist/style/index.d.ts +5 -0
- package/dist/style/index.js +5 -0
- package/dist/styles.css +11 -0
- package/dist/testing/index.cjs +444 -0
- package/dist/testing/index.cjs.map +1 -0
- package/dist/testing/index.d.cts +217 -0
- package/dist/testing/index.d.ts +217 -0
- package/dist/testing/index.js +435 -0
- package/dist/testing/index.js.map +1 -0
- package/dist/timezone/index.cjs +1953 -0
- package/dist/timezone/index.cjs.map +1 -0
- package/dist/timezone/index.d.cts +28 -0
- package/dist/timezone/index.d.ts +28 -0
- package/dist/timezone/index.js +1948 -0
- package/dist/timezone/index.js.map +1 -0
- package/dist/units/index.cjs +29 -0
- package/dist/units/index.d.cts +3 -0
- package/dist/units/index.d.ts +3 -0
- package/dist/units/index.js +3 -0
- package/dist/video/index.cjs +1713 -0
- package/dist/video/index.cjs.map +1 -0
- package/dist/video/index.d.cts +846 -0
- package/dist/video/index.d.ts +846 -0
- package/dist/video/index.js +1689 -0
- package/dist/video/index.js.map +1 -0
- package/dist/view/index.cjs +7 -0
- package/dist/view/index.d.cts +3 -0
- package/dist/view/index.d.ts +3 -0
- package/dist/view/index.js +1 -0
- package/package.json +433 -4
- package/src/agent/engines/session.ts +2255 -0
- package/src/agent/index.ts +109 -0
- package/src/agent/rules/agentError.ts +128 -0
- package/src/agent/rules/boundedInputJson.ts +53 -0
- package/src/agent/rules/conversation.ts +629 -0
- package/src/agent/rules/conversationFaults.ts +349 -0
- package/src/agent/rules/conversationHost.ts +390 -0
- package/src/agent/rules/dispatcher.ts +102 -0
- package/src/agent/rules/errorCodes.ts +78 -0
- package/src/agent/rules/errorStatus.ts +65 -0
- package/src/agent/rules/scriptedTransport.ts +390 -0
- package/src/agent/rules/stickToBottom.ts +38 -0
- package/src/agent/rules/toolResultPayload.ts +197 -0
- package/src/auth/rules/clientHeader.ts +22 -0
- package/src/auth/rules/sentCredential.ts +76 -0
- package/src/auth/rules/transformRequest.ts +803 -0
- package/src/camera/engines/videoFlight.ts +1758 -0
- package/src/camera/index.ts +157 -0
- package/src/camera/rules/clearance.ts +1099 -0
- package/src/camera/rules/fit.ts +132 -0
- package/src/camera/rules/modes.ts +1019 -0
- package/src/camera/rules/plan.ts +478 -0
- package/src/camera/rules/planner.ts +129 -0
- package/src/camera/rules/poseRanges.ts +38 -0
- package/src/camera/rules/presets.ts +185 -0
- package/src/camera/rules/profileSamples.ts +243 -0
- package/src/camera/rules/route.ts +596 -0
- package/src/camera/rules/routeContent.ts +105 -0
- package/src/camera/rules/spline.ts +765 -0
- package/src/camera/rules/sweptViewports.ts +39 -0
- package/src/camera/rules/track.ts +1412 -0
- package/src/camera/rules/vocabulary.ts +130 -0
- package/src/camera/rules/zoom.ts +216 -0
- package/src/collab/engines/session.ts +1902 -0
- package/src/collab/engines/trailingThrottle.ts +151 -0
- package/src/collab/index.ts +52 -0
- package/src/collab/rules/dispatch.ts +143 -0
- package/src/collab/rules/peerNames.ts +51 -0
- package/src/collab/rules/scriptedTransport.ts +244 -0
- package/src/compose/engines/baseMapSwitch.ts +1136 -0
- package/src/compose/engines/events.ts +962 -0
- package/src/compose/engines/mountayaMap.ts +5648 -0
- package/src/compose/engines/sentCredentials.ts +146 -0
- package/src/compose/engines/slotRequests.ts +413 -0
- package/src/compose/rules/accessRefusal.ts +109 -0
- package/src/compose/rules/accessStanding.ts +75 -0
- package/src/compose/rules/analysisKinds.ts +331 -0
- package/src/compose/rules/analysisLayers.ts +176 -0
- package/src/compose/rules/cameraMoves.ts +38 -0
- package/src/compose/rules/carriedLayers.ts +87 -0
- package/src/compose/rules/developmentWarnings.ts +167 -0
- package/src/compose/rules/fitBox.ts +67 -0
- package/src/compose/rules/fitCamera.ts +54 -0
- package/src/compose/rules/geoJsonSlot.ts +61 -0
- package/src/compose/rules/geometrySlots.ts +155 -0
- package/src/compose/rules/glyphNode.ts +62 -0
- package/src/compose/rules/layerKeys.ts +92 -0
- package/src/compose/rules/layerOrder.ts +85 -0
- package/src/compose/rules/layersManifest.ts +26 -0
- package/src/compose/rules/mapOptions.ts +300 -0
- package/src/compose/rules/maplibreWorkerVersion.gen.ts +8 -0
- package/src/compose/rules/markerPin.ts +122 -0
- package/src/compose/rules/markerRegistry.ts +85 -0
- package/src/compose/rules/markerSprite.ts +382 -0
- package/src/compose/rules/maxBounds.ts +120 -0
- package/src/compose/rules/overlayLookup.ts +49 -0
- package/src/compose/rules/paintDiff.ts +38 -0
- package/src/compose/rules/panLock.ts +77 -0
- package/src/compose/rules/patch.ts +124 -0
- package/src/compose/rules/queriedFeature.ts +55 -0
- package/src/compose/rules/queryLayers.ts +46 -0
- package/src/compose/rules/searchHighlight.ts +313 -0
- package/src/compose/rules/slotNames.ts +19 -0
- package/src/compose/rules/stripeImage.ts +253 -0
- package/src/compose/rules/swapMarker.ts +66 -0
- package/src/compose/rules/terrainVariant.ts +88 -0
- package/src/compose/rules/types.ts +559 -0
- package/src/compose/rules/urlHash.ts +19 -0
- package/src/compose/rules/viewOptions.ts +451 -0
- package/src/compose/rules/workerUrl.ts +131 -0
- package/src/data/engines/itineraryResource.ts +643 -0
- package/src/data/index.ts +78 -0
- package/src/data/rules/adapt.ts +473 -0
- package/src/data/rules/editModes.ts +51 -0
- package/src/data/rules/itinerary.ts +168 -0
- package/src/data/rules/nullable.ts +63 -0
- package/src/data/rules/roadAccess.ts +169 -0
- package/src/data/rules/segmentGroups.ts +309 -0
- package/src/data/rules/selectors.ts +95 -0
- package/src/data/rules/zones.ts +79 -0
- package/src/draw/engines/boundaryEngine.ts +1003 -0
- package/src/draw/engines/framedAdapter.ts +198 -0
- package/src/draw/engines/pointerCursor.ts +205 -0
- package/src/draw/engines/segmentEngine.ts +1405 -0
- package/src/draw/engines/snapIndex.ts +254 -0
- package/src/draw/engines/waypointEngine.ts +574 -0
- package/src/draw/engines/zoneEngine.ts +1137 -0
- package/src/draw/rules/drawFrame.ts +123 -0
- package/src/draw/rules/insertVertex.ts +226 -0
- package/src/draw/rules/screenSpace.ts +62 -0
- package/src/draw/rules/seeds.ts +185 -0
- package/src/draw/rules/snap.ts +115 -0
- package/src/draw/rules/snapCameraKey.ts +50 -0
- package/src/draw/rules/terraDrawShared.ts +214 -0
- package/src/draw/rules/zoneOutline.ts +213 -0
- package/src/editing/engines/cursor.ts +505 -0
- package/src/editing/engines/draftMarker.ts +149 -0
- package/src/editing/rules/accent.ts +11 -0
- package/src/editing/rules/engine.ts +288 -0
- package/src/editing/rules/placement.ts +22 -0
- package/src/editing/rules/positions.ts +89 -0
- package/src/editing/rules/sources.ts +9 -0
- package/src/editing/rules/types.ts +457 -0
- package/src/editing/rules/vocabulary.ts +10 -0
- package/src/editing/rules/waypointCursor.ts +228 -0
- package/src/editor/engines/directionArrows.ts +459 -0
- package/src/editor/engines/directions.ts +1383 -0
- package/src/editor/engines/editorClient.ts +134 -0
- package/src/editor/engines/eventScope.ts +59 -0
- package/src/editor/engines/frameLoop.ts +159 -0
- package/src/editor/engines/itineraryPreview.ts +272 -0
- package/src/editor/engines/mapLockGuard.ts +66 -0
- package/src/editor/engines/overlayRenderer.ts +2696 -0
- package/src/editor/engines/peerDraft.ts +760 -0
- package/src/editor/engines/poiPick.ts +305 -0
- package/src/editor/engines/pointPick.ts +84 -0
- package/src/editor/engines/roadAccessLine.ts +140 -0
- package/src/editor/engines/searchHighlight.ts +183 -0
- package/src/editor/engines/viewClient.ts +4091 -0
- package/src/editor/engines/zoneBadges.ts +503 -0
- package/src/editor/index.ts +97 -0
- package/src/editor/rules/accentColor.ts +116 -0
- package/src/editor/rules/camera.ts +121 -0
- package/src/editor/rules/contract.ts +120 -0
- package/src/editor/rules/icons.ts +825 -0
- package/src/editor/rules/markerElements.ts +244 -0
- package/src/editor/rules/style.ts +51 -0
- package/src/editor/rules/terrain.ts +98 -0
- package/src/editor/rules/tileWarm.ts +191 -0
- package/src/editor/rules/tilesReload.ts +158 -0
- package/src/editor/rules/zoneBadgePlacement.ts +1832 -0
- package/src/editor/rules/zoneTimeStyling.ts +119 -0
- package/src/errors/index.ts +25 -0
- package/src/errors/rules/errors.ts +158 -0
- package/src/errors/rules/print.ts +129 -0
- package/src/geo/index.ts +89 -0
- package/src/geo/rules/boundaries.ts +105 -0
- package/src/geo/rules/camera.ts +496 -0
- package/src/geo/rules/corridor.ts +242 -0
- package/src/geo/rules/elevationTiles.ts +269 -0
- package/src/geo/rules/formatLngLat.ts +63 -0
- package/src/geo/rules/geodesy.ts +125 -0
- package/src/geo/rules/geometry.ts +362 -0
- package/src/geo/rules/lineWalk.ts +77 -0
- package/src/geo/rules/longitude.ts +99 -0
- package/src/geo/rules/searchLimits.ts +22 -0
- package/src/geo/rules/segmentGeometry.ts +80 -0
- package/src/geo/rules/terrain.ts +107 -0
- package/src/geo/rules/tuples.ts +124 -0
- package/src/geo/rules/types.ts +54 -0
- package/src/geo/rules/webMercator.ts +57 -0
- package/src/i18n/fr/index.ts +17 -0
- package/src/i18n/fr/rules/fr.ts +85 -0
- package/src/i18n/fr/rules/words.gen.ts +277 -0
- package/src/i18n/index.ts +82 -0
- package/src/i18n/rules/bundle.ts +378 -0
- package/src/i18n/rules/config.ts +71 -0
- package/src/i18n/rules/dates.ts +165 -0
- package/src/i18n/rules/endonyms.gen.ts +19 -0
- package/src/i18n/rules/language.ts +92 -0
- package/src/i18n/rules/localizedName.ts +33 -0
- package/src/i18n/rules/merge.ts +106 -0
- package/src/i18n/rules/scope.ts +127 -0
- package/src/i18n/rules/strings.ts +632 -0
- package/src/i18n/rules/videoOverlay.ts +121 -0
- package/src/i18n/rules/wordForms.ts +95 -0
- package/src/i18n/rules/words.gen.ts +277 -0
- package/src/icons/index.ts +54 -0
- package/src/icons/rules/activities.ts +40 -0
- package/src/icons/rules/amenities.ts +250 -0
- package/src/icons/rules/artwork.gen.ts +83 -0
- package/src/icons/rules/artwork.ts +47 -0
- package/src/icons/rules/fallback.ts +21 -0
- package/src/icons/rules/lucideMarkers.gen.ts +112 -0
- package/src/icons/rules/lucideUi.gen.ts +197 -0
- package/src/icons/rules/paint.ts +107 -0
- package/src/icons/rules/parse.ts +475 -0
- package/src/icons/rules/provider.ts +373 -0
- package/src/icons/rules/sprites.ts +54 -0
- package/src/icons/rules/ui.ts +348 -0
- package/src/icons/rules/waypoints.ts +215 -0
- package/src/index.ts +993 -0
- package/src/layers/engines/layersSelection.ts +515 -0
- package/src/layers/engines/readoutEngine.ts +131 -0
- package/src/layers/index.ts +151 -0
- package/src/layers/rules/analysis.ts +135 -0
- package/src/layers/rules/enrichment.ts +30 -0
- package/src/layers/rules/geoJson.ts +270 -0
- package/src/layers/rules/hover.ts +67 -0
- package/src/layers/rules/itineraries.ts +182 -0
- package/src/layers/rules/layersPanel.ts +237 -0
- package/src/layers/rules/order.ts +194 -0
- package/src/layers/rules/overlayInstant.ts +49 -0
- package/src/layers/rules/overlays.ts +52 -0
- package/src/layers/rules/poiPanel.ts +119 -0
- package/src/layers/rules/pois.ts +114 -0
- package/src/layers/rules/readout.ts +340 -0
- package/src/layers/rules/streetView.ts +16 -0
- package/src/layers/rules/tileTimestamp.ts +146 -0
- package/src/layers/rules/timeSlider.ts +192 -0
- package/src/layers/rules/timeWindow.ts +123 -0
- package/src/layers/rules/zones.ts +43 -0
- package/src/layers/rules/zoom.ts +77 -0
- package/src/map-client/index.ts +71 -0
- package/src/map-client/rules/mapClient.ts +1945 -0
- package/src/navigation/engines/navigation.ts +493 -0
- package/src/navigation/index.ts +51 -0
- package/src/navigation/rules/followedRoute.ts +78 -0
- package/src/navigation/rules/instructions.ts +89 -0
- package/src/navigation/rules/itineraryRoute.ts +232 -0
- package/src/navigation/rules/offRoute.ts +41 -0
- package/src/navigation/rules/progress.ts +230 -0
- package/src/navigation/rules/prompts.ts +217 -0
- package/src/navigation/rules/routeRequest.ts +98 -0
- package/src/navigation/rules/status.ts +142 -0
- package/src/navigation/rules/steps.ts +234 -0
- package/src/navigation/rules/types.ts +83 -0
- package/src/profile/index.ts +307 -0
- package/src/profile/rules/amenityBadge.ts +35 -0
- package/src/profile/rules/amenityFilter.ts +74 -0
- package/src/profile/rules/amenityStacks.ts +66 -0
- package/src/profile/rules/axis.ts +89 -0
- package/src/profile/rules/axisCulling.ts +83 -0
- package/src/profile/rules/axisLookup.ts +180 -0
- package/src/profile/rules/climbs.ts +292 -0
- package/src/profile/rules/cursorMarker.ts +122 -0
- package/src/profile/rules/cursorReadout.ts +104 -0
- package/src/profile/rules/curvePlacement.ts +216 -0
- package/src/profile/rules/dock.ts +293 -0
- package/src/profile/rules/elevation.ts +1263 -0
- package/src/profile/rules/instant.ts +89 -0
- package/src/profile/rules/intl.ts +237 -0
- package/src/profile/rules/legEmphasis.ts +53 -0
- package/src/profile/rules/profileColors.ts +66 -0
- package/src/profile/rules/profileLayout.ts +59 -0
- package/src/profile/rules/profileSlices.ts +55 -0
- package/src/profile/rules/routeProfile.ts +475 -0
- package/src/profile/rules/rowMatch.ts +50 -0
- package/src/profile/rules/scale.ts +646 -0
- package/src/profile/rules/scaleFrame.ts +171 -0
- package/src/profile/rules/sectionChips.ts +83 -0
- package/src/profile/rules/sections.ts +923 -0
- package/src/profile/rules/slopeRamp.ts +160 -0
- package/src/profile/rules/statStrip.ts +103 -0
- package/src/profile/rules/steepness.ts +51 -0
- package/src/profile/rules/tableCells.ts +269 -0
- package/src/profile/rules/tableCursor.ts +87 -0
- package/src/profile/rules/unitPatterns.ts +335 -0
- package/src/profile/rules/units.ts +1025 -0
- package/src/profile/rules/waypointCard.ts +590 -0
- package/src/profile/rules/webAddress.ts +130 -0
- package/src/profile/rules/windowSpans.ts +65 -0
- package/src/rules/asciiFold.ts +17 -0
- package/src/rules/inDevelopment.ts +54 -0
- package/src/rules/listeners.ts +62 -0
- package/src/rules/timers.ts +9 -0
- package/src/rules/types.ts +22 -0
- package/src/rules/uuid.ts +87 -0
- package/src/seams/engines/geolocateControl.ts +286 -0
- package/src/seams/index.ts +50 -0
- package/src/seams/rules/clock.ts +169 -0
- package/src/seams/rules/geolocation.ts +165 -0
- package/src/seams/rules/segmentRoute.ts +187 -0
- package/src/search/engines/search.ts +1093 -0
- package/src/search/index.ts +99 -0
- package/src/search/rules/describe.ts +383 -0
- package/src/search/rules/filters.ts +195 -0
- package/src/search/rules/highlight.ts +270 -0
- package/src/search/rules/pick.ts +90 -0
- package/src/search/rules/rows.ts +258 -0
- package/src/search/rules/searchFocus.ts +27 -0
- package/src/search/rules/searchViewport.ts +44 -0
- package/src/search/rules/shown.ts +77 -0
- package/src/search/rules/types.ts +340 -0
- package/src/stream/rules/reconnectSchedule.ts +83 -0
- package/src/style/engines/organizationRead.ts +80 -0
- package/src/style/index.ts +63 -0
- package/src/style/rules/apply.ts +268 -0
- package/src/style/rules/attribution.ts +119 -0
- package/src/style/rules/itineraryLine.ts +142 -0
- package/src/style/rules/language.ts +668 -0
- package/src/style/rules/layout.gen.ts +27 -0
- package/src/style/rules/organization.ts +96 -0
- package/src/style/rules/paint.ts +143 -0
- package/src/style/rules/panelLayout.ts +51 -0
- package/src/style/rules/roadAccessColors.ts +29 -0
- package/src/style/rules/roadAccessLine.ts +267 -0
- package/src/style/rules/segmentColors.ts +207 -0
- package/src/testing/catalogs.ts +103 -0
- package/src/testing/index.ts +30 -0
- package/src/testing/mapClient.ts +241 -0
- package/src/testing/mountayaMap.ts +741 -0
- package/src/timezone/index.ts +14 -0
- package/src/timezone/rules/viewport.ts +875 -0
- package/src/units/index.ts +55 -0
- package/src/units/rules/conversions.ts +620 -0
- package/src/units/rules/preferenceChoices.ts +124 -0
- package/src/units/rules/preferences.ts +77 -0
- package/src/units/rules/rounding.ts +69 -0
- package/src/video/engines/videoRun.ts +654 -0
- package/src/video/engines/viewClient.ts +6 -0
- package/src/video/index.ts +83 -0
- package/src/video/profileOverlay/rules/contract.ts +210 -0
- package/src/video/profileOverlay/rules/curve.ts +216 -0
- package/src/video/profileOverlay/rules/draw.ts +410 -0
- package/src/video/profileOverlay/rules/fonts.ts +54 -0
- package/src/video/profileOverlay/rules/graphDesign.ts +690 -0
- package/src/video/profileOverlay/rules/minimalDesign.ts +144 -0
- package/src/video/profileOverlay/rules/registry.ts +23 -0
- package/src/video/profileOverlay/rules/staticLayer.ts +582 -0
- package/src/video/profileOverlay/rules/stripDesign.ts +327 -0
- package/src/video/profileOverlay/rules/types.ts +78 -0
- package/src/video/rules/videoConstants.ts +250 -0
- package/src/video/rules/videoEncoder.ts +277 -0
- package/src/video/rules/videoFrames.ts +99 -0
- package/src/video/rules/videoPreview.ts +185 -0
- package/src/video/rules/videoRecorder.ts +746 -0
- package/src/video/rules/videoWatermark.ts +155 -0
- package/src/video/rules/watermarkMark.ts +40 -0
- package/src/view/engines/viewClient.ts +6 -0
- package/src/view/index.ts +20 -0
|
@@ -0,0 +1,1056 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
const require_errors = require("./chunk-o3IRANDf.cjs");
|
|
3
|
+
const require_listeners = require("./chunk-BIEc_SkR.cjs");
|
|
4
|
+
const require_conversions = require("./chunk-BBikve0Z.cjs");
|
|
5
|
+
const require_longitude = require("./chunk-RHZrxUrM.cjs");
|
|
6
|
+
const require_tuples = require("./chunk-DKqgr31j.cjs");
|
|
7
|
+
const require_units = require("./chunk-BJ6L6_W9.cjs");
|
|
8
|
+
const require_timers = require("./chunk-BJz54mfg.cjs");
|
|
9
|
+
require("./chunk-Cizu_j1N.cjs");
|
|
10
|
+
const MAX_FRACTION_DIGITS = 20;
|
|
11
|
+
const POWERS_OF_TEN = Array.from({ length: 21 }, (_, exponent) => Number(`1e${exponent}`));
|
|
12
|
+
const SCALED_LIMIT = 2 ** 48;
|
|
13
|
+
const roundHalfAwayFromZero = (value, fractionDigits) => {
|
|
14
|
+
if (!Number.isFinite(value)) return value;
|
|
15
|
+
const scale = POWERS_OF_TEN[Math.min(Math.max(Math.trunc(fractionDigits) || 0, 0), MAX_FRACTION_DIGITS)] ?? 1;
|
|
16
|
+
const magnitude = Math.abs(value);
|
|
17
|
+
const scaled = magnitude * scale;
|
|
18
|
+
if (scaled >= SCALED_LIMIT) return value;
|
|
19
|
+
const lower = Math.floor(scaled);
|
|
20
|
+
const count = magnitude >= (2 * lower + 1) / (2 * scale) ? lower + 1 : lower;
|
|
21
|
+
if (count === 0) return 0;
|
|
22
|
+
const rounded = count / scale;
|
|
23
|
+
return value < 0 ? -rounded : rounded;
|
|
24
|
+
};
|
|
25
|
+
const SEPARATOR = " · ";
|
|
26
|
+
const ELEVATION_MIN_METERS = 100;
|
|
27
|
+
const DISTANCE_FIGURE_CEILING = 1e3;
|
|
28
|
+
const titleCase = (value) => {
|
|
29
|
+
if (value.length === 0) return value;
|
|
30
|
+
const cleaned = value.replace(/_/g, " ");
|
|
31
|
+
return cleaned.charAt(0).toUpperCase() + cleaned.slice(1);
|
|
32
|
+
};
|
|
33
|
+
const wordFor = (label, fallback, wording) => {
|
|
34
|
+
const word = wording?.resolveLabel?.(label);
|
|
35
|
+
return word === null || word === void 0 || word.length === 0 ? fallback : word;
|
|
36
|
+
};
|
|
37
|
+
const placeCategoryWord = (place, wording) => wordFor({
|
|
38
|
+
kind: "placeCategory",
|
|
39
|
+
value: place.category
|
|
40
|
+
}, titleCase(place.category.toLowerCase()), wording);
|
|
41
|
+
const poiCategoryWord = (poi, wording) => wordFor({
|
|
42
|
+
kind: "poiCategory",
|
|
43
|
+
value: poi.category
|
|
44
|
+
}, titleCase(poi.category.toLowerCase()), wording);
|
|
45
|
+
const highwayWord = (way, wording) => wordFor({
|
|
46
|
+
kind: "highway",
|
|
47
|
+
value: way.highway
|
|
48
|
+
}, titleCase(way.highway), wording);
|
|
49
|
+
const joinTokens = (tokens) => tokens.filter((token) => Boolean(token && token.length > 0)).join(SEPARATOR);
|
|
50
|
+
const suppressIfMatchesName = (token, name) => {
|
|
51
|
+
if (!token || token.length === 0) return "";
|
|
52
|
+
if (token.toLowerCase() === name.toLowerCase()) return "";
|
|
53
|
+
return token;
|
|
54
|
+
};
|
|
55
|
+
const countryFlagEmoji = (code) => {
|
|
56
|
+
if (code.length !== 2) return "";
|
|
57
|
+
const upper = code.toUpperCase();
|
|
58
|
+
const a = upper.charCodeAt(0);
|
|
59
|
+
const b = upper.charCodeAt(1);
|
|
60
|
+
if (a < 65 || a > 90 || b < 65 || b > 90) return "";
|
|
61
|
+
return String.fromCodePoint(127462 + (a - 65), 127462 + (b - 65));
|
|
62
|
+
};
|
|
63
|
+
const formatCountryToken = (code, name) => {
|
|
64
|
+
const flag = code ? countryFlagEmoji(code) : "";
|
|
65
|
+
if (name && flag) return `${name} ${flag}`;
|
|
66
|
+
if (name) return name;
|
|
67
|
+
if (flag) return flag;
|
|
68
|
+
return "";
|
|
69
|
+
};
|
|
70
|
+
const placeTitle = (place, wording) => {
|
|
71
|
+
if (place.name.length > 0) return place.name;
|
|
72
|
+
if (place.category === "ADDRESS" && place.label.length > 0) return place.label;
|
|
73
|
+
return placeCategoryWord(place, wording);
|
|
74
|
+
};
|
|
75
|
+
const poiTitle = (poi, wording) => poi.name.length > 0 ? poi.name : poiCategoryWord(poi, wording);
|
|
76
|
+
const wayTitle = (way, wording) => way.name.length > 0 ? way.name : highwayWord(way, wording);
|
|
77
|
+
const describePlace = (place, wording) => {
|
|
78
|
+
const name = placeTitle(place, wording);
|
|
79
|
+
const primary = placeCategoryWord(place, wording);
|
|
80
|
+
const countryToken = formatCountryToken(place.country, place.countryName);
|
|
81
|
+
if (place.category === "ADDRESS") {
|
|
82
|
+
if (place.label.length > 0 && place.label.toLowerCase() !== name.toLowerCase()) {
|
|
83
|
+
if (countryToken.length === 0) return place.label;
|
|
84
|
+
return joinTokens([place.label, countryToken]);
|
|
85
|
+
}
|
|
86
|
+
return joinTokens([suppressIfMatchesName(primary, name), countryToken]);
|
|
87
|
+
}
|
|
88
|
+
if (place.category === "COUNTRY") return primary;
|
|
89
|
+
return joinTokens([
|
|
90
|
+
suppressIfMatchesName(primary, name),
|
|
91
|
+
suppressIfMatchesName(place.region, name),
|
|
92
|
+
countryToken
|
|
93
|
+
]);
|
|
94
|
+
};
|
|
95
|
+
const formatDistanceToken = (meters, units) => {
|
|
96
|
+
if (units === void 0) {
|
|
97
|
+
const tens = roundHalfAwayFromZero(meters / 10, 0) * 10;
|
|
98
|
+
if (tens === 0) return "";
|
|
99
|
+
return tens >= DISTANCE_FIGURE_CEILING ? `${roundHalfAwayFromZero(meters / require_conversions.METERS_PER_KILOMETER, 1).toFixed(1)} km` : `${tens} m`;
|
|
100
|
+
}
|
|
101
|
+
const small = require_units.elevationUnitFor(units.length);
|
|
102
|
+
const large = require_units.distanceUnitFor(units.length);
|
|
103
|
+
const tens = roundHalfAwayFromZero(require_conversions.convertLength(meters, "meter", small) / 10, 0) * 10;
|
|
104
|
+
if (tens === 0) return "";
|
|
105
|
+
return tens >= DISTANCE_FIGURE_CEILING ? require_units.unitText(require_units.unitFigure(require_conversions.convertLength(meters, "meter", large), units.language, {
|
|
106
|
+
maximumFractionDigits: 1,
|
|
107
|
+
minimumFractionDigits: 1,
|
|
108
|
+
signDisplay: "negative"
|
|
109
|
+
}), large, units.language) : require_units.unitText(require_units.unitFigure(tens, units.language, {
|
|
110
|
+
maximumFractionDigits: 0,
|
|
111
|
+
signDisplay: "negative"
|
|
112
|
+
}), small, units.language);
|
|
113
|
+
};
|
|
114
|
+
const describePoi = (poi, wording) => {
|
|
115
|
+
const name = poiTitle(poi, wording);
|
|
116
|
+
const primary = suppressIfMatchesName(poiCategoryWord(poi, wording), name);
|
|
117
|
+
const units = wording?.units;
|
|
118
|
+
let secondary = "";
|
|
119
|
+
if (poi.elevation !== null && poi.elevation !== void 0 && poi.elevation >= ELEVATION_MIN_METERS) secondary = units === void 0 ? `${Math.round(poi.elevation)} m` : require_units.formatElevation(poi.elevation, units);
|
|
120
|
+
else if (poi.distanceMeters !== null && poi.distanceMeters !== void 0 && poi.distanceMeters > 0) secondary = formatDistanceToken(poi.distanceMeters, units);
|
|
121
|
+
const admin = suppressIfMatchesName(poi.city ?? poi.region ?? "", name);
|
|
122
|
+
return joinTokens([
|
|
123
|
+
primary,
|
|
124
|
+
secondary,
|
|
125
|
+
admin,
|
|
126
|
+
formatCountryToken(poi.country, poi.countryName)
|
|
127
|
+
]);
|
|
128
|
+
};
|
|
129
|
+
const describeWay = (way, wording) => {
|
|
130
|
+
const name = wayTitle(way, wording);
|
|
131
|
+
const primary = suppressIfMatchesName(highwayWord(way, wording), name);
|
|
132
|
+
let secondary = "";
|
|
133
|
+
if (way.sacScale && way.sacScale !== "hiking") secondary = wordFor({
|
|
134
|
+
kind: "sacScale",
|
|
135
|
+
value: way.sacScale
|
|
136
|
+
}, titleCase(way.sacScale), wording);
|
|
137
|
+
else if (way.surface) secondary = wordFor({
|
|
138
|
+
kind: "surface",
|
|
139
|
+
value: way.surface
|
|
140
|
+
}, `${titleCase(way.surface).toLowerCase()} surface`, wording);
|
|
141
|
+
const admin = suppressIfMatchesName(way.city ?? way.region ?? "", name);
|
|
142
|
+
return joinTokens([
|
|
143
|
+
primary,
|
|
144
|
+
secondary,
|
|
145
|
+
admin,
|
|
146
|
+
formatCountryToken(way.country, way.countryName)
|
|
147
|
+
]);
|
|
148
|
+
};
|
|
149
|
+
const describeZone = (zone) => zone.description ?? void 0;
|
|
150
|
+
const accentMarks = /[\u0300-\u036f]/g;
|
|
151
|
+
const finalSigma = /ς/g;
|
|
152
|
+
const typedLetters = /* @__PURE__ */ new Map([
|
|
153
|
+
["ß", "ss"],
|
|
154
|
+
["đ", "d"],
|
|
155
|
+
["ħ", "h"],
|
|
156
|
+
["ł", "l"],
|
|
157
|
+
["ø", "o"],
|
|
158
|
+
["ŧ", "t"]
|
|
159
|
+
]);
|
|
160
|
+
const typedLetter = /[ßđħłøŧ]/g;
|
|
161
|
+
const combiningMark = /^\p{M}/u;
|
|
162
|
+
const FIRST_JOINING_CODE_POINT = 768;
|
|
163
|
+
const joinsSegment = (segment, point) => combiningMark.test(point) || (segment + point).normalize("NFC") !== segment.normalize("NFC") + point.normalize("NFC");
|
|
164
|
+
const foldSegment = (segment) => {
|
|
165
|
+
if (segment.length === 1 && segment.charCodeAt(0) < 128) return segment.toLowerCase();
|
|
166
|
+
return segment.toLowerCase().normalize("NFD").replace(accentMarks, "").normalize("NFC").replace(finalSigma, "σ").replace(typedLetter, (letter) => typedLetters.get(letter) ?? letter);
|
|
167
|
+
};
|
|
168
|
+
const fold = (value) => {
|
|
169
|
+
let text = "";
|
|
170
|
+
const starts = [];
|
|
171
|
+
const ends = [];
|
|
172
|
+
let start = 0;
|
|
173
|
+
let index = 0;
|
|
174
|
+
const close = (end) => {
|
|
175
|
+
const folded = foldSegment(value.slice(start, end));
|
|
176
|
+
for (let unit = 0; unit < folded.length; unit += 1) {
|
|
177
|
+
starts.push(start);
|
|
178
|
+
ends.push(end);
|
|
179
|
+
}
|
|
180
|
+
text += folded;
|
|
181
|
+
start = end;
|
|
182
|
+
};
|
|
183
|
+
for (const point of value) {
|
|
184
|
+
if (index > start && (point.charCodeAt(0) < FIRST_JOINING_CODE_POINT || !joinsSegment(value.slice(start, index), point))) close(index);
|
|
185
|
+
index += point.length;
|
|
186
|
+
}
|
|
187
|
+
if (index > start) close(index);
|
|
188
|
+
return {
|
|
189
|
+
ends,
|
|
190
|
+
starts,
|
|
191
|
+
text
|
|
192
|
+
};
|
|
193
|
+
};
|
|
194
|
+
const highlightRanges = (value, query) => {
|
|
195
|
+
if (value.length === 0 || query.length === 0) return [];
|
|
196
|
+
const needle = fold(query).text;
|
|
197
|
+
if (needle.length === 0) return [];
|
|
198
|
+
const haystack = fold(value);
|
|
199
|
+
const ranges = [];
|
|
200
|
+
let from = 0;
|
|
201
|
+
while (from <= haystack.text.length - needle.length) {
|
|
202
|
+
const index = haystack.text.indexOf(needle, from);
|
|
203
|
+
if (index === -1) break;
|
|
204
|
+
const start = haystack.starts[index] ?? 0;
|
|
205
|
+
const end = haystack.ends[index + needle.length - 1] ?? value.length;
|
|
206
|
+
const previous = ranges.at(-1);
|
|
207
|
+
if (previous !== void 0 && start < previous[1]) previous[1] = Math.max(previous[1], end);
|
|
208
|
+
else ranges.push([start, end]);
|
|
209
|
+
from = index + needle.length;
|
|
210
|
+
}
|
|
211
|
+
return ranges;
|
|
212
|
+
};
|
|
213
|
+
const splitByRanges = (value, ranges) => {
|
|
214
|
+
if (ranges.length === 0) return [{
|
|
215
|
+
match: false,
|
|
216
|
+
text: value
|
|
217
|
+
}];
|
|
218
|
+
const parts = [];
|
|
219
|
+
let cursor = 0;
|
|
220
|
+
for (const [start, end] of ranges) {
|
|
221
|
+
if (start > cursor) parts.push({
|
|
222
|
+
match: false,
|
|
223
|
+
text: value.slice(cursor, start)
|
|
224
|
+
});
|
|
225
|
+
parts.push({
|
|
226
|
+
match: true,
|
|
227
|
+
text: value.slice(start, end)
|
|
228
|
+
});
|
|
229
|
+
cursor = end;
|
|
230
|
+
}
|
|
231
|
+
if (cursor < value.length) parts.push({
|
|
232
|
+
match: false,
|
|
233
|
+
text: value.slice(cursor)
|
|
234
|
+
});
|
|
235
|
+
return parts;
|
|
236
|
+
};
|
|
237
|
+
const matchedFor = (title, query) => {
|
|
238
|
+
const ranges = highlightRanges(title, query);
|
|
239
|
+
return ranges.length === 0 ? void 0 : ranges;
|
|
240
|
+
};
|
|
241
|
+
const textSecondary = (text) => text && text.length > 0 ? {
|
|
242
|
+
kind: "text",
|
|
243
|
+
text
|
|
244
|
+
} : void 0;
|
|
245
|
+
const hasOsmReference = (entity) => entity.osm !== null && entity.osm !== void 0;
|
|
246
|
+
const hasId = (entity) => typeof entity.id === "string";
|
|
247
|
+
const placeRow = (place, query, wording) => {
|
|
248
|
+
const point = require_tuples.pointTuple(place.point);
|
|
249
|
+
if (!point || !hasOsmReference(place)) return null;
|
|
250
|
+
const bounds = require_tuples.boundsTuple(place.bounds);
|
|
251
|
+
const title = placeTitle(place, wording);
|
|
252
|
+
return {
|
|
253
|
+
id: `place:${place.osm.type}:${place.osm.id}`,
|
|
254
|
+
matched: matchedFor(title, query),
|
|
255
|
+
payload: {
|
|
256
|
+
bounds,
|
|
257
|
+
kind: "place",
|
|
258
|
+
point
|
|
259
|
+
},
|
|
260
|
+
secondary: textSecondary(describePlace(place, wording)),
|
|
261
|
+
title
|
|
262
|
+
};
|
|
263
|
+
};
|
|
264
|
+
const poiRow = (poi, query, wording) => {
|
|
265
|
+
const point = require_tuples.pointTuple(poi.point);
|
|
266
|
+
if (!point || !hasOsmReference(poi)) return null;
|
|
267
|
+
const title = poiTitle(poi, wording);
|
|
268
|
+
return {
|
|
269
|
+
id: `poi:${poi.osm.type}:${poi.osm.id}`,
|
|
270
|
+
matched: matchedFor(title, query),
|
|
271
|
+
payload: {
|
|
272
|
+
category: poi.category,
|
|
273
|
+
kind: "poi",
|
|
274
|
+
point
|
|
275
|
+
},
|
|
276
|
+
secondary: textSecondary(describePoi(poi, wording)),
|
|
277
|
+
title
|
|
278
|
+
};
|
|
279
|
+
};
|
|
280
|
+
const wayRow = (way, query, wording) => {
|
|
281
|
+
const anchor = require_tuples.pointTuple(way.point);
|
|
282
|
+
if (!anchor || !hasOsmReference(way)) return null;
|
|
283
|
+
const bounds = require_tuples.boundsTuple(way.bounds);
|
|
284
|
+
const title = wayTitle(way, wording);
|
|
285
|
+
return {
|
|
286
|
+
activities: way.activityCompatible.length > 0 ? way.activityCompatible : void 0,
|
|
287
|
+
id: `way:${way.osm.type}:${way.osm.id}`,
|
|
288
|
+
matched: matchedFor(title, query),
|
|
289
|
+
payload: {
|
|
290
|
+
anchor,
|
|
291
|
+
bounds,
|
|
292
|
+
coordinates: way.coordinates ?? void 0,
|
|
293
|
+
kind: "way"
|
|
294
|
+
},
|
|
295
|
+
secondary: textSecondary(describeWay(way, wording)),
|
|
296
|
+
title
|
|
297
|
+
};
|
|
298
|
+
};
|
|
299
|
+
const itineraryRow = (itinerary, query) => {
|
|
300
|
+
if (!hasId(itinerary)) return null;
|
|
301
|
+
return {
|
|
302
|
+
activities: itinerary.activitySlug ? [itinerary.activitySlug] : void 0,
|
|
303
|
+
id: `itinerary:${itinerary.id}`,
|
|
304
|
+
matched: matchedFor(itinerary.name, query),
|
|
305
|
+
payload: {
|
|
306
|
+
bounds: require_tuples.boundsTuple(itinerary.bounds),
|
|
307
|
+
itineraryId: itinerary.id,
|
|
308
|
+
kind: "itinerary",
|
|
309
|
+
start: require_tuples.pointTuple(itinerary.start)
|
|
310
|
+
},
|
|
311
|
+
secondary: {
|
|
312
|
+
ascent: itinerary.ascent ?? null,
|
|
313
|
+
distance: itinerary.distance ?? null,
|
|
314
|
+
kind: "metric"
|
|
315
|
+
},
|
|
316
|
+
title: itinerary.name
|
|
317
|
+
};
|
|
318
|
+
};
|
|
319
|
+
const collectionRow = (collection, query) => {
|
|
320
|
+
if (!hasId(collection)) return null;
|
|
321
|
+
return {
|
|
322
|
+
id: `collection:${collection.id}`,
|
|
323
|
+
matched: matchedFor(collection.name, query),
|
|
324
|
+
payload: {
|
|
325
|
+
collectionId: collection.id,
|
|
326
|
+
description: collection.description ?? null,
|
|
327
|
+
isPrivate: collection.isPrivate,
|
|
328
|
+
kind: "collection",
|
|
329
|
+
name: collection.name
|
|
330
|
+
},
|
|
331
|
+
secondary: {
|
|
332
|
+
itineraries: collection.count.itineraries,
|
|
333
|
+
kind: "count"
|
|
334
|
+
},
|
|
335
|
+
title: collection.name
|
|
336
|
+
};
|
|
337
|
+
};
|
|
338
|
+
const zoneRow = (zone, query) => {
|
|
339
|
+
if (!hasId(zone)) return null;
|
|
340
|
+
return {
|
|
341
|
+
id: `zone:${zone.id}`,
|
|
342
|
+
matched: matchedFor(zone.name, query),
|
|
343
|
+
payload: {
|
|
344
|
+
bounds: require_tuples.boundsTuple(zone.bounds),
|
|
345
|
+
kind: "zone",
|
|
346
|
+
point: require_tuples.pointTuple(zone.point),
|
|
347
|
+
zoneId: zone.id
|
|
348
|
+
},
|
|
349
|
+
secondary: textSecondary(describeZone(zone)),
|
|
350
|
+
title: zone.name
|
|
351
|
+
};
|
|
352
|
+
};
|
|
353
|
+
const searchFocus = (center) => {
|
|
354
|
+
const [longitude, latitude] = center;
|
|
355
|
+
if (!Number.isFinite(longitude) || !Number.isFinite(latitude)) return;
|
|
356
|
+
return [require_longitude.wrapLongitudePastRange(longitude), Math.min(Math.max(latitude, -90), 90)];
|
|
357
|
+
};
|
|
358
|
+
const SECTION_ORDER = [
|
|
359
|
+
"itineraries",
|
|
360
|
+
"places",
|
|
361
|
+
"ways",
|
|
362
|
+
"pois",
|
|
363
|
+
"zones",
|
|
364
|
+
"collections"
|
|
365
|
+
];
|
|
366
|
+
const SEARCH_DEBOUNCE_MS = 150;
|
|
367
|
+
const SEARCH_VIEWPORT_REFRESH_MS = 350;
|
|
368
|
+
const SEARCH_TARGETS = SECTION_ORDER;
|
|
369
|
+
const pauseFrom = (option, pauseMs, fallbackMs) => {
|
|
370
|
+
if (pauseMs === void 0) return fallbackMs;
|
|
371
|
+
if (!Number.isFinite(pauseMs) || pauseMs < 0 || pauseMs > require_timers.MAX_TIMER_MS) throw new require_errors.MountayaElementsError(`SearchEngine: ${option} is ${String(pauseMs)}; pass a number of milliseconds from 0 to ${require_timers.MAX_TIMER_MS}, or omit it for ${fallbackMs}.`);
|
|
372
|
+
return pauseMs;
|
|
373
|
+
};
|
|
374
|
+
const configFrom = (config) => {
|
|
375
|
+
const { limit, targets } = config;
|
|
376
|
+
if (limit !== void 0 && (!Number.isInteger(limit) || limit < 1 || limit > 50)) throw new require_errors.MountayaElementsError(`SearchEngine: limit is ${String(limit)}; pass a whole number from 1 to 50, or omit it for the API's default.`);
|
|
377
|
+
return targets === void 0 ? config : {
|
|
378
|
+
...config,
|
|
379
|
+
targets: [...new Set(targets)]
|
|
380
|
+
};
|
|
381
|
+
};
|
|
382
|
+
const onlyTarget = (target) => ({
|
|
383
|
+
collections: target === "collections",
|
|
384
|
+
itineraries: target === "itineraries",
|
|
385
|
+
places: target === "places",
|
|
386
|
+
pois: target === "pois",
|
|
387
|
+
ways: target === "ways",
|
|
388
|
+
zones: target === "zones"
|
|
389
|
+
});
|
|
390
|
+
const loadingSection = (id) => ({
|
|
391
|
+
id,
|
|
392
|
+
results: [],
|
|
393
|
+
state: { kind: "loading" }
|
|
394
|
+
});
|
|
395
|
+
const errorSection = (id, failure) => ({
|
|
396
|
+
id,
|
|
397
|
+
results: [],
|
|
398
|
+
state: {
|
|
399
|
+
...failure.code === void 0 ? {} : { code: failure.code },
|
|
400
|
+
...failure.detail === void 0 ? {} : { detail: failure.detail },
|
|
401
|
+
kind: "error",
|
|
402
|
+
message: failure.message
|
|
403
|
+
}
|
|
404
|
+
});
|
|
405
|
+
const settledSection = (id, results) => ({
|
|
406
|
+
id,
|
|
407
|
+
results,
|
|
408
|
+
state: { kind: "settled" }
|
|
409
|
+
});
|
|
410
|
+
const emptySnapshot = (order, query) => ({
|
|
411
|
+
fallbackActive: false,
|
|
412
|
+
isSearching: false,
|
|
413
|
+
query,
|
|
414
|
+
roundsSettled: 0,
|
|
415
|
+
sections: order.map((id) => settledSection(id, []))
|
|
416
|
+
});
|
|
417
|
+
const loadingSnapshot = (order, query) => ({
|
|
418
|
+
fallbackActive: false,
|
|
419
|
+
isSearching: true,
|
|
420
|
+
query,
|
|
421
|
+
roundsSettled: 0,
|
|
422
|
+
sections: order.map(loadingSection)
|
|
423
|
+
});
|
|
424
|
+
const isLoading = (state) => state.kind === "loading";
|
|
425
|
+
const isSettledEmpty = (section) => section.state.kind === "settled" && section.results.length === 0;
|
|
426
|
+
const failureOf = (error) => {
|
|
427
|
+
const held = typeof error === "object" && error !== null ? error : {};
|
|
428
|
+
return {
|
|
429
|
+
code: "code" in held && typeof held.code === "string" ? held.code : void 0,
|
|
430
|
+
detail: "detail" in held && typeof held.detail === "string" ? held.detail : void 0,
|
|
431
|
+
message: error instanceof Error ? error.message : "unexpected error"
|
|
432
|
+
};
|
|
433
|
+
};
|
|
434
|
+
const mapTargetResult = (result, target, query, wording) => {
|
|
435
|
+
const reported = result.errors.find((entry) => entry.target === target.toUpperCase());
|
|
436
|
+
if (reported !== void 0) return errorSection(target, {
|
|
437
|
+
code: reported.code,
|
|
438
|
+
message: reported.message
|
|
439
|
+
});
|
|
440
|
+
switch (target) {
|
|
441
|
+
case "places": {
|
|
442
|
+
const rows = (result.places?.places ?? []).map((place) => placeRow(place, query, wording)).filter((row) => row !== null);
|
|
443
|
+
return settledSection(target, rows);
|
|
444
|
+
}
|
|
445
|
+
case "pois": {
|
|
446
|
+
const rows = (result.pois?.pois ?? []).map((poi) => poiRow(poi, query, wording)).filter((row) => row !== null);
|
|
447
|
+
return settledSection(target, rows);
|
|
448
|
+
}
|
|
449
|
+
case "ways": {
|
|
450
|
+
const rows = (result.ways?.ways ?? []).map((way) => wayRow(way, query, wording)).filter((row) => row !== null);
|
|
451
|
+
return settledSection(target, rows);
|
|
452
|
+
}
|
|
453
|
+
case "itineraries": {
|
|
454
|
+
const rows = (result.itineraries?.itineraries ?? []).map((itinerary) => itineraryRow(itinerary, query)).filter((row) => row !== null);
|
|
455
|
+
return settledSection(target, rows);
|
|
456
|
+
}
|
|
457
|
+
case "collections": {
|
|
458
|
+
const rows = (result.collections?.collections ?? []).map((collection) => collectionRow(collection, query)).filter((row) => row !== null);
|
|
459
|
+
return settledSection(target, rows);
|
|
460
|
+
}
|
|
461
|
+
case "zones": {
|
|
462
|
+
const rows = (result.zones?.zones ?? []).map((zone) => zoneRow(zone, query)).filter((row) => row !== null);
|
|
463
|
+
return settledSection(target, rows);
|
|
464
|
+
}
|
|
465
|
+
}
|
|
466
|
+
};
|
|
467
|
+
var SearchEngine = class {
|
|
468
|
+
config;
|
|
469
|
+
debounceMs;
|
|
470
|
+
viewportRefreshMs;
|
|
471
|
+
snapshot;
|
|
472
|
+
listeners = /* @__PURE__ */ new Set();
|
|
473
|
+
parked = true;
|
|
474
|
+
cleared = null;
|
|
475
|
+
clearedKey = "";
|
|
476
|
+
query = "";
|
|
477
|
+
debounced = "";
|
|
478
|
+
debounceTimer = null;
|
|
479
|
+
open = false;
|
|
480
|
+
viewportScope = false;
|
|
481
|
+
viewportNonce = 0;
|
|
482
|
+
retryNonce = 0;
|
|
483
|
+
run = null;
|
|
484
|
+
lastKey = "";
|
|
485
|
+
lastNonce = 0;
|
|
486
|
+
refreshing = false;
|
|
487
|
+
cameraUnsubscribe = null;
|
|
488
|
+
cameraSource = null;
|
|
489
|
+
cameraTimer = null;
|
|
490
|
+
disposed = false;
|
|
491
|
+
constructor(options) {
|
|
492
|
+
const { debounceMs, open, query, viewportRefreshMs, viewportScope, ...config } = options;
|
|
493
|
+
this.config = configFrom(config);
|
|
494
|
+
this.debounceMs = pauseFrom("debounceMs", debounceMs, 150);
|
|
495
|
+
this.viewportRefreshMs = pauseFrom("viewportRefreshMs", viewportRefreshMs, 350);
|
|
496
|
+
this.open = open ?? false;
|
|
497
|
+
this.viewportScope = viewportScope ?? false;
|
|
498
|
+
this.query = query ?? "";
|
|
499
|
+
this.debounced = this.query;
|
|
500
|
+
this.snapshot = this.clearedSnapshot();
|
|
501
|
+
}
|
|
502
|
+
getSnapshot() {
|
|
503
|
+
return this.snapshot;
|
|
504
|
+
}
|
|
505
|
+
subscribe(listener) {
|
|
506
|
+
if (this.disposed) return () => {};
|
|
507
|
+
this.listeners.add(listener);
|
|
508
|
+
if (this.parked) {
|
|
509
|
+
this.parked = false;
|
|
510
|
+
this.resume();
|
|
511
|
+
}
|
|
512
|
+
return () => {
|
|
513
|
+
this.listeners.delete(listener);
|
|
514
|
+
if (this.listeners.size > 0 || this.parked) return;
|
|
515
|
+
this.parked = true;
|
|
516
|
+
this.park();
|
|
517
|
+
};
|
|
518
|
+
}
|
|
519
|
+
setQuery(query) {
|
|
520
|
+
if (this.disposed || this.query === query) return;
|
|
521
|
+
this.query = query;
|
|
522
|
+
if (this.debounceTimer !== null) {
|
|
523
|
+
clearTimeout(this.debounceTimer);
|
|
524
|
+
this.debounceTimer = null;
|
|
525
|
+
}
|
|
526
|
+
if (this.debounceMs <= 0) {
|
|
527
|
+
this.settleQuery(query);
|
|
528
|
+
return;
|
|
529
|
+
}
|
|
530
|
+
this.debounceTimer = setTimeout(() => {
|
|
531
|
+
this.debounceTimer = null;
|
|
532
|
+
this.settleQuery(query);
|
|
533
|
+
}, this.debounceMs);
|
|
534
|
+
}
|
|
535
|
+
setOpen(open) {
|
|
536
|
+
if (this.disposed || this.open === open) return;
|
|
537
|
+
this.open = open;
|
|
538
|
+
this.syncCameraSubscription();
|
|
539
|
+
}
|
|
540
|
+
setViewportScope(scoped) {
|
|
541
|
+
if (this.disposed || this.viewportScope === scoped) return;
|
|
542
|
+
this.viewportScope = scoped;
|
|
543
|
+
this.syncCameraSubscription();
|
|
544
|
+
this.schedule();
|
|
545
|
+
}
|
|
546
|
+
configure(config) {
|
|
547
|
+
if (this.disposed) return;
|
|
548
|
+
const before = this.roundKey();
|
|
549
|
+
this.config = configFrom(config);
|
|
550
|
+
this.syncCameraSubscription();
|
|
551
|
+
if (this.roundKey() !== before) this.schedule();
|
|
552
|
+
}
|
|
553
|
+
retry() {
|
|
554
|
+
if (this.disposed) return;
|
|
555
|
+
this.retryNonce += 1;
|
|
556
|
+
this.schedule();
|
|
557
|
+
}
|
|
558
|
+
dispose() {
|
|
559
|
+
if (this.disposed) return;
|
|
560
|
+
this.disposed = true;
|
|
561
|
+
this.parked = true;
|
|
562
|
+
this.park();
|
|
563
|
+
if (this.debounceTimer !== null) {
|
|
564
|
+
clearTimeout(this.debounceTimer);
|
|
565
|
+
this.debounceTimer = null;
|
|
566
|
+
}
|
|
567
|
+
this.listeners.clear();
|
|
568
|
+
}
|
|
569
|
+
get order() {
|
|
570
|
+
return this.config.targets ?? SEARCH_TARGETS;
|
|
571
|
+
}
|
|
572
|
+
park() {
|
|
573
|
+
this.run?.abort();
|
|
574
|
+
this.run = null;
|
|
575
|
+
this.refreshing = false;
|
|
576
|
+
this.releaseCamera();
|
|
577
|
+
}
|
|
578
|
+
resume() {
|
|
579
|
+
this.syncCameraSubscription();
|
|
580
|
+
this.lastKey = "";
|
|
581
|
+
this.schedule();
|
|
582
|
+
}
|
|
583
|
+
clearedSnapshot() {
|
|
584
|
+
const branches = this.order;
|
|
585
|
+
const query = this.debounced.trim();
|
|
586
|
+
const key = `${branches.join(",")}\0${query}`;
|
|
587
|
+
if (this.cleared === null || this.clearedKey !== key) {
|
|
588
|
+
this.cleared = emptySnapshot(branches, query);
|
|
589
|
+
this.clearedKey = key;
|
|
590
|
+
}
|
|
591
|
+
return this.cleared;
|
|
592
|
+
}
|
|
593
|
+
roundKey() {
|
|
594
|
+
return [
|
|
595
|
+
this.debounced.trim(),
|
|
596
|
+
this.viewportScope,
|
|
597
|
+
this.config.language ?? "",
|
|
598
|
+
this.config.limit ?? "",
|
|
599
|
+
this.order.join(","),
|
|
600
|
+
this.config.fetch === void 0 ? "inert" : "live",
|
|
601
|
+
this.retryNonce,
|
|
602
|
+
this.config.wording?.units?.language ?? "",
|
|
603
|
+
this.config.wording?.units?.length ?? ""
|
|
604
|
+
].join("\0");
|
|
605
|
+
}
|
|
606
|
+
commit(snapshot) {
|
|
607
|
+
if (this.disposed || snapshot === this.snapshot) return;
|
|
608
|
+
this.snapshot = snapshot;
|
|
609
|
+
require_listeners.notifyListeners(this.listeners);
|
|
610
|
+
}
|
|
611
|
+
settleQuery(query) {
|
|
612
|
+
const asked = this.debounced.trim();
|
|
613
|
+
this.debounced = query;
|
|
614
|
+
if (query.trim() === asked) return;
|
|
615
|
+
this.syncCameraSubscription();
|
|
616
|
+
this.schedule();
|
|
617
|
+
}
|
|
618
|
+
syncCameraSubscription() {
|
|
619
|
+
const source = this.config.viewport;
|
|
620
|
+
if (!(!this.disposed && !this.parked && this.config.fetch !== void 0 && source !== void 0 && this.open && this.viewportScope && this.debounced.trim().length > 0)) {
|
|
621
|
+
this.releaseCamera();
|
|
622
|
+
return;
|
|
623
|
+
}
|
|
624
|
+
if (this.cameraUnsubscribe !== null) {
|
|
625
|
+
if (this.cameraSource === source) return;
|
|
626
|
+
this.releaseCamera();
|
|
627
|
+
}
|
|
628
|
+
this.cameraSource = source;
|
|
629
|
+
this.cameraUnsubscribe = source.subscribe(() => {
|
|
630
|
+
if (this.cameraTimer !== null) clearTimeout(this.cameraTimer);
|
|
631
|
+
this.cameraTimer = setTimeout(() => {
|
|
632
|
+
this.cameraTimer = null;
|
|
633
|
+
this.viewportNonce += 1;
|
|
634
|
+
this.schedule();
|
|
635
|
+
}, this.viewportRefreshMs);
|
|
636
|
+
});
|
|
637
|
+
}
|
|
638
|
+
releaseCamera() {
|
|
639
|
+
if (this.cameraTimer !== null) {
|
|
640
|
+
clearTimeout(this.cameraTimer);
|
|
641
|
+
this.cameraTimer = null;
|
|
642
|
+
}
|
|
643
|
+
this.cameraUnsubscribe?.();
|
|
644
|
+
this.cameraUnsubscribe = null;
|
|
645
|
+
this.cameraSource = null;
|
|
646
|
+
}
|
|
647
|
+
schedule() {
|
|
648
|
+
if (this.disposed || this.parked) return;
|
|
649
|
+
const trimmed = this.debounced.trim();
|
|
650
|
+
const { fetch: run, onError } = this.config;
|
|
651
|
+
const branches = this.order;
|
|
652
|
+
if (run === void 0 || trimmed.length === 0) {
|
|
653
|
+
this.run?.abort();
|
|
654
|
+
this.run = null;
|
|
655
|
+
this.lastKey = "";
|
|
656
|
+
this.refreshing = false;
|
|
657
|
+
this.commit(this.clearedSnapshot());
|
|
658
|
+
return;
|
|
659
|
+
}
|
|
660
|
+
const controller = new AbortController();
|
|
661
|
+
this.run?.abort();
|
|
662
|
+
this.run = controller;
|
|
663
|
+
const key = this.roundKey();
|
|
664
|
+
const isRefresh = key === this.lastKey && this.viewportNonce !== this.lastNonce;
|
|
665
|
+
this.lastKey = key;
|
|
666
|
+
this.lastNonce = this.viewportNonce;
|
|
667
|
+
this.refreshing = isRefresh;
|
|
668
|
+
if (isRefresh) this.commit({
|
|
669
|
+
...this.snapshot,
|
|
670
|
+
fallbackActive: false,
|
|
671
|
+
isSearching: true
|
|
672
|
+
});
|
|
673
|
+
else this.commit(loadingSnapshot(branches, trimmed));
|
|
674
|
+
const camera = this.config.viewport?.read() ?? null;
|
|
675
|
+
const focus = camera === null ? void 0 : searchFocus(camera.center);
|
|
676
|
+
const area = this.viewportScope && camera !== null && focus !== void 0 && Number.isFinite(camera.zoom) ? require_tuples.viewportBoundsFrom(camera.center, camera.zoom) : void 0;
|
|
677
|
+
this.runRound({
|
|
678
|
+
area,
|
|
679
|
+
ask: run,
|
|
680
|
+
branches,
|
|
681
|
+
controller,
|
|
682
|
+
focus,
|
|
683
|
+
isRefresh,
|
|
684
|
+
onError,
|
|
685
|
+
query: trimmed
|
|
686
|
+
});
|
|
687
|
+
}
|
|
688
|
+
isLive(round) {
|
|
689
|
+
return this.run === round.controller && !round.controller.signal.aborted;
|
|
690
|
+
}
|
|
691
|
+
replaceSection(round, next) {
|
|
692
|
+
if (!this.isLive(round)) return;
|
|
693
|
+
const sections = this.snapshot.sections.map((section) => section.id === next.id ? next : section);
|
|
694
|
+
const stillSearching = this.refreshing || sections.some((s) => isLoading(s.state));
|
|
695
|
+
this.commit({
|
|
696
|
+
...this.snapshot,
|
|
697
|
+
isSearching: stillSearching,
|
|
698
|
+
sections
|
|
699
|
+
});
|
|
700
|
+
}
|
|
701
|
+
async askBranches(round, area) {
|
|
702
|
+
await Promise.resolve();
|
|
703
|
+
if (!this.isLive(round)) return {
|
|
704
|
+
everyEmpty: false,
|
|
705
|
+
hadError: false
|
|
706
|
+
};
|
|
707
|
+
const { signal } = round.controller;
|
|
708
|
+
const calls = round.branches.map(async (target) => {
|
|
709
|
+
const request = {
|
|
710
|
+
bbox: area === void 0 ? void 0 : [...area],
|
|
711
|
+
focus: round.focus === void 0 ? void 0 : [...round.focus],
|
|
712
|
+
language: this.config.language,
|
|
713
|
+
limit: this.config.limit,
|
|
714
|
+
query: round.query,
|
|
715
|
+
targets: onlyTarget(target)
|
|
716
|
+
};
|
|
717
|
+
try {
|
|
718
|
+
const result = await round.ask(request, { signal });
|
|
719
|
+
if (!this.isLive(round)) return { errored: true };
|
|
720
|
+
this.replaceSection(round, mapTargetResult(result, target, round.query, this.config.wording));
|
|
721
|
+
return { errored: false };
|
|
722
|
+
} catch (error) {
|
|
723
|
+
if (!this.isLive(round)) return { errored: true };
|
|
724
|
+
this.replaceSection(round, errorSection(target, failureOf(error)));
|
|
725
|
+
try {
|
|
726
|
+
round.onError?.(require_errors.errorFrom(error, "A search request failed. Check what the search transport rejects with."));
|
|
727
|
+
} catch (fault) {
|
|
728
|
+
require_listeners.surfaceFault(fault);
|
|
729
|
+
}
|
|
730
|
+
return { errored: true };
|
|
731
|
+
}
|
|
732
|
+
});
|
|
733
|
+
const hadError = (await Promise.allSettled(calls)).some((entry) => entry.status === "rejected" || entry.status === "fulfilled" && entry.value.errored);
|
|
734
|
+
return {
|
|
735
|
+
everyEmpty: this.snapshot.sections.every(isSettledEmpty),
|
|
736
|
+
hadError
|
|
737
|
+
};
|
|
738
|
+
}
|
|
739
|
+
async runRound(round) {
|
|
740
|
+
const first = await this.askBranches(round, round.area);
|
|
741
|
+
if (!this.isLive(round)) return;
|
|
742
|
+
if (!(!round.isRefresh && round.area !== void 0 && first.everyEmpty && !first.hadError)) {
|
|
743
|
+
this.refreshing = false;
|
|
744
|
+
this.commit({
|
|
745
|
+
...this.snapshot,
|
|
746
|
+
isSearching: false,
|
|
747
|
+
roundsSettled: this.snapshot.roundsSettled + 1
|
|
748
|
+
});
|
|
749
|
+
return;
|
|
750
|
+
}
|
|
751
|
+
this.commit({
|
|
752
|
+
...this.snapshot,
|
|
753
|
+
fallbackActive: true,
|
|
754
|
+
isSearching: true,
|
|
755
|
+
roundsSettled: this.snapshot.roundsSettled + 1,
|
|
756
|
+
sections: round.branches.map(loadingSection)
|
|
757
|
+
});
|
|
758
|
+
await this.askBranches(round, void 0);
|
|
759
|
+
if (!this.isLive(round)) return;
|
|
760
|
+
this.refreshing = false;
|
|
761
|
+
this.commit({
|
|
762
|
+
...this.snapshot,
|
|
763
|
+
isSearching: false,
|
|
764
|
+
roundsSettled: this.snapshot.roundsSettled + 1
|
|
765
|
+
});
|
|
766
|
+
}
|
|
767
|
+
};
|
|
768
|
+
const SEARCH_FILTERS = [
|
|
769
|
+
"all",
|
|
770
|
+
"itineraries",
|
|
771
|
+
"places",
|
|
772
|
+
"zones"
|
|
773
|
+
];
|
|
774
|
+
const searchFilterTargets = {
|
|
775
|
+
all: SECTION_ORDER,
|
|
776
|
+
itineraries: ["itineraries", "collections"],
|
|
777
|
+
places: [
|
|
778
|
+
"places",
|
|
779
|
+
"pois",
|
|
780
|
+
"ways"
|
|
781
|
+
],
|
|
782
|
+
zones: ["zones"]
|
|
783
|
+
};
|
|
784
|
+
const sectionsForFilter = (sections, filter) => {
|
|
785
|
+
const shown = searchFilterTargets[filter];
|
|
786
|
+
return sections.filter((section) => shown.includes(section.id));
|
|
787
|
+
};
|
|
788
|
+
const firstActiveSection = (snapshot) => {
|
|
789
|
+
for (const section of snapshot.sections) {
|
|
790
|
+
if (section.state.kind === "loading" || section.state.kind === "error") return section.id;
|
|
791
|
+
if (section.state.kind === "settled" && section.results.length > 0) return section.id;
|
|
792
|
+
}
|
|
793
|
+
return null;
|
|
794
|
+
};
|
|
795
|
+
const everySectionEmpty = (snapshot) => !snapshot.isSearching && snapshot.roundsSettled > 0 && snapshot.sections.every((section) => section.state.kind === "settled" && section.results.length === 0);
|
|
796
|
+
const isFailed = (section) => section.state.kind === "error";
|
|
797
|
+
const searchListState = (snapshot, filter) => {
|
|
798
|
+
const shown = sectionsForFilter(snapshot.sections, filter);
|
|
799
|
+
const rows = shown.flatMap((section) => section.results);
|
|
800
|
+
const failed = shown.filter(isFailed);
|
|
801
|
+
const nothingFound = snapshot.roundsSettled > 0 && !snapshot.isSearching && rows.length === 0 && failed.length === 0;
|
|
802
|
+
const counted = rows.length > 0 && !snapshot.isSearching;
|
|
803
|
+
return {
|
|
804
|
+
failed,
|
|
805
|
+
fallbackNote: snapshot.fallbackActive,
|
|
806
|
+
nothingFound,
|
|
807
|
+
rows,
|
|
808
|
+
status: failed.length > 0 ? { key: "error" } : nothingFound ? { key: "emptyTitle" } : counted ? {
|
|
809
|
+
count: rows.length,
|
|
810
|
+
key: "resultCount"
|
|
811
|
+
} : null
|
|
812
|
+
};
|
|
813
|
+
};
|
|
814
|
+
const sectionHasRows = (section) => section?.state.kind === "settled" && section.results.length > 0;
|
|
815
|
+
const placeMark = (point) => point === void 0 ? null : {
|
|
816
|
+
kind: "place",
|
|
817
|
+
point: [...point]
|
|
818
|
+
};
|
|
819
|
+
const pickTarget = (payload) => {
|
|
820
|
+
const pick = (bounds, point, mark) => ({
|
|
821
|
+
camera: bounds !== void 0 ? {
|
|
822
|
+
bounds: [...bounds],
|
|
823
|
+
kind: "fit"
|
|
824
|
+
} : point !== void 0 ? {
|
|
825
|
+
center: [...point],
|
|
826
|
+
kind: "fly",
|
|
827
|
+
zoom: 13
|
|
828
|
+
} : null,
|
|
829
|
+
mark
|
|
830
|
+
});
|
|
831
|
+
switch (payload.kind) {
|
|
832
|
+
case "place": return pick(payload.bounds, payload.point, placeMark(payload.point));
|
|
833
|
+
case "poi": return pick(void 0, payload.point, {
|
|
834
|
+
category: payload.category,
|
|
835
|
+
kind: "poi",
|
|
836
|
+
point: [...payload.point]
|
|
837
|
+
});
|
|
838
|
+
case "way": return pick(payload.bounds, payload.anchor, {
|
|
839
|
+
anchor: [...payload.anchor],
|
|
840
|
+
...payload.bounds === void 0 ? {} : { bounds: [...payload.bounds] },
|
|
841
|
+
...payload.coordinates === void 0 ? {} : { coordinates: payload.coordinates.map((position) => [...position]) },
|
|
842
|
+
kind: "way"
|
|
843
|
+
});
|
|
844
|
+
case "itinerary": return pick(payload.bounds, payload.start, placeMark(payload.start));
|
|
845
|
+
case "zone": return pick(payload.bounds, payload.point, placeMark(payload.point));
|
|
846
|
+
case "collection": return pick(void 0, void 0, null);
|
|
847
|
+
}
|
|
848
|
+
};
|
|
849
|
+
const createSearchViewport = (client) => ({
|
|
850
|
+
read: () => client.getViewport(),
|
|
851
|
+
subscribe: (listener) => client.onViewportChange(() => listener())
|
|
852
|
+
});
|
|
853
|
+
const unansweredSearchSnapshot = (query, owed) => {
|
|
854
|
+
const asked = query.trim();
|
|
855
|
+
const asks = owed.live && asked.length > 0;
|
|
856
|
+
return {
|
|
857
|
+
fallbackActive: false,
|
|
858
|
+
isSearching: asks,
|
|
859
|
+
query: asked,
|
|
860
|
+
roundsSettled: 0,
|
|
861
|
+
sections: [...new Set(owed.targets)].map((id) => ({
|
|
862
|
+
id,
|
|
863
|
+
results: [],
|
|
864
|
+
state: asks ? { kind: "loading" } : { kind: "settled" }
|
|
865
|
+
}))
|
|
866
|
+
};
|
|
867
|
+
};
|
|
868
|
+
const shownSearchSnapshot = (snapshot, query, unanswered) => snapshot.query === query.trim() ? snapshot : unanswered;
|
|
869
|
+
Object.defineProperty(exports, "SEARCH_DEBOUNCE_MS", {
|
|
870
|
+
enumerable: true,
|
|
871
|
+
get: function() {
|
|
872
|
+
return SEARCH_DEBOUNCE_MS;
|
|
873
|
+
}
|
|
874
|
+
});
|
|
875
|
+
Object.defineProperty(exports, "SEARCH_FILTERS", {
|
|
876
|
+
enumerable: true,
|
|
877
|
+
get: function() {
|
|
878
|
+
return SEARCH_FILTERS;
|
|
879
|
+
}
|
|
880
|
+
});
|
|
881
|
+
Object.defineProperty(exports, "SEARCH_TARGETS", {
|
|
882
|
+
enumerable: true,
|
|
883
|
+
get: function() {
|
|
884
|
+
return SEARCH_TARGETS;
|
|
885
|
+
}
|
|
886
|
+
});
|
|
887
|
+
Object.defineProperty(exports, "SEARCH_VIEWPORT_REFRESH_MS", {
|
|
888
|
+
enumerable: true,
|
|
889
|
+
get: function() {
|
|
890
|
+
return SEARCH_VIEWPORT_REFRESH_MS;
|
|
891
|
+
}
|
|
892
|
+
});
|
|
893
|
+
Object.defineProperty(exports, "SECTION_ORDER", {
|
|
894
|
+
enumerable: true,
|
|
895
|
+
get: function() {
|
|
896
|
+
return SECTION_ORDER;
|
|
897
|
+
}
|
|
898
|
+
});
|
|
899
|
+
Object.defineProperty(exports, "SearchEngine", {
|
|
900
|
+
enumerable: true,
|
|
901
|
+
get: function() {
|
|
902
|
+
return SearchEngine;
|
|
903
|
+
}
|
|
904
|
+
});
|
|
905
|
+
Object.defineProperty(exports, "collectionRow", {
|
|
906
|
+
enumerable: true,
|
|
907
|
+
get: function() {
|
|
908
|
+
return collectionRow;
|
|
909
|
+
}
|
|
910
|
+
});
|
|
911
|
+
Object.defineProperty(exports, "createSearchViewport", {
|
|
912
|
+
enumerable: true,
|
|
913
|
+
get: function() {
|
|
914
|
+
return createSearchViewport;
|
|
915
|
+
}
|
|
916
|
+
});
|
|
917
|
+
Object.defineProperty(exports, "describePlace", {
|
|
918
|
+
enumerable: true,
|
|
919
|
+
get: function() {
|
|
920
|
+
return describePlace;
|
|
921
|
+
}
|
|
922
|
+
});
|
|
923
|
+
Object.defineProperty(exports, "describePoi", {
|
|
924
|
+
enumerable: true,
|
|
925
|
+
get: function() {
|
|
926
|
+
return describePoi;
|
|
927
|
+
}
|
|
928
|
+
});
|
|
929
|
+
Object.defineProperty(exports, "describeWay", {
|
|
930
|
+
enumerable: true,
|
|
931
|
+
get: function() {
|
|
932
|
+
return describeWay;
|
|
933
|
+
}
|
|
934
|
+
});
|
|
935
|
+
Object.defineProperty(exports, "describeZone", {
|
|
936
|
+
enumerable: true,
|
|
937
|
+
get: function() {
|
|
938
|
+
return describeZone;
|
|
939
|
+
}
|
|
940
|
+
});
|
|
941
|
+
Object.defineProperty(exports, "everySectionEmpty", {
|
|
942
|
+
enumerable: true,
|
|
943
|
+
get: function() {
|
|
944
|
+
return everySectionEmpty;
|
|
945
|
+
}
|
|
946
|
+
});
|
|
947
|
+
Object.defineProperty(exports, "firstActiveSection", {
|
|
948
|
+
enumerable: true,
|
|
949
|
+
get: function() {
|
|
950
|
+
return firstActiveSection;
|
|
951
|
+
}
|
|
952
|
+
});
|
|
953
|
+
Object.defineProperty(exports, "highlightRanges", {
|
|
954
|
+
enumerable: true,
|
|
955
|
+
get: function() {
|
|
956
|
+
return highlightRanges;
|
|
957
|
+
}
|
|
958
|
+
});
|
|
959
|
+
Object.defineProperty(exports, "itineraryRow", {
|
|
960
|
+
enumerable: true,
|
|
961
|
+
get: function() {
|
|
962
|
+
return itineraryRow;
|
|
963
|
+
}
|
|
964
|
+
});
|
|
965
|
+
Object.defineProperty(exports, "pickTarget", {
|
|
966
|
+
enumerable: true,
|
|
967
|
+
get: function() {
|
|
968
|
+
return pickTarget;
|
|
969
|
+
}
|
|
970
|
+
});
|
|
971
|
+
Object.defineProperty(exports, "placeRow", {
|
|
972
|
+
enumerable: true,
|
|
973
|
+
get: function() {
|
|
974
|
+
return placeRow;
|
|
975
|
+
}
|
|
976
|
+
});
|
|
977
|
+
Object.defineProperty(exports, "placeTitle", {
|
|
978
|
+
enumerable: true,
|
|
979
|
+
get: function() {
|
|
980
|
+
return placeTitle;
|
|
981
|
+
}
|
|
982
|
+
});
|
|
983
|
+
Object.defineProperty(exports, "poiRow", {
|
|
984
|
+
enumerable: true,
|
|
985
|
+
get: function() {
|
|
986
|
+
return poiRow;
|
|
987
|
+
}
|
|
988
|
+
});
|
|
989
|
+
Object.defineProperty(exports, "poiTitle", {
|
|
990
|
+
enumerable: true,
|
|
991
|
+
get: function() {
|
|
992
|
+
return poiTitle;
|
|
993
|
+
}
|
|
994
|
+
});
|
|
995
|
+
Object.defineProperty(exports, "searchFilterTargets", {
|
|
996
|
+
enumerable: true,
|
|
997
|
+
get: function() {
|
|
998
|
+
return searchFilterTargets;
|
|
999
|
+
}
|
|
1000
|
+
});
|
|
1001
|
+
Object.defineProperty(exports, "searchListState", {
|
|
1002
|
+
enumerable: true,
|
|
1003
|
+
get: function() {
|
|
1004
|
+
return searchListState;
|
|
1005
|
+
}
|
|
1006
|
+
});
|
|
1007
|
+
Object.defineProperty(exports, "sectionHasRows", {
|
|
1008
|
+
enumerable: true,
|
|
1009
|
+
get: function() {
|
|
1010
|
+
return sectionHasRows;
|
|
1011
|
+
}
|
|
1012
|
+
});
|
|
1013
|
+
Object.defineProperty(exports, "sectionsForFilter", {
|
|
1014
|
+
enumerable: true,
|
|
1015
|
+
get: function() {
|
|
1016
|
+
return sectionsForFilter;
|
|
1017
|
+
}
|
|
1018
|
+
});
|
|
1019
|
+
Object.defineProperty(exports, "shownSearchSnapshot", {
|
|
1020
|
+
enumerable: true,
|
|
1021
|
+
get: function() {
|
|
1022
|
+
return shownSearchSnapshot;
|
|
1023
|
+
}
|
|
1024
|
+
});
|
|
1025
|
+
Object.defineProperty(exports, "splitByRanges", {
|
|
1026
|
+
enumerable: true,
|
|
1027
|
+
get: function() {
|
|
1028
|
+
return splitByRanges;
|
|
1029
|
+
}
|
|
1030
|
+
});
|
|
1031
|
+
Object.defineProperty(exports, "unansweredSearchSnapshot", {
|
|
1032
|
+
enumerable: true,
|
|
1033
|
+
get: function() {
|
|
1034
|
+
return unansweredSearchSnapshot;
|
|
1035
|
+
}
|
|
1036
|
+
});
|
|
1037
|
+
Object.defineProperty(exports, "wayRow", {
|
|
1038
|
+
enumerable: true,
|
|
1039
|
+
get: function() {
|
|
1040
|
+
return wayRow;
|
|
1041
|
+
}
|
|
1042
|
+
});
|
|
1043
|
+
Object.defineProperty(exports, "wayTitle", {
|
|
1044
|
+
enumerable: true,
|
|
1045
|
+
get: function() {
|
|
1046
|
+
return wayTitle;
|
|
1047
|
+
}
|
|
1048
|
+
});
|
|
1049
|
+
Object.defineProperty(exports, "zoneRow", {
|
|
1050
|
+
enumerable: true,
|
|
1051
|
+
get: function() {
|
|
1052
|
+
return zoneRow;
|
|
1053
|
+
}
|
|
1054
|
+
});
|
|
1055
|
+
|
|
1056
|
+
//# sourceMappingURL=chunk-CW80YYtU.cjs.map
|