diff --git a/App/Settings.php b/App/Settings.php index 4a014dd..f96a2b7 100644 --- a/App/Settings.php +++ b/App/Settings.php @@ -44,7 +44,7 @@ public function __construct() { 'prepend' => 'share.garmin.com/', //Remove all non-alphanemeric 'input_processing' => [ - 'preg_replace("/[^\da-z]/i", "", $param_value);' + 'strip_special' ] ], 'mapshare_password' => [ @@ -85,10 +85,10 @@ public function __construct() { 'title' => esc_html__('Basemap Attribution', Joe_Config::get_item('plugin_text_domain')), 'tip' => esc_html__('Mapping services often have the requirement that attribution is displayed by the map. Text and HTML links are supported.', Joe_Config::get_item('plugin_text_domain')), 'input_processing' => array( - '(! strpos($param_value, "&")) ? htmlspecialchars($param_value) : $param_value' + 'encode_special' ), 'output_processing' => array( - '(! strpos($param_value, "&")) ? htmlspecialchars($param_value) : $param_value' + 'encode_special' ) ] ] diff --git a/Joe b/Joe index 6af1412..13c5ad6 160000 --- a/Joe +++ b/Joe @@ -1 +1 @@ -Subproject commit 6af1412092e1586a5fc19aee254cf658c91b4f86 +Subproject commit 13c5ad612981096a16d29749898955ad2a46f523 diff --git a/build/App/Settings.php b/build/App/Settings.php index 6283862..151526b 100644 --- a/build/App/Settings.php +++ b/build/App/Settings.php @@ -44,7 +44,7 @@ public function __construct() { 'prepend' => 'share.garmin.com/', //Remove all non-alphanemeric 'input_processing' => [ - 'preg_replace("/[^\da-z]/i", "", $param_value);' + 'strip_special' ] ], 'mapshare_password' => [ @@ -85,10 +85,10 @@ public function __construct() { 'title' => esc_html__('Basemap Attribution', Joe_v1_0_Config::get_item('plugin_text_domain')), 'tip' => esc_html__('Mapping services often have the requirement that attribution is displayed by the map. Text and HTML links are supported.', Joe_v1_0_Config::get_item('plugin_text_domain')), 'input_processing' => array( - '(! strpos($param_value, "&")) ? htmlspecialchars($param_value) : $param_value' + 'encode_special' ), 'output_processing' => array( - '(! strpos($param_value, "&")) ? htmlspecialchars($param_value) : $param_value' + 'encode_special' ) ] ] diff --git a/build/Joe/Input.php b/build/Joe/Input.php index 4620fbe..0faed76 100644 --- a/build/Joe/Input.php +++ b/build/Joe/Input.php @@ -432,7 +432,7 @@ static function create_parameter_groups($fields, $groups = array(), $data = arra static function process_input($param_def, $param_value) { //Do processing if(array_key_exists('input_processing', $param_def)) { - $param_value = static::eval_processes_on_param_value($param_def['input_processing'], $param_value); + $param_value = static::process_param_value($param_def['input_processing'], $param_value); } return $param_value; @@ -441,13 +441,13 @@ static function process_input($param_def, $param_value) { static function process_output($param_def, $param_value) { //Do processing if(array_key_exists('output_processing', $param_def)) { - $param_value = static::eval_processes_on_param_value($param_def['output_processing'], $param_value); + $param_value = static::process_param_value($param_def['output_processing'], $param_value); } return $param_value; } - static function eval_processes_on_param_value($processes, $param_value) { + static function process_param_value($processes, $param_value) { if(is_array($processes)) { foreach($processes as $process) { //Values stored in array @@ -459,7 +459,7 @@ static function eval_processes_on_param_value($processes, $param_value) { //Process $param_value = trim($param_value); - eval("\$param_value = $process;"); + $param_value = self::do_processing($param_value, $process); //Back into array $param_value = array($param_value); @@ -471,7 +471,7 @@ static function eval_processes_on_param_value($processes, $param_value) { foreach($param_values as $param_value) { //Process each value $param_value = trim($param_value); - eval("\$param_value = $process;"); + $param_value = self::do_processing($param_value, $process); $param_value_out[] = $param_value; } @@ -482,7 +482,7 @@ static function eval_processes_on_param_value($processes, $param_value) { //Single value stored in string } else { $param_value = trim($param_value); - eval("\$param_value = $process;"); + $param_value = self::do_processing($param_value, $process); } } } @@ -541,4 +541,19 @@ public static function allowable_file($ext = '', $mime = '', $file_image = 'file return false; } + + public static function do_processing($param_value = '', $process = '') { + switch($process) { + case 'encode_special' : + $param_value = (! strpos($param_value, "&")) ? htmlspecialchars($param_value) : $param_value; + + break; + case 'strip_special' : + $param_value = preg_replace("/[^\da-z]/i", "", $param_value); + + break; + } + + return $param_value; + } } diff --git a/build/Joe/Settings.php b/build/Joe/Settings.php index 6860463..9886536 100644 --- a/build/Joe/Settings.php +++ b/build/Joe/Settings.php @@ -28,12 +28,27 @@ public function __construct() { //Add Menu link add_action( 'admin_menu', [ $this, 'admin_menu'] ); add_action( 'admin_init', [ $this, 'register_settings'] ); + + //Only continue if we are on *OUR* Settings page + + //Get + if(! sizeof($_POST)) { + if($pagenow != $this->slug) { + return false; + } - //Only continue if we are on the Settings page - if($pagenow != $this->slug || ! isset($_GET['page']) || $_GET['page'] != $this->submenu_slug) { - return false; + //Check URL + if(! isset($_GET['page']) || $_GET['page'] != $this->submenu_slug) { + return false; + } + //Post + } else { + //Check submission + if(! isset($_POST['option_page']) || $_POST['option_page'] != Joe_v1_0_Config::get_item('settings_id')) { + return false; + } } - + //Joe Plugin $this->add_setting_tab('joe', [ 'sections' => [ @@ -299,7 +314,7 @@ public function sanitize_callback($input_data) { //If no input processing specified if(! array_key_exists('input_processing', $field_definition)) { //Make safe by default - $field_definition['input_processing'][] = 'htmlspecialchars($param_value)'; + $field_definition['input_processing'][] = 'encode_special'; } //Process the input diff --git a/build/assets/css/leaflet.min.css b/build/assets/css/leaflet.min.css index 957788d..ff5818b 100644 --- a/build/assets/css/leaflet.min.css +++ b/build/assets/css/leaflet.min.css @@ -1 +1 @@ -.leaflet-image-layer,.leaflet-layer,.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-pane,.leaflet-pane>canvas,.leaflet-pane>svg,.leaflet-tile,.leaflet-tile-container,.leaflet-zoom-box{position:absolute;left:0;top:0}.leaflet-container{overflow:hidden}.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-tile{-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-user-drag:none}.leaflet-tile::selection{background:0 0}.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,.leaflet-container .leaflet-tile-pane img,.leaflet-container img.leaflet-image-layer{max-width:none!important;max-height:none!important;width:auto;padding:0}.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-bottom,.leaflet-top{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-pan-anim .leaflet-tile,.leaflet-zoom-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-control,.leaflet-popup-pane{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-image-layer,.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-pane>svg path,.leaflet-tile-container{pointer-events:none}.leaflet-image-layer.leaflet-interactive,.leaflet-marker-icon.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 rgba(0,0,0,.65);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:focus,.leaflet-bar a:hover{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:bold 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 rgba(0,0,0,.4);background:#fff;border-radius:5px}.leaflet-control-layers-toggle{background-image:url(images/layers.png);width:36px;height:36px}.leaflet-retina .leaflet-control-layers-toggle{background-image:url(images/layers-2x.png);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(images/marker-icon.png)}.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:focus,.leaflet-control-attribution a:hover{text-decoration:underline}.leaflet-control-attribution svg{display:inline!important}.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;overflow:hidden;-moz-box-sizing:border-box;box-sizing:border-box;background:#fff;background:rgba(255,255,255,.5)}.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-bar,.leaflet-touch .leaflet-control-attribution,.leaflet-touch .leaflet-control-layers{box-shadow:none}.leaflet-touch .leaflet-bar,.leaflet-touch .leaflet-control-layers{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:17px 0;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 rgba(0,0,0,.4)}.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:0 0}.leaflet-container a.leaflet-popup-close-button:focus,.leaflet-container a.leaflet-popup-close-button:hover{color:#585858}.leaflet-popup-scrolled{overflow:auto;border-bottom:1px solid #ddd;border-top:1px solid #ddd}.leaflet-oldie .leaflet-popup-content-wrapper{-ms-zoom:1}.leaflet-oldie .leaflet-popup-tip{width:24px;margin:0 auto}.leaflet-oldie .leaflet-control-layers,.leaflet-oldie .leaflet-control-zoom,.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 rgba(0,0,0,.4)}.leaflet-tooltip.leaflet-interactive{cursor:pointer;pointer-events:auto}.leaflet-tooltip-bottom:before,.leaflet-tooltip-left:before,.leaflet-tooltip-right:before,.leaflet-tooltip-top:before{position:absolute;pointer-events:none;border:6px solid transparent;background:0 0;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;color-adjust:exact}} \ No newline at end of file +.leaflet-image-layer,.leaflet-layer,.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-pane,.leaflet-pane>canvas,.leaflet-pane>svg,.leaflet-tile,.leaflet-tile-container,.leaflet-zoom-box{position:absolute;left:0;top:0}.leaflet-container{overflow:hidden}.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-tile{-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-user-drag:none}.leaflet-tile::selection{background:0 0}.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,.leaflet-container .leaflet-tile-pane img,.leaflet-container img.leaflet-image-layer{max-width:none!important;max-height:none!important;width:auto;padding:0}.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,0.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-bottom,.leaflet-top{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-pan-anim .leaflet-tile,.leaflet-zoom-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-control,.leaflet-popup-pane{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-image-layer,.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-pane>svg path,.leaflet-tile-container{pointer-events:none}.leaflet-image-layer.leaflet-interactive,.leaflet-marker-icon.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 rgba(0,0,0,.65);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:focus,.leaflet-bar a:hover{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:bold 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 rgba(0,0,0,.4);background:#fff;border-radius:5px}.leaflet-control-layers-toggle{background-image:url(images/layers.png);width:36px;height:36px}.leaflet-retina .leaflet-control-layers-toggle{background-image:url(images/layers-2x.png);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(images/marker-icon.png)}.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:focus,.leaflet-control-attribution a:hover{text-decoration:underline}.leaflet-control-attribution svg{display:inline!important}.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;overflow:hidden;-moz-box-sizing:border-box;box-sizing:border-box;background:#fff;background:rgba(255,255,255,.5)}.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-bar,.leaflet-touch .leaflet-control-attribution,.leaflet-touch .leaflet-control-layers{box-shadow:none}.leaflet-touch .leaflet-bar,.leaflet-touch .leaflet-control-layers{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:17px 0;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 rgba(0,0,0,.4)}.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:0 0}.leaflet-container a.leaflet-popup-close-button:focus,.leaflet-container a.leaflet-popup-close-button:hover{color:#585858}.leaflet-popup-scrolled{overflow:auto;border-bottom:1px solid #ddd;border-top:1px solid #ddd}.leaflet-oldie .leaflet-popup-content-wrapper{-ms-zoom:1}.leaflet-oldie .leaflet-popup-tip{width:24px;margin:0 auto}.leaflet-oldie .leaflet-control-layers,.leaflet-oldie .leaflet-control-zoom,.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 rgba(0,0,0,.4)}.leaflet-tooltip.leaflet-interactive{cursor:pointer;pointer-events:auto}.leaflet-tooltip-bottom:before,.leaflet-tooltip-left:before,.leaflet-tooltip-right:before,.leaflet-tooltip-top:before{position:absolute;pointer-events:none;border:6px solid transparent;background:0 0;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;color-adjust:exact}} \ No newline at end of file diff --git a/build/assets/css/shortcode.css b/build/assets/css/shortcode.css index 63b42dd..d79ccb0 100644 --- a/build/assets/css/shortcode.css +++ b/build/assets/css/shortcode.css @@ -65,7 +65,7 @@ } .inmap-wrap .inmap-map.inmap-info, .inmap-wrap .inmap-info.inmap-info { - overflow: scroll; + overflow-y: auto; } @media screen and (min-width: 481px) { .inmap-wrap .inmap-map.inmap-info .inmap-info-item.inmap-last, @@ -221,7 +221,7 @@ border-bottom: 1px solid #ddd; } .inmap-wrap .inmap-info .inmap-info-item.inmap-active { - overflow: scroll; + overflow-y: auto; max-height: 320px; } .inmap-wrap .inmap-info .inmap-info-item .inmap-icon { @@ -235,7 +235,7 @@ .inmap-wrap .inmap-info .inmap-info-item .inmap-info-desc { padding: 8px; padding-left: 15px; - overflow: scroll; + overflow-y: auto; margin-left: 17px; border-left: 1px solid #439500; } @@ -366,6 +366,7 @@ .inmap-wrap .inmap-info .inmap-info-item.inmap-hover .inmap-info-title span { color: #fff !important; } +body.inmap-has-single #joe-settings-nav, body.inmap-has-single .leaflet-map { display: none; } @@ -390,6 +391,7 @@ body.inmap-has-single.admin-bar #wpadminbar { max-width: unset !important; max-height: unset !important; overflow: hidden !important; + margin: 0 !important; } .inmap-wrap.inmap-fullscreen .inmap-map, .inmap-wrap.inmap-fullscreen .inmap-info { diff --git a/build/assets/css/shortcode.min.css b/build/assets/css/shortcode.min.css index fa8cf0e..d87bcd4 100644 --- a/build/assets/css/shortcode.min.css +++ b/build/assets/css/shortcode.min.css @@ -1 +1 @@ -.inmap-wrap{position:relative;width:100%;min-height:160px;min-width:160px;overflow:hidden;font-family:"Inter var",-apple-system,BlinkMacSystemFont,"Helvetica Neue",Helvetica,sans-serif;z-index:1000;margin-bottom:1.5rem;border:1px solid #ddd}@media screen and (min-width:481px){.inmap-wrap{max-height:320px}}@media screen and (min-width:961px){.inmap-wrap{max-height:480px}}@media screen and (min-width:1025px){.inmap-wrap{min-height:500px}}.inmap-wrap .inmap-info,.inmap-wrap .inmap-map{width:100%;min-height:160px;max-height:160px;height:50%;overflow:hidden}@media screen and (min-width:481px){.inmap-wrap .inmap-info,.inmap-wrap .inmap-map{width:50%;height:100%;min-height:320px}}@media screen and (min-width:961px){.inmap-wrap .inmap-info,.inmap-wrap .inmap-map{min-height:480px}}@media screen and (min-width:481px){.inmap-wrap .inmap-info.inmap-map,.inmap-wrap .inmap-map.inmap-map{float:left}}@media screen and (min-width:1025px){.inmap-wrap .inmap-info.inmap-map,.inmap-wrap .inmap-map.inmap-map{width:60%;min-height:500px}}.inmap-wrap .inmap-info.inmap-info,.inmap-wrap .inmap-map.inmap-info{overflow:scroll}@media screen and (min-width:481px){.inmap-wrap .inmap-info.inmap-info .inmap-info-item.inmap-last,.inmap-wrap .inmap-map.inmap-info .inmap-info-item.inmap-last{top:0!important}}@media screen and (min-width:1025px){.inmap-wrap .inmap-info.inmap-info,.inmap-wrap .inmap-map.inmap-info{width:40%}}.inmap-wrap .inmap-info.inmap-info .inmap-info-item,.inmap-wrap .inmap-map.inmap-info .inmap-info-item{position:relative;max-height:35px;overflow:hidden}.inmap-wrap .inmap-info.inmap-info .inmap-info-item.inmap-only,.inmap-wrap .inmap-map.inmap-info .inmap-info-item.inmap-only{max-height:inherit!important}@media screen and (min-width:481px){.inmap-wrap .inmap-info.inmap-info .inmap-info-item.inmap-only,.inmap-wrap .inmap-map.inmap-info .inmap-info-item.inmap-only{height:100%;max-height:unset!important}}.inmap-wrap .inmap-info.inmap-info .inmap-info-item.inmap-only .inmap-info-desc,.inmap-wrap .inmap-map.inmap-info .inmap-info-item.inmap-only .inmap-info-desc{height:100%}.inmap-wrap .inmap-info.inmap-info .inmap-info-item.inmap-active,.inmap-wrap .inmap-map.inmap-info .inmap-info-item.inmap-active{max-height:110px}@media screen and (min-width:481px){.inmap-wrap .inmap-info.inmap-info .inmap-info-item.inmap-active,.inmap-wrap .inmap-map.inmap-info .inmap-info-item.inmap-active{max-height:50%}}.inmap-wrap .inmap-info.inmap-info .inmap-info-item.inmap-last,.inmap-wrap .inmap-map.inmap-info .inmap-info-item.inmap-last{position:absolute;top:50%;width:inherit}.inmap-wrap .inmap-icon{margin-left:0;margin-top:0;background-color:#439500;-webkit-mask-repeat:no-repeat;-webkit-mask-position:center;-webkit-mask-image:url(../img/location.svg);mask-repeat:no-repeat;mask-position:center;mask-image:url(../img/location.svg)}.inmap-wrap .inmap-icon.inmap-icon-gps{-webkit-mask-image:url(../img/location-gps.svg);mask-image:url(../img/location-gps.svg)}.inmap-wrap .inmap-icon.inmap-icon-fullscreen{-webkit-mask-image:url(../img/fullscreen.svg);mask-image:url(../img/fullscreen.svg)}.inmap-wrap .inmap-icon.inmap-icon-message{-webkit-mask-image:url(../img/message.svg);mask-image:url(../img/message.svg)}.inmap-wrap .inmap-map *{box-sizing:unset}.inmap-wrap .inmap-map .inmap-map-ui .inmap-control{background:#fff}.inmap-wrap .inmap-map .inmap-map-ui .inmap-control:hover{background:#f4f4f4}.inmap-wrap .inmap-map .inmap-map-ui .inmap-control .inmap-button.inmap-icon{-webkit-mask-size:22px;mask-size:22px;background-color:#000!important}.inmap-wrap .inmap-map .inmap-marker{width:5px!important;height:5px!important;margin-left:-2.5px!important;margin-top:-2.5px!important;background:#439500;text-align:center;border-radius:50%}.inmap-wrap .inmap-map .inmap-marker .inmap-icon{display:none}.inmap-wrap .inmap-map .inmap-marker .inmap-icon.inmap-icon-message{display:block}.inmap-wrap .inmap-map .inmap-marker.inmap-active,.inmap-wrap .inmap-map .inmap-marker.inmap-last{z-index:1200}.inmap-wrap .inmap-map .inmap-marker.inmap-last{border-width:2px!important;background:#439500!important}.inmap-wrap .inmap-map .inmap-marker.inmap-last .inmap-icon{background:#fff!important}.inmap-wrap .inmap-map .inmap-marker.inmap-active,.inmap-wrap .inmap-map .inmap-marker.inmap-hover,.inmap-wrap .inmap-map .inmap-marker.inmap-icon-message{width:15px!important;height:15px!important;margin-left:-7.5px!important;margin-top:-7.5px!important;background:#fff;border:1px solid #439500}.inmap-wrap .inmap-map .inmap-marker.inmap-active .inmap-icon,.inmap-wrap .inmap-map .inmap-marker.inmap-hover .inmap-icon,.inmap-wrap .inmap-map .inmap-marker.inmap-icon-message .inmap-icon{display:inline-block;width:100%;height:inherit;-webkit-mask-size:9px;mask-size:9px;background:#439500}.inmap-wrap .inmap-map .inmap-marker.inmap-icon-message.inmap-active,.inmap-wrap .inmap-map .inmap-marker.inmap-icon-message.inmap-hover{background:#439500}.inmap-wrap .inmap-map .inmap-marker.inmap-icon-message.inmap-active .inmap-icon,.inmap-wrap .inmap-map .inmap-marker.inmap-icon-message.inmap-hover .inmap-icon{background:#fff}.inmap-wrap .inmap-info{position:initial;font-size:13px;background:#fff}.inmap-wrap .inmap-info:nth-child(odd){background-color:#f7f7f7}.inmap-wrap .inmap-info .inmap-info-item{padding:0;padding-left:0;border-bottom:1px solid #ddd}.inmap-wrap .inmap-info .inmap-info-item.inmap-active{overflow:scroll;max-height:320px}.inmap-wrap .inmap-info .inmap-info-item .inmap-icon{position:absolute;width:20px;height:20px;mask-size:20px;top:7.5px;left:7.5px}.inmap-wrap .inmap-info .inmap-info-item .inmap-info-desc{padding:8px;padding-left:15px;overflow:scroll;margin-left:17px;border-left:1px solid #439500}.inmap-wrap .inmap-info .inmap-info-item .inmap-info-desc .inmap-info-title span{float:right;color:#ddd}.inmap-wrap .inmap-info .inmap-info-item .inmap-info-desc .inmap-info-expand{display:none}.inmap-wrap .inmap-info .inmap-info-item .inmap-info-desc .inmap-info-title{font-weight:700;font-size:13px!important}.inmap-wrap .inmap-info .inmap-info-item .inmap-info-desc table{margin:0;margin-top:5px;border:none}@media screen and (min-width:481px){.inmap-wrap .inmap-info .inmap-info-item .inmap-info-desc table{margin-top:15px}}.inmap-wrap .inmap-info .inmap-info-item .inmap-info-desc table tr{display:none;background:0 0}.inmap-wrap .inmap-info .inmap-info-item .inmap-info-desc table tr.joe-assoc_array-id{display:none!important}.inmap-wrap .inmap-info .inmap-info-item .inmap-info-desc table tr td,.inmap-wrap .inmap-info .inmap-info-item .inmap-info-desc table tr th{vertical-align:top;text-align:left;border:none}.inmap-wrap .inmap-info .inmap-info-item .inmap-info-desc table tr th{width:80px;font-size:12px}.inmap-wrap .inmap-info .inmap-info-item .inmap-info-desc table tr td{font-size:11px}@media screen and (min-width:481px){.inmap-wrap .inmap-info .inmap-info-item .inmap-info-desc table tr th{width:80px;font-size:13px}.inmap-wrap .inmap-info .inmap-info-item .inmap-info-desc table tr td{font-size:12px}}.inmap-wrap .inmap-info .inmap-info-item.inmap-active{cursor:unset;max-height:inherit}.inmap-wrap .inmap-info .inmap-info-item.inmap-active .inmap-icon{background:#439500}.inmap-wrap .inmap-info .inmap-info-item.inmap-active .inmap-info-desc .inmap-info-title{border-bottom:1px solid #439500}.inmap-wrap .inmap-info .inmap-info-item.inmap-active .inmap-info-desc table tr{display:table-row}.inmap-wrap .inmap-info .inmap-info-item.inmap-active .inmap-info-desc table tr td,.inmap-wrap .inmap-info .inmap-info-item.inmap-active .inmap-info-desc table tr th{padding:3px 0}@media screen and (min-width:481px){.inmap-wrap .inmap-info .inmap-info-item.inmap-active .inmap-info-desc table tr td,.inmap-wrap .inmap-info .inmap-info-item.inmap-active .inmap-info-desc table tr th{padding:5px 0}}.inmap-wrap .inmap-info .inmap-info-item.inmap-active.inmap-hide-extended{cursor:pointer}.inmap-wrap .inmap-info .inmap-info-item.inmap-active.inmap-hide-extended .inmap-info-desc .inmap-info-expand{display:block;margin-top:10px;text-align:center;color:#439500;background:#f7f7f7}.inmap-wrap .inmap-info .inmap-info-item.inmap-active.inmap-hide-extended .inmap-info-desc tr th{min-width:80px}@media screen and (min-width:481px){.inmap-wrap .inmap-info .inmap-info-item.inmap-active.inmap-hide-extended .inmap-info-desc tr th{width:90px}}.inmap-wrap .inmap-info .inmap-info-item.inmap-active.inmap-hide-extended .inmap-info-desc tr.joe-assoc_array-elevation,.inmap-wrap .inmap-info .inmap-info-item.inmap-active.inmap-hide-extended .inmap-info-desc tr.joe-assoc_array-event,.inmap-wrap .inmap-info .inmap-info-item.inmap-active.inmap-hide-extended .inmap-info-desc tr.joe-assoc_array-latitude,.inmap-wrap .inmap-info .inmap-info-item.inmap-active.inmap-hide-extended .inmap-info-desc tr.joe-assoc_array-longitude,.inmap-wrap .inmap-info .inmap-info-item.inmap-active.inmap-hide-extended .inmap-info-desc tr.joe-assoc_array-time_utc,.inmap-wrap .inmap-info .inmap-info-item.inmap-active.inmap-hide-extended .inmap-info-desc tr.joe-assoc_array-valid_gps_fix,.inmap-wrap .inmap-info .inmap-info-item.inmap-active.inmap-hide-extended .inmap-info-desc tr.joe-assoc_array-velocity{display:none!important}.inmap-wrap .inmap-info .inmap-info-item.inmap-last{z-index:1100;background-color:#439500;color:#fff}.inmap-wrap .inmap-info .inmap-info-item.inmap-last .inmap-icon{background-color:#fff!important}.inmap-wrap .inmap-info .inmap-info-item.inmap-last .inmap-info-desc{padding-right:7px;border-color:#fff}.inmap-wrap .inmap-info .inmap-info-item.inmap-last .inmap-info-desc .inmap-info-title span{color:#fff!important}.inmap-wrap .inmap-info .inmap-info-item.inmap-last .inmap-info-desc table *{color:#fff}.inmap-wrap .inmap-info .inmap-info-item.inmap-active,.inmap-wrap .inmap-info .inmap-info-item.inmap-hover{background-color:#ddd;cursor:pointer}.inmap-wrap .inmap-info .inmap-info-item.inmap-active .inmap-info-title span,.inmap-wrap .inmap-info .inmap-info-item.inmap-hover .inmap-info-title span{color:#fff!important}body.inmap-has-single .leaflet-map{display:none}body.inmap-has-single .inmap-wrap{display:none}body.inmap-has-single .inmap-wrap.inmap-fullscreen{display:block}body.inmap-has-single.admin-bar #adminmenu,body.inmap-has-single.admin-bar #wpadminbar{display:none!important}.inmap-wrap.inmap-fullscreen{position:fixed!important;top:0!important;left:0!important;width:100%!important;height:100%!important;min-width:unset!important;min-height:unset!important;max-width:unset!important;max-height:unset!important;overflow:hidden!important}.inmap-wrap.inmap-fullscreen .inmap-info,.inmap-wrap.inmap-fullscreen .inmap-map{width:50%!important;height:100%!important;max-height:unset!important}.inmap-wrap.inmap-fullscreen .inmap-info.inmap-map,.inmap-wrap.inmap-fullscreen .inmap-map.inmap-map{float:left}.inmap-wrap.inmap-fullscreen .inmap-info.inmap-map .leaflet-bottom,.inmap-wrap.inmap-fullscreen .inmap-info.inmap-map .leaflet-top,.inmap-wrap.inmap-fullscreen .inmap-map.inmap-map .leaflet-bottom,.inmap-wrap.inmap-fullscreen .inmap-map.inmap-map .leaflet-top{z-index:1200}.inmap-wrap.inmap-fullscreen .inmap-info.inmap-info .inmap-info-item.inmap-last,.inmap-wrap.inmap-fullscreen .inmap-map.inmap-info .inmap-info-item.inmap-last{top:0}.inmap-wrap.inmap-fullscreen .inmap-info.inmap-info .inmap-info-item.inmap-active,.inmap-wrap.inmap-fullscreen .inmap-map.inmap-info .inmap-info-item.inmap-active{max-height:unset}.inmap-wrap.inmap-fullscreen .inmap-map-ui .inmap-icon.inmap-icon-fullscreen{-webkit-mask-image:url(../img/minimise.svg)!important;mask-image:url(../img/minimise.svg)!important;-webkit-mask-size:18px!important;mask-size:18px!important} \ No newline at end of file +.inmap-wrap{position:relative;width:100%;min-height:160px;min-width:160px;overflow:hidden;font-family:"Inter var",-apple-system,BlinkMacSystemFont,"Helvetica Neue",Helvetica,sans-serif;z-index:1000;margin-bottom:1.5rem;border:1px solid #ddd}@media screen and (min-width:481px){.inmap-wrap{max-height:320px}}@media screen and (min-width:961px){.inmap-wrap{max-height:480px}}@media screen and (min-width:1025px){.inmap-wrap{min-height:500px}}.inmap-wrap .inmap-info,.inmap-wrap .inmap-map{width:100%;min-height:160px;max-height:160px;height:50%;overflow:hidden}@media screen and (min-width:481px){.inmap-wrap .inmap-info,.inmap-wrap .inmap-map{width:50%;height:100%;min-height:320px}}@media screen and (min-width:961px){.inmap-wrap .inmap-info,.inmap-wrap .inmap-map{min-height:480px}}@media screen and (min-width:481px){.inmap-wrap .inmap-info.inmap-map,.inmap-wrap .inmap-map.inmap-map{float:left}}@media screen and (min-width:1025px){.inmap-wrap .inmap-info.inmap-map,.inmap-wrap .inmap-map.inmap-map{width:60%;min-height:500px}}.inmap-wrap .inmap-info.inmap-info,.inmap-wrap .inmap-map.inmap-info{overflow-y:auto}@media screen and (min-width:481px){.inmap-wrap .inmap-info.inmap-info .inmap-info-item.inmap-last,.inmap-wrap .inmap-map.inmap-info .inmap-info-item.inmap-last{top:0!important}}@media screen and (min-width:1025px){.inmap-wrap .inmap-info.inmap-info,.inmap-wrap .inmap-map.inmap-info{width:40%}}.inmap-wrap .inmap-info.inmap-info .inmap-info-item,.inmap-wrap .inmap-map.inmap-info .inmap-info-item{position:relative;max-height:35px;overflow:hidden}.inmap-wrap .inmap-info.inmap-info .inmap-info-item.inmap-only,.inmap-wrap .inmap-map.inmap-info .inmap-info-item.inmap-only{max-height:inherit!important}@media screen and (min-width:481px){.inmap-wrap .inmap-info.inmap-info .inmap-info-item.inmap-only,.inmap-wrap .inmap-map.inmap-info .inmap-info-item.inmap-only{height:100%;max-height:unset!important}}.inmap-wrap .inmap-info.inmap-info .inmap-info-item.inmap-only .inmap-info-desc,.inmap-wrap .inmap-map.inmap-info .inmap-info-item.inmap-only .inmap-info-desc{height:100%}.inmap-wrap .inmap-info.inmap-info .inmap-info-item.inmap-active,.inmap-wrap .inmap-map.inmap-info .inmap-info-item.inmap-active{max-height:110px}@media screen and (min-width:481px){.inmap-wrap .inmap-info.inmap-info .inmap-info-item.inmap-active,.inmap-wrap .inmap-map.inmap-info .inmap-info-item.inmap-active{max-height:50%}}.inmap-wrap .inmap-info.inmap-info .inmap-info-item.inmap-last,.inmap-wrap .inmap-map.inmap-info .inmap-info-item.inmap-last{position:absolute;top:50%;width:inherit}.inmap-wrap .inmap-icon{margin-left:0;margin-top:0;background-color:#439500;-webkit-mask-repeat:no-repeat;-webkit-mask-position:center;-webkit-mask-image:url(../img/location.svg);mask-repeat:no-repeat;mask-position:center;mask-image:url(../img/location.svg)}.inmap-wrap .inmap-icon.inmap-icon-gps{-webkit-mask-image:url(../img/location-gps.svg);mask-image:url(../img/location-gps.svg)}.inmap-wrap .inmap-icon.inmap-icon-fullscreen{-webkit-mask-image:url(../img/fullscreen.svg);mask-image:url(../img/fullscreen.svg)}.inmap-wrap .inmap-icon.inmap-icon-message{-webkit-mask-image:url(../img/message.svg);mask-image:url(../img/message.svg)}.inmap-wrap .inmap-map *{box-sizing:unset}.inmap-wrap .inmap-map .inmap-map-ui .inmap-control{background:#fff}.inmap-wrap .inmap-map .inmap-map-ui .inmap-control:hover{background:#f4f4f4}.inmap-wrap .inmap-map .inmap-map-ui .inmap-control .inmap-button.inmap-icon{-webkit-mask-size:22px;mask-size:22px;background-color:#000!important}.inmap-wrap .inmap-map .inmap-marker{width:5px!important;height:5px!important;margin-left:-2.5px!important;margin-top:-2.5px!important;background:#439500;text-align:center;border-radius:50%}.inmap-wrap .inmap-map .inmap-marker .inmap-icon{display:none}.inmap-wrap .inmap-map .inmap-marker .inmap-icon.inmap-icon-message{display:block}.inmap-wrap .inmap-map .inmap-marker.inmap-active,.inmap-wrap .inmap-map .inmap-marker.inmap-last{z-index:1200}.inmap-wrap .inmap-map .inmap-marker.inmap-last{border-width:2px!important;background:#439500!important}.inmap-wrap .inmap-map .inmap-marker.inmap-last .inmap-icon{background:#fff!important}.inmap-wrap .inmap-map .inmap-marker.inmap-active,.inmap-wrap .inmap-map .inmap-marker.inmap-hover,.inmap-wrap .inmap-map .inmap-marker.inmap-icon-message{width:15px!important;height:15px!important;margin-left:-7.5px!important;margin-top:-7.5px!important;background:#fff;border:1px solid #439500}.inmap-wrap .inmap-map .inmap-marker.inmap-active .inmap-icon,.inmap-wrap .inmap-map .inmap-marker.inmap-hover .inmap-icon,.inmap-wrap .inmap-map .inmap-marker.inmap-icon-message .inmap-icon{display:inline-block;width:100%;height:inherit;-webkit-mask-size:9px;mask-size:9px;background:#439500}.inmap-wrap .inmap-map .inmap-marker.inmap-icon-message.inmap-active,.inmap-wrap .inmap-map .inmap-marker.inmap-icon-message.inmap-hover{background:#439500}.inmap-wrap .inmap-map .inmap-marker.inmap-icon-message.inmap-active .inmap-icon,.inmap-wrap .inmap-map .inmap-marker.inmap-icon-message.inmap-hover .inmap-icon{background:#fff}.inmap-wrap .inmap-info{position:initial;font-size:13px;background:#fff}.inmap-wrap .inmap-info:nth-child(odd){background-color:#f7f7f7}.inmap-wrap .inmap-info .inmap-info-item{padding:0;padding-left:0;border-bottom:1px solid #ddd}.inmap-wrap .inmap-info .inmap-info-item.inmap-active{overflow-y:auto;max-height:320px}.inmap-wrap .inmap-info .inmap-info-item .inmap-icon{position:absolute;width:20px;height:20px;mask-size:20px;top:7.5px;left:7.5px}.inmap-wrap .inmap-info .inmap-info-item .inmap-info-desc{padding:8px;padding-left:15px;overflow-y:auto;margin-left:17px;border-left:1px solid #439500}.inmap-wrap .inmap-info .inmap-info-item .inmap-info-desc .inmap-info-title span{float:right;color:#ddd}.inmap-wrap .inmap-info .inmap-info-item .inmap-info-desc .inmap-info-expand{display:none}.inmap-wrap .inmap-info .inmap-info-item .inmap-info-desc .inmap-info-title{font-weight:700;font-size:13px!important}.inmap-wrap .inmap-info .inmap-info-item .inmap-info-desc table{margin:0;margin-top:5px;border:none}@media screen and (min-width:481px){.inmap-wrap .inmap-info .inmap-info-item .inmap-info-desc table{margin-top:15px}}.inmap-wrap .inmap-info .inmap-info-item .inmap-info-desc table tr{display:none;background:0 0}.inmap-wrap .inmap-info .inmap-info-item .inmap-info-desc table tr.joe-assoc_array-id{display:none!important}.inmap-wrap .inmap-info .inmap-info-item .inmap-info-desc table tr td,.inmap-wrap .inmap-info .inmap-info-item .inmap-info-desc table tr th{vertical-align:top;text-align:left;border:none}.inmap-wrap .inmap-info .inmap-info-item .inmap-info-desc table tr th{width:80px;font-size:12px}.inmap-wrap .inmap-info .inmap-info-item .inmap-info-desc table tr td{font-size:11px}@media screen and (min-width:481px){.inmap-wrap .inmap-info .inmap-info-item .inmap-info-desc table tr th{width:80px;font-size:13px}.inmap-wrap .inmap-info .inmap-info-item .inmap-info-desc table tr td{font-size:12px}}.inmap-wrap .inmap-info .inmap-info-item.inmap-active{cursor:unset;max-height:inherit}.inmap-wrap .inmap-info .inmap-info-item.inmap-active .inmap-icon{background:#439500}.inmap-wrap .inmap-info .inmap-info-item.inmap-active .inmap-info-desc .inmap-info-title{border-bottom:1px solid #439500}.inmap-wrap .inmap-info .inmap-info-item.inmap-active .inmap-info-desc table tr{display:table-row}.inmap-wrap .inmap-info .inmap-info-item.inmap-active .inmap-info-desc table tr td,.inmap-wrap .inmap-info .inmap-info-item.inmap-active .inmap-info-desc table tr th{padding:3px 0}@media screen and (min-width:481px){.inmap-wrap .inmap-info .inmap-info-item.inmap-active .inmap-info-desc table tr td,.inmap-wrap .inmap-info .inmap-info-item.inmap-active .inmap-info-desc table tr th{padding:5px 0}}.inmap-wrap .inmap-info .inmap-info-item.inmap-active.inmap-hide-extended{cursor:pointer}.inmap-wrap .inmap-info .inmap-info-item.inmap-active.inmap-hide-extended .inmap-info-desc .inmap-info-expand{display:block;margin-top:10px;text-align:center;color:#439500;background:#f7f7f7}.inmap-wrap .inmap-info .inmap-info-item.inmap-active.inmap-hide-extended .inmap-info-desc tr th{min-width:80px}@media screen and (min-width:481px){.inmap-wrap .inmap-info .inmap-info-item.inmap-active.inmap-hide-extended .inmap-info-desc tr th{width:90px}}.inmap-wrap .inmap-info .inmap-info-item.inmap-active.inmap-hide-extended .inmap-info-desc tr.joe-assoc_array-elevation,.inmap-wrap .inmap-info .inmap-info-item.inmap-active.inmap-hide-extended .inmap-info-desc tr.joe-assoc_array-event,.inmap-wrap .inmap-info .inmap-info-item.inmap-active.inmap-hide-extended .inmap-info-desc tr.joe-assoc_array-latitude,.inmap-wrap .inmap-info .inmap-info-item.inmap-active.inmap-hide-extended .inmap-info-desc tr.joe-assoc_array-longitude,.inmap-wrap .inmap-info .inmap-info-item.inmap-active.inmap-hide-extended .inmap-info-desc tr.joe-assoc_array-time_utc,.inmap-wrap .inmap-info .inmap-info-item.inmap-active.inmap-hide-extended .inmap-info-desc tr.joe-assoc_array-valid_gps_fix,.inmap-wrap .inmap-info .inmap-info-item.inmap-active.inmap-hide-extended .inmap-info-desc tr.joe-assoc_array-velocity{display:none!important}.inmap-wrap .inmap-info .inmap-info-item.inmap-last{z-index:1100;background-color:#439500;color:#fff}.inmap-wrap .inmap-info .inmap-info-item.inmap-last .inmap-icon{background-color:#fff!important}.inmap-wrap .inmap-info .inmap-info-item.inmap-last .inmap-info-desc{padding-right:7px;border-color:#fff}.inmap-wrap .inmap-info .inmap-info-item.inmap-last .inmap-info-desc .inmap-info-title span{color:#fff!important}.inmap-wrap .inmap-info .inmap-info-item.inmap-last .inmap-info-desc table *{color:#fff}.inmap-wrap .inmap-info .inmap-info-item.inmap-active,.inmap-wrap .inmap-info .inmap-info-item.inmap-hover{background-color:#ddd;cursor:pointer}.inmap-wrap .inmap-info .inmap-info-item.inmap-active .inmap-info-title span,.inmap-wrap .inmap-info .inmap-info-item.inmap-hover .inmap-info-title span{color:#fff!important}body.inmap-has-single #joe-settings-nav,body.inmap-has-single .leaflet-map{display:none}body.inmap-has-single .inmap-wrap{display:none}body.inmap-has-single .inmap-wrap.inmap-fullscreen{display:block}body.inmap-has-single.admin-bar #adminmenu,body.inmap-has-single.admin-bar #wpadminbar{display:none!important}.inmap-wrap.inmap-fullscreen{position:fixed!important;top:0!important;left:0!important;width:100%!important;height:100%!important;min-width:unset!important;min-height:unset!important;max-width:unset!important;max-height:unset!important;overflow:hidden!important;margin:0!important}.inmap-wrap.inmap-fullscreen .inmap-info,.inmap-wrap.inmap-fullscreen .inmap-map{width:50%!important;height:100%!important;max-height:unset!important}.inmap-wrap.inmap-fullscreen .inmap-info.inmap-map,.inmap-wrap.inmap-fullscreen .inmap-map.inmap-map{float:left}.inmap-wrap.inmap-fullscreen .inmap-info.inmap-map .leaflet-bottom,.inmap-wrap.inmap-fullscreen .inmap-info.inmap-map .leaflet-top,.inmap-wrap.inmap-fullscreen .inmap-map.inmap-map .leaflet-bottom,.inmap-wrap.inmap-fullscreen .inmap-map.inmap-map .leaflet-top{z-index:1200}.inmap-wrap.inmap-fullscreen .inmap-info.inmap-info .inmap-info-item.inmap-last,.inmap-wrap.inmap-fullscreen .inmap-map.inmap-info .inmap-info-item.inmap-last{top:0}.inmap-wrap.inmap-fullscreen .inmap-info.inmap-info .inmap-info-item.inmap-active,.inmap-wrap.inmap-fullscreen .inmap-map.inmap-info .inmap-info-item.inmap-active{max-height:unset}.inmap-wrap.inmap-fullscreen .inmap-map-ui .inmap-icon.inmap-icon-fullscreen{-webkit-mask-image:url(../img/minimise.svg)!important;mask-image:url(../img/minimise.svg)!important;-webkit-mask-size:18px!important;mask-size:18px!important} \ No newline at end of file diff --git a/build/assets/js/leaflet.min.js b/build/assets/js/leaflet.min.js index 1b89c54..793b09b 100644 --- a/build/assets/js/leaflet.min.js +++ b/build/assets/js/leaflet.min.js @@ -2,4 +2,4 @@ * Leaflet 1.8.0, a JS library for interactive maps. https://leafletjs.com * (c) 2010-2022 Vladimir Agafonkin, (c) 2010-2011 CloudMade */ -!function(t,i){"object"==typeof exports&&"undefined"!=typeof module?i(exports):"function"==typeof define&&define.amd?define(["exports"],i):i((t="undefined"!=typeof globalThis?globalThis:t||self).leaflet={})}(this,(function(t){"use strict";function i(t){for(var i,e,n=1,o=arguments.length;n=this.min.x&&e.x<=this.max.x&&i.y>=this.min.y&&e.y<=this.max.y},intersects:function(t){t=O(t);var i=this.min,e=this.max,n=t.min,o=(t=t.max).x>=i.x&&n.x<=e.x;t=t.y>=i.y&&n.y<=e.y;return o&&t},overlaps:function(t){t=O(t);var i=this.min,e=this.max,n=t.min,o=(t=t.max).x>i.x&&n.xi.y&&n.y=n.lat&&e.lat<=o.lat&&i.lng>=n.lng&&e.lng<=o.lng},intersects:function(t){t=N(t);var i=this._southWest,e=this._northEast,n=t.getSouthWest(),o=(t=t.getNorthEast()).lat>=i.lat&&n.lat<=e.lat;t=t.lng>=i.lng&&n.lng<=e.lng;return o&&t},overlaps:function(t){t=N(t);var i=this._southWest,e=this._northEast,n=t.getSouthWest(),o=(t=t.getNorthEast()).lat>i.lat&&n.lati.lng&&n.lng","http://www.w3.org/2000/svg"===(zt.firstChild&&zt.firstChild.namespaceURI));function Mt(t){return 0<=navigator.userAgent.toLowerCase().indexOf(t)}var Ct={ie:J,ielt9:$,edge:Q,webkit:tt,android:it,android23:et,androidStock:nt,opera:ot,chrome:st,gecko:rt,safari:at,phantom:ht,opera12:lt,win:ut,ie3d:ct,webkit3d:dt,gecko3d:X,any3d:_t,mobile:We,mobileWebkit:pt,mobileWebkit3d:mt,msPointer:ft,pointer:gt,touch:yt,touchNative:vt,mobileOpera:xt,mobileGecko:wt,retina:Pt,passiveEvents:bt,canvas:Lt,svg:Tt,vml:!Tt&&function(){try{var t=document.createElement("div"),i=(t.innerHTML='',t.firstChild);return i.style.behavior="url(#default#VML)",i&&"object"==typeof i.adj}catch(t){return!1}}(),inlineSvg:zt},Zt=Ct.msPointer?"MSPointerDown":"pointerdown",St=Ct.msPointer?"MSPointerMove":"pointermove",kt=Ct.msPointer?"MSPointerUp":"pointerup",Et=Ct.msPointer?"MSPointerCancel":"pointercancel",Bt={touchstart:Zt,touchmove:St,touchend:kt,touchcancel:Et},At={touchstart:function(t,i){i.MSPOINTER_TYPE_TOUCH&&i.pointerType===i.MSPOINTER_TYPE_TOUCH&&Zi(i),jt(t,i)},touchmove:jt,touchend:jt,touchcancel:jt},It={},Ot=!1;function Rt(t){It[t.pointerId]=t}function Nt(t){It[t.pointerId]&&(It[t.pointerId]=t)}function Dt(t){delete It[t.pointerId]}function jt(t,i){if(i.pointerType!==(i.MSPOINTER_TYPE_MOUSE||"mouse")){for(var e in i.touches=[],It)i.touches.push(It[e]);i.changedTouches=[i],t(i)}}var Ht,Wt,Ft,Ut,Vt,qt,Gt=li(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),Kt=li(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),Yt="webkitTransition"===Kt||"OTransition"===Kt?Kt+"End":"transitionend";function Xt(t){return"string"==typeof t?document.getElementById(t):t}function Jt(t,i){var e=t.style[i]||t.currentStyle&&t.currentStyle[i];return"auto"===(e=e&&"auto"!==e||!document.defaultView?e:(t=document.defaultView.getComputedStyle(t,null))?t[i]:null)?null:e}function $t(t,i,e){return(t=document.createElement(t)).className=i||"",e&&e.appendChild(t),t}function Qt(t){var i=t.parentNode;i&&i.removeChild(t)}function ti(t){for(;t.firstChild;)t.removeChild(t.firstChild)}function ii(t){var i=t.parentNode;i&&i.lastChild!==t&&i.appendChild(t)}function ei(t){var i=t.parentNode;i&&i.firstChild!==t&&i.insertBefore(t,i.firstChild)}function ni(t,i){return void 0!==t.classList?t.classList.contains(i):0<(t=ai(t)).length&&new RegExp("(^|\\s)"+i+"(\\s|$)").test(t)}function oi(t,i){var e;if(void 0!==t.classList)for(var n=d(i),o=0,s=n.length;othis.options.maxZoom)?this.setZoom(t):this},panInsideBounds:function(t,i){this._enforcingBounds=!0;var e=this.getCenter();t=this._limitCenter(e,this._zoom,N(t));return e.equals(t)||this.panTo(t,i),this._enforcingBounds=!1,this},panInside:function(t,i){var e=A((i=i||{}).paddingTopLeft||i.padding||[0,0]),n=A(i.paddingBottomRight||i.padding||[0,0]),o=this.project(this.getCenter()),s=(t=this.project(t),(e=O([(s=this.getPixelBounds()).min.add(e),s.max.subtract(n)])).getSize());return e.contains(t)||(this._enforcingBounds=!0,n=t.subtract(e.getCenter()),e=e.extend(t).getSize().subtract(s),o.x+=n.x<0?-e.x:e.x,o.y+=n.y<0?-e.y:e.y,this.panTo(this.unproject(o),i),this._enforcingBounds=!1),this},invalidateSize:function(t){if(!this._loaded)return this;t=i({animate:!1,pan:!0},!0===t?{animate:!0}:t);var e=this.getSize(),n=(this._sizeChanged=!0,this._lastCenter=null,this.getSize()),s=e.divideBy(2).round(),r=n.divideBy(2).round();return(s=s.subtract(r)).x||s.y?(t.animate&&t.pan?this.panBy(s):(t.pan&&this._rawPanBy(s),this.fire("move"),t.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(o(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:e,newSize:n})):this},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},locate:function(t){if(t=this._locateOptions=i({timeout:1e4,watch:!1},t),!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var e=o(this._handleGeolocationResponse,this),n=o(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){var i;this._container._leaflet_id&&(i=t.code,t=t.message||(1===i?"permission denied":2===i?"position unavailable":"timeout"),this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:i,message:"Geolocation error: "+t+"."}))},_handleGeolocationResponse:function(t){if(this._container._leaflet_id){var i,e,n=new D(t.coords.latitude,t.coords.longitude),o=n.toBounds(2*t.coords.accuracy),s=this._locateOptions,r=(s.setView&&(i=this.getBoundsZoom(o),this.setView(n,s.maxZoom?Math.min(i,s.maxZoom):i)),{latlng:n,bounds:o,timestamp:t.timestamp});for(e in t.coords)"number"==typeof t.coords[e]&&(r[e]=t.coords[e]);this.fire("locationfound",r)}},addHandler:function(t,i){return i?(i=this[t]=new i(this),this._handlers.push(i),this.options[t]&&i.enable(),this):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(t){this._container._leaflet_id=void 0,this._containerId=void 0}for(var t in void 0!==this._locationWatchId&&this.stopLocate(),this._stop(),Qt(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(M(this._resizeRequest),this._resizeRequest=null),this._clearHandlers(),this._loaded&&this.fire("unload"),this._layers)this._layers[t].remove();for(t in this._panes)Qt(this._panes[t]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(t,i){return i=$t("div","leaflet-pane"+(t?" leaflet-"+t.replace("Pane","")+"-pane":""),i||this._mapPane),t&&(this._panes[t]=i),i},getCenter:function(){return this._checkIfLoaded(),this._lastCenter&&!this._moved()?this._lastCenter:this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var t=this.getPixelBounds();return new R(this.unproject(t.getBottomLeft()),this.unproject(t.getTopRight()))},getMinZoom:function(){return void 0===this.options.minZoom?this._layersMinZoom||0:this.options.minZoom},getMaxZoom:function(){return void 0===this.options.maxZoom?void 0===this._layersMaxZoom?1/0:this._layersMaxZoom:this.options.maxZoom},getBoundsZoom:function(t,i,e){t=N(t),e=A(e||[0,0]);var n=this.getZoom()||0,o=this.getMinZoom(),s=this.getMaxZoom(),r=t.getNorthWest(),a=(t=t.getSouthEast(),e=this.getSize().subtract(e),t=O(this.project(t,n),this.project(r,n)).getSize(),r=Ct.any3d?this.options.zoomSnap:1,e.x/t.x);e=e.y/t.y,t=i?Math.max(a,e):Math.min(a,e),n=this.getScaleZoom(t,n);return r&&(n=Math.round(n/(r/100))*(r/100),n=i?Math.ceil(n/r)*r:Math.floor(n/r)*r),Math.max(o,Math.min(s,n))},getSize:function(){return this._size&&!this._sizeChanged||(this._size=new E(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(t,i){return new I(t=this._getTopLeftPoint(t,i),t.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._pixelOrigin},getPixelWorldBounds:function(t){return this.options.crs.getProjectedBounds(void 0===t?this.getZoom():t)},getPane:function(t){return"string"==typeof t?this._panes[t]:t},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(t,i){var e=this.options.crs;return i=void 0===i?this._zoom:i,e.scale(t)/e.scale(i)},getScaleZoom:function(t,i){var e=this.options.crs;i=void 0===i?this._zoom:i,t=e.zoom(t*e.scale(i));return isNaN(t)?1/0:t},project:function(t,i){return i=void 0===i?this._zoom:i,this.options.crs.latLngToPoint(j(t),i)},unproject:function(t,i){return i=void 0===i?this._zoom:i,this.options.crs.pointToLatLng(A(t),i)},layerPointToLatLng:function(t){return t=A(t).add(this.getPixelOrigin()),this.unproject(t)},latLngToLayerPoint:function(t){return this.project(j(t))._round()._subtract(this.getPixelOrigin())},wrapLatLng:function(t){return this.options.crs.wrapLatLng(j(t))},wrapLatLngBounds:function(t){return this.options.crs.wrapLatLngBounds(N(t))},distance:function(t,i){return this.options.crs.distance(j(t),j(i))},containerPointToLayerPoint:function(t){return A(t).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(t){return A(t).add(this._getMapPanePos())},containerPointToLatLng:function(t){return t=this.containerPointToLayerPoint(A(t)),this.layerPointToLatLng(t)},latLngToContainerPoint:function(t){return this.layerPointToContainerPoint(this.latLngToLayerPoint(j(t)))},mouseEventToContainerPoint:function(t){return ki(t,this._container)},mouseEventToLayerPoint:function(t){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(t))},mouseEventToLatLng:function(t){return this.layerPointToLatLng(this.mouseEventToLayerPoint(t))},_initContainer:function(t){if(!(t=this._container=Xt(t)))throw new Error("Map container not found.");if(t._leaflet_id)throw new Error("Map container is already initialized.");yi(t,"scroll",this._onScroll,this),this._containerId=r(t)},_initLayout:function(){var t=this._container,i=(this._fadeAnimated=this.options.fadeAnimation&&Ct.any3d,oi(t,"leaflet-container"+(Ct.touch?" leaflet-touch":"")+(Ct.retina?" leaflet-retina":"")+(Ct.ielt9?" leaflet-oldie":"")+(Ct.safari?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":"")),Jt(t,"position"));"absolute"!==i&&"relative"!==i&&"fixed"!==i&&(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),ci(this._mapPane,new E(0,0)),this.createPane("tilePane"),this.createPane("overlayPane"),this.createPane("shadowPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(oi(t.markerPane,"leaflet-zoom-hide"),oi(t.shadowPane,"leaflet-zoom-hide"))},_resetView:function(t,i){ci(this._mapPane,new E(0,0));var e=!this._loaded,n=(this._loaded=!0,i=this._limitZoom(i),this.fire("viewprereset"),this._zoom!==i);this._moveStart(n,!1)._move(t,i)._moveEnd(n),this.fire("viewreset"),e&&this.fire("load")},_moveStart:function(t,i){return t&&this.fire("zoomstart"),i||this.fire("movestart"),this},_move:function(t,i,e,n){void 0===i&&(i=this._zoom);var o=this._zoom!==i;return this._zoom=i,this._lastCenter=t,this._pixelOrigin=this._getNewPixelOrigin(t),n?e&&e.pinch&&this.fire("zoom",e):((o||e&&e.pinch)&&this.fire("zoom",e),this.fire("move",e)),this},_moveEnd:function(t){return t&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return M(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(t){ci(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={};var i=t?wi:yi;i((this._targets[r(this._container)]=this)._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this),this.options.trackResize&&i(window,"resize",this._onResize,this),Ct.any3d&&this.options.transform3DLimit&&(t?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){M(this._resizeRequest),this._resizeRequest=z((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,i){for(var e,n=[],o="mouseout"===i||"mouseover"===i,s=t.target||t.srcElement,a=!1;s;){if((e=this._targets[r(s)])&&("click"===i||"preclick"===i)&&this._draggableMoved(e)){a=!0;break}if(e&&e.listens(i,!0)){if(o&&!Ai(s,t))break;if(n.push(e),o)break}if(s===this._container)break;s=s.parentNode}return n.length||a||o||!this.listens(i,!0)?n:[this]},_isClickDisabled:function(t){for(;t!==this._container;){if(t._leaflet_disable_click)return!0;t=t.parentNode}},_handleDOMEvent:function(t){var i,e=t.target||t.srcElement;!this._loaded||e._leaflet_disable_events||"click"===t.type&&this._isClickDisabled(e)||("mousedown"===(i=t.type)&&mi(e),this._fireDOMEvent(t,i))},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(t,e,n){"click"===t.type&&((h=i({},t)).type="preclick",this._fireDOMEvent(h,h.type,n));var o=this._findEventTargets(t,e);if(n){for(var s=[],r=0;rthis.options.zoomAnimationThreshold)return!1;var n=this.getZoomScale(i);n=this._getCenterOffset(t)._divideBy(1-1/n);return!(!0!==e.animate&&!this.getSize().contains(n)||(z((function(){this._moveStart(!0,!1)._animateZoom(t,i,!0)}),this),0))},_animateZoom:function(t,i,e,n){this._mapPane&&(e&&(this._animatingZoom=!0,this._animateToCenter=t,this._animateToZoom=i,oi(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:t,zoom:i,noUpdate:n}),this._tempFireZoomEvent||(this._tempFireZoomEvent=this._zoom!==this._animateToZoom),this._move(this._animateToCenter,this._animateToZoom,void 0,!0),setTimeout(o(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._mapPane&&si(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 Ri(t){return new Di(t)}var Ni,Di=Z.extend({options:{position:"topright"},initialize:function(t){_(this,t)},getPosition:function(){return this.options.position},setPosition:function(t){var i=this._map;return i&&i.removeControl(this),this.options.position=t,i&&i.addControl(this),this},getContainer:function(){return this._container},addTo:function(t){this.remove(),this._map=t;var i=this._container=this.onAdd(t),e=this.getPosition();t=t._controlCorners[e];return oi(i,"leaflet-control"),-1!==e.indexOf("bottom")?t.insertBefore(i,t.firstChild):t.appendChild(i),this._map.on("unload",this.remove,this),this},remove:function(){return this._map&&(Qt(this._container),this.onRemove&&this.onRemove(this._map),this._map.off("unload",this.remove,this),this._map=null),this},_refocusOnMap:function(t){this._map&&t&&0",(i=document.createElement("div")).innerHTML=t,i.firstChild},_addItem:function(t){var i,e=document.createElement("label"),n=this._map.hasLayer(t.layer),o=((n=(t.overlay?((i=document.createElement("input")).type="checkbox",i.className="leaflet-control-layers-selector",i.defaultChecked=n):i=this._createRadioElement("leaflet-base-layers_"+r(this),n),this._layerControlInputs.push(i),i.layerId=r(t.layer),yi(i,"click",this._onInputClick,this),document.createElement("span"))).innerHTML=" "+t.name,document.createElement("span"));return e.appendChild(o),o.appendChild(i),o.appendChild(n),(t.overlay?this._overlaysList:this._baseLayersList).appendChild(e),this._checkDisabledLayers(),e},_onInputClick:function(){var t,i,e=this._layerControlInputs,n=[],o=[];this._handlingClick=!0;for(var s=e.length-1;0<=s;s--)t=e[s],i=this._getLayer(t.layerId).layer,t.checked?n.push(i):t.checked||o.push(i);for(s=0;si.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this}})),Hi=Di.extend({options:{position:"topleft",zoomInText:'',zoomInTitle:"Zoom in",zoomOutText:'',zoomOutTitle:"Zoom out"},onAdd:function(t){var i="leaflet-control-zoom",e=$t("div",i+" leaflet-bar"),n=this.options;return this._zoomInButton=this._createButton(n.zoomInText,n.zoomInTitle,i+"-in",e,this._zoomIn),this._zoomOutButton=this._createButton(n.zoomOutText,n.zoomOutTitle,i+"-out",e,this._zoomOut),this._updateDisabled(),t.on("zoomend zoomlevelschange",this._updateDisabled,this),e},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._zoomthis._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(t.shiftKey?3:1))},_createButton:function(t,i,e,n,o){return(e=$t("a",e,n)).innerHTML=t,e.href="#",e.title=i,e.setAttribute("role","button"),e.setAttribute("aria-label",i),Ci(e),yi(e,"click",Si),yi(e,"click",o,this),yi(e,"click",this._refocusOnMap,this),e},_updateDisabled:function(){var t=this._map,i="leaflet-disabled";si(this._zoomInButton,i),si(this._zoomOutButton,i),this._zoomInButton.setAttribute("aria-disabled","false"),this._zoomOutButton.setAttribute("aria-disabled","false"),!this._disabled&&t._zoom!==t.getMinZoom()||(oi(this._zoomOutButton,i),this._zoomOutButton.setAttribute("aria-disabled","true")),!this._disabled&&t._zoom!==t.getMaxZoom()||(oi(this._zoomInButton,i),this._zoomInButton.setAttribute("aria-disabled","true"))}}),Wi=(Oi.mergeOptions({zoomControl:!0}),Oi.addInitHook((function(){this.options.zoomControl&&(this.zoomControl=new Hi,this.addControl(this.zoomControl))})),Di.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(t){var i="leaflet-control-scale",e=$t("div",i),n=this.options;return this._addScales(n,i+"-line",e),t.on(n.updateWhenIdle?"moveend":"move",this._update,this),t.whenReady(this._update,this),e},onRemove:function(t){t.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(t,i,e){t.metric&&(this._mScale=$t("div",i,e)),t.imperial&&(this._iScale=$t("div",i,e))},_update:function(){var t=(i=this._map).getSize().y/2,i=i.distance(i.containerPointToLatLng([0,t]),i.containerPointToLatLng([this.options.maxWidth,t]));this._updateScales(i)},_updateScales:function(t){this.options.metric&&t&&this._updateMetric(t),this.options.imperial&&t&&this._updateImperial(t)},_updateMetric:function(t){var i=this._getRoundNum(t);this._updateScale(this._mScale,i<1e3?i+" m":i/1e3+" km",i/t)},_updateImperial:function(t){var i,e;5280<(t=3.2808399*t)?(e=this._getRoundNum(i=t/5280),this._updateScale(this._iScale,e+" mi",e/i)):(e=this._getRoundNum(t),this._updateScale(this._iScale,e+" ft",e/t))},_updateScale:function(t,i,e){t.style.width=Math.round(this.options.maxWidth*e)+"px",t.innerHTML=i},_getRoundNum:function(t){var i=Math.pow(10,(Math.floor(t)+"").length-1);return i*(10<=(t=t/i)?10:5<=t?5:3<=t?3:2<=t?2:1)}})),Fi=Di.extend({options:{position:"bottomright",prefix:''+(Ct.inlineSvg?' ':"")+"Leaflet"},initialize:function(t){_(this,t),this._attributions={}},onAdd:function(t){for(var i in(t.attributionControl=this)._container=$t("div","leaflet-control-attribution"),Ci(this._container),t._layers)t._layers[i].getAttribution&&this.addAttribution(t._layers[i].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},removeAttribution:function(t){return t&&this._attributions[t]&&(this._attributions[t]--,this._update()),this},_update:function(){if(this._map){var t,i=[];for(t in this._attributions)this._attributions[t]&&i.push(t);var e=[];this.options.prefix&&e.push(this.options.prefix),i.length&&e.push(i.join(", ")),this._container.innerHTML=e.join(' ')}}}),Ui=(tt=((Q=(Oi.mergeOptions({attributionControl:!0}),Oi.addInitHook((function(){this.options.attributionControl&&(new Fi).addTo(this)})),Di.Layers=ji,Di.Zoom=Hi,Di.Scale=Wi,Di.Attribution=Fi,Ri.layers=function(t,i,e){return new ji(t,i,e)},Ri.zoom=function(t){return new Hi(t)},Ri.scale=function(t){return new Wi(t)},Ri.attribution=function(t){return new Fi(t)},Z.extend({initialize:function(t){this._map=t},enable:function(){return this._enabled||(this._enabled=!0,this.addHooks()),this},disable:function(){return this._enabled&&(this._enabled=!1,this.removeHooks()),this},enabled:function(){return!!this._enabled}}))).addTo=function(t,i){return t.addHandler(i,this),this},{Events:S}),Ct.touch?"touchstart mousedown":"mousedown"),Vi=k.extend({options:{clickTolerance:3},initialize:function(t,i,e,n){_(this,n),this._element=t,this._dragStartTarget=i||t,this._preventOutline=e},enable:function(){this._enabled||(yi(this._dragStartTarget,Ui,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(Vi._dragging===this&&this.finishDrag(!0),wi(this._dragStartTarget,Ui,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(t){var i,e;this._enabled&&(this._moved=!1,ni(this._element,"leaflet-zoom-anim")||(t.touches&&1!==t.touches.length?Vi._dragging===this&&this.finishDrag():Vi._dragging||t.shiftKey||1!==t.which&&1!==t.button&&!t.touches||((Vi._dragging=this)._preventOutline&&mi(this._element),_i(),Ft(),this._moving||(this.fire("down"),e=t.touches?t.touches[0]:t,i=gi(this._element),this._startPoint=new E(e.clientX,e.clientY),this._startPos=di(this._element),this._parentScale=vi(i),e="mousedown"===t.type,yi(document,e?"mousemove":"touchmove",this._onMove,this),yi(document,e?"mouseup":"touchend touchcancel",this._onUp,this)))))},_onMove:function(t){var i;this._enabled&&(t.touches&&1i&&(e.push(t[n]),o=n);return oi.max.x&&(e|=2),t.yi.max.y&&(e|=8),e}function Ji(t,i,e,n){var o=i.x,s=(i=i.y,e.x-o),r=e.y-i,a=s*s+r*r;return 0this._layersMaxZoom&&this.setZoom(this._layersMaxZoom),void 0===this.options.minZoom&&this._layersMinZoom&&this.getZoom()t.y!=n.y>t.y&&t.x<(n.x-e.x)*(t.y-e.y)/(n.y-e.y)+e.x&&(l=!l);return l||ce.prototype._containsPoint.call(this,t,!0)}}),_e=ne.extend({initialize:function(t,i){_(this,i),this._layers={},t&&this.addData(t)},addData:function(t){var i,e,n,o=g(t)?t:t.features;if(o){for(i=0,e=o.length;ir.x&&(a=n.x+h-r.x+s.x),n.x-a-o.x<(h=0)&&(a=n.x-o.x),n.y+e+s.y>r.y&&(h=n.y+e-r.y+s.y),n.y-h-o.y<0&&(h=n.y-o.y),(a||h)&&i.fire("autopanstart").panBy([a,h],{animate:t&&"moveend"===t.type}))},_getAnchor:function(){return A(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}})),Ce=(Oi.mergeOptions({closePopupOnClick:!0}),Oi.include({openPopup:function(t,i,e){return this._initOverlay(Me,t,i,e).openOn(this),this},closePopup:function(t){return(t=arguments.length?t:this._popup)&&t.close(),this}}),lt.include({bindPopup:function(t,i){return this._popup=this._initOverlay(Me,this._popup,t,i),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._popup._prepareOpen(t)&&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()},setPopupContent:function(t){return this._popup&&this._popup.setContent(t),this},getPopup:function(){return this._popup},_openPopup:function(t){var i;this._popup&&this._map&&(Si(t),i=t.layer||t.target,this._popup._source!==i||i instanceof he?(this._popup._source=i,this.openPopup(t.latlng)):this._map.hasLayer(this._popup)?this.closePopup():this.openPopup(t.latlng))},_movePopup:function(t){this._popup.setLatLng(t.latlng)},_onKeyPress:function(t){13===t.originalEvent.keyCode&&this._openPopup(t)}}),ze.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,opacity:.9},onAdd:function(t){ze.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){ze.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=ze.prototype.getEvents.call(this);return this.options.permanent||(t.preclick=this.close),t},_initLayout:function(){var t="leaflet-tooltip "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=$t("div",t)},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(t){var i,e=this._map,n=this._container,o=e.latLngToContainerPoint(e.getCenter()),s=(e=e.layerPointToContainerPoint(t),this.options.direction),r=n.offsetWidth,a=n.offsetHeight,h=A(this.options.offset),l=this._getAnchor();e="top"===s?(i=r/2,a):"bottom"===s?(i=r/2,0):(i="center"===s?r/2:"right"===s?0:"left"===s?r:e.xthis.options.maxZoom||nthis.options.maxZoom||void 0!==this.options.minZoom&&oe.max.x)||!i.wrapLat&&(t.ye.max.y))return!1}return!this.options.bounds||(i=this._tileCoordsToBounds(t),N(this.options.bounds).overlaps(i))},_keyToBounds:function(t){return this._tileCoordsToBounds(this._keyToTileCoords(t))},_tileCoordsToNwSe:function(t){var i=this._map,e=this.getTileSize(),n=t.scaleBy(e);e=n.add(e);return[i.unproject(n,t.z),i.unproject(e,t.z)]},_tileCoordsToBounds:function(t){return t=new R((t=this._tileCoordsToNwSe(t))[0],t[1]),this.options.noWrap?t:this._map.wrapLatLngBounds(t)},_tileCoordsToKey:function(t){return t.x+":"+t.y+":"+t.z},_keyToTileCoords:function(t){var i=new E(+(t=t.split(":"))[0],+t[1]);return i.z=+t[2],i},_removeTile:function(t){var i=this._tiles[t];i&&(Qt(i.el),delete this._tiles[t],this.fire("tileunload",{tile:i.el,coords:this._keyToTileCoords(t)}))},_initTile:function(t){oi(t,"leaflet-tile");var i=this.getTileSize();t.style.width=i.x+"px",t.style.height=i.y+"px",t.onselectstart=l,t.onmousemove=l,Ct.ielt9&&this.options.opacity<1&&hi(t,this.options.opacity)},_addTile:function(t,i){var e=this._getTilePos(t),n=this._tileCoordsToKey(t),s=this.createTile(this._wrapCoords(t),o(this._tileReady,this,t));this._initTile(s),this.createTile.length<2&&z(o(this._tileReady,this,t,null,s)),ci(s,e),this._tiles[n]={el:s,coords:t,current:!0},i.appendChild(s),this.fire("tileloadstart",{tile:s,coords:t})},_tileReady:function(t,i,e){i&&this.fire("tileerror",{error:i,tile:e,coords:t});var n=this._tileCoordsToKey(t);(e=this._tiles[n])&&(e.loaded=+new Date,this._map._fadeAnimated?(hi(e.el,0),M(this._fadeFrame),this._fadeFrame=z(this._updateOpacity,this)):(e.active=!0,this._pruneTiles()),i||(oi(e.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:e.el,coords:t})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),Ct.ielt9||!this._map._fadeAnimated?z(this._pruneTiles,this):setTimeout(o(this._pruneTiles,this),250)))},_getTilePos:function(t){return t.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(t){var i=new E(this._wrapX?h(t.x,this._wrapX):t.x,this._wrapY?h(t.y,this._wrapY):t.y);return i.z=t.z,i},_pxBoundsToTileRange:function(t){var i=this.getTileSize();return new I(t.min.unscaleBy(i).floor(),t.max.unscaleBy(i).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var t in this._tiles)if(!this._tiles[t].loaded)return!1;return!0}}),ke=Se.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1,referrerPolicy:!1},initialize:function(t,i){this._url=t,(i=_(this,i)).detectRetina&&Ct.retina&&0')}}catch(t){}return function(t){return document.createElement("<"+t+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}}(),Ne=(dt={_initContainer:function(){this._container=$t("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(Ae.prototype._update.call(this),this.fire("update"))},_initPath:function(t){var i=t._container=Re("shape");oi(i,"leaflet-vml-shape "+(this.options.className||"")),i.coordsize="1 1",t._path=Re("path"),i.appendChild(t._path),this._updateStyle(t),this._layers[r(t)]=t},_addPath:function(t){var i=t._container;this._container.appendChild(i),t.options.interactive&&t.addInteractiveTarget(i)},_removePath:function(t){var i=t._container;Qt(i),t.removeInteractiveTarget(i),delete this._layers[r(t)]},_updateStyle:function(t){var i=t._stroke,e=t._fill,n=t.options,o=t._container;o.stroked=!!n.stroke,o.filled=!!n.fill,n.stroke?(i=i||(t._stroke=Re("stroke")),o.appendChild(i),i.weight=n.weight+"px",i.color=n.color,i.opacity=n.opacity,n.dashArray?i.dashStyle=g(n.dashArray)?n.dashArray.join(" "):n.dashArray.replace(/( *, *)/g," "):i.dashStyle="",i.endcap=n.lineCap.replace("butt","flat"),i.joinstyle=n.lineJoin):i&&(o.removeChild(i),t._stroke=null),n.fill?(e=e||(t._fill=Re("fill")),o.appendChild(e),e.color=n.fillColor||n.color,e.opacity=n.fillOpacity):e&&(o.removeChild(e),t._fill=null)},_updateCircle:function(t){var i=t._point.round(),e=Math.round(t._radius),n=Math.round(t._radiusY||e);this._setPath(t,t._empty()?"M0 0":"AL "+i.x+","+i.y+" "+e+","+n+" 0,23592600")},_setPath:function(t,i){t._path.v=i},_bringToFront:function(t){ii(t._container)},_bringToBack:function(t){ei(t._container)}},Ct.vml?Re:K),De=Ae.extend({_initContainer:function(){this._container=Ne("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=Ne("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){Qt(this._container),wi(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_update:function(){var t,i,e;this._map._animatingZoom&&this._bounds||(Ae.prototype._update.call(this),i=(t=this._bounds).getSize(),e=this._container,this._svgSize&&this._svgSize.equals(i)||(this._svgSize=i,e.setAttribute("width",i.x),e.setAttribute("height",i.y)),ci(e,t.min),e.setAttribute("viewBox",[t.min.x,t.min.y,i.x,i.y].join(" ")),this.fire("update"))},_initPath:function(t){var i=t._path=Ne("path");t.options.className&&oi(i,t.options.className),t.options.interactive&&oi(i,"leaflet-interactive"),this._updateStyle(t),this._layers[r(t)]=t},_addPath:function(t){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(t._path),t.addInteractiveTarget(t._path)},_removePath:function(t){Qt(t._path),t.removeInteractiveTarget(t._path),delete this._layers[r(t)]},_updatePath:function(t){t._project(),t._update()},_updateStyle:function(t){var i=t._path;t=t.options;i&&(t.stroke?(i.setAttribute("stroke",t.color),i.setAttribute("stroke-opacity",t.opacity),i.setAttribute("stroke-width",t.weight),i.setAttribute("stroke-linecap",t.lineCap),i.setAttribute("stroke-linejoin",t.lineJoin),t.dashArray?i.setAttribute("stroke-dasharray",t.dashArray):i.removeAttribute("stroke-dasharray"),t.dashOffset?i.setAttribute("stroke-dashoffset",t.dashOffset):i.removeAttribute("stroke-dashoffset")):i.setAttribute("stroke","none"),t.fill?(i.setAttribute("fill",t.fillColor||t.color),i.setAttribute("fill-opacity",t.fillOpacity),i.setAttribute("fill-rule",t.fillRule||"evenodd")):i.setAttribute("fill","none"))},_updatePoly:function(t,i){this._setPath(t,Y(t._parts,i))},_updateCircle:function(t){var i=t._point,e=Math.max(Math.round(t._radius),1),n="a"+e+","+(Math.max(Math.round(t._radiusY),1)||e)+" 0 1,0 ";i=t._empty()?"M0 0":"M"+(i.x-e)+","+i.y+n+2*e+",0 "+n+2*-e+",0 ";this._setPath(t,i)},_setPath:function(t,i){t._path.setAttribute("d",i)},_bringToFront:function(t){ii(t._path)},_bringToBack:function(t){ei(t._path)}});function je(t){return Ct.svg||Ct.vml?new De(t):null}Ct.vml&&De.include(dt),Oi.include({getRenderer:function(t){return t=(t=t.options.renderer||this._getPaneRenderer(t.options.pane)||this.options.renderer||this._renderer)||(this._renderer=this._createRenderer()),this.hasLayer(t)||this.addLayer(t),t},_getPaneRenderer:function(t){if("overlayPane"===t||void 0===t)return!1;var i=this._paneRenderers[t];return void 0===i&&(i=this._createRenderer({pane:t}),this._paneRenderers[t]=i),i},_createRenderer:function(t){return this.options.preferCanvas&&Oe(t)||je(t)}});var He=de.extend({initialize:function(t,i){de.prototype.initialize.call(this,this._boundsToLatLngs(t),i)},setBounds:function(t){return this.setLatLngs(this._boundsToLatLngs(t))},_boundsToLatLngs:function(t){return[(t=N(t)).getSouthWest(),t.getNorthWest(),t.getNorthEast(),t.getSouthEast()]}});De.create=Ne,De.pointsToPath=Y,_e.geometryToLayer=pe,_e.coordsToLatLng=fe,_e.coordsToLatLngs=ge,_e.latLngToCoords=ve,_e.latLngsToCoords=ye,_e.getFeature=xe,_e.asFeature=we,Oi.mergeOptions({boxZoom:!0});X=Q.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(){yi(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){wi(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){Qt(this._pane),delete this._pane},_resetState:function(){this._resetStateTimeout=0,this._moved=!1},_clearDeferredResetState:function(){0!==this._resetStateTimeout&&(clearTimeout(this._resetStateTimeout),this._resetStateTimeout=0)},_onMouseDown:function(t){if(!t.shiftKey||1!==t.which&&1!==t.button)return!1;this._clearDeferredResetState(),this._resetState(),Ft(),_i(),this._startPoint=this._map.mouseEventToContainerPoint(t),yi(document,{contextmenu:Si,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(t){this._moved||(this._moved=!0,this._box=$t("div","leaflet-zoom-box",this._container),oi(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(t);var i=(t=new I(this._point,this._startPoint)).getSize();ci(this._box,t.min),this._box.style.width=i.x+"px",this._box.style.height=i.y+"px"},_finish:function(){this._moved&&(Qt(this._box),si(this._container,"leaflet-crosshair")),Ut(),pi(),wi(document,{contextmenu:Si,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(t){1!==t.which&&1!==t.button||(this._finish(),this._moved&&(this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(o(this._resetState,this),0),t=new R(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point)),this._map.fitBounds(t).fire("boxzoomend",{boxZoomBounds:t})))},_onKeyDown:function(t){27===t.keyCode&&(this._finish(),this._clearDeferredResetState(),this._resetState())}}),Oi.addInitHook("addHandler","boxZoom",X),Oi.mergeOptions({doubleClickZoom:!0}),_t=Q.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(t){var i=this._map,e=i.getZoom(),n=i.options.zoomDelta;e=t.originalEvent.shiftKey?e-n:e+n;"center"===i.options.doubleClickZoom?i.setZoom(e):i.setZoomAround(t.containerPoint,e)}});var We=(Oi.addInitHook("addHandler","doubleClickZoom",_t),Oi.mergeOptions({dragging:!0,inertia:!0,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0}),Q.extend({addHooks:function(){var t;this._draggable||(t=this._map,this._draggable=new Vi(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))),oi(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){si(this._map._container,"leaflet-grab"),si(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,i=this._map;i._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity?(t=N(this._map.options.maxBounds),this._offsetLimit=O(this._map.latLngToContainerPoint(t.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(t.getSouthEast()).multiplyBy(-1).add(this._map.getSize())),this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))):this._offsetLimit=null,i.fire("movestart").fire("dragstart"),i.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(t){var i,e;this._map.options.inertia&&(i=this._lastTime=+new Date,e=this._lastPos=this._draggable._absPos||this._draggable._newPos,this._positions.push(e),this._times.push(i),this._prunePositions(i)),this._map.fire("move",t).fire("drag",t)},_prunePositions:function(t){for(;1i.max.x&&(t.x=this._viscousLimit(t.x,i.max.x)),t.y>i.max.y&&(t.y=this._viscousLimit(t.y,i.max.y)),this._draggable._newPos=this._draggable._startPos.add(t))},_onPreDragWrap:function(){var t=this._worldWidth,i=Math.round(t/2),e=this._initialWorldOffset,n=((o=this._draggable._newPos.x)-i+e)%t+i-e,o=(o+i+e)%t-i-e;t=Math.abs(n+e)i.getMaxZoom()&&1=this.min.x&&e.x<=this.max.x&&i.y>=this.min.y&&e.y<=this.max.y},intersects:function(t){t=O(t);var i=this.min,e=this.max,n=t.min,o=(t=t.max).x>=i.x&&n.x<=e.x;t=t.y>=i.y&&n.y<=e.y;return o&&t},overlaps:function(t){t=O(t);var i=this.min,e=this.max,n=t.min,o=(t=t.max).x>i.x&&n.xi.y&&n.y=n.lat&&e.lat<=o.lat&&i.lng>=n.lng&&e.lng<=o.lng},intersects:function(t){t=N(t);var i=this._southWest,e=this._northEast,n=t.getSouthWest(),o=(t=t.getNorthEast()).lat>=i.lat&&n.lat<=e.lat;t=t.lng>=i.lng&&n.lng<=e.lng;return o&&t},overlaps:function(t){t=N(t);var i=this._southWest,e=this._northEast,n=t.getSouthWest(),o=(t=t.getNorthEast()).lat>i.lat&&n.lati.lng&&n.lng","http://www.w3.org/2000/svg"===(zt.firstChild&&zt.firstChild.namespaceURI));function Mt(t){return 0<=navigator.userAgent.toLowerCase().indexOf(t)}var Ct={ie:J,ielt9:$,edge:Q,webkit:tt,android:it,android23:et,androidStock:nt,opera:ot,chrome:st,gecko:rt,safari:at,phantom:ht,opera12:lt,win:ut,ie3d:ct,webkit3d:dt,gecko3d:X,any3d:_t,mobile:We,mobileWebkit:pt,mobileWebkit3d:mt,msPointer:ft,pointer:gt,touch:yt,touchNative:vt,mobileOpera:xt,mobileGecko:wt,retina:Pt,passiveEvents:bt,canvas:Lt,svg:Tt,vml:!Tt&&function(){try{var t=document.createElement("div"),i=(t.innerHTML='',t.firstChild);return i.style.behavior="url(#default#VML)",i&&"object"==typeof i.adj}catch(t){return!1}}(),inlineSvg:zt},Zt=Ct.msPointer?"MSPointerDown":"pointerdown",St=Ct.msPointer?"MSPointerMove":"pointermove",kt=Ct.msPointer?"MSPointerUp":"pointerup",Et=Ct.msPointer?"MSPointerCancel":"pointercancel",Bt={touchstart:Zt,touchmove:St,touchend:kt,touchcancel:Et},At={touchstart:function(t,i){i.MSPOINTER_TYPE_TOUCH&&i.pointerType===i.MSPOINTER_TYPE_TOUCH&&Zi(i),jt(t,i)},touchmove:jt,touchend:jt,touchcancel:jt},It={},Ot=!1;function Rt(t){It[t.pointerId]=t}function Nt(t){It[t.pointerId]&&(It[t.pointerId]=t)}function Dt(t){delete It[t.pointerId]}function jt(t,i){if(i.pointerType!==(i.MSPOINTER_TYPE_MOUSE||"mouse")){for(var e in i.touches=[],It)i.touches.push(It[e]);i.changedTouches=[i],t(i)}}var Ht,Wt,Ft,Ut,Vt,qt,Gt=li(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),Kt=li(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),Yt="webkitTransition"===Kt||"OTransition"===Kt?Kt+"End":"transitionend";function Xt(t){return"string"==typeof t?document.getElementById(t):t}function Jt(t,i){var e=t.style[i]||t.currentStyle&&t.currentStyle[i];return"auto"===(e=e&&"auto"!==e||!document.defaultView?e:(t=document.defaultView.getComputedStyle(t,null))?t[i]:null)?null:e}function $t(t,i,e){return(t=document.createElement(t)).className=i||"",e&&e.appendChild(t),t}function Qt(t){var i=t.parentNode;i&&i.removeChild(t)}function ti(t){for(;t.firstChild;)t.removeChild(t.firstChild)}function ii(t){var i=t.parentNode;i&&i.lastChild!==t&&i.appendChild(t)}function ei(t){var i=t.parentNode;i&&i.firstChild!==t&&i.insertBefore(t,i.firstChild)}function ni(t,i){return void 0!==t.classList?t.classList.contains(i):0<(t=ai(t)).length&&new RegExp("(^|\\s)"+i+"(\\s|$)").test(t)}function oi(t,i){var e;if(void 0!==t.classList)for(var n=d(i),o=0,s=n.length;othis.options.maxZoom)?this.setZoom(t):this},panInsideBounds:function(t,i){this._enforcingBounds=!0;var e=this.getCenter();t=this._limitCenter(e,this._zoom,N(t));return e.equals(t)||this.panTo(t,i),this._enforcingBounds=!1,this},panInside:function(t,i){var e=A((i=i||{}).paddingTopLeft||i.padding||[0,0]),n=A(i.paddingBottomRight||i.padding||[0,0]),o=this.project(this.getCenter()),s=(t=this.project(t),(e=O([(s=this.getPixelBounds()).min.add(e),s.max.subtract(n)])).getSize());return e.contains(t)||(this._enforcingBounds=!0,n=t.subtract(e.getCenter()),e=e.extend(t).getSize().subtract(s),o.x+=n.x<0?-e.x:e.x,o.y+=n.y<0?-e.y:e.y,this.panTo(this.unproject(o),i),this._enforcingBounds=!1),this},invalidateSize:function(t){if(!this._loaded)return this;t=i({animate:!1,pan:!0},!0===t?{animate:!0}:t);var e=this.getSize(),n=(this._sizeChanged=!0,this._lastCenter=null,this.getSize()),s=e.divideBy(2).round(),r=n.divideBy(2).round();return(s=s.subtract(r)).x||s.y?(t.animate&&t.pan?this.panBy(s):(t.pan&&this._rawPanBy(s),this.fire("move"),t.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(o(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:e,newSize:n})):this},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},locate:function(t){if(t=this._locateOptions=i({timeout:1e4,watch:!1},t),!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var e=o(this._handleGeolocationResponse,this),n=o(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){var i;this._container._leaflet_id&&(i=t.code,t=t.message||(1===i?"permission denied":2===i?"position unavailable":"timeout"),this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:i,message:"Geolocation error: "+t+"."}))},_handleGeolocationResponse:function(t){if(this._container._leaflet_id){var i,e,n=new D(t.coords.latitude,t.coords.longitude),o=n.toBounds(2*t.coords.accuracy),s=this._locateOptions,r=(s.setView&&(i=this.getBoundsZoom(o),this.setView(n,s.maxZoom?Math.min(i,s.maxZoom):i)),{latlng:n,bounds:o,timestamp:t.timestamp});for(e in t.coords)"number"==typeof t.coords[e]&&(r[e]=t.coords[e]);this.fire("locationfound",r)}},addHandler:function(t,i){return i?(i=this[t]=new i(this),this._handlers.push(i),this.options[t]&&i.enable(),this):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(t){this._container._leaflet_id=void 0,this._containerId=void 0}for(var t in void 0!==this._locationWatchId&&this.stopLocate(),this._stop(),Qt(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(M(this._resizeRequest),this._resizeRequest=null),this._clearHandlers(),this._loaded&&this.fire("unload"),this._layers)this._layers[t].remove();for(t in this._panes)Qt(this._panes[t]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(t,i){return i=$t("div","leaflet-pane"+(t?" leaflet-"+t.replace("Pane","")+"-pane":""),i||this._mapPane),t&&(this._panes[t]=i),i},getCenter:function(){return this._checkIfLoaded(),this._lastCenter&&!this._moved()?this._lastCenter:this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var t=this.getPixelBounds();return new R(this.unproject(t.getBottomLeft()),this.unproject(t.getTopRight()))},getMinZoom:function(){return void 0===this.options.minZoom?this._layersMinZoom||0:this.options.minZoom},getMaxZoom:function(){return void 0===this.options.maxZoom?void 0===this._layersMaxZoom?1/0:this._layersMaxZoom:this.options.maxZoom},getBoundsZoom:function(t,i,e){t=N(t),e=A(e||[0,0]);var n=this.getZoom()||0,o=this.getMinZoom(),s=this.getMaxZoom(),r=t.getNorthWest(),a=(t=t.getSouthEast(),e=this.getSize().subtract(e),t=O(this.project(t,n),this.project(r,n)).getSize(),r=Ct.any3d?this.options.zoomSnap:1,e.x/t.x);e=e.y/t.y,t=i?Math.max(a,e):Math.min(a,e),n=this.getScaleZoom(t,n);return r&&(n=Math.round(n/(r/100))*(r/100),n=i?Math.ceil(n/r)*r:Math.floor(n/r)*r),Math.max(o,Math.min(s,n))},getSize:function(){return this._size&&!this._sizeChanged||(this._size=new E(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(t,i){return new I(t=this._getTopLeftPoint(t,i),t.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._pixelOrigin},getPixelWorldBounds:function(t){return this.options.crs.getProjectedBounds(void 0===t?this.getZoom():t)},getPane:function(t){return"string"==typeof t?this._panes[t]:t},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(t,i){var e=this.options.crs;return i=void 0===i?this._zoom:i,e.scale(t)/e.scale(i)},getScaleZoom:function(t,i){var e=this.options.crs;i=void 0===i?this._zoom:i,t=e.zoom(t*e.scale(i));return isNaN(t)?1/0:t},project:function(t,i){return i=void 0===i?this._zoom:i,this.options.crs.latLngToPoint(j(t),i)},unproject:function(t,i){return i=void 0===i?this._zoom:i,this.options.crs.pointToLatLng(A(t),i)},layerPointToLatLng:function(t){return t=A(t).add(this.getPixelOrigin()),this.unproject(t)},latLngToLayerPoint:function(t){return this.project(j(t))._round()._subtract(this.getPixelOrigin())},wrapLatLng:function(t){return this.options.crs.wrapLatLng(j(t))},wrapLatLngBounds:function(t){return this.options.crs.wrapLatLngBounds(N(t))},distance:function(t,i){return this.options.crs.distance(j(t),j(i))},containerPointToLayerPoint:function(t){return A(t).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(t){return A(t).add(this._getMapPanePos())},containerPointToLatLng:function(t){return t=this.containerPointToLayerPoint(A(t)),this.layerPointToLatLng(t)},latLngToContainerPoint:function(t){return this.layerPointToContainerPoint(this.latLngToLayerPoint(j(t)))},mouseEventToContainerPoint:function(t){return ki(t,this._container)},mouseEventToLayerPoint:function(t){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(t))},mouseEventToLatLng:function(t){return this.layerPointToLatLng(this.mouseEventToLayerPoint(t))},_initContainer:function(t){if(!(t=this._container=Xt(t)))throw new Error("Map container not found.");if(t._leaflet_id)throw new Error("Map container is already initialized.");yi(t,"scroll",this._onScroll,this),this._containerId=r(t)},_initLayout:function(){var t=this._container,i=(this._fadeAnimated=this.options.fadeAnimation&&Ct.any3d,oi(t,"leaflet-container"+(Ct.touch?" leaflet-touch":"")+(Ct.retina?" leaflet-retina":"")+(Ct.ielt9?" leaflet-oldie":"")+(Ct.safari?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":"")),Jt(t,"position"));"absolute"!==i&&"relative"!==i&&"fixed"!==i&&(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),ci(this._mapPane,new E(0,0)),this.createPane("tilePane"),this.createPane("overlayPane"),this.createPane("shadowPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(oi(t.markerPane,"leaflet-zoom-hide"),oi(t.shadowPane,"leaflet-zoom-hide"))},_resetView:function(t,i){ci(this._mapPane,new E(0,0));var e=!this._loaded,n=(this._loaded=!0,i=this._limitZoom(i),this.fire("viewprereset"),this._zoom!==i);this._moveStart(n,!1)._move(t,i)._moveEnd(n),this.fire("viewreset"),e&&this.fire("load")},_moveStart:function(t,i){return t&&this.fire("zoomstart"),i||this.fire("movestart"),this},_move:function(t,i,e,n){void 0===i&&(i=this._zoom);var o=this._zoom!==i;return this._zoom=i,this._lastCenter=t,this._pixelOrigin=this._getNewPixelOrigin(t),n?e&&e.pinch&&this.fire("zoom",e):((o||e&&e.pinch)&&this.fire("zoom",e),this.fire("move",e)),this},_moveEnd:function(t){return t&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return M(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(t){ci(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={};var i=t?wi:yi;i((this._targets[r(this._container)]=this)._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this),this.options.trackResize&&i(window,"resize",this._onResize,this),Ct.any3d&&this.options.transform3DLimit&&(t?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){M(this._resizeRequest),this._resizeRequest=z((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,i){for(var e,n=[],o="mouseout"===i||"mouseover"===i,s=t.target||t.srcElement,a=!1;s;){if((e=this._targets[r(s)])&&("click"===i||"preclick"===i)&&this._draggableMoved(e)){a=!0;break}if(e&&e.listens(i,!0)){if(o&&!Ai(s,t))break;if(n.push(e),o)break}if(s===this._container)break;s=s.parentNode}return n.length||a||o||!this.listens(i,!0)?n:[this]},_isClickDisabled:function(t){for(;t!==this._container;){if(t._leaflet_disable_click)return!0;t=t.parentNode}},_handleDOMEvent:function(t){var i,e=t.target||t.srcElement;!this._loaded||e._leaflet_disable_events||"click"===t.type&&this._isClickDisabled(e)||("mousedown"===(i=t.type)&&mi(e),this._fireDOMEvent(t,i))},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(t,e,n){"click"===t.type&&((h=i({},t)).type="preclick",this._fireDOMEvent(h,h.type,n));var o=this._findEventTargets(t,e);if(n){for(var s=[],r=0;rthis.options.zoomAnimationThreshold)return!1;var n=this.getZoomScale(i);n=this._getCenterOffset(t)._divideBy(1-1/n);return!(!0!==e.animate&&!this.getSize().contains(n)||(z((function(){this._moveStart(!0,!1)._animateZoom(t,i,!0)}),this),0))},_animateZoom:function(t,i,e,n){this._mapPane&&(e&&(this._animatingZoom=!0,this._animateToCenter=t,this._animateToZoom=i,oi(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:t,zoom:i,noUpdate:n}),this._tempFireZoomEvent||(this._tempFireZoomEvent=this._zoom!==this._animateToZoom),this._move(this._animateToCenter,this._animateToZoom,void 0,!0),setTimeout(o(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._mapPane&&si(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 Ri(t){return new Di(t)}var Ni,Di=Z.extend({options:{position:"topright"},initialize:function(t){_(this,t)},getPosition:function(){return this.options.position},setPosition:function(t){var i=this._map;return i&&i.removeControl(this),this.options.position=t,i&&i.addControl(this),this},getContainer:function(){return this._container},addTo:function(t){this.remove(),this._map=t;var i=this._container=this.onAdd(t),e=this.getPosition();t=t._controlCorners[e];return oi(i,"leaflet-control"),-1!==e.indexOf("bottom")?t.insertBefore(i,t.firstChild):t.appendChild(i),this._map.on("unload",this.remove,this),this},remove:function(){return this._map&&(Qt(this._container),this.onRemove&&this.onRemove(this._map),this._map.off("unload",this.remove,this),this._map=null),this},_refocusOnMap:function(t){this._map&&t&&0",(i=document.createElement("div")).innerHTML=t,i.firstChild},_addItem:function(t){var i,e=document.createElement("label"),n=this._map.hasLayer(t.layer),o=((n=(t.overlay?((i=document.createElement("input")).type="checkbox",i.className="leaflet-control-layers-selector",i.defaultChecked=n):i=this._createRadioElement("leaflet-base-layers_"+r(this),n),this._layerControlInputs.push(i),i.layerId=r(t.layer),yi(i,"click",this._onInputClick,this),document.createElement("span"))).innerHTML=" "+t.name,document.createElement("span"));return e.appendChild(o),o.appendChild(i),o.appendChild(n),(t.overlay?this._overlaysList:this._baseLayersList).appendChild(e),this._checkDisabledLayers(),e},_onInputClick:function(){var t,i,e=this._layerControlInputs,n=[],o=[];this._handlingClick=!0;for(var s=e.length-1;0<=s;s--)t=e[s],i=this._getLayer(t.layerId).layer,t.checked?n.push(i):t.checked||o.push(i);for(s=0;si.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this}})),Hi=Di.extend({options:{position:"topleft",zoomInText:'',zoomInTitle:"Zoom in",zoomOutText:'',zoomOutTitle:"Zoom out"},onAdd:function(t){var i="leaflet-control-zoom",e=$t("div",i+" leaflet-bar"),n=this.options;return this._zoomInButton=this._createButton(n.zoomInText,n.zoomInTitle,i+"-in",e,this._zoomIn),this._zoomOutButton=this._createButton(n.zoomOutText,n.zoomOutTitle,i+"-out",e,this._zoomOut),this._updateDisabled(),t.on("zoomend zoomlevelschange",this._updateDisabled,this),e},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._zoomthis._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(t.shiftKey?3:1))},_createButton:function(t,i,e,n,o){return(e=$t("a",e,n)).innerHTML=t,e.href="#",e.title=i,e.setAttribute("role","button"),e.setAttribute("aria-label",i),Ci(e),yi(e,"click",Si),yi(e,"click",o,this),yi(e,"click",this._refocusOnMap,this),e},_updateDisabled:function(){var t=this._map,i="leaflet-disabled";si(this._zoomInButton,i),si(this._zoomOutButton,i),this._zoomInButton.setAttribute("aria-disabled","false"),this._zoomOutButton.setAttribute("aria-disabled","false"),!this._disabled&&t._zoom!==t.getMinZoom()||(oi(this._zoomOutButton,i),this._zoomOutButton.setAttribute("aria-disabled","true")),!this._disabled&&t._zoom!==t.getMaxZoom()||(oi(this._zoomInButton,i),this._zoomInButton.setAttribute("aria-disabled","true"))}}),Wi=(Oi.mergeOptions({zoomControl:!0}),Oi.addInitHook((function(){this.options.zoomControl&&(this.zoomControl=new Hi,this.addControl(this.zoomControl))})),Di.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(t){var i="leaflet-control-scale",e=$t("div",i),n=this.options;return this._addScales(n,i+"-line",e),t.on(n.updateWhenIdle?"moveend":"move",this._update,this),t.whenReady(this._update,this),e},onRemove:function(t){t.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(t,i,e){t.metric&&(this._mScale=$t("div",i,e)),t.imperial&&(this._iScale=$t("div",i,e))},_update:function(){var t=(i=this._map).getSize().y/2,i=i.distance(i.containerPointToLatLng([0,t]),i.containerPointToLatLng([this.options.maxWidth,t]));this._updateScales(i)},_updateScales:function(t){this.options.metric&&t&&this._updateMetric(t),this.options.imperial&&t&&this._updateImperial(t)},_updateMetric:function(t){var i=this._getRoundNum(t);this._updateScale(this._mScale,i<1e3?i+" m":i/1e3+" km",i/t)},_updateImperial:function(t){var i,e;5280<(t=3.2808399*t)?(e=this._getRoundNum(i=t/5280),this._updateScale(this._iScale,e+" mi",e/i)):(e=this._getRoundNum(t),this._updateScale(this._iScale,e+" ft",e/t))},_updateScale:function(t,i,e){t.style.width=Math.round(this.options.maxWidth*e)+"px",t.innerHTML=i},_getRoundNum:function(t){var i=Math.pow(10,(Math.floor(t)+"").length-1);return i*(10<=(t=t/i)?10:5<=t?5:3<=t?3:2<=t?2:1)}})),Fi=Di.extend({options:{position:"bottomright",prefix:''+(Ct.inlineSvg?' ':"")+"Leaflet"},initialize:function(t){_(this,t),this._attributions={}},onAdd:function(t){for(var i in(t.attributionControl=this)._container=$t("div","leaflet-control-attribution"),Ci(this._container),t._layers)t._layers[i].getAttribution&&this.addAttribution(t._layers[i].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},removeAttribution:function(t){return t&&this._attributions[t]&&(this._attributions[t]--,this._update()),this},_update:function(){if(this._map){var t,i=[];for(t in this._attributions)this._attributions[t]&&i.push(t);var e=[];this.options.prefix&&e.push(this.options.prefix),i.length&&e.push(i.join(", ")),this._container.innerHTML=e.join(' ')}}}),Ui=(Q=(Oi.mergeOptions({attributionControl:!0}),Oi.addInitHook((function(){this.options.attributionControl&&(new Fi).addTo(this)})),Di.Layers=ji,Di.Zoom=Hi,Di.Scale=Wi,Di.Attribution=Fi,Ri.layers=function(t,i,e){return new ji(t,i,e)},Ri.zoom=function(t){return new Hi(t)},Ri.scale=function(t){return new Wi(t)},Ri.attribution=function(t){return new Fi(t)},Z.extend({initialize:function(t){this._map=t},enable:function(){return this._enabled||(this._enabled=!0,this.addHooks()),this},disable:function(){return this._enabled&&(this._enabled=!1,this.removeHooks()),this},enabled:function(){return!!this._enabled}})),tt=(Q.addTo=function(t,i){return t.addHandler(i,this),this},{Events:S}),Ct.touch?"touchstart mousedown":"mousedown"),Vi=k.extend({options:{clickTolerance:3},initialize:function(t,i,e,n){_(this,n),this._element=t,this._dragStartTarget=i||t,this._preventOutline=e},enable:function(){this._enabled||(yi(this._dragStartTarget,Ui,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(Vi._dragging===this&&this.finishDrag(!0),wi(this._dragStartTarget,Ui,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(t){var i,e;this._enabled&&(this._moved=!1,ni(this._element,"leaflet-zoom-anim")||(t.touches&&1!==t.touches.length?Vi._dragging===this&&this.finishDrag():Vi._dragging||t.shiftKey||1!==t.which&&1!==t.button&&!t.touches||((Vi._dragging=this)._preventOutline&&mi(this._element),_i(),Ft(),this._moving||(this.fire("down"),e=t.touches?t.touches[0]:t,i=gi(this._element),this._startPoint=new E(e.clientX,e.clientY),this._startPos=di(this._element),this._parentScale=vi(i),e="mousedown"===t.type,yi(document,e?"mousemove":"touchmove",this._onMove,this),yi(document,e?"mouseup":"touchend touchcancel",this._onUp,this)))))},_onMove:function(t){var i;this._enabled&&(t.touches&&1i&&(e.push(t[n]),o=n);return oi.max.x&&(e|=2),t.yi.max.y&&(e|=8),e}function Ji(t,i,e,n){var o=i.x,s=(i=i.y,e.x-o),r=e.y-i,a=s*s+r*r;return 0this._layersMaxZoom&&this.setZoom(this._layersMaxZoom),void 0===this.options.minZoom&&this._layersMinZoom&&this.getZoom()t.y!=n.y>t.y&&t.x<(n.x-e.x)*(t.y-e.y)/(n.y-e.y)+e.x&&(l=!l);return l||ce.prototype._containsPoint.call(this,t,!0)}}),_e=ne.extend({initialize:function(t,i){_(this,i),this._layers={},t&&this.addData(t)},addData:function(t){var i,e,n,o=g(t)?t:t.features;if(o){for(i=0,e=o.length;ir.x&&(a=n.x+h-r.x+s.x),n.x-a-o.x<(h=0)&&(a=n.x-o.x),n.y+e+s.y>r.y&&(h=n.y+e-r.y+s.y),n.y-h-o.y<0&&(h=n.y-o.y),(a||h)&&i.fire("autopanstart").panBy([a,h],{animate:t&&"moveend"===t.type}))},_getAnchor:function(){return A(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}})),Ce=(Oi.mergeOptions({closePopupOnClick:!0}),Oi.include({openPopup:function(t,i,e){return this._initOverlay(Me,t,i,e).openOn(this),this},closePopup:function(t){return(t=arguments.length?t:this._popup)&&t.close(),this}}),lt.include({bindPopup:function(t,i){return this._popup=this._initOverlay(Me,this._popup,t,i),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._popup._prepareOpen(t)&&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()},setPopupContent:function(t){return this._popup&&this._popup.setContent(t),this},getPopup:function(){return this._popup},_openPopup:function(t){var i;this._popup&&this._map&&(Si(t),i=t.layer||t.target,this._popup._source!==i||i instanceof he?(this._popup._source=i,this.openPopup(t.latlng)):this._map.hasLayer(this._popup)?this.closePopup():this.openPopup(t.latlng))},_movePopup:function(t){this._popup.setLatLng(t.latlng)},_onKeyPress:function(t){13===t.originalEvent.keyCode&&this._openPopup(t)}}),ze.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,opacity:.9},onAdd:function(t){ze.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){ze.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=ze.prototype.getEvents.call(this);return this.options.permanent||(t.preclick=this.close),t},_initLayout:function(){var t="leaflet-tooltip "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=$t("div",t)},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(t){var i,e=this._map,n=this._container,o=e.latLngToContainerPoint(e.getCenter()),s=(e=e.layerPointToContainerPoint(t),this.options.direction),r=n.offsetWidth,a=n.offsetHeight,h=A(this.options.offset),l=this._getAnchor();e="top"===s?(i=r/2,a):"bottom"===s?(i=r/2,0):(i="center"===s?r/2:"right"===s?0:"left"===s?r:e.xthis.options.maxZoom||nthis.options.maxZoom||void 0!==this.options.minZoom&&oe.max.x)||!i.wrapLat&&(t.ye.max.y))return!1}return!this.options.bounds||(i=this._tileCoordsToBounds(t),N(this.options.bounds).overlaps(i))},_keyToBounds:function(t){return this._tileCoordsToBounds(this._keyToTileCoords(t))},_tileCoordsToNwSe:function(t){var i=this._map,e=this.getTileSize(),n=t.scaleBy(e);e=n.add(e);return[i.unproject(n,t.z),i.unproject(e,t.z)]},_tileCoordsToBounds:function(t){return t=new R((t=this._tileCoordsToNwSe(t))[0],t[1]),this.options.noWrap?t:this._map.wrapLatLngBounds(t)},_tileCoordsToKey:function(t){return t.x+":"+t.y+":"+t.z},_keyToTileCoords:function(t){var i=new E(+(t=t.split(":"))[0],+t[1]);return i.z=+t[2],i},_removeTile:function(t){var i=this._tiles[t];i&&(Qt(i.el),delete this._tiles[t],this.fire("tileunload",{tile:i.el,coords:this._keyToTileCoords(t)}))},_initTile:function(t){oi(t,"leaflet-tile");var i=this.getTileSize();t.style.width=i.x+"px",t.style.height=i.y+"px",t.onselectstart=l,t.onmousemove=l,Ct.ielt9&&this.options.opacity<1&&hi(t,this.options.opacity)},_addTile:function(t,i){var e=this._getTilePos(t),n=this._tileCoordsToKey(t),s=this.createTile(this._wrapCoords(t),o(this._tileReady,this,t));this._initTile(s),this.createTile.length<2&&z(o(this._tileReady,this,t,null,s)),ci(s,e),this._tiles[n]={el:s,coords:t,current:!0},i.appendChild(s),this.fire("tileloadstart",{tile:s,coords:t})},_tileReady:function(t,i,e){i&&this.fire("tileerror",{error:i,tile:e,coords:t});var n=this._tileCoordsToKey(t);(e=this._tiles[n])&&(e.loaded=+new Date,this._map._fadeAnimated?(hi(e.el,0),M(this._fadeFrame),this._fadeFrame=z(this._updateOpacity,this)):(e.active=!0,this._pruneTiles()),i||(oi(e.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:e.el,coords:t})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),Ct.ielt9||!this._map._fadeAnimated?z(this._pruneTiles,this):setTimeout(o(this._pruneTiles,this),250)))},_getTilePos:function(t){return t.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(t){var i=new E(this._wrapX?h(t.x,this._wrapX):t.x,this._wrapY?h(t.y,this._wrapY):t.y);return i.z=t.z,i},_pxBoundsToTileRange:function(t){var i=this.getTileSize();return new I(t.min.unscaleBy(i).floor(),t.max.unscaleBy(i).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var t in this._tiles)if(!this._tiles[t].loaded)return!1;return!0}}),ke=Se.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1,referrerPolicy:!1},initialize:function(t,i){this._url=t,(i=_(this,i)).detectRetina&&Ct.retina&&0')}}catch(t){}return function(t){return document.createElement("<"+t+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}}(),Ne=(dt={_initContainer:function(){this._container=$t("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(Ae.prototype._update.call(this),this.fire("update"))},_initPath:function(t){var i=t._container=Re("shape");oi(i,"leaflet-vml-shape "+(this.options.className||"")),i.coordsize="1 1",t._path=Re("path"),i.appendChild(t._path),this._updateStyle(t),this._layers[r(t)]=t},_addPath:function(t){var i=t._container;this._container.appendChild(i),t.options.interactive&&t.addInteractiveTarget(i)},_removePath:function(t){var i=t._container;Qt(i),t.removeInteractiveTarget(i),delete this._layers[r(t)]},_updateStyle:function(t){var i=t._stroke,e=t._fill,n=t.options,o=t._container;o.stroked=!!n.stroke,o.filled=!!n.fill,n.stroke?(i=i||(t._stroke=Re("stroke")),o.appendChild(i),i.weight=n.weight+"px",i.color=n.color,i.opacity=n.opacity,n.dashArray?i.dashStyle=g(n.dashArray)?n.dashArray.join(" "):n.dashArray.replace(/( *, *)/g," "):i.dashStyle="",i.endcap=n.lineCap.replace("butt","flat"),i.joinstyle=n.lineJoin):i&&(o.removeChild(i),t._stroke=null),n.fill?(e=e||(t._fill=Re("fill")),o.appendChild(e),e.color=n.fillColor||n.color,e.opacity=n.fillOpacity):e&&(o.removeChild(e),t._fill=null)},_updateCircle:function(t){var i=t._point.round(),e=Math.round(t._radius),n=Math.round(t._radiusY||e);this._setPath(t,t._empty()?"M0 0":"AL "+i.x+","+i.y+" "+e+","+n+" 0,23592600")},_setPath:function(t,i){t._path.v=i},_bringToFront:function(t){ii(t._container)},_bringToBack:function(t){ei(t._container)}},Ct.vml?Re:K),De=Ae.extend({_initContainer:function(){this._container=Ne("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=Ne("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){Qt(this._container),wi(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_update:function(){var t,i,e;this._map._animatingZoom&&this._bounds||(Ae.prototype._update.call(this),i=(t=this._bounds).getSize(),e=this._container,this._svgSize&&this._svgSize.equals(i)||(this._svgSize=i,e.setAttribute("width",i.x),e.setAttribute("height",i.y)),ci(e,t.min),e.setAttribute("viewBox",[t.min.x,t.min.y,i.x,i.y].join(" ")),this.fire("update"))},_initPath:function(t){var i=t._path=Ne("path");t.options.className&&oi(i,t.options.className),t.options.interactive&&oi(i,"leaflet-interactive"),this._updateStyle(t),this._layers[r(t)]=t},_addPath:function(t){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(t._path),t.addInteractiveTarget(t._path)},_removePath:function(t){Qt(t._path),t.removeInteractiveTarget(t._path),delete this._layers[r(t)]},_updatePath:function(t){t._project(),t._update()},_updateStyle:function(t){var i=t._path;t=t.options;i&&(t.stroke?(i.setAttribute("stroke",t.color),i.setAttribute("stroke-opacity",t.opacity),i.setAttribute("stroke-width",t.weight),i.setAttribute("stroke-linecap",t.lineCap),i.setAttribute("stroke-linejoin",t.lineJoin),t.dashArray?i.setAttribute("stroke-dasharray",t.dashArray):i.removeAttribute("stroke-dasharray"),t.dashOffset?i.setAttribute("stroke-dashoffset",t.dashOffset):i.removeAttribute("stroke-dashoffset")):i.setAttribute("stroke","none"),t.fill?(i.setAttribute("fill",t.fillColor||t.color),i.setAttribute("fill-opacity",t.fillOpacity),i.setAttribute("fill-rule",t.fillRule||"evenodd")):i.setAttribute("fill","none"))},_updatePoly:function(t,i){this._setPath(t,Y(t._parts,i))},_updateCircle:function(t){var i=t._point,e=Math.max(Math.round(t._radius),1),n="a"+e+","+(Math.max(Math.round(t._radiusY),1)||e)+" 0 1,0 ";i=t._empty()?"M0 0":"M"+(i.x-e)+","+i.y+n+2*e+",0 "+n+2*-e+",0 ";this._setPath(t,i)},_setPath:function(t,i){t._path.setAttribute("d",i)},_bringToFront:function(t){ii(t._path)},_bringToBack:function(t){ei(t._path)}});function je(t){return Ct.svg||Ct.vml?new De(t):null}Ct.vml&&De.include(dt),Oi.include({getRenderer:function(t){return t=(t=t.options.renderer||this._getPaneRenderer(t.options.pane)||this.options.renderer||this._renderer)||(this._renderer=this._createRenderer()),this.hasLayer(t)||this.addLayer(t),t},_getPaneRenderer:function(t){if("overlayPane"===t||void 0===t)return!1;var i=this._paneRenderers[t];return void 0===i&&(i=this._createRenderer({pane:t}),this._paneRenderers[t]=i),i},_createRenderer:function(t){return this.options.preferCanvas&&Oe(t)||je(t)}});var He=de.extend({initialize:function(t,i){de.prototype.initialize.call(this,this._boundsToLatLngs(t),i)},setBounds:function(t){return this.setLatLngs(this._boundsToLatLngs(t))},_boundsToLatLngs:function(t){return[(t=N(t)).getSouthWest(),t.getNorthWest(),t.getNorthEast(),t.getSouthEast()]}});De.create=Ne,De.pointsToPath=Y,_e.geometryToLayer=pe,_e.coordsToLatLng=fe,_e.coordsToLatLngs=ge,_e.latLngToCoords=ve,_e.latLngsToCoords=ye,_e.getFeature=xe,_e.asFeature=we,Oi.mergeOptions({boxZoom:!0});X=Q.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(){yi(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){wi(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){Qt(this._pane),delete this._pane},_resetState:function(){this._resetStateTimeout=0,this._moved=!1},_clearDeferredResetState:function(){0!==this._resetStateTimeout&&(clearTimeout(this._resetStateTimeout),this._resetStateTimeout=0)},_onMouseDown:function(t){if(!t.shiftKey||1!==t.which&&1!==t.button)return!1;this._clearDeferredResetState(),this._resetState(),Ft(),_i(),this._startPoint=this._map.mouseEventToContainerPoint(t),yi(document,{contextmenu:Si,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(t){this._moved||(this._moved=!0,this._box=$t("div","leaflet-zoom-box",this._container),oi(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(t);var i=(t=new I(this._point,this._startPoint)).getSize();ci(this._box,t.min),this._box.style.width=i.x+"px",this._box.style.height=i.y+"px"},_finish:function(){this._moved&&(Qt(this._box),si(this._container,"leaflet-crosshair")),Ut(),pi(),wi(document,{contextmenu:Si,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(t){1!==t.which&&1!==t.button||(this._finish(),this._moved&&(this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(o(this._resetState,this),0),t=new R(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point)),this._map.fitBounds(t).fire("boxzoomend",{boxZoomBounds:t})))},_onKeyDown:function(t){27===t.keyCode&&(this._finish(),this._clearDeferredResetState(),this._resetState())}}),Oi.addInitHook("addHandler","boxZoom",X),Oi.mergeOptions({doubleClickZoom:!0}),_t=Q.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(t){var i=this._map,e=i.getZoom(),n=i.options.zoomDelta;e=t.originalEvent.shiftKey?e-n:e+n;"center"===i.options.doubleClickZoom?i.setZoom(e):i.setZoomAround(t.containerPoint,e)}});var We=(Oi.addInitHook("addHandler","doubleClickZoom",_t),Oi.mergeOptions({dragging:!0,inertia:!0,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0}),Q.extend({addHooks:function(){var t;this._draggable||(t=this._map,this._draggable=new Vi(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))),oi(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){si(this._map._container,"leaflet-grab"),si(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,i=this._map;i._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity?(t=N(this._map.options.maxBounds),this._offsetLimit=O(this._map.latLngToContainerPoint(t.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(t.getSouthEast()).multiplyBy(-1).add(this._map.getSize())),this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))):this._offsetLimit=null,i.fire("movestart").fire("dragstart"),i.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(t){var i,e;this._map.options.inertia&&(i=this._lastTime=+new Date,e=this._lastPos=this._draggable._absPos||this._draggable._newPos,this._positions.push(e),this._times.push(i),this._prunePositions(i)),this._map.fire("move",t).fire("drag",t)},_prunePositions:function(t){for(;1i.max.x&&(t.x=this._viscousLimit(t.x,i.max.x)),t.y>i.max.y&&(t.y=this._viscousLimit(t.y,i.max.y)),this._draggable._newPos=this._draggable._startPos.add(t))},_onPreDragWrap:function(){var t=this._worldWidth,i=Math.round(t/2),e=this._initialWorldOffset,n=((o=this._draggable._newPos.x)-i+e)%t+i-e,o=(o+i+e)%t-i-e;t=Math.abs(n+e)i.getMaxZoom()&&1Settings page to create and customise Shortcodes. -Version: 1.0.1 +Version: 1.0.2 Text Domain: inreach-mapshare Author: Joe Hawes Author URI: https://www.morehawes.co.uk/ @@ -50,7 +50,7 @@ 'plugin_slug' => $plugin_slug, 'plugin_text_domain' => $plugin_slug, 'plugin_name' => $plugin_name, - 'plugin_version' => '1.0.1', + 'plugin_version' => '1.0.2', 'settings_id' => 'inmap_settings', 'settings_default_tab' => 'joe-settings-tab-mapshare', 'site_url' => 'https://wordpress.org/plugins/' . $plugin_slug . '/', diff --git a/build/inreach-mapshare.pot b/build/inreach-mapshare.pot index 754b08a..61d274c 100644 --- a/build/inreach-mapshare.pot +++ b/build/inreach-mapshare.pot @@ -2,7 +2,7 @@ # This file is distributed under the same license as the inReach MapShare package. msgid "" msgstr "" -"Project-Id-Version: inReach MapShare 1.0.1\n" +"Project-Id-Version: inReach MapShare 1.0.2\n" "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/build\n" "POT-Creation-Date: 2022-08-29 20:49:10+00:00\n" "MIME-Version: 1.0\n" diff --git a/build/readme.txt b/build/readme.txt index b8c933d..674e213 100644 --- a/build/readme.txt +++ b/build/readme.txt @@ -4,7 +4,7 @@ Tags: inreach, mapshare, embed, map, share, location Requires at least: 4.6 Tested up to: 6.0 Requires PHP: 7.4 -Stable tag: 1.0.1 +Stable tag: 1.0.2 License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html @@ -88,10 +88,14 @@ This plugin requests data from your MapShare page and embeds it anywhere Shortco == Changelog == -= 1.0 = += 1.0.2 = -Initial plugin release. +Settings improvements. = 1.0.1 = -Plugin review improvements. \ No newline at end of file +Plugin review improvements. + += 1.0 = + +Initial plugin release. \ No newline at end of file diff --git a/inreach-mapshare.php b/inreach-mapshare.php index 9a30708..a62ca1e 100644 --- a/inreach-mapshare.php +++ b/inreach-mapshare.php @@ -4,7 +4,7 @@ Plugin Name: inReach MapShare Plugin URI: https://github.com/morehawes/inreach-mapshare Description: Display inReach MapShare data on your WordPress site. Visit the Settings page to create and customise Shortcodes. -Version: 1.0.1 +Version: 1.0.2 Text Domain: inreach-mapshare Author: Joe Hawes Author URI: https://www.morehawes.co.uk/ @@ -50,7 +50,7 @@ 'plugin_slug' => $plugin_slug, 'plugin_text_domain' => $plugin_slug, 'plugin_name' => $plugin_name, - 'plugin_version' => '1.0.1', + 'plugin_version' => '1.0.2', 'settings_id' => 'inmap_settings', 'settings_default_tab' => 'joe-settings-tab-mapshare', 'site_url' => 'https://wordpress.org/plugins/' . $plugin_slug . '/', diff --git a/inreach-mapshare.zip b/inreach-mapshare.zip index caeff42..296cc82 100644 Binary files a/inreach-mapshare.zip and b/inreach-mapshare.zip differ diff --git a/package.json b/package.json index f51d9c7..348c1dc 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,7 @@ "grunt": "^1.5.3", "grunt-cli": "^1.4.3", "grunt-contrib-compress": "^2.0.0", - "grunt-contrib-concat": "^1.0.1", + "grunt-contrib-concat": "^1.0.2", "grunt-contrib-copy": "^1.0.0", "grunt-contrib-cssmin": "^3.0.0", "grunt-contrib-less": "^2.0.0", diff --git a/readme.md b/readme.md index 153e501..a50ff43 100644 --- a/readme.md +++ b/readme.md @@ -4,7 +4,7 @@ **Requires at least:** 4.6 **Tested up to:** 6.0 **Requires PHP:** 7.4 -**Stable tag:** 1.0.1 +**Stable tag:** 1.0.2 **License:** GPLv2 or later **License URI:** http://www.gnu.org/licenses/gpl-2.0.html @@ -88,10 +88,14 @@ This plugin requests data from your MapShare page and embeds it anywhere Shortco ## Changelog ## -### 1.0 ### +### 1.0.2 ### -Initial plugin release. +Settings improvements. ### 1.0.1 ### -Plugin review improvements. \ No newline at end of file +Plugin review improvements. + +### 1.0 ### + +Initial plugin release. \ No newline at end of file diff --git a/readme.txt b/readme.txt index b8c933d..674e213 100644 --- a/readme.txt +++ b/readme.txt @@ -4,7 +4,7 @@ Tags: inreach, mapshare, embed, map, share, location Requires at least: 4.6 Tested up to: 6.0 Requires PHP: 7.4 -Stable tag: 1.0.1 +Stable tag: 1.0.2 License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html @@ -88,10 +88,14 @@ This plugin requests data from your MapShare page and embeds it anywhere Shortco == Changelog == -= 1.0 = += 1.0.2 = -Initial plugin release. +Settings improvements. = 1.0.1 = -Plugin review improvements. \ No newline at end of file +Plugin review improvements. + += 1.0 = + +Initial plugin release. \ No newline at end of file