gis-leaflet-helper 2.1.8 → 2.1.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,6 @@
1
1
  (function(){ try {var elementStyle = document.createElement('style'); elementStyle.appendChild(document.createTextNode(".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:rgba(255,255,255,.5)}.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:rgba(255,255,255,.8);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:rgba(255,255,255,.8);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:white;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}}body{height:100%;margin:0;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;font-family:Microsoft YaHei,Arial,sans-serif}label{font-weight:700}html{height:100%;box-sizing:border-box}#app{height:100%}*,*:before,*:after{box-sizing:inherit}a:focus,a:active{outline:none}a,a:focus,a:hover{cursor:pointer;color:inherit;text-decoration:none}div:focus{outline:none}.clearfix:after{visibility:hidden;display:block;font-size:0;content:\" \";clear:both;height:0}.leaflet-left .leaflet-control{margin-left:5px}.leaflet-right .leaflet-control{margin-right:5px}.leaflet-top .leaflet-control{margin-top:5px}.leaflet-bottom .leaflet-control{margin-bottom:5px}.leaflet-div-icon{border:none!important;background:transparent!important;text-align:center}.leaflet-measure-path-measurement{position:absolute;left:0;top:0;font-size:13px;font-weight:700;color:red;text-shadow:-1px 0 0 white,-1px -1px 0 white,0 -1px 0 white,1px -1px 0 white,1px 0 0 white,1px 1px 0 white,0 1px 0 white,-1px 1px 0 white;white-space:nowrap;transform-origin:0;pointer-events:none;z-index:9999}.leaflet-measure-path-measurement>div{position:relative;margin-top:-50%;left:-50%}.leaflet-control-scale-line{border:1px solid #999;border-top:none;padding:0;text-align:center;white-space:nowrap;overflow:hidden;background:transparent;color:#fff;height:26px;line-height:26px;text-shadow:0 0 2px #fff}.leaflet-control-container>div{display:flex}")); document.head.appendChild(elementStyle);} catch(e) {console.error('vite-plugin-css-injected-by-js', e);} })();const import_meta = {};
