@tracktor/map 1.8.8 → 1.8.10
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/dist/components/Layout/EmptyState.d.ts +6 -0
- package/dist/main.js +494 -471
- package/dist/main.umd.cjs +4 -4
- package/dist/types/MarkerProps.d.ts +5 -20
- package/package.json +1 -2
package/dist/main.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
(function(){"use strict";try{if(typeof document<"u"){var o=document.createElement("style");o.appendChild(document.createTextNode(`.mapboxgl-map{font:12px/20px Helvetica Neue,Arial,Helvetica,sans-serif;overflow:hidden;position:relative;-webkit-tap-highlight-color:rgb(0 0 0/0)}.mapboxgl-canvas{left:0;position:absolute;top:0}.mapboxgl-map:-webkit-full-screen{height:100%;width:100%}.mapboxgl-canary{background-color:salmon}.mapboxgl-canvas-container.mapboxgl-interactive,.mapboxgl-ctrl-group button.mapboxgl-ctrl-compass{cursor:grab;-webkit-user-select:none;user-select:none}.mapboxgl-canvas-container.mapboxgl-interactive.mapboxgl-track-pointer{cursor:pointer}.mapboxgl-canvas-container.mapboxgl-interactive:active,.mapboxgl-ctrl-group button.mapboxgl-ctrl-compass:active{cursor:grabbing}.mapboxgl-canvas-container.mapboxgl-touch-zoom-rotate,.mapboxgl-canvas-container.mapboxgl-touch-zoom-rotate .mapboxgl-canvas{touch-action:pan-x pan-y}.mapboxgl-canvas-container.mapboxgl-touch-drag-pan,.mapboxgl-canvas-container.mapboxgl-touch-drag-pan .mapboxgl-canvas{touch-action:pinch-zoom}.mapboxgl-canvas-container.mapboxgl-touch-zoom-rotate.mapboxgl-touch-drag-pan,.mapboxgl-canvas-container.mapboxgl-touch-zoom-rotate.mapboxgl-touch-drag-pan .mapboxgl-canvas{touch-action:none}.mapboxgl-ctrl-bottom,.mapboxgl-ctrl-bottom-left,.mapboxgl-ctrl-bottom-right,.mapboxgl-ctrl-left,.mapboxgl-ctrl-right,.mapboxgl-ctrl-top,.mapboxgl-ctrl-top-left,.mapboxgl-ctrl-top-right{pointer-events:none;position:absolute;z-index:2}.mapboxgl-ctrl-top-left{left:0;top:0}.mapboxgl-ctrl-top{left:50%;top:0;transform:translate(-50%)}.mapboxgl-ctrl-top-right{right:0;top:0}.mapboxgl-ctrl-right{right:0;top:50%;transform:translateY(-50%)}.mapboxgl-ctrl-bottom-right{bottom:0;right:0}.mapboxgl-ctrl-bottom{bottom:0;left:50%;transform:translate(-50%)}.mapboxgl-ctrl-bottom-left{bottom:0;left:0}.mapboxgl-ctrl-left{left:0;top:50%;transform:translateY(-50%)}.mapboxgl-ctrl{clear:both;pointer-events:auto;transform:translate(0)}.mapboxgl-ctrl-top-left .mapboxgl-ctrl{float:left;margin:10px 0 0 10px}.mapboxgl-ctrl-top .mapboxgl-ctrl{float:left;margin:10px 0}.mapboxgl-ctrl-top-right .mapboxgl-ctrl{float:right;margin:10px 10px 0 0}.mapboxgl-ctrl-bottom-right .mapboxgl-ctrl,.mapboxgl-ctrl-right .mapboxgl-ctrl{float:right;margin:0 10px 10px 0}.mapboxgl-ctrl-bottom .mapboxgl-ctrl{float:left;margin:10px 0}.mapboxgl-ctrl-bottom-left .mapboxgl-ctrl,.mapboxgl-ctrl-left .mapboxgl-ctrl{float:left;margin:0 0 10px 10px}.mapboxgl-ctrl-group{background:#fff;border-radius:4px}.mapboxgl-ctrl-group:not(:empty){box-shadow:0 0 0 2px #0000001a}@media(-ms-high-contrast:active){.mapboxgl-ctrl-group:not(:empty){box-shadow:0 0 0 2px ButtonText}}.mapboxgl-ctrl-group button{background-color:initial;border:0;box-sizing:border-box;cursor:pointer;display:block;height:29px;outline:none;overflow:hidden;padding:0;width:29px}.mapboxgl-ctrl-group button+button{border-top:1px solid #ddd}.mapboxgl-ctrl button .mapboxgl-ctrl-icon{background-position:50%;background-repeat:no-repeat;display:block;height:100%;width:100%}@media(-ms-high-contrast:active){.mapboxgl-ctrl-icon{background-color:initial}.mapboxgl-ctrl-group button+button{border-top:1px solid ButtonText}}.mapboxgl-ctrl-attrib-button:focus,.mapboxgl-ctrl-group button:focus{box-shadow:0 0 2px 2px #0096ff}.mapboxgl-ctrl button:disabled{cursor:not-allowed}.mapboxgl-ctrl button:disabled .mapboxgl-ctrl-icon{opacity:.25}.mapboxgl-ctrl-group button:first-child{border-radius:4px 4px 0 0}.mapboxgl-ctrl-group button:last-child{border-radius:0 0 4px 4px}.mapboxgl-ctrl-group button:only-child{border-radius:inherit}.mapboxgl-ctrl button:not(:disabled):hover{background-color:#0000000d}.mapboxgl-ctrl-group button:focus:focus-visible{box-shadow:0 0 2px 2px #0096ff}.mapboxgl-ctrl-group button:focus:not(:focus-visible){box-shadow:none}.mapboxgl-ctrl button.mapboxgl-ctrl-zoom-out .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-9z'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-zoom-in .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5z'/%3E%3C/svg%3E")}@media(-ms-high-contrast:active){.mapboxgl-ctrl button.mapboxgl-ctrl-zoom-out .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-9z'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-zoom-in .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5z'/%3E%3C/svg%3E")}}@media(-ms-high-contrast:black-on-white){.mapboxgl-ctrl button.mapboxgl-ctrl-zoom-out .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23000' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-9z'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-zoom-in .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23000' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5z'/%3E%3C/svg%3E")}}.mapboxgl-ctrl button.mapboxgl-ctrl-fullscreen .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3h1zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16h1zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5H13zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1V7.5z'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-shrink .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1h-5.5zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1v-5.5zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1v5.5zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1h5.5z'/%3E%3C/svg%3E")}@media(-ms-high-contrast:active){.mapboxgl-ctrl button.mapboxgl-ctrl-fullscreen .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3h1zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16h1zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5H13zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1V7.5z'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-shrink .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1h-5.5zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1v-5.5zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1v5.5zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1h5.5z'/%3E%3C/svg%3E")}}@media(-ms-high-contrast:black-on-white){.mapboxgl-ctrl button.mapboxgl-ctrl-fullscreen .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23000' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3h1zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16h1zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5H13zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1V7.5z'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-shrink .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23000' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1h-5.5zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1v-5.5zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1v5.5zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1h5.5z'/%3E%3C/svg%3E")}}.mapboxgl-ctrl button.mapboxgl-ctrl-compass .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M10.5 14l4-8 4 8h-8z'/%3E%3Cpath id='south' d='M10.5 16l4 8 4-8h-8z' fill='%23ccc'/%3E%3C/svg%3E")}@media(-ms-high-contrast:active){.mapboxgl-ctrl button.mapboxgl-ctrl-compass .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M10.5 14l4-8 4 8h-8z'/%3E%3Cpath id='south' d='M10.5 16l4 8 4-8h-8z' fill='%23999'/%3E%3C/svg%3E")}}@media(-ms-high-contrast:black-on-white){.mapboxgl-ctrl button.mapboxgl-ctrl-compass .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23000' viewBox='0 0 29 29'%3E%3Cpath d='M10.5 14l4-8 4 8h-8z'/%3E%3Cpath id='south' d='M10.5 16l4 8 4-8h-8z' fill='%23ccc'/%3E%3C/svg%3E")}}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23333'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7z'/%3E%3Ccircle id='dot' cx='10' cy='10' r='2'/%3E%3Cpath id='stroke' d='M14 5l1 1-9 9-1-1 9-9z' display='none'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-buildings-toggle .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg fill='none' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath d='M3.3335 11.6666C3.3335 12.5871 4.07969 13.3333 5.00016 13.3333C5.92064 13.3333 6.66683 12.5871 6.66683 11.6666L6.66683 6.66659L11.6668 6.66659C12.5873 6.66659 13.3335 5.92039 13.3335 4.99992C13.3335 4.07944 12.5873 3.33325 11.6668 3.33325H3.3335V11.6666Z' fill='currentColor'/%3E%3Cpath d='M26.6668 11.6666C26.6668 12.5871 25.9206 13.3333 25.0002 13.3333C24.0797 13.3333 23.3335 12.5871 23.3335 11.6666L23.3335 6.66659L18.3335 6.66659C17.413 6.66659 16.6668 5.92039 16.6668 4.99992C16.6668 4.07944 17.413 3.33325 18.3335 3.33325H26.6668L26.6668 11.6666Z' fill='currentColor'/%3E%3Cpath d='M13.3335 24.9999C13.3335 25.9204 12.5873 26.6666 11.6668 26.6666H3.3335V18.3333C3.3335 17.4128 4.07969 16.6666 5.00016 16.6666C5.92064 16.6666 6.66683 17.4128 6.66683 18.3333V23.3333H11.6668C12.5873 23.3333 13.3335 24.0794 13.3335 24.9999Z' fill='currentColor'/%3E%3Cpath d='M18.3335 26.6666C17.413 26.6666 16.6668 25.9204 16.6668 24.9999C16.6668 24.0794 17.413 23.3333 18.3335 23.3333H23.3335V18.3333C23.3335 17.4128 24.0797 16.6666 25.0002 16.6666C25.9206 16.6666 26.6668 17.4128 26.6668 18.3333V26.6666H18.3335Z' fill='currentColor'/%3E%3C/svg%3E");background-size:26px 26px}.mapboxgl-ctrl button.mapboxgl-ctrl-buildings-toggle.mapboxgl-ctrl-level-button-selected .mapboxgl-ctrl-icon{filter:invert(1) brightness(1)}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate:disabled .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23aaa'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7z'/%3E%3Ccircle id='dot' cx='10' cy='10' r='2'/%3E%3Cpath id='stroke' d='M14 5l1 1-9 9-1-1 9-9z' fill='%23f00'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-active .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%2333b5e5'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7z'/%3E%3Ccircle id='dot' cx='10' cy='10' r='2'/%3E%3Cpath id='stroke' d='M14 5l1 1-9 9-1-1 9-9z' display='none'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-active-error .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23e58978'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7z'/%3E%3Ccircle id='dot' cx='10' cy='10' r='2'/%3E%3Cpath id='stroke' d='M14 5l1 1-9 9-1-1 9-9z' display='none'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-background .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%2333b5e5'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7z'/%3E%3Ccircle id='dot' cx='10' cy='10' r='2' display='none'/%3E%3Cpath id='stroke' d='M14 5l1 1-9 9-1-1 9-9z' display='none'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-background-error .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23e54e33'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7z'/%3E%3Ccircle id='dot' cx='10' cy='10' r='2' display='none'/%3E%3Cpath id='stroke' d='M14 5l1 1-9 9-1-1 9-9z' display='none'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-waiting .mapboxgl-ctrl-icon{animation:mapboxgl-spin 2s linear infinite}@media(-ms-high-contrast:active){.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23fff'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7z'/%3E%3Ccircle id='dot' cx='10' cy='10' r='2'/%3E%3Cpath id='stroke' d='M14 5l1 1-9 9-1-1 9-9z' display='none'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate:disabled .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23999'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7z'/%3E%3Ccircle id='dot' cx='10' cy='10' r='2'/%3E%3Cpath id='stroke' d='M14 5l1 1-9 9-1-1 9-9z' fill='%23f00'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-active .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%2333b5e5'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7z'/%3E%3Ccircle id='dot' cx='10' cy='10' r='2'/%3E%3Cpath id='stroke' d='M14 5l1 1-9 9-1-1 9-9z' display='none'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-active-error .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23e58978'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7z'/%3E%3Ccircle id='dot' cx='10' cy='10' r='2'/%3E%3Cpath id='stroke' d='M14 5l1 1-9 9-1-1 9-9z' display='none'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-background .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%2333b5e5'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7z'/%3E%3Ccircle id='dot' cx='10' cy='10' r='2' display='none'/%3E%3Cpath id='stroke' d='M14 5l1 1-9 9-1-1 9-9z' display='none'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-background-error .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23e54e33'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7z'/%3E%3Ccircle id='dot' cx='10' cy='10' r='2' display='none'/%3E%3Cpath id='stroke' d='M14 5l1 1-9 9-1-1 9-9z' display='none'/%3E%3C/svg%3E")}}@media(-ms-high-contrast:black-on-white){.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23000'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7z'/%3E%3Ccircle id='dot' cx='10' cy='10' r='2'/%3E%3Cpath id='stroke' d='M14 5l1 1-9 9-1-1 9-9z' display='none'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate:disabled .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23666'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7z'/%3E%3Ccircle id='dot' cx='10' cy='10' r='2'/%3E%3Cpath id='stroke' d='M14 5l1 1-9 9-1-1 9-9z' fill='%23f00'/%3E%3C/svg%3E")}}@keyframes mapboxgl-spin{0%{transform:rotate(0)}to{transform:rotate(1turn)}}a.mapboxgl-ctrl-logo{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' fill-rule='evenodd' viewBox='0 0 88 23'%3E%3Cdefs%3E%3Cpath id='logo' d='M11.5 2.25c5.105 0 9.25 4.145 9.25 9.25s-4.145 9.25-9.25 9.25-9.25-4.145-9.25-9.25 4.145-9.25 9.25-9.25zM6.997 15.983c-.051-.338-.828-5.802 2.233-8.873a4.395 4.395 0 013.13-1.28c1.27 0 2.49.51 3.39 1.42.91.9 1.42 2.12 1.42 3.39 0 1.18-.449 2.301-1.28 3.13C12.72 16.93 7 16 7 16l-.003-.017zM15.3 10.5l-2 .8-.8 2-.8-2-2-.8 2-.8.8-2 .8 2 2 .8z'/%3E%3Cpath id='text' d='M50.63 8c.13 0 .23.1.23.23V9c.7-.76 1.7-1.18 2.73-1.18 2.17 0 3.95 1.85 3.95 4.17s-1.77 4.19-3.94 4.19c-1.04 0-2.03-.43-2.74-1.18v3.77c0 .13-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V8.23c0-.12.1-.23.23-.23h1.4zm-3.86.01c.01 0 .01 0 .01-.01.13 0 .22.1.22.22v7.55c0 .12-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V15c-.7.76-1.69 1.19-2.73 1.19-2.17 0-3.94-1.87-3.94-4.19 0-2.32 1.77-4.19 3.94-4.19 1.03 0 2.02.43 2.73 1.18v-.75c0-.12.1-.23.23-.23h1.4zm26.375-.19a4.24 4.24 0 00-4.16 3.29c-.13.59-.13 1.19 0 1.77a4.233 4.233 0 004.17 3.3c2.35 0 4.26-1.87 4.26-4.19 0-2.32-1.9-4.17-4.27-4.17zM60.63 5c.13 0 .23.1.23.23v3.76c.7-.76 1.7-1.18 2.73-1.18 1.88 0 3.45 1.4 3.84 3.28.13.59.13 1.2 0 1.8-.39 1.88-1.96 3.29-3.84 3.29-1.03 0-2.02-.43-2.73-1.18v.77c0 .12-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V5.23c0-.12.1-.23.23-.23h1.4zm-34 11h-1.4c-.13 0-.23-.11-.23-.23V8.22c.01-.13.1-.22.23-.22h1.4c.13 0 .22.11.23.22v.68c.5-.68 1.3-1.09 2.16-1.1h.03c1.09 0 2.09.6 2.6 1.55.45-.95 1.4-1.55 2.44-1.56 1.62 0 2.93 1.25 2.9 2.78l.03 5.2c0 .13-.1.23-.23.23h-1.41c-.13 0-.23-.11-.23-.23v-4.59c0-.98-.74-1.71-1.62-1.71-.8 0-1.46.7-1.59 1.62l.01 4.68c0 .13-.11.23-.23.23h-1.41c-.13 0-.23-.11-.23-.23v-4.59c0-.98-.74-1.71-1.62-1.71-.85 0-1.54.79-1.6 1.8v4.5c0 .13-.1.23-.23.23zm53.615 0h-1.61c-.04 0-.08-.01-.12-.03-.09-.06-.13-.19-.06-.28l2.43-3.71-2.39-3.65a.213.213 0 01-.03-.12c0-.12.09-.21.21-.21h1.61c.13 0 .24.06.3.17l1.41 2.37 1.4-2.37a.34.34 0 01.3-.17h1.6c.04 0 .08.01.12.03.09.06.13.19.06.28l-2.37 3.65 2.43 3.7c0 .05.01.09.01.13 0 .12-.09.21-.21.21h-1.61c-.13 0-.24-.06-.3-.17l-1.44-2.42-1.44 2.42a.34.34 0 01-.3.17zm-7.12-1.49c-1.33 0-2.42-1.12-2.42-2.51 0-1.39 1.08-2.52 2.42-2.52 1.33 0 2.42 1.12 2.42 2.51 0 1.39-1.08 2.51-2.42 2.52zm-19.865 0c-1.32 0-2.39-1.11-2.42-2.48v-.07c.02-1.38 1.09-2.49 2.4-2.49 1.32 0 2.41 1.12 2.41 2.51 0 1.39-1.07 2.52-2.39 2.53zm-8.11-2.48c-.01 1.37-1.09 2.47-2.41 2.47s-2.42-1.12-2.42-2.51c0-1.39 1.08-2.52 2.4-2.52 1.33 0 2.39 1.11 2.41 2.48l.02.08zm18.12 2.47c-1.32 0-2.39-1.11-2.41-2.48v-.06c.02-1.38 1.09-2.48 2.41-2.48s2.42 1.12 2.42 2.51c0 1.39-1.09 2.51-2.42 2.51z'/%3E%3C/defs%3E%3Cmask id='clip'%3E%3Crect x='0' y='0' width='100%25' height='100%25' fill='white'/%3E%3Cuse xlink:href='%23logo'/%3E%3Cuse xlink:href='%23text'/%3E%3C/mask%3E%3Cg id='outline' opacity='0.3' stroke='%23000' stroke-width='3'%3E%3Ccircle mask='url(%23clip)' cx='11.5' cy='11.5' r='9.25'/%3E%3Cuse xlink:href='%23text' mask='url(%23clip)'/%3E%3C/g%3E%3Cg id='fill' opacity='0.9' fill='%23fff'%3E%3Cuse xlink:href='%23logo'/%3E%3Cuse xlink:href='%23text'/%3E%3C/g%3E%3C/svg%3E");background-repeat:no-repeat;cursor:pointer;display:block;height:23px;margin:0 0 -4px -4px;overflow:hidden;width:88px}a.mapboxgl-ctrl-logo.mapboxgl-compact{width:23px}@media(-ms-high-contrast:active){a.mapboxgl-ctrl-logo{background-color:initial;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' fill-rule='evenodd' viewBox='0 0 88 23'%3E%3Cdefs%3E%3Cpath id='logo' d='M11.5 2.25c5.105 0 9.25 4.145 9.25 9.25s-4.145 9.25-9.25 9.25-9.25-4.145-9.25-9.25 4.145-9.25 9.25-9.25zM6.997 15.983c-.051-.338-.828-5.802 2.233-8.873a4.395 4.395 0 013.13-1.28c1.27 0 2.49.51 3.39 1.42.91.9 1.42 2.12 1.42 3.39 0 1.18-.449 2.301-1.28 3.13C12.72 16.93 7 16 7 16l-.003-.017zM15.3 10.5l-2 .8-.8 2-.8-2-2-.8 2-.8.8-2 .8 2 2 .8z'/%3E%3Cpath id='text' d='M50.63 8c.13 0 .23.1.23.23V9c.7-.76 1.7-1.18 2.73-1.18 2.17 0 3.95 1.85 3.95 4.17s-1.77 4.19-3.94 4.19c-1.04 0-2.03-.43-2.74-1.18v3.77c0 .13-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V8.23c0-.12.1-.23.23-.23h1.4zm-3.86.01c.01 0 .01 0 .01-.01.13 0 .22.1.22.22v7.55c0 .12-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V15c-.7.76-1.69 1.19-2.73 1.19-2.17 0-3.94-1.87-3.94-4.19 0-2.32 1.77-4.19 3.94-4.19 1.03 0 2.02.43 2.73 1.18v-.75c0-.12.1-.23.23-.23h1.4zm26.375-.19a4.24 4.24 0 00-4.16 3.29c-.13.59-.13 1.19 0 1.77a4.233 4.233 0 004.17 3.3c2.35 0 4.26-1.87 4.26-4.19 0-2.32-1.9-4.17-4.27-4.17zM60.63 5c.13 0 .23.1.23.23v3.76c.7-.76 1.7-1.18 2.73-1.18 1.88 0 3.45 1.4 3.84 3.28.13.59.13 1.2 0 1.8-.39 1.88-1.96 3.29-3.84 3.29-1.03 0-2.02-.43-2.73-1.18v.77c0 .12-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V5.23c0-.12.1-.23.23-.23h1.4zm-34 11h-1.4c-.13 0-.23-.11-.23-.23V8.22c.01-.13.1-.22.23-.22h1.4c.13 0 .22.11.23.22v.68c.5-.68 1.3-1.09 2.16-1.1h.03c1.09 0 2.09.6 2.6 1.55.45-.95 1.4-1.55 2.44-1.56 1.62 0 2.93 1.25 2.9 2.78l.03 5.2c0 .13-.1.23-.23.23h-1.41c-.13 0-.23-.11-.23-.23v-4.59c0-.98-.74-1.71-1.62-1.71-.8 0-1.46.7-1.59 1.62l.01 4.68c0 .13-.11.23-.23.23h-1.41c-.13 0-.23-.11-.23-.23v-4.59c0-.98-.74-1.71-1.62-1.71-.85 0-1.54.79-1.6 1.8v4.5c0 .13-.1.23-.23.23zm53.615 0h-1.61c-.04 0-.08-.01-.12-.03-.09-.06-.13-.19-.06-.28l2.43-3.71-2.39-3.65a.213.213 0 01-.03-.12c0-.12.09-.21.21-.21h1.61c.13 0 .24.06.3.17l1.41 2.37 1.4-2.37a.34.34 0 01.3-.17h1.6c.04 0 .08.01.12.03.09.06.13.19.06.28l-2.37 3.65 2.43 3.7c0 .05.01.09.01.13 0 .12-.09.21-.21.21h-1.61c-.13 0-.24-.06-.3-.17l-1.44-2.42-1.44 2.42a.34.34 0 01-.3.17zm-7.12-1.49c-1.33 0-2.42-1.12-2.42-2.51 0-1.39 1.08-2.52 2.42-2.52 1.33 0 2.42 1.12 2.42 2.51 0 1.39-1.08 2.51-2.42 2.52zm-19.865 0c-1.32 0-2.39-1.11-2.42-2.48v-.07c.02-1.38 1.09-2.49 2.4-2.49 1.32 0 2.41 1.12 2.41 2.51 0 1.39-1.07 2.52-2.39 2.53zm-8.11-2.48c-.01 1.37-1.09 2.47-2.41 2.47s-2.42-1.12-2.42-2.51c0-1.39 1.08-2.52 2.4-2.52 1.33 0 2.39 1.11 2.41 2.48l.02.08zm18.12 2.47c-1.32 0-2.39-1.11-2.41-2.48v-.06c.02-1.38 1.09-2.48 2.41-2.48s2.42 1.12 2.42 2.51c0 1.39-1.09 2.51-2.42 2.51z'/%3E%3C/defs%3E%3Cmask id='clip'%3E%3Crect x='0' y='0' width='100%25' height='100%25' fill='white'/%3E%3Cuse xlink:href='%23logo'/%3E%3Cuse xlink:href='%23text'/%3E%3C/mask%3E%3Cg id='outline' opacity='1' stroke='%23000' stroke-width='3'%3E%3Ccircle mask='url(%23clip)' cx='11.5' cy='11.5' r='9.25'/%3E%3Cuse xlink:href='%23text' mask='url(%23clip)'/%3E%3C/g%3E%3Cg id='fill' opacity='1' fill='%23fff'%3E%3Cuse xlink:href='%23logo'/%3E%3Cuse xlink:href='%23text'/%3E%3C/g%3E%3C/svg%3E")}}@media(-ms-high-contrast:black-on-white){a.mapboxgl-ctrl-logo{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' fill-rule='evenodd' viewBox='0 0 88 23'%3E%3Cdefs%3E%3Cpath id='logo' d='M11.5 2.25c5.105 0 9.25 4.145 9.25 9.25s-4.145 9.25-9.25 9.25-9.25-4.145-9.25-9.25 4.145-9.25 9.25-9.25zM6.997 15.983c-.051-.338-.828-5.802 2.233-8.873a4.395 4.395 0 013.13-1.28c1.27 0 2.49.51 3.39 1.42.91.9 1.42 2.12 1.42 3.39 0 1.18-.449 2.301-1.28 3.13C12.72 16.93 7 16 7 16l-.003-.017zM15.3 10.5l-2 .8-.8 2-.8-2-2-.8 2-.8.8-2 .8 2 2 .8z'/%3E%3Cpath id='text' d='M50.63 8c.13 0 .23.1.23.23V9c.7-.76 1.7-1.18 2.73-1.18 2.17 0 3.95 1.85 3.95 4.17s-1.77 4.19-3.94 4.19c-1.04 0-2.03-.43-2.74-1.18v3.77c0 .13-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V8.23c0-.12.1-.23.23-.23h1.4zm-3.86.01c.01 0 .01 0 .01-.01.13 0 .22.1.22.22v7.55c0 .12-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V15c-.7.76-1.69 1.19-2.73 1.19-2.17 0-3.94-1.87-3.94-4.19 0-2.32 1.77-4.19 3.94-4.19 1.03 0 2.02.43 2.73 1.18v-.75c0-.12.1-.23.23-.23h1.4zm26.375-.19a4.24 4.24 0 00-4.16 3.29c-.13.59-.13 1.19 0 1.77a4.233 4.233 0 004.17 3.3c2.35 0 4.26-1.87 4.26-4.19 0-2.32-1.9-4.17-4.27-4.17zM60.63 5c.13 0 .23.1.23.23v3.76c.7-.76 1.7-1.18 2.73-1.18 1.88 0 3.45 1.4 3.84 3.28.13.59.13 1.2 0 1.8-.39 1.88-1.96 3.29-3.84 3.29-1.03 0-2.02-.43-2.73-1.18v.77c0 .12-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V5.23c0-.12.1-.23.23-.23h1.4zm-34 11h-1.4c-.13 0-.23-.11-.23-.23V8.22c.01-.13.1-.22.23-.22h1.4c.13 0 .22.11.23.22v.68c.5-.68 1.3-1.09 2.16-1.1h.03c1.09 0 2.09.6 2.6 1.55.45-.95 1.4-1.55 2.44-1.56 1.62 0 2.93 1.25 2.9 2.78l.03 5.2c0 .13-.1.23-.23.23h-1.41c-.13 0-.23-.11-.23-.23v-4.59c0-.98-.74-1.71-1.62-1.71-.8 0-1.46.7-1.59 1.62l.01 4.68c0 .13-.11.23-.23.23h-1.41c-.13 0-.23-.11-.23-.23v-4.59c0-.98-.74-1.71-1.62-1.71-.85 0-1.54.79-1.6 1.8v4.5c0 .13-.1.23-.23.23zm53.615 0h-1.61c-.04 0-.08-.01-.12-.03-.09-.06-.13-.19-.06-.28l2.43-3.71-2.39-3.65a.213.213 0 01-.03-.12c0-.12.09-.21.21-.21h1.61c.13 0 .24.06.3.17l1.41 2.37 1.4-2.37a.34.34 0 01.3-.17h1.6c.04 0 .08.01.12.03.09.06.13.19.06.28l-2.37 3.65 2.43 3.7c0 .05.01.09.01.13 0 .12-.09.21-.21.21h-1.61c-.13 0-.24-.06-.3-.17l-1.44-2.42-1.44 2.42a.34.34 0 01-.3.17zm-7.12-1.49c-1.33 0-2.42-1.12-2.42-2.51 0-1.39 1.08-2.52 2.42-2.52 1.33 0 2.42 1.12 2.42 2.51 0 1.39-1.08 2.51-2.42 2.52zm-19.865 0c-1.32 0-2.39-1.11-2.42-2.48v-.07c.02-1.38 1.09-2.49 2.4-2.49 1.32 0 2.41 1.12 2.41 2.51 0 1.39-1.07 2.52-2.39 2.53zm-8.11-2.48c-.01 1.37-1.09 2.47-2.41 2.47s-2.42-1.12-2.42-2.51c0-1.39 1.08-2.52 2.4-2.52 1.33 0 2.39 1.11 2.41 2.48l.02.08zm18.12 2.47c-1.32 0-2.39-1.11-2.41-2.48v-.06c.02-1.38 1.09-2.48 2.41-2.48s2.42 1.12 2.42 2.51c0 1.39-1.09 2.51-2.42 2.51z'/%3E%3C/defs%3E%3Cmask id='clip'%3E%3Crect x='0' y='0' width='100%25' height='100%25' fill='white'/%3E%3Cuse xlink:href='%23logo'/%3E%3Cuse xlink:href='%23text'/%3E%3C/mask%3E%3Cg id='outline' opacity='1' stroke='%23fff' stroke-width='3' fill='%23fff'%3E%3Ccircle mask='url(%23clip)' cx='11.5' cy='11.5' r='9.25'/%3E%3Cuse xlink:href='%23text' mask='url(%23clip)'/%3E%3C/g%3E%3Cg id='fill' opacity='1' fill='%23000'%3E%3Cuse xlink:href='%23logo'/%3E%3Cuse xlink:href='%23text'/%3E%3C/g%3E%3C/svg%3E")}}.mapboxgl-ctrl.mapboxgl-ctrl-attrib{background-color:#ffffff80;margin:0;padding:0 5px}@media screen{.mapboxgl-ctrl-attrib.mapboxgl-compact{background-color:#fff;border-radius:12px;box-sizing:initial;margin:10px;min-height:20px;padding:2px 24px 2px 0;position:relative}.mapboxgl-ctrl-attrib.mapboxgl-compact-show{padding:2px 28px 2px 8px;visibility:visible}.mapboxgl-ctrl-bottom-left>.mapboxgl-ctrl-attrib.mapboxgl-compact-show,.mapboxgl-ctrl-left>.mapboxgl-ctrl-attrib.mapboxgl-compact-show,.mapboxgl-ctrl-top-left>.mapboxgl-ctrl-attrib.mapboxgl-compact-show{border-radius:12px;padding:2px 8px 2px 28px}.mapboxgl-ctrl-attrib.mapboxgl-compact .mapboxgl-ctrl-attrib-inner{display:none}.mapboxgl-ctrl-attrib-button{background-color:#ffffff80;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill-rule='evenodd'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E");border:0;border-radius:12px;box-sizing:border-box;cursor:pointer;display:none;height:24px;outline:none;position:absolute;right:0;top:0;width:24px}.mapboxgl-ctrl-bottom-left .mapboxgl-ctrl-attrib-button,.mapboxgl-ctrl-left .mapboxgl-ctrl-attrib-button,.mapboxgl-ctrl-top-left .mapboxgl-ctrl-attrib-button{left:0}.mapboxgl-ctrl-attrib.mapboxgl-compact .mapboxgl-ctrl-attrib-button,.mapboxgl-ctrl-attrib.mapboxgl-compact-show .mapboxgl-ctrl-attrib-inner{display:block}.mapboxgl-ctrl-attrib.mapboxgl-compact-show .mapboxgl-ctrl-attrib-button{background-color:#0000000d}.mapboxgl-ctrl-bottom-right>.mapboxgl-ctrl-attrib.mapboxgl-compact:after{bottom:0;right:0}.mapboxgl-ctrl-right>.mapboxgl-ctrl-attrib.mapboxgl-compact:after{right:0}.mapboxgl-ctrl-top-right>.mapboxgl-ctrl-attrib.mapboxgl-compact:after{right:0;top:0}.mapboxgl-ctrl-top-left>.mapboxgl-ctrl-attrib.mapboxgl-compact:after{left:0;top:0}.mapboxgl-ctrl-bottom-left>.mapboxgl-ctrl-attrib.mapboxgl-compact:after{bottom:0;left:0}.mapboxgl-ctrl-left>.mapboxgl-ctrl-attrib.mapboxgl-compact:after{left:0}}@media screen and (-ms-high-contrast:active){.mapboxgl-ctrl-attrib.mapboxgl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill-rule='evenodd' fill='%23fff'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E")}}@media screen and (-ms-high-contrast:black-on-white){.mapboxgl-ctrl-attrib.mapboxgl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill-rule='evenodd'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E")}}.mapboxgl-ctrl-attrib a{color:#000000bf;text-decoration:none}.mapboxgl-ctrl-attrib a:hover{color:inherit;text-decoration:underline}.mapboxgl-ctrl-attrib .mapbox-improve-map{font-weight:700;margin-left:2px}.mapboxgl-attrib-empty{display:none}.mapboxgl-ctrl-scale{background-color:#ffffffbf;border:2px solid #333;border-top:#333;box-sizing:border-box;color:#333;font-size:10px;padding:0 5px;white-space:nowrap}.mapboxgl-popup{display:flex;left:0;pointer-events:none;position:absolute;top:0;will-change:transform}.mapboxgl-popup-anchor-top,.mapboxgl-popup-anchor-top-left,.mapboxgl-popup-anchor-top-right{flex-direction:column}.mapboxgl-popup-anchor-bottom,.mapboxgl-popup-anchor-bottom-left,.mapboxgl-popup-anchor-bottom-right{flex-direction:column-reverse}.mapboxgl-popup-anchor-left{flex-direction:row}.mapboxgl-popup-anchor-right{flex-direction:row-reverse}.mapboxgl-popup-tip{border:10px solid #0000;height:0;width:0;z-index:1}.mapboxgl-popup-anchor-top .mapboxgl-popup-tip{align-self:center;border-bottom-color:#fff;border-top:none}.mapboxgl-popup-anchor-top-left .mapboxgl-popup-tip{align-self:flex-start;border-bottom-color:#fff;border-left:none;border-top:none}.mapboxgl-popup-anchor-top-right .mapboxgl-popup-tip{align-self:flex-end;border-bottom-color:#fff;border-right:none;border-top:none}.mapboxgl-popup-anchor-bottom .mapboxgl-popup-tip{align-self:center;border-bottom:none;border-top-color:#fff}.mapboxgl-popup-anchor-bottom-left .mapboxgl-popup-tip{align-self:flex-start;border-bottom:none;border-left:none;border-top-color:#fff}.mapboxgl-popup-anchor-bottom-right .mapboxgl-popup-tip{align-self:flex-end;border-bottom:none;border-right:none;border-top-color:#fff}.mapboxgl-popup-anchor-left .mapboxgl-popup-tip{align-self:center;border-left:none;border-right-color:#fff}.mapboxgl-popup-anchor-right .mapboxgl-popup-tip{align-self:center;border-left-color:#fff;border-right:none}.mapboxgl-popup-close-button{background-color:initial;border:0;border-radius:0 3px 0 0;cursor:pointer;position:absolute;right:0;top:0}.mapboxgl-popup-close-button:hover{background-color:#0000000d}.mapboxgl-popup-content{background:#fff;border-radius:3px;box-shadow:0 1px 2px #0000001a;padding:10px 10px 15px;pointer-events:auto;position:relative}.mapboxgl-popup-anchor-top-left .mapboxgl-popup-content{border-top-left-radius:0}.mapboxgl-popup-anchor-top-right .mapboxgl-popup-content{border-top-right-radius:0}.mapboxgl-popup-anchor-bottom-left .mapboxgl-popup-content{border-bottom-left-radius:0}.mapboxgl-popup-anchor-bottom-right .mapboxgl-popup-content{border-bottom-right-radius:0}.mapboxgl-popup-track-pointer{display:none}.mapboxgl-popup-track-pointer *{pointer-events:none;-webkit-user-select:none;user-select:none}.mapboxgl-map:hover .mapboxgl-popup-track-pointer{display:flex}.mapboxgl-map:active .mapboxgl-popup-track-pointer{display:none}.mapboxgl-marker{left:0;opacity:1;position:absolute;top:0;transition:opacity .2s;will-change:transform}.mapboxgl-user-location-dot,.mapboxgl-user-location-dot:before{background-color:#1da1f2;border-radius:50%;height:15px;width:15px}.mapboxgl-user-location-dot:before{animation:mapboxgl-user-location-dot-pulse 2s infinite;content:"";position:absolute}.mapboxgl-user-location-dot:after{border:2px solid #fff;border-radius:50%;box-shadow:0 0 3px #00000059;box-sizing:border-box;content:"";height:19px;left:-2px;position:absolute;top:-2px;width:19px}.mapboxgl-user-location-show-heading .mapboxgl-user-location-heading{height:0;width:0}.mapboxgl-user-location-show-heading .mapboxgl-user-location-heading:after,.mapboxgl-user-location-show-heading .mapboxgl-user-location-heading:before{border-bottom:7.5px solid #4aa1eb;content:"";position:absolute}.mapboxgl-user-location-show-heading .mapboxgl-user-location-heading:before{border-left:7.5px solid #0000;transform:translateY(-28px) skewY(-20deg)}.mapboxgl-user-location-show-heading .mapboxgl-user-location-heading:after{border-right:7.5px solid #0000;transform:translate(7.5px,-28px) skewY(20deg)}@keyframes mapboxgl-user-location-dot-pulse{0%{opacity:1;transform:scale(1)}70%{opacity:0;transform:scale(3)}to{opacity:0;transform:scale(1)}}.mapboxgl-user-location-dot-stale{background-color:#aaa}.mapboxgl-user-location-dot-stale:after{display:none}.mapboxgl-user-location-accuracy-circle{background-color:#1da1f233;border-radius:100%;height:1px;width:1px}.mapboxgl-crosshair,.mapboxgl-crosshair .mapboxgl-interactive,.mapboxgl-crosshair .mapboxgl-interactive:active{cursor:crosshair}.mapboxgl-boxzoom{background:#fff;border:2px dotted #202020;height:0;left:0;opacity:.5;position:absolute;top:0;width:0}@media print{.mapbox-improve-map{display:none}}.mapboxgl-scroll-zoom-blocker,.mapboxgl-touch-pan-blocker{align-items:center;background:#000000b3;color:#fff;display:flex;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif;height:100%;justify-content:center;left:0;opacity:0;pointer-events:none;position:absolute;text-align:center;top:0;transition:opacity .75s ease-in-out;transition-delay:1s;width:100%}.mapboxgl-scroll-zoom-blocker-show,.mapboxgl-touch-pan-blocker-show{opacity:1;transition:opacity .1s ease-in-out}.mapboxgl-canvas-container.mapboxgl-touch-pan-blocker-override.mapboxgl-scrollable-page,.mapboxgl-canvas-container.mapboxgl-touch-pan-blocker-override.mapboxgl-scrollable-page .mapboxgl-canvas{touch-action:pan-x pan-y}.mapboxgl-ctrl-separator{background-color:#e0e0e0;height:1px}.mapboxgl-ctrl button.mapboxgl-ctrl-level-button{color:#333;font-size:18px;font-weight:700;height:50px;width:50px}.mapboxgl-ctrl button.mapboxgl-ctrl-level-button:first-child{border-top-left-radius:8px;border-top-right-radius:8px}.mapboxgl-ctrl button.mapboxgl-ctrl-level-button:last-child{border-bottom-left-radius:8px;border-bottom-right-radius:8px}.mapboxgl-ctrl button.mapboxgl-ctrl-level-button:hover{background-color:#f5f5f5}.mapboxgl-ctrl button.mapboxgl-ctrl-level-button-selected{background-color:#4a5568;color:#fff}.mapboxgl-ctrl button.mapboxgl-ctrl-level-button-selected:hover{background-color:#2d3748}`)),document.head.appendChild(o)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})();
|
|
2
|
-
import
|
|
3
|
-
import { LicenseInfo as
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
-
import
|
|
7
|
-
import { isArray as
|
|
8
|
-
const
|
|
9
|
-
var
|
|
2
|
+
import $e, { createContext as Fe, useEffect as T, useMemo as P, useRef as ce, memo as ie, useState as k } from "react";
|
|
3
|
+
import { LicenseInfo as Ne } from "@mui/x-license";
|
|
4
|
+
import ve from "mapbox-gl";
|
|
5
|
+
import { Box as V, useTheme as _e, GlobalStyles as De, Skeleton as Ue } from "@tracktor/design-system";
|
|
6
|
+
import Ye, { Marker as Ee, Source as ge, Layer as me, useMap as Be, Popup as We } from "react-map-gl";
|
|
7
|
+
import { isArray as ue, isString as de, isNumber as K } from "@tracktor/react-utils";
|
|
8
|
+
const Nt = 2.333, Dt = 46.8677;
|
|
9
|
+
var Q = { exports: {} }, W = {};
|
|
10
10
|
/**
|
|
11
11
|
* @license React
|
|
12
12
|
* react-jsx-runtime.production.js
|
|
@@ -16,29 +16,29 @@ var Z = { exports: {} }, B = {};
|
|
|
16
16
|
* This source code is licensed under the MIT license found in the
|
|
17
17
|
* LICENSE file in the root directory of this source tree.
|
|
18
18
|
*/
|
|
19
|
-
var
|
|
20
|
-
function
|
|
21
|
-
if (
|
|
22
|
-
|
|
19
|
+
var ye;
|
|
20
|
+
function Ge() {
|
|
21
|
+
if (ye) return W;
|
|
22
|
+
ye = 1;
|
|
23
23
|
var e = Symbol.for("react.transitional.element"), t = Symbol.for("react.fragment");
|
|
24
|
-
function
|
|
24
|
+
function r(l, o, a) {
|
|
25
25
|
var s = null;
|
|
26
|
-
if (
|
|
27
|
-
|
|
26
|
+
if (a !== void 0 && (s = "" + a), o.key !== void 0 && (s = "" + o.key), "key" in o) {
|
|
27
|
+
a = {};
|
|
28
28
|
for (var u in o)
|
|
29
|
-
u !== "key" && (
|
|
30
|
-
} else
|
|
31
|
-
return o =
|
|
29
|
+
u !== "key" && (a[u] = o[u]);
|
|
30
|
+
} else a = o;
|
|
31
|
+
return o = a.ref, {
|
|
32
32
|
$$typeof: e,
|
|
33
|
-
type:
|
|
33
|
+
type: l,
|
|
34
34
|
key: s,
|
|
35
35
|
ref: o !== void 0 ? o : null,
|
|
36
|
-
props:
|
|
36
|
+
props: a
|
|
37
37
|
};
|
|
38
38
|
}
|
|
39
|
-
return
|
|
39
|
+
return W.Fragment = t, W.jsx = r, W.jsxs = r, W;
|
|
40
40
|
}
|
|
41
|
-
var
|
|
41
|
+
var G = {};
|
|
42
42
|
/**
|
|
43
43
|
* @license React
|
|
44
44
|
* react-jsx-runtime.development.js
|
|
@@ -48,20 +48,20 @@ var V = {};
|
|
|
48
48
|
* This source code is licensed under the MIT license found in the
|
|
49
49
|
* LICENSE file in the root directory of this source tree.
|
|
50
50
|
*/
|
|
51
|
-
var
|
|
51
|
+
var he;
|
|
52
52
|
function Ve() {
|
|
53
|
-
return
|
|
54
|
-
function e(
|
|
55
|
-
if (
|
|
56
|
-
if (typeof
|
|
57
|
-
return
|
|
58
|
-
if (typeof
|
|
59
|
-
switch (
|
|
60
|
-
case
|
|
53
|
+
return he || (he = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
54
|
+
function e(n) {
|
|
55
|
+
if (n == null) return null;
|
|
56
|
+
if (typeof n == "function")
|
|
57
|
+
return n.$$typeof === Y ? null : n.displayName || n.name || null;
|
|
58
|
+
if (typeof n == "string") return n;
|
|
59
|
+
switch (n) {
|
|
60
|
+
case w:
|
|
61
61
|
return "Fragment";
|
|
62
62
|
case N:
|
|
63
63
|
return "Profiler";
|
|
64
|
-
case
|
|
64
|
+
case q:
|
|
65
65
|
return "StrictMode";
|
|
66
66
|
case D:
|
|
67
67
|
return "Suspense";
|
|
@@ -70,256 +70,256 @@ function Ve() {
|
|
|
70
70
|
case A:
|
|
71
71
|
return "Activity";
|
|
72
72
|
}
|
|
73
|
-
if (typeof
|
|
74
|
-
switch (typeof
|
|
73
|
+
if (typeof n == "object")
|
|
74
|
+
switch (typeof n.tag == "number" && console.error(
|
|
75
75
|
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
|
76
|
-
),
|
|
76
|
+
), n.$$typeof) {
|
|
77
77
|
case E:
|
|
78
78
|
return "Portal";
|
|
79
79
|
case re:
|
|
80
|
-
return
|
|
81
|
-
case te:
|
|
82
|
-
return (r._context.displayName || "Context") + ".Consumer";
|
|
80
|
+
return n.displayName || "Context";
|
|
83
81
|
case ne:
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
return
|
|
82
|
+
return (n._context.displayName || "Context") + ".Consumer";
|
|
83
|
+
case oe:
|
|
84
|
+
var i = n.render;
|
|
85
|
+
return n = n.displayName, n || (n = i.displayName || i.name || "", n = n !== "" ? "ForwardRef(" + n + ")" : "ForwardRef"), n;
|
|
88
86
|
case S:
|
|
89
|
-
|
|
87
|
+
return i = n.displayName || null, i !== null ? i : e(n.type) || "Memo";
|
|
88
|
+
case R:
|
|
89
|
+
i = n._payload, n = n._init;
|
|
90
90
|
try {
|
|
91
|
-
return e(
|
|
91
|
+
return e(n(i));
|
|
92
92
|
} catch {
|
|
93
93
|
}
|
|
94
94
|
}
|
|
95
95
|
return null;
|
|
96
96
|
}
|
|
97
|
-
function t(
|
|
98
|
-
return "" +
|
|
97
|
+
function t(n) {
|
|
98
|
+
return "" + n;
|
|
99
99
|
}
|
|
100
|
-
function n
|
|
100
|
+
function r(n) {
|
|
101
101
|
try {
|
|
102
|
-
t(
|
|
103
|
-
var
|
|
102
|
+
t(n);
|
|
103
|
+
var i = !1;
|
|
104
104
|
} catch {
|
|
105
|
-
|
|
105
|
+
i = !0;
|
|
106
106
|
}
|
|
107
|
-
if (
|
|
108
|
-
|
|
109
|
-
var
|
|
110
|
-
return
|
|
111
|
-
|
|
107
|
+
if (i) {
|
|
108
|
+
i = console;
|
|
109
|
+
var m = i.error, h = typeof Symbol == "function" && Symbol.toStringTag && n[Symbol.toStringTag] || n.constructor.name || "Object";
|
|
110
|
+
return m.call(
|
|
111
|
+
i,
|
|
112
112
|
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
113
|
-
|
|
114
|
-
), t(
|
|
113
|
+
h
|
|
114
|
+
), t(n);
|
|
115
115
|
}
|
|
116
116
|
}
|
|
117
|
-
function
|
|
118
|
-
if (
|
|
119
|
-
if (typeof
|
|
117
|
+
function l(n) {
|
|
118
|
+
if (n === w) return "<>";
|
|
119
|
+
if (typeof n == "object" && n !== null && n.$$typeof === R)
|
|
120
120
|
return "<...>";
|
|
121
121
|
try {
|
|
122
|
-
var
|
|
123
|
-
return
|
|
122
|
+
var i = e(n);
|
|
123
|
+
return i ? "<" + i + ">" : "<...>";
|
|
124
124
|
} catch {
|
|
125
125
|
return "<...>";
|
|
126
126
|
}
|
|
127
127
|
}
|
|
128
128
|
function o() {
|
|
129
|
-
var
|
|
130
|
-
return
|
|
129
|
+
var n = L.A;
|
|
130
|
+
return n === null ? null : n.getOwner();
|
|
131
131
|
}
|
|
132
|
-
function
|
|
132
|
+
function a() {
|
|
133
133
|
return Error("react-stack-top-frame");
|
|
134
134
|
}
|
|
135
|
-
function s(
|
|
136
|
-
if (
|
|
137
|
-
var
|
|
138
|
-
if (
|
|
135
|
+
function s(n) {
|
|
136
|
+
if (I.call(n, "key")) {
|
|
137
|
+
var i = Object.getOwnPropertyDescriptor(n, "key").get;
|
|
138
|
+
if (i && i.isReactWarning) return !1;
|
|
139
139
|
}
|
|
140
|
-
return
|
|
140
|
+
return n.key !== void 0;
|
|
141
141
|
}
|
|
142
|
-
function u(
|
|
143
|
-
function
|
|
144
|
-
|
|
142
|
+
function u(n, i) {
|
|
143
|
+
function m() {
|
|
144
|
+
z || (z = !0, console.error(
|
|
145
145
|
"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
|
|
146
|
-
|
|
146
|
+
i
|
|
147
147
|
));
|
|
148
148
|
}
|
|
149
|
-
|
|
150
|
-
get:
|
|
149
|
+
m.isReactWarning = !0, Object.defineProperty(n, "key", {
|
|
150
|
+
get: m,
|
|
151
151
|
configurable: !0
|
|
152
152
|
});
|
|
153
153
|
}
|
|
154
|
-
function
|
|
155
|
-
var
|
|
156
|
-
return
|
|
154
|
+
function f() {
|
|
155
|
+
var n = e(this.type);
|
|
156
|
+
return J[n] || (J[n] = !0, console.error(
|
|
157
157
|
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
|
|
158
|
-
)),
|
|
158
|
+
)), n = this.props.ref, n !== void 0 ? n : null;
|
|
159
159
|
}
|
|
160
|
-
function g(
|
|
161
|
-
var
|
|
162
|
-
return
|
|
163
|
-
$$typeof:
|
|
164
|
-
type:
|
|
165
|
-
key:
|
|
166
|
-
props:
|
|
167
|
-
_owner:
|
|
168
|
-
}, (
|
|
160
|
+
function g(n, i, m, h, O, j) {
|
|
161
|
+
var c = m.ref;
|
|
162
|
+
return n = {
|
|
163
|
+
$$typeof: _,
|
|
164
|
+
type: n,
|
|
165
|
+
key: i,
|
|
166
|
+
props: m,
|
|
167
|
+
_owner: h
|
|
168
|
+
}, (c !== void 0 ? c : null) !== null ? Object.defineProperty(n, "ref", {
|
|
169
169
|
enumerable: !1,
|
|
170
|
-
get:
|
|
171
|
-
}) : Object.defineProperty(
|
|
170
|
+
get: f
|
|
171
|
+
}) : Object.defineProperty(n, "ref", { enumerable: !1, value: null }), n._store = {}, Object.defineProperty(n._store, "validated", {
|
|
172
172
|
configurable: !1,
|
|
173
173
|
enumerable: !1,
|
|
174
174
|
writable: !0,
|
|
175
175
|
value: 0
|
|
176
|
-
}), Object.defineProperty(
|
|
176
|
+
}), Object.defineProperty(n, "_debugInfo", {
|
|
177
177
|
configurable: !1,
|
|
178
178
|
enumerable: !1,
|
|
179
179
|
writable: !0,
|
|
180
180
|
value: null
|
|
181
|
-
}), Object.defineProperty(
|
|
181
|
+
}), Object.defineProperty(n, "_debugStack", {
|
|
182
182
|
configurable: !1,
|
|
183
183
|
enumerable: !1,
|
|
184
184
|
writable: !0,
|
|
185
|
-
value:
|
|
186
|
-
}), Object.defineProperty(
|
|
185
|
+
value: O
|
|
186
|
+
}), Object.defineProperty(n, "_debugTask", {
|
|
187
187
|
configurable: !1,
|
|
188
188
|
enumerable: !1,
|
|
189
189
|
writable: !0,
|
|
190
|
-
value:
|
|
191
|
-
}), Object.freeze && (Object.freeze(
|
|
190
|
+
value: j
|
|
191
|
+
}), Object.freeze && (Object.freeze(n.props), Object.freeze(n)), n;
|
|
192
192
|
}
|
|
193
|
-
function p(
|
|
194
|
-
var
|
|
195
|
-
if (
|
|
196
|
-
if (
|
|
197
|
-
if (
|
|
198
|
-
for (
|
|
199
|
-
|
|
200
|
-
Object.freeze && Object.freeze(
|
|
193
|
+
function p(n, i, m, h, O, j) {
|
|
194
|
+
var c = i.children;
|
|
195
|
+
if (c !== void 0)
|
|
196
|
+
if (h)
|
|
197
|
+
if ($(c)) {
|
|
198
|
+
for (h = 0; h < c.length; h++)
|
|
199
|
+
v(c[h]);
|
|
200
|
+
Object.freeze && Object.freeze(c);
|
|
201
201
|
} else
|
|
202
202
|
console.error(
|
|
203
203
|
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
|
204
204
|
);
|
|
205
|
-
else
|
|
206
|
-
if (
|
|
207
|
-
|
|
208
|
-
var
|
|
209
|
-
return
|
|
205
|
+
else v(c);
|
|
206
|
+
if (I.call(i, "key")) {
|
|
207
|
+
c = e(n);
|
|
208
|
+
var y = Object.keys(i).filter(function(B) {
|
|
209
|
+
return B !== "key";
|
|
210
210
|
});
|
|
211
|
-
|
|
211
|
+
h = 0 < y.length ? "{key: someKey, " + y.join(": ..., ") + ": ...}" : "{key: someKey}", H[c + h] || (y = 0 < y.length ? "{" + y.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
212
212
|
`A props object containing a "key" prop is being spread into JSX:
|
|
213
213
|
let props = %s;
|
|
214
214
|
<%s {...props} />
|
|
215
215
|
React keys must be passed directly to JSX without using spread:
|
|
216
216
|
let props = %s;
|
|
217
217
|
<%s key={someKey} {...props} />`,
|
|
218
|
-
m,
|
|
219
218
|
h,
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
219
|
+
c,
|
|
220
|
+
y,
|
|
221
|
+
c
|
|
222
|
+
), H[c + h] = !0);
|
|
223
223
|
}
|
|
224
|
-
if (
|
|
225
|
-
|
|
226
|
-
for (var
|
|
227
|
-
|
|
228
|
-
} else
|
|
229
|
-
return
|
|
230
|
-
|
|
231
|
-
typeof
|
|
224
|
+
if (c = null, m !== void 0 && (r(m), c = "" + m), s(i) && (r(i.key), c = "" + i.key), "key" in i) {
|
|
225
|
+
m = {};
|
|
226
|
+
for (var C in i)
|
|
227
|
+
C !== "key" && (m[C] = i[C]);
|
|
228
|
+
} else m = i;
|
|
229
|
+
return c && u(
|
|
230
|
+
m,
|
|
231
|
+
typeof n == "function" ? n.displayName || n.name || "Unknown" : n
|
|
232
232
|
), g(
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
233
|
+
n,
|
|
234
|
+
c,
|
|
235
|
+
m,
|
|
236
236
|
o(),
|
|
237
|
-
|
|
238
|
-
|
|
237
|
+
O,
|
|
238
|
+
j
|
|
239
239
|
);
|
|
240
240
|
}
|
|
241
|
-
function
|
|
242
|
-
b(
|
|
241
|
+
function v(n) {
|
|
242
|
+
b(n) ? n._store && (n._store.validated = 1) : typeof n == "object" && n !== null && n.$$typeof === R && (n._payload.status === "fulfilled" ? b(n._payload.value) && n._payload.value._store && (n._payload.value._store.validated = 1) : n._store && (n._store.validated = 1));
|
|
243
243
|
}
|
|
244
|
-
function b(
|
|
245
|
-
return typeof
|
|
244
|
+
function b(n) {
|
|
245
|
+
return typeof n == "object" && n !== null && n.$$typeof === _;
|
|
246
246
|
}
|
|
247
|
-
var x =
|
|
247
|
+
var x = $e, _ = Symbol.for("react.transitional.element"), E = Symbol.for("react.portal"), w = Symbol.for("react.fragment"), q = Symbol.for("react.strict_mode"), N = Symbol.for("react.profiler"), ne = Symbol.for("react.consumer"), re = Symbol.for("react.context"), oe = Symbol.for("react.forward_ref"), D = Symbol.for("react.suspense"), U = Symbol.for("react.suspense_list"), S = Symbol.for("react.memo"), R = Symbol.for("react.lazy"), A = Symbol.for("react.activity"), Y = Symbol.for("react.client.reference"), L = x.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, I = Object.prototype.hasOwnProperty, $ = Array.isArray, F = console.createTask ? console.createTask : function() {
|
|
248
248
|
return null;
|
|
249
249
|
};
|
|
250
250
|
x = {
|
|
251
|
-
react_stack_bottom_frame: function(
|
|
252
|
-
return
|
|
251
|
+
react_stack_bottom_frame: function(n) {
|
|
252
|
+
return n();
|
|
253
253
|
}
|
|
254
254
|
};
|
|
255
|
-
var
|
|
255
|
+
var z, J = {}, X = x.react_stack_bottom_frame.bind(
|
|
256
256
|
x,
|
|
257
|
-
|
|
258
|
-
)(),
|
|
259
|
-
|
|
260
|
-
var
|
|
257
|
+
a
|
|
258
|
+
)(), Z = F(l(a)), H = {};
|
|
259
|
+
G.Fragment = w, G.jsx = function(n, i, m) {
|
|
260
|
+
var h = 1e4 > L.recentlyCreatedOwnerStacks++;
|
|
261
261
|
return p(
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
262
|
+
n,
|
|
263
|
+
i,
|
|
264
|
+
m,
|
|
265
265
|
!1,
|
|
266
|
-
|
|
267
|
-
|
|
266
|
+
h ? Error("react-stack-top-frame") : X,
|
|
267
|
+
h ? F(l(n)) : Z
|
|
268
268
|
);
|
|
269
|
-
},
|
|
270
|
-
var
|
|
269
|
+
}, G.jsxs = function(n, i, m) {
|
|
270
|
+
var h = 1e4 > L.recentlyCreatedOwnerStacks++;
|
|
271
271
|
return p(
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
272
|
+
n,
|
|
273
|
+
i,
|
|
274
|
+
m,
|
|
275
275
|
!0,
|
|
276
|
-
|
|
277
|
-
|
|
276
|
+
h ? Error("react-stack-top-frame") : X,
|
|
277
|
+
h ? F(l(n)) : Z
|
|
278
278
|
);
|
|
279
279
|
};
|
|
280
|
-
})()),
|
|
280
|
+
})()), G;
|
|
281
281
|
}
|
|
282
|
-
var
|
|
283
|
-
function
|
|
284
|
-
return
|
|
282
|
+
var be;
|
|
283
|
+
function qe() {
|
|
284
|
+
return be || (be = 1, process.env.NODE_ENV === "production" ? Q.exports = Ge() : Q.exports = Ve()), Q.exports;
|
|
285
285
|
}
|
|
286
|
-
var
|
|
287
|
-
const
|
|
286
|
+
var d = qe();
|
|
287
|
+
const ze = Fe({
|
|
288
288
|
licenceMapbox: "",
|
|
289
289
|
licenseMuiX: ""
|
|
290
|
-
}),
|
|
291
|
-
|
|
292
|
-
t &&
|
|
290
|
+
}), Ut = ({ children: e, licenseMuiX: t, licenceMapbox: r }) => {
|
|
291
|
+
T(() => {
|
|
292
|
+
t && Ne.setLicenseKey(t);
|
|
293
293
|
}, [t]);
|
|
294
|
-
const
|
|
294
|
+
const l = P(
|
|
295
295
|
() => ({
|
|
296
|
-
licenceMapbox:
|
|
296
|
+
licenceMapbox: r,
|
|
297
297
|
licenseMuiX: t
|
|
298
298
|
}),
|
|
299
|
-
[t,
|
|
299
|
+
[t, r]
|
|
300
300
|
);
|
|
301
|
-
return
|
|
302
|
-
},
|
|
301
|
+
return r && (ve.accessToken = r), /* @__PURE__ */ d.jsx(ze.Provider, { value: l, children: e });
|
|
302
|
+
}, Je = (e) => e?.type === "LineString" || e?.type === "MultiLineString", Xe = (e) => {
|
|
303
303
|
let t;
|
|
304
|
-
Array.isArray(e[0][0]) ? t = e.reduce((o,
|
|
305
|
-
const
|
|
306
|
-
return [t[
|
|
307
|
-
},
|
|
304
|
+
Array.isArray(e[0][0]) ? t = e.reduce((o, a) => a.length > o.length ? a : o) : t = e;
|
|
305
|
+
const r = Math.floor(t.length / 2);
|
|
306
|
+
return [t[r][0], t[r][1]];
|
|
307
|
+
}, Ze = ({ route: e, children: t }) => {
|
|
308
308
|
if (!(e && t))
|
|
309
309
|
return null;
|
|
310
|
-
const
|
|
311
|
-
if (!
|
|
310
|
+
const r = e.geometry;
|
|
311
|
+
if (!Je(r))
|
|
312
312
|
return null;
|
|
313
|
-
const
|
|
314
|
-
return /* @__PURE__ */
|
|
315
|
-
},
|
|
313
|
+
const l = r.coordinates, [o, a] = Xe(l);
|
|
314
|
+
return /* @__PURE__ */ d.jsx(Ee, { longitude: o, latitude: a, children: t });
|
|
315
|
+
}, He = (e) => ue(e) ? { features: e, type: "FeatureCollection" } : e.type === "FeatureCollection" ? e : { features: [e], type: "FeatureCollection" }, te = ({ features: e, lineLabel: t, lineStyle: r }) => {
|
|
316
316
|
if (!e)
|
|
317
317
|
return null;
|
|
318
|
-
const
|
|
319
|
-
return /* @__PURE__ */
|
|
318
|
+
const l = He(e), o = l.features.filter((s) => s.geometry.type === "Polygon" || s.geometry.type === "MultiPolygon"), a = l.features.filter((s) => s.geometry.type === "LineString" || s.geometry.type === "MultiLineString");
|
|
319
|
+
return /* @__PURE__ */ d.jsxs(d.Fragment, { children: [
|
|
320
320
|
o.length > 0 && // biome-ignore lint/correctness/useUniqueElementIds: <ID must stay stable for map layer>
|
|
321
|
-
/* @__PURE__ */
|
|
322
|
-
|
|
321
|
+
/* @__PURE__ */ d.jsx(ge, { id: "features-polygon", type: "geojson", data: { features: o, type: "FeatureCollection" }, children: /* @__PURE__ */ d.jsx(
|
|
322
|
+
me,
|
|
323
323
|
{
|
|
324
324
|
id: "polygon-fill",
|
|
325
325
|
type: "fill",
|
|
@@ -329,60 +329,80 @@ const Ge = Ie({
|
|
|
329
329
|
}
|
|
330
330
|
}
|
|
331
331
|
) }),
|
|
332
|
-
|
|
333
|
-
/* @__PURE__ */
|
|
334
|
-
|
|
332
|
+
a.length > 0 && /* @__PURE__ */ d.jsxs(d.Fragment, { children: [
|
|
333
|
+
/* @__PURE__ */ d.jsx(ge, { id: "features-line", type: "geojson", data: { features: a, type: "FeatureCollection" }, children: /* @__PURE__ */ d.jsx(
|
|
334
|
+
me,
|
|
335
335
|
{
|
|
336
336
|
id: "line-stroke",
|
|
337
337
|
type: "line",
|
|
338
338
|
paint: {
|
|
339
|
-
"line-color":
|
|
340
|
-
"line-opacity":
|
|
341
|
-
"line-width":
|
|
339
|
+
"line-color": r?.color ?? ["coalesce", ["get", "color"], "#3B82F6"],
|
|
340
|
+
"line-opacity": r?.opacity ?? ["coalesce", ["get", "opacity"], 0.9],
|
|
341
|
+
"line-width": r?.width ?? ["coalesce", ["get", "width"], 3]
|
|
342
342
|
}
|
|
343
343
|
}
|
|
344
344
|
) }),
|
|
345
|
-
t &&
|
|
345
|
+
t && a.map((s, u) => /* @__PURE__ */ d.jsx(Ze, { route: s, children: t }, `label-${u}`))
|
|
346
346
|
] })
|
|
347
347
|
] });
|
|
348
|
-
},
|
|
348
|
+
}, Qe = ({ width: e, height: t }) => /* @__PURE__ */ d.jsx(
|
|
349
|
+
V,
|
|
350
|
+
{
|
|
351
|
+
sx: {
|
|
352
|
+
alignItems: "center",
|
|
353
|
+
bgcolor: "grey.100",
|
|
354
|
+
display: "flex",
|
|
355
|
+
height: t,
|
|
356
|
+
justifyContent: "center",
|
|
357
|
+
p: 2,
|
|
358
|
+
textAlign: "center",
|
|
359
|
+
width: e
|
|
360
|
+
},
|
|
361
|
+
children: /* @__PURE__ */ d.jsxs("span", { children: [
|
|
362
|
+
"🚫 ",
|
|
363
|
+
/* @__PURE__ */ d.jsx("strong", { children: "Cannot display the map" }),
|
|
364
|
+
/* @__PURE__ */ d.jsx("br", {}),
|
|
365
|
+
"Try to activate WebGL in your browser settings."
|
|
366
|
+
] })
|
|
367
|
+
}
|
|
368
|
+
), Ke = "#000000", et = "#FFFFFF", ae = {
|
|
349
369
|
default: "#009ba6",
|
|
350
370
|
primary: "#3F83F8",
|
|
351
371
|
secondary: "#9C27B0",
|
|
352
372
|
success: "#4CAF50",
|
|
353
373
|
warning: "#FF9800"
|
|
354
|
-
},
|
|
355
|
-
const o =
|
|
356
|
-
if (
|
|
374
|
+
}, tt = (e) => e in ae, nt = ({ color: e, variant: t, type: r, size: l = 28 }) => {
|
|
375
|
+
const o = _e(), a = o.palette.mode === "dark" ? Ke : et, s = Math.max(3, Math.round(l * 0.25)), u = (() => {
|
|
376
|
+
if (r === "dropOff")
|
|
357
377
|
return "#4e85e1";
|
|
358
|
-
if (t &&
|
|
359
|
-
return
|
|
378
|
+
if (t && tt(t))
|
|
379
|
+
return ae[t];
|
|
360
380
|
if (!e)
|
|
361
|
-
return
|
|
381
|
+
return ae.default;
|
|
362
382
|
if (typeof e == "function")
|
|
363
383
|
return e(o);
|
|
364
|
-
if (
|
|
365
|
-
const [
|
|
384
|
+
if (de(e) && e.includes(".")) {
|
|
385
|
+
const [f, g] = e.split("."), p = o.palette[f];
|
|
366
386
|
if (p && typeof p == "object" && g in p)
|
|
367
387
|
return p[g];
|
|
368
388
|
}
|
|
369
389
|
return e;
|
|
370
390
|
})();
|
|
371
|
-
return /* @__PURE__ */
|
|
372
|
-
|
|
391
|
+
return /* @__PURE__ */ d.jsx(
|
|
392
|
+
V,
|
|
373
393
|
{
|
|
374
394
|
component: "div",
|
|
375
395
|
style: {
|
|
376
|
-
backgroundColor:
|
|
396
|
+
backgroundColor: a,
|
|
377
397
|
border: `${s}px solid ${u}`,
|
|
378
398
|
borderRadius: "50%",
|
|
379
399
|
boxShadow: "0 0 4px rgba(0,0,0,0.3)",
|
|
380
|
-
height:
|
|
381
|
-
width:
|
|
400
|
+
height: l,
|
|
401
|
+
width: l
|
|
382
402
|
}
|
|
383
403
|
}
|
|
384
404
|
);
|
|
385
|
-
},
|
|
405
|
+
}, rt = (e) => ({
|
|
386
406
|
".mapboxgl-popup-close-button": {
|
|
387
407
|
color: e.palette.mode === "dark" ? "#fff !important" : "#000 !important",
|
|
388
408
|
fontSize: "20px !important"
|
|
@@ -397,145 +417,145 @@ const Ge = Ie({
|
|
|
397
417
|
".mapboxgl-popup-tip": {
|
|
398
418
|
borderTopColor: `${e.palette.mode === "dark" ? "#1e1e1e" : "#ffffff"} !important`
|
|
399
419
|
}
|
|
400
|
-
}),
|
|
401
|
-
if (
|
|
420
|
+
}), Re = (e) => {
|
|
421
|
+
if (K(e))
|
|
402
422
|
return e;
|
|
403
|
-
if (
|
|
423
|
+
if (de(e) && e.trim() !== "") {
|
|
404
424
|
const t = Number(e);
|
|
405
425
|
return Number.isFinite(t) ? t : null;
|
|
406
426
|
}
|
|
407
427
|
return null;
|
|
408
|
-
},
|
|
409
|
-
const t =
|
|
428
|
+
}, Se = (e) => {
|
|
429
|
+
const t = Re(e);
|
|
410
430
|
return t !== null && t >= -90 && t <= 90;
|
|
411
|
-
},
|
|
412
|
-
const t =
|
|
431
|
+
}, je = (e) => {
|
|
432
|
+
const t = Re(e);
|
|
413
433
|
return t !== null && t >= -180 && t <= 180;
|
|
414
|
-
},
|
|
434
|
+
}, Yt = (e) => Array.isArray(e) && e.length === 2 && Se(e[0]) && je(e[1]), Te = (e) => {
|
|
415
435
|
if (typeof e != "object" || e === null)
|
|
416
436
|
return !1;
|
|
417
437
|
const t = e;
|
|
418
|
-
return (typeof t.id == "string" || typeof t.id == "number" || t.id === void 0) &&
|
|
419
|
-
},
|
|
438
|
+
return (typeof t.id == "string" || typeof t.id == "number" || t.id === void 0) && Se(t.lat) && je(t.lng);
|
|
439
|
+
}, xe = (e) => de(e) || K(e) ? String(e) : JSON.stringify(e), ot = (e) => {
|
|
420
440
|
if (!e)
|
|
421
441
|
return [];
|
|
422
|
-
const t =
|
|
423
|
-
for (const
|
|
424
|
-
const o =
|
|
425
|
-
o.type === "Point" &&
|
|
442
|
+
const t = ue(e) ? e : e.type === "FeatureCollection" ? e.features : [e], r = [];
|
|
443
|
+
for (const l of t) {
|
|
444
|
+
const o = l.geometry;
|
|
445
|
+
o.type === "Point" && r.push(o.coordinates), o.type === "LineString" && r.push(...o.coordinates), o.type === "Polygon" && r.push(...o.coordinates[0]);
|
|
426
446
|
}
|
|
427
|
-
return
|
|
428
|
-
},
|
|
447
|
+
return r;
|
|
448
|
+
}, st = ({
|
|
429
449
|
markers: e = [],
|
|
430
450
|
features: t,
|
|
431
|
-
padding:
|
|
432
|
-
duration:
|
|
451
|
+
padding: r = 50,
|
|
452
|
+
duration: l = 1e3,
|
|
433
453
|
disableAnimation: o,
|
|
434
|
-
fitBounds:
|
|
454
|
+
fitBounds: a = !0,
|
|
435
455
|
animationKey: s,
|
|
436
456
|
openPopup: u
|
|
437
457
|
}) => {
|
|
438
|
-
const { current:
|
|
439
|
-
const x = [...p.map((
|
|
440
|
-
return x.length === 0 ? null : x.reduce((
|
|
441
|
-
}, [p,
|
|
442
|
-
return
|
|
458
|
+
const { current: f } = Be(), g = ce(""), p = P(() => e.filter(Te), [e]), v = P(() => ot(t), [t]), b = P(() => {
|
|
459
|
+
const x = [...p.map((_) => [_.lng, _.lat]), ...v];
|
|
460
|
+
return x.length === 0 ? null : x.reduce((_, [E, w]) => _.extend([E, w]), new ve.LngLatBounds());
|
|
461
|
+
}, [p, v]);
|
|
462
|
+
return T(() => {
|
|
443
463
|
if (u) {
|
|
444
|
-
g.current = s !== void 0 ?
|
|
464
|
+
g.current = s !== void 0 ? xe(s) : "__initial_skip__";
|
|
445
465
|
return;
|
|
446
466
|
}
|
|
447
|
-
if (
|
|
467
|
+
if (f && a && b) {
|
|
448
468
|
if (s !== void 0) {
|
|
449
|
-
const x =
|
|
469
|
+
const x = xe(s);
|
|
450
470
|
if (g.current === x)
|
|
451
471
|
return;
|
|
452
472
|
g.current = x;
|
|
453
473
|
} else if (g.current === "__initial_skip__")
|
|
454
474
|
return;
|
|
455
475
|
if (!b.isEmpty()) {
|
|
456
|
-
if (p.length === 1 &&
|
|
476
|
+
if (p.length === 1 && v.length === 0) {
|
|
457
477
|
const x = p[0];
|
|
458
|
-
|
|
478
|
+
f.flyTo({
|
|
459
479
|
center: [x.lng, x.lat],
|
|
460
|
-
duration: o ? 0 :
|
|
480
|
+
duration: o ? 0 : l,
|
|
461
481
|
zoom: 14
|
|
462
482
|
});
|
|
463
483
|
return;
|
|
464
484
|
}
|
|
465
|
-
|
|
466
|
-
duration: o ? 0 :
|
|
467
|
-
padding:
|
|
485
|
+
f.fitBounds([b.getSouthWest().toArray(), b.getNorthEast().toArray()], {
|
|
486
|
+
duration: o ? 0 : l,
|
|
487
|
+
padding: r
|
|
468
488
|
});
|
|
469
489
|
}
|
|
470
490
|
}
|
|
471
|
-
}, [
|
|
472
|
-
},
|
|
491
|
+
}, [f, b, r, l, o, s, a, p, v, u]), null;
|
|
492
|
+
}, we = (e, t) => {
|
|
473
493
|
if (t <= 0)
|
|
474
494
|
throw new Error("chunkSize must be greater than 0");
|
|
475
|
-
const
|
|
476
|
-
for (let
|
|
477
|
-
|
|
478
|
-
return
|
|
479
|
-
},
|
|
480
|
-
const
|
|
495
|
+
const r = [];
|
|
496
|
+
for (let l = 0; l < e.length; l += t)
|
|
497
|
+
r.push(e.slice(l, l + t));
|
|
498
|
+
return r;
|
|
499
|
+
}, lt = (e, t) => [e, ...t.map((r) => r.coords)].map((r) => r.join(",")).join(";"), at = (e, t, r) => {
|
|
500
|
+
const l = t.map((s, u) => {
|
|
481
501
|
if (u === 0 || s == null)
|
|
482
502
|
return null;
|
|
483
|
-
const
|
|
484
|
-
return
|
|
503
|
+
const f = e[u - 1];
|
|
504
|
+
return f ? { distance: s, id: f.id, point: f.coords } : null;
|
|
485
505
|
}).filter((s) => s !== null);
|
|
486
|
-
if (
|
|
506
|
+
if (l.length === 0)
|
|
487
507
|
return { all: [], nearest: null };
|
|
488
|
-
const o =
|
|
489
|
-
return
|
|
508
|
+
const o = l.sort((s, u) => s.distance - u.distance), a = o[0];
|
|
509
|
+
return r && a.distance > r ? { all: o, nearest: null } : { all: o, nearest: a };
|
|
490
510
|
};
|
|
491
|
-
function
|
|
492
|
-
return async (
|
|
493
|
-
const u =
|
|
494
|
-
return p?.length ?
|
|
511
|
+
function Ce(e, t, r) {
|
|
512
|
+
return async (l, o, a, s) => {
|
|
513
|
+
const u = lt(l, o), f = e(u, a), g = await t(f), p = g ? r(g)?.[0] : void 0;
|
|
514
|
+
return p?.length ? at(o, p, s) : { all: [], nearest: null };
|
|
495
515
|
};
|
|
496
516
|
}
|
|
497
|
-
const
|
|
498
|
-
const
|
|
499
|
-
return (await Promise.all(
|
|
500
|
-
},
|
|
501
|
-
const
|
|
517
|
+
const Ae = async (e, t, r) => {
|
|
518
|
+
const l = Array.from({ length: Math.ceil(e.length / t) }, (a, s) => e.slice(s * t, (s + 1) * t));
|
|
519
|
+
return (await Promise.all(l.map(async (a) => Promise.all(a.map(r))))).flat();
|
|
520
|
+
}, ct = "https://api.mapbox.com", fe = (e, t, r, l, o = {}) => {
|
|
521
|
+
const a = new URLSearchParams({
|
|
502
522
|
access_token: "",
|
|
503
523
|
...o
|
|
504
524
|
});
|
|
505
|
-
return `${
|
|
506
|
-
},
|
|
525
|
+
return `${ct}/${e}/${t}/mapbox/${r}/${l}?${a.toString()}`;
|
|
526
|
+
}, pe = async (e) => {
|
|
507
527
|
try {
|
|
508
528
|
const t = await fetch(e);
|
|
509
529
|
return t.ok ? await t.json() : (console.error(`Mapbox API error: ${t.status} ${t.statusText}`), null);
|
|
510
530
|
} catch (t) {
|
|
511
531
|
return console.error("Mapbox network error:", t), null;
|
|
512
532
|
}
|
|
513
|
-
},
|
|
533
|
+
}, it = 25, ut = 5, dt = (e, t) => fe("directions-matrix", "v1", t, e, {
|
|
514
534
|
annotations: "distance",
|
|
515
535
|
sources: "0"
|
|
516
|
-
}),
|
|
536
|
+
}), ft = (e) => e.distances ?? void 0, pt = Ce(dt, pe, ft), gt = async (e, t, r = "driving", l) => {
|
|
517
537
|
if (!t.length)
|
|
518
538
|
return [];
|
|
519
|
-
const o =
|
|
520
|
-
return (await
|
|
539
|
+
const o = we(t, it - 1);
|
|
540
|
+
return (await Ae(
|
|
521
541
|
o,
|
|
522
|
-
|
|
523
|
-
(s) =>
|
|
542
|
+
ut,
|
|
543
|
+
(s) => pt(e, s, r, l)
|
|
524
544
|
)).flatMap((s) => s.all).sort((s, u) => s.distance - u.distance);
|
|
525
|
-
},
|
|
526
|
-
const
|
|
527
|
-
contours_minutes:
|
|
545
|
+
}, mt = async (e, t = "driving", r = [5, 10, 15]) => {
|
|
546
|
+
const l = `${e[0]},${e[1]}`, o = fe("isochrone", "v1", t, l, {
|
|
547
|
+
contours_minutes: r.join(","),
|
|
528
548
|
polygons: "true"
|
|
529
549
|
});
|
|
530
|
-
return await
|
|
531
|
-
},
|
|
532
|
-
const
|
|
550
|
+
return await pe(o);
|
|
551
|
+
}, yt = async (e, t, r = "driving") => {
|
|
552
|
+
const l = `${e.join(",")};${t.join(",")}`, o = fe("directions", "v5", r, l, {
|
|
533
553
|
geometries: "geojson",
|
|
534
554
|
overview: "full"
|
|
535
|
-
}),
|
|
536
|
-
if (!
|
|
555
|
+
}), a = await pe(o);
|
|
556
|
+
if (!a?.routes?.length)
|
|
537
557
|
return null;
|
|
538
|
-
const s =
|
|
558
|
+
const s = a.routes[0];
|
|
539
559
|
return {
|
|
540
560
|
geometry: s.geometry,
|
|
541
561
|
properties: {
|
|
@@ -544,67 +564,67 @@ const ke = async (e, t, n) => {
|
|
|
544
564
|
},
|
|
545
565
|
type: "Feature"
|
|
546
566
|
};
|
|
547
|
-
},
|
|
548
|
-
findNearest:
|
|
549
|
-
getIsochrone:
|
|
550
|
-
getItinerary:
|
|
551
|
-
},
|
|
552
|
-
const [o,
|
|
553
|
-
return
|
|
567
|
+
}, ee = {
|
|
568
|
+
findNearest: gt,
|
|
569
|
+
getIsochrone: mt,
|
|
570
|
+
getItinerary: yt
|
|
571
|
+
}, ht = ({ origin: e, profile: t = "driving", intervals: r = [5, 10, 15], onIsochroneLoaded: l }) => {
|
|
572
|
+
const [o, a] = k(null);
|
|
573
|
+
return T(() => {
|
|
554
574
|
let s = !1;
|
|
555
575
|
if (!e || e.length !== 2) {
|
|
556
|
-
|
|
576
|
+
a(null);
|
|
557
577
|
return;
|
|
558
578
|
}
|
|
559
579
|
return (async () => {
|
|
560
|
-
if (!
|
|
580
|
+
if (!ee.getIsochrone) {
|
|
561
581
|
console.warn("⚠️ getIsochrone is not implemented for this provider.");
|
|
562
582
|
return;
|
|
563
583
|
}
|
|
564
|
-
const u = await
|
|
565
|
-
s || (
|
|
584
|
+
const u = await ee.getIsochrone(e, t, r);
|
|
585
|
+
s || (a(u), l?.(u ?? null));
|
|
566
586
|
})(), () => {
|
|
567
587
|
s = !0;
|
|
568
588
|
};
|
|
569
|
-
}, [e, t,
|
|
570
|
-
},
|
|
589
|
+
}, [e, t, r, l]), o ? /* @__PURE__ */ d.jsx(te, { features: o }) : null;
|
|
590
|
+
}, bt = ie(ht), xt = {
|
|
571
591
|
cycling: "routed-bike",
|
|
572
592
|
driving: "routed-car",
|
|
573
593
|
walking: "routed-foot"
|
|
574
|
-
},
|
|
575
|
-
const o = `${
|
|
576
|
-
return `${o}${
|
|
577
|
-
},
|
|
594
|
+
}, vt = "https://routing.openstreetmap.de", Oe = (e, t, r, l) => {
|
|
595
|
+
const o = `${vt}/${xt[t]}/${e}/v1/${t}/${r}`, a = l ? `?${new URLSearchParams(l).toString()}` : "";
|
|
596
|
+
return `${o}${a}`;
|
|
597
|
+
}, Me = async (e) => {
|
|
578
598
|
try {
|
|
579
599
|
const t = await fetch(e);
|
|
580
600
|
return t.ok ? await t.json() : (console.error("OSRM API error:", t.status, t.statusText), null);
|
|
581
601
|
} catch (t) {
|
|
582
602
|
return console.error("Error fetching OSRM API:", t), null;
|
|
583
603
|
}
|
|
584
|
-
},
|
|
604
|
+
}, _t = 100, Et = 5, Rt = (e, t) => Oe("table", t, e, {
|
|
585
605
|
annotations: "distance",
|
|
586
606
|
sources: 0
|
|
587
|
-
}),
|
|
588
|
-
|
|
589
|
-
|
|
607
|
+
}), St = Ce(
|
|
608
|
+
Rt,
|
|
609
|
+
Me,
|
|
590
610
|
(e) => e.distances ?? void 0
|
|
591
|
-
),
|
|
611
|
+
), jt = async (e, t, r = "driving", l) => {
|
|
592
612
|
if (!t.length)
|
|
593
613
|
return [];
|
|
594
|
-
const o =
|
|
595
|
-
return (await
|
|
614
|
+
const o = we(t, _t - 1);
|
|
615
|
+
return (await Ae(
|
|
596
616
|
o,
|
|
597
|
-
|
|
598
|
-
(s) =>
|
|
617
|
+
Et,
|
|
618
|
+
(s) => St(e, s, r, l)
|
|
599
619
|
)).flatMap((s) => s.all).sort((s, u) => s.distance - u.distance);
|
|
600
|
-
},
|
|
601
|
-
const
|
|
620
|
+
}, Tt = async (e, t, r = "driving") => {
|
|
621
|
+
const l = `${e.join(",")};${t.join(",")}`, o = Oe("route", r, l, {
|
|
602
622
|
geometries: "geojson",
|
|
603
623
|
overview: "full"
|
|
604
|
-
}),
|
|
605
|
-
if (!
|
|
624
|
+
}), a = await Me(o);
|
|
625
|
+
if (!a?.routes?.length)
|
|
606
626
|
return null;
|
|
607
|
-
const s =
|
|
627
|
+
const s = a.routes[0];
|
|
608
628
|
return {
|
|
609
629
|
geometry: s.geometry,
|
|
610
630
|
properties: {
|
|
@@ -613,148 +633,148 @@ const ke = async (e, t, n) => {
|
|
|
613
633
|
},
|
|
614
634
|
type: "Feature"
|
|
615
635
|
};
|
|
616
|
-
},
|
|
617
|
-
findNearest:
|
|
618
|
-
getItinerary:
|
|
619
|
-
},
|
|
620
|
-
const [
|
|
621
|
-
return
|
|
622
|
-
|
|
623
|
-
}, [
|
|
624
|
-
!(e && t) ||
|
|
625
|
-
const
|
|
626
|
-
g(
|
|
636
|
+
}, Pe = {
|
|
637
|
+
findNearest: jt,
|
|
638
|
+
getItinerary: Tt
|
|
639
|
+
}, ke = ({ from: e, to: t, profile: r, engine: l, itineraryLineStyle: o, initialRoute: a, onRouteComputed: s, itineraryLabel: u }) => {
|
|
640
|
+
const [f, g] = k(a ?? null);
|
|
641
|
+
return T(() => {
|
|
642
|
+
a && (g(a), s?.(a));
|
|
643
|
+
}, [a, s]), T(() => {
|
|
644
|
+
!(e && t) || a || (async () => {
|
|
645
|
+
const v = await (l === "OSRM" ? Pe : ee).getItinerary(e, t, r);
|
|
646
|
+
g(v ?? null), s?.(v ?? null);
|
|
627
647
|
})();
|
|
628
|
-
}, [e, t,
|
|
629
|
-
},
|
|
648
|
+
}, [e, t, r, l, a, s]), f ? /* @__PURE__ */ d.jsx(te, { features: f, lineStyle: o, lineLabel: u }) : null;
|
|
649
|
+
}, wt = ({
|
|
630
650
|
origin: e,
|
|
631
651
|
maxDistanceMeters: t,
|
|
632
|
-
destinations:
|
|
633
|
-
onNearestFound:
|
|
652
|
+
destinations: r,
|
|
653
|
+
onNearestFound: l,
|
|
634
654
|
initialNearestResults: o,
|
|
635
|
-
itineraryLineStyle:
|
|
655
|
+
itineraryLineStyle: a,
|
|
636
656
|
profile: s = "driving",
|
|
637
657
|
engine: u = "OSRM"
|
|
638
658
|
}) => {
|
|
639
|
-
const [
|
|
640
|
-
|
|
659
|
+
const [f, g] = k(o ?? []), p = ce(null);
|
|
660
|
+
T(() => {
|
|
641
661
|
o && g(o);
|
|
642
|
-
}, [o]),
|
|
662
|
+
}, [o]), T(() => {
|
|
643
663
|
const b = new AbortController();
|
|
644
664
|
if (o?.length) return;
|
|
645
|
-
if (!e || e.length !== 2 || !
|
|
665
|
+
if (!e || e.length !== 2 || !r?.length) {
|
|
646
666
|
g([]);
|
|
647
667
|
return;
|
|
648
668
|
}
|
|
649
669
|
g([]);
|
|
650
|
-
const x =
|
|
670
|
+
const x = r.map((E) => ({
|
|
651
671
|
coords: [E.lng, E.lat],
|
|
652
672
|
id: E.id
|
|
653
673
|
}));
|
|
654
|
-
return (u === "OSRM" ?
|
|
655
|
-
}, [e, t,
|
|
674
|
+
return (u === "OSRM" ? Pe : ee).findNearest(e, x, s, t).then((E) => g(E ?? [])).catch(() => g([])), () => b.abort();
|
|
675
|
+
}, [e, t, r, s, u, o?.length]), T(() => {
|
|
656
676
|
const b = p.current;
|
|
657
|
-
(!b || b.length !==
|
|
658
|
-
}, [
|
|
659
|
-
const
|
|
660
|
-
return
|
|
661
|
-
},
|
|
662
|
-
const [t,
|
|
663
|
-
return
|
|
664
|
-
queueMicrotask(() =>
|
|
677
|
+
(!b || b.length !== f.length || b.some((_, E) => _.id !== f[E]?.id || _.distance !== f[E]?.distance)) && (l?.(f), p.current = f);
|
|
678
|
+
}, [f, l]);
|
|
679
|
+
const v = f[0];
|
|
680
|
+
return v ? v.routeFeature ? /* @__PURE__ */ d.jsx(te, { features: v.routeFeature }) : /* @__PURE__ */ d.jsx(ke, { from: e, to: v.point, profile: s, engine: u, itineraryLineStyle: a }) : null;
|
|
681
|
+
}, Ct = ie(wt), At = ({ children: e }) => {
|
|
682
|
+
const [t, r] = k(!1);
|
|
683
|
+
return T(() => {
|
|
684
|
+
queueMicrotask(() => r(!0));
|
|
665
685
|
}, []), t ? e : null;
|
|
666
|
-
},
|
|
686
|
+
}, le = {
|
|
667
687
|
satellite: "mapbox://styles/mapbox/satellite-streets-v12",
|
|
668
688
|
street: {
|
|
669
689
|
dark: "mapbox://styles/mapbox/dark-v11",
|
|
670
690
|
light: "mapbox://styles/mapbox/streets-v12"
|
|
671
691
|
}
|
|
672
|
-
},
|
|
673
|
-
const
|
|
692
|
+
}, Le = (e, t) => {
|
|
693
|
+
const r = t === "dark";
|
|
674
694
|
switch (e) {
|
|
675
695
|
case "satellite":
|
|
676
|
-
return
|
|
696
|
+
return le.satellite;
|
|
677
697
|
default:
|
|
678
|
-
return
|
|
698
|
+
return r ? le.street.dark : le.street.light;
|
|
679
699
|
}
|
|
680
|
-
},
|
|
700
|
+
}, Ot = ({
|
|
681
701
|
mapStyle: e,
|
|
682
702
|
theme: t,
|
|
683
|
-
baseMapView:
|
|
684
|
-
doubleClickZoom:
|
|
703
|
+
baseMapView: r,
|
|
704
|
+
doubleClickZoom: l,
|
|
685
705
|
cooperativeGestures: o
|
|
686
706
|
}) => ({
|
|
687
707
|
cooperativeGestures: o,
|
|
688
|
-
doubleClickZoom:
|
|
708
|
+
doubleClickZoom: l,
|
|
689
709
|
failIfMajorPerformanceCaveat: !1,
|
|
690
|
-
style: e ??
|
|
691
|
-
}),
|
|
710
|
+
style: e ?? Le(r, t)
|
|
711
|
+
}), Mt = ({
|
|
692
712
|
containerStyle: e,
|
|
693
713
|
square: t,
|
|
694
|
-
loading:
|
|
695
|
-
height:
|
|
714
|
+
loading: r,
|
|
715
|
+
height: l = 300,
|
|
696
716
|
width: o = "100%",
|
|
697
|
-
center:
|
|
717
|
+
center: a = [2.3522, 48.8566],
|
|
698
718
|
zoom: s = 5,
|
|
699
719
|
popupMaxWidth: u,
|
|
700
|
-
openPopup:
|
|
720
|
+
openPopup: f,
|
|
701
721
|
openPopupOnHover: g,
|
|
702
722
|
markers: p = [],
|
|
703
|
-
fitBounds:
|
|
723
|
+
fitBounds: v = !0,
|
|
704
724
|
fitBoundsPadding: b,
|
|
705
725
|
fitBoundDuration: x,
|
|
706
|
-
fitBoundsAnimationKey:
|
|
726
|
+
fitBoundsAnimationKey: _,
|
|
707
727
|
disableAnimation: E,
|
|
708
|
-
mapStyle:
|
|
709
|
-
onMapClick:
|
|
728
|
+
mapStyle: w,
|
|
729
|
+
onMapClick: q,
|
|
710
730
|
baseMapView: N,
|
|
711
|
-
cooperativeGestures:
|
|
731
|
+
cooperativeGestures: ne = !0,
|
|
712
732
|
doubleClickZoom: re = !0,
|
|
713
|
-
projection:
|
|
733
|
+
projection: oe,
|
|
714
734
|
theme: D,
|
|
715
735
|
features: U,
|
|
716
|
-
itineraryParams:
|
|
717
|
-
findNearestMarker:
|
|
736
|
+
itineraryParams: S,
|
|
737
|
+
findNearestMarker: R,
|
|
718
738
|
isochrone: A
|
|
719
739
|
}) => {
|
|
720
|
-
const Y =
|
|
721
|
-
const [
|
|
722
|
-
return { latitude:
|
|
723
|
-
}, [
|
|
724
|
-
() =>
|
|
725
|
-
[N,
|
|
740
|
+
const Y = _e(), L = ce(null), [I, $] = k(f ?? null), [F, z] = k(!1), [J, X] = k(!1), Z = P(() => {
|
|
741
|
+
const [c = 2.3522, y = 48.8566] = ue(a) ? a : [];
|
|
742
|
+
return { latitude: y, longitude: c, zoom: s };
|
|
743
|
+
}, [a, s]), H = P(
|
|
744
|
+
() => w || Le(N, D ?? Y.palette.mode),
|
|
745
|
+
[N, w, D, Y.palette.mode]
|
|
726
746
|
), {
|
|
727
|
-
style:
|
|
728
|
-
cooperativeGestures:
|
|
729
|
-
doubleClickZoom:
|
|
730
|
-
} =
|
|
747
|
+
style: n,
|
|
748
|
+
cooperativeGestures: i,
|
|
749
|
+
doubleClickZoom: m
|
|
750
|
+
} = Ot({
|
|
731
751
|
baseMapView: N,
|
|
732
|
-
cooperativeGestures:
|
|
752
|
+
cooperativeGestures: ne,
|
|
733
753
|
doubleClickZoom: re,
|
|
734
|
-
mapStyle:
|
|
754
|
+
mapStyle: H,
|
|
735
755
|
theme: D ?? Y.palette.mode
|
|
736
|
-
}),
|
|
737
|
-
!g &&
|
|
738
|
-
},
|
|
739
|
-
g &&
|
|
756
|
+
}), h = (c, y) => {
|
|
757
|
+
!g && y && $(c);
|
|
758
|
+
}, O = (c, y) => {
|
|
759
|
+
g && $(y ? c : null);
|
|
740
760
|
};
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
}, [
|
|
744
|
-
const
|
|
745
|
-
return /* @__PURE__ */
|
|
746
|
-
|
|
761
|
+
T(() => {
|
|
762
|
+
$(f ?? null);
|
|
763
|
+
}, [f]);
|
|
764
|
+
const j = P(() => I ? p?.find((c) => c.id === I) ?? null : null, [I, p]);
|
|
765
|
+
return J ? /* @__PURE__ */ d.jsx(Qe, { width: o, height: l }) : /* @__PURE__ */ d.jsxs(
|
|
766
|
+
V,
|
|
747
767
|
{
|
|
748
768
|
"data-testid": "mapbox-container",
|
|
749
|
-
sx: { borderRadius: t ? 0 : 1, height:
|
|
769
|
+
sx: { borderRadius: t ? 0 : 1, height: l, overflow: "hidden", position: "relative", width: o, ...e },
|
|
750
770
|
children: [
|
|
751
|
-
/* @__PURE__ */
|
|
752
|
-
|
|
753
|
-
|
|
771
|
+
/* @__PURE__ */ d.jsx(De, { styles: rt }),
|
|
772
|
+
r && /* @__PURE__ */ d.jsx(
|
|
773
|
+
Ue,
|
|
754
774
|
{
|
|
755
775
|
"data-testid": "skeleton-loader",
|
|
756
776
|
width: o,
|
|
757
|
-
height:
|
|
777
|
+
height: l,
|
|
758
778
|
variant: t ? "rectangular" : "rounded",
|
|
759
779
|
sx: {
|
|
760
780
|
inset: 0,
|
|
@@ -763,105 +783,108 @@ const ke = async (e, t, n) => {
|
|
|
763
783
|
}
|
|
764
784
|
}
|
|
765
785
|
),
|
|
766
|
-
!
|
|
767
|
-
|
|
786
|
+
!r && /* @__PURE__ */ d.jsxs(
|
|
787
|
+
Ye,
|
|
768
788
|
{
|
|
769
|
-
ref:
|
|
770
|
-
cooperativeGestures:
|
|
771
|
-
doubleClickZoom:
|
|
772
|
-
mapStyle:
|
|
773
|
-
projection:
|
|
789
|
+
ref: L,
|
|
790
|
+
cooperativeGestures: i,
|
|
791
|
+
doubleClickZoom: m,
|
|
792
|
+
mapStyle: n,
|
|
793
|
+
projection: oe,
|
|
774
794
|
onLoad: () => {
|
|
775
|
-
|
|
795
|
+
z(!0), L.current?.resize();
|
|
776
796
|
},
|
|
777
|
-
|
|
797
|
+
onError: () => {
|
|
798
|
+
X(!0);
|
|
799
|
+
},
|
|
800
|
+
initialViewState: Z,
|
|
778
801
|
style: { height: "100%", width: "100%" },
|
|
779
802
|
mapboxAccessToken: void 0,
|
|
780
|
-
onClick: (
|
|
781
|
-
const
|
|
782
|
-
const { lng:
|
|
783
|
-
return
|
|
803
|
+
onClick: (c) => {
|
|
804
|
+
const y = p.find((C) => {
|
|
805
|
+
const { lng: B, lat: se } = c.lngLat, M = Math.abs(Number(C.lng ?? 0) - B), Ie = Math.abs(Number(C.lat ?? 0) - se);
|
|
806
|
+
return M < 0.01 && Ie < 0.01;
|
|
784
807
|
});
|
|
785
|
-
|
|
808
|
+
q?.(c.lngLat.lng, c.lngLat.lat, y ?? null);
|
|
786
809
|
},
|
|
787
810
|
children: [
|
|
788
|
-
|
|
789
|
-
const
|
|
790
|
-
if (!
|
|
811
|
+
F && p.filter(Te).map((c) => {
|
|
812
|
+
const y = typeof c.size == "number" ? c.size : void 0, C = (() => {
|
|
813
|
+
if (!c.IconComponent)
|
|
791
814
|
return null;
|
|
792
|
-
const
|
|
793
|
-
return
|
|
794
|
-
})(),
|
|
815
|
+
const M = { ...c.iconProps };
|
|
816
|
+
return y && (M.width = y, M.height = y), /* @__PURE__ */ d.jsx(c.IconComponent, { ...M });
|
|
817
|
+
})(), B = c.IconComponent ? null : /* @__PURE__ */ d.jsx(nt, { color: c.color, variant: c.variant, size: y, type: c.type }), se = {
|
|
795
818
|
alignItems: "center",
|
|
796
|
-
cursor:
|
|
819
|
+
cursor: c.Tooltip ? "pointer" : "default",
|
|
797
820
|
display: "inline-flex",
|
|
798
821
|
justifyContent: "center",
|
|
799
|
-
...
|
|
822
|
+
...c.IconComponent && !y ? {} : y ? { height: y, width: y } : {}
|
|
800
823
|
};
|
|
801
|
-
return /* @__PURE__ */
|
|
802
|
-
|
|
824
|
+
return /* @__PURE__ */ d.jsx(
|
|
825
|
+
Ee,
|
|
803
826
|
{
|
|
804
|
-
longitude:
|
|
805
|
-
latitude:
|
|
827
|
+
longitude: c.lng,
|
|
828
|
+
latitude: c.lat,
|
|
806
829
|
anchor: "center",
|
|
807
|
-
onClick: (
|
|
808
|
-
|
|
830
|
+
onClick: (M) => {
|
|
831
|
+
M.originalEvent.stopPropagation(), c.id && h(c.id, !!c.Tooltip), q?.(c.lng, c.lat, c), c.onClick?.(c);
|
|
809
832
|
},
|
|
810
|
-
children: /* @__PURE__ */
|
|
811
|
-
|
|
833
|
+
children: /* @__PURE__ */ d.jsx(
|
|
834
|
+
V,
|
|
812
835
|
{
|
|
813
836
|
component: "div",
|
|
814
|
-
onMouseEnter: () =>
|
|
815
|
-
onMouseLeave: () =>
|
|
816
|
-
style:
|
|
817
|
-
children:
|
|
837
|
+
onMouseEnter: () => c.id && O(c.id, !!c.Tooltip),
|
|
838
|
+
onMouseLeave: () => O(null),
|
|
839
|
+
style: se,
|
|
840
|
+
children: C || B
|
|
818
841
|
}
|
|
819
842
|
)
|
|
820
843
|
},
|
|
821
|
-
|
|
844
|
+
c.id
|
|
822
845
|
);
|
|
823
846
|
}),
|
|
824
|
-
|
|
825
|
-
|
|
847
|
+
F && j?.Tooltip && /* @__PURE__ */ d.jsx(
|
|
848
|
+
We,
|
|
826
849
|
{
|
|
827
|
-
longitude:
|
|
828
|
-
latitude:
|
|
850
|
+
longitude: K(j.lng) ? j.lng : 0,
|
|
851
|
+
latitude: K(j.lat) ? j.lat : 0,
|
|
829
852
|
anchor: "top",
|
|
830
|
-
onClose: () =>
|
|
853
|
+
onClose: () => $(null),
|
|
831
854
|
maxWidth: u,
|
|
832
855
|
closeOnClick: !0,
|
|
833
856
|
closeOnMove: !1,
|
|
834
|
-
children: /* @__PURE__ */
|
|
857
|
+
children: /* @__PURE__ */ d.jsx(V, { sx: { minHeight: 60, minWidth: 240 }, children: /* @__PURE__ */ d.jsx(At, { children: j.Tooltip }) })
|
|
835
858
|
}
|
|
836
859
|
),
|
|
837
|
-
|
|
838
|
-
|
|
860
|
+
S && /* @__PURE__ */ d.jsx(
|
|
861
|
+
ke,
|
|
839
862
|
{
|
|
840
|
-
from:
|
|
841
|
-
to:
|
|
842
|
-
profile:
|
|
843
|
-
engine:
|
|
844
|
-
itineraryLineStyle:
|
|
845
|
-
initialRoute:
|
|
846
|
-
onRouteComputed:
|
|
847
|
-
itineraryLabel:
|
|
863
|
+
from: S.from,
|
|
864
|
+
to: S.to,
|
|
865
|
+
profile: S.profile,
|
|
866
|
+
engine: S.engine,
|
|
867
|
+
itineraryLineStyle: S.itineraryLineStyle,
|
|
868
|
+
initialRoute: S.initialRoute,
|
|
869
|
+
onRouteComputed: S.onRouteComputed,
|
|
870
|
+
itineraryLabel: S.itineraryLabel
|
|
848
871
|
}
|
|
849
872
|
),
|
|
850
|
-
|
|
851
|
-
|
|
873
|
+
R && /* @__PURE__ */ d.jsx(
|
|
874
|
+
Ct,
|
|
852
875
|
{
|
|
853
|
-
origin:
|
|
854
|
-
destinations:
|
|
855
|
-
onNearestFound:
|
|
856
|
-
maxDistanceMeters:
|
|
857
|
-
engine:
|
|
858
|
-
profile:
|
|
859
|
-
initialNearestResults:
|
|
860
|
-
itineraryLineStyle:
|
|
876
|
+
origin: R.origin,
|
|
877
|
+
destinations: R.destinations,
|
|
878
|
+
onNearestFound: R.onNearestFound,
|
|
879
|
+
maxDistanceMeters: R.maxDistanceMeters,
|
|
880
|
+
engine: R.engine,
|
|
881
|
+
profile: R.profile,
|
|
882
|
+
initialNearestResults: R.initialNearestResults,
|
|
883
|
+
itineraryLineStyle: R.itineraryLineStyle
|
|
861
884
|
}
|
|
862
885
|
),
|
|
863
|
-
A && /* @__PURE__ */
|
|
864
|
-
|
|
886
|
+
A && /* @__PURE__ */ d.jsx(
|
|
887
|
+
bt,
|
|
865
888
|
{
|
|
866
889
|
origin: A.origin,
|
|
867
890
|
profile: A.profile,
|
|
@@ -869,16 +892,16 @@ const ke = async (e, t, n) => {
|
|
|
869
892
|
intervals: A.intervals
|
|
870
893
|
}
|
|
871
894
|
),
|
|
872
|
-
U && /* @__PURE__ */
|
|
873
|
-
|
|
874
|
-
|
|
895
|
+
U && /* @__PURE__ */ d.jsx(te, { features: U }),
|
|
896
|
+
v && /* @__PURE__ */ d.jsx(
|
|
897
|
+
st,
|
|
875
898
|
{
|
|
876
899
|
markers: p,
|
|
877
900
|
features: U,
|
|
878
901
|
padding: b,
|
|
879
902
|
duration: E ? 0 : x,
|
|
880
|
-
animationKey:
|
|
881
|
-
openPopup: !!
|
|
903
|
+
animationKey: _,
|
|
904
|
+
openPopup: !!f
|
|
882
905
|
}
|
|
883
906
|
)
|
|
884
907
|
]
|
|
@@ -887,25 +910,25 @@ const ke = async (e, t, n) => {
|
|
|
887
910
|
]
|
|
888
911
|
}
|
|
889
912
|
);
|
|
890
|
-
},
|
|
891
|
-
const
|
|
892
|
-
(u) => u.reduce((
|
|
893
|
-
const [x,
|
|
894
|
-
return p > o !=
|
|
913
|
+
}, Bt = ie(Mt), Wt = ["OSRM", "Mapbox"], Gt = ["driving", "walking", "cycling"], Vt = (e, t) => {
|
|
914
|
+
const r = "geometry" in t ? t.geometry : t, [l, o] = e, a = (s) => s.map(
|
|
915
|
+
(u) => u.reduce((f, [g, p], v, b) => {
|
|
916
|
+
const [x, _] = b[(v - 1 + b.length) % b.length];
|
|
917
|
+
return p > o != _ > o && l < (x - g) * (o - p) / (_ - p) + g ? !f : f;
|
|
895
918
|
}, !1)
|
|
896
|
-
).reduce((u,
|
|
897
|
-
return
|
|
919
|
+
).reduce((u, f, g) => g === 0 ? f : u && !f, !1);
|
|
920
|
+
return r.type === "Polygon" ? a(r.coordinates) : r.type === "MultiPolygon" ? r.coordinates.some((s) => a(s)) : !1;
|
|
898
921
|
};
|
|
899
922
|
export {
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
923
|
+
Dt as DEFAULT_CENTER_LAT,
|
|
924
|
+
Nt as DEFAULT_CENTER_LNG,
|
|
925
|
+
Ut as MapProvider,
|
|
926
|
+
Bt as MapView,
|
|
927
|
+
Wt as engines,
|
|
928
|
+
Vt as isPointInGeoJSON,
|
|
929
|
+
Yt as isValidLatLngTuple,
|
|
930
|
+
Se as isValidLatitude,
|
|
931
|
+
je as isValidLongitude,
|
|
932
|
+
Te as isValidMarker,
|
|
933
|
+
Gt as profiles
|
|
911
934
|
};
|