Files
opencloud-compose/config/opencloud/apps/maps/js/maps-DKGjis05.js
Alexander Ackermann a27c40c4dc feat: add app maps
2025-11-05 23:08:30 +01:00

25 lines
219 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
define(["require","@opencloud-eu/web-pkg","vue","vue3-gettext"],function(Sl,Pe,x,tn){"use strict";var Jn=document.createElement("style");Jn.textContent=`/*! tailwindcss v4.1.13 | MIT License | https://tailwindcss.com */@layer theme{:root,:host{--ext-spacing:4px}}@layer base,components;@layer utilities{.ext\\:absolute{position:absolute}.ext\\:top-2{top:calc(var(--ext-spacing)*2)}.ext\\:right-2{right:calc(var(--ext-spacing)*2)}.ext\\:z-1{z-index:1}.ext\\:z-990{z-index:990}.ext\\:flex{display:flex}.ext\\:grid{display:grid}.ext\\:size-full{width:100%;height:100%}.ext\\:h-\\[200px\\]{height:200px}.ext\\:h-full{height:100%}.ext\\:grid-cols-\\[auto_minmax\\(0\\,1fr\\)\\]{grid-template-columns:auto minmax(0,1fr)}.ext\\:flex-col{flex-direction:column}.ext\\:rounded{border-radius:.25rem}.ext\\:p-2{padding:calc(var(--ext-spacing)*2)}}.leaflet-pane,.leaflet-tile,.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-tile-container,.leaflet-pane>svg,.leaflet-pane>canvas,.leaflet-zoom-box,.leaflet-image-layer,.leaflet-layer{position:absolute;left:0;top:0}.leaflet-container{overflow:hidden}.leaflet-tile,.leaflet-marker-icon,.leaflet-marker-shadow{-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-user-drag:none}.leaflet-tile::selection{background:transparent}.leaflet-safari .leaflet-tile{image-rendering:-webkit-optimize-contrast}.leaflet-safari .leaflet-tile-container{width:1600px;height:1600px;-webkit-transform-origin:0 0}.leaflet-marker-icon,.leaflet-marker-shadow{display:block}.leaflet-container .leaflet-overlay-pane svg{max-width:none!important;max-height:none!important}.leaflet-container .leaflet-marker-pane img,.leaflet-container .leaflet-shadow-pane img,.leaflet-container .leaflet-tile-pane img,.leaflet-container img.leaflet-image-layer,.leaflet-container .leaflet-tile{max-width:none!important;max-height:none!important;width:auto;padding:0}.leaflet-container img.leaflet-tile{mix-blend-mode:plus-lighter}.leaflet-container.leaflet-touch-zoom{-ms-touch-action:pan-x pan-y;touch-action:pan-x pan-y}.leaflet-container.leaflet-touch-drag{-ms-touch-action:pinch-zoom;touch-action:none;touch-action:pinch-zoom}.leaflet-container.leaflet-touch-drag.leaflet-touch-zoom{-ms-touch-action:none;touch-action:none}.leaflet-container{-webkit-tap-highlight-color:transparent}.leaflet-container a{-webkit-tap-highlight-color:rgba(51,181,229,.4)}.leaflet-tile{filter:inherit;visibility:hidden}.leaflet-tile-loaded{visibility:inherit}.leaflet-zoom-box{width:0;height:0;-moz-box-sizing:border-box;box-sizing:border-box;z-index:800}.leaflet-overlay-pane svg{-moz-user-select:none}.leaflet-pane{z-index:400}.leaflet-tile-pane{z-index:200}.leaflet-overlay-pane{z-index:400}.leaflet-shadow-pane{z-index:500}.leaflet-marker-pane{z-index:600}.leaflet-tooltip-pane{z-index:650}.leaflet-popup-pane{z-index:700}.leaflet-map-pane canvas{z-index:100}.leaflet-map-pane svg{z-index:200}.leaflet-vml-shape{width:1px;height:1px}.lvml{behavior:url(#default#VML);display:inline-block;position:absolute}.leaflet-control{position:relative;z-index:800;pointer-events:visiblePainted;pointer-events:auto}.leaflet-top,.leaflet-bottom{position:absolute;z-index:1000;pointer-events:none}.leaflet-top{top:0}.leaflet-right{right:0}.leaflet-bottom{bottom:0}.leaflet-left{left:0}.leaflet-control{float:left;clear:both}.leaflet-right .leaflet-control{float:right}.leaflet-top .leaflet-control{margin-top:10px}.leaflet-bottom .leaflet-control{margin-bottom:10px}.leaflet-left .leaflet-control{margin-left:10px}.leaflet-right .leaflet-control{margin-right:10px}.leaflet-fade-anim .leaflet-popup{opacity:0;-webkit-transition:opacity .2s linear;-moz-transition:opacity .2s linear;transition:opacity .2s linear}.leaflet-fade-anim .leaflet-map-pane .leaflet-popup{opacity:1}.leaflet-zoom-animated{-webkit-transform-origin:0 0;-ms-transform-origin:0 0;transform-origin:0 0}svg.leaflet-zoom-animated{will-change:transform}.leaflet-zoom-anim .leaflet-zoom-animated{-webkit-transition:-webkit-transform .25s cubic-bezier(0,0,.25,1);-moz-transition:-moz-transform .25s cubic-bezier(0,0,.25,1);transition:transform .25s cubic-bezier(0,0,.25,1)}.leaflet-zoom-anim .leaflet-tile,.leaflet-pan-anim .leaflet-tile{-webkit-transition:none;-moz-transition:none;transition:none}.leaflet-zoom-anim .leaflet-zoom-hide{visibility:hidden}.leaflet-interactive{cursor:pointer}.leaflet-grab{cursor:-webkit-grab;cursor:-moz-grab;cursor:grab}.leaflet-crosshair,.leaflet-crosshair .leaflet-interactive{cursor:crosshair}.leaflet-popup-pane,.leaflet-control{cursor:auto}.leaflet-dragging .leaflet-grab,.leaflet-dragging .leaflet-grab .leaflet-interactive,.leaflet-dragging .leaflet-marker-draggable{cursor:move;cursor:-webkit-grabbing;cursor:-moz-grabbing;cursor:grabbing}.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-image-layer,.leaflet-pane>svg path,.leaflet-tile-container{pointer-events:none}.leaflet-marker-icon.leaflet-interactive,.leaflet-image-layer.leaflet-interactive,.leaflet-pane>svg path.leaflet-interactive,svg.leaflet-image-layer.leaflet-interactive path{pointer-events:visiblePainted;pointer-events:auto}.leaflet-container{background:#ddd;outline-offset:1px}.leaflet-container a{color:#0078a8}.leaflet-zoom-box{border:2px dotted #38f;background:#ffffff80}.leaflet-container{font-family:Helvetica Neue,Arial,Helvetica,sans-serif;font-size:12px;font-size:.75rem;line-height:1.5}.leaflet-bar{box-shadow:0 1px 5px #000000a6;border-radius:4px}.leaflet-bar a{background-color:#fff;border-bottom:1px solid #ccc;width:26px;height:26px;line-height:26px;display:block;text-align:center;text-decoration:none;color:#000}.leaflet-bar a,.leaflet-control-layers-toggle{background-position:50% 50%;background-repeat:no-repeat;display:block}.leaflet-bar a:hover,.leaflet-bar a:focus{background-color:#f4f4f4}.leaflet-bar a:first-child{border-top-left-radius:4px;border-top-right-radius:4px}.leaflet-bar a:last-child{border-bottom-left-radius:4px;border-bottom-right-radius:4px;border-bottom:none}.leaflet-bar a.leaflet-disabled{cursor:default;background-color:#f4f4f4;color:#bbb}.leaflet-touch .leaflet-bar a{width:30px;height:30px;line-height:30px}.leaflet-touch .leaflet-bar a:first-child{border-top-left-radius:2px;border-top-right-radius:2px}.leaflet-touch .leaflet-bar a:last-child{border-bottom-left-radius:2px;border-bottom-right-radius:2px}.leaflet-control-zoom-in,.leaflet-control-zoom-out{font:700 18px Lucida Console,Monaco,monospace;text-indent:1px}.leaflet-touch .leaflet-control-zoom-in,.leaflet-touch .leaflet-control-zoom-out{font-size:22px}.leaflet-control-layers{box-shadow:0 1px 5px #0006;background:#fff;border-radius:5px}.leaflet-control-layers-toggle{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAaCAQAAAADQ4RFAAACf0lEQVR4AY1UM3gkARTePdvdoTxXKc+qTl3aU5U6b2Kbkz3Gtq3Zw6ziLGNPzrYx7946Tr6/ee/XeCQ4D3ykPtL5tHno4n0d/h3+xfuWHGLX81cn7r0iTNzjr7LrlxCqPtkbTQEHeqOrTy4Yyt3VCi/IOB0v7rVC7q45Q3Gr5K6jt+3Gl5nCoDD4MtO+j96Wu8atmhGqcNGHObuf8OM/x3AMx38+4Z2sPqzCxRFK2aF2e5Jol56XTLyggAMTL56XOMoS1W4pOyjUcGGQdZxU6qRh7B9Zp+PfpOFlqt0zyDZckPi1ttmIp03jX8gyJ8a/PG2yutpS/Vol7peZIbZcKBAEEheEIAgFbDkz5H6Zrkm2hVWGiXKiF4Ycw0RWKdtC16Q7qe3X4iOMxruonzegJzWaXFrU9utOSsLUmrc0YjeWYjCW4PDMADElpJSSQ0vQvA1Tm6/JlKnqFs1EGyZiFCqnRZTEJJJiKRYzVYzJck2Rm6P4iH+cmSY0YzimYa8l0EtTODFWhcMIMVqdsI2uiTvKmTisIDHJ3od5GILVhBCarCfVRmo4uTjkhrhzkiBV7SsaqS+TzrzM1qpGGUFt28pIySQHR6h7F6KSwGWm97ay+Z+ZqMcEjEWebE7wxCSQwpkhJqoZA5ivCdZDjJepuJ9IQjGGUmuXJdBFUygxVqVsxFsLMbDe8ZbDYVCGKxs+W080max1hFCarCfV+C1KATwcnvE9gRRuMP2prdbWGowm1KB1y+zwMMENkM755cJ2yPDtqhTI6ED1M/82yIDtC/4j4BijjeObflpO9I9MwXTCsSX8jWAFeHr05WoLTJ5G8IQVS/7vwR6ohirYM7f6HzYpogfS3R2OAAAAAElFTkSuQmCC);width:36px;height:36px}.leaflet-retina .leaflet-control-layers-toggle{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAA0CAQAAABvcdNgAAAEsklEQVR4AWL4TydIhpZK1kpWOlg0w3ZXP6D2soBtG42jeI6ZmQTHzAxiTbSJsYLjO9HhP+WOmcuhciVnmHVQcJnp7DFvScowZorad/+V/fVzMdMT2g9Cv9guXGv/7pYOrXh2U+RRR3dSd9JRx6bIFc/ekqHI29JC6pJ5ZEh1yWkhkbcFeSjxgx3L2m1cb1C7bceyxA+CNjT/Ifff+/kDk2u/w/33/IeCMOSaWZ4glosqT3DNnNZQ7Cs58/3Ce5HL78iZH/vKVIaYlqzfdLu8Vi7dnvUbEza5Idt36tquZFldl6N5Z/POLof0XLK61mZCmJSWjVF9tEjUluu74IUXvgttuVIHE7YxSkaYhJZam7yiM9Pv82JYfl9nptxZaxMJE4YSPty+vF0+Y2up9d3wwijfjZbabqm/3bZ9ecKHsiGmRflnn1MW4pjHf9oLufyn2z3y1D6n8g8TZhxyzipLNPnAUpsOiuWimg52psrTZYnOWYNDTMuWBWa0tJb4rgq1UvmutpaYEbZlwU3CLJm/ayYjHW5/h7xWLn9Hh1vepDkyf7dE7MtT5LR4e7yYpHrkhOUpEfssBLq2pPhAqoSWKUkk7EDqkmK6RrCEzqDjhNDWNE+XSMvkJRDWlZTmCW0l0PHQGRZY5t1L83kT0Y3l2SItk5JAWHl2dCOBm+fPu3fo5/3v61RMCO9Jx2EEYYhb0rmNQMX/vm7gqOEJLcXTGw3CAuRNeyaPWwjR8PRqKQ1PDA/dpv+on9Shox52WFnx0KY8onHayrJzm87i5h9xGw/tfkev0jGsQizqezUKjk12hBMKJ4kbCqGPVNXudyyrShovGw5CgxsRICxF6aRmSjlBnHRzg7Gx8fKqEubI2rahQYdR1YgDIRQO7JvQyD52hoIQx0mxa0ODtW2Iozn1le2iIRdzwWewedyZzewidueOGqlsn1MvcnQpuVwLGG3/IR1hIKxCjelIDZ8ldqWz25jWAsnldEnK0Zxro19TGVb2ffIZEsIO89EIEDvKMPrzmBOQcKQ+rroye6NgRRxqR4U8EAkz0CL6uSGOm6KQCdWjvjRiSP1BPalCRS5iQYiEIvxuBMJEWgzSoHADcVMuN7IuqqTeyUPq22qFimFtxDyBBJEwNyt6TM88blFHao/6tWWhuuOM4SAK4EI4QmFHA+SEyWlp4EQoJ13cYGzMu7yszEIBOm2rVmHUNqwAIQabISNMRstmdhNWcFLsSm+0tjJH1MdRxO5Nx0WDMhCtgD6OKgZeljJqJKc9po8juskR9XN0Y1lZ3mWjLR9JCO1jRDMd0fpYC2VnvjBSEFg7wBENc0R9HFlb0xvF1+TBEpF68d+DHR6IOWVv2BECtxo46hOFUBd/APU57WIoEwJhIi2CdpyZX0m93BZicktMj1AS9dClteUFAUNUIEygRZCtik5zSxI9MubTBH1GOiHsiLJ3OCoSZkILa9PxiN0EbvhsAo8tdAf9Seepd36lGWHmtNANTv5Jd0z4QYyeo/UEJqxKRpg5LZx6btLPsOaEmdMyxYdlc8LMaJnikDlhclqmPiQnTEpLUIZEwkRagjYkEibQErwhkTAKCLQEbUgkzJQWc/0PstHHcfEdQ+UAAAAASUVORK5CYII=);background-size:26px 26px}.leaflet-touch .leaflet-control-layers-toggle{width:44px;height:44px}.leaflet-control-layers .leaflet-control-layers-list,.leaflet-control-layers-expanded .leaflet-control-layers-toggle{display:none}.leaflet-control-layers-expanded .leaflet-control-layers-list{display:block;position:relative}.leaflet-control-layers-expanded{padding:6px 10px 6px 6px;color:#333;background:#fff}.leaflet-control-layers-scrollbar{overflow-y:scroll;overflow-x:hidden;padding-right:5px}.leaflet-control-layers-selector{margin-top:2px;position:relative;top:1px}.leaflet-control-layers label{display:block;font-size:13px;font-size:1.08333em}.leaflet-control-layers-separator{height:0;border-top:1px solid #ddd;margin:5px -10px 5px -6px}.leaflet-default-icon-path{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAApCAYAAADAk4LOAAAFgUlEQVR4Aa1XA5BjWRTN2oW17d3YaZtr2962HUzbDNpjszW24mRt28p47v7zq/bXZtrp/lWnXr337j3nPCe85NcypgSFdugCpW5YoDAMRaIMqRi6aKq5E3YqDQO3qAwjVWrD8Ncq/RBpykd8oZUb/kaJutow8r1aP9II0WmLKLIsJyv1w/kqw9Ch2MYdB++12Onxee/QMwvf4/Dk/Lfp/i4nxTXtOoQ4pW5Aj7wpici1A9erdAN2OH64x8OSP9j3Ft3b7aWkTg/Fm91siTra0f9on5sQr9INejH6CUUUpavjFNq1B+Oadhxmnfa8RfEmN8VNAsQhPqF55xHkMzz3jSmChWU6f7/XZKNH+9+hBLOHYozuKQPxyMPUKkrX/K0uWnfFaJGS1QPRtZsOPtr3NsW0uyh6NNCOkU3Yz+bXbT3I8G3xE5EXLXtCXbbqwCO9zPQYPRTZ5vIDXD7U+w7rFDEoUUf7ibHIR4y6bLVPXrz8JVZEql13trxwue/uDivd3fkWRbS6/IA2bID4uk0UpF1N8qLlbBlXs4Ee7HLTfV1j54APvODnSfOWBqtKVvjgLKzF5YdEk5ewRkGlK0i33Eofffc7HT56jD7/6U+qH3Cx7SBLNntH5YIPvODnyfIXZYRVDPqgHtLs5ABHD3YzLuespb7t79FY34DjMwrVrcTuwlT55YMPvOBnRrJ4VXTdNnYug5ucHLBjEpt30701A3Ts+HEa73u6dT3FNWwflY86eMHPk+Yu+i6pzUpRrW7SNDg5JHR4KapmM5Wv2E8Tfcb1HoqqHMHU+uWDD7zg54mz5/2BSnizi9T1Dg4QQXLToGNCkb6tb1NU+QAlGr1++eADrzhn/u8Q2YZhQVlZ5+CAOtqfbhmaUCS1ezNFVm2imDbPmPng5wmz+gwh+oHDce0eUtQ6OGDIyR0uUhUsoO3vfDmmgOezH0mZN59x7MBi++WDL1g/eEiU3avlidO671bkLfwbw5XV2P8Pzo0ydy4t2/0eu33xYSOMOD8hTf4CrBtGMSoXfPLchX+J0ruSePw3LZeK0juPJbYzrhkH0io7B3k164hiGvawhOKMLkrQLyVpZg8rHFW7E2uHOL888IBPlNZ1FPzstSJM694fWr6RwpvcJK60+0HCILTBzZLFNdtAzJaohze60T8qBzyh5ZuOg5e7uwQppofEmf2++DYvmySqGBuKaicF1blQjhuHdvCIMvp8whTTfZzI7RldpwtSzL+F1+wkdZ2TBOW2gIF88PBTzD/gpeREAMEbxnJcaJHNHrpzji0gQCS6hdkEeYt9DF/2qPcEC8RM28Hwmr3sdNyht00byAut2k3gufWNtgtOEOFGUwcXWNDbdNbpgBGxEvKkOQsxivJx33iow0Vw5S6SVTrpVq11ysA2Rp7gTfPfktc6zhtXBBC+adRLshf6sG2RfHPZ5EAc4sVZ83yCN00Fk/4kggu40ZTvIEm5g24qtU4KjBrx/BTTH8ifVASAG7gKrnWxJDcU7x8X6Ecczhm3o6YicvsLXWfh3Ch1W0k8x0nXF+0fFxgt4phz8QvypiwCCFKMqXCnqXExjq10beH+UUA7+nG6mdG/Pu0f3LgFcGrl2s0kNNjpmoJ9o4B29CMO8dMT4Q5ox8uitF6fqsrJOr8qnwNbRzv6hSnG5wP+64C7h9lp30hKNtKdWjtdkbuPA19nJ7Tz3zR/ibgARbhb4AlhavcBebmTHcFl2fvYEnW0ox9xMxKBS8btJ+KiEbq9zA4RthQXDhPa0T9TEe69gWupwc6uBUphquXgf+/FrIjweHQS4/pduMe5ERUMHUd9xv8ZR98CxkS4F2n3EUrUZ10EYNw7BWm9x1GiPssi3GgiGRDKWRYZfXlON+dfNbM+GgIwYdwAAAAASUVORK5CYII=)}.leaflet-container .leaflet-control-attribution{background:#fff;background:#fffc;margin:0}.leaflet-control-attribution,.leaflet-control-scale-line{padding:0 5px;color:#333;line-height:1.4}.leaflet-control-attribution a{text-decoration:none}.leaflet-control-attribution a:hover,.leaflet-control-attribution a:focus{text-decoration:underline}.leaflet-attribution-flag{display:inline!important;vertical-align:baseline!important;width:1em;height:.6669em}.leaflet-left .leaflet-control-scale{margin-left:5px}.leaflet-bottom .leaflet-control-scale{margin-bottom:5px}.leaflet-control-scale-line{border:2px solid #777;border-top:none;line-height:1.1;padding:2px 5px 1px;white-space:nowrap;-moz-box-sizing:border-box;box-sizing:border-box;background:#fffc;text-shadow:1px 1px #fff}.leaflet-control-scale-line:not(:first-child){border-top:2px solid #777;border-bottom:none;margin-top:-2px}.leaflet-control-scale-line:not(:first-child):not(:last-child){border-bottom:2px solid #777}.leaflet-touch .leaflet-control-attribution,.leaflet-touch .leaflet-control-layers,.leaflet-touch .leaflet-bar{box-shadow:none}.leaflet-touch .leaflet-control-layers,.leaflet-touch .leaflet-bar{border:2px solid rgba(0,0,0,.2);background-clip:padding-box}.leaflet-popup{position:absolute;text-align:center;margin-bottom:20px}.leaflet-popup-content-wrapper{padding:1px;text-align:left;border-radius:12px}.leaflet-popup-content{margin:13px 24px 13px 20px;line-height:1.3;font-size:13px;font-size:1.08333em;min-height:1px}.leaflet-popup-content p{margin:1.3em 0}.leaflet-popup-tip-container{width:40px;height:20px;position:absolute;left:50%;margin-top:-1px;margin-left:-20px;overflow:hidden;pointer-events:none}.leaflet-popup-tip{width:17px;height:17px;padding:1px;margin:-10px auto 0;pointer-events:auto;-webkit-transform:rotate(45deg);-moz-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg)}.leaflet-popup-content-wrapper,.leaflet-popup-tip{background:#fff;color:#333;box-shadow:0 3px 14px #0006}.leaflet-container a.leaflet-popup-close-button{position:absolute;top:0;right:0;border:none;text-align:center;width:24px;height:24px;font:16px/24px Tahoma,Verdana,sans-serif;color:#757575;text-decoration:none;background:transparent}.leaflet-container a.leaflet-popup-close-button:hover,.leaflet-container a.leaflet-popup-close-button:focus{color:#585858}.leaflet-popup-scrolled{overflow:auto}.leaflet-oldie .leaflet-popup-content-wrapper{-ms-zoom:1}.leaflet-oldie .leaflet-popup-tip{width:24px;margin:0 auto;-ms-filter:"progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678)";filter:progid:DXImageTransform.Microsoft.Matrix(M11=.70710678,M12=.70710678,M21=-.70710678,M22=.70710678)}.leaflet-oldie .leaflet-control-zoom,.leaflet-oldie .leaflet-control-layers,.leaflet-oldie .leaflet-popup-content-wrapper,.leaflet-oldie .leaflet-popup-tip{border:1px solid #999}.leaflet-div-icon{background:#fff;border:1px solid #666}.leaflet-tooltip{position:absolute;padding:6px;background-color:#fff;border:1px solid #fff;border-radius:3px;color:#222;white-space:nowrap;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;pointer-events:none;box-shadow:0 1px 3px #0006}.leaflet-tooltip.leaflet-interactive{cursor:pointer;pointer-events:auto}.leaflet-tooltip-top:before,.leaflet-tooltip-bottom:before,.leaflet-tooltip-left:before,.leaflet-tooltip-right:before{position:absolute;pointer-events:none;border:6px solid transparent;background:transparent;content:""}.leaflet-tooltip-bottom{margin-top:6px}.leaflet-tooltip-top{margin-top:-6px}.leaflet-tooltip-bottom:before,.leaflet-tooltip-top:before{left:50%;margin-left:-6px}.leaflet-tooltip-top:before{bottom:0;margin-bottom:-12px;border-top-color:#fff}.leaflet-tooltip-bottom:before{top:0;margin-top:-12px;margin-left:-6px;border-bottom-color:#fff}.leaflet-tooltip-left{margin-left:-6px}.leaflet-tooltip-right{margin-left:6px}.leaflet-tooltip-left:before,.leaflet-tooltip-right:before{top:50%;margin-top:-6px}.leaflet-tooltip-left:before{right:0;margin-right:-12px;border-left-color:#fff}.leaflet-tooltip-right:before{left:0;margin-left:-12px;border-right-color:#fff}@media print{.leaflet-control{-webkit-print-color-adjust:exact;print-color-adjust:exact}}.leaflet-control-zoom{border:0!important}.leaflet-control-zoom-in,.leaflet-control-zoom-out{background:#fffc!important}
/*$vite$:1*/`,document.head.appendChild(Jn);function Fo(i,s){for(var r=0;r<s.length;r++){const l=s[r];if(typeof l!="string"&&!Array.isArray(l)){for(const u in l)if(u!=="default"&&!(u in i)){const c=Object.getOwnPropertyDescriptor(l,u);c&&Object.defineProperty(i,u,c.get?c:{enumerable:!0,get:()=>l[u]})}}}return Object.freeze(Object.defineProperty(i,Symbol.toStringTag,{value:"Module"}))}const Wo={bg:{},af:{},ar:{},bs:{},cs:{},de:{Distance:"Entfernung","Elevation Gain":"Anstieg","Elevation Loss":"Abstieg",Location:"Position",Maps:"Karten",Name:"Name","No files with location data":"Keine Dateien mit Positions-Daten vorhanden","Switch to map view":"Zur Kartenansicht wechseln"},el:{},et:{},es:{},gl:{},fr:{Distance:"Distance","Elevation Gain":"Dénivelé positif","Elevation Loss":"Dénivelé négatif",Location:"Localisation",Maps:"Cartes",Name:"Nom","No files with location data":" Aucun fichier ne contient de données de localisation","Switch to map view":" Passer à l'affichage de la carte"},he:{},hr:{},id:{},ja:{},nl:{Distance:"Afstand","Elevation Gain":"Hoogtetoename","Elevation Loss":"Hoogteafname",Location:"Locatie",Maps:"Kaarten",Name:"Naam","No files with location data":"Geen bestanden met locatiegegevens","Switch to map view":"Schakelen naar kaartweergave"},pl:{},it:{},ka:{},pt:{},ko:{},ro:{},si:{},sk:{},ru:{Distance:"Расстояние","Elevation Gain":"Увеличение высоты","Elevation Loss":"Уменьшение высоты",Location:"Локация",Maps:"Карты",Name:"Имя","No files with location data":"Нет файлов с информацией о локации","Switch to map view":"Переключиться в режим карты"},sq:{},sv:{},sr:{},ta:{},tr:{},ug:{},uk:{},zh:{}};function jo(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}var se={exports:{}};/* @preserve
* Leaflet 1.9.4, a JS library for interactive maps. https://leafletjs.com
* (c) 2010-2023 Vladimir Agafonkin, (c) 2010-2011 CloudMade
*/var Go=se.exports,Xn;function Uo(){return Xn||(Xn=1,function(i,s){(function(r,l){l(s)})(Go,function(r){var l="1.9.4";function u(t){var e,n,o,a;for(n=1,o=arguments.length;n<o;n++){a=arguments[n];for(e in a)t[e]=a[e]}return t}var c=Object.create||function(){function t(){}return function(e){return t.prototype=e,new t}}();function d(t,e){var n=Array.prototype.slice;if(t.bind)return t.bind.apply(t,n.call(arguments,1));var o=n.call(arguments,2);return function(){return t.apply(e,o.length?o.concat(n.call(arguments)):arguments)}}var v=0;function m(t){return"_leaflet_id"in t||(t._leaflet_id=++v),t._leaflet_id}function b(t,e,n){var o,a,h,f;return f=function(){o=!1,a&&(h.apply(n,a),a=!1)},h=function(){o?a=arguments:(t.apply(n,arguments),setTimeout(f,e),o=!0)},h}function P(t,e,n){var o=e[1],a=e[0],h=o-a;return t===o&&n?t:((t-a)%h+h)%h+a}function w(){return!1}function y(t,e){if(e===!1)return t;var n=Math.pow(10,e===void 0?6:e);return Math.round(t*n)/n}function Z(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function k(t){return Z(t).split(/\s+/)}function O(t,e){Object.prototype.hasOwnProperty.call(t,"options")||(t.options=t.options?c(t.options):{});for(var n in e)t.options[n]=e[n];return t.options}function pt(t,e,n){var o=[];for(var a in t)o.push(encodeURIComponent(n?a.toUpperCase():a)+"="+encodeURIComponent(t[a]));return(!e||e.indexOf("?")===-1?"?":"&")+o.join("&")}var bt=/\{ *([\w_ -]+) *\}/g;function ct(t,e){return t.replace(bt,function(n,o){var a=e[o];if(a===void 0)throw new Error("No value provided for variable "+n);return typeof a=="function"&&(a=a(e)),a})}var W=Array.isArray||function(t){return Object.prototype.toString.call(t)==="[object Array]"};function G(t,e){for(var n=0;n<t.length;n++)if(t[n]===e)return n;return-1}var it="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=";function Yt(t){return window["webkit"+t]||window["moz"+t]||window["ms"+t]}var Rt=0;function At(t){var e=+new Date,n=Math.max(0,16-(e-Rt));return Rt=e+n,window.setTimeout(t,n)}var Dt=window.requestAnimationFrame||Yt("RequestAnimationFrame")||At,Ft=window.cancelAnimationFrame||Yt("CancelAnimationFrame")||Yt("CancelRequestAnimationFrame")||function(t){window.clearTimeout(t)};function Q(t,e,n){if(n&&Dt===At)t.call(e);else return Dt.call(window,d(t,e))}function q(t){t&&Ft.call(window,t)}var he={__proto__:null,extend:u,create:c,bind:d,get lastId(){return v},stamp:m,throttle:b,wrapNum:P,falseFn:w,formatNum:y,trim:Z,splitWords:k,setOptions:O,getParamString:pt,template:ct,isArray:W,indexOf:G,emptyImageUrl:it,requestFn:Dt,cancelFn:Ft,requestAnimFrame:Q,cancelAnimFrame:q};function Lt(){}Lt.extend=function(t){var e=function(){O(this),this.initialize&&this.initialize.apply(this,arguments),this.callInitHooks()},n=e.__super__=this.prototype,o=c(n);o.constructor=e,e.prototype=o;for(var a in this)Object.prototype.hasOwnProperty.call(this,a)&&a!=="prototype"&&a!=="__super__"&&(e[a]=this[a]);return t.statics&&u(e,t.statics),t.includes&&(aa(t.includes),u.apply(null,[o].concat(t.includes))),u(o,t),delete o.statics,delete o.includes,o.options&&(o.options=n.options?c(n.options):{},u(o.options,t.options)),o._initHooks=[],o.callInitHooks=function(){if(!this._initHooksCalled){n.callInitHooks&&n.callInitHooks.call(this),this._initHooksCalled=!0;for(var h=0,f=o._initHooks.length;h<f;h++)o._initHooks[h].call(this)}},e},Lt.include=function(t){var e=this.prototype.options;return u(this.prototype,t),t.options&&(this.prototype.options=e,this.mergeOptions(t.options)),this},Lt.mergeOptions=function(t){return u(this.prototype.options,t),this},Lt.addInitHook=function(t){var e=Array.prototype.slice.call(arguments,1),n=typeof t=="function"?t:function(){this[t].apply(this,e)};return this.prototype._initHooks=this.prototype._initHooks||[],this.prototype._initHooks.push(n),this};function aa(t){if(!(typeof L>"u"||!L||!L.Mixin)){t=W(t)?t:[t];for(var e=0;e<t.length;e++)t[e]===L.Mixin.Events&&console.warn("Deprecated include of L.Mixin.Events: this property will be removed in future releases, please inherit from L.Evented instead.",new Error().stack)}}var ht={on:function(t,e,n){if(typeof t=="object")for(var o in t)this._on(o,t[o],e);else{t=k(t);for(var a=0,h=t.length;a<h;a++)this._on(t[a],e,n)}return this},off:function(t,e,n){if(!arguments.length)delete this._events;else if(typeof t=="object")for(var o in t)this._off(o,t[o],e);else{t=k(t);for(var a=arguments.length===1,h=0,f=t.length;h<f;h++)a?this._off(t[h]):this._off(t[h],e,n)}return this},_on:function(t,e,n,o){if(typeof e!="function"){console.warn("wrong listener type: "+typeof e);return}if(this._listens(t,e,n)===!1){n===this&&(n=void 0);var a={fn:e,ctx:n};o&&(a.once=!0),this._events=this._events||{},this._events[t]=this._events[t]||[],this._events[t].push(a)}},_off:function(t,e,n){var o,a,h;if(this._events&&(o=this._events[t],!!o)){if(arguments.length===1){if(this._firingCount)for(a=0,h=o.length;a<h;a++)o[a].fn=w;delete this._events[t];return}if(typeof e!="function"){console.warn("wrong listener type: "+typeof e);return}var f=this._listens(t,e,n);if(f!==!1){var _=o[f];this._firingCount&&(_.fn=w,this._events[t]=o=o.slice()),o.splice(f,1)}}},fire:function(t,e,n){if(!this.listens(t,n))return this;var o=u({},e,{type:t,target:this,sourceTarget:e&&e.sourceTarget||this});if(this._events){var a=this._events[t];if(a){this._firingCount=this._firingCount+1||1;for(var h=0,f=a.length;h<f;h++){var _=a[h],p=_.fn;_.once&&this.off(t,p,_.ctx),p.call(_.ctx||this,o)}this._firingCount--}}return n&&this._propagateEvent(o),this},listens:function(t,e,n,o){typeof t!="string"&&console.warn('"string" type argument expected');var a=e;typeof e!="function"&&(o=!!e,a=void 0,n=void 0);var h=this._events&&this._events[t];if(h&&h.length&&this._listens(t,a,n)!==!1)return!0;if(o){for(var f in this._eventParents)if(this._eventParents[f].listens(t,e,n,o))return!0}return!1},_listens:function(t,e,n){if(!this._events)return!1;var o=this._events[t]||[];if(!e)return!!o.length;n===this&&(n=void 0);for(var a=0,h=o.length;a<h;a++)if(o[a].fn===e&&o[a].ctx===n)return a;return!1},once:function(t,e,n){if(typeof t=="object")for(var o in t)this._on(o,t[o],e,!0);else{t=k(t);for(var a=0,h=t.length;a<h;a++)this._on(t[a],e,n,!0)}return this},addEventParent:function(t){return this._eventParents=this._eventParents||{},this._eventParents[m(t)]=t,this},removeEventParent:function(t){return this._eventParents&&delete this._eventParents[m(t)],this},_propagateEvent:function(t){for(var e in this._eventParents)this._eventParents[e].fire(t.type,u({layer:t.target,propagatedFrom:t.target},t),!0)}};ht.addEventListener=ht.on,ht.removeEventListener=ht.clearAllEventListeners=ht.off,ht.addOneTimeEventListener=ht.once,ht.fireEvent=ht.fire,ht.hasEventListeners=ht.listens;var ue=Lt.extend(ht);function C(t,e,n){this.x=n?Math.round(t):t,this.y=n?Math.round(e):e}var Ti=Math.trunc||function(t){return t>0?Math.floor(t):Math.ceil(t)};C.prototype={clone:function(){return new C(this.x,this.y)},add:function(t){return this.clone()._add(M(t))},_add:function(t){return this.x+=t.x,this.y+=t.y,this},subtract:function(t){return this.clone()._subtract(M(t))},_subtract:function(t){return this.x-=t.x,this.y-=t.y,this},divideBy:function(t){return this.clone()._divideBy(t)},_divideBy:function(t){return this.x/=t,this.y/=t,this},multiplyBy:function(t){return this.clone()._multiplyBy(t)},_multiplyBy:function(t){return this.x*=t,this.y*=t,this},scaleBy:function(t){return new C(this.x*t.x,this.y*t.y)},unscaleBy:function(t){return new C(this.x/t.x,this.y/t.y)},round:function(){return this.clone()._round()},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},floor:function(){return this.clone()._floor()},_floor:function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this},ceil:function(){return this.clone()._ceil()},_ceil:function(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this},trunc:function(){return this.clone()._trunc()},_trunc:function(){return this.x=Ti(this.x),this.y=Ti(this.y),this},distanceTo:function(t){t=M(t);var e=t.x-this.x,n=t.y-this.y;return Math.sqrt(e*e+n*n)},equals:function(t){return t=M(t),t.x===this.x&&t.y===this.y},contains:function(t){return t=M(t),Math.abs(t.x)<=Math.abs(this.x)&&Math.abs(t.y)<=Math.abs(this.y)},toString:function(){return"Point("+y(this.x)+", "+y(this.y)+")"}};function M(t,e,n){return t instanceof C?t:W(t)?new C(t[0],t[1]):t==null?t:typeof t=="object"&&"x"in t&&"y"in t?new C(t.x,t.y):new C(t,e,n)}function H(t,e){if(t)for(var n=e?[t,e]:t,o=0,a=n.length;o<a;o++)this.extend(n[o])}H.prototype={extend:function(t){var e,n;if(!t)return this;if(t instanceof C||typeof t[0]=="number"||"x"in t)e=n=M(t);else if(t=st(t),e=t.min,n=t.max,!e||!n)return this;return!this.min&&!this.max?(this.min=e.clone(),this.max=n.clone()):(this.min.x=Math.min(e.x,this.min.x),this.max.x=Math.max(n.x,this.max.x),this.min.y=Math.min(e.y,this.min.y),this.max.y=Math.max(n.y,this.max.y)),this},getCenter:function(t){return M((this.min.x+this.max.x)/2,(this.min.y+this.max.y)/2,t)},getBottomLeft:function(){return M(this.min.x,this.max.y)},getTopRight:function(){return M(this.max.x,this.min.y)},getTopLeft:function(){return this.min},getBottomRight:function(){return this.max},getSize:function(){return this.max.subtract(this.min)},contains:function(t){var e,n;return typeof t[0]=="number"||t instanceof C?t=M(t):t=st(t),t instanceof H?(e=t.min,n=t.max):e=n=t,e.x>=this.min.x&&n.x<=this.max.x&&e.y>=this.min.y&&n.y<=this.max.y},intersects:function(t){t=st(t);var e=this.min,n=this.max,o=t.min,a=t.max,h=a.x>=e.x&&o.x<=n.x,f=a.y>=e.y&&o.y<=n.y;return h&&f},overlaps:function(t){t=st(t);var e=this.min,n=this.max,o=t.min,a=t.max,h=a.x>e.x&&o.x<n.x,f=a.y>e.y&&o.y<n.y;return h&&f},isValid:function(){return!!(this.min&&this.max)},pad:function(t){var e=this.min,n=this.max,o=Math.abs(e.x-n.x)*t,a=Math.abs(e.y-n.y)*t;return st(M(e.x-o,e.y-a),M(n.x+o,n.y+a))},equals:function(t){return t?(t=st(t),this.min.equals(t.getTopLeft())&&this.max.equals(t.getBottomRight())):!1}};function st(t,e){return!t||t instanceof H?t:new H(t,e)}function at(t,e){if(t)for(var n=e?[t,e]:t,o=0,a=n.length;o<a;o++)this.extend(n[o])}at.prototype={extend:function(t){var e=this._southWest,n=this._northEast,o,a;if(t instanceof F)o=t,a=t;else if(t instanceof at){if(o=t._southWest,a=t._northEast,!o||!a)return this}else return t?this.extend(N(t)||Y(t)):this;return!e&&!n?(this._southWest=new F(o.lat,o.lng),this._northEast=new F(a.lat,a.lng)):(e.lat=Math.min(o.lat,e.lat),e.lng=Math.min(o.lng,e.lng),n.lat=Math.max(a.lat,n.lat),n.lng=Math.max(a.lng,n.lng)),this},pad:function(t){var e=this._southWest,n=this._northEast,o=Math.abs(e.lat-n.lat)*t,a=Math.abs(e.lng-n.lng)*t;return new at(new F(e.lat-o,e.lng-a),new F(n.lat+o,n.lng+a))},getCenter:function(){return new F((this._southWest.lat+this._northEast.lat)/2,(this._southWest.lng+this._northEast.lng)/2)},getSouthWest:function(){return this._southWest},getNorthEast:function(){return this._northEast},getNorthWest:function(){return new F(this.getNorth(),this.getWest())},getSouthEast:function(){return new F(this.getSouth(),this.getEast())},getWest:function(){return this._southWest.lng},getSouth:function(){return this._southWest.lat},getEast:function(){return this._northEast.lng},getNorth:function(){return this._northEast.lat},contains:function(t){typeof t[0]=="number"||t instanceof F||"lat"in t?t=N(t):t=Y(t);var e=this._southWest,n=this._northEast,o,a;return t instanceof at?(o=t.getSouthWest(),a=t.getNorthEast()):o=a=t,o.lat>=e.lat&&a.lat<=n.lat&&o.lng>=e.lng&&a.lng<=n.lng},intersects:function(t){t=Y(t);var e=this._southWest,n=this._northEast,o=t.getSouthWest(),a=t.getNorthEast(),h=a.lat>=e.lat&&o.lat<=n.lat,f=a.lng>=e.lng&&o.lng<=n.lng;return h&&f},overlaps:function(t){t=Y(t);var e=this._southWest,n=this._northEast,o=t.getSouthWest(),a=t.getNorthEast(),h=a.lat>e.lat&&o.lat<n.lat,f=a.lng>e.lng&&o.lng<n.lng;return h&&f},toBBoxString:function(){return[this.getWest(),this.getSouth(),this.getEast(),this.getNorth()].join(",")},equals:function(t,e){return t?(t=Y(t),this._southWest.equals(t.getSouthWest(),e)&&this._northEast.equals(t.getNorthEast(),e)):!1},isValid:function(){return!!(this._southWest&&this._northEast)}};function Y(t,e){return t instanceof at?t:new at(t,e)}function F(t,e,n){if(isNaN(t)||isNaN(e))throw new Error("Invalid LatLng object: ("+t+", "+e+")");this.lat=+t,this.lng=+e,n!==void 0&&(this.alt=+n)}F.prototype={equals:function(t,e){if(!t)return!1;t=N(t);var n=Math.max(Math.abs(this.lat-t.lat),Math.abs(this.lng-t.lng));return n<=(e===void 0?1e-9:e)},toString:function(t){return"LatLng("+y(this.lat,t)+", "+y(this.lng,t)+")"},distanceTo:function(t){return Ct.distance(this,N(t))},wrap:function(){return Ct.wrapLatLng(this)},toBounds:function(t){var e=180*t/40075017,n=e/Math.cos(Math.PI/180*this.lat);return Y([this.lat-e,this.lng-n],[this.lat+e,this.lng+n])},clone:function(){return new F(this.lat,this.lng,this.alt)}};function N(t,e,n){return t instanceof F?t:W(t)&&typeof t[0]!="object"?t.length===3?new F(t[0],t[1],t[2]):t.length===2?new F(t[0],t[1]):null:t==null?t:typeof t=="object"&&"lat"in t?new F(t.lat,"lng"in t?t.lng:t.lon,t.alt):e===void 0?null:new F(t,e,n)}var Pt={latLngToPoint:function(t,e){var n=this.projection.project(t),o=this.scale(e);return this.transformation._transform(n,o)},pointToLatLng:function(t,e){var n=this.scale(e),o=this.transformation.untransform(t,n);return this.projection.unproject(o)},project:function(t){return this.projection.project(t)},unproject:function(t){return this.projection.unproject(t)},scale:function(t){return 256*Math.pow(2,t)},zoom:function(t){return Math.log(t/256)/Math.LN2},getProjectedBounds:function(t){if(this.infinite)return null;var e=this.projection.bounds,n=this.scale(t),o=this.transformation.transform(e.min,n),a=this.transformation.transform(e.max,n);return new H(o,a)},infinite:!1,wrapLatLng:function(t){var e=this.wrapLng?P(t.lng,this.wrapLng,!0):t.lng,n=this.wrapLat?P(t.lat,this.wrapLat,!0):t.lat,o=t.alt;return new F(n,e,o)},wrapLatLngBounds:function(t){var e=t.getCenter(),n=this.wrapLatLng(e),o=e.lat-n.lat,a=e.lng-n.lng;if(o===0&&a===0)return t;var h=t.getSouthWest(),f=t.getNorthEast(),_=new F(h.lat-o,h.lng-a),p=new F(f.lat-o,f.lng-a);return new at(_,p)}},Ct=u({},Pt,{wrapLng:[-180,180],R:6371e3,distance:function(t,e){var n=Math.PI/180,o=t.lat*n,a=e.lat*n,h=Math.sin((e.lat-t.lat)*n/2),f=Math.sin((e.lng-t.lng)*n/2),_=h*h+Math.cos(o)*Math.cos(a)*f*f,p=2*Math.atan2(Math.sqrt(_),Math.sqrt(1-_));return this.R*p}}),Ei=6378137,gn={R:Ei,MAX_LATITUDE:85.0511287798,project:function(t){var e=Math.PI/180,n=this.MAX_LATITUDE,o=Math.max(Math.min(n,t.lat),-n),a=Math.sin(o*e);return new C(this.R*t.lng*e,this.R*Math.log((1+a)/(1-a))/2)},unproject:function(t){var e=180/Math.PI;return new F((2*Math.atan(Math.exp(t.y/this.R))-Math.PI/2)*e,t.x*e/this.R)},bounds:function(){var t=Ei*Math.PI;return new H([-t,-t],[t,t])}()};function vn(t,e,n,o){if(W(t)){this._a=t[0],this._b=t[1],this._c=t[2],this._d=t[3];return}this._a=t,this._b=e,this._c=n,this._d=o}vn.prototype={transform:function(t,e){return this._transform(t.clone(),e)},_transform:function(t,e){return e=e||1,t.x=e*(this._a*t.x+this._b),t.y=e*(this._c*t.y+this._d),t},untransform:function(t,e){return e=e||1,new C((t.x/e-this._b)/this._a,(t.y/e-this._d)/this._c)}};function ce(t,e,n,o){return new vn(t,e,n,o)}var yn=u({},Ct,{code:"EPSG:3857",projection:gn,transformation:function(){var t=.5/(Math.PI*gn.R);return ce(t,.5,-t,.5)}()}),la=u({},yn,{code:"EPSG:900913"});function Mi(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function Ci(t,e){var n="",o,a,h,f,_,p;for(o=0,h=t.length;o<h;o++){for(_=t[o],a=0,f=_.length;a<f;a++)p=_[a],n+=(a?"L":"M")+p.x+" "+p.y;n+=e?z.svg?"z":"x":""}return n||"M0 0"}var xn=document.documentElement.style,Ie="ActiveXObject"in window,ha=Ie&&!document.addEventListener,Si="msLaunchUri"in navigator&&!("documentMode"in document),wn=vt("webkit"),Oi=vt("android"),Zi=vt("android 2")||vt("android 3"),ua=parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1],10),ca=Oi&&vt("Google")&&ua<537&&!("AudioNode"in window),bn=!!window.opera,Ii=!Si&&vt("chrome"),Bi=vt("gecko")&&!wn&&!bn&&!Ie,fa=!Ii&&vt("safari"),Ni=vt("phantom"),Ri="OTransition"in xn,da=navigator.platform.indexOf("Win")===0,Di=Ie&&"transition"in xn,An="WebKitCSSMatrix"in window&&"m11"in new window.WebKitCSSMatrix&&!Zi,Fi="MozPerspective"in xn,_a=!window.L_DISABLE_3D&&(Di||An||Fi)&&!Ri&&!Ni,fe=typeof orientation<"u"||vt("mobile"),pa=fe&&wn,ma=fe&&An,Wi=!window.PointerEvent&&window.MSPointerEvent,ji=!!(window.PointerEvent||Wi),Gi="ontouchstart"in window||!!window.TouchEvent,ga=!window.L_NO_TOUCH&&(Gi||ji),va=fe&&bn,ya=fe&&Bi,xa=(window.devicePixelRatio||window.screen.deviceXDPI/window.screen.logicalXDPI)>1,wa=function(){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("testPassiveEventSupport",w,e),window.removeEventListener("testPassiveEventSupport",w,e)}catch{}return t}(),ba=function(){return!!document.createElement("canvas").getContext}(),Ln=!!(document.createElementNS&&Mi("svg").createSVGRect),Aa=!!Ln&&function(){var t=document.createElement("div");return t.innerHTML="<svg/>",(t.firstChild&&t.firstChild.namespaceURI)==="http://www.w3.org/2000/svg"}(),La=!Ln&&function(){try{var t=document.createElement("div");t.innerHTML='<v:shape adj="1"/>';var e=t.firstChild;return e.style.behavior="url(#default#VML)",e&&typeof e.adj=="object"}catch{return!1}}(),Pa=navigator.platform.indexOf("Mac")===0,za=navigator.platform.indexOf("Linux")===0;function vt(t){return navigator.userAgent.toLowerCase().indexOf(t)>=0}var z={ie:Ie,ielt9:ha,edge:Si,webkit:wn,android:Oi,android23:Zi,androidStock:ca,opera:bn,chrome:Ii,gecko:Bi,safari:fa,phantom:Ni,opera12:Ri,win:da,ie3d:Di,webkit3d:An,gecko3d:Fi,any3d:_a,mobile:fe,mobileWebkit:pa,mobileWebkit3d:ma,msPointer:Wi,pointer:ji,touch:ga,touchNative:Gi,mobileOpera:va,mobileGecko:ya,retina:xa,passiveEvents:wa,canvas:ba,svg:Ln,vml:La,inlineSvg:Aa,mac:Pa,linux:za},Ui=z.msPointer?"MSPointerDown":"pointerdown",Hi=z.msPointer?"MSPointerMove":"pointermove",Vi=z.msPointer?"MSPointerUp":"pointerup",Qi=z.msPointer?"MSPointerCancel":"pointercancel",Pn={touchstart:Ui,touchmove:Hi,touchend:Vi,touchcancel:Qi},qi={touchstart:Sa,touchmove:Be,touchend:Be,touchcancel:Be},Jt={},Ki=!1;function ka(t,e,n){return e==="touchstart"&&Ca(),qi[e]?(n=qi[e].bind(this,n),t.addEventListener(Pn[e],n,!1),n):(console.warn("wrong event specified:",e),w)}function Ta(t,e,n){if(!Pn[e]){console.warn("wrong event specified:",e);return}t.removeEventListener(Pn[e],n,!1)}function Ea(t){Jt[t.pointerId]=t}function Ma(t){Jt[t.pointerId]&&(Jt[t.pointerId]=t)}function Yi(t){delete Jt[t.pointerId]}function Ca(){Ki||(document.addEventListener(Ui,Ea,!0),document.addEventListener(Hi,Ma,!0),document.addEventListener(Vi,Yi,!0),document.addEventListener(Qi,Yi,!0),Ki=!0)}function Be(t,e){if(e.pointerType!==(e.MSPOINTER_TYPE_MOUSE||"mouse")){e.touches=[];for(var n in Jt)e.touches.push(Jt[n]);e.changedTouches=[e],t(e)}}function Sa(t,e){e.MSPOINTER_TYPE_TOUCH&&e.pointerType===e.MSPOINTER_TYPE_TOUCH&&nt(e),Be(t,e)}function Oa(t){var e={},n,o;for(o in t)n=t[o],e[o]=n&&n.bind?n.bind(t):n;return t=e,e.type="dblclick",e.detail=2,e.isTrusted=!1,e._simulated=!0,e}var Za=200;function Ia(t,e){t.addEventListener("dblclick",e);var n=0,o;function a(h){if(h.detail!==1){o=h.detail;return}if(!(h.pointerType==="mouse"||h.sourceCapabilities&&!h.sourceCapabilities.firesTouchEvents)){var f=eo(h);if(!(f.some(function(p){return p instanceof HTMLLabelElement&&p.attributes.for})&&!f.some(function(p){return p instanceof HTMLInputElement||p instanceof HTMLSelectElement}))){var _=Date.now();_-n<=Za?(o++,o===2&&e(Oa(h))):o=1,n=_}}}return t.addEventListener("click",a),{dblclick:e,simDblclick:a}}function Ba(t,e){t.removeEventListener("dblclick",e.dblclick),t.removeEventListener("click",e.simDblclick)}var zn=De(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),de=De(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),Ji=de==="webkitTransition"||de==="OTransition"?de+"End":"transitionend";function Xi(t){return typeof t=="string"?document.getElementById(t):t}function _e(t,e){var n=t.style[e]||t.currentStyle&&t.currentStyle[e];if((!n||n==="auto")&&document.defaultView){var o=document.defaultView.getComputedStyle(t,null);n=o?o[e]:null}return n==="auto"?null:n}function D(t,e,n){var o=document.createElement(t);return o.className=e||"",n&&n.appendChild(o),o}function V(t){var e=t.parentNode;e&&e.removeChild(t)}function Ne(t){for(;t.firstChild;)t.removeChild(t.firstChild)}function Xt(t){var e=t.parentNode;e&&e.lastChild!==t&&e.appendChild(t)}function $t(t){var e=t.parentNode;e&&e.firstChild!==t&&e.insertBefore(t,e.firstChild)}function kn(t,e){if(t.classList!==void 0)return t.classList.contains(e);var n=Re(t);return n.length>0&&new RegExp("(^|\\s)"+e+"(\\s|$)").test(n)}function I(t,e){if(t.classList!==void 0)for(var n=k(e),o=0,a=n.length;o<a;o++)t.classList.add(n[o]);else if(!kn(t,e)){var h=Re(t);Tn(t,(h?h+" ":"")+e)}}function K(t,e){t.classList!==void 0?t.classList.remove(e):Tn(t,Z((" "+Re(t)+" ").replace(" "+e+" "," ")))}function Tn(t,e){t.className.baseVal===void 0?t.className=e:t.className.baseVal=e}function Re(t){return t.correspondingElement&&(t=t.correspondingElement),t.className.baseVal===void 0?t.className:t.className.baseVal}function ft(t,e){"opacity"in t.style?t.style.opacity=e:"filter"in t.style&&Na(t,e)}function Na(t,e){var n=!1,o="DXImageTransform.Microsoft.Alpha";try{n=t.filters.item(o)}catch{if(e===1)return}e=Math.round(e*100),n?(n.Enabled=e!==100,n.Opacity=e):t.style.filter+=" progid:"+o+"(opacity="+e+")"}function De(t){for(var e=document.documentElement.style,n=0;n<t.length;n++)if(t[n]in e)return t[n];return!1}function Wt(t,e,n){var o=e||new C(0,0);t.style[zn]=(z.ie3d?"translate("+o.x+"px,"+o.y+"px)":"translate3d("+o.x+"px,"+o.y+"px,0)")+(n?" scale("+n+")":"")}function J(t,e){t._leaflet_pos=e,z.any3d?Wt(t,e):(t.style.left=e.x+"px",t.style.top=e.y+"px")}function jt(t){return t._leaflet_pos||new C(0,0)}var pe,me,En;if("onselectstart"in document)pe=function(){S(window,"selectstart",nt)},me=function(){U(window,"selectstart",nt)};else{var ge=De(["userSelect","WebkitUserSelect","OUserSelect","MozUserSelect","msUserSelect"]);pe=function(){if(ge){var t=document.documentElement.style;En=t[ge],t[ge]="none"}},me=function(){ge&&(document.documentElement.style[ge]=En,En=void 0)}}function Mn(){S(window,"dragstart",nt)}function Cn(){U(window,"dragstart",nt)}var Fe,Sn;function On(t){for(;t.tabIndex===-1;)t=t.parentNode;t.style&&(We(),Fe=t,Sn=t.style.outlineStyle,t.style.outlineStyle="none",S(window,"keydown",We))}function We(){Fe&&(Fe.style.outlineStyle=Sn,Fe=void 0,Sn=void 0,U(window,"keydown",We))}function $i(t){do t=t.parentNode;while((!t.offsetWidth||!t.offsetHeight)&&t!==document.body);return t}function Zn(t){var e=t.getBoundingClientRect();return{x:e.width/t.offsetWidth||1,y:e.height/t.offsetHeight||1,boundingClientRect:e}}var Ra={__proto__:null,TRANSFORM:zn,TRANSITION:de,TRANSITION_END:Ji,get:Xi,getStyle:_e,create:D,remove:V,empty:Ne,toFront:Xt,toBack:$t,hasClass:kn,addClass:I,removeClass:K,setClass:Tn,getClass:Re,setOpacity:ft,testProp:De,setTransform:Wt,setPosition:J,getPosition:jt,get disableTextSelection(){return pe},get enableTextSelection(){return me},disableImageDrag:Mn,enableImageDrag:Cn,preventOutline:On,restoreOutline:We,getSizedParentNode:$i,getScale:Zn};function S(t,e,n,o){if(e&&typeof e=="object")for(var a in e)Bn(t,a,e[a],n);else{e=k(e);for(var h=0,f=e.length;h<f;h++)Bn(t,e[h],n,o)}return this}var yt="_leaflet_events";function U(t,e,n,o){if(arguments.length===1)to(t),delete t[yt];else if(e&&typeof e=="object")for(var a in e)Nn(t,a,e[a],n);else if(e=k(e),arguments.length===2)to(t,function(_){return G(e,_)!==-1});else for(var h=0,f=e.length;h<f;h++)Nn(t,e[h],n,o);return this}function to(t,e){for(var n in t[yt]){var o=n.split(/\d/)[0];(!e||e(o))&&Nn(t,o,null,null,n)}}var In={mouseenter:"mouseover",mouseleave:"mouseout",wheel:!("onwheel"in window)&&"mousewheel"};function Bn(t,e,n,o){var a=e+m(n)+(o?"_"+m(o):"");if(t[yt]&&t[yt][a])return this;var h=function(_){return n.call(o||t,_||window.event)},f=h;!z.touchNative&&z.pointer&&e.indexOf("touch")===0?h=ka(t,e,h):z.touch&&e==="dblclick"?h=Ia(t,h):"addEventListener"in t?e==="touchstart"||e==="touchmove"||e==="wheel"||e==="mousewheel"?t.addEventListener(In[e]||e,h,z.passiveEvents?{passive:!1}:!1):e==="mouseenter"||e==="mouseleave"?(h=function(_){_=_||window.event,Dn(t,_)&&f(_)},t.addEventListener(In[e],h,!1)):t.addEventListener(e,f,!1):t.attachEvent("on"+e,h),t[yt]=t[yt]||{},t[yt][a]=h}function Nn(t,e,n,o,a){a=a||e+m(n)+(o?"_"+m(o):"");var h=t[yt]&&t[yt][a];if(!h)return this;!z.touchNative&&z.pointer&&e.indexOf("touch")===0?Ta(t,e,h):z.touch&&e==="dblclick"?Ba(t,h):"removeEventListener"in t?t.removeEventListener(In[e]||e,h,!1):t.detachEvent("on"+e,h),t[yt][a]=null}function Gt(t){return t.stopPropagation?t.stopPropagation():t.originalEvent?t.originalEvent._stopped=!0:t.cancelBubble=!0,this}function Rn(t){return Bn(t,"wheel",Gt),this}function ve(t){return S(t,"mousedown touchstart dblclick contextmenu",Gt),t._leaflet_disable_click=!0,this}function nt(t){return t.preventDefault?t.preventDefault():t.returnValue=!1,this}function Ut(t){return nt(t),Gt(t),this}function eo(t){if(t.composedPath)return t.composedPath();for(var e=[],n=t.target;n;)e.push(n),n=n.parentNode;return e}function no(t,e){if(!e)return new C(t.clientX,t.clientY);var n=Zn(e),o=n.boundingClientRect;return new C((t.clientX-o.left)/n.x-e.clientLeft,(t.clientY-o.top)/n.y-e.clientTop)}var Da=z.linux&&z.chrome?window.devicePixelRatio:z.mac?window.devicePixelRatio*3:window.devicePixelRatio>0?2*window.devicePixelRatio:1;function io(t){return z.edge?t.wheelDeltaY/2:t.deltaY&&t.deltaMode===0?-t.deltaY/Da:t.deltaY&&t.deltaMode===1?-t.deltaY*20:t.deltaY&&t.deltaMode===2?-t.deltaY*60:t.deltaX||t.deltaZ?0:t.wheelDelta?(t.wheelDeltaY||t.wheelDelta)/2:t.detail&&Math.abs(t.detail)<32765?-t.detail*20:t.detail?t.detail/-32765*60:0}function Dn(t,e){var n=e.relatedTarget;if(!n)return!0;try{for(;n&&n!==t;)n=n.parentNode}catch{return!1}return n!==t}var Fa={__proto__:null,on:S,off:U,stopPropagation:Gt,disableScrollPropagation:Rn,disableClickPropagation:ve,preventDefault:nt,stop:Ut,getPropagationPath:eo,getMousePosition:no,getWheelDelta:io,isExternalTarget:Dn,addListener:S,removeListener:U},oo=ue.extend({run:function(t,e,n,o){this.stop(),this._el=t,this._inProgress=!0,this._duration=n||.25,this._easeOutPower=1/Math.max(o||.5,.2),this._startPos=jt(t),this._offset=e.subtract(this._startPos),this._startTime=+new Date,this.fire("start"),this._animate()},stop:function(){this._inProgress&&(this._step(!0),this._complete())},_animate:function(){this._animId=Q(this._animate,this),this._step()},_step:function(t){var e=+new Date-this._startTime,n=this._duration*1e3;e<n?this._runFrame(this._easeOut(e/n),t):(this._runFrame(1),this._complete())},_runFrame:function(t,e){var n=this._startPos.add(this._offset.multiplyBy(t));e&&n._round(),J(this._el,n),this.fire("step")},_complete:function(){q(this._animId),this._inProgress=!1,this.fire("end")},_easeOut:function(t){return 1-Math.pow(1-t,this._easeOutPower)}}),R=ue.extend({options:{crs:yn,center:void 0,zoom:void 0,minZoom:void 0,maxZoom:void 0,layers:[],maxBounds:void 0,renderer:void 0,zoomAnimation:!0,zoomAnimationThreshold:4,fadeAnimation:!0,markerZoomAnimation:!0,transform3DLimit:8388608,zoomSnap:1,zoomDelta:1,trackResize:!0},initialize:function(t,e){e=O(this,e),this._handlers=[],this._layers={},this._zoomBoundLayers={},this._sizeChanged=!0,this._initContainer(t),this._initLayout(),this._onResize=d(this._onResize,this),this._initEvents(),e.maxBounds&&this.setMaxBounds(e.maxBounds),e.zoom!==void 0&&(this._zoom=this._limitZoom(e.zoom)),e.center&&e.zoom!==void 0&&this.setView(N(e.center),e.zoom,{reset:!0}),this.callInitHooks(),this._zoomAnimated=de&&z.any3d&&!z.mobileOpera&&this.options.zoomAnimation,this._zoomAnimated&&(this._createAnimProxy(),S(this._proxy,Ji,this._catchTransitionEnd,this)),this._addLayers(this.options.layers)},setView:function(t,e,n){if(e=e===void 0?this._zoom:this._limitZoom(e),t=this._limitCenter(N(t),e,this.options.maxBounds),n=n||{},this._stop(),this._loaded&&!n.reset&&n!==!0){n.animate!==void 0&&(n.zoom=u({animate:n.animate},n.zoom),n.pan=u({animate:n.animate,duration:n.duration},n.pan));var o=this._zoom!==e?this._tryAnimatedZoom&&this._tryAnimatedZoom(t,e,n.zoom):this._tryAnimatedPan(t,n.pan);if(o)return clearTimeout(this._sizeTimer),this}return this._resetView(t,e,n.pan&&n.pan.noMoveStart),this},setZoom:function(t,e){return this._loaded?this.setView(this.getCenter(),t,{zoom:e}):(this._zoom=t,this)},zoomIn:function(t,e){return t=t||(z.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom+t,e)},zoomOut:function(t,e){return t=t||(z.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom-t,e)},setZoomAround:function(t,e,n){var o=this.getZoomScale(e),a=this.getSize().divideBy(2),h=t instanceof C?t:this.latLngToContainerPoint(t),f=h.subtract(a).multiplyBy(1-1/o),_=this.containerPointToLatLng(a.add(f));return this.setView(_,e,{zoom:n})},_getBoundsCenterZoom:function(t,e){e=e||{},t=t.getBounds?t.getBounds():Y(t);var n=M(e.paddingTopLeft||e.padding||[0,0]),o=M(e.paddingBottomRight||e.padding||[0,0]),a=this.getBoundsZoom(t,!1,n.add(o));if(a=typeof e.maxZoom=="number"?Math.min(e.maxZoom,a):a,a===1/0)return{center:t.getCenter(),zoom:a};var h=o.subtract(n).divideBy(2),f=this.project(t.getSouthWest(),a),_=this.project(t.getNorthEast(),a),p=this.unproject(f.add(_).divideBy(2).add(h),a);return{center:p,zoom:a}},fitBounds:function(t,e){if(t=Y(t),!t.isValid())throw new Error("Bounds are not valid.");var n=this._getBoundsCenterZoom(t,e);return this.setView(n.center,n.zoom,e)},fitWorld:function(t){return this.fitBounds([[-90,-180],[90,180]],t)},panTo:function(t,e){return this.setView(t,this._zoom,{pan:e})},panBy:function(t,e){if(t=M(t).round(),e=e||{},!t.x&&!t.y)return this.fire("moveend");if(e.animate!==!0&&!this.getSize().contains(t))return this._resetView(this.unproject(this.project(this.getCenter()).add(t)),this.getZoom()),this;if(this._panAnim||(this._panAnim=new oo,this._panAnim.on({step:this._onPanTransitionStep,end:this._onPanTransitionEnd},this)),e.noMoveStart||this.fire("movestart"),e.animate!==!1){I(this._mapPane,"leaflet-pan-anim");var n=this._getMapPanePos().subtract(t).round();this._panAnim.run(this._mapPane,n,e.duration||.25,e.easeLinearity)}else this._rawPanBy(t),this.fire("move").fire("moveend");return this},flyTo:function(t,e,n){if(n=n||{},n.animate===!1||!z.any3d)return this.setView(t,e,n);this._stop();var o=this.project(this.getCenter()),a=this.project(t),h=this.getSize(),f=this._zoom;t=N(t),e=e===void 0?f:e;var _=Math.max(h.x,h.y),p=_*this.getZoomScale(f,e),g=a.distanceTo(o)||1,A=1.42,T=A*A;function B(X){var $e=X?-1:1,Tl=X?p:_,El=p*p-_*_+$e*T*T*g*g,Ml=2*Tl*T*g,Yn=El/Ml,Do=Math.sqrt(Yn*Yn+1)-Yn,Cl=Do<1e-9?-18:Math.log(Do);return Cl}function ot(X){return(Math.exp(X)-Math.exp(-X))/2}function et(X){return(Math.exp(X)+Math.exp(-X))/2}function _t(X){return ot(X)/et(X)}var lt=B(0);function re(X){return _*(et(lt)/et(lt+A*X))}function Ll(X){return _*(et(lt)*_t(lt+A*X)-ot(lt))/T}function Pl(X){return 1-Math.pow(1-X,1.5)}var zl=Date.now(),No=(B(1)-lt)/A,kl=n.duration?1e3*n.duration:1e3*No*.8;function Ro(){var X=(Date.now()-zl)/kl,$e=Pl(X)*No;X<=1?(this._flyToFrame=Q(Ro,this),this._move(this.unproject(o.add(a.subtract(o).multiplyBy(Ll($e)/g)),f),this.getScaleZoom(_/re($e),f),{flyTo:!0})):this._move(t,e)._moveEnd(!0)}return this._moveStart(!0,n.noMoveStart),Ro.call(this),this},flyToBounds:function(t,e){var n=this._getBoundsCenterZoom(t,e);return this.flyTo(n.center,n.zoom,e)},setMaxBounds:function(t){return t=Y(t),this.listens("moveend",this._panInsideMaxBounds)&&this.off("moveend",this._panInsideMaxBounds),t.isValid()?(this.options.maxBounds=t,this._loaded&&this._panInsideMaxBounds(),this.on("moveend",this._panInsideMaxBounds)):(this.options.maxBounds=null,this)},setMinZoom:function(t){var e=this.options.minZoom;return this.options.minZoom=t,this._loaded&&e!==t&&(this.fire("zoomlevelschange"),this.getZoom()<this.options.minZoom)?this.setZoom(t):this},setMaxZoom:function(t){var e=this.options.maxZoom;return this.options.maxZoom=t,this._loaded&&e!==t&&(this.fire("zoomlevelschange"),this.getZoom()>this.options.maxZoom)?this.setZoom(t):this},panInsideBounds:function(t,e){this._enforcingBounds=!0;var n=this.getCenter(),o=this._limitCenter(n,this._zoom,Y(t));return n.equals(o)||this.panTo(o,e),this._enforcingBounds=!1,this},panInside:function(t,e){e=e||{};var n=M(e.paddingTopLeft||e.padding||[0,0]),o=M(e.paddingBottomRight||e.padding||[0,0]),a=this.project(this.getCenter()),h=this.project(t),f=this.getPixelBounds(),_=st([f.min.add(n),f.max.subtract(o)]),p=_.getSize();if(!_.contains(h)){this._enforcingBounds=!0;var g=h.subtract(_.getCenter()),A=_.extend(h).getSize().subtract(p);a.x+=g.x<0?-A.x:A.x,a.y+=g.y<0?-A.y:A.y,this.panTo(this.unproject(a),e),this._enforcingBounds=!1}return this},invalidateSize:function(t){if(!this._loaded)return this;t=u({animate:!1,pan:!0},t===!0?{animate:!0}:t);var e=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var n=this.getSize(),o=e.divideBy(2).round(),a=n.divideBy(2).round(),h=o.subtract(a);return!h.x&&!h.y?this:(t.animate&&t.pan?this.panBy(h):(t.pan&&this._rawPanBy(h),this.fire("move"),t.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(d(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:e,newSize:n}))},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},locate:function(t){if(t=this._locateOptions=u({timeout:1e4,watch:!1},t),!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var e=d(this._handleGeolocationResponse,this),n=d(this._handleGeolocationError,this);return t.watch?this._locationWatchId=navigator.geolocation.watchPosition(e,n,t):navigator.geolocation.getCurrentPosition(e,n,t),this},stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(t){if(this._container._leaflet_id){var e=t.code,n=t.message||(e===1?"permission denied":e===2?"position unavailable":"timeout");this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:e,message:"Geolocation error: "+n+"."})}},_handleGeolocationResponse:function(t){if(this._container._leaflet_id){var e=t.coords.latitude,n=t.coords.longitude,o=new F(e,n),a=o.toBounds(t.coords.accuracy*2),h=this._locateOptions;if(h.setView){var f=this.getBoundsZoom(a);this.setView(o,h.maxZoom?Math.min(f,h.maxZoom):f)}var _={latlng:o,bounds:a,timestamp:t.timestamp};for(var p in t.coords)typeof t.coords[p]=="number"&&(_[p]=t.coords[p]);this.fire("locationfound",_)}},addHandler:function(t,e){if(!e)return this;var n=this[t]=new e(this);return this._handlers.push(n),this.options[t]&&n.enable(),this},remove:function(){if(this._initEvents(!0),this.options.maxBounds&&this.off("moveend",this._panInsideMaxBounds),this._containerId!==this._container._leaflet_id)throw new Error("Map container is being reused by another instance");try{delete this._container._leaflet_id,delete this._containerId}catch{this._container._leaflet_id=void 0,this._containerId=void 0}this._locationWatchId!==void 0&&this.stopLocate(),this._stop(),V(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(q(this._resizeRequest),this._resizeRequest=null),this._clearHandlers(),this._loaded&&this.fire("unload");var t;for(t in this._layers)this._layers[t].remove();for(t in this._panes)V(this._panes[t]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(t,e){var n="leaflet-pane"+(t?" leaflet-"+t.replace("Pane","")+"-pane":""),o=D("div",n,e||this._mapPane);return t&&(this._panes[t]=o),o},getCenter:function(){return this._checkIfLoaded(),this._lastCenter&&!this._moved()?this._lastCenter.clone():this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var t=this.getPixelBounds(),e=this.unproject(t.getBottomLeft()),n=this.unproject(t.getTopRight());return new at(e,n)},getMinZoom:function(){return this.options.minZoom===void 0?this._layersMinZoom||0:this.options.minZoom},getMaxZoom:function(){return this.options.maxZoom===void 0?this._layersMaxZoom===void 0?1/0:this._layersMaxZoom:this.options.maxZoom},getBoundsZoom:function(t,e,n){t=Y(t),n=M(n||[0,0]);var o=this.getZoom()||0,a=this.getMinZoom(),h=this.getMaxZoom(),f=t.getNorthWest(),_=t.getSouthEast(),p=this.getSize().subtract(n),g=st(this.project(_,o),this.project(f,o)).getSize(),A=z.any3d?this.options.zoomSnap:1,T=p.x/g.x,B=p.y/g.y,ot=e?Math.max(T,B):Math.min(T,B);return o=this.getScaleZoom(ot,o),A&&(o=Math.round(o/(A/100))*(A/100),o=e?Math.ceil(o/A)*A:Math.floor(o/A)*A),Math.max(a,Math.min(h,o))},getSize:function(){return(!this._size||this._sizeChanged)&&(this._size=new C(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(t,e){var n=this._getTopLeftPoint(t,e);return new H(n,n.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._pixelOrigin},getPixelWorldBounds:function(t){return this.options.crs.getProjectedBounds(t===void 0?this.getZoom():t)},getPane:function(t){return typeof t=="string"?this._panes[t]:t},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(t,e){var n=this.options.crs;return e=e===void 0?this._zoom:e,n.scale(t)/n.scale(e)},getScaleZoom:function(t,e){var n=this.options.crs;e=e===void 0?this._zoom:e;var o=n.zoom(t*n.scale(e));return isNaN(o)?1/0:o},project:function(t,e){return e=e===void 0?this._zoom:e,this.options.crs.latLngToPoint(N(t),e)},unproject:function(t,e){return e=e===void 0?this._zoom:e,this.options.crs.pointToLatLng(M(t),e)},layerPointToLatLng:function(t){var e=M(t).add(this.getPixelOrigin());return this.unproject(e)},latLngToLayerPoint:function(t){var e=this.project(N(t))._round();return e._subtract(this.getPixelOrigin())},wrapLatLng:function(t){return this.options.crs.wrapLatLng(N(t))},wrapLatLngBounds:function(t){return this.options.crs.wrapLatLngBounds(Y(t))},distance:function(t,e){return this.options.crs.distance(N(t),N(e))},containerPointToLayerPoint:function(t){return M(t).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(t){return M(t).add(this._getMapPanePos())},containerPointToLatLng:function(t){var e=this.containerPointToLayerPoint(M(t));return this.layerPointToLatLng(e)},latLngToContainerPoint:function(t){return this.layerPointToContainerPoint(this.latLngToLayerPoint(N(t)))},mouseEventToContainerPoint:function(t){return no(t,this._container)},mouseEventToLayerPoint:function(t){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(t))},mouseEventToLatLng:function(t){return this.layerPointToLatLng(this.mouseEventToLayerPoint(t))},_initContainer:function(t){var e=this._container=Xi(t);if(e){if(e._leaflet_id)throw new Error("Map container is already initialized.")}else throw new Error("Map container not found.");S(e,"scroll",this._onScroll,this),this._containerId=m(e)},_initLayout:function(){var t=this._container;this._fadeAnimated=this.options.fadeAnimation&&z.any3d,I(t,"leaflet-container"+(z.touch?" leaflet-touch":"")+(z.retina?" leaflet-retina":"")+(z.ielt9?" leaflet-oldie":"")+(z.safari?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var e=_e(t,"position");e!=="absolute"&&e!=="relative"&&e!=="fixed"&&e!=="sticky"&&(t.style.position="relative"),this._initPanes(),this._initControlPos&&this._initControlPos()},_initPanes:function(){var t=this._panes={};this._paneRenderers={},this._mapPane=this.createPane("mapPane",this._container),J(this._mapPane,new C(0,0)),this.createPane("tilePane"),this.createPane("overlayPane"),this.createPane("shadowPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(I(t.markerPane,"leaflet-zoom-hide"),I(t.shadowPane,"leaflet-zoom-hide"))},_resetView:function(t,e,n){J(this._mapPane,new C(0,0));var o=!this._loaded;this._loaded=!0,e=this._limitZoom(e),this.fire("viewprereset");var a=this._zoom!==e;this._moveStart(a,n)._move(t,e)._moveEnd(a),this.fire("viewreset"),o&&this.fire("load")},_moveStart:function(t,e){return t&&this.fire("zoomstart"),e||this.fire("movestart"),this},_move:function(t,e,n,o){e===void 0&&(e=this._zoom);var a=this._zoom!==e;return this._zoom=e,this._lastCenter=t,this._pixelOrigin=this._getNewPixelOrigin(t),o?n&&n.pinch&&this.fire("zoom",n):((a||n&&n.pinch)&&this.fire("zoom",n),this.fire("move",n)),this},_moveEnd:function(t){return t&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return q(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(t){J(this._mapPane,this._getMapPanePos().subtract(t))},_getZoomSpan:function(){return this.getMaxZoom()-this.getMinZoom()},_panInsideMaxBounds:function(){this._enforcingBounds||this.panInsideBounds(this.options.maxBounds)},_checkIfLoaded:function(){if(!this._loaded)throw new Error("Set map center and zoom first.")},_initEvents:function(t){this._targets={},this._targets[m(this._container)]=this;var e=t?U:S;e(this._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this),this.options.trackResize&&e(window,"resize",this._onResize,this),z.any3d&&this.options.transform3DLimit&&(t?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){q(this._resizeRequest),this._resizeRequest=Q(function(){this.invalidateSize({debounceMoveend:!0})},this)},_onScroll:function(){this._container.scrollTop=0,this._container.scrollLeft=0},_onMoveEnd:function(){var t=this._getMapPanePos();Math.max(Math.abs(t.x),Math.abs(t.y))>=this.options.transform3DLimit&&this._resetView(this.getCenter(),this.getZoom())},_findEventTargets:function(t,e){for(var n=[],o,a=e==="mouseout"||e==="mouseover",h=t.target||t.srcElement,f=!1;h;){if(o=this._targets[m(h)],o&&(e==="click"||e==="preclick")&&this._draggableMoved(o)){f=!0;break}if(o&&o.listens(e,!0)&&(a&&!Dn(h,t)||(n.push(o),a))||h===this._container)break;h=h.parentNode}return!n.length&&!f&&!a&&this.listens(e,!0)&&(n=[this]),n},_isClickDisabled:function(t){for(;t&&t!==this._container;){if(t._leaflet_disable_click)return!0;t=t.parentNode}},_handleDOMEvent:function(t){var e=t.target||t.srcElement;if(!(!this._loaded||e._leaflet_disable_events||t.type==="click"&&this._isClickDisabled(e))){var n=t.type;n==="mousedown"&&On(e),this._fireDOMEvent(t,n)}},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(t,e,n){if(t.type==="click"){var o=u({},t);o.type="preclick",this._fireDOMEvent(o,o.type,n)}var a=this._findEventTargets(t,e);if(n){for(var h=[],f=0;f<n.length;f++)n[f].listens(e,!0)&&h.push(n[f]);a=h.concat(a)}if(a.length){e==="contextmenu"&&nt(t);var _=a[0],p={originalEvent:t};if(t.type!=="keypress"&&t.type!=="keydown"&&t.type!=="keyup"){var g=_.getLatLng&&(!_._radius||_._radius<=10);p.containerPoint=g?this.latLngToContainerPoint(_.getLatLng()):this.mouseEventToContainerPoint(t),p.layerPoint=this.containerPointToLayerPoint(p.containerPoint),p.latlng=g?_.getLatLng():this.layerPointToLatLng(p.layerPoint)}for(f=0;f<a.length;f++)if(a[f].fire(e,p,!0),p.originalEvent._stopped||a[f].options.bubblingMouseEvents===!1&&G(this._mouseEvents,e)!==-1)return}},_draggableMoved:function(t){return t=t.dragging&&t.dragging.enabled()?t:this,t.dragging&&t.dragging.moved()||this.boxZoom&&this.boxZoom.moved()},_clearHandlers:function(){for(var t=0,e=this._handlers.length;t<e;t++)this._handlers[t].disable()},whenReady:function(t,e){return this._loaded?t.call(e||this,{target:this}):this.on("load",t,e),this},_getMapPanePos:function(){return jt(this._mapPane)||new C(0,0)},_moved:function(){var t=this._getMapPanePos();return t&&!t.equals([0,0])},_getTopLeftPoint:function(t,e){var n=t&&e!==void 0?this._getNewPixelOrigin(t,e):this.getPixelOrigin();return n.subtract(this._getMapPanePos())},_getNewPixelOrigin:function(t,e){var n=this.getSize()._divideBy(2);return this.project(t,e)._subtract(n)._add(this._getMapPanePos())._round()},_latLngToNewLayerPoint:function(t,e,n){var o=this._getNewPixelOrigin(n,e);return this.project(t,e)._subtract(o)},_latLngBoundsToNewLayerBounds:function(t,e,n){var o=this._getNewPixelOrigin(n,e);return st([this.project(t.getSouthWest(),e)._subtract(o),this.project(t.getNorthWest(),e)._subtract(o),this.project(t.getSouthEast(),e)._subtract(o),this.project(t.getNorthEast(),e)._subtract(o)])},_getCenterLayerPoint:function(){return this.containerPointToLayerPoint(this.getSize()._divideBy(2))},_getCenterOffset:function(t){return this.latLngToLayerPoint(t).subtract(this._getCenterLayerPoint())},_limitCenter:function(t,e,n){if(!n)return t;var o=this.project(t,e),a=this.getSize().divideBy(2),h=new H(o.subtract(a),o.add(a)),f=this._getBoundsOffset(h,n,e);return Math.abs(f.x)<=1&&Math.abs(f.y)<=1?t:this.unproject(o.add(f),e)},_limitOffset:function(t,e){if(!e)return t;var n=this.getPixelBounds(),o=new H(n.min.add(t),n.max.add(t));return t.add(this._getBoundsOffset(o,e))},_getBoundsOffset:function(t,e,n){var o=st(this.project(e.getNorthEast(),n),this.project(e.getSouthWest(),n)),a=o.min.subtract(t.min),h=o.max.subtract(t.max),f=this._rebound(a.x,-h.x),_=this._rebound(a.y,-h.y);return new C(f,_)},_rebound:function(t,e){return t+e>0?Math.round(t-e)/2:Math.max(0,Math.ceil(t))-Math.max(0,Math.floor(e))},_limitZoom:function(t){var e=this.getMinZoom(),n=this.getMaxZoom(),o=z.any3d?this.options.zoomSnap:1;return o&&(t=Math.round(t/o)*o),Math.max(e,Math.min(n,t))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){K(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(t,e){var n=this._getCenterOffset(t)._trunc();return(e&&e.animate)!==!0&&!this.getSize().contains(n)?!1:(this.panBy(n,e),!0)},_createAnimProxy:function(){var t=this._proxy=D("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(t),this.on("zoomanim",function(e){var n=zn,o=this._proxy.style[n];Wt(this._proxy,this.project(e.center,e.zoom),this.getZoomScale(e.zoom,1)),o===this._proxy.style[n]&&this._animatingZoom&&this._onZoomTransitionEnd()},this),this.on("load moveend",this._animMoveEnd,this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){V(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var t=this.getCenter(),e=this.getZoom();Wt(this._proxy,this.project(t,e),this.getZoomScale(e,1))},_catchTransitionEnd:function(t){this._animatingZoom&&t.propertyName.indexOf("transform")>=0&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(t,e,n){if(this._animatingZoom)return!0;if(n=n||{},!this._zoomAnimated||n.animate===!1||this._nothingToAnimate()||Math.abs(e-this._zoom)>this.options.zoomAnimationThreshold)return!1;var o=this.getZoomScale(e),a=this._getCenterOffset(t)._divideBy(1-1/o);return n.animate!==!0&&!this.getSize().contains(a)?!1:(Q(function(){this._moveStart(!0,n.noMoveStart||!1)._animateZoom(t,e,!0)},this),!0)},_animateZoom:function(t,e,n,o){this._mapPane&&(n&&(this._animatingZoom=!0,this._animateToCenter=t,this._animateToZoom=e,I(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:t,zoom:e,noUpdate:o}),this._tempFireZoomEvent||(this._tempFireZoomEvent=this._zoom!==this._animateToZoom),this._move(this._animateToCenter,this._animateToZoom,void 0,!0),setTimeout(d(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._mapPane&&K(this._mapPane,"leaflet-zoom-anim"),this._animatingZoom=!1,this._move(this._animateToCenter,this._animateToZoom,void 0,!0),this._tempFireZoomEvent&&this.fire("zoom"),delete this._tempFireZoomEvent,this.fire("move"),this._moveEnd(!0))}});function Wa(t,e){return new R(t,e)}var mt=Lt.extend({options:{position:"topright"},initialize:function(t){O(this,t)},getPosition:function(){return this.options.position},setPosition:function(t){var e=this._map;return e&&e.removeControl(this),this.options.position=t,e&&e.addControl(this),this},getContainer:function(){return this._container},addTo:function(t){this.remove(),this._map=t;var e=this._container=this.onAdd(t),n=this.getPosition(),o=t._controlCorners[n];return I(e,"leaflet-control"),n.indexOf("bottom")!==-1?o.insertBefore(e,o.firstChild):o.appendChild(e),this._map.on("unload",this.remove,this),this},remove:function(){return this._map?(V(this._container),this.onRemove&&this.onRemove(this._map),this._map.off("unload",this.remove,this),this._map=null,this):this},_refocusOnMap:function(t){this._map&&t&&t.screenX>0&&t.screenY>0&&this._map.getContainer().focus()}}),ye=function(t){return new mt(t)};R.include({addControl:function(t){return t.addTo(this),this},removeControl:function(t){return t.remove(),this},_initControlPos:function(){var t=this._controlCorners={},e="leaflet-",n=this._controlContainer=D("div",e+"control-container",this._container);function o(a,h){var f=e+a+" "+e+h;t[a+h]=D("div",f,n)}o("top","left"),o("top","right"),o("bottom","left"),o("bottom","right")},_clearControlPos:function(){for(var t in this._controlCorners)V(this._controlCorners[t]);V(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var ro=mt.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(t,e,n,o){return n<o?-1:o<n?1:0}},initialize:function(t,e,n){O(this,n),this._layerControlInputs=[],this._layers=[],this._lastZIndex=0,this._handlingClick=!1,this._preventClick=!1;for(var o in t)this._addLayer(t[o],o);for(o in e)this._addLayer(e[o],o,!0)},onAdd:function(t){this._initLayout(),this._update(),this._map=t,t.on("zoomend",this._checkDisabledLayers,this);for(var e=0;e<this._layers.length;e++)this._layers[e].layer.on("add remove",this._onLayerChange,this);return this._container},addTo:function(t){return mt.prototype.addTo.call(this,t),this._expandIfNotCollapsed()},onRemove:function(){this._map.off("zoomend",this._checkDisabledLayers,this);for(var t=0;t<this._layers.length;t++)this._layers[t].layer.off("add remove",this._onLayerChange,this)},addBaseLayer:function(t,e){return this._addLayer(t,e),this._map?this._update():this},addOverlay:function(t,e){return this._addLayer(t,e,!0),this._map?this._update():this},removeLayer:function(t){t.off("add remove",this._onLayerChange,this);var e=this._getLayer(m(t));return e&&this._layers.splice(this._layers.indexOf(e),1),this._map?this._update():this},expand:function(){I(this._container,"leaflet-control-layers-expanded"),this._section.style.height=null;var t=this._map.getSize().y-(this._container.offsetTop+50);return t<this._section.clientHeight?(I(this._section,"leaflet-control-layers-scrollbar"),this._section.style.height=t+"px"):K(this._section,"leaflet-control-layers-scrollbar"),this._checkDisabledLayers(),this},collapse:function(){return K(this._container,"leaflet-control-layers-expanded"),this},_initLayout:function(){var t="leaflet-control-layers",e=this._container=D("div",t),n=this.options.collapsed;e.setAttribute("aria-haspopup",!0),ve(e),Rn(e);var o=this._section=D("section",t+"-list");n&&(this._map.on("click",this.collapse,this),S(e,{mouseenter:this._expandSafely,mouseleave:this.collapse},this));var a=this._layersLink=D("a",t+"-toggle",e);a.href="#",a.title="Layers",a.setAttribute("role","button"),S(a,{keydown:function(h){h.keyCode===13&&this._expandSafely()},click:function(h){nt(h),this._expandSafely()}},this),n||this.expand(),this._baseLayersList=D("div",t+"-base",o),this._separator=D("div",t+"-separator",o),this._overlaysList=D("div",t+"-overlays",o),e.appendChild(o)},_getLayer:function(t){for(var e=0;e<this._layers.length;e++)if(this._layers[e]&&m(this._layers[e].layer)===t)return this._layers[e]},_addLayer:function(t,e,n){this._map&&t.on("add remove",this._onLayerChange,this),this._layers.push({layer:t,name:e,overlay:n}),this.options.sortLayers&&this._layers.sort(d(function(o,a){return this.options.sortFunction(o.layer,a.layer,o.name,a.name)},this)),this.options.autoZIndex&&t.setZIndex&&(this._lastZIndex++,t.setZIndex(this._lastZIndex)),this._expandIfNotCollapsed()},_update:function(){if(!this._container)return this;Ne(this._baseLayersList),Ne(this._overlaysList),this._layerControlInputs=[];var t,e,n,o,a=0;for(n=0;n<this._layers.length;n++)o=this._layers[n],this._addItem(o),e=e||o.overlay,t=t||!o.overlay,a+=o.overlay?0:1;return this.options.hideSingleBase&&(t=t&&a>1,this._baseLayersList.style.display=t?"":"none"),this._separator.style.display=e&&t?"":"none",this},_onLayerChange:function(t){this._handlingClick||this._update();var e=this._getLayer(m(t.target)),n=e.overlay?t.type==="add"?"overlayadd":"overlayremove":t.type==="add"?"baselayerchange":null;n&&this._map.fire(n,e)},_createRadioElement:function(t,e){var n='<input type="radio" class="leaflet-control-layers-selector" name="'+t+'"'+(e?' checked="checked"':"")+"/>",o=document.createElement("div");return o.innerHTML=n,o.firstChild},_addItem:function(t){var e=document.createElement("label"),n=this._map.hasLayer(t.layer),o;t.overlay?(o=document.createElement("input"),o.type="checkbox",o.className="leaflet-control-layers-selector",o.defaultChecked=n):o=this._createRadioElement("leaflet-base-layers_"+m(this),n),this._layerControlInputs.push(o),o.layerId=m(t.layer),S(o,"click",this._onInputClick,this);var a=document.createElement("span");a.innerHTML=" "+t.name;var h=document.createElement("span");e.appendChild(h),h.appendChild(o),h.appendChild(a);var f=t.overlay?this._overlaysList:this._baseLayersList;return f.appendChild(e),this._checkDisabledLayers(),e},_onInputClick:function(){if(!this._preventClick){var t=this._layerControlInputs,e,n,o=[],a=[];this._handlingClick=!0;for(var h=t.length-1;h>=0;h--)e=t[h],n=this._getLayer(e.layerId).layer,e.checked?o.push(n):e.checked||a.push(n);for(h=0;h<a.length;h++)this._map.hasLayer(a[h])&&this._map.removeLayer(a[h]);for(h=0;h<o.length;h++)this._map.hasLayer(o[h])||this._map.addLayer(o[h]);this._handlingClick=!1,this._refocusOnMap()}},_checkDisabledLayers:function(){for(var t=this._layerControlInputs,e,n,o=this._map.getZoom(),a=t.length-1;a>=0;a--)e=t[a],n=this._getLayer(e.layerId).layer,e.disabled=n.options.minZoom!==void 0&&o<n.options.minZoom||n.options.maxZoom!==void 0&&o>n.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expandSafely:function(){var t=this._section;this._preventClick=!0,S(t,"click",nt),this.expand();var e=this;setTimeout(function(){U(t,"click",nt),e._preventClick=!1})}}),ja=function(t,e,n){return new ro(t,e,n)},Fn=mt.extend({options:{position:"topleft",zoomInText:'<span aria-hidden="true">+</span>',zoomInTitle:"Zoom in",zoomOutText:'<span aria-hidden="true">&#x2212;</span>',zoomOutTitle:"Zoom out"},onAdd:function(t){var e="leaflet-control-zoom",n=D("div",e+" leaflet-bar"),o=this.options;return this._zoomInButton=this._createButton(o.zoomInText,o.zoomInTitle,e+"-in",n,this._zoomIn),this._zoomOutButton=this._createButton(o.zoomOutText,o.zoomOutTitle,e+"-out",n,this._zoomOut),this._updateDisabled(),t.on("zoomend zoomlevelschange",this._updateDisabled,this),n},onRemove:function(t){t.off("zoomend zoomlevelschange",this._updateDisabled,this)},disable:function(){return this._disabled=!0,this._updateDisabled(),this},enable:function(){return this._disabled=!1,this._updateDisabled(),this},_zoomIn:function(t){!this._disabled&&this._map._zoom<this._map.getMaxZoom()&&this._map.zoomIn(this._map.options.zoomDelta*(t.shiftKey?3:1))},_zoomOut:function(t){!this._disabled&&this._map._zoom>this._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(t.shiftKey?3:1))},_createButton:function(t,e,n,o,a){var h=D("a",n,o);return h.innerHTML=t,h.href="#",h.title=e,h.setAttribute("role","button"),h.setAttribute("aria-label",e),ve(h),S(h,"click",Ut),S(h,"click",a,this),S(h,"click",this._refocusOnMap,this),h},_updateDisabled:function(){var t=this._map,e="leaflet-disabled";K(this._zoomInButton,e),K(this._zoomOutButton,e),this._zoomInButton.setAttribute("aria-disabled","false"),this._zoomOutButton.setAttribute("aria-disabled","false"),(this._disabled||t._zoom===t.getMinZoom())&&(I(this._zoomOutButton,e),this._zoomOutButton.setAttribute("aria-disabled","true")),(this._disabled||t._zoom===t.getMaxZoom())&&(I(this._zoomInButton,e),this._zoomInButton.setAttribute("aria-disabled","true"))}});R.mergeOptions({zoomControl:!0}),R.addInitHook(function(){this.options.zoomControl&&(this.zoomControl=new Fn,this.addControl(this.zoomControl))});var Ga=function(t){return new Fn(t)},so=mt.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(t){var e="leaflet-control-scale",n=D("div",e),o=this.options;return this._addScales(o,e+"-line",n),t.on(o.updateWhenIdle?"moveend":"move",this._update,this),t.whenReady(this._update,this),n},onRemove:function(t){t.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(t,e,n){t.metric&&(this._mScale=D("div",e,n)),t.imperial&&(this._iScale=D("div",e,n))},_update:function(){var t=this._map,e=t.getSize().y/2,n=t.distance(t.containerPointToLatLng([0,e]),t.containerPointToLatLng([this.options.maxWidth,e]));this._updateScales(n)},_updateScales:function(t){this.options.metric&&t&&this._updateMetric(t),this.options.imperial&&t&&this._updateImperial(t)},_updateMetric:function(t){var e=this._getRoundNum(t),n=e<1e3?e+" m":e/1e3+" km";this._updateScale(this._mScale,n,e/t)},_updateImperial:function(t){var e=t*3.2808399,n,o,a;e>5280?(n=e/5280,o=this._getRoundNum(n),this._updateScale(this._iScale,o+" mi",o/n)):(a=this._getRoundNum(e),this._updateScale(this._iScale,a+" ft",a/e))},_updateScale:function(t,e,n){t.style.width=Math.round(this.options.maxWidth*n)+"px",t.innerHTML=e},_getRoundNum:function(t){var e=Math.pow(10,(Math.floor(t)+"").length-1),n=t/e;return n=n>=10?10:n>=5?5:n>=3?3:n>=2?2:1,e*n}}),Ua=function(t){return new so(t)},Ha='<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="12" height="8" viewBox="0 0 12 8" class="leaflet-attribution-flag"><path fill="#4C7BE1" d="M0 0h12v4H0z"/><path fill="#FFD500" d="M0 4h12v3H0z"/><path fill="#E0BC00" d="M0 7h12v1H0z"/></svg>',Wn=mt.extend({options:{position:"bottomright",prefix:'<a href="https://leafletjs.com" title="A JavaScript library for interactive maps">'+(z.inlineSvg?Ha+" ":"")+"Leaflet</a>"},initialize:function(t){O(this,t),this._attributions={}},onAdd:function(t){t.attributionControl=this,this._container=D("div","leaflet-control-attribution"),ve(this._container);for(var e in t._layers)t._layers[e].getAttribution&&this.addAttribution(t._layers[e].getAttribution());return this._update(),t.on("layeradd",this._addAttribution,this),this._container},onRemove:function(t){t.off("layeradd",this._addAttribution,this)},_addAttribution:function(t){t.layer.getAttribution&&(this.addAttribution(t.layer.getAttribution()),t.layer.once("remove",function(){this.removeAttribution(t.layer.getAttribution())},this))},setPrefix:function(t){return this.options.prefix=t,this._update(),this},addAttribution:function(t){return t?(this._attributions[t]||(this._attributions[t]=0),this._attributions[t]++,this._update(),this):this},removeAttribution:function(t){return t?(this._attributions[t]&&(this._attributions[t]--,this._update()),this):this},_update:function(){if(this._map){var t=[];for(var e in this._attributions)this._attributions[e]&&t.push(e);var n=[];this.options.prefix&&n.push(this.options.prefix),t.length&&n.push(t.join(", ")),this._container.innerHTML=n.join(' <span aria-hidden="true">|</span> ')}}});R.mergeOptions({attributionControl:!0}),R.addInitHook(function(){this.options.attributionControl&&new Wn().addTo(this)});var Va=function(t){return new Wn(t)};mt.Layers=ro,mt.Zoom=Fn,mt.Scale=so,mt.Attribution=Wn,ye.layers=ja,ye.zoom=Ga,ye.scale=Ua,ye.attribution=Va;var xt=Lt.extend({initialize:function(t){this._map=t},enable:function(){return this._enabled?this:(this._enabled=!0,this.addHooks(),this)},disable:function(){return this._enabled?(this._enabled=!1,this.removeHooks(),this):this},enabled:function(){return!!this._enabled}});xt.addTo=function(t,e){return t.addHandler(e,this),this};var Qa={Events:ht},ao=z.touch?"touchstart mousedown":"mousedown",St=ue.extend({options:{clickTolerance:3},initialize:function(t,e,n,o){O(this,o),this._element=t,this._dragStartTarget=e||t,this._preventOutline=n},enable:function(){this._enabled||(S(this._dragStartTarget,ao,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(St._dragging===this&&this.finishDrag(!0),U(this._dragStartTarget,ao,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(t){if(this._enabled&&(this._moved=!1,!kn(this._element,"leaflet-zoom-anim"))){if(t.touches&&t.touches.length!==1){St._dragging===this&&this.finishDrag();return}if(!(St._dragging||t.shiftKey||t.which!==1&&t.button!==1&&!t.touches)&&(St._dragging=this,this._preventOutline&&On(this._element),Mn(),pe(),!this._moving)){this.fire("down");var e=t.touches?t.touches[0]:t,n=$i(this._element);this._startPoint=new C(e.clientX,e.clientY),this._startPos=jt(this._element),this._parentScale=Zn(n);var o=t.type==="mousedown";S(document,o?"mousemove":"touchmove",this._onMove,this),S(document,o?"mouseup":"touchend touchcancel",this._onUp,this)}}},_onMove:function(t){if(this._enabled){if(t.touches&&t.touches.length>1){this._moved=!0;return}var e=t.touches&&t.touches.length===1?t.touches[0]:t,n=new C(e.clientX,e.clientY)._subtract(this._startPoint);!n.x&&!n.y||Math.abs(n.x)+Math.abs(n.y)<this.options.clickTolerance||(n.x/=this._parentScale.x,n.y/=this._parentScale.y,nt(t),this._moved||(this.fire("dragstart"),this._moved=!0,I(document.body,"leaflet-dragging"),this._lastTarget=t.target||t.srcElement,window.SVGElementInstance&&this._lastTarget instanceof window.SVGElementInstance&&(this._lastTarget=this._lastTarget.correspondingUseElement),I(this._lastTarget,"leaflet-drag-target")),this._newPos=this._startPos.add(n),this._moving=!0,this._lastEvent=t,this._updatePosition())}},_updatePosition:function(){var t={originalEvent:this._lastEvent};this.fire("predrag",t),J(this._element,this._newPos),this.fire("drag",t)},_onUp:function(){this._enabled&&this.finishDrag()},finishDrag:function(t){K(document.body,"leaflet-dragging"),this._lastTarget&&(K(this._lastTarget,"leaflet-drag-target"),this._lastTarget=null),U(document,"mousemove touchmove",this._onMove,this),U(document,"mouseup touchend touchcancel",this._onUp,this),Cn(),me();var e=this._moved&&this._moving;this._moving=!1,St._dragging=!1,e&&this.fire("dragend",{noInertia:t,distance:this._newPos.distanceTo(this._startPos)})}});function lo(t,e,n){var o,a=[1,4,2,8],h,f,_,p,g,A,T,B;for(h=0,A=t.length;h<A;h++)t[h]._code=Ht(t[h],e);for(_=0;_<4;_++){for(T=a[_],o=[],h=0,A=t.length,f=A-1;h<A;f=h++)p=t[h],g=t[f],p._code&T?g._code&T||(B=je(g,p,T,e,n),B._code=Ht(B,e),o.push(B)):(g._code&T&&(B=je(g,p,T,e,n),B._code=Ht(B,e),o.push(B)),o.push(p));t=o}return t}function ho(t,e){var n,o,a,h,f,_,p,g,A;if(!t||t.length===0)throw new Error("latlngs not passed");dt(t)||(console.warn("latlngs are not flat! Only the first ring will be used"),t=t[0]);var T=N([0,0]),B=Y(t),ot=B.getNorthWest().distanceTo(B.getSouthWest())*B.getNorthEast().distanceTo(B.getNorthWest());ot<1700&&(T=jn(t));var et=t.length,_t=[];for(n=0;n<et;n++){var lt=N(t[n]);_t.push(e.project(N([lt.lat-T.lat,lt.lng-T.lng])))}for(_=p=g=0,n=0,o=et-1;n<et;o=n++)a=_t[n],h=_t[o],f=a.y*h.x-h.y*a.x,p+=(a.x+h.x)*f,g+=(a.y+h.y)*f,_+=f*3;_===0?A=_t[0]:A=[p/_,g/_];var re=e.unproject(M(A));return N([re.lat+T.lat,re.lng+T.lng])}function jn(t){for(var e=0,n=0,o=0,a=0;a<t.length;a++){var h=N(t[a]);e+=h.lat,n+=h.lng,o++}return N([e/o,n/o])}var qa={__proto__:null,clipPolygon:lo,polygonCenter:ho,centroid:jn};function uo(t,e){if(!e||!t.length)return t.slice();var n=e*e;return t=Ja(t,n),t=Ya(t,n),t}function co(t,e,n){return Math.sqrt(xe(t,e,n,!0))}function Ka(t,e,n){return xe(t,e,n)}function Ya(t,e){var n=t.length,o=typeof Uint8Array<"u"?Uint8Array:Array,a=new o(n);a[0]=a[n-1]=1,Gn(t,a,e,0,n-1);var h,f=[];for(h=0;h<n;h++)a[h]&&f.push(t[h]);return f}function Gn(t,e,n,o,a){var h=0,f,_,p;for(_=o+1;_<=a-1;_++)p=xe(t[_],t[o],t[a],!0),p>h&&(f=_,h=p);h>n&&(e[f]=1,Gn(t,e,n,o,f),Gn(t,e,n,f,a))}function Ja(t,e){for(var n=[t[0]],o=1,a=0,h=t.length;o<h;o++)Xa(t[o],t[a])>e&&(n.push(t[o]),a=o);return a<h-1&&n.push(t[h-1]),n}var fo;function _o(t,e,n,o,a){var h=o?fo:Ht(t,n),f=Ht(e,n),_,p,g;for(fo=f;;){if(!(h|f))return[t,e];if(h&f)return!1;_=h||f,p=je(t,e,_,n,a),g=Ht(p,n),_===h?(t=p,h=g):(e=p,f=g)}}function je(t,e,n,o,a){var h=e.x-t.x,f=e.y-t.y,_=o.min,p=o.max,g,A;return n&8?(g=t.x+h*(p.y-t.y)/f,A=p.y):n&4?(g=t.x+h*(_.y-t.y)/f,A=_.y):n&2?(g=p.x,A=t.y+f*(p.x-t.x)/h):n&1&&(g=_.x,A=t.y+f*(_.x-t.x)/h),new C(g,A,a)}function Ht(t,e){var n=0;return t.x<e.min.x?n|=1:t.x>e.max.x&&(n|=2),t.y<e.min.y?n|=4:t.y>e.max.y&&(n|=8),n}function Xa(t,e){var n=e.x-t.x,o=e.y-t.y;return n*n+o*o}function xe(t,e,n,o){var a=e.x,h=e.y,f=n.x-a,_=n.y-h,p=f*f+_*_,g;return p>0&&(g=((t.x-a)*f+(t.y-h)*_)/p,g>1?(a=n.x,h=n.y):g>0&&(a+=f*g,h+=_*g)),f=t.x-a,_=t.y-h,o?f*f+_*_:new C(a,h)}function dt(t){return!W(t[0])||typeof t[0][0]!="object"&&typeof t[0][0]<"u"}function po(t){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),dt(t)}function mo(t,e){var n,o,a,h,f,_,p,g;if(!t||t.length===0)throw new Error("latlngs not passed");dt(t)||(console.warn("latlngs are not flat! Only the first ring will be used"),t=t[0]);var A=N([0,0]),T=Y(t),B=T.getNorthWest().distanceTo(T.getSouthWest())*T.getNorthEast().distanceTo(T.getNorthWest());B<1700&&(A=jn(t));var ot=t.length,et=[];for(n=0;n<ot;n++){var _t=N(t[n]);et.push(e.project(N([_t.lat-A.lat,_t.lng-A.lng])))}for(n=0,o=0;n<ot-1;n++)o+=et[n].distanceTo(et[n+1])/2;if(o===0)g=et[0];else for(n=0,h=0;n<ot-1;n++)if(f=et[n],_=et[n+1],a=f.distanceTo(_),h+=a,h>o){p=(h-o)/a,g=[_.x-p*(_.x-f.x),_.y-p*(_.y-f.y)];break}var lt=e.unproject(M(g));return N([lt.lat+A.lat,lt.lng+A.lng])}var $a={__proto__:null,simplify:uo,pointToSegmentDistance:co,closestPointOnSegment:Ka,clipSegment:_o,_getEdgeIntersection:je,_getBitCode:Ht,_sqClosestPointOnSegment:xe,isFlat:dt,_flat:po,polylineCenter:mo},Un={project:function(t){return new C(t.lng,t.lat)},unproject:function(t){return new F(t.y,t.x)},bounds:new H([-180,-90],[180,90])},Hn={R:6378137,R_MINOR:6356752314245179e-9,bounds:new H([-2003750834279e-5,-1549657073972e-5],[2003750834279e-5,1876465623138e-5]),project:function(t){var e=Math.PI/180,n=this.R,o=t.lat*e,a=this.R_MINOR/n,h=Math.sqrt(1-a*a),f=h*Math.sin(o),_=Math.tan(Math.PI/4-o/2)/Math.pow((1-f)/(1+f),h/2);return o=-n*Math.log(Math.max(_,1e-10)),new C(t.lng*e*n,o)},unproject:function(t){for(var e=180/Math.PI,n=this.R,o=this.R_MINOR/n,a=Math.sqrt(1-o*o),h=Math.exp(-t.y/n),f=Math.PI/2-2*Math.atan(h),_=0,p=.1,g;_<15&&Math.abs(p)>1e-7;_++)g=a*Math.sin(f),g=Math.pow((1-g)/(1+g),a/2),p=Math.PI/2-2*Math.atan(h*g)-f,f+=p;return new F(f*e,t.x*e/n)}},tl={__proto__:null,LonLat:Un,Mercator:Hn,SphericalMercator:gn},el=u({},Ct,{code:"EPSG:3395",projection:Hn,transformation:function(){var t=.5/(Math.PI*Hn.R);return ce(t,.5,-t,.5)}()}),go=u({},Ct,{code:"EPSG:4326",projection:Un,transformation:ce(1/180,1,-1/180,.5)}),nl=u({},Pt,{projection:Un,transformation:ce(1,0,-1,0),scale:function(t){return Math.pow(2,t)},zoom:function(t){return Math.log(t)/Math.LN2},distance:function(t,e){var n=e.lng-t.lng,o=e.lat-t.lat;return Math.sqrt(n*n+o*o)},infinite:!0});Pt.Earth=Ct,Pt.EPSG3395=el,Pt.EPSG3857=yn,Pt.EPSG900913=la,Pt.EPSG4326=go,Pt.Simple=nl;var gt=ue.extend({options:{pane:"overlayPane",attribution:null,bubblingMouseEvents:!0},addTo:function(t){return t.addLayer(this),this},remove:function(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom:function(t){return t&&t.removeLayer(this),this},getPane:function(t){return this._map.getPane(t?this.options[t]||t:this.options.pane)},addInteractiveTarget:function(t){return this._map._targets[m(t)]=this,this},removeInteractiveTarget:function(t){return delete this._map._targets[m(t)],this},getAttribution:function(){return this.options.attribution},_layerAdd:function(t){var e=t.target;if(e.hasLayer(this)){if(this._map=e,this._zoomAnimated=e._zoomAnimated,this.getEvents){var n=this.getEvents();e.on(n,this),this.once("remove",function(){e.off(n,this)},this)}this.onAdd(e),this.fire("add"),e.fire("layeradd",{layer:this})}}});R.include({addLayer:function(t){if(!t._layerAdd)throw new Error("The provided object is not a Layer.");var e=m(t);return this._layers[e]?this:(this._layers[e]=t,t._mapToAdd=this,t.beforeAdd&&t.beforeAdd(this),this.whenReady(t._layerAdd,t),this)},removeLayer:function(t){var e=m(t);return this._layers[e]?(this._loaded&&t.onRemove(this),delete this._layers[e],this._loaded&&(this.fire("layerremove",{layer:t}),t.fire("remove")),t._map=t._mapToAdd=null,this):this},hasLayer:function(t){return m(t)in this._layers},eachLayer:function(t,e){for(var n in this._layers)t.call(e,this._layers[n]);return this},_addLayers:function(t){t=t?W(t)?t:[t]:[];for(var e=0,n=t.length;e<n;e++)this.addLayer(t[e])},_addZoomLimit:function(t){(!isNaN(t.options.maxZoom)||!isNaN(t.options.minZoom))&&(this._zoomBoundLayers[m(t)]=t,this._updateZoomLevels())},_removeZoomLimit:function(t){var e=m(t);this._zoomBoundLayers[e]&&(delete this._zoomBoundLayers[e],this._updateZoomLevels())},_updateZoomLevels:function(){var t=1/0,e=-1/0,n=this._getZoomSpan();for(var o in this._zoomBoundLayers){var a=this._zoomBoundLayers[o].options;t=a.minZoom===void 0?t:Math.min(t,a.minZoom),e=a.maxZoom===void 0?e:Math.max(e,a.maxZoom)}this._layersMaxZoom=e===-1/0?void 0:e,this._layersMinZoom=t===1/0?void 0:t,n!==this._getZoomSpan()&&this.fire("zoomlevelschange"),this.options.maxZoom===void 0&&this._layersMaxZoom&&this.getZoom()>this._layersMaxZoom&&this.setZoom(this._layersMaxZoom),this.options.minZoom===void 0&&this._layersMinZoom&&this.getZoom()<this._layersMinZoom&&this.setZoom(this._layersMinZoom)}});var te=gt.extend({initialize:function(t,e){O(this,e),this._layers={};var n,o;if(t)for(n=0,o=t.length;n<o;n++)this.addLayer(t[n])},addLayer:function(t){var e=this.getLayerId(t);return this._layers[e]=t,this._map&&this._map.addLayer(t),this},removeLayer:function(t){var e=t in this._layers?t:this.getLayerId(t);return this._map&&this._layers[e]&&this._map.removeLayer(this._layers[e]),delete this._layers[e],this},hasLayer:function(t){var e=typeof t=="number"?t:this.getLayerId(t);return e in this._layers},clearLayers:function(){return this.eachLayer(this.removeLayer,this)},invoke:function(t){var e=Array.prototype.slice.call(arguments,1),n,o;for(n in this._layers)o=this._layers[n],o[t]&&o[t].apply(o,e);return this},onAdd:function(t){this.eachLayer(t.addLayer,t)},onRemove:function(t){this.eachLayer(t.removeLayer,t)},eachLayer:function(t,e){for(var n in this._layers)t.call(e,this._layers[n]);return this},getLayer:function(t){return this._layers[t]},getLayers:function(){var t=[];return this.eachLayer(t.push,t),t},setZIndex:function(t){return this.invoke("setZIndex",t)},getLayerId:function(t){return m(t)}}),il=function(t,e){return new te(t,e)},zt=te.extend({addLayer:function(t){return this.hasLayer(t)?this:(t.addEventParent(this),te.prototype.addLayer.call(this,t),this.fire("layeradd",{layer:t}))},removeLayer:function(t){return this.hasLayer(t)?(t in this._layers&&(t=this._layers[t]),t.removeEventParent(this),te.prototype.removeLayer.call(this,t),this.fire("layerremove",{layer:t})):this},setStyle:function(t){return this.invoke("setStyle",t)},bringToFront:function(){return this.invoke("bringToFront")},bringToBack:function(){return this.invoke("bringToBack")},getBounds:function(){var t=new at;for(var e in this._layers){var n=this._layers[e];t.extend(n.getBounds?n.getBounds():n.getLatLng())}return t}}),ol=function(t,e){return new zt(t,e)},ee=Lt.extend({options:{popupAnchor:[0,0],tooltipAnchor:[0,0],crossOrigin:!1},initialize:function(t){O(this,t)},createIcon:function(t){return this._createIcon("icon",t)},createShadow:function(t){return this._createIcon("shadow",t)},_createIcon:function(t,e){var n=this._getIconUrl(t);if(!n){if(t==="icon")throw new Error("iconUrl not set in Icon options (see the docs).");return null}var o=this._createImg(n,e&&e.tagName==="IMG"?e:null);return this._setIconStyles(o,t),(this.options.crossOrigin||this.options.crossOrigin==="")&&(o.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),o},_setIconStyles:function(t,e){var n=this.options,o=n[e+"Size"];typeof o=="number"&&(o=[o,o]);var a=M(o),h=M(e==="shadow"&&n.shadowAnchor||n.iconAnchor||a&&a.divideBy(2,!0));t.className="leaflet-marker-"+e+" "+(n.className||""),h&&(t.style.marginLeft=-h.x+"px",t.style.marginTop=-h.y+"px"),a&&(t.style.width=a.x+"px",t.style.height=a.y+"px")},_createImg:function(t,e){return e=e||document.createElement("img"),e.src=t,e},_getIconUrl:function(t){return z.retina&&this.options[t+"RetinaUrl"]||this.options[t+"Url"]}});function rl(t){return new ee(t)}var we=ee.extend({options:{iconUrl:"marker-icon.png",iconRetinaUrl:"marker-icon-2x.png",shadowUrl:"marker-shadow.png",iconSize:[25,41],iconAnchor:[12,41],popupAnchor:[1,-34],tooltipAnchor:[16,-28],shadowSize:[41,41]},_getIconUrl:function(t){return typeof we.imagePath!="string"&&(we.imagePath=this._detectIconPath()),(this.options.imagePath||we.imagePath)+ee.prototype._getIconUrl.call(this,t)},_stripUrl:function(t){var e=function(n,o,a){var h=o.exec(n);return h&&h[a]};return t=e(t,/^url\((['"])?(.+)\1\)$/,2),t&&e(t,/^(.*)marker-icon\.png$/,1)},_detectIconPath:function(){var t=D("div","leaflet-default-icon-path",document.body),e=_e(t,"background-image")||_e(t,"backgroundImage");if(document.body.removeChild(t),e=this._stripUrl(e),e)return e;var n=document.querySelector('link[href$="leaflet.css"]');return n?n.href.substring(0,n.href.length-11-1):""}}),vo=xt.extend({initialize:function(t){this._marker=t},addHooks:function(){var t=this._marker._icon;this._draggable||(this._draggable=new St(t,t,!0)),this._draggable.on({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).enable(),I(t,"leaflet-marker-draggable")},removeHooks:function(){this._draggable.off({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).disable(),this._marker._icon&&K(this._marker._icon,"leaflet-marker-draggable")},moved:function(){return this._draggable&&this._draggable._moved},_adjustPan:function(t){var e=this._marker,n=e._map,o=this._marker.options.autoPanSpeed,a=this._marker.options.autoPanPadding,h=jt(e._icon),f=n.getPixelBounds(),_=n.getPixelOrigin(),p=st(f.min._subtract(_).add(a),f.max._subtract(_).subtract(a));if(!p.contains(h)){var g=M((Math.max(p.max.x,h.x)-p.max.x)/(f.max.x-p.max.x)-(Math.min(p.min.x,h.x)-p.min.x)/(f.min.x-p.min.x),(Math.max(p.max.y,h.y)-p.max.y)/(f.max.y-p.max.y)-(Math.min(p.min.y,h.y)-p.min.y)/(f.min.y-p.min.y)).multiplyBy(o);n.panBy(g,{animate:!1}),this._draggable._newPos._add(g),this._draggable._startPos._add(g),J(e._icon,this._draggable._newPos),this._onDrag(t),this._panRequest=Q(this._adjustPan.bind(this,t))}},_onDragStart:function(){this._oldLatLng=this._marker.getLatLng(),this._marker.closePopup&&this._marker.closePopup(),this._marker.fire("movestart").fire("dragstart")},_onPreDrag:function(t){this._marker.options.autoPan&&(q(this._panRequest),this._panRequest=Q(this._adjustPan.bind(this,t)))},_onDrag:function(t){var e=this._marker,n=e._shadow,o=jt(e._icon),a=e._map.layerPointToLatLng(o);n&&J(n,o),e._latlng=a,t.latlng=a,t.oldLatLng=this._oldLatLng,e.fire("move",t).fire("drag",t)},_onDragEnd:function(t){q(this._panRequest),delete this._oldLatLng,this._marker.fire("moveend").fire("dragend",t)}}),Ge=gt.extend({options:{icon:new we,interactive:!0,keyboard:!0,title:"",alt:"Marker",zIndexOffset:0,opacity:1,riseOnHover:!1,riseOffset:250,pane:"markerPane",shadowPane:"shadowPane",bubblingMouseEvents:!1,autoPanOnFocus:!0,draggable:!1,autoPan:!1,autoPanPadding:[50,50],autoPanSpeed:10},initialize:function(t,e){O(this,e),this._latlng=N(t)},onAdd:function(t){this._zoomAnimated=this._zoomAnimated&&t.options.markerZoomAnimation,this._zoomAnimated&&t.on("zoomanim",this._animateZoom,this),this._initIcon(),this.update()},onRemove:function(t){this.dragging&&this.dragging.enabled()&&(this.options.draggable=!0,this.dragging.removeHooks()),delete this.dragging,this._zoomAnimated&&t.off("zoomanim",this._animateZoom,this),this._removeIcon(),this._removeShadow()},getEvents:function(){return{zoom:this.update,viewreset:this.update}},getLatLng:function(){return this._latlng},setLatLng:function(t){var e=this._latlng;return this._latlng=N(t),this.update(),this.fire("move",{oldLatLng:e,latlng:this._latlng})},setZIndexOffset:function(t){return this.options.zIndexOffset=t,this.update()},getIcon:function(){return this.options.icon},setIcon:function(t){return this.options.icon=t,this._map&&(this._initIcon(),this.update()),this._popup&&this.bindPopup(this._popup,this._popup.options),this},getElement:function(){return this._icon},update:function(){if(this._icon&&this._map){var t=this._map.latLngToLayerPoint(this._latlng).round();this._setPos(t)}return this},_initIcon:function(){var t=this.options,e="leaflet-zoom-"+(this._zoomAnimated?"animated":"hide"),n=t.icon.createIcon(this._icon),o=!1;n!==this._icon&&(this._icon&&this._removeIcon(),o=!0,t.title&&(n.title=t.title),n.tagName==="IMG"&&(n.alt=t.alt||"")),I(n,e),t.keyboard&&(n.tabIndex="0",n.setAttribute("role","button")),this._icon=n,t.riseOnHover&&this.on({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&S(n,"focus",this._panOnFocus,this);var a=t.icon.createShadow(this._shadow),h=!1;a!==this._shadow&&(this._removeShadow(),h=!0),a&&(I(a,e),a.alt=""),this._shadow=a,t.opacity<1&&this._updateOpacity(),o&&this.getPane().appendChild(this._icon),this._initInteraction(),a&&h&&this.getPane(t.shadowPane).appendChild(this._shadow)},_removeIcon:function(){this.options.riseOnHover&&this.off({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&U(this._icon,"focus",this._panOnFocus,this),V(this._icon),this.removeInteractiveTarget(this._icon),this._icon=null},_removeShadow:function(){this._shadow&&V(this._shadow),this._shadow=null},_setPos:function(t){this._icon&&J(this._icon,t),this._shadow&&J(this._shadow,t),this._zIndex=t.y+this.options.zIndexOffset,this._resetZIndex()},_updateZIndex:function(t){this._icon&&(this._icon.style.zIndex=this._zIndex+t)},_animateZoom:function(t){var e=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center).round();this._setPos(e)},_initInteraction:function(){if(this.options.interactive&&(I(this._icon,"leaflet-interactive"),this.addInteractiveTarget(this._icon),vo)){var t=this.options.draggable;this.dragging&&(t=this.dragging.enabled(),this.dragging.disable()),this.dragging=new vo(this),t&&this.dragging.enable()}},setOpacity:function(t){return this.options.opacity=t,this._map&&this._updateOpacity(),this},_updateOpacity:function(){var t=this.options.opacity;this._icon&&ft(this._icon,t),this._shadow&&ft(this._shadow,t)},_bringToFront:function(){this._updateZIndex(this.options.riseOffset)},_resetZIndex:function(){this._updateZIndex(0)},_panOnFocus:function(){var t=this._map;if(t){var e=this.options.icon.options,n=e.iconSize?M(e.iconSize):M(0,0),o=e.iconAnchor?M(e.iconAnchor):M(0,0);t.panInside(this._latlng,{paddingTopLeft:o,paddingBottomRight:n.subtract(o)})}},_getPopupAnchor:function(){return this.options.icon.options.popupAnchor},_getTooltipAnchor:function(){return this.options.icon.options.tooltipAnchor}});function sl(t,e){return new Ge(t,e)}var Ot=gt.extend({options:{stroke:!0,color:"#3388ff",weight:3,opacity:1,lineCap:"round",lineJoin:"round",dashArray:null,dashOffset:null,fill:!1,fillColor:null,fillOpacity:.2,fillRule:"evenodd",interactive:!0,bubblingMouseEvents:!0},beforeAdd:function(t){this._renderer=t.getRenderer(this)},onAdd:function(){this._renderer._initPath(this),this._reset(),this._renderer._addPath(this)},onRemove:function(){this._renderer._removePath(this)},redraw:function(){return this._map&&this._renderer._updatePath(this),this},setStyle:function(t){return O(this,t),this._renderer&&(this._renderer._updateStyle(this),this.options.stroke&&t&&Object.prototype.hasOwnProperty.call(t,"weight")&&this._updateBounds()),this},bringToFront:function(){return this._renderer&&this._renderer._bringToFront(this),this},bringToBack:function(){return this._renderer&&this._renderer._bringToBack(this),this},getElement:function(){return this._path},_reset:function(){this._project(),this._update()},_clickTolerance:function(){return(this.options.stroke?this.options.weight/2:0)+(this._renderer.options.tolerance||0)}}),Ue=Ot.extend({options:{fill:!0,radius:10},initialize:function(t,e){O(this,e),this._latlng=N(t),this._radius=this.options.radius},setLatLng:function(t){var e=this._latlng;return this._latlng=N(t),this.redraw(),this.fire("move",{oldLatLng:e,latlng:this._latlng})},getLatLng:function(){return this._latlng},setRadius:function(t){return this.options.radius=this._radius=t,this.redraw()},getRadius:function(){return this._radius},setStyle:function(t){var e=t&&t.radius||this._radius;return Ot.prototype.setStyle.call(this,t),this.setRadius(e),this},_project:function(){this._point=this._map.latLngToLayerPoint(this._latlng),this._updateBounds()},_updateBounds:function(){var t=this._radius,e=this._radiusY||t,n=this._clickTolerance(),o=[t+n,e+n];this._pxBounds=new H(this._point.subtract(o),this._point.add(o))},_update:function(){this._map&&this._updatePath()},_updatePath:function(){this._renderer._updateCircle(this)},_empty:function(){return this._radius&&!this._renderer._bounds.intersects(this._pxBounds)},_containsPoint:function(t){return t.distanceTo(this._point)<=this._radius+this._clickTolerance()}});function al(t,e){return new Ue(t,e)}var Vn=Ue.extend({initialize:function(t,e,n){if(typeof e=="number"&&(e=u({},n,{radius:e})),O(this,e),this._latlng=N(t),isNaN(this.options.radius))throw new Error("Circle radius cannot be NaN");this._mRadius=this.options.radius},setRadius:function(t){return this._mRadius=t,this.redraw()},getRadius:function(){return this._mRadius},getBounds:function(){var t=[this._radius,this._radiusY||this._radius];return new at(this._map.layerPointToLatLng(this._point.subtract(t)),this._map.layerPointToLatLng(this._point.add(t)))},setStyle:Ot.prototype.setStyle,_project:function(){var t=this._latlng.lng,e=this._latlng.lat,n=this._map,o=n.options.crs;if(o.distance===Ct.distance){var a=Math.PI/180,h=this._mRadius/Ct.R/a,f=n.project([e+h,t]),_=n.project([e-h,t]),p=f.add(_).divideBy(2),g=n.unproject(p).lat,A=Math.acos((Math.cos(h*a)-Math.sin(e*a)*Math.sin(g*a))/(Math.cos(e*a)*Math.cos(g*a)))/a;(isNaN(A)||A===0)&&(A=h/Math.cos(Math.PI/180*e)),this._point=p.subtract(n.getPixelOrigin()),this._radius=isNaN(A)?0:p.x-n.project([g,t-A]).x,this._radiusY=p.y-f.y}else{var T=o.unproject(o.project(this._latlng).subtract([this._mRadius,0]));this._point=n.latLngToLayerPoint(this._latlng),this._radius=this._point.x-n.latLngToLayerPoint(T).x}this._updateBounds()}});function ll(t,e,n){return new Vn(t,e,n)}var kt=Ot.extend({options:{smoothFactor:1,noClip:!1},initialize:function(t,e){O(this,e),this._setLatLngs(t)},getLatLngs:function(){return this._latlngs},setLatLngs:function(t){return this._setLatLngs(t),this.redraw()},isEmpty:function(){return!this._latlngs.length},closestLayerPoint:function(t){for(var e=1/0,n=null,o=xe,a,h,f=0,_=this._parts.length;f<_;f++)for(var p=this._parts[f],g=1,A=p.length;g<A;g++){a=p[g-1],h=p[g];var T=o(t,a,h,!0);T<e&&(e=T,n=o(t,a,h))}return n&&(n.distance=Math.sqrt(e)),n},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");return mo(this._defaultShape(),this._map.options.crs)},getBounds:function(){return this._bounds},addLatLng:function(t,e){return e=e||this._defaultShape(),t=N(t),e.push(t),this._bounds.extend(t),this.redraw()},_setLatLngs:function(t){this._bounds=new at,this._latlngs=this._convertLatLngs(t)},_defaultShape:function(){return dt(this._latlngs)?this._latlngs:this._latlngs[0]},_convertLatLngs:function(t){for(var e=[],n=dt(t),o=0,a=t.length;o<a;o++)n?(e[o]=N(t[o]),this._bounds.extend(e[o])):e[o]=this._convertLatLngs(t[o]);return e},_project:function(){var t=new H;this._rings=[],this._projectLatlngs(this._latlngs,this._rings,t),this._bounds.isValid()&&t.isValid()&&(this._rawPxBounds=t,this._updateBounds())},_updateBounds:function(){var t=this._clickTolerance(),e=new C(t,t);this._rawPxBounds&&(this._pxBounds=new H([this._rawPxBounds.min.subtract(e),this._rawPxBounds.max.add(e)]))},_projectLatlngs:function(t,e,n){var o=t[0]instanceof F,a=t.length,h,f;if(o){for(f=[],h=0;h<a;h++)f[h]=this._map.latLngToLayerPoint(t[h]),n.extend(f[h]);e.push(f)}else for(h=0;h<a;h++)this._projectLatlngs(t[h],e,n)},_clipPoints:function(){var t=this._renderer._bounds;if(this._parts=[],!(!this._pxBounds||!this._pxBounds.intersects(t))){if(this.options.noClip){this._parts=this._rings;return}var e=this._parts,n,o,a,h,f,_,p;for(n=0,a=0,h=this._rings.length;n<h;n++)for(p=this._rings[n],o=0,f=p.length;o<f-1;o++)_=_o(p[o],p[o+1],t,o,!0),_&&(e[a]=e[a]||[],e[a].push(_[0]),(_[1]!==p[o+1]||o===f-2)&&(e[a].push(_[1]),a++))}},_simplifyPoints:function(){for(var t=this._parts,e=this.options.smoothFactor,n=0,o=t.length;n<o;n++)t[n]=uo(t[n],e)},_update:function(){this._map&&(this._clipPoints(),this._simplifyPoints(),this._updatePath())},_updatePath:function(){this._renderer._updatePoly(this)},_containsPoint:function(t,e){var n,o,a,h,f,_,p=this._clickTolerance();if(!this._pxBounds||!this._pxBounds.contains(t))return!1;for(n=0,h=this._parts.length;n<h;n++)for(_=this._parts[n],o=0,f=_.length,a=f-1;o<f;a=o++)if(!(!e&&o===0)&&co(t,_[a],_[o])<=p)return!0;return!1}});function hl(t,e){return new kt(t,e)}kt._flat=po;var ne=kt.extend({options:{fill:!0},isEmpty:function(){return!this._latlngs.length||!this._latlngs[0].length},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");return ho(this._defaultShape(),this._map.options.crs)},_convertLatLngs:function(t){var e=kt.prototype._convertLatLngs.call(this,t),n=e.length;return n>=2&&e[0]instanceof F&&e[0].equals(e[n-1])&&e.pop(),e},_setLatLngs:function(t){kt.prototype._setLatLngs.call(this,t),dt(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return dt(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var t=this._renderer._bounds,e=this.options.weight,n=new C(e,e);if(t=new H(t.min.subtract(n),t.max.add(n)),this._parts=[],!(!this._pxBounds||!this._pxBounds.intersects(t))){if(this.options.noClip){this._parts=this._rings;return}for(var o=0,a=this._rings.length,h;o<a;o++)h=lo(this._rings[o],t,!0),h.length&&this._parts.push(h)}},_updatePath:function(){this._renderer._updatePoly(this,!0)},_containsPoint:function(t){var e=!1,n,o,a,h,f,_,p,g;if(!this._pxBounds||!this._pxBounds.contains(t))return!1;for(h=0,p=this._parts.length;h<p;h++)for(n=this._parts[h],f=0,g=n.length,_=g-1;f<g;_=f++)o=n[f],a=n[_],o.y>t.y!=a.y>t.y&&t.x<(a.x-o.x)*(t.y-o.y)/(a.y-o.y)+o.x&&(e=!e);return e||kt.prototype._containsPoint.call(this,t,!0)}});function ul(t,e){return new ne(t,e)}var Tt=zt.extend({initialize:function(t,e){O(this,e),this._layers={},t&&this.addData(t)},addData:function(t){var e=W(t)?t:t.features,n,o,a;if(e){for(n=0,o=e.length;n<o;n++)a=e[n],(a.geometries||a.geometry||a.features||a.coordinates)&&this.addData(a);return this}var h=this.options;if(h.filter&&!h.filter(t))return this;var f=He(t,h);return f?(f.feature=qe(t),f.defaultOptions=f.options,this.resetStyle(f),h.onEachFeature&&h.onEachFeature(t,f),this.addLayer(f)):this},resetStyle:function(t){return t===void 0?this.eachLayer(this.resetStyle,this):(t.options=u({},t.defaultOptions),this._setLayerStyle(t,this.options.style),this)},setStyle:function(t){return this.eachLayer(function(e){this._setLayerStyle(e,t)},this)},_setLayerStyle:function(t,e){t.setStyle&&(typeof e=="function"&&(e=e(t.feature)),t.setStyle(e))}});function He(t,e){var n=t.type==="Feature"?t.geometry:t,o=n?n.coordinates:null,a=[],h=e&&e.pointToLayer,f=e&&e.coordsToLatLng||Qn,_,p,g,A;if(!o&&!n)return null;switch(n.type){case"Point":return _=f(o),yo(h,t,_,e);case"MultiPoint":for(g=0,A=o.length;g<A;g++)_=f(o[g]),a.push(yo(h,t,_,e));return new zt(a);case"LineString":case"MultiLineString":return p=Ve(o,n.type==="LineString"?0:1,f),new kt(p,e);case"Polygon":case"MultiPolygon":return p=Ve(o,n.type==="Polygon"?1:2,f),new ne(p,e);case"GeometryCollection":for(g=0,A=n.geometries.length;g<A;g++){var T=He({geometry:n.geometries[g],type:"Feature",properties:t.properties},e);T&&a.push(T)}return new zt(a);case"FeatureCollection":for(g=0,A=n.features.length;g<A;g++){var B=He(n.features[g],e);B&&a.push(B)}return new zt(a);default:throw new Error("Invalid GeoJSON object.")}}function yo(t,e,n,o){return t?t(e,n):new Ge(n,o&&o.markersInheritOptions&&o)}function Qn(t){return new F(t[1],t[0],t[2])}function Ve(t,e,n){for(var o=[],a=0,h=t.length,f;a<h;a++)f=e?Ve(t[a],e-1,n):(n||Qn)(t[a]),o.push(f);return o}function qn(t,e){return t=N(t),t.alt!==void 0?[y(t.lng,e),y(t.lat,e),y(t.alt,e)]:[y(t.lng,e),y(t.lat,e)]}function Qe(t,e,n,o){for(var a=[],h=0,f=t.length;h<f;h++)a.push(e?Qe(t[h],dt(t[h])?0:e-1,n,o):qn(t[h],o));return!e&&n&&a.length>0&&a.push(a[0].slice()),a}function ie(t,e){return t.feature?u({},t.feature,{geometry:e}):qe(e)}function qe(t){return t.type==="Feature"||t.type==="FeatureCollection"?t:{type:"Feature",properties:{},geometry:t}}var Kn={toGeoJSON:function(t){return ie(this,{type:"Point",coordinates:qn(this.getLatLng(),t)})}};Ge.include(Kn),Vn.include(Kn),Ue.include(Kn),kt.include({toGeoJSON:function(t){var e=!dt(this._latlngs),n=Qe(this._latlngs,e?1:0,!1,t);return ie(this,{type:(e?"Multi":"")+"LineString",coordinates:n})}}),ne.include({toGeoJSON:function(t){var e=!dt(this._latlngs),n=e&&!dt(this._latlngs[0]),o=Qe(this._latlngs,n?2:e?1:0,!0,t);return e||(o=[o]),ie(this,{type:(n?"Multi":"")+"Polygon",coordinates:o})}}),te.include({toMultiPoint:function(t){var e=[];return this.eachLayer(function(n){e.push(n.toGeoJSON(t).geometry.coordinates)}),ie(this,{type:"MultiPoint",coordinates:e})},toGeoJSON:function(t){var e=this.feature&&this.feature.geometry&&this.feature.geometry.type;if(e==="MultiPoint")return this.toMultiPoint(t);var n=e==="GeometryCollection",o=[];return this.eachLayer(function(a){if(a.toGeoJSON){var h=a.toGeoJSON(t);if(n)o.push(h.geometry);else{var f=qe(h);f.type==="FeatureCollection"?o.push.apply(o,f.features):o.push(f)}}}),n?ie(this,{geometries:o,type:"GeometryCollection"}):{type:"FeatureCollection",features:o}}});function xo(t,e){return new Tt(t,e)}var cl=xo,Ke=gt.extend({options:{opacity:1,alt:"",interactive:!1,crossOrigin:!1,errorOverlayUrl:"",zIndex:1,className:""},initialize:function(t,e,n){this._url=t,this._bounds=Y(e),O(this,n)},onAdd:function(){this._image||(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(I(this._image,"leaflet-interactive"),this.addInteractiveTarget(this._image)),this.getPane().appendChild(this._image),this._reset()},onRemove:function(){V(this._image),this.options.interactive&&this.removeInteractiveTarget(this._image)},setOpacity:function(t){return this.options.opacity=t,this._image&&this._updateOpacity(),this},setStyle:function(t){return t.opacity&&this.setOpacity(t.opacity),this},bringToFront:function(){return this._map&&Xt(this._image),this},bringToBack:function(){return this._map&&$t(this._image),this},setUrl:function(t){return this._url=t,this._image&&(this._image.src=t),this},setBounds:function(t){return this._bounds=Y(t),this._map&&this._reset(),this},getEvents:function(){var t={zoom:this._reset,viewreset:this._reset};return this._zoomAnimated&&(t.zoomanim=this._animateZoom),t},setZIndex:function(t){return this.options.zIndex=t,this._updateZIndex(),this},getBounds:function(){return this._bounds},getElement:function(){return this._image},_initImage:function(){var t=this._url.tagName==="IMG",e=this._image=t?this._url:D("img");if(I(e,"leaflet-image-layer"),this._zoomAnimated&&I(e,"leaflet-zoom-animated"),this.options.className&&I(e,this.options.className),e.onselectstart=w,e.onmousemove=w,e.onload=d(this.fire,this,"load"),e.onerror=d(this._overlayOnError,this,"error"),(this.options.crossOrigin||this.options.crossOrigin==="")&&(e.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),this.options.zIndex&&this._updateZIndex(),t){this._url=e.src;return}e.src=this._url,e.alt=this.options.alt},_animateZoom:function(t){var e=this._map.getZoomScale(t.zoom),n=this._map._latLngBoundsToNewLayerBounds(this._bounds,t.zoom,t.center).min;Wt(this._image,n,e)},_reset:function(){var t=this._image,e=new H(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),n=e.getSize();J(t,e.min),t.style.width=n.x+"px",t.style.height=n.y+"px"},_updateOpacity:function(){ft(this._image,this.options.opacity)},_updateZIndex:function(){this._image&&this.options.zIndex!==void 0&&this.options.zIndex!==null&&(this._image.style.zIndex=this.options.zIndex)},_overlayOnError:function(){this.fire("error");var t=this.options.errorOverlayUrl;t&&this._url!==t&&(this._url=t,this._image.src=t)},getCenter:function(){return this._bounds.getCenter()}}),fl=function(t,e,n){return new Ke(t,e,n)},wo=Ke.extend({options:{autoplay:!0,loop:!0,keepAspectRatio:!0,muted:!1,playsInline:!0},_initImage:function(){var t=this._url.tagName==="VIDEO",e=this._image=t?this._url:D("video");if(I(e,"leaflet-image-layer"),this._zoomAnimated&&I(e,"leaflet-zoom-animated"),this.options.className&&I(e,this.options.className),e.onselectstart=w,e.onmousemove=w,e.onloadeddata=d(this.fire,this,"load"),t){for(var n=e.getElementsByTagName("source"),o=[],a=0;a<n.length;a++)o.push(n[a].src);this._url=n.length>0?o:[e.src];return}W(this._url)||(this._url=[this._url]),!this.options.keepAspectRatio&&Object.prototype.hasOwnProperty.call(e.style,"objectFit")&&(e.style.objectFit="fill"),e.autoplay=!!this.options.autoplay,e.loop=!!this.options.loop,e.muted=!!this.options.muted,e.playsInline=!!this.options.playsInline;for(var h=0;h<this._url.length;h++){var f=D("source");f.src=this._url[h],e.appendChild(f)}}});function dl(t,e,n){return new wo(t,e,n)}var bo=Ke.extend({_initImage:function(){var t=this._image=this._url;I(t,"leaflet-image-layer"),this._zoomAnimated&&I(t,"leaflet-zoom-animated"),this.options.className&&I(t,this.options.className),t.onselectstart=w,t.onmousemove=w}});function _l(t,e,n){return new bo(t,e,n)}var wt=gt.extend({options:{interactive:!1,offset:[0,0],className:"",pane:void 0,content:""},initialize:function(t,e){t&&(t instanceof F||W(t))?(this._latlng=N(t),O(this,e)):(O(this,t),this._source=e),this.options.content&&(this._content=this.options.content)},openOn:function(t){return t=arguments.length?t:this._source._map,t.hasLayer(this)||t.addLayer(this),this},close:function(){return this._map&&this._map.removeLayer(this),this},toggle:function(t){return this._map?this.close():(arguments.length?this._source=t:t=this._source,this._prepareOpen(),this.openOn(t._map)),this},onAdd:function(t){this._zoomAnimated=t._zoomAnimated,this._container||this._initLayout(),t._fadeAnimated&&ft(this._container,0),clearTimeout(this._removeTimeout),this.getPane().appendChild(this._container),this.update(),t._fadeAnimated&&ft(this._container,1),this.bringToFront(),this.options.interactive&&(I(this._container,"leaflet-interactive"),this.addInteractiveTarget(this._container))},onRemove:function(t){t._fadeAnimated?(ft(this._container,0),this._removeTimeout=setTimeout(d(V,void 0,this._container),200)):V(this._container),this.options.interactive&&(K(this._container,"leaflet-interactive"),this.removeInteractiveTarget(this._container))},getLatLng:function(){return this._latlng},setLatLng:function(t){return this._latlng=N(t),this._map&&(this._updatePosition(),this._adjustPan()),this},getContent:function(){return this._content},setContent:function(t){return this._content=t,this.update(),this},getElement:function(){return this._container},update:function(){this._map&&(this._container.style.visibility="hidden",this._updateContent(),this._updateLayout(),this._updatePosition(),this._container.style.visibility="",this._adjustPan())},getEvents:function(){var t={zoom:this._updatePosition,viewreset:this._updatePosition};return this._zoomAnimated&&(t.zoomanim=this._animateZoom),t},isOpen:function(){return!!this._map&&this._map.hasLayer(this)},bringToFront:function(){return this._map&&Xt(this._container),this},bringToBack:function(){return this._map&&$t(this._container),this},_prepareOpen:function(t){var e=this._source;if(!e._map)return!1;if(e instanceof zt){e=null;var n=this._source._layers;for(var o in n)if(n[o]._map){e=n[o];break}if(!e)return!1;this._source=e}if(!t)if(e.getCenter)t=e.getCenter();else if(e.getLatLng)t=e.getLatLng();else if(e.getBounds)t=e.getBounds().getCenter();else throw new Error("Unable to get source layer LatLng.");return this.setLatLng(t),this._map&&this.update(),!0},_updateContent:function(){if(this._content){var t=this._contentNode,e=typeof this._content=="function"?this._content(this._source||this):this._content;if(typeof e=="string")t.innerHTML=e;else{for(;t.hasChildNodes();)t.removeChild(t.firstChild);t.appendChild(e)}this.fire("contentupdate")}},_updatePosition:function(){if(this._map){var t=this._map.latLngToLayerPoint(this._latlng),e=M(this.options.offset),n=this._getAnchor();this._zoomAnimated?J(this._container,t.add(n)):e=e.add(t).add(n);var o=this._containerBottom=-e.y,a=this._containerLeft=-Math.round(this._containerWidth/2)+e.x;this._container.style.bottom=o+"px",this._container.style.left=a+"px"}},_getAnchor:function(){return[0,0]}});R.include({_initOverlay:function(t,e,n,o){var a=e;return a instanceof t||(a=new t(o).setContent(e)),n&&a.setLatLng(n),a}}),gt.include({_initOverlay:function(t,e,n,o){var a=n;return a instanceof t?(O(a,o),a._source=this):(a=e&&!o?e:new t(o,this),a.setContent(n)),a}});var Ye=wt.extend({options:{pane:"popupPane",offset:[0,7],maxWidth:300,minWidth:50,maxHeight:null,autoPan:!0,autoPanPaddingTopLeft:null,autoPanPaddingBottomRight:null,autoPanPadding:[5,5],keepInView:!1,closeButton:!0,autoClose:!0,closeOnEscapeKey:!0,className:""},openOn:function(t){return t=arguments.length?t:this._source._map,!t.hasLayer(this)&&t._popup&&t._popup.options.autoClose&&t.removeLayer(t._popup),t._popup=this,wt.prototype.openOn.call(this,t)},onAdd:function(t){wt.prototype.onAdd.call(this,t),t.fire("popupopen",{popup:this}),this._source&&(this._source.fire("popupopen",{popup:this},!0),this._source instanceof Ot||this._source.on("preclick",Gt))},onRemove:function(t){wt.prototype.onRemove.call(this,t),t.fire("popupclose",{popup:this}),this._source&&(this._source.fire("popupclose",{popup:this},!0),this._source instanceof Ot||this._source.off("preclick",Gt))},getEvents:function(){var t=wt.prototype.getEvents.call(this);return(this.options.closeOnClick!==void 0?this.options.closeOnClick:this._map.options.closePopupOnClick)&&(t.preclick=this.close),this.options.keepInView&&(t.moveend=this._adjustPan),t},_initLayout:function(){var t="leaflet-popup",e=this._container=D("div",t+" "+(this.options.className||"")+" leaflet-zoom-animated"),n=this._wrapper=D("div",t+"-content-wrapper",e);if(this._contentNode=D("div",t+"-content",n),ve(e),Rn(this._contentNode),S(e,"contextmenu",Gt),this._tipContainer=D("div",t+"-tip-container",e),this._tip=D("div",t+"-tip",this._tipContainer),this.options.closeButton){var o=this._closeButton=D("a",t+"-close-button",e);o.setAttribute("role","button"),o.setAttribute("aria-label","Close popup"),o.href="#close",o.innerHTML='<span aria-hidden="true">&#215;</span>',S(o,"click",function(a){nt(a),this.close()},this)}},_updateLayout:function(){var t=this._contentNode,e=t.style;e.width="",e.whiteSpace="nowrap";var n=t.offsetWidth;n=Math.min(n,this.options.maxWidth),n=Math.max(n,this.options.minWidth),e.width=n+1+"px",e.whiteSpace="",e.height="";var o=t.offsetHeight,a=this.options.maxHeight,h="leaflet-popup-scrolled";a&&o>a?(e.height=a+"px",I(t,h)):K(t,h),this._containerWidth=this._container.offsetWidth},_animateZoom:function(t){var e=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center),n=this._getAnchor();J(this._container,e.add(n))},_adjustPan:function(){if(this.options.autoPan){if(this._map._panAnim&&this._map._panAnim.stop(),this._autopanning){this._autopanning=!1;return}var t=this._map,e=parseInt(_e(this._container,"marginBottom"),10)||0,n=this._container.offsetHeight+e,o=this._containerWidth,a=new C(this._containerLeft,-n-this._containerBottom);a._add(jt(this._container));var h=t.layerPointToContainerPoint(a),f=M(this.options.autoPanPadding),_=M(this.options.autoPanPaddingTopLeft||f),p=M(this.options.autoPanPaddingBottomRight||f),g=t.getSize(),A=0,T=0;h.x+o+p.x>g.x&&(A=h.x+o-g.x+p.x),h.x-A-_.x<0&&(A=h.x-_.x),h.y+n+p.y>g.y&&(T=h.y+n-g.y+p.y),h.y-T-_.y<0&&(T=h.y-_.y),(A||T)&&(this.options.keepInView&&(this._autopanning=!0),t.fire("autopanstart").panBy([A,T]))}},_getAnchor:function(){return M(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}}),pl=function(t,e){return new Ye(t,e)};R.mergeOptions({closePopupOnClick:!0}),R.include({openPopup:function(t,e,n){return this._initOverlay(Ye,t,e,n).openOn(this),this},closePopup:function(t){return t=arguments.length?t:this._popup,t&&t.close(),this}}),gt.include({bindPopup:function(t,e){return this._popup=this._initOverlay(Ye,this._popup,t,e),this._popupHandlersAdded||(this.on({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!0),this},unbindPopup:function(){return this._popup&&(this.off({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!1,this._popup=null),this},openPopup:function(t){return this._popup&&(this instanceof zt||(this._popup._source=this),this._popup._prepareOpen(t||this._latlng)&&this._popup.openOn(this._map)),this},closePopup:function(){return this._popup&&this._popup.close(),this},togglePopup:function(){return this._popup&&this._popup.toggle(this),this},isPopupOpen:function(){return this._popup?this._popup.isOpen():!1},setPopupContent:function(t){return this._popup&&this._popup.setContent(t),this},getPopup:function(){return this._popup},_openPopup:function(t){if(!(!this._popup||!this._map)){Ut(t);var e=t.layer||t.target;if(this._popup._source===e&&!(e instanceof Ot)){this._map.hasLayer(this._popup)?this.closePopup():this.openPopup(t.latlng);return}this._popup._source=e,this.openPopup(t.latlng)}},_movePopup:function(t){this._popup.setLatLng(t.latlng)},_onKeyPress:function(t){t.originalEvent.keyCode===13&&this._openPopup(t)}});var Je=wt.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,opacity:.9},onAdd:function(t){wt.prototype.onAdd.call(this,t),this.setOpacity(this.options.opacity),t.fire("tooltipopen",{tooltip:this}),this._source&&(this.addEventParent(this._source),this._source.fire("tooltipopen",{tooltip:this},!0))},onRemove:function(t){wt.prototype.onRemove.call(this,t),t.fire("tooltipclose",{tooltip:this}),this._source&&(this.removeEventParent(this._source),this._source.fire("tooltipclose",{tooltip:this},!0))},getEvents:function(){var t=wt.prototype.getEvents.call(this);return this.options.permanent||(t.preclick=this.close),t},_initLayout:function(){var t="leaflet-tooltip",e=t+" "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=D("div",e),this._container.setAttribute("role","tooltip"),this._container.setAttribute("id","leaflet-tooltip-"+m(this))},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(t){var e,n,o=this._map,a=this._container,h=o.latLngToContainerPoint(o.getCenter()),f=o.layerPointToContainerPoint(t),_=this.options.direction,p=a.offsetWidth,g=a.offsetHeight,A=M(this.options.offset),T=this._getAnchor();_==="top"?(e=p/2,n=g):_==="bottom"?(e=p/2,n=0):_==="center"?(e=p/2,n=g/2):_==="right"?(e=0,n=g/2):_==="left"?(e=p,n=g/2):f.x<h.x?(_="right",e=0,n=g/2):(_="left",e=p+(A.x+T.x)*2,n=g/2),t=t.subtract(M(e,n,!0)).add(A).add(T),K(a,"leaflet-tooltip-right"),K(a,"leaflet-tooltip-left"),K(a,"leaflet-tooltip-top"),K(a,"leaflet-tooltip-bottom"),I(a,"leaflet-tooltip-"+_),J(a,t)},_updatePosition:function(){var t=this._map.latLngToLayerPoint(this._latlng);this._setPosition(t)},setOpacity:function(t){this.options.opacity=t,this._container&&ft(this._container,t)},_animateZoom:function(t){var e=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center);this._setPosition(e)},_getAnchor:function(){return M(this._source&&this._source._getTooltipAnchor&&!this.options.sticky?this._source._getTooltipAnchor():[0,0])}}),ml=function(t,e){return new Je(t,e)};R.include({openTooltip:function(t,e,n){return this._initOverlay(Je,t,e,n).openOn(this),this},closeTooltip:function(t){return t.close(),this}}),gt.include({bindTooltip:function(t,e){return this._tooltip&&this.isTooltipOpen()&&this.unbindTooltip(),this._tooltip=this._initOverlay(Je,this._tooltip,t,e),this._initTooltipInteractions(),this._tooltip.options.permanent&&this._map&&this._map.hasLayer(this)&&this.openTooltip(),this},unbindTooltip:function(){return this._tooltip&&(this._initTooltipInteractions(!0),this.closeTooltip(),this._tooltip=null),this},_initTooltipInteractions:function(t){if(!(!t&&this._tooltipHandlersAdded)){var e=t?"off":"on",n={remove:this.closeTooltip,move:this._moveTooltip};this._tooltip.options.permanent?n.add=this._openTooltip:(n.mouseover=this._openTooltip,n.mouseout=this.closeTooltip,n.click=this._openTooltip,this._map?this._addFocusListeners():n.add=this._addFocusListeners),this._tooltip.options.sticky&&(n.mousemove=this._moveTooltip),this[e](n),this._tooltipHandlersAdded=!t}},openTooltip:function(t){return this._tooltip&&(this instanceof zt||(this._tooltip._source=this),this._tooltip._prepareOpen(t)&&(this._tooltip.openOn(this._map),this.getElement?this._setAriaDescribedByOnLayer(this):this.eachLayer&&this.eachLayer(this._setAriaDescribedByOnLayer,this))),this},closeTooltip:function(){if(this._tooltip)return this._tooltip.close()},toggleTooltip:function(){return this._tooltip&&this._tooltip.toggle(this),this},isTooltipOpen:function(){return this._tooltip.isOpen()},setTooltipContent:function(t){return this._tooltip&&this._tooltip.setContent(t),this},getTooltip:function(){return this._tooltip},_addFocusListeners:function(){this.getElement?this._addFocusListenersOnLayer(this):this.eachLayer&&this.eachLayer(this._addFocusListenersOnLayer,this)},_addFocusListenersOnLayer:function(t){var e=typeof t.getElement=="function"&&t.getElement();e&&(S(e,"focus",function(){this._tooltip._source=t,this.openTooltip()},this),S(e,"blur",this.closeTooltip,this))},_setAriaDescribedByOnLayer:function(t){var e=typeof t.getElement=="function"&&t.getElement();e&&e.setAttribute("aria-describedby",this._tooltip._container.id)},_openTooltip:function(t){if(!(!this._tooltip||!this._map)){if(this._map.dragging&&this._map.dragging.moving()&&!this._openOnceFlag){this._openOnceFlag=!0;var e=this;this._map.once("moveend",function(){e._openOnceFlag=!1,e._openTooltip(t)});return}this._tooltip._source=t.layer||t.target,this.openTooltip(this._tooltip.options.sticky?t.latlng:void 0)}},_moveTooltip:function(t){var e=t.latlng,n,o;this._tooltip.options.sticky&&t.originalEvent&&(n=this._map.mouseEventToContainerPoint(t.originalEvent),o=this._map.containerPointToLayerPoint(n),e=this._map.layerPointToLatLng(o)),this._tooltip.setLatLng(e)}});var Ao=ee.extend({options:{iconSize:[12,12],html:!1,bgPos:null,className:"leaflet-div-icon"},createIcon:function(t){var e=t&&t.tagName==="DIV"?t:document.createElement("div"),n=this.options;if(n.html instanceof Element?(Ne(e),e.appendChild(n.html)):e.innerHTML=n.html!==!1?n.html:"",n.bgPos){var o=M(n.bgPos);e.style.backgroundPosition=-o.x+"px "+-o.y+"px"}return this._setIconStyles(e,"icon"),e},createShadow:function(){return null}});function gl(t){return new Ao(t)}ee.Default=we;var be=gt.extend({options:{tileSize:256,opacity:1,updateWhenIdle:z.mobile,updateWhenZooming:!0,updateInterval:200,zIndex:1,bounds:null,minZoom:0,maxZoom:void 0,maxNativeZoom:void 0,minNativeZoom:void 0,noWrap:!1,pane:"tilePane",className:"",keepBuffer:2},initialize:function(t){O(this,t)},onAdd:function(){this._initContainer(),this._levels={},this._tiles={},this._resetView()},beforeAdd:function(t){t._addZoomLimit(this)},onRemove:function(t){this._removeAllTiles(),V(this._container),t._removeZoomLimit(this),this._container=null,this._tileZoom=void 0},bringToFront:function(){return this._map&&(Xt(this._container),this._setAutoZIndex(Math.max)),this},bringToBack:function(){return this._map&&($t(this._container),this._setAutoZIndex(Math.min)),this},getContainer:function(){return this._container},setOpacity:function(t){return this.options.opacity=t,this._updateOpacity(),this},setZIndex:function(t){return this.options.zIndex=t,this._updateZIndex(),this},isLoading:function(){return this._loading},redraw:function(){if(this._map){this._removeAllTiles();var t=this._clampZoom(this._map.getZoom());t!==this._tileZoom&&(this._tileZoom=t,this._updateLevels()),this._update()}return this},getEvents:function(){var t={viewprereset:this._invalidateAll,viewreset:this._resetView,zoom:this._resetView,moveend:this._onMoveEnd};return this.options.updateWhenIdle||(this._onMove||(this._onMove=b(this._onMoveEnd,this.options.updateInterval,this)),t.move=this._onMove),this._zoomAnimated&&(t.zoomanim=this._animateZoom),t},createTile:function(){return document.createElement("div")},getTileSize:function(){var t=this.options.tileSize;return t instanceof C?t:new C(t,t)},_updateZIndex:function(){this._container&&this.options.zIndex!==void 0&&this.options.zIndex!==null&&(this._container.style.zIndex=this.options.zIndex)},_setAutoZIndex:function(t){for(var e=this.getPane().children,n=-t(-1/0,1/0),o=0,a=e.length,h;o<a;o++)h=e[o].style.zIndex,e[o]!==this._container&&h&&(n=t(n,+h));isFinite(n)&&(this.options.zIndex=n+t(-1,1),this._updateZIndex())},_updateOpacity:function(){if(this._map&&!z.ielt9){ft(this._container,this.options.opacity);var t=+new Date,e=!1,n=!1;for(var o in this._tiles){var a=this._tiles[o];if(!(!a.current||!a.loaded)){var h=Math.min(1,(t-a.loaded)/200);ft(a.el,h),h<1?e=!0:(a.active?n=!0:this._onOpaqueTile(a),a.active=!0)}}n&&!this._noPrune&&this._pruneTiles(),e&&(q(this._fadeFrame),this._fadeFrame=Q(this._updateOpacity,this))}},_onOpaqueTile:w,_initContainer:function(){this._container||(this._container=D("div","leaflet-layer "+(this.options.className||"")),this._updateZIndex(),this.options.opacity<1&&this._updateOpacity(),this.getPane().appendChild(this._container))},_updateLevels:function(){var t=this._tileZoom,e=this.options.maxZoom;if(t!==void 0){for(var n in this._levels)n=Number(n),this._levels[n].el.children.length||n===t?(this._levels[n].el.style.zIndex=e-Math.abs(t-n),this._onUpdateLevel(n)):(V(this._levels[n].el),this._removeTilesAtZoom(n),this._onRemoveLevel(n),delete this._levels[n]);var o=this._levels[t],a=this._map;return o||(o=this._levels[t]={},o.el=D("div","leaflet-tile-container leaflet-zoom-animated",this._container),o.el.style.zIndex=e,o.origin=a.project(a.unproject(a.getPixelOrigin()),t).round(),o.zoom=t,this._setZoomTransform(o,a.getCenter(),a.getZoom()),w(o.el.offsetWidth),this._onCreateLevel(o)),this._level=o,o}},_onUpdateLevel:w,_onRemoveLevel:w,_onCreateLevel:w,_pruneTiles:function(){if(this._map){var t,e,n=this._map.getZoom();if(n>this.options.maxZoom||n<this.options.minZoom){this._removeAllTiles();return}for(t in this._tiles)e=this._tiles[t],e.retain=e.current;for(t in this._tiles)if(e=this._tiles[t],e.current&&!e.active){var o=e.coords;this._retainParent(o.x,o.y,o.z,o.z-5)||this._retainChildren(o.x,o.y,o.z,o.z+2)}for(t in this._tiles)this._tiles[t].retain||this._removeTile(t)}},_removeTilesAtZoom:function(t){for(var e in this._tiles)this._tiles[e].coords.z===t&&this._removeTile(e)},_removeAllTiles:function(){for(var t in this._tiles)this._removeTile(t)},_invalidateAll:function(){for(var t in this._levels)V(this._levels[t].el),this._onRemoveLevel(Number(t)),delete this._levels[t];this._removeAllTiles(),this._tileZoom=void 0},_retainParent:function(t,e,n,o){var a=Math.floor(t/2),h=Math.floor(e/2),f=n-1,_=new C(+a,+h);_.z=+f;var p=this._tileCoordsToKey(_),g=this._tiles[p];return g&&g.active?(g.retain=!0,!0):(g&&g.loaded&&(g.retain=!0),f>o?this._retainParent(a,h,f,o):!1)},_retainChildren:function(t,e,n,o){for(var a=2*t;a<2*t+2;a++)for(var h=2*e;h<2*e+2;h++){var f=new C(a,h);f.z=n+1;var _=this._tileCoordsToKey(f),p=this._tiles[_];if(p&&p.active){p.retain=!0;continue}else p&&p.loaded&&(p.retain=!0);n+1<o&&this._retainChildren(a,h,n+1,o)}},_resetView:function(t){var e=t&&(t.pinch||t.flyTo);this._setView(this._map.getCenter(),this._map.getZoom(),e,e)},_animateZoom:function(t){this._setView(t.center,t.zoom,!0,t.noUpdate)},_clampZoom:function(t){var e=this.options;return e.minNativeZoom!==void 0&&t<e.minNativeZoom?e.minNativeZoom:e.maxNativeZoom!==void 0&&e.maxNativeZoom<t?e.maxNativeZoom:t},_setView:function(t,e,n,o){var a=Math.round(e);this.options.maxZoom!==void 0&&a>this.options.maxZoom||this.options.minZoom!==void 0&&a<this.options.minZoom?a=void 0:a=this._clampZoom(a);var h=this.options.updateWhenZooming&&a!==this._tileZoom;(!o||h)&&(this._tileZoom=a,this._abortLoading&&this._abortLoading(),this._updateLevels(),this._resetGrid(),a!==void 0&&this._update(t),n||this._pruneTiles(),this._noPrune=!!n),this._setZoomTransforms(t,e)},_setZoomTransforms:function(t,e){for(var n in this._levels)this._setZoomTransform(this._levels[n],t,e)},_setZoomTransform:function(t,e,n){var o=this._map.getZoomScale(n,t.zoom),a=t.origin.multiplyBy(o).subtract(this._map._getNewPixelOrigin(e,n)).round();z.any3d?Wt(t.el,a,o):J(t.el,a)},_resetGrid:function(){var t=this._map,e=t.options.crs,n=this._tileSize=this.getTileSize(),o=this._tileZoom,a=this._map.getPixelWorldBounds(this._tileZoom);a&&(this._globalTileRange=this._pxBoundsToTileRange(a)),this._wrapX=e.wrapLng&&!this.options.noWrap&&[Math.floor(t.project([0,e.wrapLng[0]],o).x/n.x),Math.ceil(t.project([0,e.wrapLng[1]],o).x/n.y)],this._wrapY=e.wrapLat&&!this.options.noWrap&&[Math.floor(t.project([e.wrapLat[0],0],o).y/n.x),Math.ceil(t.project([e.wrapLat[1],0],o).y/n.y)]},_onMoveEnd:function(){!this._map||this._map._animatingZoom||this._update()},_getTiledPixelBounds:function(t){var e=this._map,n=e._animatingZoom?Math.max(e._animateToZoom,e.getZoom()):e.getZoom(),o=e.getZoomScale(n,this._tileZoom),a=e.project(t,this._tileZoom).floor(),h=e.getSize().divideBy(o*2);return new H(a.subtract(h),a.add(h))},_update:function(t){var e=this._map;if(e){var n=this._clampZoom(e.getZoom());if(t===void 0&&(t=e.getCenter()),this._tileZoom!==void 0){var o=this._getTiledPixelBounds(t),a=this._pxBoundsToTileRange(o),h=a.getCenter(),f=[],_=this.options.keepBuffer,p=new H(a.getBottomLeft().subtract([_,-_]),a.getTopRight().add([_,-_]));if(!(isFinite(a.min.x)&&isFinite(a.min.y)&&isFinite(a.max.x)&&isFinite(a.max.y)))throw new Error("Attempted to load an infinite number of tiles");for(var g in this._tiles){var A=this._tiles[g].coords;(A.z!==this._tileZoom||!p.contains(new C(A.x,A.y)))&&(this._tiles[g].current=!1)}if(Math.abs(n-this._tileZoom)>1){this._setView(t,n);return}for(var T=a.min.y;T<=a.max.y;T++)for(var B=a.min.x;B<=a.max.x;B++){var ot=new C(B,T);if(ot.z=this._tileZoom,!!this._isValidTile(ot)){var et=this._tiles[this._tileCoordsToKey(ot)];et?et.current=!0:f.push(ot)}}if(f.sort(function(lt,re){return lt.distanceTo(h)-re.distanceTo(h)}),f.length!==0){this._loading||(this._loading=!0,this.fire("loading"));var _t=document.createDocumentFragment();for(B=0;B<f.length;B++)this._addTile(f[B],_t);this._level.el.appendChild(_t)}}}},_isValidTile:function(t){var e=this._map.options.crs;if(!e.infinite){var n=this._globalTileRange;if(!e.wrapLng&&(t.x<n.min.x||t.x>n.max.x)||!e.wrapLat&&(t.y<n.min.y||t.y>n.max.y))return!1}if(!this.options.bounds)return!0;var o=this._tileCoordsToBounds(t);return Y(this.options.bounds).overlaps(o)},_keyToBounds:function(t){return this._tileCoordsToBounds(this._keyToTileCoords(t))},_tileCoordsToNwSe:function(t){var e=this._map,n=this.getTileSize(),o=t.scaleBy(n),a=o.add(n),h=e.unproject(o,t.z),f=e.unproject(a,t.z);return[h,f]},_tileCoordsToBounds:function(t){var e=this._tileCoordsToNwSe(t),n=new at(e[0],e[1]);return this.options.noWrap||(n=this._map.wrapLatLngBounds(n)),n},_tileCoordsToKey:function(t){return t.x+":"+t.y+":"+t.z},_keyToTileCoords:function(t){var e=t.split(":"),n=new C(+e[0],+e[1]);return n.z=+e[2],n},_removeTile:function(t){var e=this._tiles[t];e&&(V(e.el),delete this._tiles[t],this.fire("tileunload",{tile:e.el,coords:this._keyToTileCoords(t)}))},_initTile:function(t){I(t,"leaflet-tile");var e=this.getTileSize();t.style.width=e.x+"px",t.style.height=e.y+"px",t.onselectstart=w,t.onmousemove=w,z.ielt9&&this.options.opacity<1&&ft(t,this.options.opacity)},_addTile:function(t,e){var n=this._getTilePos(t),o=this._tileCoordsToKey(t),a=this.createTile(this._wrapCoords(t),d(this._tileReady,this,t));this._initTile(a),this.createTile.length<2&&Q(d(this._tileReady,this,t,null,a)),J(a,n),this._tiles[o]={el:a,coords:t,current:!0},e.appendChild(a),this.fire("tileloadstart",{tile:a,coords:t})},_tileReady:function(t,e,n){e&&this.fire("tileerror",{error:e,tile:n,coords:t});var o=this._tileCoordsToKey(t);n=this._tiles[o],n&&(n.loaded=+new Date,this._map._fadeAnimated?(ft(n.el,0),q(this._fadeFrame),this._fadeFrame=Q(this._updateOpacity,this)):(n.active=!0,this._pruneTiles()),e||(I(n.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:n.el,coords:t})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),z.ielt9||!this._map._fadeAnimated?Q(this._pruneTiles,this):setTimeout(d(this._pruneTiles,this),250)))},_getTilePos:function(t){return t.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(t){var e=new C(this._wrapX?P(t.x,this._wrapX):t.x,this._wrapY?P(t.y,this._wrapY):t.y);return e.z=t.z,e},_pxBoundsToTileRange:function(t){var e=this.getTileSize();return new H(t.min.unscaleBy(e).floor(),t.max.unscaleBy(e).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var t in this._tiles)if(!this._tiles[t].loaded)return!1;return!0}});function vl(t){return new be(t)}var oe=be.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1,referrerPolicy:!1},initialize:function(t,e){this._url=t,e=O(this,e),e.detectRetina&&z.retina&&e.maxZoom>0?(e.tileSize=Math.floor(e.tileSize/2),e.zoomReverse?(e.zoomOffset--,e.minZoom=Math.min(e.maxZoom,e.minZoom+1)):(e.zoomOffset++,e.maxZoom=Math.max(e.minZoom,e.maxZoom-1)),e.minZoom=Math.max(0,e.minZoom)):e.zoomReverse?e.minZoom=Math.min(e.maxZoom,e.minZoom):e.maxZoom=Math.max(e.minZoom,e.maxZoom),typeof e.subdomains=="string"&&(e.subdomains=e.subdomains.split("")),this.on("tileunload",this._onTileRemove)},setUrl:function(t,e){return this._url===t&&e===void 0&&(e=!0),this._url=t,e||this.redraw(),this},createTile:function(t,e){var n=document.createElement("img");return S(n,"load",d(this._tileOnLoad,this,e,n)),S(n,"error",d(this._tileOnError,this,e,n)),(this.options.crossOrigin||this.options.crossOrigin==="")&&(n.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),typeof this.options.referrerPolicy=="string"&&(n.referrerPolicy=this.options.referrerPolicy),n.alt="",n.src=this.getTileUrl(t),n},getTileUrl:function(t){var e={r:z.retina?"@2x":"",s:this._getSubdomain(t),x:t.x,y:t.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var n=this._globalTileRange.max.y-t.y;this.options.tms&&(e.y=n),e["-y"]=n}return ct(this._url,u(e,this.options))},_tileOnLoad:function(t,e){z.ielt9?setTimeout(d(t,this,null,e),0):t(null,e)},_tileOnError:function(t,e,n){var o=this.options.errorTileUrl;o&&e.getAttribute("src")!==o&&(e.src=o),t(n,e)},_onTileRemove:function(t){t.tile.onload=null},_getZoomForUrl:function(){var t=this._tileZoom,e=this.options.maxZoom,n=this.options.zoomReverse,o=this.options.zoomOffset;return n&&(t=e-t),t+o},_getSubdomain:function(t){var e=Math.abs(t.x+t.y)%this.options.subdomains.length;return this.options.subdomains[e]},_abortLoading:function(){var t,e;for(t in this._tiles)if(this._tiles[t].coords.z!==this._tileZoom&&(e=this._tiles[t].el,e.onload=w,e.onerror=w,!e.complete)){e.src=it;var n=this._tiles[t].coords;V(e),delete this._tiles[t],this.fire("tileabort",{tile:e,coords:n})}},_removeTile:function(t){var e=this._tiles[t];if(e)return e.el.setAttribute("src",it),be.prototype._removeTile.call(this,t)},_tileReady:function(t,e,n){if(!(!this._map||n&&n.getAttribute("src")===it))return be.prototype._tileReady.call(this,t,e,n)}});function Lo(t,e){return new oe(t,e)}var Po=oe.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:!1,version:"1.1.1"},options:{crs:null,uppercase:!1},initialize:function(t,e){this._url=t;var n=u({},this.defaultWmsParams);for(var o in e)o in this.options||(n[o]=e[o]);e=O(this,e);var a=e.detectRetina&&z.retina?2:1,h=this.getTileSize();n.width=h.x*a,n.height=h.y*a,this.wmsParams=n},onAdd:function(t){this._crs=this.options.crs||t.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var e=this._wmsVersion>=1.3?"crs":"srs";this.wmsParams[e]=this._crs.code,oe.prototype.onAdd.call(this,t)},getTileUrl:function(t){var e=this._tileCoordsToNwSe(t),n=this._crs,o=st(n.project(e[0]),n.project(e[1])),a=o.min,h=o.max,f=(this._wmsVersion>=1.3&&this._crs===go?[a.y,a.x,h.y,h.x]:[a.x,a.y,h.x,h.y]).join(","),_=oe.prototype.getTileUrl.call(this,t);return _+pt(this.wmsParams,_,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+f},setParams:function(t,e){return u(this.wmsParams,t),e||this.redraw(),this}});function yl(t,e){return new Po(t,e)}oe.WMS=Po,Lo.wms=yl;var Et=gt.extend({options:{padding:.1},initialize:function(t){O(this,t),m(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),I(this._container,"leaflet-zoom-animated")),this.getPane().appendChild(this._container),this._update(),this.on("update",this._updatePaths,this)},onRemove:function(){this.off("update",this._updatePaths,this),this._destroyContainer()},getEvents:function(){var t={viewreset:this._reset,zoom:this._onZoom,moveend:this._update,zoomend:this._onZoomEnd};return this._zoomAnimated&&(t.zoomanim=this._onAnimZoom),t},_onAnimZoom:function(t){this._updateTransform(t.center,t.zoom)},_onZoom:function(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform:function(t,e){var n=this._map.getZoomScale(e,this._zoom),o=this._map.getSize().multiplyBy(.5+this.options.padding),a=this._map.project(this._center,e),h=o.multiplyBy(-n).add(a).subtract(this._map._getNewPixelOrigin(t,e));z.any3d?Wt(this._container,h,n):J(this._container,h)},_reset:function(){this._update(),this._updateTransform(this._center,this._zoom);for(var t in this._layers)this._layers[t]._reset()},_onZoomEnd:function(){for(var t in this._layers)this._layers[t]._project()},_updatePaths:function(){for(var t in this._layers)this._layers[t]._update()},_update:function(){var t=this.options.padding,e=this._map.getSize(),n=this._map.containerPointToLayerPoint(e.multiplyBy(-t)).round();this._bounds=new H(n,n.add(e.multiplyBy(1+t*2)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),zo=Et.extend({options:{tolerance:0},getEvents:function(){var t=Et.prototype.getEvents.call(this);return t.viewprereset=this._onViewPreReset,t},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){Et.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var t=this._container=document.createElement("canvas");S(t,"mousemove",this._onMouseMove,this),S(t,"click dblclick mousedown mouseup contextmenu",this._onClick,this),S(t,"mouseout",this._handleMouseOut,this),t._leaflet_disable_events=!0,this._ctx=t.getContext("2d")},_destroyContainer:function(){q(this._redrawRequest),delete this._ctx,V(this._container),U(this._container),delete this._container},_updatePaths:function(){if(!this._postponeUpdatePaths){var t;this._redrawBounds=null;for(var e in this._layers)t=this._layers[e],t._update();this._redraw()}},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){Et.prototype._update.call(this);var t=this._bounds,e=this._container,n=t.getSize(),o=z.retina?2:1;J(e,t.min),e.width=o*n.x,e.height=o*n.y,e.style.width=n.x+"px",e.style.height=n.y+"px",z.retina&&this._ctx.scale(2,2),this._ctx.translate(-t.min.x,-t.min.y),this.fire("update")}},_reset:function(){Et.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(t){this._updateDashArray(t),this._layers[m(t)]=t;var e=t._order={layer:t,prev:this._drawLast,next:null};this._drawLast&&(this._drawLast.next=e),this._drawLast=e,this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(t){this._requestRedraw(t)},_removePath:function(t){var e=t._order,n=e.next,o=e.prev;n?n.prev=o:this._drawLast=o,o?o.next=n:this._drawFirst=n,delete t._order,delete this._layers[m(t)],this._requestRedraw(t)},_updatePath:function(t){this._extendRedrawBounds(t),t._project(),t._update(),this._requestRedraw(t)},_updateStyle:function(t){this._updateDashArray(t),this._requestRedraw(t)},_updateDashArray:function(t){if(typeof t.options.dashArray=="string"){var e=t.options.dashArray.split(/[, ]+/),n=[],o,a;for(a=0;a<e.length;a++){if(o=Number(e[a]),isNaN(o))return;n.push(o)}t.options._dashArray=n}else t.options._dashArray=t.options.dashArray},_requestRedraw:function(t){this._map&&(this._extendRedrawBounds(t),this._redrawRequest=this._redrawRequest||Q(this._redraw,this))},_extendRedrawBounds:function(t){if(t._pxBounds){var e=(t.options.weight||0)+1;this._redrawBounds=this._redrawBounds||new H,this._redrawBounds.extend(t._pxBounds.min.subtract([e,e])),this._redrawBounds.extend(t._pxBounds.max.add([e,e]))}},_redraw:function(){this._redrawRequest=null,this._redrawBounds&&(this._redrawBounds.min._floor(),this._redrawBounds.max._ceil()),this._clear(),this._draw(),this._redrawBounds=null},_clear:function(){var t=this._redrawBounds;if(t){var e=t.getSize();this._ctx.clearRect(t.min.x,t.min.y,e.x,e.y)}else this._ctx.save(),this._ctx.setTransform(1,0,0,1,0,0),this._ctx.clearRect(0,0,this._container.width,this._container.height),this._ctx.restore()},_draw:function(){var t,e=this._redrawBounds;if(this._ctx.save(),e){var n=e.getSize();this._ctx.beginPath(),this._ctx.rect(e.min.x,e.min.y,n.x,n.y),this._ctx.clip()}this._drawing=!0;for(var o=this._drawFirst;o;o=o.next)t=o.layer,(!e||t._pxBounds&&t._pxBounds.intersects(e))&&t._updatePath();this._drawing=!1,this._ctx.restore()},_updatePoly:function(t,e){if(this._drawing){var n,o,a,h,f=t._parts,_=f.length,p=this._ctx;if(_){for(p.beginPath(),n=0;n<_;n++){for(o=0,a=f[n].length;o<a;o++)h=f[n][o],p[o?"lineTo":"moveTo"](h.x,h.y);e&&p.closePath()}this._fillStroke(p,t)}}},_updateCircle:function(t){if(!(!this._drawing||t._empty())){var e=t._point,n=this._ctx,o=Math.max(Math.round(t._radius),1),a=(Math.max(Math.round(t._radiusY),1)||o)/o;a!==1&&(n.save(),n.scale(1,a)),n.beginPath(),n.arc(e.x,e.y/a,o,0,Math.PI*2,!1),a!==1&&n.restore(),this._fillStroke(n,t)}},_fillStroke:function(t,e){var n=e.options;n.fill&&(t.globalAlpha=n.fillOpacity,t.fillStyle=n.fillColor||n.color,t.fill(n.fillRule||"evenodd")),n.stroke&&n.weight!==0&&(t.setLineDash&&t.setLineDash(e.options&&e.options._dashArray||[]),t.globalAlpha=n.opacity,t.lineWidth=n.weight,t.strokeStyle=n.color,t.lineCap=n.lineCap,t.lineJoin=n.lineJoin,t.stroke())},_onClick:function(t){for(var e=this._map.mouseEventToLayerPoint(t),n,o,a=this._drawFirst;a;a=a.next)n=a.layer,n.options.interactive&&n._containsPoint(e)&&(!(t.type==="click"||t.type==="preclick")||!this._map._draggableMoved(n))&&(o=n);this._fireEvent(o?[o]:!1,t)},_onMouseMove:function(t){if(!(!this._map||this._map.dragging.moving()||this._map._animatingZoom)){var e=this._map.mouseEventToLayerPoint(t);this._handleMouseHover(t,e)}},_handleMouseOut:function(t){var e=this._hoveredLayer;e&&(K(this._container,"leaflet-interactive"),this._fireEvent([e],t,"mouseout"),this._hoveredLayer=null,this._mouseHoverThrottled=!1)},_handleMouseHover:function(t,e){if(!this._mouseHoverThrottled){for(var n,o,a=this._drawFirst;a;a=a.next)n=a.layer,n.options.interactive&&n._containsPoint(e)&&(o=n);o!==this._hoveredLayer&&(this._handleMouseOut(t),o&&(I(this._container,"leaflet-interactive"),this._fireEvent([o],t,"mouseover"),this._hoveredLayer=o)),this._fireEvent(this._hoveredLayer?[this._hoveredLayer]:!1,t),this._mouseHoverThrottled=!0,setTimeout(d(function(){this._mouseHoverThrottled=!1},this),32)}},_fireEvent:function(t,e,n){this._map._fireDOMEvent(e,n||e.type,t)},_bringToFront:function(t){var e=t._order;if(e){var n=e.next,o=e.prev;if(n)n.prev=o;else return;o?o.next=n:n&&(this._drawFirst=n),e.prev=this._drawLast,this._drawLast.next=e,e.next=null,this._drawLast=e,this._requestRedraw(t)}},_bringToBack:function(t){var e=t._order;if(e){var n=e.next,o=e.prev;if(o)o.next=n;else return;n?n.prev=o:o&&(this._drawLast=o),e.prev=null,e.next=this._drawFirst,this._drawFirst.prev=e,this._drawFirst=e,this._requestRedraw(t)}}});function ko(t){return z.canvas?new zo(t):null}var Ae=function(){try{return document.namespaces.add("lvml","urn:schemas-microsoft-com:vml"),function(t){return document.createElement("<lvml:"+t+' class="lvml">')}}catch{}return function(t){return document.createElement("<"+t+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}}(),xl={_initContainer:function(){this._container=D("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(Et.prototype._update.call(this),this.fire("update"))},_initPath:function(t){var e=t._container=Ae("shape");I(e,"leaflet-vml-shape "+(this.options.className||"")),e.coordsize="1 1",t._path=Ae("path"),e.appendChild(t._path),this._updateStyle(t),this._layers[m(t)]=t},_addPath:function(t){var e=t._container;this._container.appendChild(e),t.options.interactive&&t.addInteractiveTarget(e)},_removePath:function(t){var e=t._container;V(e),t.removeInteractiveTarget(e),delete this._layers[m(t)]},_updateStyle:function(t){var e=t._stroke,n=t._fill,o=t.options,a=t._container;a.stroked=!!o.stroke,a.filled=!!o.fill,o.stroke?(e||(e=t._stroke=Ae("stroke")),a.appendChild(e),e.weight=o.weight+"px",e.color=o.color,e.opacity=o.opacity,o.dashArray?e.dashStyle=W(o.dashArray)?o.dashArray.join(" "):o.dashArray.replace(/( *, *)/g," "):e.dashStyle="",e.endcap=o.lineCap.replace("butt","flat"),e.joinstyle=o.lineJoin):e&&(a.removeChild(e),t._stroke=null),o.fill?(n||(n=t._fill=Ae("fill")),a.appendChild(n),n.color=o.fillColor||o.color,n.opacity=o.fillOpacity):n&&(a.removeChild(n),t._fill=null)},_updateCircle:function(t){var e=t._point.round(),n=Math.round(t._radius),o=Math.round(t._radiusY||n);this._setPath(t,t._empty()?"M0 0":"AL "+e.x+","+e.y+" "+n+","+o+" 0,"+65535*360)},_setPath:function(t,e){t._path.v=e},_bringToFront:function(t){Xt(t._container)},_bringToBack:function(t){$t(t._container)}},Xe=z.vml?Ae:Mi,Le=Et.extend({_initContainer:function(){this._container=Xe("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=Xe("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){V(this._container),U(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){Et.prototype._update.call(this);var t=this._bounds,e=t.getSize(),n=this._container;(!this._svgSize||!this._svgSize.equals(e))&&(this._svgSize=e,n.setAttribute("width",e.x),n.setAttribute("height",e.y)),J(n,t.min),n.setAttribute("viewBox",[t.min.x,t.min.y,e.x,e.y].join(" ")),this.fire("update")}},_initPath:function(t){var e=t._path=Xe("path");t.options.className&&I(e,t.options.className),t.options.interactive&&I(e,"leaflet-interactive"),this._updateStyle(t),this._layers[m(t)]=t},_addPath:function(t){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(t._path),t.addInteractiveTarget(t._path)},_removePath:function(t){V(t._path),t.removeInteractiveTarget(t._path),delete this._layers[m(t)]},_updatePath:function(t){t._project(),t._update()},_updateStyle:function(t){var e=t._path,n=t.options;e&&(n.stroke?(e.setAttribute("stroke",n.color),e.setAttribute("stroke-opacity",n.opacity),e.setAttribute("stroke-width",n.weight),e.setAttribute("stroke-linecap",n.lineCap),e.setAttribute("stroke-linejoin",n.lineJoin),n.dashArray?e.setAttribute("stroke-dasharray",n.dashArray):e.removeAttribute("stroke-dasharray"),n.dashOffset?e.setAttribute("stroke-dashoffset",n.dashOffset):e.removeAttribute("stroke-dashoffset")):e.setAttribute("stroke","none"),n.fill?(e.setAttribute("fill",n.fillColor||n.color),e.setAttribute("fill-opacity",n.fillOpacity),e.setAttribute("fill-rule",n.fillRule||"evenodd")):e.setAttribute("fill","none"))},_updatePoly:function(t,e){this._setPath(t,Ci(t._parts,e))},_updateCircle:function(t){var e=t._point,n=Math.max(Math.round(t._radius),1),o=Math.max(Math.round(t._radiusY),1)||n,a="a"+n+","+o+" 0 1,0 ",h=t._empty()?"M0 0":"M"+(e.x-n)+","+e.y+a+n*2+",0 "+a+-n*2+",0 ";this._setPath(t,h)},_setPath:function(t,e){t._path.setAttribute("d",e)},_bringToFront:function(t){Xt(t._path)},_bringToBack:function(t){$t(t._path)}});z.vml&&Le.include(xl);function To(t){return z.svg||z.vml?new Le(t):null}R.include({getRenderer:function(t){var e=t.options.renderer||this._getPaneRenderer(t.options.pane)||this.options.renderer||this._renderer;return e||(e=this._renderer=this._createRenderer()),this.hasLayer(e)||this.addLayer(e),e},_getPaneRenderer:function(t){if(t==="overlayPane"||t===void 0)return!1;var e=this._paneRenderers[t];return e===void 0&&(e=this._createRenderer({pane:t}),this._paneRenderers[t]=e),e},_createRenderer:function(t){return this.options.preferCanvas&&ko(t)||To(t)}});var Eo=ne.extend({initialize:function(t,e){ne.prototype.initialize.call(this,this._boundsToLatLngs(t),e)},setBounds:function(t){return this.setLatLngs(this._boundsToLatLngs(t))},_boundsToLatLngs:function(t){return t=Y(t),[t.getSouthWest(),t.getNorthWest(),t.getNorthEast(),t.getSouthEast()]}});function wl(t,e){return new Eo(t,e)}Le.create=Xe,Le.pointsToPath=Ci,Tt.geometryToLayer=He,Tt.coordsToLatLng=Qn,Tt.coordsToLatLngs=Ve,Tt.latLngToCoords=qn,Tt.latLngsToCoords=Qe,Tt.getFeature=ie,Tt.asFeature=qe,R.mergeOptions({boxZoom:!0});var Mo=xt.extend({initialize:function(t){this._map=t,this._container=t._container,this._pane=t._panes.overlayPane,this._resetStateTimeout=0,t.on("unload",this._destroy,this)},addHooks:function(){S(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){U(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){V(this._pane),delete this._pane},_resetState:function(){this._resetStateTimeout=0,this._moved=!1},_clearDeferredResetState:function(){this._resetStateTimeout!==0&&(clearTimeout(this._resetStateTimeout),this._resetStateTimeout=0)},_onMouseDown:function(t){if(!t.shiftKey||t.which!==1&&t.button!==1)return!1;this._clearDeferredResetState(),this._resetState(),pe(),Mn(),this._startPoint=this._map.mouseEventToContainerPoint(t),S(document,{contextmenu:Ut,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(t){this._moved||(this._moved=!0,this._box=D("div","leaflet-zoom-box",this._container),I(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(t);var e=new H(this._point,this._startPoint),n=e.getSize();J(this._box,e.min),this._box.style.width=n.x+"px",this._box.style.height=n.y+"px"},_finish:function(){this._moved&&(V(this._box),K(this._container,"leaflet-crosshair")),me(),Cn(),U(document,{contextmenu:Ut,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(t){if(!(t.which!==1&&t.button!==1)&&(this._finish(),!!this._moved)){this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(d(this._resetState,this),0);var e=new at(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(e).fire("boxzoomend",{boxZoomBounds:e})}},_onKeyDown:function(t){t.keyCode===27&&(this._finish(),this._clearDeferredResetState(),this._resetState())}});R.addInitHook("addHandler","boxZoom",Mo),R.mergeOptions({doubleClickZoom:!0});var Co=xt.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(t){var e=this._map,n=e.getZoom(),o=e.options.zoomDelta,a=t.originalEvent.shiftKey?n-o:n+o;e.options.doubleClickZoom==="center"?e.setZoom(a):e.setZoomAround(t.containerPoint,a)}});R.addInitHook("addHandler","doubleClickZoom",Co),R.mergeOptions({dragging:!0,inertia:!0,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var So=xt.extend({addHooks:function(){if(!this._draggable){var t=this._map;this._draggable=new St(t._mapPane,t._container),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this),this._draggable.on("predrag",this._onPreDragLimit,this),t.options.worldCopyJump&&(this._draggable.on("predrag",this._onPreDragWrap,this),t.on("zoomend",this._onZoomEnd,this),t.whenReady(this._onZoomEnd,this))}I(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){K(this._map._container,"leaflet-grab"),K(this._map._container,"leaflet-touch-drag"),this._draggable.disable()},moved:function(){return this._draggable&&this._draggable._moved},moving:function(){return this._draggable&&this._draggable._moving},_onDragStart:function(){var t=this._map;if(t._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity){var e=Y(this._map.options.maxBounds);this._offsetLimit=st(this._map.latLngToContainerPoint(e.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(e.getSouthEast()).multiplyBy(-1).add(this._map.getSize())),this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))}else this._offsetLimit=null;t.fire("movestart").fire("dragstart"),t.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(t){if(this._map.options.inertia){var e=this._lastTime=+new Date,n=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(n),this._times.push(e),this._prunePositions(e)}this._map.fire("move",t).fire("drag",t)},_prunePositions:function(t){for(;this._positions.length>1&&t-this._times[0]>50;)this._positions.shift(),this._times.shift()},_onZoomEnd:function(){var t=this._map.getSize().divideBy(2),e=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=e.subtract(t).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(t,e){return t-(t-e)*this._viscosity},_onPreDragLimit:function(){if(!(!this._viscosity||!this._offsetLimit)){var t=this._draggable._newPos.subtract(this._draggable._startPos),e=this._offsetLimit;t.x<e.min.x&&(t.x=this._viscousLimit(t.x,e.min.x)),t.y<e.min.y&&(t.y=this._viscousLimit(t.y,e.min.y)),t.x>e.max.x&&(t.x=this._viscousLimit(t.x,e.max.x)),t.y>e.max.y&&(t.y=this._viscousLimit(t.y,e.max.y)),this._draggable._newPos=this._draggable._startPos.add(t)}},_onPreDragWrap:function(){var t=this._worldWidth,e=Math.round(t/2),n=this._initialWorldOffset,o=this._draggable._newPos.x,a=(o-e+n)%t+e-n,h=(o+e+n)%t-e-n,f=Math.abs(a+n)<Math.abs(h+n)?a:h;this._draggable._absPos=this._draggable._newPos.clone(),this._draggable._newPos.x=f},_onDragEnd:function(t){var e=this._map,n=e.options,o=!n.inertia||t.noInertia||this._times.length<2;if(e.fire("dragend",t),o)e.fire("moveend");else{this._prunePositions(+new Date);var a=this._lastPos.subtract(this._positions[0]),h=(this._lastTime-this._times[0])/1e3,f=n.easeLinearity,_=a.multiplyBy(f/h),p=_.distanceTo([0,0]),g=Math.min(n.inertiaMaxSpeed,p),A=_.multiplyBy(g/p),T=g/(n.inertiaDeceleration*f),B=A.multiplyBy(-T/2).round();!B.x&&!B.y?e.fire("moveend"):(B=e._limitOffset(B,e.options.maxBounds),Q(function(){e.panBy(B,{duration:T,easeLinearity:f,noMoveStart:!0,animate:!0})}))}}});R.addInitHook("addHandler","dragging",So),R.mergeOptions({keyboard:!0,keyboardPanDelta:80});var Oo=xt.extend({keyCodes:{left:[37],right:[39],down:[40],up:[38],zoomIn:[187,107,61,171],zoomOut:[189,109,54,173]},initialize:function(t){this._map=t,this._setPanDelta(t.options.keyboardPanDelta),this._setZoomDelta(t.options.zoomDelta)},addHooks:function(){var t=this._map._container;t.tabIndex<=0&&(t.tabIndex="0"),S(t,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.on({focus:this._addHooks,blur:this._removeHooks},this)},removeHooks:function(){this._removeHooks(),U(this._map._container,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.off({focus:this._addHooks,blur:this._removeHooks},this)},_onMouseDown:function(){if(!this._focused){var t=document.body,e=document.documentElement,n=t.scrollTop||e.scrollTop,o=t.scrollLeft||e.scrollLeft;this._map._container.focus(),window.scrollTo(o,n)}},_onFocus:function(){this._focused=!0,this._map.fire("focus")},_onBlur:function(){this._focused=!1,this._map.fire("blur")},_setPanDelta:function(t){var e=this._panKeys={},n=this.keyCodes,o,a;for(o=0,a=n.left.length;o<a;o++)e[n.left[o]]=[-1*t,0];for(o=0,a=n.right.length;o<a;o++)e[n.right[o]]=[t,0];for(o=0,a=n.down.length;o<a;o++)e[n.down[o]]=[0,t];for(o=0,a=n.up.length;o<a;o++)e[n.up[o]]=[0,-1*t]},_setZoomDelta:function(t){var e=this._zoomKeys={},n=this.keyCodes,o,a;for(o=0,a=n.zoomIn.length;o<a;o++)e[n.zoomIn[o]]=t;for(o=0,a=n.zoomOut.length;o<a;o++)e[n.zoomOut[o]]=-t},_addHooks:function(){S(document,"keydown",this._onKeyDown,this)},_removeHooks:function(){U(document,"keydown",this._onKeyDown,this)},_onKeyDown:function(t){if(!(t.altKey||t.ctrlKey||t.metaKey)){var e=t.keyCode,n=this._map,o;if(e in this._panKeys){if(!n._panAnim||!n._panAnim._inProgress)if(o=this._panKeys[e],t.shiftKey&&(o=M(o).multiplyBy(3)),n.options.maxBounds&&(o=n._limitOffset(M(o),n.options.maxBounds)),n.options.worldCopyJump){var a=n.wrapLatLng(n.unproject(n.project(n.getCenter()).add(o)));n.panTo(a)}else n.panBy(o)}else if(e in this._zoomKeys)n.setZoom(n.getZoom()+(t.shiftKey?3:1)*this._zoomKeys[e]);else if(e===27&&n._popup&&n._popup.options.closeOnEscapeKey)n.closePopup();else return;Ut(t)}}});R.addInitHook("addHandler","keyboard",Oo),R.mergeOptions({scrollWheelZoom:!0,wheelDebounceTime:40,wheelPxPerZoomLevel:60});var Zo=xt.extend({addHooks:function(){S(this._map._container,"wheel",this._onWheelScroll,this),this._delta=0},removeHooks:function(){U(this._map._container,"wheel",this._onWheelScroll,this)},_onWheelScroll:function(t){var e=io(t),n=this._map.options.wheelDebounceTime;this._delta+=e,this._lastMousePos=this._map.mouseEventToContainerPoint(t),this._startTime||(this._startTime=+new Date);var o=Math.max(n-(+new Date-this._startTime),0);clearTimeout(this._timer),this._timer=setTimeout(d(this._performZoom,this),o),Ut(t)},_performZoom:function(){var t=this._map,e=t.getZoom(),n=this._map.options.zoomSnap||0;t._stop();var o=this._delta/(this._map.options.wheelPxPerZoomLevel*4),a=4*Math.log(2/(1+Math.exp(-Math.abs(o))))/Math.LN2,h=n?Math.ceil(a/n)*n:a,f=t._limitZoom(e+(this._delta>0?h:-h))-e;this._delta=0,this._startTime=null,f&&(t.options.scrollWheelZoom==="center"?t.setZoom(e+f):t.setZoomAround(this._lastMousePos,e+f))}});R.addInitHook("addHandler","scrollWheelZoom",Zo);var bl=600;R.mergeOptions({tapHold:z.touchNative&&z.safari&&z.mobile,tapTolerance:15});var Io=xt.extend({addHooks:function(){S(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){U(this._map._container,"touchstart",this._onDown,this)},_onDown:function(t){if(clearTimeout(this._holdTimeout),t.touches.length===1){var e=t.touches[0];this._startPos=this._newPos=new C(e.clientX,e.clientY),this._holdTimeout=setTimeout(d(function(){this._cancel(),this._isTapValid()&&(S(document,"touchend",nt),S(document,"touchend touchcancel",this._cancelClickPrevent),this._simulateEvent("contextmenu",e))},this),bl),S(document,"touchend touchcancel contextmenu",this._cancel,this),S(document,"touchmove",this._onMove,this)}},_cancelClickPrevent:function t(){U(document,"touchend",nt),U(document,"touchend touchcancel",t)},_cancel:function(){clearTimeout(this._holdTimeout),U(document,"touchend touchcancel contextmenu",this._cancel,this),U(document,"touchmove",this._onMove,this)},_onMove:function(t){var e=t.touches[0];this._newPos=new C(e.clientX,e.clientY)},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_simulateEvent:function(t,e){var n=new MouseEvent(t,{bubbles:!0,cancelable:!0,view:window,screenX:e.screenX,screenY:e.screenY,clientX:e.clientX,clientY:e.clientY});n._simulated=!0,e.target.dispatchEvent(n)}});R.addInitHook("addHandler","tapHold",Io),R.mergeOptions({touchZoom:z.touch,bounceAtZoomLimits:!0});var Bo=xt.extend({addHooks:function(){I(this._map._container,"leaflet-touch-zoom"),S(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){K(this._map._container,"leaflet-touch-zoom"),U(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(t){var e=this._map;if(!(!t.touches||t.touches.length!==2||e._animatingZoom||this._zooming)){var n=e.mouseEventToContainerPoint(t.touches[0]),o=e.mouseEventToContainerPoint(t.touches[1]);this._centerPoint=e.getSize()._divideBy(2),this._startLatLng=e.containerPointToLatLng(this._centerPoint),e.options.touchZoom!=="center"&&(this._pinchStartLatLng=e.containerPointToLatLng(n.add(o)._divideBy(2))),this._startDist=n.distanceTo(o),this._startZoom=e.getZoom(),this._moved=!1,this._zooming=!0,e._stop(),S(document,"touchmove",this._onTouchMove,this),S(document,"touchend touchcancel",this._onTouchEnd,this),nt(t)}},_onTouchMove:function(t){if(!(!t.touches||t.touches.length!==2||!this._zooming)){var e=this._map,n=e.mouseEventToContainerPoint(t.touches[0]),o=e.mouseEventToContainerPoint(t.touches[1]),a=n.distanceTo(o)/this._startDist;if(this._zoom=e.getScaleZoom(a,this._startZoom),!e.options.bounceAtZoomLimits&&(this._zoom<e.getMinZoom()&&a<1||this._zoom>e.getMaxZoom()&&a>1)&&(this._zoom=e._limitZoom(this._zoom)),e.options.touchZoom==="center"){if(this._center=this._startLatLng,a===1)return}else{var h=n._add(o)._divideBy(2)._subtract(this._centerPoint);if(a===1&&h.x===0&&h.y===0)return;this._center=e.unproject(e.project(this._pinchStartLatLng,this._zoom).subtract(h),this._zoom)}this._moved||(e._moveStart(!0,!1),this._moved=!0),q(this._animRequest);var f=d(e._move,e,this._center,this._zoom,{pinch:!0,round:!1},void 0);this._animRequest=Q(f,this,!0),nt(t)}},_onTouchEnd:function(){if(!this._moved||!this._zooming){this._zooming=!1;return}this._zooming=!1,q(this._animRequest),U(document,"touchmove",this._onTouchMove,this),U(document,"touchend touchcancel",this._onTouchEnd,this),this._map.options.zoomAnimation?this._map._animateZoom(this._center,this._map._limitZoom(this._zoom),!0,this._map.options.zoomSnap):this._map._resetView(this._center,this._map._limitZoom(this._zoom))}});R.addInitHook("addHandler","touchZoom",Bo),R.BoxZoom=Mo,R.DoubleClickZoom=Co,R.Drag=So,R.Keyboard=Oo,R.ScrollWheelZoom=Zo,R.TapHold=Io,R.TouchZoom=Bo,r.Bounds=H,r.Browser=z,r.CRS=Pt,r.Canvas=zo,r.Circle=Vn,r.CircleMarker=Ue,r.Class=Lt,r.Control=mt,r.DivIcon=Ao,r.DivOverlay=wt,r.DomEvent=Fa,r.DomUtil=Ra,r.Draggable=St,r.Evented=ue,r.FeatureGroup=zt,r.GeoJSON=Tt,r.GridLayer=be,r.Handler=xt,r.Icon=ee,r.ImageOverlay=Ke,r.LatLng=F,r.LatLngBounds=at,r.Layer=gt,r.LayerGroup=te,r.LineUtil=$a,r.Map=R,r.Marker=Ge,r.Mixin=Qa,r.Path=Ot,r.Point=C,r.PolyUtil=qa,r.Polygon=ne,r.Polyline=kt,r.Popup=Ye,r.PosAnimation=oo,r.Projection=tl,r.Rectangle=Eo,r.Renderer=Et,r.SVG=Le,r.SVGOverlay=bo,r.TileLayer=oe,r.Tooltip=Je,r.Transformation=vn,r.Util=he,r.VideoOverlay=wo,r.bind=d,r.bounds=st,r.canvas=ko,r.circle=ll,r.circleMarker=al,r.control=ye,r.divIcon=gl,r.extend=u,r.featureGroup=ol,r.geoJSON=xo,r.geoJson=cl,r.gridLayer=vl,r.icon=rl,r.imageOverlay=fl,r.latLng=N,r.latLngBounds=Y,r.layerGroup=il,r.map=Wa,r.marker=sl,r.point=M,r.polygon=ul,r.polyline=hl,r.popup=pl,r.rectangle=wl,r.setOptions=O,r.stamp=m,r.svg=To,r.svgOverlay=_l,r.tileLayer=Lo,r.tooltip=ml,r.transformation=ce,r.version=l,r.videoOverlay=dl;var Al=window.L;r.noConflict=function(){return window.L=Al,this},window.L=r})}(se,se.exports)),se.exports}var Vt=Uo();const en=Fo({__proto__:null,default:jo(Vt)},[Vt]),nn="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACEAAAAtCAMAAAAX+PImAAABC1BMVEUAAAAAgAAAgAAAgAAAgAAAgAAAgAAAgAAAgAAAgAAAgAAAgAAAgAAAgAAAgAAAgAAAgAAAgAAAgAAAgAAAgAAAgAAAgAAAgAAAgAAAgAAAgAAAgAAAgAAAgAAAgAAAgAAAgAAAgAAAgAAAgAAAgAAAgAAAgAAAgAAAgAAAgAAAgAAAgAAAgAAAgAD///8AlAAAkgAAgQAAgwAAhgAAjQAAkAAAhwAElQQAigD7/fv3/PcfoR8LmQsAjABRtlFGskY8rTw0qjQAkQDx+fHp9unX7te+5L6W05ZjvmMUnRTi8+Lc8NzP68+q26qc1px0xXRAr0DM6szI6Mi04LSIzYhyxHJpwGkupy4spyzxfiXGAAAALXRSTlMA/QL59OffBr60qG9iDuzPujoJ746Ff3l0TUhAMycjGxJd18WunJhZLRgMZVI0U6/AAAACQklEQVQ4y32U53baQBBGR6L33k1zjZ0sLJJA9GoDjmt63v9JMrNarELs+4ODVvd8MxrtCmzU62opmg6no6VqU4VjQieFVI4JFH8qnwl5hUY+wJwkL+vgRK2kmJfTL6pDiMuAnqbrutaTMbGQLVgNaMM+J9YzXUj+8kGpioTekHcPcENjSK4NguaZCDDELUL8GTAkeAJEUQh9WjYny8XrxORvynmCnvOUSoiE1e5uMxo/PC9NUqiQ7wqNGLkDXDL3XzsWt7+meG1Qu5EbyEYogmrsN50D4xdT1glkoBG0IvjKSpApr9wKUWJQ8aNhYI3njpMnU3YShbgiivDJg8u4/YMhVCYMMTQ03uWLscsYzdEYonEGZWnMRx0Xv8mwM46N0V4aEYhLY7lxGeOFNPL0LKLT++8u426Cho5DbUOd5jHDR3txlfkp5x78BIk0GjrHkK1D+EYRBrWRBSjKqfPVo11jiQLHIiwGAJkcjZ1W/j6NrS5/rLh8c0Hazzfi1c2o7nSx2z5ud/MpCWua+YUKSNv3tkF4d3o/xV8SqEayBkQrzGSKJQn6JLBoFgRXfoWUQd/eyTONyQhB4pyhQo6x5kh/SPdx7TIEkkyAKYo8UvJE4QJN64BaVAhmQ5e+Mthch5nihaVb4KAWYF4hUHMf/rLPY/hKKrhIRJk7ItICD/WUU6ETe0Ql6VD8cThGLTlayctxv9cKCzfhvzRSTDaRAS/2x8jVxDHqZz9NohCCdwkVsduLBHxAtuBLN+FDWgXvqP4Bkoed0xIT03MAAAAASUVORK5CYII=",Ho="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAQAAAC0NkA6AAAELklEQVR4AWIYBaNgFIyCUTAKRsEoADRLF2uSFEEcwCMjpaRlfb9vcXeHK+5whjP+GuzzMFfuzBl3d4fx6ZK0iGC2exenC4d/tHdV/NL+bNTf2kf+ODLUFEF9X4sIMMip+tPIouX16FWLEROKYiXzAlh80FxQyWfQ6gL8w4gCvB53cJ/2OMZOJ8xIyEjYLeYiyGM2VOVp5rxLl9GKAP8RBEFdrqe60EaLAYM66KiTbjWjR1CMAEqQKprkKpWhjhTLDLQyn436nUukz9Ejc451dmLRZkOms9F0xuuwVwlPQ4Av2VGR98ex399N+txvxQP5NAIGMMdhWY6fBFozsUedcVOHBRbksh3Z7DbsV0Y0acKvEECxpiPxaBi11iBMOfNnvMUAAOaNJcSKAgR9mtmxh1xdmBJLXx2uUvlcEV2y4cSMNCMhICiAzMzrcdZPzU2s0nbyaZzX1BxZG9jq00xb7C/rkutcQ/1J/VxFZXbZRkNzAhQrWJwuFsoGoEkvuwvsTAfcVhOYI78trCrAM8ysmNR6lEcXTF4eh5pLLnORjGjWCQF5TgAszhYAI++B6+os+EZa2IUXABTIso3HC+xmMRnh1E7Hk0+mapQqKcixBUx4cg7zoIAgIUlErxrcOXPTb/KO7sB/nICWzgSUx8PO1WdNPtr3yZQmeUQFWdCsfzJ+QUYG0hmSCtxhc6T5phVPqcprDLJ8udQtCjSYfcWn9bcjGu8RVXKMgKcAFGBkJEuaIKnEUXpoj862d2SWuzY0CWgIgZm6BMFku1GYMhfiyLL5MWBIE5LNOpnMUYL41J3drM2kyW3bQwQCHkSuhwNqot7W1rCJBjQj4wJARtJksk4um2iiRB1Cf2nP3Uetabu+9ZAgL4hBJEiCs+BFyDDvrkAQgM0ccEnHItpog/Xkr+t3+22/04Nv/Sg2+RQxgAisyq4EtnQRvSpOohgGQNH5BOBOAL7wyl/fH+sb33rrdaBYpgPpYwJeEIOIkmdgKkl62S9aNGvmrBBzuQeYUPqyt/29fdUpzz2FFEOC1OY5IPOCQWSRo7Ah1V5ZimQTihKdquB83evu/u5wZzrnfQixSZyYZvzxL4Eh5BZ4E2owotmQSbWiBFSGsnPd/e2xbtzZ3gUKmD7Mn9Mar/Iv2w8iokAdVZ8pB4pcYp8zAEbX39uc1h7oRp3zOu7GNmf6nC+X478BDCCLsCCnbAOyKKRrwg1t0Rzs9nv0IULeogP8MAOsLAEGkBdgDB1s88fR9jrUfG9y/aSbdpWHAHmSP+QnGERgOGbZReuwxbOUPeQ7ZJSLtM8f6DFMUpXfoAf4+uH+gzNRAC0jfRDOkmtUSzVVCQLElGf0ND8pIPC7o+Q3/1nVL9novLU6SkEVTQlTpK/ojwEDyIN4ud7RQY9VI5lPY+A36Cn+/cAwMpz/G/IdAqGyx1q2VHAAAAAASUVORK5CYII=",on=()=>({createMap:(r,l,u)=>{const c=Vt.map(l,u),d=r?.tileLayerUrlTemplate||"https://tile.openstreetmap.org/{z}/{x}/{y}.png",v={maxZoom:19,attribution:"© OpenStreetMap",...r?.tileLayerOptions};return Vt.tileLayer(d,v).addTo(c),Vt.control.scale({imperial:!1}).addTo(c),c},createPinIcon:r=>Vt.icon({iconUrl:nn,shadowUrl:Ho,...r})}),Vo=x.defineComponent({__name:"LocationPanel",props:{panelContext:{},applicationConfig:{}},setup(i){const s=en,{createMap:r,createPinIcon:l}=on(),{onPanelActive:u}=Pe.useSideBar(),c=x.ref(null),d=x.ref(!1),v=x.computed(()=>!i.panelContext||!i.panelContext.items?[]:x.unref(i.panelContext.items.filter(k=>!!k.location))||[]),m=x.computed(()=>x.unref(v).map(k=>[k.location.latitude,k.location.longitude,1])),b=x.computed(()=>{const k=new s.LatLngBounds;return x.unref(m).forEach(O=>{k.extend(O)}),k}),P=l(),w=[];let y=null;const Z=()=>{d.value&&(y?.invalidateSize(),x.unref(m).length>0&&y?.fitBounds(x.unref(b),{maxZoom:x.unref(m).length>1?15:10}),w.forEach(k=>y?.removeLayer(k)),x.unref(m).forEach(k=>{w.push(s.marker(k,{icon:P}).addTo(y))}))};return x.watch(()=>[b],Z),x.onMounted(()=>{d.value=!0,y=r(i.applicationConfig,x.unref(c)),Z()}),x.onUnmounted(()=>{y?.remove()}),u("location-details",()=>{d.value=!0,Z()}),(k,O)=>(x.openBlock(),x.createElementBlock("div",{ref_key:"leafletElement",ref:c,class:"leafletContainer ext:h-[200px]"},null,512))}}),$n="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACEAAAAtCAMAAAAX+PImAAABAlBMVEUAAADGQkLGQkLGQkLGQkLGQkLGQkLGQkLGQkLGQkLGQkLGQkLGQkLGQkLGQkLGQkLGQkLGQkLGQkLGQkLGQkLGQkLGQkLGQkLGQkLGQkLGQkLGQkLGQkLGQkLGQkLGQkLGQkLGQkLGQkLGQkLGQkLGQkLGQkLGQkLGQkLGQkLGQkLGQkLGQkL///+3LCy4Li62KSnFQEDDPT3COzu7MjK9NDT9+Pi6MDC/NzfARUXBOTn+/PzUf3/Ob2/GV1e6NTX57e303t7iqKjYjIzLZGTJX1/78/P35+f14uLx19fx1NTtysrrxMTkrq7MaGjIXFzEUVG8PDznubnnuLjdnJy+Pz/5SaUvAAAALHRSTlMA/AL5Cgb08ObdurSoGg3sz75zbmM6joV/eVpNSEAzJyMSX+jh18SunJgtUvqwWL0AAAJBSURBVDjLfZN3e6JAEIcHsAXF3kssudRbAQFBjSWx5NLLle//VW5nWaUYff/hYZ+X3wyzu+AhKs1aSpblVK2piLBP9LSSjROGEM+WS9Gw0CkniJ/MdRv8iI0sCXP+U/QJxTPCGBimaRoDHlOI7oSe24AxsjRN1TRnaDIplt8qzQT7fqSpWzTLwKV4HRjKBRMsFdEpzDFx8eQUkOpO0LXxZr0Za/pOuUzjf56jMFQp8+W9bduPbx8sBQtJWKeA7gSXpr/6LncrTLSw3WQEIkmMcOjK9KG/xV5hCtY5K0HnxI3Q524CT1nrNAR3IA+NGH0OaY23vp8/Fu8kBUWBFdHHjwHj7pOGTKiRgwI1DE3V13bAuJ1RY0SNC8hzY3bbDzBFg2ccN5JQ5MbHQ0Cw37lRxn9h4/h6Dhj3Y50NROpBG+eBM18FyvzFIdOh/riBtEwNk77/e/EJzxhhuVOHKt9Zff7k1djofHcLAFCKY4hGlc/fttvl61ylDLFIGwC3jneiL96Xr08vy9kCD4iDM78SgVKXdgdEVxdfC9U7ZJkWIN0c4YoPBwWSigCjHhNQmTjeScYeeASSviRUQcdyNIo1whbo2nUUOKUEEQR+pQxjgN/jwsmNd+eqAkI88FXKg4eSI0IYInfBRytBwkKiBX7EvBQypJoIAdIpEoxIdiFEO+tX8Mbu0cj4lFgR9hFrvlbKfNyHWiE5Bb6lkyW8iRIcoOlOJdaDQ4jFOE6iEoWDRKu026s0HCFSkWQFjtKthEf1H+4TmsxXLEfyAAAAAElFTkSuQmCC",Qo="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACEAAAAzCAMAAAAuJJHNAAAAkFBMVEUAAAAAru8Aru8Aru8Aru8Aru8Aru8Aru8Aru8Aru8Aru8Aru8Aru8Aru8Aru8Aru8Aru8Aru8Aru8Aru8Aru8Aru8Aru8Aru8Aru8Aru8Aru8Aru8Aru8Aru8Aru8Aru8Aru8Aru8Aru8Aru8Aru8Aru8Aru8Aru8Aru8Aru8Aru8Aru8Aru8Aru8Aru8Aru9ovJP8AAAAL3RSTlMA+AT68Fr0FA8H3MSXQDkL6+bg1o6CUkcxwbitbV8sJyQZz76neH1yTB6yolWHaUf8FCEAAAGESURBVDjLfdTnloIwEAXgmyxVKUoTxLWsvezO+7/dqkgGDPH7B2dOuJkwQVe8Dgv7Fq48DIqjfJtYQggrGWczvcifXSxiTmXH6DkHFvWJeomOcky6dNYp+KEhiSrZbGlY+vqQzMikbuKGEzIRNu7klcwqD8BySmbiEXbRi18Hu/SLWAbIHSlOtpaQm30n2NjFhnvxtZd4srnB0xIlx5h7aMiAgxSYOdT6RivklwvYQqWI+CATVZHjWyW3uGIzUhW/uAkV1EYr4qgHRLy1nY+XvNt3l3frtFHDKe92CQTEj38egLhISZnHQNFpsqjyxWHuENs/cqdkNilxl5FZ7fPWdNwAvyaTHxdPhSCDIxqe6V8frfHCZ9OXo+WOh5dYAZ8XycHcypCC2YI0B3R5c31oz+g5Oe/tXKDPV2PDg/ImmmgzzYbuiEsMzWpEbBJiwJFYIMG03nO/NYXDpz7Mv1KjcmFQJvRgnWC0b2L6YENhR0t8cLLUgRjIgG8ig9U2xGdy/R7zH4uopdSUohgfAAAAAElFTkSuQmCC",qo={class:"ext:flex ext:flex-col"},Ko={class:"ext:absolute ext:grid ext:grid-cols-[auto_minmax(0,1fr)] ext:z-990 bg-role-surface-container ext:rounded ext:p-2 ext:right-2 ext:top-2"},Yo=["textContent"],Jo=["textContent"],Xo=["textContent"],$o=["textContent"],tr=x.defineComponent({__name:"GpxMap",props:{currentContent:{},applicationConfig:{}},setup(i){const s=en,{createMap:r}=on(),l=x.ref(null),{$gettext:u}=tn.useGettext();let c=null;const d=x.ref({}),v={async:!0,marker_options:{clickable:!1},markers:{startIcon:nn,endIcon:$n,wptIcons:{start:nn,end:$n,"":Qo}}};let m=null;const b=()=>{c&&(m&&c.removeLayer(m),m=new s.GPX(i.currentContent,v).on("loaded",P=>{const w=P.target;c.fitBounds(P.target.getBounds()),d.value={name:w.get_name(),distance:w.get_distance_imp().toFixed(2),elevationGain:w.to_ft(w.get_elevation_gain()).toFixed(0),elevationLoss:w.to_ft(w.get_elevation_loss()).toFixed(0),elevationNet:w.to_ft(w.get_elevation_gain()-w.get_elevation_loss()).toFixed(0)}}).addTo(c))};return x.onMounted(()=>{c=r(i.applicationConfig,x.unref(l)),b()}),x.watch(()=>i.currentContent,b),x.onBeforeUnmount(()=>{c?.remove()}),(P,w)=>(x.openBlock(),x.createElementBlock("div",qo,[x.createElementVNode("div",{ref_key:"leafletElement",ref:l,class:"ext:size-full ext:z-1"},[x.createElementVNode("dl",Ko,[x.createElementVNode("dt",{textContent:x.toDisplayString(x.unref(u)("Name"))},null,8,Yo),x.createElementVNode("dd",null,x.toDisplayString(d.value.name),1),x.createElementVNode("dt",{textContent:x.toDisplayString(x.unref(u)("Distance"))},null,8,Jo),x.createElementVNode("dd",null,x.toDisplayString(d.value.distance)+"km",1),x.createElementVNode("dt",{textContent:x.toDisplayString(x.unref(u)("Elevation Gain"))},null,8,Xo),x.createElementVNode("dd",null,x.toDisplayString(d.value.elevationGain)+"m",1),x.createElementVNode("dt",{textContent:x.toDisplayString(x.unref(u)("Elevation Loss"))},null,8,$o),x.createElementVNode("dd",null,x.toDisplayString(d.value.elevationLoss)+"m",1)])],512)]))}});var er=15e3,rn=1e3,sn=60*rn,ze=60*sn,an=24*ze,nr="http://www.topografix.com/GPX/gpx_style/0/2",ke=new L.Icon.Default,ir={startIcon:ke,endIcon:ke,wptIcons:{"":ke},wptTypeIcons:{"":ke},pointMatchers:[]},or={iconSize:[33,45],iconAnchor:[16,45],clickable:!1},rr={color:"blue"},sr={parseElements:["track","route","waypoint"],joinTrackSegments:!0};L.GPX=L.FeatureGroup.extend({initialize:function(i,s){s.max_point_interval=s.max_point_interval||er,s.markers=this._merge_objs(ir,s.markers||{}),s.marker_options=this._merge_objs(or,s.marker_options||{}),s.polyline_options=s.polyline_options||[],s.gpx_options=this._merge_objs(sr,s.gpx_options||{}),L.Util.setOptions(this,s),L.GPXTrackIcon=L.Icon.extend({options:s.marker_options}),this._gpx=i,this._layers={},this._prepare_markers(s.markers),this._init_info(),i&&this._parse(i,s,this.options.async)},get_duration_string:function(i,s){var r="";i>=an&&(r+=Math.floor(i/an)+"d ",i=i%an),i>=ze&&(r+=Math.floor(i/ze)+":",i=i%ze);var l=Math.floor(i/sn);i=i%sn,l<10&&(r+="0"),r+=l+"'";var u=Math.floor(i/rn);return i=i%rn,u<10&&(r+="0"),r+=u,!s&&i>0?r+="."+Math.round(Math.floor(i)*1e3)/1e3:r+='"',r},get_duration_string_iso:function(i,s){var r=this.get_duration_string(i,s);return r.replace("'",":").replace('"',"")},_toFixed_helper:function(i,s=0){return typeof i=="number"?i.toFixed(s):"?"},to_miles:function(i){return i/1.60934},to_ft:function(i){return i*3.28084},m_to_km:function(i){return i/1e3},m_to_mi:function(i){return i/1609.34},ms_to_kmh:function(i){return i*3.6},ms_to_mih:function(i){return i/1609.34*3600},get_name:function(){return this._info.name},get_desc:function(){return this._info.desc},get_author:function(){return this._info.author},get_copyright:function(){return this._info.copyright},get_distance:function(){return this._info.length},get_distance_imp:function(){return this.to_miles(this.m_to_km(this.get_distance()))},get_start_time:function(){return this._info.duration.start},get_end_time:function(){return this._info.duration.end},get_moving_time:function(){return this._info.duration.moving},get_total_time:function(){return this._info.duration.total},get_moving_pace:function(){return this.get_moving_time()/this.m_to_km(this.get_distance())},get_moving_pace_imp:function(){return this.get_moving_time()/this.get_distance_imp()},get_moving_speed:function(){return this.m_to_km(this.get_distance())/(this.get_moving_time()/(3600*1e3))},get_moving_speed_imp:function(){return this.to_miles(this.m_to_km(this.get_distance()))/(this.get_moving_time()/(3600*1e3))},get_total_speed:function(){return this.m_to_km(this.get_distance())/(this.get_total_time()/(3600*1e3))},get_total_speed_imp:function(){return this.to_miles(this.m_to_km(this.get_distance()))/(this.get_total_time()/(3600*1e3))},get_elevation_gain:function(){return this._info.elevation.gain},get_elevation_loss:function(){return this._info.elevation.loss},get_elevation_gain_imp:function(){return this.to_ft(this.get_elevation_gain())},get_elevation_loss_imp:function(){return this.to_ft(this.get_elevation_loss())},get_elevation_data:function(){var i=this;return this._info.elevation._points.map(function(s){return i._prepare_data_point(s,i.m_to_km,null,function(r,l){return i._toFixed_helper(r,2)+" km, "+i._toFixed_helper(l,0)+" m"})})},get_elevation_data_imp:function(){var i=this;return this._info.elevation._points.map(function(s){return i._prepare_data_point(s,i.m_to_mi,i.to_ft,function(r,l){return i._toFixed_helper(r,2)+" mi, "+i._toFixed_helper(l,0)+" ft"})})},get_elevation_max:function(){return this._info.elevation.max},get_elevation_min:function(){return this._info.elevation.min},get_elevation_max_imp:function(){return this.to_ft(this.get_elevation_max())},get_elevation_min_imp:function(){return this.to_ft(this.get_elevation_min())},get_speed_data:function(){var i=this;return this._info.speed._points.map(function(s){return i._prepare_data_point(s,i.m_to_km,i.ms_to_kmh,function(r,l){return i._toFixed_helper(r,2)+" km, "+i._toFixed_helper(l,2)+" km/h"})})},get_speed_data_imp:function(){var i=this;return this._info.speed._points.map(function(s){return i._prepare_data_point(s,i.m_to_mi,i.ms_to_mih,function(r,l){return i._toFixed_helper(r,2)+" mi, "+i._toFixed_helper(l,2)+" mi/h"})})},get_speed_max:function(){return this.m_to_km(this._info.speed.max)*3600},get_speed_max_imp:function(){return this.to_miles(this.get_speed_max())},get_average_hr:function(){return this._info.hr.avg},get_average_temp:function(){return this._info.atemp.avg},get_average_cadence:function(){return this._info.cad.avg},get_heartrate_data:function(){var i=this;return this._info.hr._points.map(function(s){return i._prepare_data_point(s,i.m_to_km,null,function(r,l){return i._toFixed_helper(r,2)+" km, "+i._toFixed_helper(l,0)+" bpm"})})},get_heartrate_data_imp:function(){var i=this;return this._info.hr._points.map(function(s){return i._prepare_data_point(s,i.m_to_mi,null,function(r,l){return i._toFixed_helper(r,2)+" mi, "+i._toFixed_helper(l,0)+" bpm"})})},get_cadence_data:function(){var i=this;return this._info.cad._points.map(function(s){return i._prepare_data_point(s,i.m_to_km,null,function(r,l){return i._toFixed_helper(r,2)+" km, "+i._toFixed_helper(l,0)+" rpm"})})},get_temp_data:function(){var i=this;return this._info.atemp._points.map(function(s){return i._prepare_data_point(s,i.m_to_km,null,function(r,l){return i._toFixed_helper(r,2)+" km, "+i._toFixed_helper(l,0)+" degrees"})})},get_cadence_data_imp:function(){var i=this;return this._info.cad._points.map(function(s){return i._prepare_data_point(s,i.m_to_mi,null,function(r,l){return i._toFixed_helper(r,2)+" mi, "+i._toFixed_helper(l,0)+" rpm"})})},get_temp_data_imp:function(){var i=this;return this._info.atemp._points.map(function(s){return i._prepare_data_point(s,i.m_to_mi,null,function(r,l){return i._toFixed_helper(r,2)+" mi, "+i._toFixed_helper(l,0)+" degrees"})})},reload:function(){this._init_info(),this.clearLayers(),this._parse(this._gpx,this.options,this.options.async)},_merge_objs:function(i,s){var r={};for(var l in i)r[l]=i[l];for(var l in s)r[l]=s[l];return r},_prepare_data_point:function(i,s,r,l){var u=[s&&s(i[0])||i[0],r&&r(i[1])||i[1]];return u.push(l&&l(u[0],u[1])||u[0]+": "+u[1]),u},_prepare_markers:function(i){function s(r){return new L.GPXTrackIcon({iconUrl:r})}return Object.entries(i).forEach(([r,l])=>{r==="wptIcons"||r==="wptTypeIcons"?i[r]=this._prepare_markers(l):r==="pointMatchers"?i[r]=l.map(u=>(typeof u.icon=="string"&&(u.icon=s(u.icon)),u)):typeof l=="string"?i[r]=s(l):typeof l=="object"&&l!==null&&(i[r]=l)}),i},_init_info:function(){this._info={name:null,length:0,elevation:{gain:0,loss:0,max:0,min:1/0,_points:[]},speed:{max:0,_points:[]},hr:{avg:0,_total:0,_points:[]},duration:{start:null,end:null,moving:0,total:0},atemp:{avg:0,_total:0,_points:[]},cad:{avg:0,_total:0,_points:[]}}},_load_xml:function(i,s,r,l){l==null&&(l=this.options.async),r==null&&(r=this.options);var u=this,c=new window.XMLHttpRequest;c.open("GET",i,l);try{c.overrideMimeType("text/xml")}catch{}c.onloadend=function(){c.status==200?s(c.responseXML,r):u.fire("error",{err:"Error fetching resource: "+i})},c.send(null)},_parse:function(i,s,r){var l=this,u=function(d,v){var m=l._parse_gpx_data(d,v);if(!m){l.fire("error",{err:"No parseable layers of type(s) "+JSON.stringify(v.gpx_options.parseElements)});return}l.addLayer(m),l.fire("loaded",{layers:m,element:d})};if(i.substr(0,1)==="<"){var c=new DOMParser;r?setTimeout(function(){u(c.parseFromString(i,"text/xml"),s)}):u(c.parseFromString(i,"text/xml"),s)}else this._load_xml(i,u,s,r)},_parse_gpx_data:function(i,s){var r,l,u=[],c=i.getElementsByTagName("name");c.length>0&&(this._info.name=c[0].textContent);var d=i.getElementsByTagName("desc");d.length>0&&(this._info.desc=d[0].textContent);var v=i.getElementsByTagName("author");v.length>0&&(this._info.author=v[0].textContent);var m=i.getElementsByTagName("copyright");m.length>0&&(this._info.copyright=m[0].textContent);var b=s.gpx_options.parseElements;if(b.indexOf("route")>-1){var P=i.getElementsByTagName("rte");for(r=0;r<P.length;r++){var w=P[r],y=this._extract_styling(w),Z=this._get_polyline_options(s.polyline_options,r);u=u.concat(this._parse_segment(P[r],s,y,Z,"rtept"))}}if(b.indexOf("track")>-1){var k=i.getElementsByTagName("trk");for(r=0;r<k.length;r++){var O=k[r],y=this._extract_styling(O),Z=this._get_polyline_options(s.polyline_options,r);if(s.gpx_options.joinTrackSegments)u=u.concat(this._parse_segment(O,s,y,Z,"trkpt"));else{var pt=O.getElementsByTagName("trkseg");for(q=0;q<pt.length;q++)u=u.concat(this._parse_segment(pt[q],s,y,Z,"trkpt"))}}}if(this._info.hr.avg=Math.round(this._info.hr._total/this._info.hr._points.length),this._info.cad.avg=Math.round(this._info.cad._total/this._info.cad._points.length),this._info.atemp.avg=Math.round(this._info.atemp._total/this._info.atemp._points.length),b.indexOf("waypoint")>-1)for(l=i.getElementsByTagName("wpt"),r=0;r<l.length;r++){var bt=new L.LatLng(l[r].getAttribute("lat"),l[r].getAttribute("lon")),ct=l[r].getElementsByTagName("name"),c=ct.length>0?ct[0].textContent:"",W=l[r].getElementsByTagName("desc"),d=W.length>0?W[0].textContent:"",G=l[r].getElementsByTagName("sym"),it=G.length>0?G[0].textContent:null,Yt=l[r].getElementsByTagName("type"),Rt=Yt.length>0?Yt[0].textContent:null,At=s.markers.wptIcons,Dt=s.markers.wptTypeIcons,Ft=s.markers.pointMatchers||[],Q;if(At&&it&&At[it])Q=At[it];else if(Dt&&Rt&&Dt[Rt])Q=Dt[Rt];else if(Ft.length>0){for(var q=0;q<Ft.length;q++)if(Ft[q].regex.test(c)){Q=Ft[q].icon;break}}else At&&At[""]&&(Q=At[""]);if(!Q){console.log("No waypoint icon could be matched for symKey=%s,typeKey=%s,name=%s on waypoint %o",it,Rt,c,l[r]);continue}var he=new L.Marker(bt,{clickable:s.marker_options.clickable,title:c,icon:Q,type:"waypoint"});he.bindPopup("<b>"+c+"</b>"+(d.length>0?"<br>"+d:"")).openPopup(),this.fire("addpoint",{point:he,point_type:"waypoint",element:l[r]}),u.push(he)}if(u.length>1)return new L.FeatureGroup(u);if(u.length==1)return u[0]},_parse_segment:function(i,s,r,l,u){var c=i.getElementsByTagName(u);if(!c.length)return[];for(var d=[],v=[],m=[],b=null,P=0;P<c.length;P++){var w,y=new L.LatLng(c[P].getAttribute("lat"),c[P].getAttribute("lon"));y.meta={time:null,ele:null,hr:null,cad:null,atemp:null,speed:null},w=c[P].getElementsByTagName("time"),w.length>0?y.meta.time=new Date(Date.parse(w[0].textContent)):y.meta.time=new Date("1970-01-01T00:00:00");var Z=b!=null?Math.abs(y.meta.time-b.meta.time):0;w=c[P].getElementsByTagName("ele"),w.length>0?y.meta.ele=parseFloat(w[0].textContent):y.meta.ele=b!=null?b.meta.ele:null;var k=b!=null?y.meta.ele-b.meta.ele:0,O=b!=null?this._dist3d(b,y):0;if(w=c[P].getElementsByTagName("speed"),w.length>0?y.meta.speed=parseFloat(w[0].textContent):y.meta.speed=Z>0?1e3*O/Z:0,w=c[P].getElementsByTagName("name"),w.length>0){for(var pt=w[0].textContent,bt=s.markers.pointMatchers||[],ct=0;ct<bt.length;ct++)if(bt[ct].regex.test(pt)){v.push({label:pt,coords:y,icon:bt[ct].icon,element:c[P]});break}}this._info.length+=O,w=c[P].getElementsByTagNameNS("*","hr"),w.length>0&&(y.meta.hr=parseInt(w[0].textContent),this._info.hr._points.push([this._info.length,y.meta.hr]),this._info.hr._total+=y.meta.hr),w=c[P].getElementsByTagNameNS("*","cad"),w.length>0&&(y.meta.cad=parseInt(w[0].textContent),this._info.cad._points.push([this._info.length,y.meta.cad]),this._info.cad._total+=y.meta.cad),w=c[P].getElementsByTagNameNS("*","atemp"),w.length>0&&(y.meta.atemp=parseInt(w[0].textContent),this._info.atemp._points.push([this._info.length,y.meta.atemp]),this._info.atemp._total+=y.meta.atemp),y.meta.ele>this._info.elevation.max&&(this._info.elevation.max=y.meta.ele),y.meta.ele<this._info.elevation.min&&(this._info.elevation.min=y.meta.ele),this._info.elevation._points.push([this._info.length,y.meta.ele]),y.meta.speed>this._info.speed.max&&(this._info.speed.max=y.meta.speed),this._info.speed._points.push([this._info.length,y.meta.speed]),b==null&&this._info.duration.start==null&&(this._info.duration.start=y.meta.time),this._info.duration.end=y.meta.time,this._info.duration.total+=Z,Z<s.max_point_interval&&(this._info.duration.moving+=Z),k>0?this._info.elevation.gain+=k:this._info.elevation.loss+=Math.abs(k),b=y,d.push(y)}var W=new L.Polyline(d,this._extract_styling(i,r,l));if(this.fire("addline",{line:W,element:i}),m.push(W),s.markers.startIcon){var G=new L.Marker(d[0],{clickable:s.marker_options.clickable,icon:s.markers.startIcon});this.fire("addpoint",{point:G,point_type:"start",element:c[0],line:i}),m.push(G)}if(s.markers.endIcon){var G=new L.Marker(d[d.length-1],{clickable:s.marker_options.clickable,icon:s.markers.endIcon});this.fire("addpoint",{point:G,point_type:"end",element:c[c.length-1],line:i}),m.push(G)}for(var P=0;P<v.length;P++){var G=new L.Marker(v[P].coords,{clickable:s.marker_options.clickable,title:v[P].label,icon:v[P].icon});this.fire("addpoint",{point:G,point_type:"label",element:v[P].element}),m.push(G)}return m},_get_polyline_options:function(i,s){return Array.isArray(i)?i[s]||{}:i},_extract_styling:function(i,s,r){var l=this._merge_objs(rr,s),u=i.getElementsByTagNameNS(nr,"line");if(u.length>0){var c=u[0].getElementsByTagName("color");c.length>0&&(l.color="#"+c[0].textContent);var c=u[0].getElementsByTagName("opacity");c.length>0&&(l.opacity=c[0].textContent);var c=u[0].getElementsByTagName("weight");c.length>0&&(l.weight=c[0].textContent);var c=u[0].getElementsByTagName("linecap");c.length>0&&(l.lineCap=c[0].textContent);var c=u[0].getElementsByTagName("linejoin");c.length>0&&(l.lineJoin=c[0].textContent);var c=u[0].getElementsByTagName("dasharray");c.length>0&&(l.dashArray=c[0].textContent);var c=u[0].getElementsByTagName("dashoffset");c.length>0&&(l.dashOffset=c[0].textContent)}return this._merge_objs(l,r)},_dist2d:function(i,s){var r=6371e3,l=this._deg2rad(s.lat-i.lat),u=this._deg2rad(s.lng-i.lng),c=Math.sin(l/2)*Math.sin(l/2)+Math.cos(this._deg2rad(i.lat))*Math.cos(this._deg2rad(s.lat))*Math.sin(u/2)*Math.sin(u/2),d=2*Math.atan2(Math.sqrt(c),Math.sqrt(1-c)),v=r*d;return v},_dist3d:function(i,s){var r=this._dist2d(i,s),l=Math.abs(s.meta.ele-i.meta.ele);return Math.sqrt(Math.pow(r,2)+Math.pow(l,2))},_deg2rad:function(i){return i*Math.PI/180}});const ar={class:"ext:h-full"},lr=["textContent"],hr=x.defineComponent({__name:"LocationFolderView",props:{resources:{},applicationConfig:{}},setup(i){const s=en,{$gettext:r}=tn.useGettext(),{createMap:l,createPinIcon:u}=on(),c=x.ref(null),d=x.ref(!1),v=x.computed(()=>x.unref(i.resources?.filter(k=>!!k.location))||[]),m=x.computed(()=>x.unref(v).map(k=>[k.location.latitude,k.location.longitude,1])),b=x.computed(()=>{const k=new s.LatLngBounds;return x.unref(m).forEach(O=>{k.extend(O)}),k}),P=u(),w=[];let y=null;const Z=()=>{d.value&&(y?.invalidateSize(),x.unref(m).length>0&&y?.fitBounds(x.unref(b),{maxZoom:x.unref(m).length>1?15:10}),w.forEach(k=>y?.removeLayer(k)),x.unref(m).forEach(k=>{w.push(s.marker(k,{icon:P}).addTo(y))}))};return x.watch(()=>[b],Z),x.onMounted(()=>{d.value=!0,y=l(i.applicationConfig,x.unref(c)),Z()}),x.onUnmounted(()=>{y?.remove()}),(k,O)=>(x.openBlock(),x.createElementBlock("div",ar,[m.value.length?x.createCommentVNode("",!0):(x.openBlock(),x.createBlock(x.unref(Pe.NoContentMessage),{key:0,icon:"map-2"},{message:x.withCtx(()=>[x.createElementVNode("span",{textContent:x.toDisplayString(x.unref(r)("No files with location data"))},null,8,lr)]),_:1})),x.createElementVNode("div",{ref_key:"leafletElement",ref:c,class:x.normalizeClass(["ext:h-full",{hidden:!m.value.length}])},null,2)]))}});function E(i,s,r){function l(v,m){var b;Object.defineProperty(v,"_zod",{value:v._zod??{},enumerable:!1}),(b=v._zod).traits??(b.traits=new Set),v._zod.traits.add(i),s(v,m);for(const P in d.prototype)P in v||Object.defineProperty(v,P,{value:d.prototype[P].bind(v)});v._zod.constr=d,v._zod.def=m}const u=r?.Parent??Object;class c extends u{}Object.defineProperty(c,"name",{value:i});function d(v){var m;const b=r?.Parent?new c:this;l(b,v),(m=b._zod).deferred??(m.deferred=[]);for(const P of b._zod.deferred)P();return b}return Object.defineProperty(d,"init",{value:l}),Object.defineProperty(d,Symbol.hasInstance,{value:v=>r?.Parent&&v instanceof r.Parent?!0:v?._zod?.traits?.has(i)}),Object.defineProperty(d,"name",{value:i}),d}class Qt extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class ti extends Error{constructor(s){super(`Encountered unidirectional transform during encode: ${s}`),this.name="ZodEncodeError"}}const ei={};function Zt(i){return ei}function ur(i){const s=Object.values(i).filter(l=>typeof l=="number");return Object.entries(i).filter(([l,u])=>s.indexOf(+l)===-1).map(([l,u])=>u)}function ln(i,s){return typeof s=="bigint"?s.toString():s}function hn(i){return{get value(){{const s=i();return Object.defineProperty(this,"value",{value:s}),s}}}}function un(i){return i==null}function cn(i){const s=i.startsWith("^")?1:0,r=i.endsWith("$")?i.length-1:i.length;return i.slice(s,r)}const ni=Symbol("evaluating");function j(i,s,r){let l;Object.defineProperty(i,s,{get(){if(l!==ni)return l===void 0&&(l=ni,l=r()),l},set(u){Object.defineProperty(i,s,{value:u})},configurable:!0})}function It(i,s,r){Object.defineProperty(i,s,{value:r,writable:!0,enumerable:!0,configurable:!0})}function Bt(...i){const s={};for(const r of i){const l=Object.getOwnPropertyDescriptors(r);Object.assign(s,l)}return Object.defineProperties({},s)}function ii(i){return JSON.stringify(i)}const oi="captureStackTrace"in Error?Error.captureStackTrace:(...i)=>{};function Te(i){return typeof i=="object"&&i!==null&&!Array.isArray(i)}const cr=hn(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{const i=Function;return new i(""),!0}catch{return!1}});function ae(i){if(Te(i)===!1)return!1;const s=i.constructor;if(s===void 0)return!0;const r=s.prototype;return!(Te(r)===!1||Object.prototype.hasOwnProperty.call(r,"isPrototypeOf")===!1)}function ri(i){return ae(i)?{...i}:Array.isArray(i)?[...i]:i}const fr=new Set(["string","number","symbol"]);function dr(i){return i.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Mt(i,s,r){const l=new i._zod.constr(s??i._zod.def);return(!s||r?.parent)&&(l._zod.parent=i),l}function rt(i){const s=i;if(!s)return{};if(typeof s=="string")return{error:()=>s};if(s?.message!==void 0){if(s?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");s.error=s.message}return delete s.message,typeof s.error=="string"?{...s,error:()=>s.error}:s}function _r(i){return Object.keys(i).filter(s=>i[s]._zod.optin==="optional"&&i[s]._zod.optout==="optional")}function pr(i,s){const r=i._zod.def,l=Bt(i._zod.def,{get shape(){const u={};for(const c in s){if(!(c in r.shape))throw new Error(`Unrecognized key: "${c}"`);s[c]&&(u[c]=r.shape[c])}return It(this,"shape",u),u},checks:[]});return Mt(i,l)}function mr(i,s){const r=i._zod.def,l=Bt(i._zod.def,{get shape(){const u={...i._zod.def.shape};for(const c in s){if(!(c in r.shape))throw new Error(`Unrecognized key: "${c}"`);s[c]&&delete u[c]}return It(this,"shape",u),u},checks:[]});return Mt(i,l)}function gr(i,s){if(!ae(s))throw new Error("Invalid input to extend: expected a plain object");const r=i._zod.def.checks;if(r&&r.length>0)throw new Error("Object schemas containing refinements cannot be extended. Use `.safeExtend()` instead.");const u=Bt(i._zod.def,{get shape(){const c={...i._zod.def.shape,...s};return It(this,"shape",c),c},checks:[]});return Mt(i,u)}function vr(i,s){if(!ae(s))throw new Error("Invalid input to safeExtend: expected a plain object");const r={...i._zod.def,get shape(){const l={...i._zod.def.shape,...s};return It(this,"shape",l),l},checks:i._zod.def.checks};return Mt(i,r)}function yr(i,s){const r=Bt(i._zod.def,{get shape(){const l={...i._zod.def.shape,...s._zod.def.shape};return It(this,"shape",l),l},get catchall(){return s._zod.def.catchall},checks:[]});return Mt(i,r)}function xr(i,s,r){const l=Bt(s._zod.def,{get shape(){const u=s._zod.def.shape,c={...u};if(r)for(const d in r){if(!(d in u))throw new Error(`Unrecognized key: "${d}"`);r[d]&&(c[d]=i?new i({type:"optional",innerType:u[d]}):u[d])}else for(const d in u)c[d]=i?new i({type:"optional",innerType:u[d]}):u[d];return It(this,"shape",c),c},checks:[]});return Mt(s,l)}function wr(i,s,r){const l=Bt(s._zod.def,{get shape(){const u=s._zod.def.shape,c={...u};if(r)for(const d in r){if(!(d in c))throw new Error(`Unrecognized key: "${d}"`);r[d]&&(c[d]=new i({type:"nonoptional",innerType:u[d]}))}else for(const d in u)c[d]=new i({type:"nonoptional",innerType:u[d]});return It(this,"shape",c),c},checks:[]});return Mt(s,l)}function qt(i,s=0){if(i.aborted===!0)return!0;for(let r=s;r<i.issues.length;r++)if(i.issues[r]?.continue!==!0)return!0;return!1}function si(i,s){return s.map(r=>{var l;return(l=r).path??(l.path=[]),r.path.unshift(i),r})}function Ee(i){return typeof i=="string"?i:i?.message}function Nt(i,s,r){const l={...i,path:i.path??[]};if(!i.message){const u=Ee(i.inst?._zod.def?.error?.(i))??Ee(s?.error?.(i))??Ee(r.customError?.(i))??Ee(r.localeError?.(i))??"Invalid input";l.message=u}return delete l.inst,delete l.continue,s?.reportInput||delete l.input,l}function fn(i){return Array.isArray(i)?"array":typeof i=="string"?"string":"unknown"}function le(...i){const[s,r,l]=i;return typeof s=="string"?{message:s,code:"custom",input:r,inst:l}:{...s}}const ai=(i,s)=>{i.name="$ZodError",Object.defineProperty(i,"_zod",{value:i._zod,enumerable:!1}),Object.defineProperty(i,"issues",{value:s,enumerable:!1}),i.message=JSON.stringify(s,ln,2),Object.defineProperty(i,"toString",{value:()=>i.message,enumerable:!1})},li=E("$ZodError",ai),hi=E("$ZodError",ai,{Parent:Error});function br(i,s=r=>r.message){const r={},l=[];for(const u of i.issues)u.path.length>0?(r[u.path[0]]=r[u.path[0]]||[],r[u.path[0]].push(s(u))):l.push(s(u));return{formErrors:l,fieldErrors:r}}function Ar(i,s=r=>r.message){const r={_errors:[]},l=u=>{for(const c of u.issues)if(c.code==="invalid_union"&&c.errors.length)c.errors.map(d=>l({issues:d}));else if(c.code==="invalid_key")l({issues:c.issues});else if(c.code==="invalid_element")l({issues:c.issues});else if(c.path.length===0)r._errors.push(s(c));else{let d=r,v=0;for(;v<c.path.length;){const m=c.path[v];v===c.path.length-1?(d[m]=d[m]||{_errors:[]},d[m]._errors.push(s(c))):d[m]=d[m]||{_errors:[]},d=d[m],v++}}};return l(i),r}const dn=i=>(s,r,l,u)=>{const c=l?Object.assign(l,{async:!1}):{async:!1},d=s._zod.run({value:r,issues:[]},c);if(d instanceof Promise)throw new Qt;if(d.issues.length){const v=new(u?.Err??i)(d.issues.map(m=>Nt(m,c,Zt())));throw oi(v,u?.callee),v}return d.value},_n=i=>async(s,r,l,u)=>{const c=l?Object.assign(l,{async:!0}):{async:!0};let d=s._zod.run({value:r,issues:[]},c);if(d instanceof Promise&&(d=await d),d.issues.length){const v=new(u?.Err??i)(d.issues.map(m=>Nt(m,c,Zt())));throw oi(v,u?.callee),v}return d.value},Me=i=>(s,r,l)=>{const u=l?{...l,async:!1}:{async:!1},c=s._zod.run({value:r,issues:[]},u);if(c instanceof Promise)throw new Qt;return c.issues.length?{success:!1,error:new(i??li)(c.issues.map(d=>Nt(d,u,Zt())))}:{success:!0,data:c.value}},Lr=Me(hi),Ce=i=>async(s,r,l)=>{const u=l?Object.assign(l,{async:!0}):{async:!0};let c=s._zod.run({value:r,issues:[]},u);return c instanceof Promise&&(c=await c),c.issues.length?{success:!1,error:new i(c.issues.map(d=>Nt(d,u,Zt())))}:{success:!0,data:c.value}},Pr=Ce(hi),zr=i=>(s,r,l)=>{const u=l?Object.assign(l,{direction:"backward"}):{direction:"backward"};return dn(i)(s,r,u)},kr=i=>(s,r,l)=>dn(i)(s,r,l),Tr=i=>async(s,r,l)=>{const u=l?Object.assign(l,{direction:"backward"}):{direction:"backward"};return _n(i)(s,r,u)},Er=i=>async(s,r,l)=>_n(i)(s,r,l),Mr=i=>(s,r,l)=>{const u=l?Object.assign(l,{direction:"backward"}):{direction:"backward"};return Me(i)(s,r,u)},Cr=i=>(s,r,l)=>Me(i)(s,r,l),Sr=i=>async(s,r,l)=>{const u=l?Object.assign(l,{direction:"backward"}):{direction:"backward"};return Ce(i)(s,r,u)},Or=i=>async(s,r,l)=>Ce(i)(s,r,l),Zr=/^(?:true|false)$/i,Kt=E("$ZodCheck",(i,s)=>{var r;i._zod??(i._zod={}),i._zod.def=s,(r=i._zod).onattach??(r.onattach=[])}),Ir=E("$ZodCheckMaxLength",(i,s)=>{var r;Kt.init(i,s),(r=i._zod.def).when??(r.when=l=>{const u=l.value;return!un(u)&&u.length!==void 0}),i._zod.onattach.push(l=>{const u=l._zod.bag.maximum??Number.POSITIVE_INFINITY;s.maximum<u&&(l._zod.bag.maximum=s.maximum)}),i._zod.check=l=>{const u=l.value;if(u.length<=s.maximum)return;const d=fn(u);l.issues.push({origin:d,code:"too_big",maximum:s.maximum,inclusive:!0,input:u,inst:i,continue:!s.abort})}}),Br=E("$ZodCheckMinLength",(i,s)=>{var r;Kt.init(i,s),(r=i._zod.def).when??(r.when=l=>{const u=l.value;return!un(u)&&u.length!==void 0}),i._zod.onattach.push(l=>{const u=l._zod.bag.minimum??Number.NEGATIVE_INFINITY;s.minimum>u&&(l._zod.bag.minimum=s.minimum)}),i._zod.check=l=>{const u=l.value;if(u.length>=s.minimum)return;const d=fn(u);l.issues.push({origin:d,code:"too_small",minimum:s.minimum,inclusive:!0,input:u,inst:i,continue:!s.abort})}}),Nr=E("$ZodCheckLengthEquals",(i,s)=>{var r;Kt.init(i,s),(r=i._zod.def).when??(r.when=l=>{const u=l.value;return!un(u)&&u.length!==void 0}),i._zod.onattach.push(l=>{const u=l._zod.bag;u.minimum=s.length,u.maximum=s.length,u.length=s.length}),i._zod.check=l=>{const u=l.value,c=u.length;if(c===s.length)return;const d=fn(u),v=c>s.length;l.issues.push({origin:d,...v?{code:"too_big",maximum:s.length}:{code:"too_small",minimum:s.length},inclusive:!0,exact:!0,input:l.value,inst:i,continue:!s.abort})}}),Rr=E("$ZodCheckOverwrite",(i,s)=>{Kt.init(i,s),i._zod.check=r=>{r.value=s.tx(r.value)}});class Dr{constructor(s=[]){this.content=[],this.indent=0,this&&(this.args=s)}indented(s){this.indent+=1,s(this),this.indent-=1}write(s){if(typeof s=="function"){s(this,{execution:"sync"}),s(this,{execution:"async"});return}const l=s.split(`
`).filter(d=>d),u=Math.min(...l.map(d=>d.length-d.trimStart().length)),c=l.map(d=>d.slice(u)).map(d=>" ".repeat(this.indent*2)+d);for(const d of c)this.content.push(d)}compile(){const s=Function,r=this?.args,u=[...(this?.content??[""]).map(c=>` ${c}`)];return new s(...r,u.join(`
`))}}const Fr={major:4,minor:1,patch:12},$=E("$ZodType",(i,s)=>{var r;i??(i={}),i._zod.def=s,i._zod.bag=i._zod.bag||{},i._zod.version=Fr;const l=[...i._zod.def.checks??[]];i._zod.traits.has("$ZodCheck")&&l.unshift(i);for(const u of l)for(const c of u._zod.onattach)c(i);if(l.length===0)(r=i._zod).deferred??(r.deferred=[]),i._zod.deferred?.push(()=>{i._zod.run=i._zod.parse});else{const u=(d,v,m)=>{let b=qt(d),P;for(const w of v){if(w._zod.def.when){if(!w._zod.def.when(d))continue}else if(b)continue;const y=d.issues.length,Z=w._zod.check(d);if(Z instanceof Promise&&m?.async===!1)throw new Qt;if(P||Z instanceof Promise)P=(P??Promise.resolve()).then(async()=>{await Z,d.issues.length!==y&&(b||(b=qt(d,y)))});else{if(d.issues.length===y)continue;b||(b=qt(d,y))}}return P?P.then(()=>d):d},c=(d,v,m)=>{if(qt(d))return d.aborted=!0,d;const b=u(v,l,m);if(b instanceof Promise){if(m.async===!1)throw new Qt;return b.then(P=>i._zod.parse(P,m))}return i._zod.parse(b,m)};i._zod.run=(d,v)=>{if(v.skipChecks)return i._zod.parse(d,v);if(v.direction==="backward"){const b=i._zod.parse({value:d.value,issues:[]},{...v,skipChecks:!0});return b instanceof Promise?b.then(P=>c(P,d,v)):c(b,d,v)}const m=i._zod.parse(d,v);if(m instanceof Promise){if(v.async===!1)throw new Qt;return m.then(b=>u(b,l,v))}return u(m,l,v)}}i["~standard"]={validate:u=>{try{const c=Lr(i,u);return c.success?{value:c.data}:{issues:c.error?.issues}}catch{return Pr(i,u).then(d=>d.success?{value:d.data}:{issues:d.error?.issues})}},vendor:"zod",version:1}}),Wr=E("$ZodBoolean",(i,s)=>{$.init(i,s),i._zod.pattern=Zr,i._zod.parse=(r,l)=>{if(s.coerce)try{r.value=!!r.value}catch{}const u=r.value;return typeof u=="boolean"||r.issues.push({expected:"boolean",code:"invalid_type",input:u,inst:i}),r}}),jr=E("$ZodUnknown",(i,s)=>{$.init(i,s),i._zod.parse=r=>r}),Gr=E("$ZodNever",(i,s)=>{$.init(i,s),i._zod.parse=(r,l)=>(r.issues.push({expected:"never",code:"invalid_type",input:r.value,inst:i}),r)});function ui(i,s,r){i.issues.length&&s.issues.push(...si(r,i.issues)),s.value[r]=i.value}const Ur=E("$ZodArray",(i,s)=>{$.init(i,s),i._zod.parse=(r,l)=>{const u=r.value;if(!Array.isArray(u))return r.issues.push({expected:"array",code:"invalid_type",input:u,inst:i}),r;r.value=Array(u.length);const c=[];for(let d=0;d<u.length;d++){const v=u[d],m=s.element._zod.run({value:v,issues:[]},l);m instanceof Promise?c.push(m.then(b=>ui(b,r,d))):ui(m,r,d)}return c.length?Promise.all(c).then(()=>r):r}});function Se(i,s,r,l){i.issues.length&&s.issues.push(...si(r,i.issues)),i.value===void 0?r in l&&(s.value[r]=void 0):s.value[r]=i.value}function ci(i){const s=Object.keys(i.shape);for(const l of s)if(!i.shape?.[l]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${l}": expected a Zod schema`);const r=_r(i.shape);return{...i,keys:s,keySet:new Set(s),numKeys:s.length,optionalKeys:new Set(r)}}function fi(i,s,r,l,u,c){const d=[],v=u.keySet,m=u.catchall._zod,b=m.def.type;for(const P of Object.keys(s)){if(v.has(P))continue;if(b==="never"){d.push(P);continue}const w=m.run({value:s[P],issues:[]},l);w instanceof Promise?i.push(w.then(y=>Se(y,r,P,s))):Se(w,r,P,s)}return d.length&&r.issues.push({code:"unrecognized_keys",keys:d,input:s,inst:c}),i.length?Promise.all(i).then(()=>r):r}const Hr=E("$ZodObject",(i,s)=>{if($.init(i,s),!Object.getOwnPropertyDescriptor(s,"shape")?.get){const v=s.shape;Object.defineProperty(s,"shape",{get:()=>{const m={...v};return Object.defineProperty(s,"shape",{value:m}),m}})}const l=hn(()=>ci(s));j(i._zod,"propValues",()=>{const v=s.shape,m={};for(const b in v){const P=v[b]._zod;if(P.values){m[b]??(m[b]=new Set);for(const w of P.values)m[b].add(w)}}return m});const u=Te,c=s.catchall;let d;i._zod.parse=(v,m)=>{d??(d=l.value);const b=v.value;if(!u(b))return v.issues.push({expected:"object",code:"invalid_type",input:b,inst:i}),v;v.value={};const P=[],w=d.shape;for(const y of d.keys){const k=w[y]._zod.run({value:b[y],issues:[]},m);k instanceof Promise?P.push(k.then(O=>Se(O,v,y,b))):Se(k,v,y,b)}return c?fi(P,b,v,m,l.value,i):P.length?Promise.all(P).then(()=>v):v}}),Vr=E("$ZodObjectJIT",(i,s)=>{Hr.init(i,s);const r=i._zod.parse,l=hn(()=>ci(s)),u=y=>{const Z=new Dr(["shape","payload","ctx"]),k=l.value,O=W=>{const G=ii(W);return`shape[${G}]._zod.run({ value: input[${G}], issues: [] }, ctx)`};Z.write("const input = payload.value;");const pt=Object.create(null);let bt=0;for(const W of k.keys)pt[W]=`key_${bt++}`;Z.write("const newResult = {};");for(const W of k.keys){const G=pt[W],it=ii(W);Z.write(`const ${G} = ${O(W)};`),Z.write(`
if (${G}.issues.length) {
payload.issues = payload.issues.concat(${G}.issues.map(iss => ({
...iss,
path: iss.path ? [${it}, ...iss.path] : [${it}]
})));
}
if (${G}.value === undefined) {
if (${it} in input) {
newResult[${it}] = undefined;
}
} else {
newResult[${it}] = ${G}.value;
}
`)}Z.write("payload.value = newResult;"),Z.write("return payload;");const ct=Z.compile();return(W,G)=>ct(y,W,G)};let c;const d=Te,v=!ei.jitless,b=v&&cr.value,P=s.catchall;let w;i._zod.parse=(y,Z)=>{w??(w=l.value);const k=y.value;return d(k)?v&&b&&Z?.async===!1&&Z.jitless!==!0?(c||(c=u(s.shape)),y=c(y,Z),P?fi([],k,y,Z,w,i):y):r(y,Z):(y.issues.push({expected:"object",code:"invalid_type",input:k,inst:i}),y)}});function di(i,s,r,l){for(const c of i)if(c.issues.length===0)return s.value=c.value,s;const u=i.filter(c=>!qt(c));return u.length===1?(s.value=u[0].value,u[0]):(s.issues.push({code:"invalid_union",input:s.value,inst:r,errors:i.map(c=>c.issues.map(d=>Nt(d,l,Zt())))}),s)}const Qr=E("$ZodUnion",(i,s)=>{$.init(i,s),j(i._zod,"optin",()=>s.options.some(u=>u._zod.optin==="optional")?"optional":void 0),j(i._zod,"optout",()=>s.options.some(u=>u._zod.optout==="optional")?"optional":void 0),j(i._zod,"values",()=>{if(s.options.every(u=>u._zod.values))return new Set(s.options.flatMap(u=>Array.from(u._zod.values)))}),j(i._zod,"pattern",()=>{if(s.options.every(u=>u._zod.pattern)){const u=s.options.map(c=>c._zod.pattern);return new RegExp(`^(${u.map(c=>cn(c.source)).join("|")})$`)}});const r=s.options.length===1,l=s.options[0]._zod.run;i._zod.parse=(u,c)=>{if(r)return l(u,c);let d=!1;const v=[];for(const m of s.options){const b=m._zod.run({value:u.value,issues:[]},c);if(b instanceof Promise)v.push(b),d=!0;else{if(b.issues.length===0)return b;v.push(b)}}return d?Promise.all(v).then(m=>di(m,u,i,c)):di(v,u,i,c)}}),qr=E("$ZodIntersection",(i,s)=>{$.init(i,s),i._zod.parse=(r,l)=>{const u=r.value,c=s.left._zod.run({value:u,issues:[]},l),d=s.right._zod.run({value:u,issues:[]},l);return c instanceof Promise||d instanceof Promise?Promise.all([c,d]).then(([m,b])=>_i(r,m,b)):_i(r,c,d)}});function pn(i,s){if(i===s)return{valid:!0,data:i};if(i instanceof Date&&s instanceof Date&&+i==+s)return{valid:!0,data:i};if(ae(i)&&ae(s)){const r=Object.keys(s),l=Object.keys(i).filter(c=>r.indexOf(c)!==-1),u={...i,...s};for(const c of l){const d=pn(i[c],s[c]);if(!d.valid)return{valid:!1,mergeErrorPath:[c,...d.mergeErrorPath]};u[c]=d.data}return{valid:!0,data:u}}if(Array.isArray(i)&&Array.isArray(s)){if(i.length!==s.length)return{valid:!1,mergeErrorPath:[]};const r=[];for(let l=0;l<i.length;l++){const u=i[l],c=s[l],d=pn(u,c);if(!d.valid)return{valid:!1,mergeErrorPath:[l,...d.mergeErrorPath]};r.push(d.data)}return{valid:!0,data:r}}return{valid:!1,mergeErrorPath:[]}}function _i(i,s,r){if(s.issues.length&&i.issues.push(...s.issues),r.issues.length&&i.issues.push(...r.issues),qt(i))return i;const l=pn(s.value,r.value);if(!l.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(l.mergeErrorPath)}`);return i.value=l.data,i}const Kr=E("$ZodEnum",(i,s)=>{$.init(i,s);const r=ur(s.entries),l=new Set(r);i._zod.values=l,i._zod.pattern=new RegExp(`^(${r.filter(u=>fr.has(typeof u)).map(u=>typeof u=="string"?dr(u):u.toString()).join("|")})$`),i._zod.parse=(u,c)=>{const d=u.value;return l.has(d)||u.issues.push({code:"invalid_value",values:r,input:d,inst:i}),u}}),Yr=E("$ZodTransform",(i,s)=>{$.init(i,s),i._zod.parse=(r,l)=>{if(l.direction==="backward")throw new ti(i.constructor.name);const u=s.transform(r.value,r);if(l.async)return(u instanceof Promise?u:Promise.resolve(u)).then(d=>(r.value=d,r));if(u instanceof Promise)throw new Qt;return r.value=u,r}});function pi(i,s){return i.issues.length&&s===void 0?{issues:[],value:void 0}:i}const Jr=E("$ZodOptional",(i,s)=>{$.init(i,s),i._zod.optin="optional",i._zod.optout="optional",j(i._zod,"values",()=>s.innerType._zod.values?new Set([...s.innerType._zod.values,void 0]):void 0),j(i._zod,"pattern",()=>{const r=s.innerType._zod.pattern;return r?new RegExp(`^(${cn(r.source)})?$`):void 0}),i._zod.parse=(r,l)=>{if(s.innerType._zod.optin==="optional"){const u=s.innerType._zod.run(r,l);return u instanceof Promise?u.then(c=>pi(c,r.value)):pi(u,r.value)}return r.value===void 0?r:s.innerType._zod.run(r,l)}}),Xr=E("$ZodNullable",(i,s)=>{$.init(i,s),j(i._zod,"optin",()=>s.innerType._zod.optin),j(i._zod,"optout",()=>s.innerType._zod.optout),j(i._zod,"pattern",()=>{const r=s.innerType._zod.pattern;return r?new RegExp(`^(${cn(r.source)}|null)$`):void 0}),j(i._zod,"values",()=>s.innerType._zod.values?new Set([...s.innerType._zod.values,null]):void 0),i._zod.parse=(r,l)=>r.value===null?r:s.innerType._zod.run(r,l)}),$r=E("$ZodDefault",(i,s)=>{$.init(i,s),i._zod.optin="optional",j(i._zod,"values",()=>s.innerType._zod.values),i._zod.parse=(r,l)=>{if(l.direction==="backward")return s.innerType._zod.run(r,l);if(r.value===void 0)return r.value=s.defaultValue,r;const u=s.innerType._zod.run(r,l);return u instanceof Promise?u.then(c=>mi(c,s)):mi(u,s)}});function mi(i,s){return i.value===void 0&&(i.value=s.defaultValue),i}const ts=E("$ZodPrefault",(i,s)=>{$.init(i,s),i._zod.optin="optional",j(i._zod,"values",()=>s.innerType._zod.values),i._zod.parse=(r,l)=>(l.direction==="backward"||r.value===void 0&&(r.value=s.defaultValue),s.innerType._zod.run(r,l))}),es=E("$ZodNonOptional",(i,s)=>{$.init(i,s),j(i._zod,"values",()=>{const r=s.innerType._zod.values;return r?new Set([...r].filter(l=>l!==void 0)):void 0}),i._zod.parse=(r,l)=>{const u=s.innerType._zod.run(r,l);return u instanceof Promise?u.then(c=>gi(c,i)):gi(u,i)}});function gi(i,s){return!i.issues.length&&i.value===void 0&&i.issues.push({code:"invalid_type",expected:"nonoptional",input:i.value,inst:s}),i}const ns=E("$ZodCatch",(i,s)=>{$.init(i,s),j(i._zod,"optin",()=>s.innerType._zod.optin),j(i._zod,"optout",()=>s.innerType._zod.optout),j(i._zod,"values",()=>s.innerType._zod.values),i._zod.parse=(r,l)=>{if(l.direction==="backward")return s.innerType._zod.run(r,l);const u=s.innerType._zod.run(r,l);return u instanceof Promise?u.then(c=>(r.value=c.value,c.issues.length&&(r.value=s.catchValue({...r,error:{issues:c.issues.map(d=>Nt(d,l,Zt()))},input:r.value}),r.issues=[]),r)):(r.value=u.value,u.issues.length&&(r.value=s.catchValue({...r,error:{issues:u.issues.map(c=>Nt(c,l,Zt()))},input:r.value}),r.issues=[]),r)}}),is=E("$ZodPipe",(i,s)=>{$.init(i,s),j(i._zod,"values",()=>s.in._zod.values),j(i._zod,"optin",()=>s.in._zod.optin),j(i._zod,"optout",()=>s.out._zod.optout),j(i._zod,"propValues",()=>s.in._zod.propValues),i._zod.parse=(r,l)=>{if(l.direction==="backward"){const c=s.out._zod.run(r,l);return c instanceof Promise?c.then(d=>Oe(d,s.in,l)):Oe(c,s.in,l)}const u=s.in._zod.run(r,l);return u instanceof Promise?u.then(c=>Oe(c,s.out,l)):Oe(u,s.out,l)}});function Oe(i,s,r){return i.issues.length?(i.aborted=!0,i):s._zod.run({value:i.value,issues:i.issues},r)}const os=E("$ZodReadonly",(i,s)=>{$.init(i,s),j(i._zod,"propValues",()=>s.innerType._zod.propValues),j(i._zod,"values",()=>s.innerType._zod.values),j(i._zod,"optin",()=>s.innerType._zod.optin),j(i._zod,"optout",()=>s.innerType._zod.optout),i._zod.parse=(r,l)=>{if(l.direction==="backward")return s.innerType._zod.run(r,l);const u=s.innerType._zod.run(r,l);return u instanceof Promise?u.then(vi):vi(u)}});function vi(i){return i.value=Object.freeze(i.value),i}const rs=E("$ZodCustom",(i,s)=>{Kt.init(i,s),$.init(i,s),i._zod.parse=(r,l)=>r,i._zod.check=r=>{const l=r.value,u=s.fn(l);if(u instanceof Promise)return u.then(c=>yi(c,r,l,i));yi(u,r,l,i)}});function yi(i,s,r,l){if(!i){const u={code:"custom",input:r,inst:l,path:[...l._zod.def.path??[]],continue:!l._zod.def.abort};l._zod.def.params&&(u.params=l._zod.def.params),s.issues.push(le(u))}}class ss{constructor(){this._map=new WeakMap,this._idmap=new Map}add(s,...r){const l=r[0];if(this._map.set(s,l),l&&typeof l=="object"&&"id"in l){if(this._idmap.has(l.id))throw new Error(`ID ${l.id} already exists in the registry`);this._idmap.set(l.id,s)}return this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(s){const r=this._map.get(s);return r&&typeof r=="object"&&"id"in r&&this._idmap.delete(r.id),this._map.delete(s),this}get(s){const r=s._zod.parent;if(r){const l={...this.get(r)??{}};delete l.id;const u={...l,...this._map.get(s)};return Object.keys(u).length?u:void 0}return this._map.get(s)}has(s){return this._map.has(s)}}function as(){return new ss}const Ze=as();function ls(i,s){return new i({type:"boolean",...rt(s)})}function hs(i){return new i({type:"unknown"})}function us(i,s){return new i({type:"never",...rt(s)})}function cs(i,s){return new Ir({check:"max_length",...rt(s),maximum:i})}function xi(i,s){return new Br({check:"min_length",...rt(s),minimum:i})}function fs(i,s){return new Nr({check:"length_equals",...rt(s),length:i})}function ds(i){return new Rr({check:"overwrite",tx:i})}function _s(i,s,r){return new i({type:"array",element:s,...rt(r)})}function ps(i,s,r){return new i({type:"custom",check:"custom",fn:s,...rt(r)})}function ms(i){const s=gs(r=>(r.addIssue=l=>{if(typeof l=="string")r.issues.push(le(l,r.value,s._zod.def));else{const u=l;u.fatal&&(u.continue=!1),u.code??(u.code="custom"),u.input??(u.input=r.value),u.inst??(u.inst=s),u.continue??(u.continue=!s._zod.def.abort),r.issues.push(le(u))}},i(r.value,r)));return s}function gs(i,s){const r=new Kt({check:"custom",...rt(s)});return r._zod.check=i,r}const ut=E("ZodError",(i,s)=>{li.init(i,s),i.name="ZodError",Object.defineProperties(i,{format:{value:r=>Ar(i,r)},flatten:{value:r=>br(i,r)},addIssue:{value:r=>{i.issues.push(r),i.message=JSON.stringify(i.issues,ln,2)}},addIssues:{value:r=>{i.issues.push(...r),i.message=JSON.stringify(i.issues,ln,2)}},isEmpty:{get(){return i.issues.length===0}}})},{Parent:Error}),vs=dn(ut),ys=_n(ut),xs=Me(ut),ws=Ce(ut),bs=zr(ut),As=kr(ut),Ls=Tr(ut),Ps=Er(ut),zs=Mr(ut),ks=Cr(ut),Ts=Sr(ut),Es=Or(ut),tt=E("ZodType",(i,s)=>($.init(i,s),i.def=s,i.type=s.type,Object.defineProperty(i,"_def",{value:s}),i.check=(...r)=>i.clone(Bt(s,{checks:[...s.checks??[],...r.map(l=>typeof l=="function"?{_zod:{check:l,def:{check:"custom"},onattach:[]}}:l)]})),i.clone=(r,l)=>Mt(i,r,l),i.brand=()=>i,i.register=(r,l)=>(r.add(i,l),i),i.parse=(r,l)=>vs(i,r,l,{callee:i.parse}),i.safeParse=(r,l)=>xs(i,r,l),i.parseAsync=async(r,l)=>ys(i,r,l,{callee:i.parseAsync}),i.safeParseAsync=async(r,l)=>ws(i,r,l),i.spa=i.safeParseAsync,i.encode=(r,l)=>bs(i,r,l),i.decode=(r,l)=>As(i,r,l),i.encodeAsync=async(r,l)=>Ls(i,r,l),i.decodeAsync=async(r,l)=>Ps(i,r,l),i.safeEncode=(r,l)=>zs(i,r,l),i.safeDecode=(r,l)=>ks(i,r,l),i.safeEncodeAsync=async(r,l)=>Ts(i,r,l),i.safeDecodeAsync=async(r,l)=>Es(i,r,l),i.refine=(r,l)=>i.check(oa(r,l)),i.superRefine=r=>i.check(ra(r)),i.overwrite=r=>i.check(ds(r)),i.optional=()=>Ai(i),i.nullable=()=>Li(i),i.nullish=()=>Ai(Li(i)),i.nonoptional=r=>Js(i,r),i.array=()=>Bs(i),i.or=r=>Fs([i,r]),i.and=r=>js(i,r),i.transform=r=>zi(i,Hs(r)),i.default=r=>qs(i,r),i.prefault=r=>Ys(i,r),i.catch=r=>$s(i,r),i.pipe=r=>zi(i,r),i.readonly=()=>na(i),i.describe=r=>{const l=i.clone();return Ze.add(l,{description:r}),l},Object.defineProperty(i,"description",{get(){return Ze.get(i)?.description},configurable:!0}),i.meta=(...r)=>{if(r.length===0)return Ze.get(i);const l=i.clone();return Ze.add(l,r[0]),l},i.isOptional=()=>i.safeParse(void 0).success,i.isNullable=()=>i.safeParse(null).success,i)),Ms=E("ZodBoolean",(i,s)=>{Wr.init(i,s),tt.init(i,s)});function Cs(i){return ls(Ms,i)}const Ss=E("ZodUnknown",(i,s)=>{jr.init(i,s),tt.init(i,s)});function wi(){return hs(Ss)}const Os=E("ZodNever",(i,s)=>{Gr.init(i,s),tt.init(i,s)});function Zs(i){return us(Os,i)}const Is=E("ZodArray",(i,s)=>{Ur.init(i,s),tt.init(i,s),i.element=s.element,i.min=(r,l)=>i.check(xi(r,l)),i.nonempty=r=>i.check(xi(1,r)),i.max=(r,l)=>i.check(cs(r,l)),i.length=(r,l)=>i.check(fs(r,l)),i.unwrap=()=>i.element});function Bs(i,s){return _s(Is,i,s)}const Ns=E("ZodObject",(i,s)=>{Vr.init(i,s),tt.init(i,s),j(i,"shape",()=>s.shape),i.keyof=()=>Gs(Object.keys(i._zod.def.shape)),i.catchall=r=>i.clone({...i._zod.def,catchall:r}),i.passthrough=()=>i.clone({...i._zod.def,catchall:wi()}),i.loose=()=>i.clone({...i._zod.def,catchall:wi()}),i.strict=()=>i.clone({...i._zod.def,catchall:Zs()}),i.strip=()=>i.clone({...i._zod.def,catchall:void 0}),i.extend=r=>gr(i,r),i.safeExtend=r=>vr(i,r),i.merge=r=>yr(i,r),i.pick=r=>pr(i,r),i.omit=r=>mr(i,r),i.partial=(...r)=>xr(bi,i,r[0]),i.required=(...r)=>wr(Pi,i,r[0])});function Rs(i,s){const r={type:"object",shape:i??{},...rt(s)};return new Ns(r)}const Ds=E("ZodUnion",(i,s)=>{Qr.init(i,s),tt.init(i,s),i.options=s.options});function Fs(i,s){return new Ds({type:"union",options:i,...rt(s)})}const Ws=E("ZodIntersection",(i,s)=>{qr.init(i,s),tt.init(i,s)});function js(i,s){return new Ws({type:"intersection",left:i,right:s})}const mn=E("ZodEnum",(i,s)=>{Kr.init(i,s),tt.init(i,s),i.enum=s.entries,i.options=Object.values(s.entries);const r=new Set(Object.keys(s.entries));i.extract=(l,u)=>{const c={};for(const d of l)if(r.has(d))c[d]=s.entries[d];else throw new Error(`Key ${d} not found in enum`);return new mn({...s,checks:[],...rt(u),entries:c})},i.exclude=(l,u)=>{const c={...s.entries};for(const d of l)if(r.has(d))delete c[d];else throw new Error(`Key ${d} not found in enum`);return new mn({...s,checks:[],...rt(u),entries:c})}});function Gs(i,s){const r=Array.isArray(i)?Object.fromEntries(i.map(l=>[l,l])):i;return new mn({type:"enum",entries:r,...rt(s)})}const Us=E("ZodTransform",(i,s)=>{Yr.init(i,s),tt.init(i,s),i._zod.parse=(r,l)=>{if(l.direction==="backward")throw new ti(i.constructor.name);r.addIssue=c=>{if(typeof c=="string")r.issues.push(le(c,r.value,s));else{const d=c;d.fatal&&(d.continue=!1),d.code??(d.code="custom"),d.input??(d.input=r.value),d.inst??(d.inst=i),r.issues.push(le(d))}};const u=s.transform(r.value,r);return u instanceof Promise?u.then(c=>(r.value=c,r)):(r.value=u,r)}});function Hs(i){return new Us({type:"transform",transform:i})}const bi=E("ZodOptional",(i,s)=>{Jr.init(i,s),tt.init(i,s),i.unwrap=()=>i._zod.def.innerType});function Ai(i){return new bi({type:"optional",innerType:i})}const Vs=E("ZodNullable",(i,s)=>{Xr.init(i,s),tt.init(i,s),i.unwrap=()=>i._zod.def.innerType});function Li(i){return new Vs({type:"nullable",innerType:i})}const Qs=E("ZodDefault",(i,s)=>{$r.init(i,s),tt.init(i,s),i.unwrap=()=>i._zod.def.innerType,i.removeDefault=i.unwrap});function qs(i,s){return new Qs({type:"default",innerType:i,get defaultValue(){return typeof s=="function"?s():ri(s)}})}const Ks=E("ZodPrefault",(i,s)=>{ts.init(i,s),tt.init(i,s),i.unwrap=()=>i._zod.def.innerType});function Ys(i,s){return new Ks({type:"prefault",innerType:i,get defaultValue(){return typeof s=="function"?s():ri(s)}})}const Pi=E("ZodNonOptional",(i,s)=>{es.init(i,s),tt.init(i,s),i.unwrap=()=>i._zod.def.innerType});function Js(i,s){return new Pi({type:"nonoptional",innerType:i,...rt(s)})}const Xs=E("ZodCatch",(i,s)=>{ns.init(i,s),tt.init(i,s),i.unwrap=()=>i._zod.def.innerType,i.removeCatch=i.unwrap});function $s(i,s){return new Xs({type:"catch",innerType:i,catchValue:typeof s=="function"?s:()=>s})}const ta=E("ZodPipe",(i,s)=>{is.init(i,s),tt.init(i,s),i.in=s.in,i.out=s.out});function zi(i,s){return new ta({type:"pipe",in:i,out:s})}const ea=E("ZodReadonly",(i,s)=>{os.init(i,s),tt.init(i,s),i.unwrap=()=>i._zod.def.innerType});function na(i){return new ea({type:"readonly",innerType:i})}const ia=E("ZodCustom",(i,s)=>{rs.init(i,s),tt.init(i,s)});function oa(i,s={}){return ps(ia,i,s)}function ra(i){return ms(i)}const sa=Rs({folderViewEnabled:Cs().optional()}),ki="maps";return Pe.defineWebApplication({setup(i){const{$gettext:s}=tn.useGettext(),{folderViewEnabled:r}=sa.parse(i.applicationConfig),l=({applicationConfig:c})=>x.computed(()=>[{id:"com.github.opencloud-eu.maps.sidebar-panel",type:"sidebarPanel",extensionPointIds:["global.files.sidebar"],panel:{name:"location-details",icon:"map-2",iconFillType:"line",title:()=>s("Location"),component:Vo,componentAttrs:d=>({panelContext:d,applicationConfig:c}),isRoot:()=>!0,isVisible:({items:d})=>d?.length>0&&d?.some(v=>!!v.location)}},...r?[{id:"com.github.opencloud-eu.maps.folder-view.map-view",type:"folderView",extensionPointIds:["app.files.folder-views.folder"],folderView:{name:"resource-map",label:s("Switch to map view"),icon:{name:"map-2",fillType:"line"},component:hr,componentAttrs:()=>({applicationConfig:c})}}]:[]]),u=[{name:"maps",path:"/:driveAliasAndItem(.*)?",component:Pe.AppWrapperRoute(tr,{applicationId:ki,urlForResourceOptions:{disposition:"inline"}}),meta:{authContext:"hybrid",title:s("Maps"),patchCleanPath:!0}}];return{appInfo:{name:s("Maps"),id:ki,icon:"map-2",iconFillType:"line",iconColor:"#84c143",extensions:[{extension:"gpx",routeName:"maps",canBeDefault:!0}]},routes:u,translations:Wo,extensions:l(i)}}})});