2
+ import * as Gis from "gis-common";
3
+ import { CoordsUtils, Utils as Utils$1, ArrayUtils } from "gis-common";
2
4
  function _mergeNamespaces(n, m) {
3
5
  m.forEach(function(e) {
4
6
  e && typeof e !== "string" && !Array.isArray(e) && Object.keys(e).forEach(function(k) {
@@ -16,9 +18,6 @@ function _mergeNamespaces(n, m) {
16
18
  return Object.freeze(Object.defineProperty(n, Symbol.toStringTag, { value: "Module" }));
17
19
  }
18
20
  var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
19
- function getDefaultExportFromCjs(x) {
20
- return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
21
- }
22
21
  function getAugmentedNamespace(n) {
23
22
  if (n.__esModule)
24
23
  return n;
@@ -34,1163 +33,6 @@ function getAugmentedNamespace(n) {
34
33
  });
35
34
  return a;
36
35
  }
37
- var resource_min$1 = { exports: {} };
38
- (function(module, exports2) {
39
- !function(t, e) {
40
- module.exports = e();
41
- }(window, function() {
42
- return function(t) {
43
- var e = {};
44
- function n(r) {
45
- if (e[r])
46
- return e[r].exports;
47
- var a = e[r] = { i: r, l: false, exports: {} };
48
- return t[r].call(a.exports, a, a.exports, n), a.l = true, a.exports;
49
- }
50
- return n.m = t, n.c = e, n.d = function(t2, e2, r) {
51
- n.o(t2, e2) || Object.defineProperty(t2, e2, { enumerable: true, get: r });
52
- }, n.r = function(t2) {
53
- "undefined" != typeof Symbol && Symbol.toStringTag && Object.defineProperty(t2, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(t2, "__esModule", { value: true });
54
- }, n.t = function(t2, e2) {
55
- if (1 & e2 && (t2 = n(t2)), 8 & e2)
56
- return t2;
57
- if (4 & e2 && "object" == typeof t2 && t2 && t2.__esModule)
58
- return t2;
59
- var r = /* @__PURE__ */ Object.create(null);
60
- if (n.r(r), Object.defineProperty(r, "default", { enumerable: true, value: t2 }), 2 & e2 && "string" != typeof t2)
61
- for (var a in t2)
62
- n.d(r, a, function(e3) {
63
- return t2[e3];
64
- }.bind(null, a));
65
- return r;
66
- }, n.n = function(t2) {
67
- var e2 = t2 && t2.__esModule ? function() {
68
- return t2.default;
69
- } : function() {
70
- return t2;
71
- };
72
- return n.d(e2, "a", e2), e2;
73
- }, n.o = function(t2, e2) {
74
- return Object.prototype.hasOwnProperty.call(t2, e2);
75
- }, n.p = "/dist/", n(n.s = 0);
76
- }([function(t, e, n) {
77
- n.r(e), n.d(e, "AnimateUtils", function() {
78
- return r;
79
- }), n.d(e, "ArrayUtils", function() {
80
- return h;
81
- }), n.d(e, "BrowserUtils", function() {
82
- return f;
83
- }), n.d(e, "Cookie", function() {
84
- return d;
85
- }), n.d(e, "CoordsUtils", function() {
86
- return p;
87
- }), n.d(e, "DateUtils", function() {
88
- return g;
89
- }), n.d(e, "DomUtils", function() {
90
- return m;
91
- }), n.d(e, "GeoUtils", function() {
92
- return w;
93
- }), n.d(e, "FileUtils", function() {
94
- return R;
95
- }), n.d(e, "MathUtils", function() {
96
- return M2;
97
- }), n.d(e, "OptimizeUtils", function() {
98
- return b;
99
- }), n.d(e, "StringUtils", function() {
100
- return O2;
101
- }), n.d(e, "AssertUtils", function() {
102
- return S;
103
- }), n.d(e, "Utils", function() {
104
- return u;
105
- }), n.d(e, "EventType", function() {
106
- return a;
107
- }), n.d(e, "ErrorType", function() {
108
- return i;
109
- }), n.d(e, "LayerType", function() {
110
- return o;
111
- }), n.d(e, "GraphicType", function() {
112
- return s;
113
- }), n.d(e, "MeasureMode", function() {
114
- return c;
115
- }), n.d(e, "AudioPlayer", function() {
116
- return D;
117
- }), n.d(e, "CanvasDrawer", function() {
118
- return x;
119
- }), n.d(e, "EventDispatcher", function() {
120
- return T;
121
- }), n.d(e, "HashMap", function() {
122
- return C;
123
- }), n.d(e, "WebSocketClient", function() {
124
- return N;
125
- }), n.d(e, "WebStorage", function() {
126
- return j;
127
- }), n.d(e, "DevicePixelRatio", function() {
128
- return G;
129
- });
130
- var r = { animate: function(t2, e2, n2) {
131
- var r2 = arguments.length > 3 && void 0 !== arguments[3] ? arguments[3] : "swing", a2 = arguments.length > 4 && void 0 !== arguments[4] ? arguments[4] : 5;
132
- for (var i2 in e2)
133
- e2[i2] = { target: "opacity" === i2 ? parseInt(100 * e2[i2]) : e2[i2], iNow: "opacity" === i2 ? parseInt(100 * getComputedStyle(t2)[i2]) : parseInt(getComputedStyle(t2)[i2]) };
134
- "liner" === r2 && (a2 = e2[i2].iNow < e2[i2].target ? Math.abs(a2) : -Math.abs(a2)), clearInterval(t2.timer), t2.timer = setInterval(function() {
135
- for (var i3 in e2) {
136
- var o2 = e2[i3].target, s2 = e2[i3].iNow;
137
- if ("swing" === r2 && (a2 = (a2 = (o2 - s2) / 20) > 0 ? Math.ceil(a2) : Math.floor(a2)), Math.abs(o2 - s2) <= Math.abs(a2)) {
138
- for (var c2 in t2.style[i3] = "opacity" === i3 ? o2 / 100 : o2 + "px", delete e2[i3], e2)
139
- return false;
140
- clearInterval(t2.timer), "function" == typeof n2 && n2();
141
- } else
142
- e2[i3].iNow += a2, t2.style[i3] = "opacity" === i3 ? e2[i3].iNow / 100 : e2[i3].iNow + "px";
143
- }
144
- }, 30);
145
- } }, a = { MAP_RENDER: "mapRender", MAP_READY: "mapReady", MOUSE_CLICK: "click", MOUSE_DOUBLE_CLICK: "dblclick", MOUSE_MOVE: "mousemove", MOUSE_IN: "mousein", MOUSE_OUT: "mouseout", MOUSE_RIGHT_CLICK: "mouseRightClick", KEY_DOWN: "keyDown", KEY_UP: "keyUp", DRAW_ACTIVE: "drawActive", DRAW_MOVE: "drawMove", DRAW_COMPLETE: "drawComplete", MQTT_CONNECT: "mqttConnect", MQTT_ERROR: "mqttError", MQTT_MESSAGE: "mqttMessage", MQTT_CLOSE: "mqttClose", WEB_SOCKET_CONNECT: "webSocketConnect", WEB_SOCKET_ERROR: "webSocketError", WEB_SOCKET_MESSAGE: "webSocketMessage", WEB_SOCKET_CLOSE: "webSocketClose" }, i = { LOGIN_EXPIRED: "\u767B\u5F55\u4FE1\u606F\u8FC7\u671F\uFF0C\u8BF7\u91CD\u65B0\u767B\u5F55", CROSS_ERROR: "\u8DE8\u57DF\u8BBF\u95EE", UNEXIST_RESOURCE: "\u8D44\u6E90\u4E0D\u5B58\u5728", TIMEOUT: "\u8BF7\u6C42\u8D85\u65F6", INTERNAL_ERROR: "\u5185\u90E8\u9519\u8BEF", NETWORK_ERROR: "\u8BF7\u6C42\u5931\u8D25\uFF0C\u8BF7\u68C0\u67E5\u7F51\u7EDC\u662F\u5426\u5DF2\u8FDE\u63A5", PROCESS_FAIL: "\u5904\u7406\u5931\u8D25", AUTH_VERIFY_ERROR: "\u6743\u9650\u9A8C\u8BC1\u5931\u8D25", NO_DATA_FOUND: "\u672A\u627E\u5230\u6570\u636E", DUPLICATE_INSTANCE: "\u5B9E\u4F8B\u4E3A\u5355\u4F8B\u6A21\u5F0F\uFF0C\u4E0D\u5141\u8BB8\u91CD\u590D\u6784\u5EFA", COORDINATE_ERROR: "\u5750\u6807\u9A8C\u8BC1\u5931\u8D25", JSON_PARSE_ERROR: "JSON\u89E3\u6790\u5931\u8D25\uFF0C\u683C\u5F0F\u6709\u8BEF", JSON_VALUE_ERROR: "JSON\u65E0\u6B64\u952E", PARAMETER_ERROR: "\u9A8C\u8BC1\u6570\u636E\u7C7B\u578B\u5931\u8D25", PARAMETER_ERROR_ARRAY: "\u683C\u5F0F\u7C7B\u578B\u9A8C\u8BC1\u5931\u8D25\uFF1A\u5FC5\u987B\u662F\u6570\u7EC4", PARAMETER_ERROR_STRING: "\u683C\u5F0F\u7C7B\u578B\u9A8C\u8BC1\u5931\u8D25\uFF1A\u5FC5\u987B\u662F\u5B57\u7B26", PARAMETER_ERROR_FUNCTION: "\u683C\u5F0F\u7C7B\u578B\u9A8C\u8BC1\u5931\u8D25\uFF1A\u5FC5\u987B\u662F\u51FD\u6570", PARAMETER_ERROR_OBJECT: "\u683C\u5F0F\u7C7B\u578B\u9A8C\u8BC1\u5931\u8D25\uFF1A\u5FC5\u987B\u662F\u5BF9\u8C61", PARAMETER_ERROR_LACK: "\u53C2\u6570\u7F3A\u5931", STRING_CHECK_LOSS: "\u5B57\u7B26\u7F3A\u5C11\u5173\u952E\u5B57" }, o = { SUPER_MAP_IMAGES: "SuperMapImages", SUPER_MAP_DATA: "SuperMapData", ARC_GIS_MAP_IMAGES: "ArcGisMapImages", ARC_GIS_MAP_DATA: "ArcGisMapData", OSGB_LAYER: "OSGBLayer", S3M_GROUP: "S3MGroup", TERRAIN_LAYER: "TerrainFileLayer" }, s = { POINT: "point", POLYLINE: "polyline", POLYGON: "polygon", BILLBOARD: "billboard", CYLINDER: "cylinder", ELLIPSOID: "ellipsoid", LABEL: "label", MODEL: "model", WALL: "wall" }, c = { DISTANCE: "distance", AREA: "area", HEIGHT: "height" }, u = { getDataType: function(t2) {
146
- return Object.prototype.toString.call(t2).slice(8, -1);
147
- }, isEmpty: function(t2) {
148
- if (null == t2)
149
- return true;
150
- switch (this.getDataType(t2)) {
151
- case "String":
152
- return "" === t2.trim();
153
- case "Array":
154
- return !t2.length;
155
- case "Object":
156
- return !Object.keys(t2).length;
157
- case "Boolean":
158
- return !t2;
159
- default:
160
- return false;
161
- }
162
- }, isNotEmpty: function(t2) {
163
- return !this.isEmpty(t2);
164
- }, json2form: function(t2) {
165
- var e2 = new FormData();
166
- return Object.keys(t2).forEach(function(n2) {
167
- e2.append(n2, t2[n2] instanceof Object ? JSON.stringify(t2[n2]) : t2[n2]);
168
- }), e2;
169
- }, json2Query: function(t2) {
170
- var e2 = [];
171
- for (var n2 in t2) {
172
- var r2 = n2, a2 = t2[n2];
173
- e2.push(r2 + "=" + a2);
174
- }
175
- return e2.join("&");
176
- }, generateGuid: function() {
177
- var t2 = function() {
178
- return (65536 * (1 + Math.random()) | 0).toString(16).substring(1);
179
- };
180
- return t2() + t2() + t2() + t2() + t2() + t2() + t2() + t2();
181
- }, decodeDict: function() {
182
- for (var t2 = "", e2 = arguments.length, n2 = Array(e2), r2 = 0; r2 < e2; r2++)
183
- n2[r2] = arguments[r2];
184
- if (n2.length > 1) {
185
- for (var a2 = n2.slice(1, n2.length % 2 == 0 ? n2.length - 1 : n2.length), i2 = 0; i2 < a2.length; i2 += 2) {
186
- var o2 = a2[i2];
187
- n2[0] === o2 && (t2 = a2[i2 + 1]);
188
- }
189
- t2 || n2.length % 2 != 0 || (t2 = n2[n2.length - 1]);
190
- } else
191
- t2 = n2[0];
192
- return t2;
193
- }, extend: function(t2) {
194
- for (var e2 = void 0, n2 = void 0, r2 = void 0, a2 = void 0, i2 = arguments.length, o2 = Array(i2 > 1 ? i2 - 1 : 0), s2 = 1; s2 < i2; s2++)
195
- o2[s2 - 1] = arguments[s2];
196
- for (n2 = 0, r2 = o2.length; n2 < r2; n2++)
197
- for (e2 in a2 = o2[n2])
198
- t2[e2] = a2[e2];
199
- return t2;
200
- }, rgb2hex: function(t2) {
201
- return "#" + ((1 << 24) + (t2[0] << 16) + (t2[1] << 8) + t2[2]).toString(16).slice(1);
202
- }, convertToTree2: function(t2) {
203
- var e2 = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : "id", n2 = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : "parentId", r2 = arguments.length > 3 && void 0 !== arguments[3] ? arguments[3] : "children", a2 = [];
204
- function i2(a3) {
205
- var o3 = a3[e2], s3 = t2.filter(function(t3) {
206
- return t3.hasOwnProperty(n2) && t3[n2] === o3;
207
- });
208
- s3.length > 0 && (s3.forEach(i2), a3[r2] = s3);
209
- }
210
- var o2 = function(r3) {
211
- -1 === t2.findIndex(function(t3) {
212
- return t3[e2] === r3[n2];
213
- }) && (i2(r3), a2.push(r3));
214
- }, s2 = true, c2 = false, u2 = void 0;
215
- try {
216
- for (var l2, h2 = t2[Symbol.iterator](); !(s2 = (l2 = h2.next()).done); s2 = true) {
217
- var f2 = l2.value;
218
- o2(f2);
219
- }
220
- } catch (t3) {
221
- c2 = true, u2 = t3;
222
- } finally {
223
- try {
224
- !s2 && h2.return && h2.return();
225
- } finally {
226
- if (c2)
227
- throw u2;
228
- }
229
- }
230
- return a2;
231
- }, asyncLoadScript: function(t2) {
232
- return new Promise(function(e2, n2) {
233
- try {
234
- var r2 = document.createElement("script");
235
- r2.readyState ? r2.onreadystatechange = function() {
236
- "complete" !== r2.readyState && "loaded" !== r2.readyState || e2(r2);
237
- } : r2.onload = function() {
238
- e2(r2);
239
- }, r2.type = "text/javascript", r2.src = t2, document.body.appendChild(r2);
240
- } catch (t3) {
241
- n2(t3);
242
- }
243
- });
244
- }, loadStyle: function(t2) {
245
- t2.forEach(function(t3) {
246
- var e2 = document.createElement("link");
247
- e2.href = t3, e2.rel = "stylesheet", e2.type = "text/css", document.head.appendChild(e2);
248
- });
249
- }, template: function(t2, e2) {
250
- return t2.replace(/\{ *([\w_-]+) *\}/g, function(t3, n2) {
251
- var r2 = e2[n2];
252
- if (void 0 === r2)
253
- throw new Error(i.JSON_VALUE_ERROR + t3);
254
- return "function" == typeof r2 && (r2 = r2(e2)), r2;
255
- });
256
- }, deleteEmptyProperty: function(t2) {
257
- var e2 = this;
258
- return Object.fromEntries(Object.keys(t2).filter(function(n2) {
259
- return !e2.isEmpty(t2[n2]);
260
- }).map(function(e3) {
261
- return [e3, t2[e3]];
262
- }));
263
- }, deepAssign: function() {
264
- var t2 = arguments.length, e2 = arguments[0];
265
- "Object" !== this.getDataType(e2) && (e2 = {});
266
- for (var n2 = 1; n2 < t2; n2++) {
267
- var r2 = arguments[n2];
268
- if ("Object" === this.getDataType(r2))
269
- for (var a2 in r2)
270
- "__proto__" !== a2 && e2 !== r2[a2] && ("Object" === this.getDataType(r2[a2]) ? e2[a2] = this.deepAssign(e2[a2], r2[a2]) : e2[a2] = r2[a2]);
271
- }
272
- return e2;
273
- }, handleCopyValue: function(t2) {
274
- if (!navigator.clipboard && window.isSecureContext)
275
- return navigator.clipboard.writeText(t2);
276
- var e2 = document.createElement("textarea");
277
- return e2.style.position = "fixed", e2.style.top = e2.style.left = "-100vh", e2.style.opacity = "0", e2.value = t2, document.body.appendChild(e2), e2.focus(), e2.select(), new Promise(function(t3, n2) {
278
- document.execCommand("copy") ? t3() : n2(new Error("copy failed")), e2.remove();
279
- });
280
- } };
281
- function l(t2) {
282
- if (Array.isArray(t2)) {
283
- for (var e2 = 0, n2 = Array(t2.length); e2 < t2.length; e2++)
284
- n2[e2] = t2[e2];
285
- return n2;
286
- }
287
- return Array.from(t2);
288
- }
289
- Array.prototype.groupBy = function(t2) {
290
- var e2 = {};
291
- return this.forEach(function(n2) {
292
- var r2 = JSON.stringify(t2(n2));
293
- e2[r2] = e2[r2] || [], e2[r2].push(n2);
294
- }), Object.keys(e2).map(function(t3) {
295
- return e2[t3];
296
- });
297
- }, Array.prototype.distinct = function() {
298
- var t2 = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : function(t3) {
299
- return t3;
300
- }, e2 = [], n2 = {};
301
- return this.forEach(function(r2) {
302
- var a2 = t2(r2);
303
- !n2[a2] && (n2[a2] = e2.push(r2));
304
- }), e2;
305
- }, Array.prototype.max = function() {
306
- return Math.max.apply({}, this);
307
- }, Array.prototype.min = function() {
308
- return Math.min.apply({}, this);
309
- }, Array.prototype.sum = function() {
310
- return this.length > 0 ? this.reduce(function() {
311
- var t2 = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : 0, e2 = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : 0;
312
- return t2 + e2;
313
- }) : 0;
314
- }, Array.prototype.avg = function() {
315
- return this.length ? this.sum() / this.length : 0;
316
- }, Array.prototype.desc = function() {
317
- var t2 = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : function(t3) {
318
- return t3;
319
- };
320
- return this.sort(function(e2, n2) {
321
- return t2(n2) - t2(e2);
322
- });
323
- }, Array.prototype.asc = function() {
324
- var t2 = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : function(t3) {
325
- return t3;
326
- };
327
- return this.sort(function(e2, n2) {
328
- return t2(e2) - t2(n2);
329
- });
330
- }, Array.prototype.clear = function() {
331
- return this.length = 0, this;
332
- };
333
- var h = { asArray: function(t2) {
334
- return u.isEmpty(t2) ? [] : Array.isArray(t2) ? t2 : [t2];
335
- }, generateArray: function(t2) {
336
- return [].concat(l(new Array(t2).keys()));
337
- }, union: function() {
338
- for (var t2 = [], e2 = arguments.length, n2 = Array(e2), r2 = 0; r2 < e2; r2++)
339
- n2[r2] = arguments[r2];
340
- return n2.forEach(function(e3) {
341
- Array.isArray(e3) && (t2 = t2.concat(e3.filter(function(e4) {
342
- return !t2.includes(e4);
343
- })));
344
- }), t2;
345
- }, intersection: function() {
346
- for (var t2 = arguments.length, e2 = Array(t2), n2 = 0; n2 < t2; n2++)
347
- e2[n2] = arguments[n2];
348
- var r2 = e2[0] || [];
349
- return e2.forEach(function(t3) {
350
- Array.isArray(t3) && (r2 = r2.filter(function(e3) {
351
- return t3.includes(e3);
352
- }));
353
- }), r2;
354
- }, unionAll: function() {
355
- for (var t2 = arguments.length, e2 = Array(t2), n2 = 0; n2 < t2; n2++)
356
- e2[n2] = arguments[n2];
357
- return [].concat(l(e2)).flat().filter(function(t3) {
358
- return !!t3;
359
- });
360
- }, difference: function() {
361
- for (var t2 = this, e2 = arguments.length, n2 = Array(e2), r2 = 0; r2 < e2; r2++)
362
- n2[r2] = arguments[r2];
363
- return this.union.apply(this, l(n2)).filter(function(e3) {
364
- return !t2.intersection.apply(t2, l(n2)).includes(e3);
365
- });
366
- } }, f = { getUrlParams: function() {
367
- for (var t2 = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : window.location.href, e2 = !(arguments.length > 1 && void 0 !== arguments[1]) || arguments[1], n2 = /([^&=]+)=([\w\W]*?)(&|$|#)/g, r2 = new URL(t2), a2 = r2.search, i2 = r2.hash, o2 = [a2, i2], s2 = {}, c2 = 0; c2 < o2.length; c2++) {
368
- var u2 = o2[c2];
369
- if (u2) {
370
- var l2 = u2.replace(/#|\//g, ""), h2 = l2.split("?");
371
- if (h2.length > 1)
372
- for (var f2 = 1; f2 < h2.length; f2++)
373
- for (var d2 = void 0; d2 = n2.exec(h2[f2]); )
374
- s2[d2[1]] = e2 ? decodeURIComponent(d2[2]) : d2[2];
375
- }
376
- }
377
- return s2;
378
- }, getExplorer: function() {
379
- var t2 = window.navigator.userAgent;
380
- return t2.indexOf("MSIE") >= 0 || window.ActiveXObject || "ActiveXObject" in window ? "IE" : t2.indexOf("Firefox") >= 0 ? "Firefox" : t2.indexOf("Chrome") >= 0 ? "Chrome" : t2.indexOf("Opera") >= 0 ? "Opera" : t2.indexOf("Safari") >= 0 ? "Safari" : void 0;
381
- }, detectOS: function() {
382
- var t2 = "", e2 = -1 != navigator.userAgent.indexOf("Windows", 0) ? 1 : 0, n2 = -1 != navigator.userAgent.indexOf("mac", 0) ? 1 : 0, r2 = -1 != navigator.userAgent.indexOf("Linux", 0) ? 1 : 0, a2 = -1 != navigator.userAgent.indexOf("X11", 0) ? 1 : 0;
383
- return e2 ? t2 = "MS Windows" : n2 ? t2 = "Apple mac" : r2 ? t2 = "Linux" : a2 && (t2 = "Unix"), t2;
384
- }, switchFullScreen: function(t2) {
385
- if (t2) {
386
- var e2 = document.documentElement;
387
- e2.requestFullscreen ? e2.requestFullscreen() : e2.msRequestFullscreen ? e2.msRequestFullscreen() : e2.mozRequestFullScreen ? e2.mozRequestFullScreen() : e2.webkitRequestFullscreen && e2.webkitRequestFullscreen();
388
- } else
389
- document.exitFullscreen ? document.exitFullscreen() : document.msExitFullscreen ? document.msExitFullscreen() : document.mozCancelFullScreen ? document.mozCancelFullScreen() : document.webkitExitFullscreen && document.webkitExitFullscreen();
390
- }, refreshScale: function() {
391
- var t2 = document.documentElement.clientWidth, e2 = document.documentElement.clientHeight, n2 = document.getElementById("app").style, r2 = t2 / 1920;
392
- t2 / e2 > 16 / 9 && (r2 = e2 / 1080), n2.transformOrigin = "left top", n2.transform = "scale(" + r2 + ") translateX(-49.99%)", n2.width = t2 / r2 + "px";
393
- }, getHtmlFontSize: function() {
394
- var t2 = document.documentElement.clientWidth || document.body.clientWidth;
395
- document.querySelector("html").style.fontSize = t2 / 192 + "px";
396
- } }, d = { set: function(t2, e2) {
397
- var n2 = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : 30, r2 = new Date();
398
- r2.setTime(r2.getTime() + 24 * n2 * 60 * 60 * 1e3), document.cookie = t2 + "=" + escape(e2) + ";expires=" + r2.toGMTString();
399
- }, remove: function(t2) {
400
- var e2 = new Date();
401
- e2.setTime(e2.getTime() - 1);
402
- var n2 = this.get(t2);
403
- null != n2 && (document.cookie = t2 + "=" + n2 + ";expires=" + e2.toGMTString());
404
- }, get: function(t2) {
405
- var e2 = document.cookie.match(new RegExp("(^| )" + t2 + "=([^;]*)(;|$)"));
406
- return null != e2 ? e2[2] : "";
407
- } }, p = { PI: 3.141592653589793, XPI: 52.35987755982988, delta: function(t2, e2) {
408
- var n2 = 6378245, r2 = 0.006693421622965943, a2 = this.transformLat(e2 - 105, t2 - 35), i2 = this.transformLon(e2 - 105, t2 - 35), o2 = t2 / 180 * this.PI, s2 = Math.sin(o2);
409
- s2 = 1 - r2 * s2 * s2;
410
- var c2 = Math.sqrt(s2);
411
- return { lat: a2 = 180 * a2 / (n2 * (1 - r2) / (s2 * c2) * this.PI), lng: i2 = 180 * i2 / (n2 / c2 * Math.cos(o2) * this.PI) };
412
- }, gcjEncrypt: function(t2, e2) {
413
- if (this.outOfChina(t2, e2))
414
- return { lat: t2, lng: e2 };
415
- var n2 = this.delta(t2, e2);
416
- return { lat: t2 + n2.lat, lng: e2 + n2.lng };
417
- }, gcjDecrypt: function(t2, e2) {
418
- if (this.outOfChina(t2, e2))
419
- return { lat: t2, lng: e2 };
420
- var n2 = this.delta(t2, e2);
421
- return { lat: t2 - n2.lat, lng: e2 - n2.lng };
422
- }, gcjDecryptExact: function(t2, e2) {
423
- for (var n2 = 0.01, r2 = 0.01, a2 = t2 - n2, i2 = e2 - r2, o2 = t2 + n2, s2 = e2 + r2, c2 = void 0, u2 = void 0, l2 = 0; ; ) {
424
- c2 = (a2 + o2) / 2, u2 = (i2 + s2) / 2;
425
- var h2 = this.gcj_encrypt(c2, u2);
426
- if (n2 = h2.lat - t2, r2 = h2.lng - e2, Math.abs(n2) < 1e-9 && Math.abs(r2) < 1e-9)
427
- break;
428
- if (n2 > 0 ? o2 = c2 : a2 = c2, r2 > 0 ? s2 = u2 : i2 = u2, ++l2 > 1e4)
429
- break;
430
- }
431
- return { lat: c2, lng: u2 };
432
- }, bdEncrypt: function(t2, e2) {
433
- var n2 = e2, r2 = t2, a2 = Math.sqrt(n2 * n2 + r2 * r2) + 2e-5 * Math.sin(r2 * this.XPI), i2 = Math.atan2(r2, n2) + 3e-6 * Math.cos(n2 * this.XPI), o2 = a2 * Math.cos(i2) + 65e-4;
434
- return { lat: a2 * Math.sin(i2) + 6e-3, lng: o2 };
435
- }, bdDecrypt: function(t2, e2) {
436
- var n2 = e2 - 65e-4, r2 = t2 - 6e-3, a2 = Math.sqrt(n2 * n2 + r2 * r2) - 2e-5 * Math.sin(r2 * this.XPI), i2 = Math.atan2(r2, n2) - 3e-6 * Math.cos(n2 * this.XPI), o2 = a2 * Math.cos(i2);
437
- return { lat: a2 * Math.sin(i2), lng: o2 };
438
- }, mercatorEncrypt: function(t2, e2) {
439
- var n2 = 2003750834e-2 * e2 / 180, r2 = Math.log(Math.tan((90 + t2) * this.PI / 360)) / (this.PI / 180);
440
- return { lat: r2 = 2003750834e-2 * r2 / 180, lng: n2 };
441
- }, mercatorDecrypt: function(t2, e2) {
442
- var n2 = e2 / 2003750834e-2 * 180, r2 = t2 / 2003750834e-2 * 180;
443
- return { lat: r2 = 180 / this.PI * (2 * Math.atan(Math.exp(r2 * this.PI / 180)) - this.PI / 2), lng: n2 };
444
- }, distance: function(t2, e2, n2, r2) {
445
- var a2 = Math.cos(t2 * this.PI / 180) * Math.cos(n2 * this.PI / 180) * Math.cos((e2 - r2) * this.PI / 180) + Math.sin(t2 * this.PI / 180) * Math.sin(n2 * this.PI / 180);
446
- a2 > 1 && (a2 = 1), a2 < -1 && (a2 = -1);
447
- var i2 = 6371e3 * Math.acos(a2);
448
- return i2;
449
- }, outOfChina: function(t2, e2) {
450
- return e2 < 72.004 || e2 > 137.8347 || (t2 < 0.8293 || t2 > 55.8271);
451
- }, transformLat: function(t2, e2) {
452
- var n2 = 2 * t2 - 100 + 3 * e2 + 0.2 * e2 * e2 + 0.1 * t2 * e2 + 0.2 * Math.sqrt(Math.abs(t2));
453
- return n2 += 2 * (20 * Math.sin(6 * t2 * this.PI) + 20 * Math.sin(2 * t2 * this.PI)) / 3, n2 += 2 * (20 * Math.sin(e2 * this.PI) + 40 * Math.sin(e2 / 3 * this.PI)) / 3, n2 += 2 * (160 * Math.sin(e2 / 12 * this.PI) + 320 * Math.sin(e2 * this.PI / 30)) / 3;
454
- }, transformLon: function(t2, e2) {
455
- var n2 = 300 + t2 + 2 * e2 + 0.1 * t2 * t2 + 0.1 * t2 * e2 + 0.1 * Math.sqrt(Math.abs(t2));
456
- return n2 += 2 * (20 * Math.sin(6 * t2 * this.PI) + 20 * Math.sin(2 * t2 * this.PI)) / 3, n2 += 2 * (20 * Math.sin(t2 * this.PI) + 40 * Math.sin(t2 / 3 * this.PI)) / 3, n2 += 2 * (150 * Math.sin(t2 / 12 * this.PI) + 300 * Math.sin(t2 / 30 * this.PI)) / 3;
457
- }, randomCoordinate: function(t2, e2, n2, r2) {
458
- return { lat: Math.random() * (r2 - e2) + e2, lng: Math.random() * (n2 - t2) + t2 };
459
- } };
460
- Date.prototype.format = function(t2) {
461
- var e2 = { "M+": this.getMonth() + 1, "d+": this.getDate(), "h+": this.getHours(), "m+": this.getMinutes(), "s+": this.getSeconds(), "q+": Math.floor((this.getMonth() + 3) / 3), S: this.getMilliseconds() };
462
- for (var n2 in /(y+)/.test(t2) && (t2 = t2.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length))), e2)
463
- new RegExp("(" + n2 + ")").test(t2) && (t2 = t2.replace(RegExp.$1, 1 === RegExp.$1.length ? e2[n2] : ("00" + e2[n2]).substr(("" + e2[n2]).length)));
464
- return t2;
465
- }, Date.prototype.addDate = function(t2, e2) {
466
- var n2 = new Date(this);
467
- switch (t2) {
468
- case "y":
469
- n2.setFullYear(this.getFullYear() + e2);
470
- break;
471
- case "q":
472
- n2.setMonth(this.getMonth() + 3 * e2);
473
- break;
474
- case "M":
475
- n2.setMonth(this.getMonth() + e2);
476
- break;
477
- case "w":
478
- n2.setDate(this.getDate() + 7 * e2);
479
- break;
480
- case "d":
481
- n2.setDate(this.getDate() + e2);
482
- break;
483
- case "h":
484
- n2.setHours(this.getHours() + e2);
485
- break;
486
- case "m":
487
- n2.setMinutes(this.getMinutes() + e2);
488
- break;
489
- case "s":
490
- n2.setSeconds(this.getSeconds() + e2);
491
- break;
492
- default:
493
- n2.setDate(this.getDate() + e2);
494
- }
495
- return n2;
496
- };
497
- var g = { lastMonthDate: new Date(new Date().getFullYear(), new Date().getMonth() - 1, 1), thisMonthDate: new Date(new Date().getFullYear(), new Date().getMonth(), 1), nextMonthDate: new Date(new Date().getFullYear(), new Date().getMonth() + 1, 1), lastWeekDate: new Date(new Date().getFullYear(), new Date().getMonth(), new Date().getDate() + 1 - 7 - new Date().getDay()), thisWeekDate: new Date(new Date().getFullYear(), new Date().getMonth(), new Date().getDate() + 1 - new Date().getDay()), nextWeekDate: new Date(new Date().getFullYear(), new Date().getMonth(), new Date().getDate() + 1 + 7 - new Date().getDay()), lastDayDate: new Date(new Date().getFullYear(), new Date().getMonth(), new Date().getDate() - 1), thisDayDate: new Date(new Date().setHours(0, 0, 0, 0)), nextDayDate: new Date(new Date().getFullYear(), new Date().getMonth(), new Date().getDate() + 1), parseDate: function(t2) {
498
- if ("string" == typeof t2) {
499
- var e2 = t2.match(/^ *(\d{4})-(\d{1,2})-(\d{1,2}) *$/);
500
- if (e2 && e2.length > 3)
501
- return new Date(parseInt(e2[1]), parseInt(e2[2]) - 1, parseInt(e2[3]));
502
- if ((e2 = t2.match(/^ *(\d{4})-(\d{1,2})-(\d{1,2}) +(\d{1,2}):(\d{1,2}):(\d{1,2}) *$/)) && e2.length > 6)
503
- return new Date(parseInt(e2[1]), parseInt(e2[2]) - 1, parseInt(e2[3]), parseInt(e2[4]), parseInt(e2[5]), parseInt(e2[6]));
504
- if ((e2 = t2.match(/^ *(\d{4})-(\d{1,2})-(\d{1,2}) +(\d{1,2}):(\d{1,2}):(\d{1,2})\.(\d{1,9}) *$/)) && e2.length > 7)
505
- return new Date(parseInt(e2[1]), parseInt(e2[2]) - 1, parseInt(e2[3]), parseInt(e2[4]), parseInt(e2[5]), parseInt(e2[6]), parseInt(e2[7]));
506
- }
507
- return null;
508
- }, formatDateInterval: function(t2, e2) {
509
- var n2 = new Date(t2), r2 = new Date(e2).getTime() - n2.getTime(), a2 = Math.floor(r2 / 864e5), i2 = r2 % 864e5, o2 = Math.floor(i2 / 36e5), s2 = i2 % 36e5, c2 = Math.floor(s2 / 6e4), u2 = s2 % 6e4, l2 = Math.round(u2 / 1e3), h2 = "";
510
- return a2 > 0 && (h2 += a2 + "\u5929"), o2 > 0 && (h2 += o2 + "\u65F6"), c2 > 0 && (h2 += c2 + "\u5206"), l2 > 0 && (h2 += l2 + "\u79D2"), 0 === a2 && 0 === o2 && 0 === c2 && 0 === l2 && (h2 = "\u5C11\u4E8E1\u79D2"), h2;
511
- }, formatterCounter: function(t2) {
512
- var e2 = function(t3) {
513
- return (t3 > 10 ? "" : "0") + (t3 || 0);
514
- }, n2 = t2 % 3600, r2 = n2 % 60;
515
- return e2(Math.floor(t2 / 3600)) + ":" + e2(Math.floor(n2 / 60)) + ":" + e2(Math.round(r2));
516
- }, sleep: function(t2) {
517
- } };
518
- function v(t2) {
519
- return t2.trim ? t2.trim() : t2.replace(/^\s+|\s+$/g, "");
520
- }
521
- function y(t2) {
522
- return v(t2).split(/\s+/);
523
- }
524
- var m = { getStyle: function(t2, e2) {
525
- var n2 = t2.style[e2] || t2.currentStyle && t2.currentStyle[e2];
526
- if ((!n2 || "auto" === n2) && document.defaultView) {
527
- var r2 = document.defaultView.getComputedStyle(t2, null);
528
- n2 = r2 ? r2[e2] : null;
529
- }
530
- return "auto" === n2 ? null : n2;
531
- }, create: function(t2, e2, n2) {
532
- var r2 = document.createElement(t2);
533
- return r2.className = e2 || "", n2 && n2.appendChild(r2), r2;
534
- }, remove: function(t2) {
535
- var e2 = t2.parentNode;
536
- e2 && e2.removeChild(t2);
537
- }, empty: function(t2) {
538
- for (; t2.firstChild; )
539
- t2.removeChild(t2.firstChild);
540
- }, toFront: function(t2) {
541
- var e2 = t2.parentNode;
542
- e2 && e2.lastChild !== t2 && e2.appendChild(t2);
543
- }, toBack: function(t2) {
544
- var e2 = t2.parentNode;
545
- e2 && e2.firstChild !== t2 && e2.insertBefore(t2, e2.firstChild);
546
- }, getClass: function(t2) {
547
- return t2.correspondingElement && (t2 = t2.correspondingElement), void 0 === t2.className.baseVal ? t2.className : t2.className.baseVal;
548
- }, hasClass: function(t2, e2) {
549
- if (void 0 !== t2.classList)
550
- return t2.classList.contains(e2);
551
- var n2 = this.getClass(t2);
552
- return n2.length > 0 && new RegExp("(^|\\s)" + e2 + "(\\s|$)").test(n2);
553
- }, addClass: function(t2, e2) {
554
- if (void 0 !== t2.classList)
555
- for (var n2 = y(e2), r2 = 0, a2 = n2.length; r2 < a2; r2++)
556
- t2.classList.add(n2[r2]);
557
- else if (!this.hasClass(t2, e2)) {
558
- var i2 = this.getClass(t2);
559
- this.setClass(t2, (i2 ? i2 + " " : "") + e2);
560
- }
561
- }, removeClass: function(t2, e2) {
562
- void 0 !== t2.classList ? y(e2).forEach(function(e3) {
563
- return t2.classList.remove(e3);
564
- }) : this.setClass(t2, v((" " + this.getClass(t2) + " ").replace(" " + e2 + " ", " ")));
565
- }, setClass: function(t2, e2) {
566
- void 0 === t2.className.baseVal ? t2.className = e2 : t2.className.baseVal = e2;
567
- }, parseFromString: function(t2) {
568
- return new DOMParser().parseFromString(t2, "text/xml").children[0];
569
- } }, M2 = { DEG2RAD: Math.PI / 180, RAD2DEG: 180 / Math.PI, randInt: function(t2, e2) {
570
- return t2 + Math.floor(Math.random() * (e2 - t2 + 1));
571
- }, randFloat: function(t2, e2) {
572
- return t2 + Math.random() * (e2 - t2);
573
- }, degreesToRadians: function(t2) {
574
- return t2 * this.DEG2RAD;
575
- }, toRadians: function(t2) {
576
- return t2 * this.DEG2RAD;
577
- }, radiansToDegrees: function(t2) {
578
- return t2 * this.RAD2DEG;
579
- }, toDegrees: function(t2) {
580
- return t2 * this.RAD2DEG;
581
- }, formatFloat: function(t2) {
582
- var e2 = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : 2;
583
- return Math.round(t2 * Math.pow(10, e2)) / Math.pow(10, e2);
584
- } }, w = { toRadian: Math.PI / 180, R: 6371393, isLnglat: function(t2, e2) {
585
- return t2 && e2 && !!(+e2 > -90 && +e2 < 90 && +t2 > -180 && +t2 < 180);
586
- }, formatLnglat: function(t2, e2) {
587
- var n2 = "";
588
- function r2(t3) {
589
- var e3 = parseFloat(t3), n3 = parseInt(e3), r3 = parseInt(60 * (e3 - n3));
590
- return n3 + "\xB0" + r3 + "\u2032" + (3600 * (e3 - n3) - 60 * r3).toFixed(2) + "\u2033";
591
- }
592
- return t2 && e2 && (n2 = r2(t2) + "," + r2(e2)), n2;
593
- }, transformLnglat: function(t2, e2) {
594
- function n2(t3) {
595
- for (var e3 = /[sw]/i.test(t3) ? -1 : 1, n3 = t3.match(/[\d.]+/g), r2 = 0, a2 = 0, i2 = n3.length; a2 < i2; a2++)
596
- r2 += n3[a2] / e3, e3 *= 60;
597
- return r2;
598
- }
599
- if (t2 && e2)
600
- return { lng: n2(t2), lat: n2(e2) };
601
- }, rayCasting: function(t2, e2) {
602
- for (var n2 = t2.x, r2 = t2.y, a2 = false, i2 = 0, o2 = e2.length, s2 = o2 - 1; i2 < o2; s2 = i2, i2++) {
603
- var c2 = e2[i2].x, u2 = e2[i2].y, l2 = e2[s2].x, h2 = e2[s2].y;
604
- if (c2 === n2 && u2 === r2 || l2 === n2 && h2 === r2)
605
- return "on";
606
- if (u2 < r2 && h2 >= r2 || u2 >= r2 && h2 < r2) {
607
- var f2 = c2 + (r2 - u2) * (l2 - c2) / (h2 - u2);
608
- if (f2 === n2)
609
- return "on";
610
- f2 > n2 && (a2 = !a2);
611
- }
612
- }
613
- return a2 ? "in" : "out";
614
- }, wgs84PointsDistance: function(t2, e2) {
615
- var n2 = Math.PI;
616
- function r2(t3) {
617
- return t3 * n2 / 180;
618
- }
619
- if (2 != arguments.length)
620
- return 0;
621
- lon1 = t2.x, lat1 = t2.y, lon2 = e2.x, lat2 = e2.y;
622
- var a2, i2 = 6378137, o2 = 63567523142e-4, s2 = 1 / 298.257223563, c2 = r2(lon2 - lon1), u2 = Math.atan((1 - s2) * Math.tan(r2(lat1))), l2 = Math.atan((1 - s2) * Math.tan(r2(lat2))), h2 = Math.sin(u2), f2 = Math.cos(u2), d2 = Math.sin(l2), p2 = Math.cos(l2), g2 = c2, v2 = 100;
623
- do {
624
- var y2 = Math.sin(g2), m2 = Math.cos(g2), M3 = Math.sqrt(p2 * y2 * (p2 * y2) + (f2 * d2 - h2 * p2 * m2) * (f2 * d2 - h2 * p2 * m2));
625
- if (0 == M3)
626
- return 0;
627
- var w2 = h2 * d2 + f2 * p2 * m2, E2 = Math.atan2(M3, w2), R2 = f2 * p2 * y2 / M3, b2 = 1 - R2 * R2, O3 = w2 - 2 * h2 * d2 / b2;
628
- isNaN(O3) && (O3 = 0);
629
- var S2 = s2 / 16 * b2 * (4 + s2 * (4 - 3 * b2));
630
- a2 = g2, g2 = c2 + (1 - S2) * s2 * R2 * (E2 + S2 * M3 * (O3 + S2 * w2 * (2 * O3 * O3 - 1)));
631
- } while (Math.abs(g2 - a2) > 1e-12 && --v2 > 0);
632
- if (0 == v2)
633
- return NaN;
634
- var A6 = b2 * (i2 * i2 - o2 * o2) / (o2 * o2), D2 = 1 + A6 / 16384 * (4096 + A6 * (A6 * (320 - 175 * A6) - 768)), _2 = A6 / 1024 * (256 + A6 * (A6 * (74 - 47 * A6) - 128)), x2 = _2 * M3 * (O3 + _2 / 4 * (w2 * (2 * O3 * O3 - 1) - _2 / 6 * O3 * (4 * M3 * M3 - 3) * (4 * O3 * O3 - 3))), I3 = o2 * D2 * (E2 - x2);
635
- return I3;
636
- }, rotatePoint: function(t2, e2, n2) {
637
- return { x: (t2.x - e2.x) * Math.cos(Math.PI / 180 * -n2) - (t2.y - e2.y) * Math.sin(Math.PI / 180 * -n2) + e2.x, y: (t2.x - e2.x) * Math.sin(Math.PI / 180 * -n2) + (t2.y - e2.y) * Math.cos(Math.PI / 180 * -n2) + e2.y };
638
- }, calcBearAndDisByPoints: function(t2, e2) {
639
- var n2 = parseFloat(t2.lat), r2 = parseFloat(t2.lng), a2 = parseFloat(e2.lat), i2 = parseFloat(e2.lng), o2 = Math.sin((i2 - r2) * this.toRadian) * Math.cos(a2 * this.toRadian), s2 = Math.cos(n2 * this.toRadian) * Math.sin(a2 * this.toRadian) - Math.sin(n2 * this.toRadian) * Math.cos(a2 * this.toRadian) * Math.cos((i2 - r2) * this.toRadian), c2 = Math.atan2(o2, s2) * (180 / Math.PI), u2 = (a2 - n2) * this.toRadian, l2 = (i2 - r2) * this.toRadian, h2 = Math.sin(u2 / 2) * Math.sin(u2 / 2) + Math.cos(n2 * this.toRadian) * Math.cos(a2 * this.toRadian) * Math.sin(l2 / 2) * Math.sin(l2 / 2), f2 = 2 * Math.atan2(Math.sqrt(h2), Math.sqrt(1 - h2));
640
- return { angle: c2, distance: this.R * f2 };
641
- }, calcPointByBearAndDis: function(t2, e2, n2) {
642
- var r2 = M2.toRadians(parseFloat(t2.lat)), a2 = M2.toRadians(parseFloat(t2.lng));
643
- e2 = parseFloat(e2);
644
- var i2 = (n2 = parseFloat(n2)) / this.R;
645
- e2 = M2.toRadians(e2);
646
- var o2 = Math.asin(Math.sin(r2) * Math.cos(i2) + Math.cos(r2) * Math.sin(i2) * Math.cos(e2)), s2 = a2 + Math.atan2(Math.sin(e2) * Math.sin(i2) * Math.cos(r2), Math.cos(i2) - Math.sin(r2) * Math.sin(o2));
647
- return { lat: M2.toDegrees(o2), lng: M2.toDegrees(s2) };
648
- }, mercatorTolonlat: function(t2, e2) {
649
- var n2 = e2 / 2003750834e-2 * 180;
650
- return { lng: t2 / 2003750834e-2 * 180, lat: 180 / Math.PI * (2 * Math.atan(Math.exp(n2 * Math.PI / 180)) - Math.PI / 2) };
651
- }, lonlatToMercator: function(t2, e2) {
652
- var n2 = t2 * Math.PI / 180 * 6378137, r2 = e2 * Math.PI / 180;
653
- return { x: n2, y: 31890685e-1 * Math.log((1 + Math.sin(r2)) / (1 - Math.sin(r2))) };
654
- } }, E = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(t2) {
655
- return typeof t2;
656
- } : function(t2) {
657
- return t2 && "function" == typeof Symbol && t2.constructor === Symbol && t2 !== Symbol.prototype ? "symbol" : typeof t2;
658
- }, R = { convertBase64ToBlob: function(t2) {
659
- for (var e2 = t2.split(",")[0].split(":")[1].split(";")[0], n2 = window.atob(t2.split(",")[1]), r2 = new ArrayBuffer(n2.length), a2 = new Uint8Array(r2), i2 = 0; i2 < n2.length; i2++)
660
- a2[i2] = n2.charCodeAt(i2);
661
- var o2 = window.BlobBuilder || window.WebKitBlobBuilder || window.MozBlobBuilder;
662
- return o2 ? ((o2 = new (window.BlobBuilder || window.WebKitBlobBuilder || window.MozBlobBuilder)()).append(r2), o2.getBlob(e2)) : o2 = new Blob([r2], { type: e2 });
663
- }, convertUrlToBase64: function(t2, e2, n2) {
664
- return new Promise(function(r2, a2) {
665
- var i2 = new Image();
666
- i2.crossOrigin = "Anonymous", i2.src = t2, i2.onload = function() {
667
- var t3 = document.createElement("canvas");
668
- t3.width = e2 || i2.width, t3.height = n2 || i2.height, t3.getContext("2d").drawImage(i2, 0, 0, i2.width, i2.height);
669
- var a3 = i2.src.substring(i2.src.lastIndexOf(".") + 1).toLowerCase(), o2 = t3.toDataURL("image/" + a3);
670
- r2({ dataURL: o2, type: "image/" + a3, ext: a3 });
671
- };
672
- });
673
- }, convertBase64ToFile: function(t2, e2) {
674
- for (var n2 = t2.split(","), r2 = n2[0].match(/:(.*?);/)[1], a2 = atob(n2[1]), i2 = a2.length, o2 = new Uint8Array(i2); i2--; )
675
- o2[i2] = a2.charCodeAt(i2);
676
- return new File([o2], e2, { type: r2 });
677
- }, downloadFromFile: function(t2, e2) {
678
- if ("object" == (void 0 === t2 ? "undefined" : E(t2)))
679
- if (t2 instanceof Blob)
680
- t2 = URL.createObjectURL(t2);
681
- else {
682
- var n2 = JSON.stringify(t2), r2 = new Blob([n2], { type: "text/json" });
683
- t2 = window.URL.createObjectURL(r2);
684
- }
685
- else if ("string" == typeof t2 && -1 === t2.indexOf("http")) {
686
- var a2 = new Blob([t2], { type: "text/json" });
687
- t2 = window.URL.createObjectURL(a2);
688
- }
689
- var i2 = document.createElement("a");
690
- i2.href = t2, i2.download = e2 || "", i2.click(), window.URL.revokeObjectURL(i2.href);
691
- } }, b = { debounce: function(t2, e2) {
692
- var n2 = !(arguments.length > 2 && void 0 !== arguments[2]) || arguments[2], r2 = void 0, a2 = void 0, i2 = void 0, o2 = void 0, s2 = void 0, c2 = function c3() {
693
- var u2 = +new Date() - o2;
694
- u2 < e2 && u2 > 0 ? r2 = setTimeout(c3, e2 - u2) : (r2 = null, n2 || (s2 = t2.apply(i2, a2), r2 || (i2 = a2 = null)));
695
- };
696
- return function() {
697
- for (var a3 = arguments.length, u2 = Array(a3), l2 = 0; l2 < a3; l2++)
698
- u2[l2] = arguments[l2];
699
- i2 = this, o2 = +new Date();
700
- var h2 = n2 && !r2;
701
- return r2 || (r2 = setTimeout(c2, e2)), h2 && (s2 = t2.apply(i2, u2), i2 = u2 = null), s2;
702
- };
703
- }, throttle: function(t2, e2, n2) {
704
- if (1 === n2)
705
- var r2 = 0;
706
- else if (2 === n2)
707
- var a2;
708
- return function() {
709
- var i2 = this, o2 = arguments;
710
- if (1 === n2) {
711
- var s2 = Date.now();
712
- s2 - r2 > e2 && (t2.apply(i2, o2), r2 = s2);
713
- } else
714
- 2 === n2 && (a2 || (a2 = setTimeout(function() {
715
- a2 = null, t2.apply(i2, o2);
716
- }, e2)));
717
- };
718
- }, recurve: function(t2) {
719
- var e2 = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : 500, n2 = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : 5e3, r2 = 0;
720
- setTimeout(function a2() {
721
- ++r2 < Math.floor(n2 / e2) && (t2.call(this), setTimeout(a2, e2));
722
- });
723
- } }, O2 = { checkStr: function(t2, e2) {
724
- switch (e2) {
725
- case "phone":
726
- return /^1[3|4|5|6|7|8|9][0-9]{9}$/.test(t2);
727
- case "tel":
728
- return /^(0\d{2,3}-\d{7,8})(-\d{1,4})?$/.test(t2);
729
- case "card":
730
- return /(^\d{15}$)|(^\d{18}$)|(^\d{17}(\d|X|x)$)/.test(t2);
731
- case "pwd":
732
- return /^[a-zA-Z]\w{5,17}$/.test(t2);
733
- case "postal":
734
- return /[1-9]\d{5}(?!\d)/.test(t2);
735
- case "QQ":
736
- return /^[1-9][0-9]{4,9}$/.test(t2);
737
- case "email":
738
- return /^[\w-]+(\.[\w-]+)*@[\w-]+(\.[\w-]+)+$/.test(t2);
739
- case "money":
740
- return /^\d*(?:\.\d{0,2})?$/.test(t2);
741
- case "URL":
742
- return /(http|ftp|https):\/\/[\w\-_]+(\.[\w\-_]+)+([\w\-\.,@?^=%&:/~\+#]*[\w\-\@?^=%&/~\+#])?/.test(t2);
743
- case "IP":
744
- return /((?:(?:25[0-5]|2[0-4]\\d|[01]?\\d?\\d)\\.){3}(?:25[0-5]|2[0-4]\\d|[01]?\\d?\\d))/.test(t2);
745
- case "date":
746
- return /^(\d{4})\-(\d{2})\-(\d{2}) (\d{2})(?:\:\d{2}|:(\d{2}):(\d{2}))$/.test(t2) || /^(\d{4})\-(\d{2})\-(\d{2})$/.test(t2);
747
- case "number":
748
- return /^[0-9]$/.test(t2);
749
- case "english":
750
- return /^[a-zA-Z]+$/.test(t2);
751
- case "chinese":
752
- return /^[\u4E00-\u9FA5]+$/.test(t2);
753
- case "lower":
754
- return /^[a-z]+$/.test(t2);
755
- case "upper":
756
- return /^[A-Z]+$/.test(t2);
757
- case "HTML":
758
- return /<("[^"]*"|'[^']*'|[^'">])*>/.test(t2);
759
- default:
760
- return true;
761
- }
762
- }, changeCase: function(t2, e2) {
763
- switch (e2 = e2 || 4) {
764
- case 1:
765
- return t2.replace(/\b\w+\b/g, function(t3) {
766
- return t3.substring(0, 1).toUpperCase() + t3.substring(1).toLowerCase();
767
- });
768
- case 2:
769
- return t2.replace(/\b\w+\b/g, function(t3) {
770
- return t3.substring(0, 1).toLowerCase() + t3.substring(1).toUpperCase();
771
- });
772
- case 3:
773
- return t2.split("").map(function(t3) {
774
- return /[a-z]/.test(t3) ? t3.toUpperCase() : t3.toLowerCase();
775
- }).join("");
776
- case 4:
777
- return t2.toUpperCase();
778
- case 5:
779
- return t2.toLowerCase();
780
- default:
781
- return t2;
782
- }
783
- }, tag: function(t2) {
784
- for (var e2 = arguments.length, n2 = Array(e2 > 1 ? e2 - 1 : 0), r2 = 1; r2 < e2; r2++)
785
- n2[r2 - 1] = arguments[r2];
786
- return n2 = n2.map(function(t3) {
787
- switch (u.getDataType(t3)) {
788
- case "Object":
789
- return t3 || "{}";
790
- case "Array":
791
- return t3 || "[]";
792
- default:
793
- return t3 || "";
794
- }
795
- }), t2.reduce(function(t3, e3, r3) {
796
- return "" + t3 + n2[r3 - 1] + e3;
797
- });
798
- }, getByteLength: function(t2) {
799
- return t2.replace(/[\u0391-\uFFE5]/g, "aa").length;
800
- }, subStringByte: function(t2, e2, n2) {
801
- var r2 = /[^\x00-\xff]/g;
802
- if (t2.replace(r2, "mm").length <= n2)
803
- return t2;
804
- for (var a2 = Math.floor(n2 / 2); a2 < t2.length; a2++) {
805
- var i2 = t2.substring(e2, a2);
806
- if (i2.replace(r2, "mm").length >= n2)
807
- return i2;
808
- }
809
- return t2;
810
- }, asString: function(t2) {
811
- if (u.isEmpty(t2))
812
- return "";
813
- switch (u.getDataType()) {
814
- case "Object":
815
- case "Array":
816
- return JSON.stringify(t2);
817
- default:
818
- return t2;
819
- }
820
- } }, S = { notNull: function(t2) {
821
- if (u.isEmpty(t2))
822
- throw Error("\u4E0D\u80FD\u4E3A\u7A7A:>>>" + t2);
823
- }, legalLnglat: function(t2, e2) {
824
- if (!w.isLnglat(t2, e2))
825
- throw Error(i.COORDINATE_ERROR);
826
- }, contain: function(t2) {
827
- for (var e2 = false, n2 = arguments.length, r2 = Array(n2 > 1 ? n2 - 1 : 0), a2 = 1; a2 < n2; a2++)
828
- r2[a2 - 1] = arguments[a2];
829
- for (var o2 = r2.length || 0, s2 = 0, c2 = o2; s2 < c2; s2++)
830
- e2 = t2.indexOf(r2[s2]) >= 0;
831
- if (e2)
832
- throw Error(i.STRING_CHECK_LOSS);
833
- }, verify: { array: function(t2) {
834
- if ("Array" !== u.getDataType(t2))
835
- throw Error(i.PARAMETER_ERROR_ARRAY + ":>>>" + t2);
836
- }, function: function(t2) {
837
- if ("Function" !== u.getDataType(t2))
838
- throw Error(i.PARAMETER_ERROR_FUNCTION + ":>>>" + t2);
839
- }, object: function(t2) {
840
- if ("Object" !== u.getDataType(t2))
841
- throw Error(i.PARAMETER_ERROR_OBJECT + ":>>>" + t2);
842
- } }, legalJSON: function(t2) {
843
- try {
844
- JSON.parse(t2);
845
- } catch (e2) {
846
- throw Error(i.JSON_PARSE_ERROR + ":>>>" + t2);
847
- }
848
- }, legalData: function(t2, e2) {
849
- var n2 = O2.checkStr(t2, e2), r2 = "";
850
- switch (e2) {
851
- case "phone":
852
- r2 = "\u7535\u8BDD";
853
- break;
854
- case "tel":
855
- r2 = "\u5EA7\u673A";
856
- break;
857
- case "card":
858
- r2 = "\u8EAB\u4EFD\u8BC1";
859
- break;
860
- case "pwd":
861
- r2 = "\u5BC6\u7801";
862
- break;
863
- case "postal":
864
- r2 = "\u90AE\u653F\u7F16\u7801";
865
- break;
866
- case "QQ":
867
- r2 = "QQ";
868
- break;
869
- case "email":
870
- r2 = "\u90AE\u7BB1";
871
- break;
872
- case "money":
873
- r2 = "\u91D1\u989D";
874
- break;
875
- case "URL":
876
- r2 = "\u7F51\u5740";
877
- break;
878
- case "IP":
879
- r2 = "IP";
880
- break;
881
- case "date":
882
- r2 = "\u65E5\u671F\u65F6\u95F4";
883
- break;
884
- case "number":
885
- r2 = "\u6570\u5B57";
886
- break;
887
- case "english":
888
- r2 = "\u82F1\u6587";
889
- break;
890
- case "chinese":
891
- r2 = "\u4E2D\u6587";
892
- break;
893
- case "lower":
894
- r2 = "\u5C0F\u5199";
895
- break;
896
- case "upper":
897
- r2 = "\u5927\u5199";
898
- break;
899
- case "HTML":
900
- r2 = "HTML\u6807\u8BB0";
901
- }
902
- if (!n2)
903
- throw Error(i.PARAMETER_ERROR + ":>>>\u4E0D\u662F" + r2);
904
- } }, A5 = function() {
905
- function t2(t3, e2) {
906
- for (var n2 = 0; n2 < e2.length; n2++) {
907
- var r2 = e2[n2];
908
- r2.enumerable = r2.enumerable || false, r2.configurable = true, "value" in r2 && (r2.writable = true), Object.defineProperty(t3, r2.key, r2);
909
- }
910
- }
911
- return function(e2, n2, r2) {
912
- return n2 && t2(e2.prototype, n2), r2 && t2(e2, r2), e2;
913
- };
914
- }();
915
- var D = function() {
916
- function t2(e2) {
917
- !function(t3, e3) {
918
- if (!(t3 instanceof e3))
919
- throw new TypeError("Cannot call a class as a function");
920
- }(this, t2), this.audio = new Audio(), this.audio.src = e2;
921
- }
922
- return A5(t2, [{ key: "play", value: function() {
923
- !this.muted && this.audio.play();
924
- } }, { key: "pause", value: function() {
925
- this.audio.pause();
926
- } }, { key: "muted", get: function() {
927
- return this.audio.muted;
928
- }, set: function(t3) {
929
- this.audio.muted = t3;
930
- } }]), t2;
931
- }(), _ = function() {
932
- function t2(t3, e2) {
933
- for (var n2 = 0; n2 < e2.length; n2++) {
934
- var r2 = e2[n2];
935
- r2.enumerable = r2.enumerable || false, r2.configurable = true, "value" in r2 && (r2.writable = true), Object.defineProperty(t3, r2.key, r2);
936
- }
937
- }
938
- return function(e2, n2, r2) {
939
- return n2 && t2(e2.prototype, n2), r2 && t2(e2, r2), e2;
940
- };
941
- }();
942
- var x = function() {
943
- function t2(e2) {
944
- !function(t3, e3) {
945
- if (!(t3 instanceof e3))
946
- throw new TypeError("Cannot call a class as a function");
947
- }(this, t2), "String" === u.getDataType(e2) && (e2 = document.querySelector("#" + e2)), this.ctx = e2.getContext("2d");
948
- }
949
- return _(t2, [{ key: "drawLine", value: function(t3, e2, n2, r2) {
950
- var a2 = arguments.length > 4 && void 0 !== arguments[4] ? arguments[4] : {};
951
- this.cxt.beginPath();
952
- var i2 = a2.width || 1, o2 = a2.color || "#000";
953
- this.cxt.lineWidth = i2, this.cxt.fillStyle = o2, this.cxt.moveTo(t3, e2), this.cxt.lineTo(n2, r2), this.cxt.closePath(), this.cxt.fill();
954
- } }, { key: "drawArc", value: function(t3, e2, n2, r2, a2, i2, o2, s2) {
955
- o2 ? (this.cxt.fillStyle = s2, this.cxt.beginPath(), this.cxt.arc(t3, e2, n2, M2.degreesToRadians(r2), M2.degreesToRadians(a2), i2), this.cxt.closePath(), this.cxt.fill()) : (this.cxt.strokeStyle = s2, this.cxt.beginPath(), this.cxt.arc(t3, e2, n2, M2.degreesToRadians(r2), M2.degreesToRadians(a2), i2), this.cxt.stroke());
956
- } }]), t2;
957
- }();
958
- function I2() {
959
- }
960
- Object.assign(I2.prototype, { addEventListener: function(t2, e2, n2) {
961
- var r2 = arguments.length > 3 && void 0 !== arguments[3] && arguments[3];
962
- void 0 === this._listeners && (this._listeners = {}), this._mutex = this._mutex || {}, this._context = n2;
963
- var a2 = this._mutex, i2 = this._listeners;
964
- return void 0 === i2[t2] && (i2[t2] = []), -1 === i2[t2].indexOf(e2) && (r2 && (a2[t2] = e2), i2[t2].push(e2)), this;
965
- }, hasEventListener: function(t2, e2) {
966
- if (void 0 === this._listeners)
967
- return false;
968
- var n2 = this._listeners;
969
- return void 0 !== n2[t2] && -1 !== n2[t2].indexOf(e2);
970
- }, removeEventListener: function(t2, e2) {
971
- if (void 0 !== this._listeners) {
972
- var n2 = this._listeners[t2];
973
- if (this._mutex[t2] === e2 && (this._mutex[t2] = null), void 0 !== n2) {
974
- var r2 = n2.map(function(t3) {
975
- return t3.toString();
976
- }).indexOf(e2.toString());
977
- -1 !== r2 && n2.splice(r2, 1);
978
- }
979
- }
980
- }, dispatchEvent: function(t2) {
981
- var e2 = this;
982
- if (void 0 !== this._listeners) {
983
- var n2 = this._listeners[t2.type];
984
- if (void 0 !== n2) {
985
- t2.target = this;
986
- var r2 = n2.slice(0);
987
- if (this._mutex[t2.type])
988
- return void r2.find(function(n3) {
989
- return n3 === e2._mutex[t2.type];
990
- }).call(this._context || this, t2);
991
- for (var a2 = 0, i2 = r2.length; a2 < i2; a2++)
992
- r2[a2].call(this._context || this, t2);
993
- }
994
- }
995
- }, removeAllListener: function() {
996
- for (var t2 in this._mutex = {}, this._listeners)
997
- this._listeners[t2] = [];
998
- } });
999
- var T = I2;
1000
- function C() {
1001
- return /* @__PURE__ */ new Map();
1002
- }
1003
- Object.assign(Map.prototype, { isEmpty: function() {
1004
- return 0 === this.size;
1005
- }, _values: function() {
1006
- return Array.from(Map.prototype.values.call(this));
1007
- }, _keys: function() {
1008
- return Array.from(Map.prototype.keys.call(this));
1009
- }, _entries: function() {
1010
- return Array.from(Map.prototype.entries.call(this));
1011
- } }), C.fromEntries = function() {
1012
- var t2 = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : [], e2 = new C();
1013
- return t2.forEach(function(t3) {
1014
- Array.isArray(t3) && 2 === t3.length && e2.set(t3[0], t3[1]);
1015
- }), e2;
1016
- };
1017
- var P = function() {
1018
- function t2(t3, e2) {
1019
- for (var n2 = 0; n2 < e2.length; n2++) {
1020
- var r2 = e2[n2];
1021
- r2.enumerable = r2.enumerable || false, r2.configurable = true, "value" in r2 && (r2.writable = true), Object.defineProperty(t3, r2.key, r2);
1022
- }
1023
- }
1024
- return function(e2, n2, r2) {
1025
- return n2 && t2(e2.prototype, n2), r2 && t2(e2, r2), e2;
1026
- };
1027
- }();
1028
- function k(t2, e2) {
1029
- if (!(t2 instanceof e2))
1030
- throw new TypeError("Cannot call a class as a function");
1031
- }
1032
- function L2(t2, e2) {
1033
- if (!t2)
1034
- throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
1035
- return !e2 || "object" != typeof e2 && "function" != typeof e2 ? t2 : e2;
1036
- }
1037
- var N = function(t2) {
1038
- function e2() {
1039
- var t3 = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : "ws://127.0.0.1:10088";
1040
- k(this, e2);
1041
- var n2 = L2(this, (e2.__proto__ || Object.getPrototypeOf(e2)).call(this));
1042
- return n2.maxCheckTimes = 10, n2.url = t3, n2.checkTimes = 0, n2.connectStatus = false, n2.connect(), n2.connCheckStatus(n2.maxCheckTimes), e2.instance = n2, n2;
1043
- }
1044
- return function(t3, e3) {
1045
- if ("function" != typeof e3 && null !== e3)
1046
- throw new TypeError("Super expression must either be null or a function, not " + typeof e3);
1047
- t3.prototype = Object.create(e3 && e3.prototype, { constructor: { value: t3, enumerable: false, writable: true, configurable: true } }), e3 && (Object.setPrototypeOf ? Object.setPrototypeOf(t3, e3) : t3.__proto__ = e3);
1048
- }(e2, t2), P(e2, [{ key: "connect", value: function() {
1049
- if (this.disconnect(), this.url)
1050
- try {
1051
- if (console.info("\u521B\u5EFAws\u8FDE\u63A5>>>" + this.url), this.client = new WebSocket(this.url), this.client) {
1052
- var t3 = this;
1053
- this.client.onopen = function(e3) {
1054
- t3.dispatchEvent({ type: a.WEB_SOCKET_CONNECT, message: e3 });
1055
- }, this.client.onmessage = function(e3) {
1056
- t3.connectStatus = true, t3.dispatchEvent({ type: a.WEB_SOCKET_MESSAGE, message: e3 });
1057
- }, this.client.onclose = function(e3) {
1058
- t3.dispatchEvent({ type: a.WEB_SOCKET_CLOSE, message: e3 });
1059
- }, this.checkTimes === this.maxCheckTimes && (this.client.onerror = function(e3) {
1060
- t3.dispatchEvent({ type: a.WEB_SOCKET_ERROR, message: e3 });
1061
- });
1062
- }
1063
- } catch (t4) {
1064
- console.error("\u521B\u5EFAws\u8FDE\u63A5\u5931\u8D25" + this.url + ":" + t4);
1065
- }
1066
- } }, { key: "disconnect", value: function() {
1067
- if (this.client)
1068
- try {
1069
- console.log("ws\u65AD\u5F00\u8FDE\u63A5" + this.url), this.client.close(), this.client = null;
1070
- } catch (t3) {
1071
- this.client = null;
1072
- }
1073
- } }, { key: "connCheckStatus", value: function(t3) {
1074
- var e3 = this;
1075
- this.checkTimes > t3 || setTimeout(function() {
1076
- e3.checkTimes++, e3.client && 0 !== e3.client.readyState && 1 !== e3.client.readyState && e3.connect(), e3.connCheckStatus(t3);
1077
- }, 2e3);
1078
- } }, { key: "send", value: function(t3) {
1079
- return this.client && 1 === this.client.readyState ? (this.client.send(t3), true) : (console.error(this.url + "\u6D88\u606F\u53D1\u9001\u5931\u8D25\uFF1A" + t3), false);
1080
- } }, { key: "heartbeat", value: function() {
1081
- var t3 = this;
1082
- setTimeout(function() {
1083
- t3.client && 1 === t3.client.readyState && t3.send("HeartBeat"), console.log("HeartBeat," + t3.url), setTimeout(t3.heartbeat, 3e4);
1084
- }, 1e3);
1085
- } }], [{ key: "getInstance", value: function() {
1086
- return e2.instance ? e2.instance : Object.freeze(new e2());
1087
- } }, { key: "_instance", get: function() {
1088
- return this.getInstance();
1089
- } }]), e2;
1090
- }(T), F = function() {
1091
- function t2(t3, e2) {
1092
- for (var n2 = 0; n2 < e2.length; n2++) {
1093
- var r2 = e2[n2];
1094
- r2.enumerable = r2.enumerable || false, r2.configurable = true, "value" in r2 && (r2.writable = true), Object.defineProperty(t3, r2.key, r2);
1095
- }
1096
- }
1097
- return function(e2, n2, r2) {
1098
- return n2 && t2(e2.prototype, n2), r2 && t2(e2, r2), e2;
1099
- };
1100
- }();
1101
- function U(t2, e2) {
1102
- if (!(t2 instanceof e2))
1103
- throw new TypeError("Cannot call a class as a function");
1104
- }
1105
- var j = function() {
1106
- function t2() {
1107
- var e2 = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : 1;
1108
- if (U(this, t2), this.cacheType = e2, 1 === e2)
1109
- this.storage = window.localStorage;
1110
- else {
1111
- if (2 !== e2)
1112
- throw new Error(i.PARAMETER_ERROR);
1113
- this.storage = window.sessionStorage;
1114
- }
1115
- }
1116
- return F(t2, [{ key: "setItem", value: function(t3, e2, n2) {
1117
- var r2 = { key: t3, value: e2 };
1118
- if (1 === this.cacheType) {
1119
- var a2 = Date.now();
1120
- n2 && (r2.expired = a2 + 1e3 * n2);
1121
- }
1122
- return this.storage[t3] = JSON.stringify(r2), r2;
1123
- } }, { key: "getItem", value: function(t3) {
1124
- var e2 = this.storage.getItem(t3) || null, n2 = JSON.parse(e2) || {};
1125
- if (1 === this.cacheType) {
1126
- var r2 = n2.expired || Date.now();
1127
- if (Date.now() > r2)
1128
- return this.remove(t3), null;
1129
- }
1130
- return n2.value;
1131
- } }, { key: "remove", value: function(t3) {
1132
- var e2 = this;
1133
- t3 && (t3.indexOf(",") > -1 ? t3.split(",").forEach(function(t4) {
1134
- e2.storage.removeItem(t4);
1135
- }) : this.storage.removeItem(t3));
1136
- } }, { key: "clear", value: function() {
1137
- this.storage.clear();
1138
- } }]), t2;
1139
- }(), B = function() {
1140
- function t2(t3, e2) {
1141
- for (var n2 = 0; n2 < e2.length; n2++) {
1142
- var r2 = e2[n2];
1143
- r2.enumerable = r2.enumerable || false, r2.configurable = true, "value" in r2 && (r2.writable = true), Object.defineProperty(t3, r2.key, r2);
1144
- }
1145
- }
1146
- return function(e2, n2, r2) {
1147
- return n2 && t2(e2.prototype, n2), r2 && t2(e2, r2), e2;
1148
- };
1149
- }();
1150
- function W(t2, e2) {
1151
- if (!(t2 instanceof e2))
1152
- throw new TypeError("Cannot call a class as a function");
1153
- }
1154
- var G = function() {
1155
- function t2() {
1156
- var e2 = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : 1;
1157
- W(this, t2), this.magnification = e2;
1158
- }
1159
- return B(t2, [{ key: "_getSystem", value: function() {
1160
- if (navigator.userAgent.toLowerCase().indexOf("windows") >= 0)
1161
- return true;
1162
- } }, { key: "_addHandler", value: function(t3, e2, n2) {
1163
- t3.addEventListener ? t3.addEventListener(e2, n2, false) : t3.attachEvent ? t3.attachEvent("on" + e2, n2) : t3["on" + e2] = n2;
1164
- } }, { key: "_correct", value: function() {
1165
- var t3 = window.innerWidth;
1166
- if ("number" != typeof t3 && (t3 = "CSS1Compat" == document.compatMode ? document.documentElement.clientWidth : document.body.clientWidth), t3 <= 750) {
1167
- var e2 = document.documentElement.clientWidth / t3;
1168
- document.documentElement.style.fontSize = 75 * this.magnification * Math.min(e2, 2) + "px";
1169
- } else if (t3 > 750 && t3 <= 1200) {
1170
- var n2 = document.documentElement.clientWidth / t3;
1171
- document.documentElement.style.fontSize = 85 * this.magnification * Math.min(n2, 2) + "px";
1172
- } else {
1173
- var r2 = document.documentElement.clientWidth / 1920;
1174
- document.documentElement.style.fontSize = 100 * this.magnification * Math.min(r2, 2) + "px";
1175
- }
1176
- } }, { key: "_watch", value: function() {
1177
- var t3 = this;
1178
- t3._addHandler(window, "resize", function() {
1179
- t3._correct();
1180
- });
1181
- } }, { key: "init", value: function() {
1182
- var t3 = this;
1183
- t3._getSystem() && (t3._correct(), t3._watch());
1184
- } }]), t2;
1185
- }();
1186
- }]);
1187
- });
1188
- })(resource_min$1);
1189
- var resource_min = /* @__PURE__ */ getDefaultExportFromCjs(resource_min$1.exports);
1190
- var Gis = /* @__PURE__ */ _mergeNamespaces({
1191
- __proto__: null,
1192
- "default": resource_min
1193
- }, [resource_min$1.exports]);
1194
36
  var leafletSrc$1 = { exports: {} };
1195
37
  /* @preserve
1196
38
  * Leaflet 1.9.4, a JS library for interactive maps. https://leafletjs.com
@@ -2093,7 +935,7 @@ var leafletSrc$1 = { exports: {} };
2093
935
  wrapLng: [-180, 180],
2094
936
  R: 6371e3,
2095
937
  distance: function(latlng1, latlng2) {
2096
- var rad = Math.PI / 180, lat12 = latlng1.lat * rad, lat22 = latlng2.lat * rad, sinDLat = Math.sin((latlng2.lat - latlng1.lat) * rad / 2), sinDLon = Math.sin((latlng2.lng - latlng1.lng) * rad / 2), a = sinDLat * sinDLat + Math.cos(lat12) * Math.cos(lat22) * sinDLon * sinDLon, c = 2 * Math.atan2(Math.sqrt(a), Math.sqrt(1 - a));
938
+ var rad = Math.PI / 180, lat1 = latlng1.lat * rad, lat2 = latlng2.lat * rad, sinDLat = Math.sin((latlng2.lat - latlng1.lat) * rad / 2), sinDLon = Math.sin((latlng2.lng - latlng1.lng) * rad / 2), a = sinDLat * sinDLat + Math.cos(lat1) * Math.cos(lat2) * sinDLon * sinDLon, c = 2 * Math.atan2(Math.sqrt(a), Math.sqrt(1 - a));
2097
939
  return this.R * c;
2098
940
  }
2099
941
  });
@@ -2893,7 +1735,7 @@ var leafletSrc$1 = { exports: {} };
2893
1735
  return 1 - Math.pow(1 - t, this._easeOutPower);
2894
1736
  }
2895
1737
  });
2896
- var Map2 = Evented.extend({
1738
+ var Map = Evented.extend({
2897
1739
  options: {
2898
1740
  crs: EPSG3857,
2899
1741
  center: void 0,
@@ -3850,7 +2692,7 @@ var leafletSrc$1 = { exports: {} };
3850
2692
  }
3851
2693
  });
3852
2694
  function createMap(id, options) {
3853
- return new Map2(id, options);
2695
+ return new Map(id, options);
3854
2696
  }
3855
2697
  var Control = Class.extend({
3856
2698
  options: {
@@ -3910,7 +2752,7 @@ var leafletSrc$1 = { exports: {} };
3910
2752
  var control = function(options) {
3911
2753
  return new Control(options);
3912
2754
  };
3913
- Map2.include({
2755
+ Map.include({
3914
2756
  addControl: function(control2) {
3915
2757
  control2.addTo(this);
3916
2758
  return this;
@@ -4280,10 +3122,10 @@ var leafletSrc$1 = { exports: {} };
4280
3122
  }
4281
3123
  }
4282
3124
  });
4283
- Map2.mergeOptions({
3125
+ Map.mergeOptions({
4284
3126
  zoomControl: true
4285
3127
  });
4286
- Map2.addInitHook(function() {
3128
+ Map.addInitHook(function() {
4287
3129
  if (this.options.zoomControl) {
4288
3130
  this.zoomControl = new Zoom();
4289
3131
  this.addControl(this.zoomControl);
@@ -4441,10 +3283,10 @@ var leafletSrc$1 = { exports: {} };
4441
3283
  this._container.innerHTML = prefixAndAttribs.join(' <span aria-hidden="true">|</span> ');
4442
3284
  }
4443
3285
  });
4444
- Map2.mergeOptions({
3286
+ Map.mergeOptions({
4445
3287
  attributionControl: true
4446
3288
  });
4447
- Map2.addInitHook(function() {
3289
+ Map.addInitHook(function() {
4448
3290
  if (this.options.attributionControl) {
4449
3291
  new Attribution().addTo(this);
4450
3292
  }
@@ -5019,7 +3861,7 @@ var leafletSrc$1 = { exports: {} };
5019
3861
  map.fire("layeradd", { layer: this });
5020
3862
  }
5021
3863
  });
5022
- Map2.include({
3864
+ Map.include({
5023
3865
  addLayer: function(layer2) {
5024
3866
  if (!layer2._layerAdd) {
5025
3867
  throw new Error("The provided object is not a Layer.");
@@ -5786,12 +4628,12 @@ var leafletSrc$1 = { exports: {} };
5786
4628
  _project: function() {
5787
4629
  var lng = this._latlng.lng, lat = this._latlng.lat, map = this._map, crs = map.options.crs;
5788
4630
  if (crs.distance === Earth.distance) {
5789
- var d = Math.PI / 180, latR = this._mRadius / Earth.R / d, top = map.project([lat + latR, lng]), bottom = map.project([lat - latR, lng]), p = top.add(bottom).divideBy(2), lat22 = map.unproject(p).lat, lngR = Math.acos((Math.cos(latR * d) - Math.sin(lat * d) * Math.sin(lat22 * d)) / (Math.cos(lat * d) * Math.cos(lat22 * d))) / d;
4631
+ var d = Math.PI / 180, latR = this._mRadius / Earth.R / d, top = map.project([lat + latR, lng]), bottom = map.project([lat - latR, lng]), p = top.add(bottom).divideBy(2), lat2 = map.unproject(p).lat, lngR = Math.acos((Math.cos(latR * d) - Math.sin(lat * d) * Math.sin(lat2 * d)) / (Math.cos(lat * d) * Math.cos(lat2 * d))) / d;
5790
4632
  if (isNaN(lngR) || lngR === 0) {
5791
4633
  lngR = latR / Math.cos(Math.PI / 180 * lat);
5792
4634
  }
5793
4635
  this._point = p.subtract(map.getPixelOrigin());
5794
- this._radius = isNaN(lngR) ? 0 : p.x - map.project([lat22, lng - lngR]).x;
4636
+ this._radius = isNaN(lngR) ? 0 : p.x - map.project([lat2, lng - lngR]).x;
5795
4637
  this._radiusY = p.y - top.y;
5796
4638
  } else {
5797
4639
  var latlng2 = crs.unproject(crs.project(this._latlng).subtract([this._mRadius, 0]));
@@ -6708,7 +5550,7 @@ var leafletSrc$1 = { exports: {} };
6708
5550
  return [0, 0];
6709
5551
  }
6710
5552
  });
6711
- Map2.include({
5553
+ Map.include({
6712
5554
  _initOverlay: function(OverlayClass, content, latlng, options) {
6713
5555
  var overlay = content;
6714
5556
  if (!(overlay instanceof OverlayClass)) {
@@ -6875,10 +5717,10 @@ var leafletSrc$1 = { exports: {} };
6875
5717
  var popup = function(options, source) {
6876
5718
  return new Popup(options, source);
6877
5719
  };
6878
- Map2.mergeOptions({
5720
+ Map.mergeOptions({
6879
5721
  closePopupOnClick: true
6880
5722
  });
6881
- Map2.include({
5723
+ Map.include({
6882
5724
  openPopup: function(popup2, latlng, options) {
6883
5725
  this._initOverlay(Popup, popup2, latlng, options).openOn(this);
6884
5726
  return this;
@@ -7077,7 +5919,7 @@ var leafletSrc$1 = { exports: {} };
7077
5919
  var tooltip = function(options, source) {
7078
5920
  return new Tooltip(options, source);
7079
5921
  };
7080
- Map2.include({
5922
+ Map.include({
7081
5923
  openTooltip: function(tooltip2, latlng, options) {
7082
5924
  this._initOverlay(Tooltip, tooltip2, latlng, options).openOn(this);
7083
5925
  return this;
@@ -8643,7 +7485,7 @@ var leafletSrc$1 = { exports: {} };
8643
7485
  function svg(options) {
8644
7486
  return Browser.svg || Browser.vml ? new SVG(options) : null;
8645
7487
  }
8646
- Map2.include({
7488
+ Map.include({
8647
7489
  getRenderer: function(layer2) {
8648
7490
  var renderer = layer2.options.renderer || this._getPaneRenderer(layer2.options.pane) || this.options.renderer || this._renderer;
8649
7491
  if (!renderer) {
@@ -8698,7 +7540,7 @@ var leafletSrc$1 = { exports: {} };
8698
7540
  GeoJSON.latLngsToCoords = latLngsToCoords;
8699
7541
  GeoJSON.getFeature = getFeature;
8700
7542
  GeoJSON.asFeature = asFeature;
8701
- Map2.mergeOptions({
7543
+ Map.mergeOptions({
8702
7544
  boxZoom: true
8703
7545
  });
8704
7546
  var BoxZoom = Handler.extend({
@@ -8799,8 +7641,8 @@ var leafletSrc$1 = { exports: {} };
8799
7641
  }
8800
7642
  }
8801
7643
  });
8802
- Map2.addInitHook("addHandler", "boxZoom", BoxZoom);
8803
- Map2.mergeOptions({
7644
+ Map.addInitHook("addHandler", "boxZoom", BoxZoom);
7645
+ Map.mergeOptions({
8804
7646
  doubleClickZoom: true
8805
7647
  });
8806
7648
  var DoubleClickZoom = Handler.extend({
@@ -8819,8 +7661,8 @@ var leafletSrc$1 = { exports: {} };
8819
7661
  }
8820
7662
  }
8821
7663
  });
8822
- Map2.addInitHook("addHandler", "doubleClickZoom", DoubleClickZoom);
8823
- Map2.mergeOptions({
7664
+ Map.addInitHook("addHandler", "doubleClickZoom", DoubleClickZoom);
7665
+ Map.mergeOptions({
8824
7666
  dragging: true,
8825
7667
  inertia: true,
8826
7668
  inertiaDeceleration: 3400,
@@ -8953,8 +7795,8 @@ var leafletSrc$1 = { exports: {} };
8953
7795
  }
8954
7796
  }
8955
7797
  });
8956
- Map2.addInitHook("addHandler", "dragging", Drag);
8957
- Map2.mergeOptions({
7798
+ Map.addInitHook("addHandler", "dragging", Drag);
7799
+ Map.mergeOptions({
8958
7800
  keyboard: true,
8959
7801
  keyboardPanDelta: 80
8960
7802
  });
@@ -9076,8 +7918,8 @@ var leafletSrc$1 = { exports: {} };
9076
7918
  stop(e);
9077
7919
  }
9078
7920
  });
9079
- Map2.addInitHook("addHandler", "keyboard", Keyboard);
9080
- Map2.mergeOptions({
7921
+ Map.addInitHook("addHandler", "keyboard", Keyboard);
7922
+ Map.mergeOptions({
9081
7923
  scrollWheelZoom: true,
9082
7924
  wheelDebounceTime: 40,
9083
7925
  wheelPxPerZoomLevel: 60
@@ -9119,9 +7961,9 @@ var leafletSrc$1 = { exports: {} };
9119
7961
  }
9120
7962
  }
9121
7963
  });
9122
- Map2.addInitHook("addHandler", "scrollWheelZoom", ScrollWheelZoom);
7964
+ Map.addInitHook("addHandler", "scrollWheelZoom", ScrollWheelZoom);
9123
7965
  var tapHoldDelay = 600;
9124
- Map2.mergeOptions({
7966
+ Map.mergeOptions({
9125
7967
  tapHold: Browser.touchNative && Browser.safari && Browser.mobile,
9126
7968
  tapTolerance: 15
9127
7969
  });
@@ -9181,8 +8023,8 @@ var leafletSrc$1 = { exports: {} };
9181
8023
  e.target.dispatchEvent(simulatedEvent);
9182
8024
  }
9183
8025
  });
9184
- Map2.addInitHook("addHandler", "tapHold", TapHold);
9185
- Map2.mergeOptions({
8026
+ Map.addInitHook("addHandler", "tapHold", TapHold);
8027
+ Map.mergeOptions({
9186
8028
  touchZoom: Browser.touch,
9187
8029
  bounceAtZoomLimits: true
9188
8030
  });
@@ -9261,14 +8103,14 @@ var leafletSrc$1 = { exports: {} };
9261
8103
  }
9262
8104
  }
9263
8105
  });
9264
- Map2.addInitHook("addHandler", "touchZoom", TouchZoom);
9265
- Map2.BoxZoom = BoxZoom;
9266
- Map2.DoubleClickZoom = DoubleClickZoom;
9267
- Map2.Drag = Drag;
9268
- Map2.Keyboard = Keyboard;
9269
- Map2.ScrollWheelZoom = ScrollWheelZoom;
9270
- Map2.TapHold = TapHold;
9271
- Map2.TouchZoom = TouchZoom;
8106
+ Map.addInitHook("addHandler", "touchZoom", TouchZoom);
8107
+ Map.BoxZoom = BoxZoom;
8108
+ Map.DoubleClickZoom = DoubleClickZoom;
8109
+ Map.Drag = Drag;
8110
+ Map.Keyboard = Keyboard;
8111
+ Map.ScrollWheelZoom = ScrollWheelZoom;
8112
+ Map.TapHold = TapHold;
8113
+ Map.TouchZoom = TouchZoom;
9272
8114
  exports3.Bounds = Bounds;
9273
8115
  exports3.Browser = Browser;
9274
8116
  exports3.CRS = CRS;
@@ -9294,7 +8136,7 @@ var leafletSrc$1 = { exports: {} };
9294
8136
  exports3.Layer = Layer;
9295
8137
  exports3.LayerGroup = LayerGroup;
9296
8138
  exports3.LineUtil = LineUtil;
9297
- exports3.Map = Map2;
8139
+ exports3.Map = Map;
9298
8140
  exports3.Marker = Marker;
9299
8141
  exports3.Mixin = Mixin;
9300
8142
  exports3.Path = Path;
@@ -11820,11 +10662,11 @@ leafletSrc$1.exports.LayerGroup.include({
11820
10662
  });
11821
10663
  leafletSrc$1.exports.GridLayer.include({
11822
10664
  _setZoomTransform: function(t, e, s) {
11823
- var o = e, e = (null != o && this.options && ("gcj02" == this.options.corrdType ? o = resource_min$1.exports.CoordsUtils.gcjEncrypt(e.lat, e.lng) : "bd09" == this.options.corrdType && (e = resource_min$1.exports.CoordsUtils.gcjEncrypt(e.lat, e.lng), o = resource_min$1.exports.CoordsUtils.bdEncrypt(e.lat, e.lng))), this._map.getZoomScale(s, t.zoom)), o = t.origin.multiplyBy(e).subtract(this._map._getNewPixelOrigin(o, s)).round();
10665
+ var o = e, e = (null != o && this.options && ("gcj02" == this.options.corrdType ? o = CoordsUtils.gcjEncrypt(e.lat, e.lng) : "bd09" == this.options.corrdType && (e = CoordsUtils.gcjEncrypt(e.lat, e.lng), o = CoordsUtils.bdEncrypt(e.lat, e.lng))), this._map.getZoomScale(s, t.zoom)), o = t.origin.multiplyBy(e).subtract(this._map._getNewPixelOrigin(o, s)).round();
11824
10666
  leafletSrc$1.exports.Browser.any3d ? leafletSrc$1.exports.DomUtil.setTransform(t.el, o, e) : leafletSrc$1.exports.DomUtil.setPosition(t.el, o);
11825
10667
  },
11826
10668
  _getTiledPixelBounds: function(t) {
11827
- var e = t, t = (null != e && this.options && ("gcj02" == this.options.corrdType ? e = resource_min$1.exports.CoordsUtils.gcjEncrypt(t.lat, t.lng) : "bd09" == this.options.corrdType && (t = resource_min$1.exports.CoordsUtils.gcjEncrypt(t.lat, t.lng), e = resource_min$1.exports.CoordsUtils.bdEncrypt(t.lat, t.lng))), this._map), s = t._animatingZoom ? Math.max(t._animateToZoom, t.getZoom()) : t.getZoom(), s = t.getZoomScale(s, this._tileZoom), e = t.project(e, this._tileZoom).floor(), t = t.getSize().divideBy(2 * s);
10669
+ var e = t, t = (null != e && this.options && ("gcj02" == this.options.corrdType ? e = CoordsUtils.gcjEncrypt(t.lat, t.lng) : "bd09" == this.options.corrdType && (t = CoordsUtils.gcjEncrypt(t.lat, t.lng), e = CoordsUtils.bdEncrypt(t.lat, t.lng))), this._map), s = t._animatingZoom ? Math.max(t._animateToZoom, t.getZoom()) : t.getZoom(), s = t.getZoomScale(s, this._tileZoom), e = t.project(e, this._tileZoom).floor(), t = t.getSize().divideBy(2 * s);
11828
10670
  return new leafletSrc$1.exports.Bounds(e.subtract(t), e.add(t));
11829
10671
  }
11830
10672
  });
@@ -18235,7 +17077,7 @@ var WebMercatorTiledLayer = leafletSrc$1.exports.Layer.extend({
18235
17077
  accessToken: "016b31f15f25e1365e85aec7e7b0464e"
18236
17078
  },
18237
17079
  initialize(options) {
18238
- options = resource_min$1.exports.Utils.deleteEmptyProperty(options);
17080
+ options = Utils$1.deleteEmptyProperty(options);
18239
17081
  leafletSrc$1.exports.Util.setOptions(this, options);
18240
17082
  },
18241
17083
  onAdd(map) {
@@ -18287,13 +17129,13 @@ var WebMercatorTiledLayer = leafletSrc$1.exports.Layer.extend({
18287
17129
  }
18288
17130
  switch (this.options.provide) {
18289
17131
  case this.provide.TDT:
18290
- params2 = { subdomains: resource_min$1.exports.ArrayUtils.generateArray(8), maxNativeZoom: 18, minZoom: 0, maxZoom: this.map.getMaxZoom() };
17132
+ params2 = { subdomains: ArrayUtils.generateArray(8), maxNativeZoom: 18, minZoom: 0, maxZoom: this.map.getMaxZoom() };
18291
17133
  break;
18292
17134
  case this.provide.BAIDU:
18293
- params2 = { subdomains: resource_min$1.exports.ArrayUtils.generateArray(10), tms: true, corrdType: "bd09", maxNativeZoom: 19, minZoom: 0, maxZoom: this.map.getMaxZoom() };
17135
+ params2 = { subdomains: ArrayUtils.generateArray(10), tms: true, corrdType: "bd09", maxNativeZoom: 19, minZoom: 0, maxZoom: this.map.getMaxZoom() };
18294
17136
  break;
18295
17137
  case this.provide.GAODE:
18296
- params2 = { subdomains: resource_min$1.exports.ArrayUtils.generateArray(4).map((d) => d + 1), corrdType: "gcj02", maxNativeZoom: 18, minZoom: 0, maxZoom: this.map.getMaxZoom() };
17138
+ params2 = { subdomains: ArrayUtils.generateArray(4).map((d) => d + 1), corrdType: "gcj02", maxNativeZoom: 18, minZoom: 0, maxZoom: this.map.getMaxZoom() };
18297
17139
  break;
18298
17140
  case this.provide.YANDEX:
18299
17141
  params2 = { maxNativeZoom: 18, minZoom: 0, maxZoom: this.map.getMaxZoom() };