Files
gb-cms/html/js/mapview.84a5b123.js
T
2025-08-26 17:36:04 +08:00

1 line
352 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
webpackJsonp([8],{"0JQW":function(t,e,n){e=t.exports=n("FZ+f")(!1),e.push([t.i,"#wrapper[data-v-14158b16]{width:100%}#wrapper #map[data-v-14158b16]{width:100%;height:100%}#wrapper #map .form-group.search[data-v-14158b16]{position:absolute;z-index:1000;top:15px;right:15px;width:200px}#wrapper #map .form-group.search .glyphicon-search[data-v-14158b16]:before{font-size:12px}",""])},"83i3":function(t,e,n){var i,o,r,s,a,l;!function(t,e){o=e,r={id:"screenfull",exports:{},loaded:!1},i="function"==typeof o?o.call(r.exports,n,r.exports,r):o,r.loaded=!0,void 0===i&&(i=r.exports)}("undefined"!=typeof self&&self,function(){"use strict";var t="undefined"!=typeof window&&void 0!==window.document?window.document:{},e=function(){for(var e,n=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],i=0,o=n.length,r={};i<o;i++)if((e=n[i])&&e[1]in t){for(i=0;i<e.length;i++)r[n[0][i]]=e[i];return r}return!1}(),n={change:e.fullscreenchange,error:e.fullscreenerror},i={request:function(n,i){return new Promise(function(o,r){var s=function(){this.off("change",s),o()}.bind(this);this.on("change",s),n=n||t.documentElement;var a=n[e.requestFullscreen](i);a instanceof Promise&&a.then(s).catch(r)}.bind(this))},exit:function(){return new Promise(function(n,i){if(!this.isFullscreen)return void n();var o=function(){this.off("change",o),n()}.bind(this);this.on("change",o);var r=t[e.exitFullscreen]();r instanceof Promise&&r.then(o).catch(i)}.bind(this))},toggle:function(t,e){return this.isFullscreen?this.exit():this.request(t,e)},onchange:function(t){this.on("change",t)},onerror:function(t){this.on("error",t)},on:function(e,i){var o=n[e];o&&t.addEventListener(o,i,!1)},off:function(e,i){var o=n[e];o&&t.removeEventListener(o,i,!1)},raw:e};return e?(Object.defineProperties(i,{isFullscreen:{get:function(){return Boolean(t[e.fullscreenElement])}},element:{enumerable:!0,get:function(){return t[e.fullscreenElement]}},isEnabled:{enumerable:!0,get:function(){return Boolean(t[e.fullscreenEnabled])}}}),i):{isEnabled:!1}}),function(o,r){a=[n("nrd6"),i],s=r,void 0!==(l="function"==typeof s?s.apply(e,a):s)&&(t.exports=l)}("undefined"!=typeof self&&self,function(t,e){"use strict";return t.Control.FullScreen=t.Control.extend({options:{position:"topleft",title:"Full Screen",titleCancel:"Exit Full Screen",forceSeparateButton:!1,forcePseudoFullscreen:!1,fullscreenElement:!1},_screenfull:e,onAdd:function(e){var n,i="leaflet-control-zoom-fullscreen",o="";return n=e.zoomControl&&!this.options.forceSeparateButton?e.zoomControl._container:t.DomUtil.create("div","leaflet-bar"),this.options.content?o=this.options.content:i+=" fullscreen-icon",this._createButton(this.options.title,i,o,n,this.toggleFullScreen,this),this._map.fullscreenControl=this,this._map.on("enterFullscreen exitFullscreen",this._toggleState,this),n},onRemove:function(){t.DomEvent.off(this.link,"click",t.DomEvent.stop).off(this.link,"click",this.toggleFullScreen,this),this._screenfull.isEnabled&&(t.DomEvent.off(this._container,this._screenfull.raw.fullscreenchange,t.DomEvent.stop).off(this._container,this._screenfull.raw.fullscreenchange,this._handleFullscreenChange,this),t.DomEvent.off(document,this._screenfull.raw.fullscreenchange,t.DomEvent.stop).off(document,this._screenfull.raw.fullscreenchange,this._handleFullscreenChange,this))},_createButton:function(e,n,i,o,r,s){return this.link=t.DomUtil.create("a",n,o),this.link.href="#",this.link.title=e,this.link.innerHTML=i,this.link.setAttribute("role","button"),this.link.setAttribute("aria-label",e),L.DomEvent.disableClickPropagation(o),t.DomEvent.on(this.link,"click",t.DomEvent.stop).on(this.link,"click",r,s),this._screenfull.isEnabled&&(t.DomEvent.on(o,this._screenfull.raw.fullscreenchange,t.DomEvent.stop).on(o,this._screenfull.raw.fullscreenchange,this._handleFullscreenChange,s),t.DomEvent.on(document,this._screenfull.raw.fullscreenchange,t.DomEvent.stop).on(document,this._screenfull.raw.fullscreenchange,this._handleFullscreenChange,s)),this.link},toggleFullScreen:function(){var e=this._map;e._exitFired=!1,e._isFullscreen?(this._screenfull.isEnabled&&!this.options.forcePseudoFullscreen?this._screenfull.exit():(t.DomUtil.removeClass(this.options.fullscreenElement?this.options.fullscreenElement:e._container,"leaflet-pseudo-fullscreen"),e.invalidateSize()),e.fire("exitFullscreen"),e._exitFired=!0,e._isFullscreen=!1):(this._screenfull.isEnabled&&!this.options.forcePseudoFullscreen?this._screenfull.request(this.options.fullscreenElement?this.options.fullscreenElement:e._container):(t.DomUtil.addClass(this.options.fullscreenElement?this.options.fullscreenElement:e._container,"leaflet-pseudo-fullscreen"),e.invalidateSize()),e.fire("enterFullscreen"),e._isFullscreen=!0)},_toggleState:function(){this.link.title=this._map._isFullscreen?this.options.title:this.options.titleCancel,this._map._isFullscreen?L.DomUtil.removeClass(this.link,"leaflet-fullscreen-on"):L.DomUtil.addClass(this.link,"leaflet-fullscreen-on")},_handleFullscreenChange:function(){var t=this._map;t.invalidateSize(),this._screenfull.isFullscreen||t._exitFired||!t._isFullscreen||(t.fire("exitFullscreen"),t._exitFired=!0,t._isFullscreen=!1)}}),t.Map.include({toggleFullscreen:function(){this.fullscreenControl.toggleFullScreen()}}),t.Map.addInitHook(function(){this.options.fullscreenControl&&this.addControl(t.control.fullscreen(this.options.fullscreenControlOptions))}),t.control.fullscreen=function(e){return new t.Control.FullScreen(e)},{leaflet:t,screenfull:e}})},"Op/O":function(t,e,n){var i,o,r;!function(s){o=[n("nrd6")],i=s,void 0!==(r="function"==typeof i?i.apply(e,o):i)&&(t.exports=r)}(function(t){t.Map.mergeOptions({contextmenuItems:[]}),t.Map.ContextMenu=t.Handler.extend({_touchstart:t.Browser.msPointer?"MSPointerDown":t.Browser.pointer?"pointerdown":"touchstart",statics:{BASE_CLS:"leaflet-contextmenu"},initialize:function(e){t.Handler.prototype.initialize.call(this,e),this._items=[],this._visible=!1;var n=this._container=t.DomUtil.create("div",t.Map.ContextMenu.BASE_CLS,e._container);n.style.zIndex=1e4,n.style.position="absolute",e.options.contextmenuWidth&&(n.style.width=e.options.contextmenuWidth+"px"),this._createItems(),t.DomEvent.on(n,"click",t.DomEvent.stop).on(n,"mousedown",t.DomEvent.stop).on(n,"dblclick",t.DomEvent.stop).on(n,"contextmenu",t.DomEvent.stop)},addHooks:function(){var e=this._map.getContainer();t.DomEvent.on(e,"mouseleave",this._hide,this).on(document,"keydown",this._onKeyDown,this),t.Browser.touch&&t.DomEvent.on(document,this._touchstart,this._hide,this),this._map.on({contextmenu:this._show,mousedown:this._hide,zoomstart:this._hide},this)},removeHooks:function(){var e=this._map.getContainer();t.DomEvent.off(e,"mouseleave",this._hide,this).off(document,"keydown",this._onKeyDown,this),t.Browser.touch&&t.DomEvent.off(document,this._touchstart,this._hide,this),this._map.off({contextmenu:this._show,mousedown:this._hide,zoomstart:this._hide},this)},showAt:function(e,n){e instanceof t.LatLng&&(e=this._map.latLngToContainerPoint(e)),this._showAtPoint(e,n)},hide:function(){this._hide()},addItem:function(t){return this.insertItem(t)},insertItem:function(t,e){e=void 0!==e?e:this._items.length;var n=this._createItem(this._container,t,e);return this._items.push(n),this._sizeChanged=!0,this._map.fire("contextmenu.additem",{contextmenu:this,el:n.el,index:e}),n.el},removeItem:function(e){var n=this._container;return isNaN(e)||(e=n.children[e]),e?(this._removeItem(t.Util.stamp(e)),this._sizeChanged=!0,this._map.fire("contextmenu.removeitem",{contextmenu:this,el:e}),e):null},removeAllItems:function(){for(var e,n=this._container.children;n.length;)e=n[0],this._removeItem(t.Util.stamp(e));return n},hideAllItems:function(){var t,e,n;for(e=0,n=this._items.length;e<n;e++)t=this._items[e],t.el.style.display="none"},showAllItems:function(){var t,e,n;for(e=0,n=this._items.length;e<n;e++)t=this._items[e],t.el.style.display=""},setDisabled:function(e,n){var i=this._container,o=t.Map.ContextMenu.BASE_CLS+"-item";isNaN(e)||(e=i.children[e]),e&&t.DomUtil.hasClass(e,o)&&(n?(t.DomUtil.addClass(e,o+"-disabled"),this._map.fire("contextmenu.disableitem",{contextmenu:this,el:e})):(t.DomUtil.removeClass(e,o+"-disabled"),this._map.fire("contextmenu.enableitem",{contextmenu:this,el:e})))},isVisible:function(){return this._visible},_createItems:function(){var t,e,n=this._map.options.contextmenuItems;for(t=0,e=n.length;t<e;t++)this._items.push(this._createItem(this._container,n[t]))},_createItem:function(e,n,i){if(n.separator||"-"===n)return this._createSeparator(e,i);var o=t.Map.ContextMenu.BASE_CLS+"-item",r=n.disabled?o+" "+o+"-disabled":o,s=this._insertElementAt("a",r,e,i),a=this._createEventHandler(s,n.callback,n.context,n.hideOnSelect),l=this._getIcon(n),u=this._getIconCls(n),c="";return l?c='<img class="'+t.Map.ContextMenu.BASE_CLS+'-icon" src="'+l+'"/>':u&&(c='<span class="'+t.Map.ContextMenu.BASE_CLS+"-icon "+u+'"></span>'),s.innerHTML=c+n.text,s.href="#",t.DomEvent.on(s,"mouseover",this._onItemMouseOver,this).on(s,"mouseout",this._onItemMouseOut,this).on(s,"mousedown",t.DomEvent.stopPropagation).on(s,"click",a),t.Browser.touch&&t.DomEvent.on(s,this._touchstart,t.DomEvent.stopPropagation),t.Browser.pointer||t.DomEvent.on(s,"click",this._onItemMouseOut,this),{id:t.Util.stamp(s),el:s,callback:a}},_removeItem:function(e){var n,i,o,r,s;for(o=0,r=this._items.length;o<r;o++)if(n=this._items[o],n.id===e)return i=n.el,s=n.callback,s&&(t.DomEvent.off(i,"mouseover",this._onItemMouseOver,this).off(i,"mouseover",this._onItemMouseOut,this).off(i,"mousedown",t.DomEvent.stopPropagation).off(i,"click",s),t.Browser.touch&&t.DomEvent.off(i,this._touchstart,t.DomEvent.stopPropagation),t.Browser.pointer||t.DomEvent.on(i,"click",this._onItemMouseOut,this)),this._container.removeChild(i),this._items.splice(o,1),n;return null},_createSeparator:function(e,n){var i=this._insertElementAt("div",t.Map.ContextMenu.BASE_CLS+"-separator",e,n);return{id:t.Util.stamp(i),el:i}},_createEventHandler:function(e,n,i,o){var r=this,s=(this._map,t.Map.ContextMenu.BASE_CLS+"-item-disabled"),o=void 0===o||o;return function(a){if(!t.DomUtil.hasClass(e,s)){var l=r._map,u=r._showLocation.containerPoint,c=l.containerPointToLayerPoint(u),h=l.layerPointToLatLng(c),d=r._showLocation.relatedTarget,f={containerPoint:u,layerPoint:c,latlng:h,relatedTarget:d};o&&r._hide(),n&&n.call(i||l,f),r._map.fire("contextmenu.select",{contextmenu:r,el:e})}}},_insertElementAt:function(t,e,n,i){var o,r=document.createElement(t);return r.className=e,void 0!==i&&(o=n.children[i]),o?n.insertBefore(r,o):n.appendChild(r),r},_show:function(t){this._showAtPoint(t.containerPoint,t)},_showAtPoint:function(e,n){if(this._items.length){var i=(this._map,t.extend(n||{},{contextmenu:this}));this._showLocation={containerPoint:e},n&&n.relatedTarget&&(this._showLocation.relatedTarget=n.relatedTarget),this._setPosition(e),this._visible||(this._container.style.display="block",this._visible=!0),this._map.fire("contextmenu.show",i)}},_hide:function(){this._visible&&(this._visible=!1,this._container.style.display="none",this._map.fire("contextmenu.hide",{contextmenu:this}))},_getIcon:function(e){return t.Browser.retina&&e.retinaIcon||e.icon},_getIconCls:function(e){return t.Browser.retina&&e.retinaIconCls||e.iconCls},_setPosition:function(e){var n,i=this._map.getSize(),o=this._container,r=this._getElementSize(o);this._map.options.contextmenuAnchor&&(n=t.point(this._map.options.contextmenuAnchor),e=e.add(n)),o._leaflet_pos=e,e.x+r.x>i.x?(o.style.left="auto",o.style.right=Math.min(Math.max(i.x-e.x,0),i.x-r.x-1)+"px"):(o.style.left=Math.max(e.x,0)+"px",o.style.right="auto"),e.y+r.y>i.y?(o.style.top="auto",o.style.bottom=Math.min(Math.max(i.y-e.y,0),i.y-r.y-1)+"px"):(o.style.top=Math.max(e.y,0)+"px",o.style.bottom="auto")},_getElementSize:function(t){var e=this._size,n=t.style.display;return e&&!this._sizeChanged||(e={},t.style.left="-999999px",t.style.right="auto",t.style.display="block",e.x=t.offsetWidth,e.y=t.offsetHeight,t.style.left="auto",t.style.display=n,this._sizeChanged=!1),e},_onKeyDown:function(t){27===t.keyCode&&this._hide()},_onItemMouseOver:function(e){t.DomUtil.addClass(e.target||e.srcElement,"over")},_onItemMouseOut:function(e){t.DomUtil.removeClass(e.target||e.srcElement,"over")}}),t.Map.addInitHook("addHandler","contextmenu",t.Map.ContextMenu),t.Mixin.ContextMenu={bindContextMenu:function(e){return t.setOptions(this,e),this._initContextMenu(),this},unbindContextMenu:function(){return this.off("contextmenu",this._showContextMenu,this),this},addContextMenuItem:function(t){this.options.contextmenuItems.push(t)},removeContextMenuItemWithIndex:function(t){for(var e=[],n=0;n<this.options.contextmenuItems.length;n++)this.options.contextmenuItems[n].index==t&&e.push(n);for(var i=e.pop();void 0!==i;)this.options.contextmenuItems.splice(i,1),i=e.pop()},replaceContextMenuItem:function(t){this.removeContextMenuItemWithIndex(t.index),this.addContextMenuItem(t)},_initContextMenu:function(){this._items=[],this.on("contextmenu",this._showContextMenu,this)},_showContextMenu:function(e){var n,i,o,r,s;if(this._map.contextmenu){for(i=t.extend({relatedTarget:this},e),o=this._map.mouseEventToContainerPoint(e.originalEvent),this.options.contextmenuInheritItems||this._map.contextmenu.hideAllItems(),r=0,s=this.options.contextmenuItems.length;r<s;r++)n=this.options.contextmenuItems[r],this._items.push(this._map.contextmenu.insertItem(n,n.index));this._map.once("contextmenu.hide",this._hideContextMenu,this),this._map.contextmenu.showAt(o,i)}},_hideContextMenu:function(){var t,e;for(t=0,e=this._items.length;t<e;t++)this._map.contextmenu.removeItem(this._items[t]);this._items.length=0,this.options.contextmenuInheritItems||this._map.contextmenu.showAllItems()}};var e,n,i,o=[t.Marker,t.Path],r={contextmenu:!1,contextmenuItems:[],contextmenuInheritItems:!0};for(n=0,i=o.length;n<i;n++)e=o[n],e.prototype.options?e.mergeOptions(r):e.prototype.options=r,e.addInitHook(function(){this.options.contextmenu&&this._initContextMenu()}),e.include(t.Mixin.ContextMenu);return t.Map.ContextMenu})},Pm8m:function(t,e,n){"use strict";var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],style:"height:"+this.pageHeight+"px;min-height:500px;",attrs:{id:"wrapper"}},[n("div",{attrs:{id:"map"}},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.bShowSearch,expression:"bShowSearch"}],staticClass:"form-group has-feedback search"},[n("input",{directives:[{name:"model",rawName:"v-model.trim",value:t.q,expression:"q",modifiers:{trim:!0}}],staticClass:"form-control",attrs:{type:"text",name:"q",autocomplete:"off",placeholder:"搜索"},domProps:{value:t.q},on:{mousedown:function(t){t.stopPropagation()},touchstart:function(t){t.stopPropagation()},dblclick:function(t){t.stopPropagation()},contextmenu:function(t){t.stopPropagation()},input:function(e){e.target.composing||(t.q=e.target.value.trim())},blur:function(e){t.$forceUpdate()}}}),t._v(" "),n("span",{staticClass:"glyphicon glyphicon-search form-control-feedback text-gray"})])]),t._v(" "),n("SimpleVideoDlg",{ref:"videoDlg",attrs:{id:"video-dlg",ptz:"",talk:"",serverInfo:t.serverInfo,userInfo:t.userInfo}}),t._v(" "),n("el-dialog",{attrs:{title:t.msgDlgTitle,visible:t.bMsgDlg,"modal-append-to-body":!1,"lock-scroll":!1,width:"450px",top:"30vh"},on:{"update:visible":function(e){t.bMsgDlg=e}}},[n("span",{domProps:{innerHTML:t._s(t.msgDlgText)}}),t._v(" "),n("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{attrs:{type:"primary",size:"small"},on:{click:t.copyMsgText}},[t._v("一键复制")])],1)]),t._v(" "),n("el-dialog",{attrs:{title:"设置",visible:t.bSettingsDlg,"modal-append-to-body":!1,"lock-scroll":!1,width:"450px",top:"30vh"},on:{"update:visible":function(e){t.bSettingsDlg=e}}},[n("div",{staticClass:"form-horizontal"},[n("div",{staticClass:"form-group"},[n("label",{staticClass:"col-sm-4 control-label",attrs:{for:"input-refresh-interval"}},[t._v("\r\n 自动刷新\r\n ")]),t._v(" "),n("div",{staticClass:"col-sm-7"},[n("el-input-number",{attrs:{id:"input-refresh-interval",min:0,step:5,size:"small"},model:{value:t.settingsForm.refreshInterval,callback:function(e){t.$set(t.settingsForm,"refreshInterval",t._n(e))},expression:"settingsForm.refreshInterval"}}),t._v(" "),t.settingsForm.refreshInterval>0?n("span",{staticClass:"text-gray"},[t._v("  秒")]):n("span",{staticClass:"text-gray"},[t._v("  不刷新")])],1)]),t._v(" "),n("div",{staticClass:"form-group"},[n("label",{staticClass:"col-sm-4 control-label",attrs:{for:"input-tooltip"}},[t._v("\r\n 显示浮窗\r\n ")]),t._v(" "),n("div",{staticClass:"col-sm-7"},[n("select",{directives:[{name:"model",rawName:"v-model.trim",value:t.settingsForm.tooltip,expression:"settingsForm.tooltip",modifiers:{trim:!0}}],staticClass:"form-control",attrs:{id:"input-tooltip",name:"tooltip"},on:{change:function(e){var n=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.$set(t.settingsForm,"tooltip",e.target.multiple?n:n[0])}}},[n("option",{attrs:{value:""}},[t._v("不显示")]),t._v(" "),n("option",{attrs:{value:"permanent"}},[t._v("始终显示")]),t._v(" "),n("option",{attrs:{value:"hover"}},[t._v("鼠标悬停显示")])])])]),t._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:!!t.settingsForm.tooltip,expression:"!!settingsForm.tooltip"}],staticClass:"form-group"},[n("label",{staticClass:"col-sm-4 control-label",attrs:{for:"input-sticky"}},[t._v("\r\n 粘性浮窗\r\n ")]),t._v(" "),n("div",{staticClass:"col-sm-7"},[n("select",{directives:[{name:"model",rawName:"v-model.trim",value:t.settingsForm.sticky,expression:"settingsForm.sticky",modifiers:{trim:!0}}],staticClass:"form-control",attrs:{id:"input-sticky",name:"sticky"},on:{change:function(e){var n=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.$set(t.settingsForm,"sticky",e.target.multiple?n:n[0])}}},[n("option",{domProps:{value:!1}},[t._v("浮窗位置固定")]),t._v(" "),n("option",{domProps:{value:!0}},[t._v("浮窗跟随鼠标")])])])]),t._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:!!t.settingsForm.tooltip,expression:"!!settingsForm.tooltip"}],staticClass:"form-group"},[n("label",{staticClass:"col-sm-4 control-label",attrs:{for:"input-snap-size"}},[t._v("\r\n 快照大小\r\n ")]),t._v(" "),n("div",{staticClass:"col-sm-7"},[n("el-radio-group",{attrs:{size:"mini"},model:{value:t.settingsForm.snapSize,callback:function(e){t.$set(t.settingsForm,"snapSize","string"==typeof e?e.trim():e)},expression:"settingsForm.snapSize"}},[n("el-radio-button",{attrs:{label:""}},[t._v("无")]),t._v(" "),n("el-radio-button",{attrs:{label:"small"}},[t._v("小")]),t._v(" "),n("el-radio-button",{attrs:{label:"medium"}},[t._v("中")]),t._v(" "),n("el-radio-button",{attrs:{label:"large"}},[t._v("大")])],1)],1)])])])],1)},o=[],r={render:i,staticRenderFns:o};e.a=r},Q2Lj:function(t,e,n){"use strict";function i(t){n("rzCG")}Object.defineProperty(e,"__esModule",{value:!0});var o=n("Yr3d"),r=n.n(o);for(var s in o)["default","default"].indexOf(s)<0&&function(t){n.d(e,t,function(){return o[t]})}(s);var a=n("Pm8m"),l=n("VU/8"),u=i,c=l(r.a,a.a,!1,u,"data-v-14158b16",null);e.default=c.exports},QEnu:function(t,e,n){"use strict";function i(t){n("eHB0")}Object.defineProperty(e,"__esModule",{value:!0});var o=n("kOR3"),r=n.n(o);for(var s in o)["default","default"].indexOf(s)<0&&function(t){n.d(e,t,function(){return o[t]})}(s);var a=n("ee0/"),l=n("VU/8"),u=i,c=l(r.a,a.a,!1,u,"data-v-493cb24e",null);e.default=c.exports},Yr3d:function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}function o(t){return function(){var e=t.apply(this,arguments);return new Promise(function(t,n){function i(o,r){try{var s=e[o](r),a=s.value}catch(t){return void n(t)}if(!s.done)return Promise.resolve(a).then(function(t){i("next",t)},function(t){i("throw",t)});t(a)}return i("next")})}}Object.defineProperty(e,"__esModule",{value:!0});var r=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t};n("nrd6"),n("83i3"),n("Op/O");var s=n("NYxO"),a=n("QEnu"),l=i(a),u=n("0iPh"),c=i(u),h=n("M4fF"),d=i(h),f=L.icon({iconUrl:"/images/camera-on.png",iconSize:[30,30],iconAnchor:[10,30]}),p=L.icon({iconUrl:"/images/camera-off.png",iconSize:[30,30],iconAnchor:[10,30]}),v=(L.icon({iconUrl:"/images/camera-red-on.png",iconSize:[30,30],iconAnchor:[10,30]}),L.icon({iconUrl:"/images/camera-red-off.png",iconSize:[30,30],iconAnchor:[10,30]}),L.icon({iconUrl:"/images/dome-on.png",iconSize:[30,30],iconAnchor:[10,30]}),L.icon({iconUrl:"/images/dome-off.png",iconSize:[30,30],iconAnchor:[10,30]}),L.icon({iconUrl:"/images/dome-red-on.png",iconSize:[30,30],iconAnchor:[10,30]}),L.icon({iconUrl:"/images/dome-red-off.png",iconSize:[30,30],iconAnchor:[10,30]}),[31.82,117.22]);e.default={components:{SimpleVideoDlg:l.default},data:function(){return{q:"",pageHeight:0,loading:!1,bShowSearch:!1,map:null,center:v,zoom:8,minZoom:8,maxZoom:9,markerZoom:9,attribution:"",attributionPrefix:"<a href='//www.liveqing.com' target='_blank'>LiveQing</a>",channels:[],channelMarkers:[],msgDlgTitle:"提示",msgDlgText:"",bMsgDlg:!1,bSettingsDlg:!1,settingsData:"",settingsForm:{tooltip:"hover",snapSize:"medium",sticky:!1,refreshInterval:0},timer:0}},beforeDestroy:function(){this.timer&&(clearTimeout(this.timer),this.timer=0),this.map&&(this.map.remove(),this.map=null),(0,c.default)(window).off("resize",this.initHeight)},created:function(){this.initHeight()},mounted:function(){var t=this;if(localStorage.livegbs_map_settings){this.settingsData=localStorage.livegbs_map_settings;try{var e=JSON.parse(this.settingsData);Object.assign(this.settingsForm,e)}catch(t){console.log("load livegbs_map_settings error",t)}}else this.settingsData=JSON.stringify(this.settingsForm);var n=this.serverInfo.MapInfo||{};if(n.Center&&n.Center.length>=2&&(this.center=[n.Center[1],n.Center[0]]),this.zoom=n.Zoom||8,this.minZoom=n.MinZoom||8,this.maxZoom=n.MaxZoom||9,this.markerZoom=n.MarkerZoom||9,this.attribution=n.Attribution||"",this.attributionPrefix=n.AttributionPrefix||"<a href='//www.liveqing.com' target='_blank'>LiveQing</a>",this.map=L.map("map",{fullscreenControl:!0,fullscreenControlOptions:{fullscreenElement:this.$el},contextmenu:!0,contextmenuItems:[{text:"显示坐标",callback:this.showCoordinates}],center:this.center,zoom:this.zoom,attributionControl:!!this.attribution}),L.tileLayer("/map/{z}/{x}/{y}.png",{minZoom:this.minZoom,maxZoom:this.maxZoom,attribution:this.attribution}).addTo(this.map),this.map.attributionControl&&this.attributionPrefix&&this.map.attributionControl.setPrefix(this.attributionPrefix),this.map.zoomControl){var i=L.DomUtil.create("a","leaflet-control-settings text-bold");i.innerHTML="⚙️",i.title="设置",i.style="font-size: 16px;",i.setAttribute("role","button"),i.onclick=function(){t.bSettingsDlg=!t.bSettingsDlg},this.map.zoomControl.getContainer().appendChild(i)}this.bShowSearch=this.zoom>=this.markerZoom,this.map.on("move",function(e){if(t.map.getZoom()<t.markerZoom)return t.bShowSearch=!1,void(t.channels.length>0&&(t.channels=[],t.refreshChannelMarkers()));t.bShowSearch=!0,t.doDelaySearch()}).whenReady(function(){t.map.getZoom()>=t.markerZoom&&t.getChannels()}),(0,c.default)(window).on("resize",this.initHeight)},computed:r({},(0,s.mapState)(["serverInfo","userInfo"])),watch:{q:function(t,e){this.doDelaySearch()},bSettingsDlg:function(t,e){if(t)this.settingsData=JSON.stringify(this.settingsForm);else{var n=JSON.stringify(this.settingsForm);this.settingsData!=n&&(localStorage.livegbs_map_settings=n,this.refreshChannelMarkers(!0))}}},methods:{doDelaySearch:d.default.debounce(function(){this.getChannels()},800),getChannels:function(){var t=this;if(this.map)return this.map.getZoom()<this.markerZoom?void(this.channels.length>0&&(this.channels=[],this.refreshChannelMarkers())):void c.default.get("/api/v1/device/channellist",{channel_type:"device",bounds:this.map.getBounds().toBBoxString(),q:this.q}).then(function(e){t.channels=e.ChannelList||[],t.refreshChannelMarkers()})},refreshChannelMarkers:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this.map){var n=this.channels.reduce(function(t,e){return t[e.DeviceID+"_"+e.ID]=e,t},{});this.channelMarkers=this.channelMarkers.filter(function(i){var o=n[i.ID];if(o&&!e){var r=o.CustomLatitude||o.Latitude,s=o.CustomLongitude||o.Longitude;if(!(i.Lat!=r||i.Lng!=s||i.Status!=o.Status||t.settingsForm.tooltip&&t.settingsForm.snapSize&&i.SnapURL!=o.SnapURL))return delete n[i.ID],!0}return i.remove(),!1});for(var i in n){var o=n[i],r=o.CustomLatitude||o.Latitude,s=o.CustomLongitude||o.Longitude,a=L.marker([r,s],{icon:"ON"==o.Status?f:p,title:this.settingsForm.tooltip?"":(o.CustomName||o.Name||o.ID)+" | "+("ON"==o.Status?"在线":"离线"),contextmenu:!0,contextmenuItems:[{text:"设备信息",callback:this.showChannelInfo}]});if(a.ID=i,a.Lat=r,a.Lng=s,a.Serial=o.DeviceID,a.Code=o.ID,a.Status=o.Status,a.ChannelInfo=o,a.Title=o.CustomName||o.Name||o.ID,a.PTZType=o.CustomPTZType||o.PTZType||0,a.SnapURL=o.SnapURL||"",this.settingsForm.tooltip){var l='<span style="font-size:12px;">'+a.Title+"</span>",u=0,c=0;switch(this.settingsForm.snapSize){case"small":u=70,c=40;break;case"medium":u=144,c=81;break;case"large":u=288,c=162}u>0&&c>0&&(l&&(l+="<br>"),l+='<img src="'+a.SnapURL+'" width="'+u+'" height="'+c+'" onerror="this.src=\'/images/default_snap.png\';"/>'),a.bindTooltip(l,{direction:"top",offset:[0,-25],opacity:1,className:"tooltip-snap",sticky:this.settingsForm.sticky,permanent:"permanent"==this.settingsForm.tooltip})}"ON"==o.Status?a.on("click",this.onChannelMarkerClick):a.on("dblclick",this.onChannelMarkerClick),a.addTo(this.map),this.channelMarkers.push(a)}this.timer&&(clearTimeout(this.timer),this.timer=0),this.settingsForm.refreshInterval>0&&(this.timer=setTimeout(function(){t.getChannels()},1e3*this.settingsForm.refreshInterval))}},onChannelMarkerClick:function(t){var e=this,n=t.sourceTarget;if(n){var i=n.ChannelInfo;i&&(this.loading=!0,c.default.ajax({method:"POST",url:"/api/v1/stream/start",global:!1,data:{serial:i.DeviceID,code:i.ID}}).then(function(t){e.$refs.videoDlg.play(i.DeviceID,i.ID,t)}).fail(function(t){var n="加载视频失败";"ON"!=i.Status?n="设备离线":t&&(n=t.status+" "+t.responseText),e.$refs.videoDlg.play(i.DeviceID,i.ID,{ChannelName:i.CustomName||i.Name,Message:n})}).always(function(){e.loading=!1}))}},initHeight:function(){this.pageHeight=window.innerHeight,"number"!=typeof this.pageWidth&&("CSS1Compat"==document.compatMode?this.pageHeight=document.documentElement.clientHeight:this.pageHeight=document.body.clientHeight),this.pageHeight=this.pageHeight-91},showCoordinates:function(t){this.showMsgDlg("坐标(经,纬)",parseFloat(t.latlng.lng.toFixed(5))+","+parseFloat(t.latlng.lat.toFixed(5)))},showChannelInfo:function(t){var e=t.relatedTarget,n="编号: "+e.ID+"<br>";n+="名称: "+e.Title+"<br>",n+="经纬: "+parseFloat(e.Lng.toFixed(5))+","+parseFloat(e.Lat.toFixed(5)),this.showMsgDlg("设备信息",n)},showMsgDlg:function(t,e){this.msgDlgTitle=t,this.msgDlgText=e,this.bMsgDlg=!0},copyMsgText:function(){this.copy(this.msgDlgText.replaceAll("<br>","\r\n")),this.bMsgDlg=!1},centerHere:function(t){this.map.panTo(t.latlng)},copy:function(t){var e=this;return o(regeneratorRuntime.mark(function n(){var i;return regeneratorRuntime.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,i=document.createElement("textarea"),i.value=t,i.style.position="absolute",i.style.opacity=0,i.style.left="-999999px",i.style.top="-999999px",e.$el.appendChild(i),i.focus(),i.select(),n.next=12,new Promise(function(t,e){document.execCommand("copy")?t():e(),i.remove()});case 12:e.$message.success("复制成功!"),n.next=27;break;case 15:return n.prev=15,n.t0=n.catch(0),n.prev=17,n.next=20,navigator.clipboard.writeText(t);case 20:e.$message.success("复制成功!!"),n.next=27;break;case 23:n.prev=23,n.t1=n.catch(17),console.log(n.t0,n.t1),e.$message.error("复制失败",n.t0,n.t1);case 27:case"end":return n.stop()}},n,e,[[0,15],[17,23]])}))()}}}},eAMf:function(t,e,n){!function(e,n){t.exports=n()}(window,function(){return function(t){function e(i){if(n[i])return n[i].exports;var o=n[i]={i:i,l:!1,exports:{}};return t[i].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var n={};return e.m=t,e.c=n,e.d=function(t,n,i){e.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:i})},e.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},e.t=function(t,n){if(1&n&&(t=e(t)),8&n)return t;if(4&n&&"object"==typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(e.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var o in t)e.d(i,o,function(e){return t[e]}.bind(null,o));return i},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=0)}({0:function(t,e,n){t.exports=n("qtAY")},"8MIm":function(t,e,n){(t.exports=n("I1BE")(void 0)).push([t.i,'.video-js .vjs-big-play-button .vjs-icon-placeholder:before,.video-js .vjs-modal-dialog,.vjs-button>.vjs-icon-placeholder:before,.vjs-modal-dialog .vjs-modal-dialog-content{position:absolute;top:0;left:0;width:100%;height:100%}.video-js .vjs-big-play-button .vjs-icon-placeholder:before,.vjs-button>.vjs-icon-placeholder:before{text-align:center}@font-face{font-family:VideoJS;src:url(data:application/font-woff;charset=utf-8;base64,d09GRgABAAAAABDkAAsAAAAAG6gAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABHU1VCAAABCAAAADsAAABUIIslek9TLzIAAAFEAAAAPgAAAFZRiV3hY21hcAAAAYQAAADaAAADPv749/pnbHlmAAACYAAAC3AAABHQZg6OcWhlYWQAAA3QAAAAKwAAADYZw251aGhlYQAADfwAAAAdAAAAJA+RCLFobXR4AAAOHAAAABMAAACM744AAGxvY2EAAA4wAAAASAAAAEhF6kqubWF4cAAADngAAAAfAAAAIAE0AIFuYW1lAAAOmAAAASUAAAIK1cf1oHBvc3QAAA/AAAABJAAAAdPExYuNeJxjYGRgYOBiMGCwY2BycfMJYeDLSSzJY5BiYGGAAJA8MpsxJzM9kYEDxgPKsYBpDiBmg4gCACY7BUgAeJxjYGS7wTiBgZWBgaWQ5RkDA8MvCM0cwxDOeI6BgYmBlZkBKwhIc01hcPjI+FGJHcRdyA4RZgQRADK3CxEAAHic7dFZbsMgAEXRS0ycyZnnOeG7y+qC8pU1dHusIOXxuoxaOlwZYWQB0Aea4quIEN4E9LzKbKjzDeM6H/mua6Lmc/p8yhg0lvdYx15ZG8uOLQOGjMp3EzqmzJizYMmKNRu27Nhz4MiJMxeu3Ljz4Ekqm7T8P52G8PP3lnTOVk++Z6iN6QZzNN1F7ptuN7eGOjDUoaGODHVsuvU8MdTO9Hd5aqgzQ50b6sJQl4a6MtS1oW4MdWuoO0PdG+rBUI+GejLUs6FeDPVqqDdDvRvqw1CfhpqM9At0iFLaAAB4nJ1YDXBTVRZ+5/22TUlJ8we0pHlJm7RJf5O8F2j6EymlSPkpxaL8U2xpa3DKj0CBhc2IW4eWKSokIoLsuMqssM64f+jA4HSdWXXXscBq67IOs3FXZ1ZYWVyRFdo899yXtIBQZ90k7717zz3v3HPPOfd854YCCj9cL9dL0RQFOqCbGJnrHb5EayiKIWN8iA/hWBblo6hUWm8TtCDwE80WMJus/irwyxOdxeB0MDb14VNJHnXYoLLSl6FfCUYO9nYPTA8Epg9090LprfbBbZ2hY0UlJUXHQp3/vtWkS6EBv8+rPMq5u9692f/dNxJNiqwC1xPE9TCUgCsSdQWgE3XQD25lkG4CN2xmTcOXWBOyser6RN6KnGbKSbmQ3+d0OI1m2W8QzLLkI2sykrWAgJJEtA8vGGW/2Q+CmT3n8zS9wZwu2DCvtuZKZN3xkrLh36yCZuUomQSqGpY8t/25VfHVhw8z4ebGBtfLb0ya9PCaDc+8dGTvk2dsh6z7WzvowlXKUSWo9MJ15a3KrEP2loOr2Ojhw6iW6hf2BDdEccQvZGpaAy7YovSwq8kr7HGllxpd71rkS6G0Sf11sl9OvMK1+jwPPODxjUwkOim9CU3ix1wNjXDfmJSEn618Bs6lpWwUpU+8PCqLMY650zjq8VhCIP17NEKTx3eaLL+s5Pi6yJWaWjTHLR1jYzPSV9VF/6Ojdb/1kO3Mk3uhHC0x6gc1BjlKQ+nQFxTYdaJkZ7ySVxLBbhR1dsboNXp1tCYKW2LRaEzpYcIx2BKNxaL0ZaUnSqfFoiNhHKR/GkX6PWUSAaJelQaqZL1EpoHNsajSEyPSoJ9IjhIxTdjHLmwZvhRDOiFTY/YeQnvrVZmiTQtGncECXtFTBZLOVwwMRgoXHAkXzMzPn1nAJJ8jYSbMDaqN2waGLzNhih/bZynUBMpIWSg7VYi7DRx2m8ALkIdRCJwI6ArJx2EI8kaDWeTQKeAFk9fjl/1AvwktjQ1P7NjyMGQyfd4vjipX6M/i52D7Cq80kqlcxEcGXRr/FEcgs0u5uGgB4VWuMFfpdn2Re6Hi3PqzmxWKsz6+ae2Pn9hXXw/fqM859UiGC0oKYYILJBqJrsn1Z1E5qOs9rQCiUQRREjm8yJcbHF5cUJufX1vAHlefw0XgUoboS3ETfQlTxBC4SOtuE8VPRJTBSCQSjZCpk7Gqzu+masaZ2y7Zjehho4F3g82BNDkAHpORG4+OCS+f6JTPmtRn/PH1kch6d04sp7AQb25aQ/pqUyXeQ8vrebG8OYQdXOQ+585u0sdW9rqalzRURiJ+9F4MweRFrKUjl1GUYhH1A27WOHw5cTFSFPMo9EeUIGnQTZHIaJ7AHLaOKsOODaNF9jkBjYG2QEsQ2xjMUAx2bBEbeTBWMHwskBjngq56S/yfgkBnWBa4K9sqKtq2t1UI8S9He5XuBRbawAdatrQEAi30Aks2+LM8WeCbalVZkWNylvJ+dqJnzVb+OHlSoKW8nPCP7Rd+CcZ2DdWAGqJ2CBFOphgywFFCFBNtfAbGtNPBCwxvygHeYMZMY9ZboBqwq/pVrsbgN5tkv152ODlbMfiqwGMBgxa4Exz3QhovRIUp6acqZmQzRq0ypDXS2TPLT02YIkQETnOE445oOGxOmXAqUJNNG7XgupMjPq2ua9asrj5yY/yuKteO1Kx0YNJTufrirLe1mZnat7OL6rnUdCWenpW6I8mAnbsY8KWs1PuSovCW9A/Z25PQ24a7cNOqgmTkLmBMgh4THgc4b9k2IVv1/g/F5nGljwPLfOgHAzJzh45V/4+WenTzmMtR5Z7us2Tys909UHqrPY7KbckoxRvRHhmVc3cJGE97uml0R1S0jdULVl7EvZtDFVBF35N9cEdjpgmAiOlFZ+Dtoh93+D3zzHr8RRNZQhnCNMNbcegOvpEwZoL+06cJQ07h+th3fZ/7PVbVC6ngTAV/KoLFuO6+2KFcU651gEb5ugPSIb1D+Xp8V4+k3sEIGnw5mYe4If4k1lFYr6SCzmM2EQ8iWtmwjnBI9kTwe1TlfAmXh7H02by9fW2gsjKwtv0aaURKil4OdV7rDL1MXIFNrhdxohcZXYTnq47WisrKitaObbf5+yvkLi5J6lCNZZ+B6GC38VNBZBDidSS/+mSvh6s+srgC8pyKMvDtt+de3c9fU76ZPfuM8ud4Kv0fyP/LqfepMT/3oZxSqpZaTa1DaQYLY8TFsHYbWYsPoRhRWfL5eSSQbhUGgGC3YLbVMk6PitTFNGpAsNrC6D1VNBKgBHMejaiuRWEWGgsSDBTJjqWIl8kJLlsaLJ2tXDr6xGfT85bM2Q06a46x2HTgvdnV8z5YDy/27J4zt6x2VtkzjoYpkq36kaBr4eQSg7tyiVweWubXZugtadl58ydapfbORfKsDTuZ0OBgx4cfdjCf5tbWNITnL120fdOi1RV1C3uKGzNdwYLcMvZ3BxoPyTOCD1XvXTp7U10gWCVmTV9b3r2z0SkGWovb2hp9I89O8a2smlyaO8muMU+dRmtzp60IzAoFpjLr1n388boLyf0dRvxhsHZ0qbWqDkwqvvpkj4l0fY6EIXRi5sQSrAvsVYwXRy4qJ2EVtD1AN7a0HWth9ymvL1xc3WTUKK/TAHA/bXDVtVWfOMfuGxGZv4Ln/jVr9jc3j1yMv0tndmyt9Vq88Y9gH1wtLX3KWjot5++jWHgAoZZkQ14wGQ20Fli71UmKJAy4xKMSTGbVdybW7FDDAut9XpD5AzWrYO7zQ8qffqF8+Ynd/clrHcdyxGy3a/3+mfNnzC/cBsveTjnTvXf1o6vzOlZw7WtqtdmPK/Errz/6NNtD72zmNOZfbmYdTGHfoofqI79Oc+R2n1lrnL6pOm0Up7kwxhTW12Amm7WYkXR2qYrF2AmgmbAsxZjwy1xpg/m1Je2vrp8v/nz2xpmlBg4E9hrMU341wVpTOh/OfmGvAnra8q6uctr60ZQHV3Q+WMQJykMj8ZsWn2QBOmmHMB+m5pDIpTFonYigiaKAhGEiAHF7EliVnQkjoLVIMPtJpBKHYd3A8GYH9jJzrWwmHx5Qjp7vDAX0suGRym1vtm/9W1/HyR8vczfMs6Sk8DSv855/5dlX9oQq52hT8syyp2rx5Id17IAyAM3wIjQPMOHzytEB64q6D5zT91yNbnx3V/nqnd017S9Y0605k3izoXLpsxde2n38yoOV9s1LcjwzNjbdX6asnBVaBj/6/DwKwPkpcqbDG7BnsXoSqWnUAmottYF6jMSdVyYZh3zVXCjwTiwwHH6sGuRiEHQGzuRX6whZkp123oy1BWE2mEfJ/tvIRtM4ZM5bDXiMsPMaAKOTyc5uL57rqyyc5y5JE5pm1i2S2iUX0CcaQ6lC6Zog7JqSqZmYlosl2K6pwNA84zRnQW6SaALYZQGW5lhCtU/W34N6o+bKfZ8cf3/Cl/+iTX3wBzpOY4mRkeNf3rptycGSshQWgGbYt5jFc2e0+DglIrwl6DVWQ7BuwaJ3Xk1J4VL5urnLl/Wf+gHU/hZoZdKNym6lG+I34FaNeZKcSpJIo2IeCVvpdsDGfKvzJnAwmeD37Ow65ZWwSowpgwX5T69s/rB55dP5BcpgDKFV8p7q2sn/1uc93bVzT/w6UrCqDTWvfCq/oCD/qZXNoUj8BL5Kp6GU017frfNXkAtiiyf/SOCEeLqnd8R/Ql9GlCRfctS6k5chvIBuQ1zCCjoCHL2DHNHIXxMJ3kQeO8lbsUXONeSfA5EjcG6/E+KdhN4bP04vBhdi883+BFBzQbxFbvZzQeY9LNBZc0FNfn5NwfDn6rCTnTw6R8o+gfpf5hCom33cRuiTlss3KHmZjD+BPN+5gXuA2ziS/Q73mLxUkpbKN/eqwz5uK0X9F3h2d1V4nGNgZGBgAOJd776+iue3+crAzc4AAje5Bfcg0xz9YHEOBiYQBQA8FQlFAHicY2BkYGBnAAGOPgaG//85+hkYGVCBMgBGGwNYAAAAeJxjYGBgYB8EmKOPgQEAQ04BfgAAAAAAAA4AaAB+AMwA4AECAUIBbAGYAcICGAJYArQC4AMwA7AD3gQwBJYE3AUkBWYFigYgBmYGtAbqB1gIEghYCG4IhAi2COh4nGNgZGBgUGYoZWBnAAEmIOYCQgaG/2A+AwAYCQG2AHicXZBNaoNAGIZfE5PQCKFQ2lUps2oXBfOzzAESyDKBQJdGR2NQR3QSSE/QE/QEPUUPUHqsvsrXjTMw83zPvPMNCuAWP3DQDAejdm1GjzwS7pMmwi75XngAD4/CQ/oX4TFe4Qt7uMMbOzjuDc0EmXCP/C7cJ38Iu+RP4QEe8CU8pP8WHmOPX2EPz87TPo202ey2OjlnQSXV/6arOjWFmvszMWtd6CqwOlKHq6ovycLaWMWVydXKFFZnmVFlZU46tP7R2nI5ncbi/dDkfDtFBA2DDXbYkhKc+V0Bqs5Zt9JM1HQGBRTm/EezTmZNKtpcAMs9Yu6AK9caF76zoLWIWcfMGOSkVduvSWechqZsz040Ib2PY3urxBJTzriT95lipz+TN1fmAAAAeJxtkMl2wjAMRfOAhABlKm2h80C3+ajgCKKDY6cegP59TYBzukAL+z1Zsq8ctaJTTKPrsUQLbXQQI0EXKXroY4AbDDHCGBNMcYsZ7nCPB8yxwCOe8IwXvOIN7/jAJ76wxHfUqWX+OzgumWAjJMV17i0Ndlr6irLKO+qftdT7i6y4uFSUvCknay+lFYZIZaQcmfH/xIFdYn98bqhra1aKTM/6lWMnyaYirx1rFUQZFBkb2zJUtoXeJCeg0WnLtHeSFc3OtrnozNwqi0TkSpBMDB1nSde5oJXW23hTS2/T0LilglXX7dmFVxLnq5U0vYATHFk3zX3BOisoQHNDFDeZnqKDy9hRNawN7Vh727hFzcJ5c8TILrKZfH7tIPxAFP0BpLeJPA==) format("woff");font-weight:400;font-style:normal}.video-js .vjs-big-play-button .vjs-icon-placeholder:before,.video-js .vjs-play-control .vjs-icon-placeholder,.vjs-icon-play{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-big-play-button .vjs-icon-placeholder:before,.video-js .vjs-play-control .vjs-icon-placeholder:before,.vjs-icon-play:before{content:"\\F101"}.vjs-icon-play-circle{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-play-circle:before{content:"\\F102"}.video-js .vjs-play-control.vjs-playing .vjs-icon-placeholder,.vjs-icon-pause{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-play-control.vjs-playing .vjs-icon-placeholder:before,.vjs-icon-pause:before{content:"\\F103"}.video-js .vjs-mute-control.vjs-vol-0 .vjs-icon-placeholder,.vjs-icon-volume-mute{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-mute-control.vjs-vol-0 .vjs-icon-placeholder:before,.vjs-icon-volume-mute:before{content:"\\F104"}.video-js .vjs-mute-control.vjs-vol-1 .vjs-icon-placeholder,.vjs-icon-volume-low{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-mute-control.vjs-vol-1 .vjs-icon-placeholder:before,.vjs-icon-volume-low:before{content:"\\F105"}.video-js .vjs-mute-control.vjs-vol-2 .vjs-icon-placeholder,.vjs-icon-volume-mid{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-mute-control.vjs-vol-2 .vjs-icon-placeholder:before,.vjs-icon-volume-mid:before{content:"\\F106"}.video-js .vjs-mute-control .vjs-icon-placeholder,.vjs-icon-volume-high{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-mute-control .vjs-icon-placeholder:before,.vjs-icon-volume-high:before{content:"\\F107"}.video-js .vjs-fullscreen-control .vjs-icon-placeholder,.vjs-icon-fullscreen-enter{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-fullscreen-control .vjs-icon-placeholder:before,.vjs-icon-fullscreen-enter:before{content:"\\F108"}.video-js.vjs-fullscreen .vjs-fullscreen-control .vjs-icon-placeholder,.vjs-icon-fullscreen-exit{font-family:VideoJS;font-weight:400;font-style:normal}.video-js.vjs-fullscreen .vjs-fullscreen-control .vjs-icon-placeholder:before,.vjs-icon-fullscreen-exit:before{content:"\\F109"}.vjs-icon-square{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-square:before{content:"\\F10A"}.vjs-icon-spinner{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-spinner:before{content:"\\F10B"}.video-js.video-js:lang(en-AU) .vjs-subs-caps-button .vjs-icon-placeholder,.video-js.video-js:lang(en-GB) .vjs-subs-caps-button .vjs-icon-placeholder,.video-js.video-js:lang(en-IE) .vjs-subs-caps-button .vjs-icon-placeholder,.video-js.video-js:lang(en-NZ) .vjs-subs-caps-button .vjs-icon-placeholder,.video-js .vjs-subs-caps-button .vjs-icon-placeholder,.video-js .vjs-subtitles-button .vjs-icon-placeholder,.vjs-icon-subtitles{font-family:VideoJS;font-weight:400;font-style:normal}.video-js.video-js:lang(en-AU) .vjs-subs-caps-button .vjs-icon-placeholder:before,.video-js.video-js:lang(en-GB) .vjs-subs-caps-button .vjs-icon-placeholder:before,.video-js.video-js:lang(en-IE) .vjs-subs-caps-button .vjs-icon-placeholder:before,.video-js.video-js:lang(en-NZ) .vjs-subs-caps-button .vjs-icon-placeholder:before,.video-js .vjs-subs-caps-button .vjs-icon-placeholder:before,.video-js .vjs-subtitles-button .vjs-icon-placeholder:before,.vjs-icon-subtitles:before{content:"\\F10C"}.video-js .vjs-captions-button .vjs-icon-placeholder,.video-js:lang(en) .vjs-subs-caps-button .vjs-icon-placeholder,.video-js:lang(fr-CA) .vjs-subs-caps-button .vjs-icon-placeholder,.vjs-icon-captions{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-captions-button .vjs-icon-placeholder:before,.video-js:lang(en) .vjs-subs-caps-button .vjs-icon-placeholder:before,.video-js:lang(fr-CA) .vjs-subs-caps-button .vjs-icon-placeholder:before,.vjs-icon-captions:before{content:"\\F10D"}.video-js .vjs-chapters-button .vjs-icon-placeholder,.vjs-icon-chapters{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-chapters-button .vjs-icon-placeholder:before,.vjs-icon-chapters:before{content:"\\F10E"}.vjs-icon-share{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-share:before{content:"\\F10F"}.vjs-icon-cog{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-cog:before{content:"\\F110"}.video-js .vjs-play-progress,.video-js .vjs-volume-level,.vjs-icon-circle,.vjs-seek-to-live-control .vjs-icon-placeholder{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-play-progress:before,.video-js .vjs-volume-level:before,.vjs-icon-circle:before,.vjs-seek-to-live-control .vjs-icon-placeholder:before{content:"\\F111"}.vjs-icon-circle-outline{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-circle-outline:before{content:"\\F112"}.vjs-icon-circle-inner-circle{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-circle-inner-circle:before{content:"\\F113"}.vjs-icon-hd{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-hd:before{content:"\\F114"}.video-js .vjs-control.vjs-close-button .vjs-icon-placeholder,.vjs-icon-cancel{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-control.vjs-close-button .vjs-icon-placeholder:before,.vjs-icon-cancel:before{content:"\\F115"}.video-js .vjs-play-control.vjs-ended .vjs-icon-placeholder,.vjs-icon-replay{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-play-control.vjs-ended .vjs-icon-placeholder:before,.vjs-icon-replay:before{content:"\\F116"}.vjs-icon-facebook{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-facebook:before{content:"\\F117"}.vjs-icon-gplus{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-gplus:before{content:"\\F118"}.vjs-icon-linkedin{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-linkedin:before{content:"\\F119"}.vjs-icon-twitter{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-twitter:before{content:"\\F11A"}.vjs-icon-tumblr{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-tumblr:before{content:"\\F11B"}.vjs-icon-pinterest{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-pinterest:before{content:"\\F11C"}.video-js .vjs-descriptions-button .vjs-icon-placeholder,.vjs-icon-audio-description{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-descriptions-button .vjs-icon-placeholder:before,.vjs-icon-audio-description:before{content:"\\F11D"}.video-js .vjs-audio-button .vjs-icon-placeholder,.vjs-icon-audio{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-audio-button .vjs-icon-placeholder:before,.vjs-icon-audio:before{content:"\\F11E"}.vjs-icon-next-item{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-next-item:before{content:"\\F11F"}.vjs-icon-previous-item{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-previous-item:before{content:"\\F120"}.video-js .vjs-picture-in-picture-control .vjs-icon-placeholder,.vjs-icon-picture-in-picture-enter{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-picture-in-picture-control .vjs-icon-placeholder:before,.vjs-icon-picture-in-picture-enter:before{content:"\\F121"}.video-js.vjs-picture-in-picture .vjs-picture-in-picture-control .vjs-icon-placeholder,.vjs-icon-picture-in-picture-exit{font-family:VideoJS;font-weight:400;font-style:normal}.video-js.vjs-picture-in-picture .vjs-picture-in-picture-control .vjs-icon-placeholder:before,.vjs-icon-picture-in-picture-exit:before{content:"\\F122"}.video-js{display:block;vertical-align:top;box-sizing:border-box;color:#fff;background-color:#000;position:relative;padding:0;font-size:10px;line-height:1;font-weight:400;font-style:normal;font-family:Arial,Helvetica,sans-serif;word-break:normal}.video-js:-moz-full-screen{position:absolute}.video-js:-webkit-full-screen{width:100%!important;height:100%!important}.video-js[tabindex="-1"]{outline:none}.video-js *,.video-js :after,.video-js :before{box-sizing:inherit}.video-js ul{font-family:inherit;font-size:inherit;line-height:inherit;list-style-position:outside;margin:0}.video-js.vjs-4-3,.video-js.vjs-16-9,.video-js.vjs-fluid{width:100%;max-width:100%;height:0}.video-js.vjs-16-9{padding-top:56.25%}.video-js.vjs-4-3{padding-top:75%}.video-js.vjs-fill,.video-js .vjs-tech{width:100%;height:100%}.video-js .vjs-tech{position:absolute;top:0;left:0}body.vjs-full-window{padding:0;margin:0;height:100%}.vjs-full-window .video-js.vjs-fullscreen{position:fixed;overflow:hidden;z-index:1000;left:0;top:0;bottom:0;right:0}.video-js.vjs-fullscreen{width:100%!important;height:100%!important;padding-top:0!important}.video-js.vjs-fullscreen.vjs-user-inactive{cursor:none}.vjs-hidden{display:none!important}.vjs-disabled{opacity:.5;cursor:default}.video-js .vjs-offscreen{height:1px;left:-9999px;position:absolute;top:0;width:1px}.vjs-lock-showing{display:block!important;opacity:1;visibility:visible}.vjs-no-js{padding:20px;color:#fff;background-color:#000;font-size:18px;font-family:Arial,Helvetica,sans-serif;text-align:center;width:300px;height:150px;margin:0 auto}.vjs-no-js a,.vjs-no-js a:visited{color:#66a8cc}.video-js .vjs-big-play-button{font-size:3em;line-height:1.5em;height:1.63332em;width:3em;display:block;position:absolute;top:10px;left:10px;padding:0;cursor:pointer;opacity:1;border:.06666em solid #fff;background-color:#2b333f;background-color:rgba(43,51,63,.7);border-radius:.3em;transition:all .4s}.vjs-big-play-centered .vjs-big-play-button{top:50%;left:50%;margin-top:-.81666em;margin-left:-1.5em}.video-js .vjs-big-play-button:focus,.video-js:hover .vjs-big-play-button{border-color:#fff;background-color:#73859f;background-color:rgba(115,133,159,.5);transition:all 0s}.vjs-controls-disabled .vjs-big-play-button,.vjs-error .vjs-big-play-button,.vjs-has-started .vjs-big-play-button,.vjs-using-native-controls .vjs-big-play-button{display:none}.vjs-has-started.vjs-paused.vjs-show-big-play-button-on-pause .vjs-big-play-button{display:block}.video-js button{background:none;border:none;color:inherit;display:inline-block;font-size:inherit;line-height:inherit;text-transform:none;text-decoration:none;transition:none;-webkit-appearance:none;-moz-appearance:none;appearance:none}.vjs-control .vjs-button{width:100%;height:100%}.video-js .vjs-control.vjs-close-button{cursor:pointer;height:3em;position:absolute;right:0;top:.5em;z-index:2}.video-js .vjs-modal-dialog{background:rgba(0,0,0,.8);background:linear-gradient(180deg,rgba(0,0,0,.8),hsla(0,0%,100%,0));overflow:auto}.video-js .vjs-modal-dialog>*{box-sizing:border-box}.vjs-modal-dialog .vjs-modal-dialog-content{font-size:1.2em;line-height:1.5;padding:20px 24px;z-index:1}.vjs-menu-button{cursor:pointer}.vjs-menu-button.vjs-disabled{cursor:default}.vjs-workinghover .vjs-menu-button.vjs-disabled:hover .vjs-menu{display:none}.vjs-menu .vjs-menu-content{display:block;padding:0;margin:0;font-family:Arial,Helvetica,sans-serif;overflow:auto}.vjs-menu .vjs-menu-content>*{box-sizing:border-box}.vjs-scrubbing .vjs-control.vjs-menu-button:hover .vjs-menu{display:none}.vjs-menu li{list-style:none;margin:0;padding:.2em 0;line-height:1.4em;font-size:1.2em;text-align:center;text-transform:lowercase}.js-focus-visible .vjs-menu li.vjs-menu-item:hover,.vjs-menu li.vjs-menu-item:focus,.vjs-menu li.vjs-menu-item:hover{background-color:#73859f;background-color:rgba(115,133,159,.5)}.js-focus-visible .vjs-menu li.vjs-selected:hover,.vjs-menu li.vjs-selected,.vjs-menu li.vjs-selected:focus,.vjs-menu li.vjs-selected:hover{background-color:#fff;color:#2b333f}.vjs-menu li.vjs-menu-title{text-align:center;text-transform:uppercase;font-size:1em;line-height:2em;padding:0;margin:0 0 .3em;font-weight:700;cursor:default}.vjs-menu-button-popup .vjs-menu{display:none;position:absolute;bottom:0;width:10em;left:-3em;height:0;margin-bottom:1.5em;border-top-color:rgba(43,51,63,.7)}.vjs-menu-button-popup .vjs-menu .vjs-menu-content{background-color:#2b333f;background-color:rgba(43,51,63,.7);position:absolute;width:100%;bottom:1.5em;max-height:15em}.vjs-layout-tiny .vjs-menu-button-popup .vjs-menu .vjs-menu-content,.vjs-layout-x-small .vjs-menu-button-popup .vjs-menu .vjs-menu-content{max-height:5em}.vjs-layout-small .vjs-menu-button-popup .vjs-menu .vjs-menu-content{max-height:10em}.vjs-layout-medium .vjs-menu-button-popup .vjs-menu .vjs-menu-content{max-height:14em}.vjs-layout-huge .vjs-menu-button-popup .vjs-menu .vjs-menu-content,.vjs-layout-large .vjs-menu-button-popup .vjs-menu .vjs-menu-content,.vjs-layout-x-large .vjs-menu-button-popup .vjs-menu .vjs-menu-content{max-height:25em}.vjs-menu-button-popup .vjs-menu.vjs-lock-showing,.vjs-workinghover .vjs-menu-button-popup.vjs-hover .vjs-menu{display:block}.video-js .vjs-menu-button-inline{transition:all .4s;overflow:hidden}.video-js .vjs-menu-button-inline:before{width:2.222222222em}.video-js .vjs-menu-button-inline.vjs-slider-active,.video-js .vjs-menu-button-inline:focus,.video-js .vjs-menu-button-inline:hover,.video-js.vjs-no-flex .vjs-menu-button-inline{width:12em}.vjs-menu-button-inline .vjs-menu{opacity:0;height:100%;width:auto;position:absolute;left:4em;top:0;padding:0;margin:0;transition:all .4s}.vjs-menu-button-inline.vjs-slider-active .vjs-menu,.vjs-menu-button-inline:focus .vjs-menu,.vjs-menu-button-inline:hover .vjs-menu{display:block;opacity:1}.vjs-no-flex .vjs-menu-button-inline .vjs-menu{display:block;opacity:1;position:relative;width:auto}.vjs-no-flex .vjs-menu-button-inline.vjs-slider-active .vjs-menu,.vjs-no-flex .vjs-menu-button-inline:focus .vjs-menu,.vjs-no-flex .vjs-menu-button-inline:hover .vjs-menu{width:auto}.vjs-menu-button-inline .vjs-menu-content{width:auto;height:100%;margin:0;overflow:hidden}.video-js .vjs-control-bar{display:none;width:100%;position:absolute;bottom:0;left:0;right:0;height:3em;background-color:#2b333f;background-color:rgba(43,51,63,.7)}.vjs-has-started .vjs-control-bar{display:flex;visibility:visible;opacity:1;transition:visibility .1s,opacity .1s}.vjs-has-started.vjs-user-inactive.vjs-playing .vjs-control-bar{visibility:visible;opacity:0;transition:visibility 1s,opacity 1s}.vjs-controls-disabled .vjs-control-bar,.vjs-error .vjs-control-bar,.vjs-using-native-controls .vjs-control-bar{display:none!important}.vjs-audio.vjs-has-started.vjs-user-inactive.vjs-playing .vjs-control-bar{opacity:1;visibility:visible}.vjs-has-started.vjs-no-flex .vjs-control-bar{display:table}.video-js .vjs-control{position:relative;text-align:center;margin:0;padding:0;height:100%;width:4em;flex:none}.vjs-button>.vjs-icon-placeholder:before{font-size:1.8em;line-height:1.67}.video-js .vjs-control:focus,.video-js .vjs-control:focus:before,.video-js .vjs-control:hover:before{text-shadow:0 0 1em #fff}.video-js .vjs-control-text{border:0;clip:rect(0 0 0 0);height:1px;overflow:hidden;padding:0;position:absolute;width:1px}.vjs-no-flex .vjs-control{display:table-cell;vertical-align:middle}.video-js .vjs-custom-control-spacer{display:none}.video-js .vjs-progress-control{cursor:pointer;flex:auto;display:flex;align-items:center;min-width:4em;touch-action:none}.video-js .vjs-progress-control.disabled{cursor:default}.vjs-live .vjs-progress-control{display:none}.vjs-liveui .vjs-progress-control{display:flex;align-items:center}.vjs-no-flex .vjs-progress-control{width:auto}.video-js .vjs-progress-holder{flex:auto;transition:all .2s;height:.3em}.video-js .vjs-progress-control .vjs-progress-holder{margin:0 10px}.video-js .vjs-progress-control:hover .vjs-progress-holder{font-size:1.6666666667em}.video-js .vjs-progress-control:hover .vjs-progress-holder.disabled{font-size:1em}.video-js .vjs-progress-holder .vjs-load-progress,.video-js .vjs-progress-holder .vjs-load-progress div,.video-js .vjs-progress-holder .vjs-play-progress{position:absolute;display:block;height:100%;margin:0;padding:0;width:0}.video-js .vjs-play-progress{background-color:#fff}.video-js .vjs-play-progress:before{font-size:.9em;position:absolute;right:-.5em;top:-.3333333333em;z-index:1}.video-js .vjs-load-progress{background:rgba(115,133,159,.5)}.video-js .vjs-load-progress div{background:rgba(115,133,159,.75)}.video-js .vjs-time-tooltip{background-color:#fff;background-color:hsla(0,0%,100%,.8);border-radius:.3em;color:#000;float:right;font-family:Arial,Helvetica,sans-serif;font-size:1em;padding:6px 8px 8px;pointer-events:none;position:absolute;top:-3.4em;visibility:hidden;z-index:1}.video-js .vjs-progress-holder:focus .vjs-time-tooltip{display:none}.video-js .vjs-progress-control:hover .vjs-progress-holder:focus .vjs-time-tooltip,.video-js .vjs-progress-control:hover .vjs-time-tooltip{display:block;font-size:.6em;visibility:visible}.video-js .vjs-progress-control.disabled:hover .vjs-time-tooltip{font-size:1em}.video-js .vjs-progress-control .vjs-mouse-display{display:none;position:absolute;width:1px;height:100%;background-color:#000;z-index:1}.vjs-no-flex .vjs-progress-control .vjs-mouse-display{z-index:0}.video-js .vjs-progress-control:hover .vjs-mouse-display{display:block}.video-js.vjs-user-inactive .vjs-progress-control .vjs-mouse-display{visibility:hidden;opacity:0;transition:visibility 1s,opacity 1s}.video-js.vjs-user-inactive.vjs-no-flex .vjs-progress-control .vjs-mouse-display{display:none}.vjs-mouse-display .vjs-time-tooltip{color:#fff;background-color:#000;background-color:rgba(0,0,0,.8)}.video-js .vjs-slider{position:relative;cursor:pointer;padding:0;margin:0 .45em;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;background-color:#73859f;background-color:rgba(115,133,159,.5)}.video-js .vjs-slider.disabled{cursor:default}.video-js .vjs-slider:focus{text-shadow:0 0 1em #fff;box-shadow:0 0 1em #fff}.video-js .vjs-mute-control{cursor:pointer;flex:none}.video-js .vjs-volume-control{cursor:pointer;margin-right:1em;display:flex}.video-js .vjs-volume-control.vjs-volume-horizontal{width:5em}.video-js .vjs-volume-panel .vjs-volume-control{visibility:visible;opacity:0;width:1px;height:1px;margin-left:-1px}.video-js .vjs-volume-panel{transition:width 1s}.video-js .vjs-volume-panel.vjs-hover .vjs-mute-control~.vjs-volume-control,.video-js .vjs-volume-panel.vjs-hover .vjs-volume-control,.video-js .vjs-volume-panel .vjs-volume-control.vjs-slider-active,.video-js .vjs-volume-panel .vjs-volume-control:active,.video-js .vjs-volume-panel:active .vjs-volume-control,.video-js .vjs-volume-panel:focus .vjs-volume-control{visibility:visible;opacity:1;position:relative;transition:visibility .1s,opacity .1s,height .1s,width .1s,left 0s,top 0s}.video-js .vjs-volume-panel.vjs-hover .vjs-mute-control~.vjs-volume-control.vjs-volume-horizontal,.video-js .vjs-volume-panel.vjs-hover .vjs-volume-control.vjs-volume-horizontal,.video-js .vjs-volume-panel .vjs-volume-control.vjs-slider-active.vjs-volume-horizontal,.video-js .vjs-volume-panel .vjs-volume-control:active.vjs-volume-horizontal,.video-js .vjs-volume-panel:active .vjs-volume-control.vjs-volume-horizontal,.video-js .vjs-volume-panel:focus .vjs-volume-control.vjs-volume-horizontal{width:5em;height:3em}.video-js .vjs-volume-panel.vjs-hover .vjs-mute-control~.vjs-volume-control.vjs-volume-vertical,.video-js .vjs-volume-panel.vjs-hover .vjs-volume-control.vjs-volume-vertical,.video-js .vjs-volume-panel .vjs-volume-control.vjs-slider-active.vjs-volume-vertical,.video-js .vjs-volume-panel .vjs-volume-control:active.vjs-volume-vertical,.video-js .vjs-volume-panel:active .vjs-volume-control.vjs-volume-vertical,.video-js .vjs-volume-panel:focus .vjs-volume-control.vjs-volume-vertical{left:-3.5em;transition:left 0s}.video-js .vjs-volume-panel.vjs-volume-panel-horizontal.vjs-hover,.video-js .vjs-volume-panel.vjs-volume-panel-horizontal.vjs-slider-active,.video-js .vjs-volume-panel.vjs-volume-panel-horizontal:active{width:9em;transition:width .1s}.video-js .vjs-volume-panel.vjs-volume-panel-horizontal.vjs-mute-toggle-only{width:4em}.video-js .vjs-volume-panel .vjs-volume-control.vjs-volume-vertical{height:8em;width:3em;left:-3000em;transition:visibility 1s,opacity 1s,height 1s 1s,width 1s 1s,left 1s 1s,top 1s 1s}.video-js .vjs-volume-panel .vjs-volume-control.vjs-volume-horizontal{transition:visibility 1s,opacity 1s,height 1s 1s,width 1s,left 1s 1s,top 1s 1s}.video-js.vjs-no-flex .vjs-volume-panel .vjs-volume-control.vjs-volume-horizontal{width:5em;height:3em;visibility:visible;opacity:1;position:relative;transition:none}.video-js.vjs-no-flex .vjs-volume-control.vjs-volume-vertical,.video-js.vjs-no-flex .vjs-volume-panel .vjs-volume-control.vjs-volume-vertical{position:absolute;bottom:3em;left:.5em}.video-js .vjs-volume-panel{display:flex}.video-js .vjs-volume-bar{margin:1.35em .45em}.vjs-volume-bar.vjs-slider-horizontal{width:5em;height:.3em}.vjs-volume-bar.vjs-slider-vertical{width:.3em;height:5em;margin:1.35em auto}.video-js .vjs-volume-level{position:absolute;bottom:0;left:0;background-color:#fff}.video-js .vjs-volume-level:before{position:absolute;font-size:.9em}.vjs-slider-vertical .vjs-volume-level{width:.3em}.vjs-slider-vertical .vjs-volume-level:before{top:-.5em;left:-.3em}.vjs-slider-horizontal .vjs-volume-level{height:.3em}.vjs-slider-horizontal .vjs-volume-level:before{top:-.3em;right:-.5em}.video-js .vjs-volume-panel.vjs-volume-panel-vertical{width:4em}.vjs-volume-bar.vjs-slider-vertical .vjs-volume-level{height:100%}.vjs-volume-bar.vjs-slider-horizontal .vjs-volume-level{width:100%}.video-js .vjs-volume-vertical{width:3em;height:8em;bottom:8em;background-color:#2b333f;background-color:rgba(43,51,63,.7)}.video-js .vjs-volume-horizontal .vjs-menu{left:-2em}.vjs-poster{display:inline-block;vertical-align:middle;background-repeat:no-repeat;background-position:50% 50%;background-size:contain;background-color:#000;cursor:pointer;margin:0;padding:0;position:absolute;top:0;right:0;bottom:0;left:0;height:100%}.vjs-has-started .vjs-poster{display:none}.vjs-audio.vjs-has-started .vjs-poster{display:block}.vjs-using-native-controls .vjs-poster{display:none}.video-js .vjs-live-control{display:flex;align-items:flex-start;flex:auto;font-size:1em;line-height:3em}.vjs-no-flex .vjs-live-control{display:table-cell;width:auto;text-align:left}.video-js.vjs-liveui .vjs-live-control,.video-js:not(.vjs-live) .vjs-live-control{display:none}.video-js .vjs-seek-to-live-control{cursor:pointer;flex:none;display:inline-flex;height:100%;padding-left:.5em;padding-right:.5em;font-size:1em;line-height:3em;width:auto;min-width:4em}.vjs-no-flex .vjs-seek-to-live-control{display:table-cell;width:auto;text-align:left}.video-js.vjs-live:not(.vjs-liveui) .vjs-seek-to-live-control,.video-js:not(.vjs-live) .vjs-seek-to-live-control{display:none}.vjs-seek-to-live-control.vjs-control.vjs-at-live-edge{cursor:auto}.vjs-seek-to-live-control .vjs-icon-placeholder{margin-right:.5em;color:#888}.vjs-seek-to-live-control.vjs-control.vjs-at-live-edge .vjs-icon-placeholder{color:red}.video-js .vjs-time-control{flex:none;font-size:1em;line-height:3em;min-width:2em;width:auto;padding-left:1em;padding-right:1em}.video-js .vjs-current-time,.video-js .vjs-duration,.vjs-live .vjs-time-control,.vjs-no-flex .vjs-current-time,.vjs-no-flex .vjs-duration{display:none}.vjs-time-divider{display:none;line-height:3em}.vjs-live .vjs-time-divider{display:none}.video-js .vjs-play-control{cursor:pointer}.video-js .vjs-play-control .vjs-icon-placeholder{flex:none}.vjs-text-track-display{position:absolute;bottom:3em;left:0;right:0;top:0;pointer-events:none}.video-js.vjs-user-inactive.vjs-playing .vjs-text-track-display{bottom:1em}.video-js .vjs-text-track{font-size:1.4em;text-align:center;margin-bottom:.1em}.vjs-subtitles{color:#fff}.vjs-captions{color:#fc6}.vjs-tt-cue{display:block}video::-webkit-media-text-track-display{transform:translateY(-3em)}.video-js.vjs-user-inactive.vjs-playing video::-webkit-media-text-track-display{transform:translateY(-1.5em)}.video-js .vjs-fullscreen-control,.video-js .vjs-picture-in-picture-control{cursor:pointer;flex:none}.vjs-playback-rate .vjs-playback-rate-value,.vjs-playback-rate>.vjs-menu-button{position:absolute;top:0;left:0;width:100%;height:100%}.vjs-playback-rate .vjs-playback-rate-value{pointer-events:none;font-size:1.5em;line-height:2;text-align:center}.vjs-playback-rate .vjs-menu{width:4em;left:0}.vjs-error .vjs-error-display .vjs-modal-dialog-content{font-size:1.4em;text-align:center}.vjs-error .vjs-error-display:before{color:#fff;content:"X";font-family:Arial,Helvetica,sans-serif;font-size:4em;left:0;line-height:1;margin-top:-.5em;position:absolute;text-shadow:.05em .05em .1em #000;text-align:center;top:50%;vertical-align:middle;width:100%}.vjs-loading-spinner{display:none;position:absolute;top:50%;left:50%;margin:-25px 0 0 -25px;opacity:.85;text-align:left;border:6px solid rgba(43,51,63,.7);box-sizing:border-box;background-clip:padding-box;width:50px;height:50px;border-radius:25px;visibility:hidden}.vjs-seeking .vjs-loading-spinner,.vjs-waiting .vjs-loading-spinner{display:block;-webkit-animation:vjs-spinner-show 0s linear .3s forwards;animation:vjs-spinner-show 0s linear .3s forwards}.vjs-loading-spinner:after,.vjs-loading-spinner:before{content:"";position:absolute;margin:-6px;box-sizing:inherit;width:inherit;height:inherit;border-radius:inherit;opacity:1;border:inherit;border-color:transparent;border-top-color:#fff}.vjs-seeking .vjs-loading-spinner:after,.vjs-seeking .vjs-loading-spinner:before,.vjs-waiting .vjs-loading-spinner:after,.vjs-waiting .vjs-loading-spinner:before{-webkit-animation:vjs-spinner-spin 1.1s cubic-bezier(.6,.2,0,.8) infinite,vjs-spinner-fade 1.1s linear infinite;animation:vjs-spinner-spin 1.1s cubic-bezier(.6,.2,0,.8) infinite,vjs-spinner-fade 1.1s linear infinite}.vjs-seeking .vjs-loading-spinner:before,.vjs-waiting .vjs-loading-spinner:before{border-top-color:#fff}.vjs-seeking .vjs-loading-spinner:after,.vjs-waiting .vjs-loading-spinner:after{border-top-color:#fff;-webkit-animation-delay:.44s;animation-delay:.44s}@keyframes vjs-spinner-show{to{visibility:visible}}@-webkit-keyframes vjs-spinner-show{to{visibility:visible}}@keyframes vjs-spinner-spin{to{transform:rotate(1turn)}}@-webkit-keyframes vjs-spinner-spin{to{-webkit-transform:rotate(1turn)}}@keyframes vjs-spinner-fade{0%{border-top-color:#73859f}20%{border-top-color:#73859f}35%{border-top-color:#fff}60%{border-top-color:#73859f}to{border-top-color:#73859f}}@-webkit-keyframes vjs-spinner-fade{0%{border-top-color:#73859f}20%{border-top-color:#73859f}35%{border-top-color:#fff}60%{border-top-color:#73859f}to{border-top-color:#73859f}}.vjs-chapters-button .vjs-menu ul{width:24em}.video-js .vjs-subs-caps-button+.vjs-menu .vjs-captions-menu-item .vjs-menu-item-text .vjs-icon-placeholder{vertical-align:middle;display:inline-block;margin-bottom:-.1em}.video-js .vjs-subs-caps-button+.vjs-menu .vjs-captions-menu-item .vjs-menu-item-text .vjs-icon-placeholder:before{font-family:VideoJS;content:"\\F10D";font-size:1.5em;line-height:inherit}.video-js .vjs-audio-button+.vjs-menu .vjs-main-desc-menu-item .vjs-menu-item-text .vjs-icon-placeholder{vertical-align:middle;display:inline-block;margin-bottom:-.1em}.video-js .vjs-audio-button+.vjs-menu .vjs-main-desc-menu-item .vjs-menu-item-text .vjs-icon-placeholder:before{font-family:VideoJS;content:" \\F11D";font-size:1.5em;line-height:inherit}.video-js:not(.vjs-fullscreen).vjs-layout-small .vjs-audio-button,.video-js:not(.vjs-fullscreen).vjs-layout-small .vjs-captions-button,.video-js:not(.vjs-fullscreen).vjs-layout-small .vjs-chapters-button,.video-js:not(.vjs-fullscreen).vjs-layout-small .vjs-current-time,.video-js:not(.vjs-fullscreen).vjs-layout-small .vjs-descriptions-button,.video-js:not(.vjs-fullscreen).vjs-layout-small .vjs-duration,.video-js:not(.vjs-fullscreen).vjs-layout-small .vjs-playback-rate,.video-js:not(.vjs-fullscreen).vjs-layout-small .vjs-remaining-time,.video-js:not(.vjs-fullscreen).vjs-layout-small .vjs-subtitles-button,.video-js:not(.vjs-fullscreen).vjs-layout-small .vjs-time-divider,.video-js:not(.vjs-fullscreen).vjs-layout-small .vjs-volume-control,.video-js:not(.vjs-fullscreen).vjs-layout-tiny .vjs-audio-button,.video-js:not(.vjs-fullscreen).vjs-layout-tiny .vjs-captions-button,.video-js:not(.vjs-fullscreen).vjs-layout-tiny .vjs-chapters-button,.video-js:not(.vjs-fullscreen).vjs-layout-tiny .vjs-current-time,.video-js:not(.vjs-fullscreen).vjs-layout-tiny .vjs-descriptions-button,.video-js:not(.vjs-fullscreen).vjs-layout-tiny .vjs-duration,.video-js:not(.vjs-fullscreen).vjs-layout-tiny .vjs-playback-rate,.video-js:not(.vjs-fullscreen).vjs-layout-tiny .vjs-remaining-time,.video-js:not(.vjs-fullscreen).vjs-layout-tiny .vjs-subtitles-button,.video-js:not(.vjs-fullscreen).vjs-layout-tiny .vjs-time-divider,.video-js:not(.vjs-fullscreen).vjs-layout-tiny .vjs-volume-control,.video-js:not(.vjs-fullscreen).vjs-layout-x-small .vjs-audio-button,.video-js:not(.vjs-fullscreen).vjs-layout-x-small .vjs-captions-button,.video-js:not(.vjs-fullscreen).vjs-layout-x-small .vjs-chapters-button,.video-js:not(.vjs-fullscreen).vjs-layout-x-small .vjs-current-time,.video-js:not(.vjs-fullscreen).vjs-layout-x-small .vjs-descriptions-button,.video-js:not(.vjs-fullscreen).vjs-layout-x-small .vjs-duration,.video-js:not(.vjs-fullscreen).vjs-layout-x-small .vjs-playback-rate,.video-js:not(.vjs-fullscreen).vjs-layout-x-small .vjs-remaining-time,.video-js:not(.vjs-fullscreen).vjs-layout-x-small .vjs-subtitles-button,.video-js:not(.vjs-fullscreen).vjs-layout-x-small .vjs-time-divider,.video-js:not(.vjs-fullscreen).vjs-layout-x-small .vjs-volume-control{display:none}.video-js:not(.vjs-fullscreen).vjs-layout-small .vjs-volume-panel.vjs-volume-panel-horizontal.vjs-slider-active,.video-js:not(.vjs-fullscreen).vjs-layout-small .vjs-volume-panel.vjs-volume-panel-horizontal:active,.video-js:not(.vjs-fullscreen).vjs-layout-small .vjs-volume-panel.vjs-volume-panel-horizontal:hover,.video-js:not(.vjs-fullscreen).vjs-layout-tiny .vjs-volume-panel.vjs-volume-panel-horizontal.vjs-slider-active,.video-js:not(.vjs-fullscreen).vjs-layout-tiny .vjs-volume-panel.vjs-volume-panel-horizontal:active,.video-js:not(.vjs-fullscreen).vjs-layout-tiny .vjs-volume-panel.vjs-volume-panel-horizontal:hover,.video-js:not(.vjs-fullscreen).vjs-layout-x-small .vjs-volume-panel.vjs-volume-panel-horizontal.vjs-slider-active,.video-js:not(.vjs-fullscreen).vjs-layout-x-small .vjs-volume-panel.vjs-volume-panel-horizontal:active,.video-js:not(.vjs-fullscreen).vjs-layout-x-small .vjs-volume-panel.vjs-volume-panel-horizontal:hover{width:auto}.video-js:not(.vjs-fullscreen).vjs-layout-tiny .vjs-subs-caps-button,.video-js:not(.vjs-fullscreen).vjs-layout-x-small:not(.vjs-live) .vjs-subs-caps-button,.video-js:not(.vjs-fullscreen).vjs-layout-x-small:not(.vjs-liveui) .vjs-subs-caps-button{display:none}.video-js:not(.vjs-fullscreen).vjs-layout-tiny .vjs-custom-control-spacer,.video-js:not(.vjs-fullscreen).vjs-layout-x-small.vjs-liveui .vjs-custom-control-spacer{flex:auto;display:block}.video-js:not(.vjs-fullscreen).vjs-layout-tiny.vjs-no-flex .vjs-custom-control-spacer,.video-js:not(.vjs-fullscreen).vjs-layout-x-small.vjs-liveui.vjs-no-flex .vjs-custom-control-spacer{width:auto}.video-js:not(.vjs-fullscreen).vjs-layout-tiny .vjs-progress-control,.video-js:not(.vjs-fullscreen).vjs-layout-x-small.vjs-liveui .vjs-progress-control{display:none}.vjs-modal-dialog.vjs-text-track-settings{background-color:#2b333f;background-color:rgba(43,51,63,.75);color:#fff;height:70%}.vjs-text-track-settings .vjs-modal-dialog-content{display:table}.vjs-text-track-settings .vjs-track-settings-colors,.vjs-text-track-settings .vjs-track-settings-controls,.vjs-text-track-settings .vjs-track-settings-font{display:table-cell}.vjs-text-track-settings .vjs-track-settings-controls{text-align:right;vertical-align:bottom}@supports (display:grid){.vjs-text-track-settings .vjs-modal-dialog-content{display:grid;grid-template-columns:1fr 1fr;grid-template-rows:1fr;padding:20px 24px 0}.vjs-track-settings-controls .vjs-default-button{margin-bottom:20px}.vjs-text-track-settings .vjs-track-settings-controls{grid-column:1/-1}.vjs-layout-small .vjs-text-track-settings .vjs-modal-dialog-content,.vjs-layout-tiny .vjs-text-track-settings .vjs-modal-dialog-content,.vjs-layout-x-small .vjs-text-track-settings .vjs-modal-dialog-content{grid-template-columns:1fr}}.vjs-track-setting>select{margin-right:1em;margin-bottom:.5em}.vjs-text-track-settings fieldset{margin:5px;padding:3px;border:none}.vjs-text-track-settings fieldset span{display:inline-block}.vjs-text-track-settings fieldset span>select{max-width:7.3em}.vjs-text-track-settings legend{color:#fff;margin:0 0 5px}.vjs-text-track-settings .vjs-label{position:absolute;clip:rect(1px 1px 1px 1px);clip:rect(1px,1px,1px,1px);display:block;margin:0 0 5px;padding:0;border:0;height:1px;width:1px;overflow:hidden}.vjs-track-settings-controls button:active,.vjs-track-settings-controls button:focus{outline-style:solid;outline-width:medium;background-image:linear-gradient(0deg,#fff 88%,#73859f)}.vjs-track-settings-controls button:hover{color:rgba(43,51,63,.75)}.vjs-track-settings-controls button{background-color:#fff;background-image:linear-gradient(-180deg,#fff 88%,#73859f);color:#2b333f;cursor:pointer;border-radius:2px}.vjs-track-settings-controls .vjs-default-button{margin-right:1em}@media print{.video-js>:not(.vjs-tech):not(.vjs-poster){visibility:hidden}}.vjs-resize-manager{position:absolute;top:0;left:0;width:100%;height:100%;border:none;z-index:-1000}.js-focus-visible .video-js :focus:not(.focus-visible),.video-js .vjs-menu :focus:not(:focus-visible),.video-js :focus:not(:focus-visible){outline:none;background:none}',""])},"8eWk":function(t,e,n){var i=n("LboF"),o=n("qFNJ");"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[t.i,o,""]]),i(o,{insert:"head",singleton:!1}),t.exports=o.locals||{}},I1BE:function(t,e){t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var n=function(t,e){var n=t[1]||"",i=t[3];if(!i)return n;if(e&&"function"==typeof btoa){var o=(r=i,"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(r))))+" */");return[n].concat(i.sources.map(function(t){return"/*# sourceURL="+i.sourceRoot+t+" */"})).concat([o]).join("\n")}var r;return[n].join("\n")}(e,t);return e[2]?"@media "+e[2]+"{"+n+"}":n}).join("")},e.i=function(t,n){"string"==typeof t&&(t=[[null,t,""]]);for(var i={},o=0;o<this.length;o++){var r=this[o][0];"number"==typeof r&&(i[r]=!0)}for(o=0;o<t.length;o++){var s=t[o];"number"==typeof s[0]&&i[s[0]]||(n&&!s[2]?s[2]=n:n&&(s[2]="("+s[2]+") and ("+n+")"),e.push(s))}},e}},Iab2:function(t,e,n){(function(n){var i,o,r;o=[],void 0===(r="function"==typeof(i=function(){"use strict";function e(t,e){return void 0===e?e={autoBom:!1}:"object"!=typeof e&&(console.warn("Deprecated: Expected third argument to be a object"),e={autoBom:!e}),e.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(t.type)?new Blob(["\ufeff",t],{type:t.type}):t}function i(t,e,n){var i=new XMLHttpRequest;i.open("GET",t),i.responseType="blob",i.onload=function(){a(i.response,e,n)},i.onerror=function(){console.error("could not download file")},i.send()}function o(t){var e=new XMLHttpRequest;return e.open("HEAD",t,!1),e.send(),200<=e.status&&299>=e.status}function r(t){try{t.dispatchEvent(new MouseEvent("click"))}catch(n){var e=document.createEvent("MouseEvents");e.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),t.dispatchEvent(e)}}var s="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof n&&n.global===n?n:void 0,a=s.saveAs||("object"!=typeof window||window!==s?function(){}:"download"in HTMLAnchorElement.prototype?function(t,e,n){var a=s.URL||s.webkitURL,l=document.createElement("a");e=e||t.name||"download",l.download=e,l.rel="noopener","string"==typeof t?(l.href=t,l.origin===location.origin?r(l):o(l.href)?i(t,e,n):r(l,l.target="_blank")):(l.href=a.createObjectURL(t),setTimeout(function(){a.revokeObjectURL(l.href)},4e4),setTimeout(function(){r(l)},0))}:"msSaveOrOpenBlob"in navigator?function(t,n,s){if(n=n||t.name||"download","string"!=typeof t)navigator.msSaveOrOpenBlob(e(t,s),n);else if(o(t))i(t,n,s);else{var a=document.createElement("a");a.href=t,a.target="_blank",setTimeout(function(){r(a)})}}:function(t,e,n,o){if((o=o||open("","_blank"))&&(o.document.title=o.document.body.innerText="downloading..."),"string"==typeof t)return i(t,e,n);var r="application/octet-stream"===t.type,a=/constructor/i.test(s.HTMLElement)||s.safari,l=/CriOS\/[\d]+/.test(navigator.userAgent);if((l||r&&a)&&"object"==typeof FileReader){var u=new FileReader;u.onloadend=function(){var t=u.result;t=l?t:t.replace(/^data:[^;]*;/,"data:attachment/file;"),o?o.location.href=t:location=t,o=null},u.readAsDataURL(t)}else{var c=s.URL||s.webkitURL,h=c.createObjectURL(t);o?o.location=h:location.href=h,o=null,setTimeout(function(){c.revokeObjectURL(h)},4e4)}});s.saveAs=a.saveAs=a,t.exports=a})?i.apply(e,o):i)||(t.exports=r)}).call(this,n("yLpj"))},LboF:function(t,e,n){"use strict";function i(t){for(var e=-1,n=0;n<f.length;n++)if(f[n].identifier===t){e=n;break}return e}function o(t,e){for(var n={},o=[],r=0;r<t.length;r++){var s=t[r],a=e.base?s[0]+e.base:s[0],u=n[a]||0,c="".concat(a," ").concat(u);n[a]=u+1;var h=i(c),d={css:s[1],media:s[2],sourceMap:s[3]};-1!==h?(f[h].references++,f[h].updater(d)):f.push({identifier:c,updater:l(d,e),references:1}),o.push(c)}return o}function r(t){var e=document.createElement("style"),i=t.attributes||{};if(void 0===i.nonce){var o=n.nc;o&&(i.nonce=o)}if(Object.keys(i).forEach(function(t){e.setAttribute(t,i[t])}),"function"==typeof t.insert)t.insert(e);else{var r=d(t.insert||"head");if(!r)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");r.appendChild(e)}return e}function s(t,e,n,i){var o=n?"":i.media?"@media ".concat(i.media," {").concat(i.css,"}"):i.css;if(t.styleSheet)t.styleSheet.cssText=p(e,o);else{var r=document.createTextNode(o),s=t.childNodes;s[e]&&t.removeChild(s[e]),s.length?t.insertBefore(r,s[e]):t.appendChild(r)}}function a(t,e,n){var i=n.css,o=n.media,r=n.sourceMap;if(o?t.setAttribute("media",o):t.removeAttribute("media"),r&&btoa&&(i+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(r))))," */")),t.styleSheet)t.styleSheet.cssText=i;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(i))}}function l(t,e){var n,i,o;if(e.singleton){var l=m++;n=v||(v=r(e)),i=s.bind(null,n,l,!1),o=s.bind(null,n,l,!0)}else n=r(e),i=a.bind(null,n,e),o=function(){!function(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t)}(n)};return i(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;i(t=e)}else o()}}var u,c,h=function(){return void 0===u&&(u=Boolean(window&&document&&document.all&&!window.atob)),u},d=function(){var t={};return function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(t){n=null}t[e]=n}return t[e]}}(),f=[],p=(c=[],function(t,e){return c[t]=e,c.filter(Boolean).join("\n")}),v=null,m=0;t.exports=function(t,e){(e=e||{}).singleton||"boolean"==typeof e.singleton||(e.singleton=h());var n=o(t=t||[],e);return function(t){if(t=t||[],"[object Array]"===Object.prototype.toString.call(t)){for(var r=0;r<n.length;r++){var s=i(n[r]);f[s].references--}for(var a=o(t,e),l=0;l<n.length;l++){var u=i(n[l]);0===f[u].references&&(f[u].updater(),f.splice(u,1))}n=a}}}},LvDl:function(t,e,n){(function(t,i){var o;(function(){function r(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}function s(t,e,n,i){for(var o=-1,r=null==t?0:t.length;++o<r;){var s=t[o];e(i,s,n(s),t)}return i}function a(t,e){for(var n=-1,i=null==t?0:t.length;++n<i&&!1!==e(t[n],n,t););return t}function l(t,e){for(var n=null==t?0:t.length;n--&&!1!==e(t[n],n,t););return t}function u(t,e){for(var n=-1,i=null==t?0:t.length;++n<i;)if(!e(t[n],n,t))return!1;return!0}function c(t,e){for(var n=-1,i=null==t?0:t.length,o=0,r=[];++n<i;){var s=t[n];e(s,n,t)&&(r[o++]=s)}return r}function h(t,e){return!!(null==t?0:t.length)&&b(t,e,0)>-1}function d(t,e,n){for(var i=-1,o=null==t?0:t.length;++i<o;)if(n(e,t[i]))return!0;return!1}function f(t,e){for(var n=-1,i=null==t?0:t.length,o=Array(i);++n<i;)o[n]=e(t[n],n,t);return o}function p(t,e){for(var n=-1,i=e.length,o=t.length;++n<i;)t[o+n]=e[n];return t}function v(t,e,n,i){var o=-1,r=null==t?0:t.length;for(i&&r&&(n=t[++o]);++o<r;)n=e(n,t[o],o,t);return n}function m(t,e,n,i){var o=null==t?0:t.length;for(i&&o&&(n=t[--o]);o--;)n=e(n,t[o],o,t);return n}function _(t,e){for(var n=-1,i=null==t?0:t.length;++n<i;)if(e(t[n],n,t))return!0;return!1}function g(t,e,n){var i;return n(t,function(t,n,o){if(e(t,n,o))return i=n,!1}),i}function y(t,e,n,i){for(var o=t.length,r=n+(i?1:-1);i?r--:++r<o;)if(e(t[r],r,t))return r;return-1}function b(t,e,n){return e==e?function(t,e,n){for(var i=n-1,o=t.length;++i<o;)if(t[i]===e)return i;return-1}(t,e,n):y(t,j,n)}function w(t,e,n,i){for(var o=n-1,r=t.length;++o<r;)if(i(t[o],e))return o;return-1}function j(t){return t!=t}function x(t,e){var n=null==t?0:t.length;return n?L(t,e)/n:it}function k(t){return function(e){return null==e?q:e[t]}}function z(t){return function(e){return null==t?q:t[e]}}function T(t,e,n,i,o){return o(t,function(t,o,r){n=i?(i=!1,t):e(n,t,o,r)}),n}function L(t,e){for(var n,i=-1,o=t.length;++i<o;){var r=e(t[i]);r!==q&&(n=n===q?r:n+r)}return n}function S(t,e){for(var n=-1,i=Array(t);++n<t;)i[n]=e(n);return i}function C(t){return t?t.slice(0,W(t)+1).replace($t,""):t}function A(t){return function(e){return t(e)}}function P(t,e){return f(e,function(e){return t[e]})}function M(t,e){return t.has(e)}function B(t,e){for(var n=-1,i=t.length;++n<i&&b(e,t[n],0)>-1;);return n}function E(t,e){for(var n=t.length;n--&&b(e,t[n],0)>-1;);return n}function I(t,e){for(var n=t.length,i=0;n--;)t[n]===e&&++i;return i}function O(t){return"\\"+He[t]}function D(t){return De.test(t)}function Z(t){var e=-1,n=Array(t.size);return t.forEach(function(t,i){n[++e]=[i,t]}),n}function F(t,e){return function(n){return t(e(n))}}function R(t,e){for(var n=-1,i=t.length,o=0,r=[];++n<i;){var s=t[n];s!==e&&s!==G||(t[n]=G,r[o++]=n)}return r}function N(t){var e=-1,n=Array(t.size);return t.forEach(function(t){n[++e]=t}),n}function U(t){var e=-1,n=Array(t.size);return t.forEach(function(t){n[++e]=[t,t]}),n}function H(t){return D(t)?function(t){for(var e=Ie.lastIndex=0;Ie.test(t);)++e;return e}(t):an(t)}function V(t){return D(t)?function(t){return t.match(Ie)||[]}(t):function(t){return t.split("")}(t)}function W(t){for(var e=t.length;e--&&Gt.test(t.charAt(e)););return e}var q,J="Expected a function",$="__lodash_hash_undefined__",G="__lodash_placeholder__",Y=16,K=32,X=64,Q=128,tt=256,et=1/0,nt=9007199254740991,it=NaN,ot=4294967295,rt=[["ary",Q],["bind",1],["bindKey",2],["curry",8],["curryRight",Y],["flip",512],["partial",K],["partialRight",X],["rearg",tt]],st="[object Arguments]",at="[object Array]",lt="[object Boolean]",ut="[object Date]",ct="[object Error]",ht="[object Function]",dt="[object GeneratorFunction]",ft="[object Map]",pt="[object Number]",vt="[object Object]",mt="[object Promise]",_t="[object RegExp]",gt="[object Set]",yt="[object String]",bt="[object Symbol]",wt="[object WeakMap]",jt="[object ArrayBuffer]",xt="[object DataView]",kt="[object Float32Array]",zt="[object Float64Array]",Tt="[object Int8Array]",Lt="[object Int16Array]",St="[object Int32Array]",Ct="[object Uint8Array]",At="[object Uint8ClampedArray]",Pt="[object Uint16Array]",Mt="[object Uint32Array]",Bt=/\b__p \+= '';/g,Et=/\b(__p \+=) '' \+/g,It=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Ot=/&(?:amp|lt|gt|quot|#39);/g,Dt=/[&<>"']/g,Zt=RegExp(Ot.source),Ft=RegExp(Dt.source),Rt=/<%-([\s\S]+?)%>/g,Nt=/<%([\s\S]+?)%>/g,Ut=/<%=([\s\S]+?)%>/g,Ht=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Vt=/^\w*$/,Wt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,qt=/[\\^$.*+?()[\]{}|]/g,Jt=RegExp(qt.source),$t=/^\s+/,Gt=/\s/,Yt=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Kt=/\{\n\/\* \[wrapped with (.+)\] \*/,Xt=/,? & /,Qt=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,te=/[()=,{}\[\]\/\s]/,ee=/\\(\\)?/g,ne=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ie=/\w*$/,oe=/^[-+]0x[0-9a-f]+$/i,re=/^0b[01]+$/i,se=/^\[object .+?Constructor\]$/,ae=/^0o[0-7]+$/i,le=/^(?:0|[1-9]\d*)$/,ue=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ce=/($^)/,he=/['\n\r\u2028\u2029\\]/g,de="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",fe="a-z\\xdf-\\xf6\\xf8-\\xff",pe="A-Z\\xc0-\\xd6\\xd8-\\xde",ve="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",me="["+ve+"]",_e="["+de+"]",ge="["+fe+"]",ye="[^\\ud800-\\udfff"+ve+"\\d+\\u2700-\\u27bf"+fe+pe+"]",be="\\ud83c[\\udffb-\\udfff]",we="[^\\ud800-\\udfff]",je="(?:\\ud83c[\\udde6-\\uddff]){2}",xe="[\\ud800-\\udbff][\\udc00-\\udfff]",ke="["+pe+"]",ze="(?:"+ge+"|"+ye+")",Te="(?:['](?:d|ll|m|re|s|t|ve))?",Le="(?:['](?:D|LL|M|RE|S|T|VE))?",Se="(?:"+_e+"|"+be+")?",Ce="[\\ufe0e\\ufe0f]?",Ae=Ce+Se+"(?:\\u200d(?:"+[we,je,xe].join("|")+")"+Ce+Se+")*",Pe="(?:"+["[\\u2700-\\u27bf]",je,xe].join("|")+")"+Ae,Me="(?:"+[we+_e+"?",_e,je,xe,"[\\ud800-\\udfff]"].join("|")+")",Be=RegExp("[']","g"),Ee=RegExp(_e,"g"),Ie=RegExp(be+"(?="+be+")|"+Me+Ae,"g"),Oe=RegExp([ke+"?"+ge+"+"+Te+"(?="+[me,ke,"$"].join("|")+")","(?:[A-Z\\xc0-\\xd6\\xd8-\\xde]|[^\\ud800-\\udfff\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000\\d+\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde])+"+Le+"(?="+[me,ke+ze,"$"].join("|")+")",ke+"?"+ze+"+"+Te,ke+"+"+Le,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])","\\d+",Pe].join("|"),"g"),De=RegExp("[\\u200d\\ud800-\\udfff"+de+"\\ufe0e\\ufe0f]"),Ze=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Fe=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Re=-1,Ne={};Ne[kt]=Ne[zt]=Ne[Tt]=Ne[Lt]=Ne[St]=Ne[Ct]=Ne[At]=Ne[Pt]=Ne[Mt]=!0,Ne[st]=Ne[at]=Ne[jt]=Ne[lt]=Ne[xt]=Ne[ut]=Ne[ct]=Ne[ht]=Ne[ft]=Ne[pt]=Ne[vt]=Ne[_t]=Ne[gt]=Ne[yt]=Ne[wt]=!1;var Ue={};Ue[st]=Ue[at]=Ue[jt]=Ue[xt]=Ue[lt]=Ue[ut]=Ue[kt]=Ue[zt]=Ue[Tt]=Ue[Lt]=Ue[St]=Ue[ft]=Ue[pt]=Ue[vt]=Ue[_t]=Ue[gt]=Ue[yt]=Ue[bt]=Ue[Ct]=Ue[At]=Ue[Pt]=Ue[Mt]=!0,Ue[ct]=Ue[ht]=Ue[wt]=!1;var He={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Ve=parseFloat,We=parseInt,qe="object"==typeof t&&t&&t.Object===Object&&t,Je="object"==typeof self&&self&&self.Object===Object&&self,$e=qe||Je||Function("return this")(),Ge=e&&!e.nodeType&&e,Ye=Ge&&"object"==typeof i&&i&&!i.nodeType&&i,Ke=Ye&&Ye.exports===Ge,Xe=Ke&&qe.process,Qe=function(){try{return Ye&&Ye.require&&Ye.require("util").types||Xe&&Xe.binding&&Xe.binding("util")}catch(t){}}(),tn=Qe&&Qe.isArrayBuffer,en=Qe&&Qe.isDate,nn=Qe&&Qe.isMap,on=Qe&&Qe.isRegExp,rn=Qe&&Qe.isSet,sn=Qe&&Qe.isTypedArray,an=k("length"),ln=z({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),un=z({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"}),cn=z({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"}),hn=function t(e){function n(t){if(Fo(t)&&!Aa(t)&&!(t instanceof z)){if(t instanceof o)return t;if(Cr.call(t,"__wrapped__"))return co(t)}return new o(t)}function i(){}function o(t,e){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!e,this.__index__=0,this.__values__=q}function z(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=ot,this.__views__=[]}function Gt(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}function de(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}function fe(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}function pe(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new fe;++e<n;)this.add(t[e])}function ve(t){var e=this.__data__=new de(t);this.size=e.size}function me(t,e){var n=Aa(t),i=!n&&Ca(t),o=!n&&!i&&Ma(t),r=!n&&!i&&!o&&Da(t),s=n||i||o||r,a=s?S(t.length,jr):[],l=a.length;for(var u in t)!e&&!Cr.call(t,u)||s&&("length"==u||o&&("offset"==u||"parent"==u)||r&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||$i(u,l))||a.push(u);return a}function _e(t){var e=t.length;return e?t[Bn(0,e-1)]:q}function ge(t,e){return ao(ci(t),Le(e,0,t.length))}function ye(t){return ao(ci(t))}function be(t,e,n){(n!==q&&!Po(t[e],n)||n===q&&!(e in t))&&ze(t,e,n)}function we(t,e,n){var i=t[e];Cr.call(t,e)&&Po(i,n)&&(n!==q||e in t)||ze(t,e,n)}function je(t,e){for(var n=t.length;n--;)if(Po(t[n][0],e))return n;return-1}function xe(t,e,n,i){return Ls(t,function(t,o,r){e(i,t,n(t),r)}),i}function ke(t,e){return t&&hi(e,Qo(e),t)}function ze(t,e,n){"__proto__"==e&&Jr?Jr(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}function Te(t,e){for(var n=-1,i=e.length,o=vr(i),r=null==t;++n<i;)o[n]=r?q:Ko(t,e[n]);return o}function Le(t,e,n){return t==t&&(n!==q&&(t=t<=n?t:n),e!==q&&(t=t>=e?t:e)),t}function Se(t,e,n,i,o,r){var s,l=1&e,u=2&e,c=4&e;if(n&&(s=o?n(t,i,o,r):n(t)),s!==q)return s;if(!Zo(t))return t;var h=Aa(t);if(h){if(s=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&Cr.call(t,"index")&&(n.index=t.index,n.input=t.input),n}(t),!l)return ci(t,s)}else{var d=Fs(t),f=d==ht||d==dt;if(Ma(t))return oi(t,l);if(d==vt||d==st||f&&!o){if(s=u||f?{}:qi(t),!l)return u?function(t,e){return hi(t,Zs(t),e)}(t,function(t,e){return t&&hi(e,tr(e),t)}(s,t)):function(t,e){return hi(t,Ds(t),e)}(t,ke(s,t))}else{if(!Ue[d])return o?t:{};s=function(t,e,n){var i=t.constructor;switch(e){case jt:return ri(t);case lt:case ut:return new i(+t);case xt:return function(t,e){var n=e?ri(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}(t,n);case kt:case zt:case Tt:case Lt:case St:case Ct:case At:case Pt:case Mt:return si(t,n);case ft:return new i;case pt:case yt:return new i(t);case _t:return function(t){var e=new t.constructor(t.source,ie.exec(t));return e.lastIndex=t.lastIndex,e}(t);case gt:return new i;case bt:return o=t,ks?br(ks.call(o)):{}}var o}(t,d,l)}}r||(r=new ve);var p=r.get(t);if(p)return p;r.set(t,s),Oa(t)?t.forEach(function(i){s.add(Se(i,e,n,i,t,r))}):Ea(t)&&t.forEach(function(i,o){s.set(o,Se(i,e,n,o,t,r))});var v=h?q:(c?u?Zi:Di:u?tr:Qo)(t);return a(v||t,function(i,o){v&&(i=t[o=i]),we(s,o,Se(i,e,n,o,t,r))}),s}function Ce(t,e,n){var i=n.length;if(null==t)return!i;for(t=br(t);i--;){var o=n[i],r=e[o],s=t[o];if(s===q&&!(o in t)||!r(s))return!1}return!0}function Ae(t,e,n){if("function"!=typeof t)throw new xr(J);return Us(function(){t.apply(q,n)},e)}function Pe(t,e,n,i){var o=-1,r=h,s=!0,a=t.length,l=[],u=e.length;if(!a)return l;n&&(e=f(e,A(n))),i?(r=d,s=!1):e.length>=200&&(r=M,s=!1,e=new pe(e));t:for(;++o<a;){var c=t[o],p=null==n?c:n(c);if(c=i||0!==c?c:0,s&&p==p){for(var v=u;v--;)if(e[v]===p)continue t;l.push(c)}else r(e,p,i)||l.push(c)}return l}function Me(t,e){var n=!0;return Ls(t,function(t,i,o){return n=!!e(t,i,o)}),n}function Ie(t,e,n){for(var i=-1,o=t.length;++i<o;){var r=t[i],s=e(r);if(null!=s&&(a===q?s==s&&!Ho(s):n(s,a)))var a=s,l=r}return l}function De(t,e){var n=[];return Ls(t,function(t,i,o){e(t,i,o)&&n.push(t)}),n}function He(t,e,n,i,o){var r=-1,s=t.length;for(n||(n=Ji),o||(o=[]);++r<s;){var a=t[r];e>0&&n(a)?e>1?He(a,e-1,n,i,o):p(o,a):i||(o[o.length]=a)}return o}function qe(t,e){return t&&Cs(t,e,Qo)}function Je(t,e){return t&&As(t,e,Qo)}function Ge(t,e){return c(e,function(e){return Io(t[e])})}function Ye(t,e){for(var n=0,i=(e=ni(e,t)).length;null!=t&&n<i;)t=t[lo(e[n++])];return n&&n==i?t:q}function Xe(t,e,n){var i=e(t);return Aa(t)?i:p(i,n(t))}function Qe(t){return null==t?t===q?"[object Undefined]":"[object Null]":qr&&qr in br(t)?function(t){var e=Cr.call(t,qr),n=t[qr];try{t[qr]=q;var i=!0}catch(t){}var o=Mr.call(t);return i&&(e?t[qr]=n:delete t[qr]),o}(t):function(t){return Mr.call(t)}(t)}function an(t,e){return t>e}function dn(t,e){return null!=t&&Cr.call(t,e)}function fn(t,e){return null!=t&&e in br(t)}function pn(t,e,n){for(var i=n?d:h,o=t[0].length,r=t.length,s=r,a=vr(r),l=1/0,u=[];s--;){var c=t[s];s&&e&&(c=f(c,A(e))),l=rs(c.length,l),a[s]=!n&&(e||o>=120&&c.length>=120)?new pe(s&&c):q}c=t[0];var p=-1,v=a[0];t:for(;++p<o&&u.length<l;){var m=c[p],_=e?e(m):m;if(m=n||0!==m?m:0,!(v?M(v,_):i(u,_,n))){for(s=r;--s;){var g=a[s];if(!(g?M(g,_):i(t[s],_,n)))continue t}v&&v.push(_),u.push(m)}}return u}function vn(t,e,n){var i=null==(t=no(t,e=ni(e,t)))?t:t[lo(mo(e))];return null==i?q:r(i,t,n)}function mn(t){return Fo(t)&&Qe(t)==st}function _n(t,e,n,i,o){return t===e||(null==t||null==e||!Fo(t)&&!Fo(e)?t!=t&&e!=e:function(t,e,n,i,o,r){var s=Aa(t),a=Aa(e),l=s?at:Fs(t),u=a?at:Fs(e),c=(l=l==st?vt:l)==vt,h=(u=u==st?vt:u)==vt,d=l==u;if(d&&Ma(t)){if(!Ma(e))return!1;s=!0,c=!1}if(d&&!c)return r||(r=new ve),s||Da(t)?Ii(t,e,n,i,o,r):function(t,e,n,i,o,r,s){switch(n){case xt:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case jt:return!(t.byteLength!=e.byteLength||!r(new Zr(t),new Zr(e)));case lt:case ut:case pt:return Po(+t,+e);case ct:return t.name==e.name&&t.message==e.message;case _t:case yt:return t==e+"";case ft:var a=Z;case gt:var l=1&i;if(a||(a=N),t.size!=e.size&&!l)return!1;var u=s.get(t);if(u)return u==e;i|=2,s.set(t,e);var c=Ii(a(t),a(e),i,o,r,s);return s.delete(t),c;case bt:if(ks)return ks.call(t)==ks.call(e)}return!1}(t,e,l,n,i,o,r);if(!(1&n)){var f=c&&Cr.call(t,"__wrapped__"),p=h&&Cr.call(e,"__wrapped__");if(f||p){var v=f?t.value():t,m=p?e.value():e;return r||(r=new ve),o(v,m,n,i,r)}}return!!d&&(r||(r=new ve),function(t,e,n,i,o,r){var s=1&n,a=Di(t),l=a.length;if(l!=Di(e).length&&!s)return!1;for(var u=l;u--;){var c=a[u];if(!(s?c in e:Cr.call(e,c)))return!1}var h=r.get(t),d=r.get(e);if(h&&d)return h==e&&d==t;var f=!0;r.set(t,e),r.set(e,t);for(var p=s;++u<l;){var v=t[c=a[u]],m=e[c];if(i)var _=s?i(m,v,c,e,t,r):i(v,m,c,t,e,r);if(!(_===q?v===m||o(v,m,n,i,r):_)){f=!1;break}p||(p="constructor"==c)}if(f&&!p){var g=t.constructor,y=e.constructor;g==y||!("constructor"in t)||!("constructor"in e)||"function"==typeof g&&g instanceof g&&"function"==typeof y&&y instanceof y||(f=!1)}return r.delete(t),r.delete(e),f}(t,e,n,i,o,r))}(t,e,n,i,_n,o))}function gn(t,e,n,i){var o=n.length,r=o,s=!i;if(null==t)return!r;for(t=br(t);o--;){var a=n[o];if(s&&a[2]?a[1]!==t[a[0]]:!(a[0]in t))return!1}for(;++o<r;){var l=(a=n[o])[0],u=t[l],c=a[1];if(s&&a[2]){if(u===q&&!(l in t))return!1}else{var h=new ve;if(i)var d=i(u,c,l,t,e,h);if(!(d===q?_n(c,u,3,i,h):d))return!1}}return!0}function yn(t){return!(!Zo(t)||(e=t,Pr&&Pr in e))&&(Io(t)?Ir:se).test(uo(t));var e}function bn(t){return"function"==typeof t?t:null==t?ar:"object"==typeof t?Aa(t)?Tn(t[0],t[1]):zn(t):hr(t)}function wn(t){if(!Xi(t))return is(t);var e=[];for(var n in br(t))Cr.call(t,n)&&"constructor"!=n&&e.push(n);return e}function jn(t){if(!Zo(t))return function(t){var e=[];if(null!=t)for(var n in br(t))e.push(n);return e}(t);var e=Xi(t),n=[];for(var i in t)("constructor"!=i||!e&&Cr.call(t,i))&&n.push(i);return n}function xn(t,e){return t<e}function kn(t,e){var n=-1,i=Mo(t)?vr(t.length):[];return Ls(t,function(t,o,r){i[++n]=e(t,o,r)}),i}function zn(t){var e=Hi(t);return 1==e.length&&e[0][2]?to(e[0][0],e[0][1]):function(n){return n===t||gn(n,t,e)}}function Tn(t,e){return Yi(t)&&Qi(e)?to(lo(t),e):function(n){var i=Ko(n,t);return i===q&&i===e?Xo(n,t):_n(e,i,3)}}function Ln(t,e,n,i,o){t!==e&&Cs(e,function(r,s){if(o||(o=new ve),Zo(r))!function(t,e,n,i,o,r,s){var a=oo(t,n),l=oo(e,n),u=s.get(l);if(u)return void be(t,n,u);var c=r?r(a,l,n+"",t,e,s):q,h=c===q;if(h){var d=Aa(l),f=!d&&Ma(l),p=!d&&!f&&Da(l);c=l,d||f||p?Aa(a)?c=a:Bo(a)?c=ci(a):f?(h=!1,c=oi(l,!0)):p?(h=!1,c=si(l,!0)):c=[]:No(l)||Ca(l)?(c=a,Ca(a)?c=Go(a):Zo(a)&&!Io(a)||(c=qi(l))):h=!1}h&&(s.set(l,c),o(c,l,i,r,s),s.delete(l)),be(t,n,c)}(t,e,s,n,Ln,i,o);else{var a=i?i(oo(t,s),r,s+"",t,e,o):q;a===q&&(a=r),be(t,s,a)}},tr)}function Sn(t,e){var n=t.length;if(n)return $i(e+=e<0?n:0,n)?t[e]:q}function Cn(t,e,n){e=e.length?f(e,function(t){return Aa(t)?function(e){return Ye(e,1===t.length?t[0]:t)}:t}):[ar];var i=-1;return e=f(e,A(Ni())),function(t,e){var n=t.length;for(t.sort(e);n--;)t[n]=t[n].value;return t}(kn(t,function(t,n,o){return{criteria:f(e,function(e){return e(t)}),index:++i,value:t}}),function(t,e){return function(t,e,n){for(var i=-1,o=t.criteria,r=e.criteria,s=o.length,a=n.length;++i<s;){var l=ai(o[i],r[i]);if(l)return i>=a?l:l*("desc"==n[i]?-1:1)}return t.index-e.index}(t,e,n)})}function An(t,e,n){for(var i=-1,o=e.length,r={};++i<o;){var s=e[i],a=Ye(t,s);n(a,s)&&Zn(r,ni(s,t),a)}return r}function Pn(t,e,n,i){var o=i?w:b,r=-1,s=e.length,a=t;for(t===e&&(e=ci(e)),n&&(a=f(t,A(n)));++r<s;)for(var l=0,u=e[r],c=n?n(u):u;(l=o(a,c,l,i))>-1;)a!==t&&Hr.call(a,l,1),Hr.call(t,l,1);return t}function Mn(t,e){for(var n=t?e.length:0,i=n-1;n--;){var o=e[n];if(n==i||o!==r){var r=o;$i(o)?Hr.call(t,o,1):$n(t,o)}}return t}function Bn(t,e){return t+Xr(ls()*(e-t+1))}function En(t,e){var n="";if(!t||e<1||e>nt)return n;do{e%2&&(n+=t),(e=Xr(e/2))&&(t+=t)}while(e);return n}function In(t,e){return Hs(eo(t,e,ar),t+"")}function On(t){return _e(nr(t))}function Dn(t,e){var n=nr(t);return ao(n,Le(e,0,n.length))}function Zn(t,e,n,i){if(!Zo(t))return t;for(var o=-1,r=(e=ni(e,t)).length,s=r-1,a=t;null!=a&&++o<r;){var l=lo(e[o]),u=n;if("__proto__"===l||"constructor"===l||"prototype"===l)return t;if(o!=s){var c=a[l];(u=i?i(c,l,a):q)===q&&(u=Zo(c)?c:$i(e[o+1])?[]:{})}we(a,l,u),a=a[l]}return t}function Fn(t){return ao(nr(t))}function Rn(t,e,n){var i=-1,o=t.length;e<0&&(e=-e>o?0:o+e),(n=n>o?o:n)<0&&(n+=o),o=e>n?0:n-e>>>0,e>>>=0;for(var r=vr(o);++i<o;)r[i]=t[i+e];return r}function Nn(t,e){var n;return Ls(t,function(t,i,o){return!(n=e(t,i,o))}),!!n}function Un(t,e,n){var i=0,o=null==t?i:t.length;if("number"==typeof e&&e==e&&o<=2147483647){for(;i<o;){var r=i+o>>>1,s=t[r];null!==s&&!Ho(s)&&(n?s<=e:s<e)?i=r+1:o=r}return o}return Hn(t,e,ar,n)}function Hn(t,e,n,i){var o=0,r=null==t?0:t.length;if(0===r)return 0;for(var s=(e=n(e))!=e,a=null===e,l=Ho(e),u=e===q;o<r;){var c=Xr((o+r)/2),h=n(t[c]),d=h!==q,f=null===h,p=h==h,v=Ho(h);if(s)var m=i||p;else m=u?p&&(i||d):a?p&&d&&(i||!f):l?p&&d&&!f&&(i||!v):!f&&!v&&(i?h<=e:h<e);m?o=c+1:r=c}return rs(r,4294967294)}function Vn(t,e){for(var n=-1,i=t.length,o=0,r=[];++n<i;){var s=t[n],a=e?e(s):s;if(!n||!Po(a,l)){var l=a;r[o++]=0===s?0:s}}return r}function Wn(t){return"number"==typeof t?t:Ho(t)?it:+t}function qn(t){if("string"==typeof t)return t;if(Aa(t))return f(t,qn)+"";if(Ho(t))return zs?zs.call(t):"";var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}function Jn(t,e,n){var i=-1,o=h,r=t.length,s=!0,a=[],l=a;if(n)s=!1,o=d;else if(r>=200){var u=e?null:Is(t);if(u)return N(u);s=!1,o=M,l=new pe}else l=e?[]:a;t:for(;++i<r;){var c=t[i],f=e?e(c):c;if(c=n||0!==c?c:0,s&&f==f){for(var p=l.length;p--;)if(l[p]===f)continue t;e&&l.push(f),a.push(c)}else o(l,f,n)||(l!==a&&l.push(f),a.push(c))}return a}function $n(t,e){return null==(t=no(t,e=ni(e,t)))||delete t[lo(mo(e))]}function Gn(t,e,n,i){return Zn(t,e,n(Ye(t,e)),i)}function Yn(t,e,n,i){for(var o=t.length,r=i?o:-1;(i?r--:++r<o)&&e(t[r],r,t););return n?Rn(t,i?0:r,i?r+1:o):Rn(t,i?r+1:0,i?o:r)}function Kn(t,e){var n=t;return n instanceof z&&(n=n.value()),v(e,function(t,e){return e.func.apply(e.thisArg,p([t],e.args))},n)}function Xn(t,e,n){var i=t.length;if(i<2)return i?Jn(t[0]):[];for(var o=-1,r=vr(i);++o<i;)for(var s=t[o],a=-1;++a<i;)a!=o&&(r[o]=Pe(r[o]||s,t[a],e,n));return Jn(He(r,1),e,n)}function Qn(t,e,n){for(var i=-1,o=t.length,r=e.length,s={};++i<o;){var a=i<r?e[i]:q;n(s,t[i],a)}return s}function ti(t){return Bo(t)?t:[]}function ei(t){return"function"==typeof t?t:ar}function ni(t,e){return Aa(t)?t:Yi(t,e)?[t]:Vs(Yo(t))}function ii(t,e,n){var i=t.length;return n=n===q?i:n,!e&&n>=i?t:Rn(t,e,n)}function oi(t,e){if(e)return t.slice();var n=t.length,i=Fr?Fr(n):new t.constructor(n);return t.copy(i),i}function ri(t){var e=new t.constructor(t.byteLength);return new Zr(e).set(new Zr(t)),e}function si(t,e){var n=e?ri(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}function ai(t,e){if(t!==e){var n=t!==q,i=null===t,o=t==t,r=Ho(t),s=e!==q,a=null===e,l=e==e,u=Ho(e);if(!a&&!u&&!r&&t>e||r&&s&&l&&!a&&!u||i&&s&&l||!n&&l||!o)return 1;if(!i&&!r&&!u&&t<e||u&&n&&o&&!i&&!r||a&&n&&o||!s&&o||!l)return-1}return 0}function li(t,e,n,i){for(var o=-1,r=t.length,s=n.length,a=-1,l=e.length,u=os(r-s,0),c=vr(l+u),h=!i;++a<l;)c[a]=e[a];for(;++o<s;)(h||o<r)&&(c[n[o]]=t[o]);for(;u--;)c[a++]=t[o++];return c}function ui(t,e,n,i){for(var o=-1,r=t.length,s=-1,a=n.length,l=-1,u=e.length,c=os(r-a,0),h=vr(c+u),d=!i;++o<c;)h[o]=t[o];for(var f=o;++l<u;)h[f+l]=e[l];for(;++s<a;)(d||o<r)&&(h[f+n[s]]=t[o++]);return h}function ci(t,e){var n=-1,i=t.length;for(e||(e=vr(i));++n<i;)e[n]=t[n];return e}function hi(t,e,n,i){var o=!n;n||(n={});for(var r=-1,s=e.length;++r<s;){var a=e[r],l=i?i(n[a],t[a],a,n,t):q;l===q&&(l=t[a]),o?ze(n,a,l):we(n,a,l)}return n}function di(t,e){return function(n,i){var o=Aa(n)?s:xe,r=e?e():{};return o(n,t,Ni(i,2),r)}}function fi(t){return In(function(e,n){var i=-1,o=n.length,r=o>1?n[o-1]:q,s=o>2?n[2]:q;for(r=t.length>3&&"function"==typeof r?(o--,r):q,s&&Gi(n[0],n[1],s)&&(r=o<3?q:r,o=1),e=br(e);++i<o;){var a=n[i];a&&t(e,a,i,r)}return e})}function pi(t,e){return function(n,i){if(null==n)return n;if(!Mo(n))return t(n,i);for(var o=n.length,r=e?o:-1,s=br(n);(e?r--:++r<o)&&!1!==i(s[r],r,s););return n}}function vi(t){return function(e,n,i){for(var o=-1,r=br(e),s=i(e),a=s.length;a--;){var l=s[t?a:++o];if(!1===n(r[l],l,r))break}return e}}function mi(t){return function(e){var n=D(e=Yo(e))?V(e):q,i=n?n[0]:e.charAt(0),o=n?ii(n,1).join(""):e.slice(1);return i[t]()+o}}function _i(t){return function(e){return v(rr(or(e).replace(Be,"")),t,"")}}function gi(t){return function(){var e=arguments;switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3]);case 5:return new t(e[0],e[1],e[2],e[3],e[4]);case 6:return new t(e[0],e[1],e[2],e[3],e[4],e[5]);case 7:return new t(e[0],e[1],e[2],e[3],e[4],e[5],e[6])}var n=Ts(t.prototype),i=t.apply(n,e);return Zo(i)?i:n}}function yi(t){return function(e,n,i){var o=br(e);if(!Mo(e)){var r=Ni(n,3);e=Qo(e),n=function(t){return r(o[t],t,o)}}var s=t(e,n,i);return s>-1?o[r?e[s]:s]:q}}function bi(t){return Oi(function(e){var n=e.length,i=n,r=o.prototype.thru;for(t&&e.reverse();i--;){var s=e[i];if("function"!=typeof s)throw new xr(J);if(r&&!a&&"wrapper"==Fi(s))var a=new o([],!0)}for(i=a?i:n;++i<n;){var l=Fi(s=e[i]),u="wrapper"==l?Os(s):q;a=u&&Ki(u[0])&&424==u[1]&&!u[4].length&&1==u[9]?a[Fi(u[0])].apply(a,u[3]):1==s.length&&Ki(s)?a[l]():a.thru(s)}return function(){var t=arguments,i=t[0];if(a&&1==t.length&&Aa(i))return a.plant(i).value();for(var o=0,r=n?e[o].apply(this,t):i;++o<n;)r=e[o].call(this,r);return r}})}function wi(t,e,n,i,o,r,s,a,l,u){var c=e&Q,h=1&e,d=2&e,f=24&e,p=512&e,v=d?q:gi(t);return function m(){for(var _=arguments.length,g=vr(_),y=_;y--;)g[y]=arguments[y];if(f)var b=Ri(m),w=I(g,b);if(i&&(g=li(g,i,o,f)),r&&(g=ui(g,r,s,f)),_-=w,f&&_<u){var j=R(g,b);return Si(t,e,wi,m.placeholder,n,g,j,a,l,u-_)}var x=h?n:this,k=d?x[t]:t;return _=g.length,a?g=io(g,a):p&&_>1&&g.reverse(),c&&l<_&&(g.length=l),this&&this!==$e&&this instanceof m&&(k=v||gi(k)),k.apply(x,g)}}function ji(t,e){return function(n,i){return function(t,e,n,i){return qe(t,function(t,o,r){e(i,n(t),o,r)}),i}(n,t,e(i),{})}}function xi(t,e){return function(n,i){var o;if(n===q&&i===q)return e;if(n!==q&&(o=n),i!==q){if(o===q)return i;"string"==typeof n||"string"==typeof i?(n=qn(n),i=qn(i)):(n=Wn(n),i=Wn(i)),o=t(n,i)}return o}}function ki(t){return Oi(function(e){return e=f(e,A(Ni())),In(function(n){var i=this;return t(e,function(t){return r(t,i,n)})})})}function zi(t,e){var n=(e=e===q?" ":qn(e)).length;if(n<2)return n?En(e,t):e;var i=En(e,Kr(t/H(e)));return D(e)?ii(V(i),0,t).join(""):i.slice(0,t)}function Ti(t){return function(e,n,i){return i&&"number"!=typeof i&&Gi(e,n,i)&&(n=i=q),e=Wo(e),n===q?(n=e,e=0):n=Wo(n),function(t,e,n,i){for(var o=-1,r=os(Kr((e-t)/(n||1)),0),s=vr(r);r--;)s[i?r:++o]=t,t+=n;return s}(e,n,i=i===q?e<n?1:-1:Wo(i),t)}}function Li(t){return function(e,n){return"string"==typeof e&&"string"==typeof n||(e=$o(e),n=$o(n)),t(e,n)}}function Si(t,e,n,i,o,r,s,a,l,u){var c=8&e;e|=c?K:X,4&(e&=~(c?X:K))||(e&=-4);var h=[t,e,o,c?r:q,c?s:q,c?q:r,c?q:s,a,l,u],d=n.apply(q,h);return Ki(t)&&Ns(d,h),d.placeholder=i,ro(d,t,e)}function Ci(t){var e=yr[t];return function(t,n){if(t=$o(t),(n=null==n?0:rs(qo(n),292))&&es(t)){var i=(Yo(t)+"e").split("e");return+((i=(Yo(e(i[0]+"e"+(+i[1]+n)))+"e").split("e"))[0]+"e"+(+i[1]-n))}return e(t)}}function Ai(t){return function(e){var n=Fs(e);return n==ft?Z(e):n==gt?U(e):function(t,e){return f(e,function(e){return[e,t[e]]})}(e,t(e))}}function Pi(t,e,n,i,o,s,a,l){var u=2&e;if(!u&&"function"!=typeof t)throw new xr(J);var c=i?i.length:0;if(c||(e&=-97,i=o=q),a=a===q?a:os(qo(a),0),l=l===q?l:qo(l),c-=o?o.length:0,e&X){var h=i,d=o;i=o=q}var f=u?q:Os(t),p=[t,e,n,i,o,h,d,s,a,l];if(f&&function(t,e){var n=t[1],i=e[1],o=n|i,r=o<131,s=i==Q&&8==n||i==Q&&n==tt&&t[7].length<=e[8]||384==i&&e[7].length<=e[8]&&8==n;if(!r&&!s)return t;1&i&&(t[2]=e[2],o|=1&n?0:4);var a=e[3];if(a){var l=t[3];t[3]=l?li(l,a,e[4]):a,t[4]=l?R(t[3],G):e[4]}(a=e[5])&&(l=t[5],t[5]=l?ui(l,a,e[6]):a,t[6]=l?R(t[5],G):e[6]),(a=e[7])&&(t[7]=a),i&Q&&(t[8]=null==t[8]?e[8]:rs(t[8],e[8])),null==t[9]&&(t[9]=e[9]),t[0]=e[0],t[1]=o}(p,f),t=p[0],e=p[1],n=p[2],i=p[3],o=p[4],!(l=p[9]=p[9]===q?u?0:t.length:os(p[9]-c,0))&&24&e&&(e&=-25),e&&1!=e)v=8==e||e==Y?function(t,e,n){var i=gi(t);return function o(){for(var s=arguments.length,a=vr(s),l=s,u=Ri(o);l--;)a[l]=arguments[l];var c=s<3&&a[0]!==u&&a[s-1]!==u?[]:R(a,u);return(s-=c.length)<n?Si(t,e,wi,o.placeholder,q,a,c,q,q,n-s):r(this&&this!==$e&&this instanceof o?i:t,this,a)}}(t,e,l):e!=K&&33!=e||o.length?wi.apply(q,p):function(t,e,n,i){var o=1&e,s=gi(t);return function e(){for(var a=-1,l=arguments.length,u=-1,c=i.length,h=vr(c+l),d=this&&this!==$e&&this instanceof e?s:t;++u<c;)h[u]=i[u];for(;l--;)h[u++]=arguments[++a];return r(d,o?n:this,h)}}(t,e,n,i);else var v=function(t,e,n){var i=1&e,o=gi(t);return function e(){return(this&&this!==$e&&this instanceof e?o:t).apply(i?n:this,arguments)}}(t,e,n);return ro((f?Ps:Ns)(v,p),t,e)}function Mi(t,e,n,i){return t===q||Po(t,Tr[n])&&!Cr.call(i,n)?e:t}function Bi(t,e,n,i,o,r){return Zo(t)&&Zo(e)&&(r.set(e,t),Ln(t,e,q,Bi,r),r.delete(e)),t}function Ei(t){return No(t)?q:t}function Ii(t,e,n,i,o,r){var s=1&n,a=t.length,l=e.length;if(a!=l&&!(s&&l>a))return!1;var u=r.get(t),c=r.get(e);if(u&&c)return u==e&&c==t;var h=-1,d=!0,f=2&n?new pe:q;for(r.set(t,e),r.set(e,t);++h<a;){var p=t[h],v=e[h];if(i)var m=s?i(v,p,h,e,t,r):i(p,v,h,t,e,r);if(m!==q){if(m)continue;d=!1;break}if(f){if(!_(e,function(t,e){if(!M(f,e)&&(p===t||o(p,t,n,i,r)))return f.push(e)})){d=!1;break}}else if(p!==v&&!o(p,v,n,i,r)){d=!1;break}}return r.delete(t),r.delete(e),d}function Oi(t){return Hs(eo(t,q,po),t+"")}function Di(t){return Xe(t,Qo,Ds)}function Zi(t){return Xe(t,tr,Zs)}function Fi(t){for(var e=t.name+"",n=_s[e],i=Cr.call(_s,e)?n.length:0;i--;){var o=n[i],r=o.func;if(null==r||r==t)return o.name}return e}function Ri(t){return(Cr.call(n,"placeholder")?n:t).placeholder}function Ni(){var t=n.iteratee||lr;return t=t===lr?bn:t,arguments.length?t(arguments[0],arguments[1]):t}function Ui(t,e){var n,i,o=t.__data__;return("string"==(i=typeof(n=e))||"number"==i||"symbol"==i||"boolean"==i?"__proto__"!==n:null===n)?o["string"==typeof e?"string":"hash"]:o.map}function Hi(t){for(var e=Qo(t),n=e.length;n--;){var i=e[n],o=t[i];e[n]=[i,o,Qi(o)]}return e}function Vi(t,e){var n=function(t,e){return null==t?q:t[e]}(t,e);return yn(n)?n:q}function Wi(t,e,n){for(var i=-1,o=(e=ni(e,t)).length,r=!1;++i<o;){var s=lo(e[i]);if(!(r=null!=t&&n(t,s)))break;t=t[s]}return r||++i!=o?r:!!(o=null==t?0:t.length)&&Do(o)&&$i(s,o)&&(Aa(t)||Ca(t))}function qi(t){return"function"!=typeof t.constructor||Xi(t)?{}:Ts(Rr(t))}function Ji(t){return Aa(t)||Ca(t)||!!(Vr&&t&&t[Vr])}function $i(t,e){var n=typeof t;return!!(e=null==e?nt:e)&&("number"==n||"symbol"!=n&&le.test(t))&&t>-1&&t%1==0&&t<e}function Gi(t,e,n){if(!Zo(n))return!1;var i=typeof e;return!!("number"==i?Mo(n)&&$i(e,n.length):"string"==i&&e in n)&&Po(n[e],t)}function Yi(t,e){if(Aa(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!Ho(t))||Vt.test(t)||!Ht.test(t)||null!=e&&t in br(e)}function Ki(t){var e=Fi(t),i=n[e];if("function"!=typeof i||!(e in z.prototype))return!1;if(t===i)return!0;var o=Os(i);return!!o&&t===o[0]}function Xi(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||Tr)}function Qi(t){return t==t&&!Zo(t)}function to(t,e){return function(n){return null!=n&&n[t]===e&&(e!==q||t in br(n))}}function eo(t,e,n){return e=os(e===q?t.length-1:e,0),function(){for(var i=arguments,o=-1,s=os(i.length-e,0),a=vr(s);++o<s;)a[o]=i[e+o];o=-1;for(var l=vr(e+1);++o<e;)l[o]=i[o];return l[e]=n(a),r(t,this,l)}}function no(t,e){return e.length<2?t:Ye(t,Rn(e,0,-1))}function io(t,e){for(var n=t.length,i=rs(e.length,n),o=ci(t);i--;){var r=e[i];t[i]=$i(r,n)?o[r]:q}return t}function oo(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]}function ro(t,e,n){var i=e+"";return Hs(t,function(t,e){var n=e.length;if(!n)return t;var i=n-1;return e[i]=(n>1?"& ":"")+e[i],e=e.join(n>2?", ":" "),t.replace(Yt,"{\n/* [wrapped with "+e+"] */\n")}(i,function(t,e){return a(rt,function(n){var i="_."+n[0];e&n[1]&&!h(t,i)&&t.push(i)}),t.sort()}(function(t){var e=t.match(Kt);return e?e[1].split(Xt):[]}(i),n)))}function so(t){var e=0,n=0;return function(){var i=ss(),o=16-(i-n);if(n=i,o>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(q,arguments)}}function ao(t,e){var n=-1,i=t.length,o=i-1;for(e=e===q?i:e;++n<e;){var r=Bn(n,o),s=t[r];t[r]=t[n],t[n]=s}return t.length=e,t}function lo(t){if("string"==typeof t||Ho(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}function uo(t){if(null!=t){try{return Sr.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function co(t){if(t instanceof z)return t.clone();var e=new o(t.__wrapped__,t.__chain__);return e.__actions__=ci(t.__actions__),e.__index__=t.__index__,e.__values__=t.__values__,e}function ho(t,e,n){var i=null==t?0:t.length;if(!i)return-1;var o=null==n?0:qo(n);return o<0&&(o=os(i+o,0)),y(t,Ni(e,3),o)}function fo(t,e,n){var i=null==t?0:t.length;if(!i)return-1;var o=i-1;return n!==q&&(o=qo(n),o=n<0?os(i+o,0):rs(o,i-1)),y(t,Ni(e,3),o,!0)}function po(t){return(null==t?0:t.length)?He(t,1):[]}function vo(t){return t&&t.length?t[0]:q}function mo(t){var e=null==t?0:t.length;return e?t[e-1]:q}function _o(t,e){return t&&t.length&&e&&e.length?Pn(t,e):t}function go(t){return null==t?t:us.call(t)}function yo(t){if(!t||!t.length)return[];var e=0;return t=c(t,function(t){if(Bo(t))return e=os(t.length,e),!0}),S(e,function(e){return f(t,k(e))})}function bo(t,e){if(!t||!t.length)return[];var n=yo(t);return null==e?n:f(n,function(t){return r(e,q,t)})}function wo(t){var e=n(t);return e.__chain__=!0,e}function jo(t,e){return e(t)}function xo(t,e){return(Aa(t)?a:Ls)(t,Ni(e,3))}function ko(t,e){return(Aa(t)?l:Ss)(t,Ni(e,3))}function zo(t,e){return(Aa(t)?f:kn)(t,Ni(e,3))}function To(t,e,n){return e=n?q:e,e=t&&null==e?t.length:e,Pi(t,Q,q,q,q,q,e)}function Lo(t,e){var n;if("function"!=typeof e)throw new xr(J);return t=qo(t),function(){return--t>0&&(n=e.apply(this,arguments)),t<=1&&(e=q),n}}function So(t,e,n){function i(e){var n=u,i=c;return u=c=q,v=e,d=t.apply(i,n)}function o(t){return v=t,f=Us(s,e),m?i(t):d}function r(t){var n=t-p;return p===q||n>=e||n<0||_&&t-v>=h}function s(){var t=_a();if(r(t))return a(t);f=Us(s,function(t){var n=e-(t-p);return _?rs(n,h-(t-v)):n}(t))}function a(t){return f=q,g&&u?i(t):(u=c=q,d)}function l(){var t=_a(),n=r(t);if(u=arguments,c=this,p=t,n){if(f===q)return o(p);if(_)return Es(f),f=Us(s,e),i(p)}return f===q&&(f=Us(s,e)),d}var u,c,h,d,f,p,v=0,m=!1,_=!1,g=!0;if("function"!=typeof t)throw new xr(J);return e=$o(e)||0,Zo(n)&&(m=!!n.leading,h=(_="maxWait"in n)?os($o(n.maxWait)||0,e):h,g="trailing"in n?!!n.trailing:g),l.cancel=function(){f!==q&&Es(f),v=0,u=p=c=f=q},l.flush=function(){return f===q?d:a(_a())},l}function Co(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new xr(J);var n=function(){var i=arguments,o=e?e.apply(this,i):i[0],r=n.cache;if(r.has(o))return r.get(o);var s=t.apply(this,i);return n.cache=r.set(o,s)||r,s};return n.cache=new(Co.Cache||fe),n}function Ao(t){if("function"!=typeof t)throw new xr(J);return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}}function Po(t,e){return t===e||t!=t&&e!=e}function Mo(t){return null!=t&&Do(t.length)&&!Io(t)}function Bo(t){return Fo(t)&&Mo(t)}function Eo(t){if(!Fo(t))return!1;var e=Qe(t);return e==ct||"[object DOMException]"==e||"string"==typeof t.message&&"string"==typeof t.name&&!No(t)}function Io(t){if(!Zo(t))return!1;var e=Qe(t);return e==ht||e==dt||"[object AsyncFunction]"==e||"[object Proxy]"==e}function Oo(t){return"number"==typeof t&&t==qo(t)}function Do(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=nt}function Zo(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function Fo(t){return null!=t&&"object"==typeof t}function Ro(t){return"number"==typeof t||Fo(t)&&Qe(t)==pt}function No(t){if(!Fo(t)||Qe(t)!=vt)return!1;var e=Rr(t);if(null===e)return!0;var n=Cr.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&Sr.call(n)==Br}function Uo(t){return"string"==typeof t||!Aa(t)&&Fo(t)&&Qe(t)==yt}function Ho(t){return"symbol"==typeof t||Fo(t)&&Qe(t)==bt}function Vo(t){if(!t)return[];if(Mo(t))return Uo(t)?V(t):ci(t);if(Wr&&t[Wr])return function(t){for(var e,n=[];!(e=t.next()).done;)n.push(e.value);return n}(t[Wr]());var e=Fs(t);return(e==ft?Z:e==gt?N:nr)(t)}function Wo(t){return t?(t=$o(t))===et||t===-1/0?1.7976931348623157e308*(t<0?-1:1):t==t?t:0:0===t?t:0}function qo(t){var e=Wo(t),n=e%1;return e==e?n?e-n:e:0}function Jo(t){return t?Le(qo(t),0,ot):0}function $o(t){if("number"==typeof t)return t;if(Ho(t))return it;if(Zo(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=Zo(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=C(t);var n=re.test(t);return n||ae.test(t)?We(t.slice(2),n?2:8):oe.test(t)?it:+t}function Go(t){return hi(t,tr(t))}function Yo(t){return null==t?"":qn(t)}function Ko(t,e,n){var i=null==t?q:Ye(t,e);return i===q?n:i}function Xo(t,e){return null!=t&&Wi(t,e,fn)}function Qo(t){return Mo(t)?me(t):wn(t)}function tr(t){return Mo(t)?me(t,!0):jn(t)}function er(t,e){if(null==t)return{};var n=f(Zi(t),function(t){return[t]});return e=Ni(e),An(t,n,function(t,n){return e(t,n[0])})}function nr(t){return null==t?[]:P(t,Qo(t))}function ir(t){return ul(Yo(t).toLowerCase())}function or(t){return(t=Yo(t))&&t.replace(ue,ln).replace(Ee,"")}function rr(t,e,n){return t=Yo(t),(e=n?q:e)===q?function(t){return Ze.test(t)}(t)?function(t){return t.match(Oe)||[]}(t):function(t){return t.match(Qt)||[]}(t):t.match(e)||[]}function sr(t){return function(){return t}}function ar(t){return t}function lr(t){return bn("function"==typeof t?t:Se(t,1))}function ur(t,e,n){var i=Qo(e),o=Ge(e,i);null!=n||Zo(e)&&(o.length||!i.length)||(n=e,e=t,t=this,o=Ge(e,Qo(e)));var r=!(Zo(n)&&"chain"in n&&!n.chain),s=Io(t);return a(o,function(n){var i=e[n];t[n]=i,s&&(t.prototype[n]=function(){var e=this.__chain__;if(r||e){var n=t(this.__wrapped__);return(n.__actions__=ci(this.__actions__)).push({func:i,args:arguments,thisArg:t}),n.__chain__=e,n}return i.apply(t,p([this.value()],arguments))})}),t}function cr(){}function hr(t){return Yi(t)?k(lo(t)):function(t){return function(e){return Ye(e,t)}}(t)}function dr(){return[]}function fr(){return!1}var pr,vr=(e=null==e?$e:hn.defaults($e.Object(),e,hn.pick($e,Fe))).Array,mr=e.Date,_r=e.Error,gr=e.Function,yr=e.Math,br=e.Object,wr=e.RegExp,jr=e.String,xr=e.TypeError,kr=vr.prototype,zr=gr.prototype,Tr=br.prototype,Lr=e["__core-js_shared__"],Sr=zr.toString,Cr=Tr.hasOwnProperty,Ar=0,Pr=(pr=/[^.]+$/.exec(Lr&&Lr.keys&&Lr.keys.IE_PROTO||""))?"Symbol(src)_1."+pr:"",Mr=Tr.toString,Br=Sr.call(br),Er=$e._,Ir=wr("^"+Sr.call(Cr).replace(qt,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Or=Ke?e.Buffer:q,Dr=e.Symbol,Zr=e.Uint8Array,Fr=Or?Or.allocUnsafe:q,Rr=F(br.getPrototypeOf,br),Nr=br.create,Ur=Tr.propertyIsEnumerable,Hr=kr.splice,Vr=Dr?Dr.isConcatSpreadable:q,Wr=Dr?Dr.iterator:q,qr=Dr?Dr.toStringTag:q,Jr=function(){try{var t=Vi(br,"defineProperty");return t({},"",{}),t}catch(t){}}(),$r=e.clearTimeout!==$e.clearTimeout&&e.clearTimeout,Gr=mr&&mr.now!==$e.Date.now&&mr.now,Yr=e.setTimeout!==$e.setTimeout&&e.setTimeout,Kr=yr.ceil,Xr=yr.floor,Qr=br.getOwnPropertySymbols,ts=Or?Or.isBuffer:q,es=e.isFinite,ns=kr.join,is=F(br.keys,br),os=yr.max,rs=yr.min,ss=mr.now,as=e.parseInt,ls=yr.random,us=kr.reverse,cs=Vi(e,"DataView"),hs=Vi(e,"Map"),ds=Vi(e,"Promise"),fs=Vi(e,"Set"),ps=Vi(e,"WeakMap"),vs=Vi(br,"create"),ms=ps&&new ps,_s={},gs=uo(cs),ys=uo(hs),bs=uo(ds),ws=uo(fs),js=uo(ps),xs=Dr?Dr.prototype:q,ks=xs?xs.valueOf:q,zs=xs?xs.toString:q,Ts=function(){function t(){}return function(e){if(!Zo(e))return{};if(Nr)return Nr(e);t.prototype=e;var n=new t;return t.prototype=q,n}}();n.templateSettings={escape:Rt,evaluate:Nt,interpolate:Ut,variable:"",imports:{_:n}},n.prototype=i.prototype,n.prototype.constructor=n,o.prototype=Ts(i.prototype),o.prototype.constructor=o,z.prototype=Ts(i.prototype),z.prototype.constructor=z,Gt.prototype.clear=function(){this.__data__=vs?vs(null):{},this.size=0},Gt.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},Gt.prototype.get=function(t){var e=this.__data__;if(vs){var n=e[t];return n===$?q:n}return Cr.call(e,t)?e[t]:q},Gt.prototype.has=function(t){var e=this.__data__;return vs?e[t]!==q:Cr.call(e,t)},Gt.prototype.set=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=vs&&e===q?$:e,this},de.prototype.clear=function(){this.__data__=[],this.size=0},de.prototype.delete=function(t){var e=this.__data__,n=je(e,t);return!(n<0||(n==e.length-1?e.pop():Hr.call(e,n,1),--this.size,0))},de.prototype.get=function(t){var e=this.__data__,n=je(e,t);return n<0?q:e[n][1]},de.prototype.has=function(t){return je(this.__data__,t)>-1},de.prototype.set=function(t,e){var n=this.__data__,i=je(n,t);return i<0?(++this.size,n.push([t,e])):n[i][1]=e,this},fe.prototype.clear=function(){this.size=0,this.__data__={hash:new Gt,map:new(hs||de),string:new Gt}},fe.prototype.delete=function(t){var e=Ui(this,t).delete(t);return this.size-=e?1:0,e},fe.prototype.get=function(t){return Ui(this,t).get(t)},fe.prototype.has=function(t){return Ui(this,t).has(t)},fe.prototype.set=function(t,e){var n=Ui(this,t),i=n.size;return n.set(t,e),this.size+=n.size==i?0:1,this},pe.prototype.add=pe.prototype.push=function(t){return this.__data__.set(t,$),this},pe.prototype.has=function(t){return this.__data__.has(t)},ve.prototype.clear=function(){this.__data__=new de,this.size=0},ve.prototype.delete=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n},ve.prototype.get=function(t){return this.__data__.get(t)},ve.prototype.has=function(t){return this.__data__.has(t)},ve.prototype.set=function(t,e){var n=this.__data__;if(n instanceof de){var i=n.__data__;if(!hs||i.length<199)return i.push([t,e]),this.size=++n.size,this;n=this.__data__=new fe(i)}return n.set(t,e),this.size=n.size,this};var Ls=pi(qe),Ss=pi(Je,!0),Cs=vi(),As=vi(!0),Ps=ms?function(t,e){return ms.set(t,e),t}:ar,Ms=Jr?function(t,e){return Jr(t,"toString",{configurable:!0,enumerable:!1,value:sr(e),writable:!0})}:ar,Bs=In,Es=$r||function(t){return $e.clearTimeout(t)},Is=fs&&1/N(new fs([,-0]))[1]==et?function(t){return new fs(t)}:cr,Os=ms?function(t){return ms.get(t)}:cr,Ds=Qr?function(t){return null==t?[]:(t=br(t),c(Qr(t),function(e){return Ur.call(t,e)}))}:dr,Zs=Qr?function(t){for(var e=[];t;)p(e,Ds(t)),t=Rr(t);return e}:dr,Fs=Qe;(cs&&Fs(new cs(new ArrayBuffer(1)))!=xt||hs&&Fs(new hs)!=ft||ds&&Fs(ds.resolve())!=mt||fs&&Fs(new fs)!=gt||ps&&Fs(new ps)!=wt)&&(Fs=function(t){var e=Qe(t),n=e==vt?t.constructor:q,i=n?uo(n):"";if(i)switch(i){case gs:return xt;case ys:return ft;case bs:return mt;case ws:return gt;case js:return wt}return e});var Rs=Lr?Io:fr,Ns=so(Ps),Us=Yr||function(t,e){return $e.setTimeout(t,e)},Hs=so(Ms),Vs=function(t){var e=Co(t,function(t){return 500===n.size&&n.clear(),t}),n=e.cache;return e}(function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(Wt,function(t,n,i,o){e.push(i?o.replace(ee,"$1"):n||t)}),e}),Ws=In(function(t,e){return Bo(t)?Pe(t,He(e,1,Bo,!0)):[]}),qs=In(function(t,e){var n=mo(e);return Bo(n)&&(n=q),Bo(t)?Pe(t,He(e,1,Bo,!0),Ni(n,2)):[]}),Js=In(function(t,e){var n=mo(e);return Bo(n)&&(n=q),Bo(t)?Pe(t,He(e,1,Bo,!0),q,n):[]}),$s=In(function(t){var e=f(t,ti);return e.length&&e[0]===t[0]?pn(e):[]}),Gs=In(function(t){var e=mo(t),n=f(t,ti);return e===mo(n)?e=q:n.pop(),n.length&&n[0]===t[0]?pn(n,Ni(e,2)):[]}),Ys=In(function(t){var e=mo(t),n=f(t,ti);return(e="function"==typeof e?e:q)&&n.pop(),n.length&&n[0]===t[0]?pn(n,q,e):[]}),Ks=In(_o),Xs=Oi(function(t,e){var n=null==t?0:t.length,i=Te(t,e);return Mn(t,f(e,function(t){return $i(t,n)?+t:t}).sort(ai)),i}),Qs=In(function(t){return Jn(He(t,1,Bo,!0))}),ta=In(function(t){var e=mo(t);return Bo(e)&&(e=q),Jn(He(t,1,Bo,!0),Ni(e,2))}),ea=In(function(t){var e=mo(t);return e="function"==typeof e?e:q,Jn(He(t,1,Bo,!0),q,e)}),na=In(function(t,e){return Bo(t)?Pe(t,e):[]}),ia=In(function(t){return Xn(c(t,Bo))}),oa=In(function(t){var e=mo(t);return Bo(e)&&(e=q),Xn(c(t,Bo),Ni(e,2))}),ra=In(function(t){var e=mo(t);return e="function"==typeof e?e:q,Xn(c(t,Bo),q,e)}),sa=In(yo),aa=In(function(t){var e=t.length,n=e>1?t[e-1]:q;return n="function"==typeof n?(t.pop(),n):q,bo(t,n)}),la=Oi(function(t){var e=t.length,n=e?t[0]:0,i=this.__wrapped__,r=function(e){return Te(e,t)};return!(e>1||this.__actions__.length)&&i instanceof z&&$i(n)?((i=i.slice(n,+n+(e?1:0))).__actions__.push({func:jo,args:[r],thisArg:q}),new o(i,this.__chain__).thru(function(t){return e&&!t.length&&t.push(q),t})):this.thru(r)}),ua=di(function(t,e,n){Cr.call(t,n)?++t[n]:ze(t,n,1)}),ca=yi(ho),ha=yi(fo),da=di(function(t,e,n){Cr.call(t,n)?t[n].push(e):ze(t,n,[e])}),fa=In(function(t,e,n){var i=-1,o="function"==typeof e,s=Mo(t)?vr(t.length):[];return Ls(t,function(t){s[++i]=o?r(e,t,n):vn(t,e,n)}),s}),pa=di(function(t,e,n){ze(t,n,e)}),va=di(function(t,e,n){t[n?0:1].push(e)},function(){return[[],[]]}),ma=In(function(t,e){if(null==t)return[];var n=e.length;return n>1&&Gi(t,e[0],e[1])?e=[]:n>2&&Gi(e[0],e[1],e[2])&&(e=[e[0]]),Cn(t,He(e,1),[])}),_a=Gr||function(){return $e.Date.now()},ga=In(function(t,e,n){var i=1;if(n.length){var o=R(n,Ri(ga));i|=K}return Pi(t,i,e,n,o)}),ya=In(function(t,e,n){var i=3;if(n.length){var o=R(n,Ri(ya));i|=K}return Pi(e,i,t,n,o)}),ba=In(function(t,e){return Ae(t,1,e)}),wa=In(function(t,e,n){return Ae(t,$o(e)||0,n)});Co.Cache=fe;var ja,xa=Bs(function(t,e){var n=(e=1==e.length&&Aa(e[0])?f(e[0],A(Ni())):f(He(e,1),A(Ni()))).length;return In(function(i){for(var o=-1,s=rs(i.length,n);++o<s;)i[o]=e[o].call(this,i[o]);return r(t,this,i)})}),ka=In(function(t,e){var n=R(e,Ri(ka));return Pi(t,K,q,e,n)}),za=In(function(t,e){var n=R(e,Ri(za));return Pi(t,X,q,e,n)}),Ta=Oi(function(t,e){return Pi(t,tt,q,q,q,e)}),La=Li(an),Sa=Li(function(t,e){return t>=e}),Ca=mn(function(){return arguments}())?mn:function(t){return Fo(t)&&Cr.call(t,"callee")&&!Ur.call(t,"callee")},Aa=vr.isArray,Pa=tn?A(tn):function(t){return Fo(t)&&Qe(t)==jt},Ma=ts||fr,Ba=en?A(en):function(t){return Fo(t)&&Qe(t)==ut},Ea=nn?A(nn):function(t){return Fo(t)&&Fs(t)==ft},Ia=on?A(on):function(t){return Fo(t)&&Qe(t)==_t},Oa=rn?A(rn):function(t){return Fo(t)&&Fs(t)==gt},Da=sn?A(sn):function(t){return Fo(t)&&Do(t.length)&&!!Ne[Qe(t)]},Za=Li(xn),Fa=Li(function(t,e){return t<=e}),Ra=fi(function(t,e){if(Xi(e)||Mo(e))hi(e,Qo(e),t);else for(var n in e)Cr.call(e,n)&&we(t,n,e[n])}),Na=fi(function(t,e){hi(e,tr(e),t)}),Ua=fi(function(t,e,n,i){hi(e,tr(e),t,i)}),Ha=fi(function(t,e,n,i){hi(e,Qo(e),t,i)}),Va=Oi(Te),Wa=In(function(t,e){t=br(t);var n=-1,i=e.length,o=i>2?e[2]:q;for(o&&Gi(e[0],e[1],o)&&(i=1);++n<i;)for(var r=e[n],s=tr(r),a=-1,l=s.length;++a<l;){var u=s[a],c=t[u];(c===q||Po(c,Tr[u])&&!Cr.call(t,u))&&(t[u]=r[u])}return t}),qa=In(function(t){return t.push(q,Bi),r(Ka,q,t)}),Ja=ji(function(t,e,n){null!=e&&"function"!=typeof e.toString&&(e=Mr.call(e)),t[e]=n},sr(ar)),$a=ji(function(t,e,n){null!=e&&"function"!=typeof e.toString&&(e=Mr.call(e)),Cr.call(t,e)?t[e].push(n):t[e]=[n]},Ni),Ga=In(vn),Ya=fi(function(t,e,n){Ln(t,e,n)}),Ka=fi(function(t,e,n,i){Ln(t,e,n,i)}),Xa=Oi(function(t,e){var n={};if(null==t)return n;var i=!1;e=f(e,function(e){return e=ni(e,t),i||(i=e.length>1),e}),hi(t,Zi(t),n),i&&(n=Se(n,7,Ei));for(var o=e.length;o--;)$n(n,e[o]);return n}),Qa=Oi(function(t,e){return null==t?{}:function(t,e){return An(t,e,function(e,n){return Xo(t,n)})}(t,e)}),tl=Ai(Qo),el=Ai(tr),nl=_i(function(t,e,n){return e=e.toLowerCase(),t+(n?ir(e):e)}),il=_i(function(t,e,n){return t+(n?"-":"")+e.toLowerCase()}),ol=_i(function(t,e,n){return t+(n?" ":"")+e.toLowerCase()}),rl=mi("toLowerCase"),sl=_i(function(t,e,n){return t+(n?"_":"")+e.toLowerCase()}),al=_i(function(t,e,n){return t+(n?" ":"")+ul(e)}),ll=_i(function(t,e,n){return t+(n?" ":"")+e.toUpperCase()}),ul=mi("toUpperCase"),cl=In(function(t,e){try{return r(t,q,e)}catch(t){return Eo(t)?t:new _r(t)}}),hl=Oi(function(t,e){return a(e,function(e){e=lo(e),ze(t,e,ga(t[e],t))}),t}),dl=bi(),fl=bi(!0),pl=In(function(t,e){return function(n){return vn(n,t,e)}}),vl=In(function(t,e){return function(n){return vn(t,n,e)}}),ml=ki(f),_l=ki(u),gl=ki(_),yl=Ti(),bl=Ti(!0),wl=xi(function(t,e){return t+e},0),jl=Ci("ceil"),xl=xi(function(t,e){return t/e},1),kl=Ci("floor"),zl=xi(function(t,e){return t*e},1),Tl=Ci("round"),Ll=xi(function(t,e){return t-e},0);return n.after=function(t,e){if("function"!=typeof e)throw new xr(J);return t=qo(t),function(){if(--t<1)return e.apply(this,arguments)}},n.ary=To,n.assign=Ra,n.assignIn=Na,n.assignInWith=Ua,n.assignWith=Ha,n.at=Va,n.before=Lo,n.bind=ga,n.bindAll=hl,n.bindKey=ya,n.castArray=function(){if(!arguments.length)return[];var t=arguments[0];return Aa(t)?t:[t]},n.chain=wo,n.chunk=function(t,e,n){e=(n?Gi(t,e,n):e===q)?1:os(qo(e),0);var i=null==t?0:t.length;if(!i||e<1)return[];for(var o=0,r=0,s=vr(Kr(i/e));o<i;)s[r++]=Rn(t,o,o+=e);return s},n.compact=function(t){for(var e=-1,n=null==t?0:t.length,i=0,o=[];++e<n;){var r=t[e];r&&(o[i++]=r)}return o},n.concat=function(){var t=arguments.length;if(!t)return[];for(var e=vr(t-1),n=arguments[0],i=t;i--;)e[i-1]=arguments[i];return p(Aa(n)?ci(n):[n],He(e,1))},n.cond=function(t){var e=null==t?0:t.length,n=Ni();return t=e?f(t,function(t){if("function"!=typeof t[1])throw new xr(J);return[n(t[0]),t[1]]}):[],In(function(n){for(var i=-1;++i<e;){var o=t[i];if(r(o[0],this,n))return r(o[1],this,n)}})},n.conforms=function(t){return function(t){var e=Qo(t);return function(n){return Ce(n,t,e)}}(Se(t,1))},n.constant=sr,n.countBy=ua,n.create=function(t,e){var n=Ts(t);return null==e?n:ke(n,e)},n.curry=function t(e,n,i){var o=Pi(e,8,q,q,q,q,q,n=i?q:n);return o.placeholder=t.placeholder,o},n.curryRight=function t(e,n,i){var o=Pi(e,Y,q,q,q,q,q,n=i?q:n);return o.placeholder=t.placeholder,o},n.debounce=So,n.defaults=Wa,n.defaultsDeep=qa,n.defer=ba,n.delay=wa,n.difference=Ws,n.differenceBy=qs,n.differenceWith=Js,n.drop=function(t,e,n){var i=null==t?0:t.length;return i?Rn(t,(e=n||e===q?1:qo(e))<0?0:e,i):[]},n.dropRight=function(t,e,n){var i=null==t?0:t.length;return i?Rn(t,0,(e=i-(e=n||e===q?1:qo(e)))<0?0:e):[]},n.dropRightWhile=function(t,e){return t&&t.length?Yn(t,Ni(e,3),!0,!0):[]},n.dropWhile=function(t,e){return t&&t.length?Yn(t,Ni(e,3),!0):[]},n.fill=function(t,e,n,i){var o=null==t?0:t.length;return o?(n&&"number"!=typeof n&&Gi(t,e,n)&&(n=0,i=o),function(t,e,n,i){var o=t.length;for((n=qo(n))<0&&(n=-n>o?0:o+n),(i=i===q||i>o?o:qo(i))<0&&(i+=o),i=n>i?0:Jo(i);n<i;)t[n++]=e;return t}(t,e,n,i)):[]},n.filter=function(t,e){return(Aa(t)?c:De)(t,Ni(e,3))},n.flatMap=function(t,e){return He(zo(t,e),1)},n.flatMapDeep=function(t,e){return He(zo(t,e),et)},n.flatMapDepth=function(t,e,n){return n=n===q?1:qo(n),He(zo(t,e),n)},n.flatten=po,n.flattenDeep=function(t){return(null==t?0:t.length)?He(t,et):[]},n.flattenDepth=function(t,e){return(null==t?0:t.length)?He(t,e=e===q?1:qo(e)):[]},n.flip=function(t){return Pi(t,512)},n.flow=dl,n.flowRight=fl,n.fromPairs=function(t){for(var e=-1,n=null==t?0:t.length,i={};++e<n;){var o=t[e];i[o[0]]=o[1]}return i},n.functions=function(t){return null==t?[]:Ge(t,Qo(t))},n.functionsIn=function(t){return null==t?[]:Ge(t,tr(t))},n.groupBy=da,n.initial=function(t){return(null==t?0:t.length)?Rn(t,0,-1):[]},n.intersection=$s,n.intersectionBy=Gs,n.intersectionWith=Ys,n.invert=Ja,n.invertBy=$a,n.invokeMap=fa,n.iteratee=lr,n.keyBy=pa,n.keys=Qo,n.keysIn=tr,n.map=zo,n.mapKeys=function(t,e){var n={};return e=Ni(e,3),qe(t,function(t,i,o){ze(n,e(t,i,o),t)}),n},n.mapValues=function(t,e){var n={};return e=Ni(e,3),qe(t,function(t,i,o){ze(n,i,e(t,i,o))}),n},n.matches=function(t){return zn(Se(t,1))},n.matchesProperty=function(t,e){return Tn(t,Se(e,1))},n.memoize=Co,n.merge=Ya,n.mergeWith=Ka,n.method=pl,n.methodOf=vl,n.mixin=ur,n.negate=Ao,n.nthArg=function(t){return t=qo(t),In(function(e){return Sn(e,t)})},n.omit=Xa,n.omitBy=function(t,e){return er(t,Ao(Ni(e)))},n.once=function(t){return Lo(2,t)},n.orderBy=function(t,e,n,i){return null==t?[]:(Aa(e)||(e=null==e?[]:[e]),Aa(n=i?q:n)||(n=null==n?[]:[n]),Cn(t,e,n))},n.over=ml,n.overArgs=xa,n.overEvery=_l,n.overSome=gl,n.partial=ka,n.partialRight=za,n.partition=va,n.pick=Qa,n.pickBy=er,n.property=hr,n.propertyOf=function(t){return function(e){return null==t?q:Ye(t,e)}},n.pull=Ks,n.pullAll=_o,n.pullAllBy=function(t,e,n){return t&&t.length&&e&&e.length?Pn(t,e,Ni(n,2)):t},n.pullAllWith=function(t,e,n){return t&&t.length&&e&&e.length?Pn(t,e,q,n):t},n.pullAt=Xs,n.range=yl,n.rangeRight=bl,n.rearg=Ta,n.reject=function(t,e){return(Aa(t)?c:De)(t,Ao(Ni(e,3)))},n.remove=function(t,e){var n=[];if(!t||!t.length)return n;var i=-1,o=[],r=t.length;for(e=Ni(e,3);++i<r;){var s=t[i];e(s,i,t)&&(n.push(s),o.push(i))}return Mn(t,o),n},n.rest=function(t,e){if("function"!=typeof t)throw new xr(J);return In(t,e=e===q?e:qo(e))},n.reverse=go,n.sampleSize=function(t,e,n){return e=(n?Gi(t,e,n):e===q)?1:qo(e),(Aa(t)?ge:Dn)(t,e)},n.set=function(t,e,n){return null==t?t:Zn(t,e,n)},n.setWith=function(t,e,n,i){return i="function"==typeof i?i:q,null==t?t:Zn(t,e,n,i)},n.shuffle=function(t){return(Aa(t)?ye:Fn)(t)},n.slice=function(t,e,n){var i=null==t?0:t.length;return i?(n&&"number"!=typeof n&&Gi(t,e,n)?(e=0,n=i):(e=null==e?0:qo(e),n=n===q?i:qo(n)),Rn(t,e,n)):[]},n.sortBy=ma,n.sortedUniq=function(t){return t&&t.length?Vn(t):[]},n.sortedUniqBy=function(t,e){return t&&t.length?Vn(t,Ni(e,2)):[]},n.split=function(t,e,n){return n&&"number"!=typeof n&&Gi(t,e,n)&&(e=n=q),(n=n===q?ot:n>>>0)?(t=Yo(t))&&("string"==typeof e||null!=e&&!Ia(e))&&!(e=qn(e))&&D(t)?ii(V(t),0,n):t.split(e,n):[]},n.spread=function(t,e){if("function"!=typeof t)throw new xr(J);return e=null==e?0:os(qo(e),0),In(function(n){var i=n[e],o=ii(n,0,e);return i&&p(o,i),r(t,this,o)})},n.tail=function(t){var e=null==t?0:t.length;return e?Rn(t,1,e):[]},n.take=function(t,e,n){return t&&t.length?Rn(t,0,(e=n||e===q?1:qo(e))<0?0:e):[]},n.takeRight=function(t,e,n){var i=null==t?0:t.length;return i?Rn(t,(e=i-(e=n||e===q?1:qo(e)))<0?0:e,i):[]},n.takeRightWhile=function(t,e){return t&&t.length?Yn(t,Ni(e,3),!1,!0):[]},n.takeWhile=function(t,e){return t&&t.length?Yn(t,Ni(e,3)):[]},n.tap=function(t,e){return e(t),t},n.throttle=function(t,e,n){var i=!0,o=!0;if("function"!=typeof t)throw new xr(J);return Zo(n)&&(i="leading"in n?!!n.leading:i,o="trailing"in n?!!n.trailing:o),So(t,e,{leading:i,maxWait:e,trailing:o})},n.thru=jo,n.toArray=Vo,n.toPairs=tl,n.toPairsIn=el,n.toPath=function(t){return Aa(t)?f(t,lo):Ho(t)?[t]:ci(Vs(Yo(t)))},n.toPlainObject=Go,n.transform=function(t,e,n){var i=Aa(t),o=i||Ma(t)||Da(t);if(e=Ni(e,4),null==n){var r=t&&t.constructor;n=o?i?new r:[]:Zo(t)&&Io(r)?Ts(Rr(t)):{}}return(o?a:qe)(t,function(t,i,o){return e(n,t,i,o)}),n},n.unary=function(t){return To(t,1)},n.union=Qs,n.unionBy=ta,n.unionWith=ea,n.uniq=function(t){return t&&t.length?Jn(t):[]},n.uniqBy=function(t,e){return t&&t.length?Jn(t,Ni(e,2)):[]},n.uniqWith=function(t,e){return e="function"==typeof e?e:q,t&&t.length?Jn(t,q,e):[]},n.unset=function(t,e){return null==t||$n(t,e)},n.unzip=yo,n.unzipWith=bo,n.update=function(t,e,n){return null==t?t:Gn(t,e,ei(n))},n.updateWith=function(t,e,n,i){return i="function"==typeof i?i:q,null==t?t:Gn(t,e,ei(n),i)},n.values=nr,n.valuesIn=function(t){return null==t?[]:P(t,tr(t))},n.without=na,n.words=rr,n.wrap=function(t,e){return ka(ei(e),t)},n.xor=ia,n.xorBy=oa,n.xorWith=ra,n.zip=sa,n.zipObject=function(t,e){return Qn(t||[],e||[],we)},n.zipObjectDeep=function(t,e){return Qn(t||[],e||[],Zn)},n.zipWith=aa,n.entries=tl,n.entriesIn=el,n.extend=Na,n.extendWith=Ua,ur(n,n),n.add=wl,n.attempt=cl,n.camelCase=nl,n.capitalize=ir,n.ceil=jl,n.clamp=function(t,e,n){return n===q&&(n=e,e=q),n!==q&&(n=(n=$o(n))==n?n:0),e!==q&&(e=(e=$o(e))==e?e:0),Le($o(t),e,n)},n.clone=function(t){return Se(t,4)},n.cloneDeep=function(t){return Se(t,5)},n.cloneDeepWith=function(t,e){return Se(t,5,e="function"==typeof e?e:q)},n.cloneWith=function(t,e){return Se(t,4,e="function"==typeof e?e:q)},n.conformsTo=function(t,e){return null==e||Ce(t,e,Qo(e))},n.deburr=or,n.defaultTo=function(t,e){return null==t||t!=t?e:t},n.divide=xl,n.endsWith=function(t,e,n){t=Yo(t),e=qn(e);var i=t.length,o=n=n===q?i:Le(qo(n),0,i);return(n-=e.length)>=0&&t.slice(n,o)==e},n.eq=Po,n.escape=function(t){return(t=Yo(t))&&Ft.test(t)?t.replace(Dt,un):t},n.escapeRegExp=function(t){return(t=Yo(t))&&Jt.test(t)?t.replace(qt,"\\$&"):t},n.every=function(t,e,n){var i=Aa(t)?u:Me;return n&&Gi(t,e,n)&&(e=q),i(t,Ni(e,3))},n.find=ca,n.findIndex=ho,n.findKey=function(t,e){return g(t,Ni(e,3),qe)},n.findLast=ha,n.findLastIndex=fo,n.findLastKey=function(t,e){return g(t,Ni(e,3),Je)},n.floor=kl,n.forEach=xo,n.forEachRight=ko,n.forIn=function(t,e){return null==t?t:Cs(t,Ni(e,3),tr)},n.forInRight=function(t,e){return null==t?t:As(t,Ni(e,3),tr)},n.forOwn=function(t,e){return t&&qe(t,Ni(e,3))},n.forOwnRight=function(t,e){return t&&Je(t,Ni(e,3))},n.get=Ko,n.gt=La,n.gte=Sa,n.has=function(t,e){return null!=t&&Wi(t,e,dn)},n.hasIn=Xo,n.head=vo,n.identity=ar,n.includes=function(t,e,n,i){t=Mo(t)?t:nr(t),n=n&&!i?qo(n):0;var o=t.length;return n<0&&(n=os(o+n,0)),Uo(t)?n<=o&&t.indexOf(e,n)>-1:!!o&&b(t,e,n)>-1},n.indexOf=function(t,e,n){var i=null==t?0:t.length;if(!i)return-1;var o=null==n?0:qo(n);return o<0&&(o=os(i+o,0)),b(t,e,o)},n.inRange=function(t,e,n){return e=Wo(e),n===q?(n=e,e=0):n=Wo(n),function(t,e,n){return t>=rs(e,n)&&t<os(e,n)}(t=$o(t),e,n)},n.invoke=Ga,n.isArguments=Ca,n.isArray=Aa,n.isArrayBuffer=Pa,n.isArrayLike=Mo,n.isArrayLikeObject=Bo,n.isBoolean=function(t){return!0===t||!1===t||Fo(t)&&Qe(t)==lt},n.isBuffer=Ma,n.isDate=Ba,n.isElement=function(t){return Fo(t)&&1===t.nodeType&&!No(t)},n.isEmpty=function(t){if(null==t)return!0;if(Mo(t)&&(Aa(t)||"string"==typeof t||"function"==typeof t.splice||Ma(t)||Da(t)||Ca(t)))return!t.length;var e=Fs(t);if(e==ft||e==gt)return!t.size;if(Xi(t))return!wn(t).length;for(var n in t)if(Cr.call(t,n))return!1;return!0},n.isEqual=function(t,e){return _n(t,e)},n.isEqualWith=function(t,e,n){var i=(n="function"==typeof n?n:q)?n(t,e):q;return i===q?_n(t,e,q,n):!!i},n.isError=Eo,n.isFinite=function(t){return"number"==typeof t&&es(t)},n.isFunction=Io,n.isInteger=Oo,n.isLength=Do,n.isMap=Ea,n.isMatch=function(t,e){return t===e||gn(t,e,Hi(e))},n.isMatchWith=function(t,e,n){return n="function"==typeof n?n:q,gn(t,e,Hi(e),n)},n.isNaN=function(t){return Ro(t)&&t!=+t},n.isNative=function(t){if(Rs(t))throw new _r("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return yn(t)},n.isNil=function(t){return null==t},n.isNull=function(t){return null===t},n.isNumber=Ro,n.isObject=Zo,n.isObjectLike=Fo,n.isPlainObject=No,n.isRegExp=Ia,n.isSafeInteger=function(t){return Oo(t)&&t>=-9007199254740991&&t<=nt},n.isSet=Oa,n.isString=Uo,n.isSymbol=Ho,n.isTypedArray=Da,n.isUndefined=function(t){return t===q},n.isWeakMap=function(t){return Fo(t)&&Fs(t)==wt},n.isWeakSet=function(t){return Fo(t)&&"[object WeakSet]"==Qe(t)},n.join=function(t,e){return null==t?"":ns.call(t,e)},n.kebabCase=il,n.last=mo,n.lastIndexOf=function(t,e,n){var i=null==t?0:t.length;if(!i)return-1;var o=i;return n!==q&&(o=(o=qo(n))<0?os(i+o,0):rs(o,i-1)),e==e?function(t,e,n){for(var i=n+1;i--;)if(t[i]===e)return i;return i}(t,e,o):y(t,j,o,!0)},n.lowerCase=ol,n.lowerFirst=rl,n.lt=Za,n.lte=Fa,n.max=function(t){return t&&t.length?Ie(t,ar,an):q},n.maxBy=function(t,e){return t&&t.length?Ie(t,Ni(e,2),an):q},n.mean=function(t){return x(t,ar)},n.meanBy=function(t,e){return x(t,Ni(e,2))},n.min=function(t){return t&&t.length?Ie(t,ar,xn):q},n.minBy=function(t,e){return t&&t.length?Ie(t,Ni(e,2),xn):q},n.stubArray=dr,n.stubFalse=fr,n.stubObject=function(){return{}},n.stubString=function(){return""},n.stubTrue=function(){return!0},n.multiply=zl,n.nth=function(t,e){return t&&t.length?Sn(t,qo(e)):q},n.noConflict=function(){return $e._===this&&($e._=Er),this},n.noop=cr,n.now=_a,n.pad=function(t,e,n){t=Yo(t);var i=(e=qo(e))?H(t):0;if(!e||i>=e)return t;var o=(e-i)/2;return zi(Xr(o),n)+t+zi(Kr(o),n)},n.padEnd=function(t,e,n){t=Yo(t);var i=(e=qo(e))?H(t):0;return e&&i<e?t+zi(e-i,n):t},n.padStart=function(t,e,n){t=Yo(t);var i=(e=qo(e))?H(t):0;return e&&i<e?zi(e-i,n)+t:t},n.parseInt=function(t,e,n){return n||null==e?e=0:e&&(e=+e),as(Yo(t).replace($t,""),e||0)},n.random=function(t,e,n){if(n&&"boolean"!=typeof n&&Gi(t,e,n)&&(e=n=q),n===q&&("boolean"==typeof e?(n=e,e=q):"boolean"==typeof t&&(n=t,t=q)),t===q&&e===q?(t=0,e=1):(t=Wo(t),e===q?(e=t,t=0):e=Wo(e)),t>e){var i=t;t=e,e=i}if(n||t%1||e%1){var o=ls();return rs(t+o*(e-t+Ve("1e-"+((o+"").length-1))),e)}return Bn(t,e)},n.reduce=function(t,e,n){var i=Aa(t)?v:T,o=arguments.length<3;return i(t,Ni(e,4),n,o,Ls)},n.reduceRight=function(t,e,n){var i=Aa(t)?m:T,o=arguments.length<3;return i(t,Ni(e,4),n,o,Ss)},n.repeat=function(t,e,n){return e=(n?Gi(t,e,n):e===q)?1:qo(e),En(Yo(t),e)},n.replace=function(){var t=arguments,e=Yo(t[0]);return t.length<3?e:e.replace(t[1],t[2])},n.result=function(t,e,n){var i=-1,o=(e=ni(e,t)).length;for(o||(o=1,t=q);++i<o;){var r=null==t?q:t[lo(e[i])];r===q&&(i=o,r=n),t=Io(r)?r.call(t):r}return t},n.round=Tl,n.runInContext=t,n.sample=function(t){return(Aa(t)?_e:On)(t)},n.size=function(t){if(null==t)return 0;if(Mo(t))return Uo(t)?H(t):t.length;var e=Fs(t);return e==ft||e==gt?t.size:wn(t).length},n.snakeCase=sl,n.some=function(t,e,n){var i=Aa(t)?_:Nn;return n&&Gi(t,e,n)&&(e=q),i(t,Ni(e,3))},n.sortedIndex=function(t,e){return Un(t,e)},n.sortedIndexBy=function(t,e,n){return Hn(t,e,Ni(n,2))},n.sortedIndexOf=function(t,e){var n=null==t?0:t.length;if(n){var i=Un(t,e);if(i<n&&Po(t[i],e))return i}return-1},n.sortedLastIndex=function(t,e){return Un(t,e,!0)},n.sortedLastIndexBy=function(t,e,n){return Hn(t,e,Ni(n,2),!0)},n.sortedLastIndexOf=function(t,e){if(null==t?0:t.length){var n=Un(t,e,!0)-1;if(Po(t[n],e))return n}return-1},n.startCase=al,n.startsWith=function(t,e,n){return t=Yo(t),n=null==n?0:Le(qo(n),0,t.length),e=qn(e),t.slice(n,n+e.length)==e},n.subtract=Ll,n.sum=function(t){return t&&t.length?L(t,ar):0},n.sumBy=function(t,e){return t&&t.length?L(t,Ni(e,2)):0},n.template=function(t,e,i){var o=n.templateSettings;i&&Gi(t,e,i)&&(e=q),t=Yo(t),e=Ua({},e,o,Mi);var r,s,a=Ua({},e.imports,o.imports,Mi),l=Qo(a),u=P(a,l),c=0,h=e.interpolate||ce,d="__p += '",f=wr((e.escape||ce).source+"|"+h.source+"|"+(h===Ut?ne:ce).source+"|"+(e.evaluate||ce).source+"|$","g"),p="//# sourceURL="+(Cr.call(e,"sourceURL")?(e.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Re+"]")+"\n";t.replace(f,function(e,n,i,o,a,l){return i||(i=o),d+=t.slice(c,l).replace(he,O),n&&(r=!0,d+="' +\n__e("+n+") +\n'"),a&&(s=!0,d+="';\n"+a+";\n__p += '"),i&&(d+="' +\n((__t = ("+i+")) == null ? '' : __t) +\n'"),c=l+e.length,e}),d+="';\n";var v=Cr.call(e,"variable")&&e.variable;if(v){if(te.test(v))throw new _r("Invalid `variable` option passed into `_.template`")}else d="with (obj) {\n"+d+"\n}\n";d=(s?d.replace(Bt,""):d).replace(Et,"$1").replace(It,"$1;"),d="function("+(v||"obj")+") {\n"+(v?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(r?", __e = _.escape":"")+(s?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+d+"return __p\n}";var m=cl(function(){return gr(l,p+"return "+d).apply(q,u)});if(m.source=d,Eo(m))throw m;return m},n.times=function(t,e){if((t=qo(t))<1||t>nt)return[];var n=ot,i=rs(t,ot);e=Ni(e),t-=ot;for(var o=S(i,e);++n<t;)e(n);return o},n.toFinite=Wo,n.toInteger=qo,n.toLength=Jo,n.toLower=function(t){return Yo(t).toLowerCase()},n.toNumber=$o,n.toSafeInteger=function(t){return t?Le(qo(t),-9007199254740991,nt):0===t?t:0},n.toString=Yo,n.toUpper=function(t){return Yo(t).toUpperCase()},n.trim=function(t,e,n){if((t=Yo(t))&&(n||e===q))return C(t);if(!t||!(e=qn(e)))return t;var i=V(t),o=V(e);return ii(i,B(i,o),E(i,o)+1).join("")},n.trimEnd=function(t,e,n){if((t=Yo(t))&&(n||e===q))return t.slice(0,W(t)+1);if(!t||!(e=qn(e)))return t;var i=V(t);return ii(i,0,E(i,V(e))+1).join("")},n.trimStart=function(t,e,n){if((t=Yo(t))&&(n||e===q))return t.replace($t,"");if(!t||!(e=qn(e)))return t;var i=V(t);return ii(i,B(i,V(e))).join("")},n.truncate=function(t,e){var n=30,i="...";if(Zo(e)){var o="separator"in e?e.separator:o;n="length"in e?qo(e.length):n,i="omission"in e?qn(e.omission):i}var r=(t=Yo(t)).length;if(D(t)){var s=V(t);r=s.length}if(n>=r)return t;var a=n-H(i);if(a<1)return i;var l=s?ii(s,0,a).join(""):t.slice(0,a);if(o===q)return l+i;if(s&&(a+=l.length-a),Ia(o)){if(t.slice(a).search(o)){var u,c=l;for(o.global||(o=wr(o.source,Yo(ie.exec(o))+"g")),o.lastIndex=0;u=o.exec(c);)var h=u.index;l=l.slice(0,h===q?a:h)}}else if(t.indexOf(qn(o),a)!=a){var d=l.lastIndexOf(o);d>-1&&(l=l.slice(0,d))}return l+i},n.unescape=function(t){return(t=Yo(t))&&Zt.test(t)?t.replace(Ot,cn):t},n.uniqueId=function(t){var e=++Ar;return Yo(t)+e},n.upperCase=ll,n.upperFirst=ul,n.each=xo,n.eachRight=ko,n.first=vo,ur(n,(ja={},qe(n,function(t,e){Cr.call(n.prototype,e)||(ja[e]=t)}),ja),{chain:!1}),n.VERSION="4.17.21",a(["bind","bindKey","curry","curryRight","partial","partialRight"],function(t){n[t].placeholder=n}),a(["drop","take"],function(t,e){z.prototype[t]=function(n){n=n===q?1:os(qo(n),0);var i=this.__filtered__&&!e?new z(this):this.clone();return i.__filtered__?i.__takeCount__=rs(n,i.__takeCount__):i.__views__.push({size:rs(n,ot),type:t+(i.__dir__<0?"Right":"")}),i},z.prototype[t+"Right"]=function(e){return this.reverse()[t](e).reverse()}}),a(["filter","map","takeWhile"],function(t,e){var n=e+1,i=1==n||3==n;z.prototype[t]=function(t){var e=this.clone();return e.__iteratees__.push({iteratee:Ni(t,3),type:n}),e.__filtered__=e.__filtered__||i,e}}),a(["head","last"],function(t,e){var n="take"+(e?"Right":"");z.prototype[t]=function(){return this[n](1).value()[0]}}),a(["initial","tail"],function(t,e){var n="drop"+(e?"":"Right");z.prototype[t]=function(){return this.__filtered__?new z(this):this[n](1)}}),z.prototype.compact=function(){return this.filter(ar)},z.prototype.find=function(t){return this.filter(t).head()},z.prototype.findLast=function(t){return this.reverse().find(t)},z.prototype.invokeMap=In(function(t,e){return"function"==typeof t?new z(this):this.map(function(n){return vn(n,t,e)})}),z.prototype.reject=function(t){return this.filter(Ao(Ni(t)))},z.prototype.slice=function(t,e){t=qo(t);var n=this;return n.__filtered__&&(t>0||e<0)?new z(n):(t<0?n=n.takeRight(-t):t&&(n=n.drop(t)),e!==q&&(n=(e=qo(e))<0?n.dropRight(-e):n.take(e-t)),n)},z.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},z.prototype.toArray=function(){return this.take(ot)},qe(z.prototype,function(t,e){var i=/^(?:filter|find|map|reject)|While$/.test(e),r=/^(?:head|last)$/.test(e),s=n[r?"take"+("last"==e?"Right":""):e],a=r||/^find/.test(e);s&&(n.prototype[e]=function(){var e=this.__wrapped__,l=r?[1]:arguments,u=e instanceof z,c=l[0],h=u||Aa(e),d=function(t){var e=s.apply(n,p([t],l));return r&&f?e[0]:e};h&&i&&"function"==typeof c&&1!=c.length&&(u=h=!1);var f=this.__chain__,v=!!this.__actions__.length,m=a&&!f,_=u&&!v;if(!a&&h){e=_?e:new z(this);var g=t.apply(e,l);return g.__actions__.push({func:jo,args:[d],thisArg:q}),new o(g,f)}return m&&_?t.apply(this,l):(g=this.thru(d),m?r?g.value()[0]:g.value():g)})}),a(["pop","push","shift","sort","splice","unshift"],function(t){var e=kr[t],i=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",o=/^(?:pop|shift)$/.test(t);n.prototype[t]=function(){var t=arguments;if(o&&!this.__chain__){var n=this.value();return e.apply(Aa(n)?n:[],t)}return this[i](function(n){return e.apply(Aa(n)?n:[],t)})}}),qe(z.prototype,function(t,e){var i=n[e];if(i){var o=i.name+"";Cr.call(_s,o)||(_s[o]=[]),_s[o].push({name:e,func:i})}}),_s[wi(q,2).name]=[{name:"wrapper",func:q}],z.prototype.clone=function(){var t=new z(this.__wrapped__);return t.__actions__=ci(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=ci(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=ci(this.__views__),t},z.prototype.reverse=function(){if(this.__filtered__){var t=new z(this);t.__dir__=-1,t.__filtered__=!0}else(t=this.clone()).__dir__*=-1;return t},z.prototype.value=function(){var t=this.__wrapped__.value(),e=this.__dir__,n=Aa(t),i=e<0,o=n?t.length:0,r=function(t,e,n){for(var i=-1,o=n.length;++i<o;){var r=n[i],s=r.size;switch(r.type){case"drop":t+=s;break;case"dropRight":e-=s;break;case"take":e=rs(e,t+s);break;case"takeRight":t=os(t,e-s)}}return{start:t,end:e}}(0,o,this.__views__),s=r.start,a=r.end,l=a-s,u=i?a:s-1,c=this.__iteratees__,h=c.length,d=0,f=rs(l,this.__takeCount__);if(!n||!i&&o==l&&f==l)return Kn(t,this.__actions__);var p=[];t:for(;l--&&d<f;){for(var v=-1,m=t[u+=e];++v<h;){var _=c[v],g=_.iteratee,y=_.type,b=g(m);if(2==y)m=b;else if(!b){if(1==y)continue t;break t}}p[d++]=m}return p},n.prototype.at=la,n.prototype.chain=function(){return wo(this)},n.prototype.commit=function(){return new o(this.value(),this.__chain__)},n.prototype.next=function(){this.__values__===q&&(this.__values__=Vo(this.value()));var t=this.__index__>=this.__values__.length;return{done:t,value:t?q:this.__values__[this.__index__++]}},n.prototype.plant=function(t){for(var e,n=this;n instanceof i;){var o=co(n);o.__index__=0,o.__values__=q,e?r.__wrapped__=o:e=o;var r=o;n=n.__wrapped__}return r.__wrapped__=t,e},n.prototype.reverse=function(){var t=this.__wrapped__;if(t instanceof z){var e=t;return this.__actions__.length&&(e=new z(this)),(e=e.reverse()).__actions__.push({func:jo,args:[go],thisArg:q}),new o(e,this.__chain__)}return this.thru(go)},n.prototype.toJSON=n.prototype.valueOf=n.prototype.value=function(){return Kn(this.__wrapped__,this.__actions__)},n.prototype.first=n.prototype.head,Wr&&(n.prototype[Wr]=function(){return this}),n}();$e._=hn,(o=function(){return hn}.call(e,n,e,i))===q||(i.exports=o)}).call(this)}).call(this,n("yLpj"),n("YuTi")(t))},OKyS:function(t,e,n){var i=n("LboF"),o=n("8MIm");"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[t.i,o,""]]),i(o,{insert:"head",singleton:!1}),t.exports=o.locals||{}},UBF9:function(t,e,n){"use strict";var i=n("8eWk");n.n(i).a},YuTi:function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},qFNJ:function(t,e,n){(t.exports=n("I1BE")(void 0)).push([t.i,'.video-wrapper .show-time .video-js .vjs-time-control:not(.vjs-remaining-time){padding-left:.5em;padding-right:0;min-width:0;display:block}.video-wrapper .video-js .vjs-remaining-time{display:none}.video-wrapper .live .vjs-progress-control{visibility:hidden}.video-wrapper .av-loading .vjs-big-play-button,.video-wrapper .live .vjs-remaining-time,.video-wrapper .live .vjs-time-control{display:none}.video-wrapper .hide-big-play-button .vjs-big-play-button,.video-wrapper .hide-controls .vjs-control-bar,.video-wrapper .hide-fluent-button .live-player-fluent-btn,.video-wrapper .hide-fullscreen-button .vjs-fullscreen-control,.video-wrapper .hide-live-text .video-js .vjs-live-control .vjs-live-display,.video-wrapper .hide-pic-in-pic .video-js .vjs-picture-in-picture-control,.video-wrapper .hide-snapshot-button .vjs-snapshot-control,.video-wrapper .hide-stretch-button .live-player-stretch-btn,.video-wrapper .hide-waiting .vjs-seeking .vjs-loading-spinner,.video-wrapper .hide-waiting .vjs-waiting .vjs-loading-spinner,.video-wrapper .zoom-drawing .video-slot,.video-wrapper .zoom-drawing .video-title,.video-wrapper .zoom-drawing .vjs-control-bar{display:none!important}.video-wrapper .alt{position:absolute;left:0;top:0;right:0;bottom:0;vertical-align:middle;background-repeat:no-repeat;background-position:50% 50%;background-size:contain;background-color:#000;color:#fff;text-align:center}.video-wrapper .alt>table{width:100%;height:100%}.video-wrapper .alt>table tr>td{vertical-align:middle}.video-wrapper .video-js .video-water{pointer-events:none;left:0;top:0;right:0;bottom:0;position:absolute}.video-wrapper .video-js .video-slot{font-size:14px}.video-wrapper .video-js .video-title{font-size:14px;position:absolute;top:5px;right:5px;color:#fff;background-color:hsla(0,0%,50%,.5);border-radius:2px;padding:5px;max-width:120px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.video-wrapper .video-js .vjs-control-bar .vjs-button{cursor:pointer;outline:none}.video-wrapper .video-js .vjs-control-bar .vjs-icon-cog:before,.video-wrapper .video-js .vjs-control-bar .vjs-icon-spinner:before{font-size:1.4em;line-height:1.87}.video-wrapper .video-js .vjs-control-bar .vjs-playback-rate .vjs-menu :focus:not(:focus-visible){outline:none;background:#fff}.video-wrapper .vjs-error-display{display:none}.video-wrapper .video-js .vjs-time-control{font-size:1.035em;line-height:2.93em}.video-wrapper .vjs-resolution-button{color:#ccc;font-family:VideoJS}.video-wrapper .vjs-resolution-button .vjs-resolution-button-staticlabel:before{content:"\\F110";font-size:1.8em;line-height:1.7em}.video-wrapper .vjs-resolution-button .vjs-resolution-button-label{width:100%;height:.6em;display:block!important}.video-wrapper .vjs-resolution-button .vjs-resolution-button-label-ie{width:100%;height:.4em;display:block!important}.video-wrapper .vjs-resolution-button ul.vjs-menu-content{width:4em!important}.video-wrapper .vjs-resolution-button .vjs-menu{left:0}.video-wrapper .vjs-resolution-button .vjs-menu li{text-transform:none;font-size:1em;line-height:1.5em;font-family:Arial,Helvetica,sans-serif}.video-wrapper .vjs-audio-button{display:none!important}.video-wrapper .video-js .vjs-big-play-button .vjs-icon-placeholder:before,.video-wrapper .vjs-button>.vjs-icon-placeholder:before{position:relative!important}.video-wrapper .video-js .vjs-play-progress:before{top:-.33em!important}.video-wrapper .video-js .vjs-control:focus,.video-wrapper .video-js .vjs-control:focus:before,.video-wrapper .video-js .vjs-control:hover:before{text-shadow:none!important}@media screen and (-webkit-min-device-pixel-ratio:0){.video-wrapper .video-js .vjs-control-bar{font-size:14px}.video-wrapper .video-js .vjs-slider-vertical .vjs-volume-level:before{left:-.33em!important}}.video-wrapper.video-wrapper-stretch .alt,.video-wrapper.video-wrapper-stretch .video-js .vjs-poster{background-size:100% 100%}',""])},qtAY:function(t,e,n){"use strict";n.r(e),n("OKyS");var i=n("LvDl"),o=n.n(i),r=n("Iab2"),s=n.n(r);videojs.options.controlBar={volumePanel:{inline:!1}},videojs.options.flash.swf="liveplayer.swf",videojs.options.techOrder=["html5","flash"],videojs.log.level("off"),flvjs.LoggingControl.enableAll=!1;var a={name:"live-player",data:function(){return{player:null,liveCheckTimer:0,hlsTimer:0,fluentBtnCls:"live-player-fluent-btn",stretchBtnCls:"live-player-stretch-btn",snapFromOutside:!1,snapForPoster:!1,snapForReload:!1,showSlot:!1,fluent_:!0,muted_:!0,stretch_:!1,poster_:"",subVideoUrl_:"",avLoading:!1,reloadCnt:0,updateTimeAt:0,startAt:0,playAt:0,pauseAt:0,pauseBgAt:0,endedAt:0,errorAt:0,flvMediaDataSource:{},flvConfig:{},resolutionName:{sd:"标清",hd:"高清",fhd:"超清",yh:"原画"},playbackRate_:1,fullscreen:!1,visible:!0,visibleChangeAt:0,speeds:[],zoomDrawing:!1}},props:{videoUrl:{type:String,default:""},subVideoUrl:{type:String,default:""},videoTitle:{type:String,default:""},poster:{default:""},autoplay:{type:Boolean,default:!0},live:{type:Boolean,default:!1},smart:{type:Boolean,default:!1},raw:{type:Boolean,default:!0},loading:{type:Boolean,default:!1},currentTime:{type:Number,default:0},timeout:{type:Number,default:20},alt:{type:String,default:""},muted:{type:Boolean,default:!0},aspect:{type:String,default:"16:9"},videoBufferSize:{type:Number,default:204800},audioBufferSize:{type:Number,default:131072},hlsErrorSeek:{type:Number,default:5},hlsTestMethod:{type:String,default:"HEAD"},hlsTestInterval:{type:Number,default:1e3},reloadInterval:{type:Number,default:1e3},liveInterval:{type:Number,default:15e3},maxPauseSeconds:{type:Number,default:0},pauseWhenHidden:{type:Boolean,default:!0},fluent:{type:Boolean,default:!0},stretch:{type:Boolean,default:!1},loop:{type:Boolean,default:!1},controls:{type:Boolean,default:!0},hideBigPlayButton:{type:Boolean,default:!1},hideSnapshotButton:{type:Boolean,default:!1},hideFullscreenButton:{type:Boolean,default:!1},hideFluentButton:{type:Boolean,default:!1},hideStretchButton:{type:Boolean,default:!1},hidePicInPic:{type:Boolean,default:!0},hideWaiting:{type:Boolean,default:!0},hideLiveText:{type:Boolean,default:!1},showTime:{type:Boolean,default:function(){return!videojs.browser.IS_IOS&&!videojs.browser.IS_ANDROID}},showSpeed:{type:Boolean,default:!1},showCustomButton:{type:Boolean,default:!0},showCameraButton:{type:Boolean,default:!videojs.browser.IS_SAFARI&&!videojs.browser.IS_IOS&&!videojs.browser.IS_ANDROID},debug:{type:Boolean,default:!1},hasvideo:{type:Boolean,default:void 0},hasaudio:{type:Boolean,default:void 0},resolution:{type:String,default:""},resolutiondefault:{type:String,default:"hd"},playbackRates:{type:Array,default:function(){return videojs.browser.IS_IOS||videojs.browser.IS_ANDROID?[]:[.5,1,2,3]}},playbackRate:{type:Number,default:1},cors:{type:Boolean,default:!0},withCredentials:{type:Boolean,default:!1},customButtons:{type:String,default:""},autofocus:{type:Boolean,default:!1},dblclickFullscreen:{type:Boolean,default:!0},language:{type:String,default:navigator&&(navigator.languages&&navigator.languages[0]||navigator.userLanguage||navigator.language)||"en"},disableContextMenu:{type:Boolean,default:!1},water:{type:String,default:""},waterMark:{type:String,default:""},watermark:{type:String,default:""},wm:{type:String,default:""},waterFont:{type:String,default:""},waterColor:{type:String,default:"rgba(240, 240, 240, 0.25)"},waterWidth:{type:Number,default:256},waterHeight:{type:Number,default:144},waterRotate:{type:Number,default:-20*Math.PI/120},rotate:{type:Number,default:0},rotateX:{type:Number,default:0},rotateY:{type:Number,default:0},bgTimeout:{type:Number,default:0},digitalZoom:{type:Boolean,default:!1},digitalZoomColor:{type:String,default:"rgba(235, 235, 235, 0.8)"}},beforeDestroy:function(){this.destroyVideoJS()},deactivated:function(){this.destroyVideoJS()},watch:{videoUrl:function(t){this.videoUrl?this.poster_=this.poster:this.poster_="",this.smart&&!this.subVideoUrl&&this.videoUrl&&(0!=this.videoUrl.indexOf("webrtc")||/_sub(\?|$)/.test(this.videoUrl)?/.flv(\?|$)/.test(this.videoUrl)&&!/_sub.flv(\?|$)/.test(this.videoUrl)?this.subVideoUrl_=this.videoUrl.replace(/(.flv(\?|$))/,"_sub$1"):/\/live.m3u8(\?|$)/.test(this.videoUrl)&&!/_sub\/live.m3u8(\?|$)/.test(this.videoUrl)&&(this.subVideoUrl_=this.videoUrl.replace(/(\/live.m3u8(\?|$))/,"_sub$1")):this.subVideoUrl_=this.videoUrl.replace(/(\?|$)/,"_sub$1")),this.videoUrl||this.subVideoUrl||(this.subVideoUrl_=""),this.reload()},subVideoUrl:function(t){this.subVideoUrl_=this.subVideoUrl,this.smart&&!this.subVideoUrl_&&this.videoUrl&&(0!=this.videoUrl.indexOf("webrtc")||/_sub(\?|$)/.test(this.videoUrl)?/.flv(\?|$)/.test(this.videoUrl)&&!/_sub.flv(\?|$)/.test(this.videoUrl)?this.subVideoUrl_=this.videoUrl.replace(/(.flv(\?|$))/,"_sub$1"):/\/live.m3u8(\?|$)/.test(this.videoUrl)&&!/_sub\/live.m3u8(\?|$)/.test(this.videoUrl)&&(this.subVideoUrl_=this.videoUrl.replace(/(\/live.m3u8(\?|$))/,"_sub$1")):this.subVideoUrl_=this.videoUrl.replace(/(\?|$)/,"_sub$1")),this.videoUrl||this.subVideoUrl||(this.subVideoUrl_=""),this.reload()},fullscreen:function(t){this.videoUrl&&this.subVideoUrl_&&this.videoUrl!=this.subVideoUrl_&&(this.webrtc&&0==this.videoUrl.indexOf("webrtc")&&0==this.subVideoUrl_.indexOf("webrtc")?this.rtcReloadTech():(this.http||this.ws)&&this.flv&&/\.flv.*$/.test(this.videoUrl)&&/\.flv.*$/.test(this.subVideoUrl_)&&this.flvReloadTech())},fluent:function(t){this.fluent_=t,this.reload()},muted:function(t){this.muted_=t,this.reload()},stretch:function(t){this.stretch_=t,this.reload()},poster:function(t){this.poster_=t},loop:function(t){this.reload()},currentTime:function(t){this.player&&this.player.currentTime(t)},language:function(t){this.reload()}},mounted:function(){this.muted_=this.muted,this.fluent_=this.fluent,this.stretch_=this.stretch,this.poster_=this.poster,this.playbackRate_=this.playbackRate,this.subVideoUrl_=this.subVideoUrl,this.smart&&!this.subVideoUrl_&&this.videoUrl&&(0!=this.videoUrl.indexOf("webrtc")||/_sub(\?|$)/.test(this.videoUrl)?/.flv(\?|$)/.test(this.videoUrl)&&!/_sub.flv(\?|$)/.test(this.videoUrl)?this.subVideoUrl_=this.videoUrl.replace(/(.flv(\?|$))/,"_sub$1"):/\/live.m3u8(\?|$)/.test(this.videoUrl)&&!/_sub\/live.m3u8(\?|$)/.test(this.videoUrl)&&(this.subVideoUrl_=this.videoUrl.replace(/(\/live.m3u8(\?|$))/,"_sub$1")):this.subVideoUrl_=this.videoUrl.replace(/(\?|$)/,"_sub$1")),this.debug&&(videojs.log.level("info"),flvjs.LoggingControl.enableAll=!0),this.initVideoJS()},computed:{videoType:function(){var t="video/mp4";return this.rtmp?t="rtmp/mp4":(this.http||this.ws)&&this.flv?t="video/x-flv":this.m3u8&&(t="application/x-mpegURL"),t},videoWrapperStyle:function(){if("100%"==this.aspect||"fullscreen"==this.aspect)return{width:"100%",height:"100%"};var t=this.aspect.split(":"),e=parseInt(t[0])||16;return{paddingBottom:(parseInt(t[1])||9)/e*100+"%",position:"relative",margin:"0 auto",overflow:"hidden"}},waterStyle:function(){return this.waterText?{background:"url("+this.createBase64()+") left top repeat"}:{}},waterText:function(){return this.water||this.waterMark||this.watermark||this.wm},rtmp:function(){return 0===(this.src||"").indexOf("rtmp")},http:function(){return 0===(this.src||"").indexOf("http")||(this.src||"").indexOf("://")<0},webrtc:function(){return 0===(this.src||"").indexOf("webrtc")},ws:function(){return 0===(this.src||"").indexOf("ws")},mp4:function(){return/\.mp4.*$/.test(this.src||"")},m3u8:function(){return/\.m3u8.*$/.test(this.src||"")},flv:function(){return/\.flv.*$/.test(this.src||"")},alt2:function(){return this.alt?this.alt:"zh-CN"===this.language?"无信号":"No Video"},src:function(){var t=this.subVideoUrl_||this.videoUrl;if(this.fullscreen&&(t=this.videoUrl||this.subVideoUrl_),!t)return"";if(0===t.indexOf("//"))t=location.protocol+t;else if(0===t.indexOf("/"))t=location.protocol+"//"+location.host+t;else if(0===t.indexOf("./")){var e=location.pathname.lastIndexOf("/");t=location.protocol+"//"+location.host+location.pathname.slice(0,e+1)+t.slice(2)}if(this.raw&&flvjs.getFeatureList()&&flvjs.getFeatureList().nativeMP4H265Playback&&(/\.flv.*$/.test(t)||/\.m3u8.*$/.test(t))){var n=t.indexOf("?"),i="";n<0?i="?":t.indexOf("raw=")<n&&(i="&"),i&&(t=t+i+"raw=1")}return t},blankHtml:function(){return this.poster_&&this.src?'\n <div class="alt" style="background-image:url(\''+this.poster_+"');\">\n </div>\n ":'\n <div class="alt">\n <table>\n <tr>\n <td>'+this.alt2+"</td>\n </tr>\n </table>\n </div>\n "},videoHtml:function(){return this.src?this.rtmp||this.http||this.flv||this.mp4||this.webrtc?'\n <video class="video-js vjs-default-skin vjs-big-play-centered" style="width: 100%; height: 100%; '+(this.stretch_?"object-fit: fill;":"")+'"\n webkit-playsinline="" playsinline="" x-webkit-airplay="allow" x5-playsinline=""\n preload="none" poster="'+this.poster_+'" '+(this.muted_?"muted":"")+" "+(this.loop?"loop":"")+'>\n <source src="'+this.src+'" type="'+this.videoType+'"></source>\n <p class="vjs-no-js">\n To view this video please enable JavaScript, and consider upgrading to a web browser that\n <a href="http://videojs.com/html5-video-support/" target="_blank">\n supports HTML5 video\n </a>\n </p>\n </video>\n ':'\n <canvas style="width: 100%; height: 100%;"></canvas>\n ':this.blankHtml}},methods:{isMobile:function(){return videojs.browser.IS_IOS||videojs.browser.IS_ANDROID},hasUsableSWF:function(){return!!(void 0!==window.ActiveXObject?new ActiveXObject("ShockwaveFlash.ShockwaveFlash"):navigator.plugins["Shockwave Flash"])},reload:function(){this.reloadCnt++,this.debug&&console.log((new Date).toLocaleString()+" "+this.src+" reload["+this.reloadCnt+"]"),this.destroyVideoJS(),this.initVideoJS()},flvError:function(t){var e=this;this.debug&&console.log((new Date).toLocaleString()+" "+this.src+" error",t),this.$emit("error",t),this.live&&this.src&&this.reloadInterval>0&&(this.reloadCnt?setTimeout(function(){e.flvReload()},this.reloadInterval):this.flvReload())},flvReload:function(){this.player&&(this.avLoading=!0,!this.endedAt&&!this.player.isFullscreen()&&this.player.cameraButton&&this.visible?this.snapForReload||(this.debug&&console.log((new Date).toLocaleString()+" "+this.src+" snap reload"),this.snapForReload=!0,this.pauseAt=0,this.player.cameraButton.el().click()):this.flvReloadTech())},flvReloadTech:function(){var t=this;if(this.debug&&console.log((new Date).toLocaleString()+" "+this.src+" tech reload"),this.reloadCnt++,this.pauseAt=0,this.player.tech_.flvPlayer.unload(),this.player.tech_.flvPlayer.detachMediaElement(),this.player.tech_.flvPlayer.destroy(),this.player.tech_.flvPlayer=window.flvjs.createPlayer(Object.assign({},this.flvMediaDataSource,{type:void 0===this.flvMediaDataSource.type?"flv":this.flvMediaDataSource.type,url:this.getVideoUrl()}),this.flvConfig),this.player.tech_.flvPlayer.attachMediaElement(this.player.tech_.el_),this.player.tech_.flvPlayer.on("error",function(e){t.flvError(e)}),this.player.tech_.flvPlayer.on("media_info",function(e){t.$emit("media_info",e)}),this.showSpeed){var e=null;this.player.tech_.flvPlayer.on("statistics_info",function(n){if(n&&n.speed)if(t.speeds.length<3){if(t.speeds.push(n.speed),!e){var i=t.$el.querySelectorAll(".video-js .vjs-control-bar .vjs-live-display");i.length>0&&(e=i[0])}}else if(e){t.speeds.shift(),t.speeds.push(n.speed);for(var o=0,r=0;r<t.speeds.length;r++)o+=t.speeds[r]||0;var s=o/t.speeds.length;s=8*s.toFixed(0),e.innerHTML=s+"Kbps"}})}this.player.tech_.flvPlayer.load()},rtcError:function(t){var e=this;this.live&&this.src&&this.reloadInterval>0&&setTimeout(function(){e.rtcReload()},this.reloadInterval)},rtcReload:function(){this.player&&(this.avLoading=!0,!this.endedAt&&!this.player.isFullscreen()&&this.player.cameraButton&&this.visible?this.snapForReload||(this.debug&&console.log((new Date).toLocaleString()+" "+this.src+" snap reload"),this.snapForReload=!0,this.pauseAt=0,this.player.cameraButton.el().click()):this.rtcReloadTech())},rtcReloadTech:function(){this.debug&&console.log((new Date).toLocaleString()+" "+this.src+" tech reload"),this.reloadCnt++,this.pauseAt=0,this.player.tech_.src=this.getVideoUrl(),this.player.tech_.reload()},loadResolutionlist:function(t){var e=this;if(""!=this.resolution){for(var n,i=this.resolution.split(","),o=[],r=0;r<i.length;r++)i[r],this.resolutiondefault,n="yh"==i[r]?this.videoUrl:this.videoUrl.replace(".m3u8","_"+i[r]+".m3u8"),o.push({src:n,type:this.videoType,label:this.resolutionName[i[r]],res:i[r]});t.updateSrc(o),t.on("resolutionchange",function(){e.debug&&console.log("change resolution")})}},getCustomBtn:function(t){var e=this.$el.querySelectorAll(".video-js .vjs-control-bar .vjs-button."+t);return e.length>0?e[0]:null},customFlashButton:function(){var t=this;if(!this.getCustomBtn(this.fluentBtnCls)){for(var e=(o=this.player.controlBar.children().length)-1;e>=0;e--)if("FullscreenToggle"==this.player.controlBar.children()[e].name_)o=e;else if("SnapButton"==this.player.controlBar.children()[e].name_){o=e;break}var n=this.player.controlBar.addChild("button",{},o);n.name_="FluentButton",n.el_.classList.add(this.fluentBtnCls),n.el_.innerText=this.fluent_?this.player.localize("Fluent"):this.player.localize("Fast"),n.el_.title=this.fluent_?this.player.localize("Click switch to fast play"):this.player.localize("Click switch to fluent play");var i=function(){t.fluent_=!t.fluent_,n.el_.innerText=t.fluent_?t.player.localize("Fluent"):t.player.localize("Fast"),n.el_.title=t.fluent_?t.player.localize("Click switch to fast play"):t.player.localize("Click switch to fluent play"),t.player.tech_.setFluent(t.fluent_)};n.on("click",i),n.on("tap",i)}if(!this.getCustomBtn(this.stretchBtnCls)){var o;for(e=(o=this.player.controlBar.children().length)-1;e>=0;e--)if("FullscreenToggle"==this.player.controlBar.children()[e].name_)o=e;else if("SnapButton"==this.player.controlBar.children()[e].name_)o=e;else if("FluentButton"==this.player.controlBar.children()[e].name_){o=e;break}var r=this.player.controlBar.addChild("button",{},o);r.name_="StretchButton",r.el_.classList.add(this.stretchBtnCls),r.el_.innerText=this.stretch_?this.player.localize("STR"):this.player.localize("STD"),r.el_.title=this.stretch_?this.player.localize("Click switch to standard display"):this.player.localize("Click switch to stretch display"),i=function(){t.stretch_=!t.stretch_,r.el_.innerText=t.stretch_?t.player.localize("STR"):t.player.localize("STD"),r.el_.title=t.stretch_?t.player.localize("Click switch to standard display"):t.player.localize("Click switch to stretch display"),t.player.tech_.setStretch(t.stretch_)},r.on("click",i),r.on("tap",i)}},customH5Button:function(){var t=this;if(!this.getCustomBtn(this.stretchBtnCls)&&!videojs.browser.IE_VERSION){for(var e=this.player.controlBar.children().length,n=e-1;n>=0;n--)if("FullscreenToggle"==this.player.controlBar.children()[n].name_)e=n;else if("SnapButton"==this.player.controlBar.children()[n].name_){e=n;break}var i=this.player.controlBar.addChild("button",{},e);i.name_="StretchButton",i.el_.classList.add(this.stretchBtnCls),i.el_.innerText=this.stretch_?this.player.localize("STR"):this.player.localize("STD"),i.el_.title=this.stretch_?this.player.localize("Click switch to standard display"):this.player.localize("Click switch to stretch display");var o=function(){t.stretch_=!t.stretch_,i.el_.innerText=t.stretch_?t.player.localize("STR"):t.player.localize("STD"),i.el_.title=t.stretch_?t.player.localize("Click switch to standard display"):t.player.localize("Click switch to stretch display");var e=t.$el.querySelector("video");e?e.style.objectFit=t.stretch_?"fill":"":t.player.tech_.setStretch(t.stretch_)};i.on("click",o),i.on("tap",o)}this.addCustomButtons()},addCustomButtons:function(){var t=this;if(""!=this.customButtons){for(var e=this.player.controlBar.children().length,n=e-1;n>=0;n--)if("FullscreenToggle"==this.player.controlBar.children()[n].name_)e=n;else if("SnapButton"==this.player.controlBar.children()[n].name_)e=n;else if("StretchButton"==this.player.controlBar.children()[n].name_){e=n;break}var i=this.customButtons.split(",");for(n=i.length-1;n>=0;n--){var o=i[n].split(":"),r=this.player.controlBar.addChild("button",{},e);r.el_.innerHTML=o.length>1?"<i class='"+o[1]+"'></i>":i[n],r.el_.title=o[0],r.name_=o[0];var s=function(e){t.$emit("customButtons",(e.currentTarget||e.target).getAttribute("title"))};r.on("click",s),r.on("tap",s)}}},hotkeysOpt:function(){var t={volumeStep:.1,seekStep:5,enableModifiersForNumbers:!1,enableVolumeScroll:!1};return this.autofocus||(t.skipInitialFocus=!0,t.enableInactiveFocus=!1),t},destroyVideoJS:function(){this.liveCheckTimer&&(clearInterval(this.liveCheckTimer),this.liveCheckTimer=0),this.hlsTimer&&(clearTimeout(this.hlsTimer),this.hlsTimer=0),document.removeEventListener("visibilitychange",this.onVisibleChange),this.updateTimeAt=0,this.startAt=0,this.playAt=0,this.pauseAt=0,this.pauseBgAt=0,this.endedAt=0,this.errorAt=0,this.visibleChangeAt=0,this.showSlot=!1;var t=this.$el.querySelector(".video-js"),e=this.$el.querySelector(".video-wrapper");if(t&&e){var n=t.querySelector(".video-water");n&&(t.removeChild(n),e.appendChild(n));var i=t.querySelector(".video-slot");i&&(t.removeChild(i),e.appendChild(i));var o=t.querySelector(".video-title");o&&(t.removeChild(o),e.appendChild(o))}this.player&&this.player.dispose&&(this.player.dispose(),this.player=null),this.player&&this.player.destroy&&(this.player.destroy(),this.player=null),this.flvMediaDataSource={},this.flvConfig={},this.$el.querySelector(".video-inner").innerHTML=this.blankHtml,this.$emit("update:loading",!1)},getCurrentTime:function(){return this.player&&"function"==typeof this.player.currentTime?this.player.currentTime():-1},setCurrentTime:function(t){this.player&&"function"==typeof this.player.currentTime&&this.player.currentTime(t)},snap:function(){this.player&&this.player.cameraButton?(this.snapFromOutside=!0,this.player.cameraButton.el().click()):console.log("snap not support")},play:function(){this.player&&this.player.play()},pause:function(){this.player&&this.player.pause()},paused:function(){return!!this.player&&this.player.paused()},setMuted:function(t){this.player&&this.player.muted(!!t)},getMuted:function(){return!!this.player&&this.player.muted()},setVolume:function(t){this.player&&this.player.volume(t)},getVolume:function(){return this.player?this.player.volume():0},setDuration:function(t){this.player&&this.player.duration(t)},getDuration:function(){return this.player?this.player.duration():0},getPlayer:function(){return this.player},getMediaInfo:function(){try{return this.player.tech_.flvPlayer._transmuxer._controller._demuxer._mediaInfo}catch(t){}return{}},isFullscreen:function(){return!!this.player&&this.player.isFullscreen()},getVideoUrl:function(){var t=this.subVideoUrl_||this.videoUrl;if(this.isFullscreen()&&(t=this.videoUrl||this.subVideoUrl_),!t)return"";if(0===t.indexOf("//"))t=location.protocol+t;else if(0===t.indexOf("/"))t=location.protocol+"//"+location.host+t;else if(0===t.indexOf("./")){var e=location.pathname.lastIndexOf("/");t=location.protocol+"//"+location.host+location.pathname.slice(0,e+1)+t.slice(2)}if(this.raw&&flvjs.getFeatureList()&&flvjs.getFeatureList().nativeMP4H265Playback&&(/\.flv.*$/.test(t)||/\.m3u8.*$/.test(t))&&this.playAt){var n=t.indexOf("?"),i="";n<0?i="?":t.indexOf("raw=")<n&&(i="&"),i&&(t=t+i+"raw=1")}return t},requestFullscreen:function(){this.player&&this.player.requestFullscreen()},exitFullscreen:function(){this.player&&this.player.exitFullscreen()},toggleFullscreen:function(){this.player&&(this.player.isFullscreen()?this.player.exitFullscreen():this.player.requestFullscreen())},convertDataURIToBinary:function(t){for(var e=";base64,",n=t.indexOf(e)+e.length,i=t.substring(n),o=window.atob(i),r=o.length,s=new Uint8Array(r),a=0;a<r;a++)s[a]=o.charCodeAt(a);return s},convertDataURIToMIME:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e="data:",n=t.indexOf(e);0==n&&(n+=e.length);var i=t.indexOf(";base64,");return n>=0&&i>n?t.substring(n,i):""},saveFile:function(t){if(t&&t.length>100){this.poster_=t;var e=this.$el.querySelector("video");e&&e.setAttribute("poster",t)}if(this.snapForReload)return this.snapForReload=!1,void this.reload();if(this.snapForPoster)this.snapForPoster=!1;else{if(this.snapFromOutside)return this.$emit("snapOutside",t),void(this.snapFromOutside=!1);if(this.$emit("snapInside",t),t&&t.length>100){var n=this.convertDataURIToBinary(t),i=this.convertDataURIToMIME(t),o=".jpg",r=i.indexOf("/");r>0&&(o="."+i.substring(r+1)),s.a.saveAs(new Blob([n],{type:i}),(this.videoTitle||"snap")+"_"+(new Date).getTime()+o)}}},onVisibleChange:function(){this.visible="visible"===document.visibilityState,this.debug&&console.log((new Date).toLocaleString()+" "+this.src+" visible["+this.visible+"]");var t=this.visibleChangeAt;if(this.visibleChangeAt=(new Date).getTime(),this.visible&&this.live&&this.videoUrl){var e;if(this.bgTimeout>0&&t&&(e=(new Date).getTime()-t)>=this.bgTimeout&&this.src&&(!this.player||!this.player.isFullscreen()))return this.debug&&console.log((new Date).toLocaleString()+" "+this.src+" visible bg timeout reload d = "+e),void this.reload();if(this.liveInterval>0&&this.pauseBgAt&&(e=(new Date).getTime()-this.pauseBgAt)>=this.liveInterval&&this.src&&(!this.player||!this.player.isFullscreen()))return this.debug&&console.log((new Date).toLocaleString()+" "+this.src+" visible bg pause reload d = "+e),void this.reload()}},debounceInitVideoJS:o.a.debounce(function(){this.initVideoJS()},500),initVideoJSOK:function(){var t=this;this.player&&(document.addEventListener("visibilitychange",this.onVisibleChange),this.player.muted(this.muted_),this.player.on("canplay",function(){t.$emit("canplay",t.player.duration())}),this.player.on("pause",function(){t.updateTimeAt=0,t.pauseAt=(new Date).getTime(),t.visible||(t.pauseBgAt=t.pauseAt),t.$emit("pause",t.player.currentTime()),t.debug&&console.log((new Date).toLocaleString()+" "+t.src+" pause")}),this.player.on("snap",function(e,n){t.saveFile(n)}),this.player.on("volumechange",function(e,n){t.muted_=t.player.muted(),t.$emit("volumechange",t.player.volume(),t.muted_)}),this.player.on("fullscreenchange",function(){setTimeout(function(){t.fullscreen=t.isFullscreen(),t.$emit("fullscreen",t.fullscreen)},0)}),(this.waterText||this.disableContextMenu)&&(this.player.tech_.el_.oncontextmenu=function(t){t.preventDefault()}),this.rotate&&(this.player.tech_.el_.style.transform="rotate("+this.rotate+"deg)"),this.rotateX&&(this.player.tech_.el_.style.transform="rotateX("+this.rotateX+"deg)"),this.rotateY&&(this.player.tech_.el_.style.transform="rotateY("+this.rotateY+"deg)"),this.startAt=(new Date).getTime(),this.initDigitalZoom());var e=this.$el.querySelector(".video-js"),n=this.$el.querySelector(".video-wrapper");if(e&&n){var i=n.querySelector(".video-water");i&&(n.removeChild(i),e.appendChild(i));var o=n.querySelector(".video-slot");o&&(n.removeChild(o),e.appendChild(o));var r=n.querySelector(".video-title");r&&(n.removeChild(r),e.appendChild(r))}this.showSlot=!0},initVideoJS:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(this.$el.querySelector(".video-inner").innerHTML=this.videoHtml,this.src){if(this.startAt=(new Date).getTime(),this.rtmp){var n=document.title;this.player=videojs(this.$el.querySelector("video"),{notSupportedMessage:"您的浏览器没有安装或开启Flash",tech:["flash"],autoplay:this.autoplay,stretch:this.stretch,fluent:this.fluent,controls:!0,userActions:{doubleClick:this.dblclickFullscreen},language:this.language||navigator&&(navigator.languages&&navigator.languages[0]||navigator.userLanguage||navigator.language)||"en"}),this.showCameraButton&&!this.waterText&&this.player.snapshot(),this.player.one("ready",function(){if(t.initVideoJSOK(),videojs.browser.IE_VERSION&&t.player.tech_.off("fullscreentoggle"),t.$emit("update:loading",!1),document.title=n,t.player.hotkeys(t.hotkeysOpt()),t.player.on("ended",function(){t.endedAt=(new Date).getTime(),t.$emit("ended"),t.debug&&console.log((new Date).toLocaleString()+" "+t.src+" ended")}),t.player.on("error",function(e){t.errorAt=(new Date).getTime(),t.$emit("error",e)}),t.player.on("timeupdate",function(){t.updateTimeAt=(new Date).getTime(),t.pauseAt=0,t.endedAt=0,t.errorAt=0,t.reloadCnt=0,t.$emit("timeupdate",t.player.currentTime())}),t.player.on("playing",function(){t.playAt=(new Date).getTime(),t.$emit("play",t.player.currentTime()),t.debug&&console.log((new Date).toLocaleString()+" "+t.src+" playing")}),t.showCustomButton&&t.customFlashButton(),!t.hasUsableSWF()){var e=t.$el.querySelector(".vjs-poster");e&&(e.style.display="none")}document.getElementsByClassName("vjs-picture-in-picture-control")[0].style.display="none"}),document.title=n,this.player.on("error",function(e){(e=t.$el.querySelector(".vjs-error .vjs-error-display .vjs-modal-dialog-content")).innerHTML="<a href='http://www.adobe.com/go/getflashplayer' target='_blank'>"+e.textContent+"</a>"})}else if((this.http||this.ws)&&this.flv)this.flvMediaDataSource={isLive:this.live,cors:this.cors,withCredentials:this.withCredentials},this.flvConfig={enableWorker:!1,enableStashBuffer:!1},videojs.browser.IE_VERSION&&(this.flvConfig.enableStashBuffer=!0,this.flvConfig.stashInitialSize=512e3),null!=this.hasaudio&&(this.flvMediaDataSource.hasAudio=this.hasaudio),null!=this.hasvideo&&(this.flvMediaDataSource.hasVideo=this.hasvideo),this.player=videojs(this.$el.querySelector("video"),{techOrder:["flvjs","html5"],controls:!0,flvjs:{mediaDataSource:this.flvMediaDataSource,config:this.flvConfig},userActions:{doubleClick:this.dblclickFullscreen},language:this.language||navigator&&(navigator.languages&&navigator.languages[0]||navigator.userLanguage||navigator.language)||"en"}),this.showCameraButton&&!this.waterText&&this.player.snapshot(),this.player.one("ready",function(){if(t.initVideoJSOK(),t.$emit("update:loading",!1),t.stretch_&&(t.player.tech_.el_.style.objectFit="fill"),t.player.hotkeys(t.hotkeysOpt()),t.player.tech_.flvPlayer.on("error",function(e){t.errorAt=(new Date).getTime(),t.flvError(e)}),t.player.tech_.flvPlayer.on("media_info",function(e){t.$emit("media_info",e)}),t.showSpeed){var e=null;t.player.tech_.flvPlayer.on("statistics_info",function(n){if(n&&n.speed)if(t.speeds.length<3){if(t.speeds.push(n.speed),!e){var i=t.$el.querySelectorAll(".video-js .vjs-control-bar .vjs-live-display");i.length>0&&(e=i[0])}}else if(e){t.speeds.shift(),t.speeds.push(n.speed);for(var o=0,r=0;r<t.speeds.length;r++)o+=t.speeds[r]||0;var s=o/t.speeds.length;s=8*s.toFixed(0),e.innerHTML=s+"Kbps"}})}t.player.on("canplay",function(){t.autoplay&&t.player.tech_.flvPlayer.play().catch(function(){})}),t.player.on("timeupdate",function(){t.updateTimeAt=(new Date).getTime(),t.pauseAt=0,t.endedAt=0,t.errorAt=0;var e=t.player.currentTime();!t.snapForPoster&&!t.poster_&&e>2&&t.player.cameraButton&&(t.snapForPoster=!0,t.player.cameraButton.el().click()),t.reloadCnt=0,t.$emit("timeupdate",e)}),t.player.on("error",function(e){t.errorAt=(new Date).getTime(),t.player.error_&&4===t.player.error_.code?t.flvError("MediaError"):t.flvError(t.player.error_||e)}),t.player.on("ended",function(){t.endedAt=(new Date).getTime(),t.live&&t.flvError("ended"),t.$emit("ended"),t.debug&&console.log((new Date).toLocaleString()+" "+t.src+" ended")}),t.player.on("playing",function(){t.playAt=(new Date).getTime(),t.avLoading=!1,t.$emit("play",t.player.currentTime()),t.debug&&console.log((new Date).toLocaleString()+" "+t.src+" playing")}),t.showCustomButton&&t.customH5Button()});else if(this.http&&this.m3u8){var i=(new Date).getTime(),o=function(){if(!t.player){var n=document.title;""!=t.resolution?(-1==t.resolution.indexOf(t.resolutiondefault)&&(t.resolutiondefault="yh"),t.player=videojs(t.$el.querySelector("video"),{autoplay:t.autoplay,stretch:t.stretch,controls:!0,plugins:{videoJsResolutionSwitcher:{default:t.resolutiondefault,dynamicLabel:!0}},playbackRates:t.live?[]:t.playbackRates,userActions:{doubleClick:t.dblclickFullscreen},language:t.language||navigator&&(navigator.languages&&navigator.languages[0]||navigator.userLanguage||navigator.language)||"en"}),t.loadResolutionlist(t.player)):t.player=videojs(t.$el.querySelector("video"),{autoplay:t.autoplay,stretch:t.stretch,controls:!0,playbackRates:t.live?[]:t.playbackRates,userActions:{doubleClick:t.dblclickFullscreen},language:t.language||navigator&&(navigator.languages&&navigator.languages[0]||navigator.userLanguage||navigator.language)||"en"}),t.live||1==t.playbackRate_||t.player.playbackRate(t.playbackRate_),t.player.on("ratechange",function(){t.playbackRate_=t.player.playbackRate()}),t.showCameraButton&&!t.waterText&&t.player.snapshot(),t.player.one("ready",function(){if(t.initVideoJSOK(),t.avLoading=!1,t.$emit("update:loading",!1),document.title=n,t.player.hotkeys(t.hotkeysOpt()),t.player.on("ended",function(){t.endedAt=(new Date).getTime(),t.$emit("ended"),t.debug&&console.log((new Date).toLocaleString()+" "+t.src+" ended")}),t.player.on("timeupdate",function(){t.updateTimeAt=(new Date).getTime(),t.pauseAt=0,t.endedAt=0,t.errorAt=0,t.reloadCnt=0,t.$emit("timeupdate",t.player.currentTime())}),t.player.on("play",function(){t.player.removeClass("vjs-has-started"),t.debug&&console.log((new Date).toLocaleString()+" "+t.src+" play")}),t.player.on("playing",function(){t.player.addClass("vjs-has-started"),t.playAt=(new Date).getTime(),t.$emit("play",t.player.currentTime()),t.debug&&console.log((new Date).toLocaleString()+" "+t.src+" playing")}),t.player.tech().on("usage",function(e){t.debug&&console.log((new Date).toLocaleString()+" "+t.src+" hls usage",e),e&&"hls-live-resync"===e.name&&t.$emit("error",e.name)}),t.player.one("unknow-segment-type",function(e){t.debug&&(console.log((new Date).toLocaleString()+" "+t.src+" hls unknow-segment-type, reload"),e&&e.name&&console.log("unknow-segment-type: "+e.name)),t.reloadInterval>0&&setTimeout(function(){t.destroyVideoJS(),t.initVideoJS()},t.reloadInterval/2)}),t.player.one("error",function(e,n){t.errorAt=(new Date).getTime();var i=t.player.tech();if(i&&"livehls"==i.name_){var o=i.error();o&&3===o.code&&(e="MediaError")}if(t.$emit("error",e),t.live)t.reloadInterval>0&&setTimeout(function(){t.destroyVideoJS(),t.initVideoJS()},t.reloadInterval);else if(t.hlsErrorSeek>0){var r=t.player.currentTime()+t.hlsErrorSeek;t.destroyVideoJS(),t.initVideoJS(r)}}),document.title=n,t.live)t.player&&t.player.reloadSourceOnError();else if(t.player&&(t.currentTime>0||e>0)){var i=e||t.currentTime;videojs.browser.IE_VERSION?t.player.on("loadeddata",function(){setTimeout(function(){t.player.currentTime(i)},500)}):t.isMobile()?setTimeout(function(){var e=t.$el.querySelector("video");e&&(e.currentTime=i)},3200):t.player.currentTime(i)}t.autoplay&&setTimeout(function(){var e=t.$el.querySelector(".vjs-big-play-button");if(e){var n=window.getComputedStyle(e);n&&"block"===n.display&&e.click()}},2e3),t.showCustomButton&&t.customH5Button()})}};this.live&&this.hlsTestMethod&&this.hlsTestInterval>0?function e(){var n=(new Date).getTime();if(t.timeout>0&&n-i>1e3*t.timeout)return t.hlsTimer&&clearTimeout(t.hlsTimer),t.hlsTimer=0,t.$emit("update:loading",!1),t.avLoading=!1,void t.$emit("message",{type:"error",message:"加载播放资源失败"});if(!t.src)return t.hlsTimer&&clearTimeout(t.hlsTimer),t.hlsTimer=0,t.$emit("update:loading",!1),void(t.avLoading=!1);t.$emit("update:loading",!0);var r=new XMLHttpRequest;r.open(t.hlsTestMethod,t.src,!0),r.onreadystatechange=function(){4==r.readyState&&(r.status>=200&&r.status<300||304===r.status?(t.hlsTimer&&clearTimeout(t.hlsTimer),t.hlsTimer=0,o()):(t.debug&&console.log((new Date).toLocaleString()+" "+t.src+" HLS "+t.hlsTestMethod,r.status,r.statusText),t.hlsTimer=setTimeout(e,t.hlsTestInterval)))},r.send()}():o()}else this.webrtc?(this.player=videojs(this.$el.querySelector("video"),{techOrder:["webrtc","html5"],autoplay:this.autoplay,stretch:this.stretch,controls:!0,webrtc:{debug:this.debug,autoplay:this.autoplay},userActions:{doubleClick:this.dblclickFullscreen},language:this.language||navigator&&(navigator.languages&&navigator.languages[0]||navigator.userLanguage||navigator.language)||"en"}),this.showCameraButton&&!this.waterText&&this.player.snapshot(),this.player.one("ready",function(){t.initVideoJSOK(),t.$emit("update:loading",!1),t.stretch_&&(t.player.tech_.el_.style.objectFit="fill"),t.player.hotkeys(t.hotkeysOpt()),t.player.on("error",function(e){t.errorAt=(new Date).getTime(),t.$emit("error",e),t.rtcError(e),t.debug&&console.log((new Date).toLocaleString()+" "+t.src+" player error",e)}),t.player.tech().on("error",function(e){t.errorAt=(new Date).getTime(),t.$emit("error",e),t.rtcError(e),t.debug&&console.log((new Date).toLocaleString()+" "+t.src+" rtc error",e)}),t.player.on("timeupdate",function(){t.updateTimeAt=(new Date).getTime(),t.pauseAt=0,t.endedAt=0,t.errorAt=0;var e=t.player.currentTime();!t.snapForPoster&&!t.poster_&&e>2&&t.player.cameraButton&&(t.snapForPoster=!0,t.player.cameraButton.el().click()),t.reloadCnt=0,t.$emit("timeupdate",e)}),t.player.on("ended",function(){t.endedAt=(new Date).getTime(),t.live&&t.rtcError("ended"),t.$emit("ended"),t.debug&&console.log((new Date).toLocaleString()+" "+t.src+" ended")}),t.player.on("playing",function(){t.playAt=(new Date).getTime(),t.avLoading=!1,t.$emit("play",t.player.currentTime()),t.debug&&console.log((new Date).toLocaleString()+" "+t.src+" playing")}),t.showCustomButton&&t.customH5Button()})):(this.player=videojs(this.$el.querySelector("video"),{autoplay:this.autoplay,stretch:this.stretch,controls:!0,playbackRates:this.live?[]:this.playbackRates,userActions:{doubleClick:this.dblclickFullscreen},language:this.language||navigator&&(navigator.languages&&navigator.languages[0]||navigator.userLanguage||navigator.language)||"en"}),this.live||1==this.playbackRate_||this.player.playbackRate(this.playbackRate_),this.player.on("ratechange",function(){t.playbackRate_=t.player.playbackRate()}),this.showCameraButton&&!this.waterText&&this.player.snapshot(),this.player.one("ready",function(){t.initVideoJSOK(),t.$emit("update:loading",!1),t.stretch_&&(t.player.tech_.el_.style.objectFit="fill"),t.player.hotkeys(t.hotkeysOpt()),t.showCustomButton&&t.customH5Button(),t.player.on("ended",function(){t.endedAt=(new Date).getTime(),t.$emit("ended"),t.debug&&console.log((new Date).toLocaleString()+" "+t.src+" ended")}),t.player.on("timeupdate",function(){t.updateTimeAt=(new Date).getTime(),t.pauseAt=0,t.endedAt=0,t.errorAt=0,t.reloadCnt=0,t.$emit("timeupdate",t.player.currentTime())}),t.player.on("playing",function(){t.playAt=(new Date).getTime(),t.avLoading=!1,t.$emit("play",t.player.currentTime()),t.debug&&console.log((new Date).toLocaleString()+" "+t.src+" playing")}),t.player.on("error",function(e){t.errorAt=(new Date).getTime(),t.$emit("error",e)})}));if(this.live&&this.liveInterval>0&&!(this.isMobile()&&this.http&&this.m3u8)){this.liveCheckTimer&&(clearInterval(this.liveCheckTimer),this.liveCheckTimer=0);var r=0;this.liveCheckTimer=setInterval(function(){if(!t.updateTimeAt){if(!t.playAt){var e=(new Date).getTime()-t.startAt;return t.debug&&console.log((new Date).toLocaleString()+" "+t.src+" live check never play d = "+e),void(!(e>=t.liveInterval&&t.src)||t.player&&t.player.isFullscreen()||(t.debug&&console.log((new Date).toLocaleString()+" "+t.src+" live check never play reload d = "+e),t.reload()))}return!t.pauseAt||t.errorAt||t.endedAt?(r++,t.debug&&console.log((new Date).toLocaleString()+" "+t.src+" live check update time error cnt = "+r),void(!(r>=3&&t.src)||t.player&&t.player.isFullscreen()||(t.debug&&console.log((new Date).toLocaleString()+" "+t.src+" live check update time error reload cnt = "+r),t.reload()))):(e=(new Date).getTime()-t.pauseAt,t.debug&&console.log((new Date).toLocaleString()+" "+t.src+" live check pause d = "+e),void(!(t.maxPauseSeconds>0&&e>=1e3*t.maxPauseSeconds&&t.src)||t.player&&t.player.isFullscreen()||(t.debug&&console.log((new Date).toLocaleString()+" "+t.src+" live check pause reload d = "+e),t.reload())))}r=0,e=(new Date).getTime()-t.updateTimeAt,t.debug&&console.log((new Date).toLocaleString()+" "+t.src+" live check d = "+e),!(e>=t.liveInterval&&t.src)||t.player&&t.player.isFullscreen()||(t.debug&&console.log((new Date).toLocaleString()+" "+t.src+" live check reload d = "+e),t.reload())},this.liveInterval)}}},createBase64:function(){var t=this.waterWidth,e=this.waterHeight,n=document.createElement("canvas"),i=n.getContext("2d");if(i){i.fillStyle=this.waterColor,i.textAlign="left",i.textBaseline="middle";var o=24;this.waterFont?i.font=this.waterFont:(i.font="24px Arial, Helvetica, sans-serif",i.measureText(this.waterText+"田").width>t&&(o=20,i.font="20px Arial, Helvetica, sans-serif",i.measureText(this.waterText+"田").width>t&&(o=16,i.font="16px Arial, Helvetica, sans-serif",i.measureText(this.waterText+"田").width>t&&(o=12,i.font="12px Arial, Helvetica, sans-serif")))),i.rotate(this.waterRotate);for(var r=this.waterText.split(/\\n/),s=0;s<r.length;s++)i.fillText(r[s],t/20,e+s*(o+4))}return n.toDataURL("image/png")},initDigitalZoom:function(){var t=this;if(this.digitalZoom){var e=this.debug,n=this.$el.querySelector("video");if(this.player&&n){var i=this.player.getAttribute("id");if(i){e&&console.log("digital zoom init ok id is "+i);var o=document.getElementById(i);if(o){var r=null,s=!1,a=!1,l=!1,u=void 0,c=void 0,h=void 0,d=void 0,f=null,p=!1,v=this.digitalZoomColor,m=null,_=i+"digital-zoom-rectangle",g=0,y=!1;o.addEventListener("mousedown",function(t){if(t.target==n&&0==(r=t.button)){var o=Date.now();if(o-g<500)return y=!0,s=!1,u=0,c=0,void(e&&console.log("digital zoom["+i+"] double click down ingnore"));y=!1,g=o,s=!0,u=t.offsetX,c=t.offsetY,e&&console.log("digital zoom["+i+"] mousedown",t)}}),o.addEventListener("mousemove",function(g){if(!p&&!y&&0==r){if(l){if(l=!1,s||!(1==g.which||g.key&&1===g.key.length&&1==g.key.charCodeAt()))return n.style.cursor="",void(p?j():w());s=!0}if(!s)return;h=g.offsetX,d=g.offsetY;var x=Math.abs(h-u),k=Math.abs(d-c),z=void 0,T=void 0;if(T=d<c?d:c,(z=h<u?h:u)<0||T<0)return;if(x<3||k<3)return;m||(m=g.target),(f=document.querySelector("."+_))||((f=document.createElement("div")).className=_,f.style.cursor="zoom-in",f.style.position="absolute",f.style.border="2px dashed "+v,o.appendChild(f)),a=!0,n.style.cursor="zoom-in",t.zoomDrawing=!0,g.target==m?(f.style.left=z+"px",f.style.top=T+"px",f.style.width=x+"px",f.style.height=k+"px"):g&&g.target&&g.target.className==_?(f.style.width=Math.abs(h)+"px",f.style.height=Math.abs(d)+"px"):b(g),e&&console.log("digital zoom["+i+"] mousemove->left=",z,",top=",T,",width=",x,",height=",k,",currentX=",h,",startX=",u,",currentY=",d,",startY=",c)}}),o.addEventListener("mouseup",function(t){s=!1,0!=r||y||(p?t.target==n&&j():w())});var b=function(t){l=!0,0==r&&(s=!1)};o.addEventListener("mouseleave",b);var w=function(r){var s,l,u,c;if(f){if(s=parseInt(f.style.left),l=parseInt(f.style.top),u=parseInt(f.style.width),c=parseInt(f.style.height),o.removeChild(f),f=null,t.zoomDrawing=!1,!(u<3||c<3)){a&&(n.style.cursor="zoom-out"),e&&console.log("digital zoom["+i+"] 放大开始->left=",s,",top=",l,",width=",u,",height=",c);var h=n,d=h.offsetWidth,v=h.offsetHeight,m=d/u*100,_=v/c*100,g=l*(v/c),y=s*(d/u);t.stretch_||(d/u>v/c?(_=d/u*100,g=l*(d/u)):(m=v/c*100,y=s*(v/c))),h.style.top="-"+g+"px",h.style.left="-"+y+"px",h.style.width=m+"%",h.style.height=_+"%",e&&console.log("digital zoom["+i+"] 放大结束->outWidth=",d,",width=",u,",widthX=",m,",outHeight=",v,",height=",c,",heightX=",_,",top=",l,",topX=",g,",left=",s,",leftX=",y),p=!0}}else t.zoomDrawing=!1},j=function(t){n.style.cursor="",p=!1,a=!1,u=0,c=0,e&&console.log("digital zoom["+i+"] 触发恢复");var o=n;o.style.top="0px",o.style.left="0px",o.style.width="100%",o.style.height="100%",r=null}}else e&&console.log("digital zoom init error, drawing area not found")}else e&&console.log("digital zoom init error, id not found")}else e&&console.log("digital zoom init error player not ready")}}}};n("UBF9");var l=function(t,e,n,i,o,r,s,a){var l,u="function"==typeof t?t.options:t;if(e&&(u.render=e,u.staticRenderFns=n,u._compiled=!0),o&&(l=o),l)if(u.functional){u._injectStyles=l;var c=u.render;u.render=function(t,e){return l.call(e),c(t,e)}}else{var h=u.beforeCreate;u.beforeCreate=h?[].concat(h,l):[l]}return{exports:t,options:u}}(a,function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"player-wrapper"},[n("div",{class:["video-wrapper",{"video-wrapper-stretch":this.stretch_}],style:t.videoWrapperStyle},[n("div",{staticClass:"video-inner",class:{live:t.live,"av-loading":t.avLoading,"hide-waiting":t.hideWaiting,"hide-controls":!t.controls,"zoom-drawing":t.zoomDrawing,"hide-big-play-button":t.hideBigPlayButton,"hide-snapshot-button":t.hideSnapshotButton,"hide-fullscreen-button":t.hideFullscreenButton,"hide-stretch-button":t.hideStretchButton,"hide-fluent-button":t.hideFluentButton,"hide-pic-in-pic":t.hidePicInPic,"hide-live-text":t.hideLiveText,"show-time":t.showTime&&!t.live},staticStyle:{position:"absolute",top:"0",bottom:"0",left:"0",right:"0"}}),t._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:t.waterText&&t.showSlot,expression:"waterText && showSlot"}],staticClass:"video-water",style:t.waterStyle}),t._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:t.showSlot,expression:"showSlot"}],staticClass:"video-slot"},[t._t("default")],2),t._v(" "),n("span",{directives:[{name:"show",rawName:"v-show",value:t.videoTitle&&t.showSlot,expression:"videoTitle && showSlot"}],staticClass:"video-title",attrs:{title:t.videoTitle}},[t._v(t._s(t.videoTitle))])])])},[],0,null).exports;l.install=function(t){"undefined"!=typeof window&&window.Vue&&(t=window.Vue),t.component(l.name,l)},e.default=l},yLpj:function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n}})})},eHB0:function(t,e,n){var i=n("kOR/");"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);n("rjj0")("7eeaf8fc",i,!0,{})},"ee0/":function(t,e,n){"use strict";var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{class:["modal",{fade:t.fade}],attrs:{"data-keyboard":"true","data-backdrop":"static",tabindex:"-1"}},[n("div",{class:["modal-dialog",t.size]},[n("div",{staticClass:"modal-content"},[n("div",{staticClass:"modal-header"},[t._m(0),t._v(" "),n("a",{directives:[{name:"show",rawName:"v-show",value:t.showPTZButton,expression:"showPTZButton"}],staticClass:"ptz",attrs:{role:"button",title:"云台控制"},on:{click:t.togglePTZVisible}},[n("span",{attrs:{"aria-hidden":"true"}},[t.ptzVisible?n("i",{staticClass:"fa fa-minus"}):n("i",{staticClass:"fa fa-plus"})])]),t._v(" "),n("h4",{staticClass:"modal-title text-primary text-center"},[n("span",[t._v(t._s(t.videoTitle))])])]),t._v(" "),n("div",{staticClass:"modal-body"},[n("div",{staticClass:"play-area",on:{mousemove:t.resetActiveTimer,touchstart:t.resetActiveTimer}},[t.bShow?n("LivePlayer",{directives:[{name:"loading",rawName:"v-loading",value:t.bLoading,expression:"bLoading"}],ref:"player",attrs:{videoUrl:t.videoUrl,waterMark:t.osd,poster:t.snapUrl,hideBigPlayButton:!!t.serverInfo.HideBigPlayButton,live:"",controls:t.controls,showCameraButton:t.snap,showCustomButton:t.custom,fluent:t.fluent,stretch:t.stretch,autoplay:t.autoplay,muted:t.isMuted,digitalZoom:t.digitalZoom,alt:t.alt,loading:t.bLoading,"element-loading-text":"加载中...","element-loading-background":"#000"},on:{media_info:t.onMediaInfo,ended:t.onEnded,error:t.onError,message:t.$message,fullscreen:t.onFullscreenChange,"update:loading":function(e){t.bLoading=e}}},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.showPTZBlock,expression:"showPTZBlock"}],staticClass:"ptz-block-fs"},[n("div",{staticClass:"ptz-cell ptz-up",attrs:{title:"上"},on:{mousedown:function(e){e.preventDefault(),t.ptzControl("up",e)}}},[n("i",{staticClass:"fa fa-chevron-up"})]),t._v(" "),n("div",{staticClass:"ptz-cell ptz-left",attrs:{title:"左"},on:{mousedown:function(e){e.preventDefault(),t.ptzControl("left",e)}}},[n("i",{staticClass:"fa fa-chevron-left"})]),t._v(" "),n("div",{staticClass:"ptz-cell ptz-center",attrs:{title:"云台控制"}},[n("i",{staticClass:"fa fa-arrows"})]),t._v(" "),n("div",{staticClass:"ptz-cell ptz-right",attrs:{title:"右"},on:{mousedown:function(e){e.preventDefault(),t.ptzControl("right",e)}}},[n("i",{staticClass:"fa fa-chevron-right"})]),t._v(" "),n("div",{staticClass:"ptz-cell ptz-down",attrs:{title:"下"},on:{mousedown:function(e){e.preventDefault(),t.ptzControl("down",e)}}},[n("i",{staticClass:"fa fa-chevron-down"})]),t._v(" "),n("div",{staticClass:"ptz-cell ptz-zoomin",attrs:{title:"放大"},on:{mousedown:function(e){e.preventDefault(),t.ptzControl("zoomin",e)}}},[n("i",{staticClass:"fa fa-plus-circle"})]),t._v(" "),t.showTalk?n("div",{staticClass:"ptz-cell ptz-talk",on:{mousedown:function(e){e.preventDefault(),t.talkStart(e)}}},[n("i",{staticClass:"fa fa-microphone"})]):t._e(),t._v(" "),n("div",{staticClass:"ptz-cell ptz-zoomout",attrs:{title:"缩小"},on:{mousedown:function(e){e.preventDefault(),t.ptzControl("zoomout",e)}}},[n("i",{staticClass:"fa fa-minus-circle"})])])]):t._e()],1),t._v(" "),t.isDemoUser(t.serverInfo,t.userInfo)&&!t.bOutHevcTip?n("div",{staticClass:"text-center"},[n("br"),t._v("\r\n 提示: 演示系统限制匿名登录播放时间, 若需测试长时间播放, 请"),n("a",{attrs:{target:"_blank",href:"//www.liveqing.com/docs/download/LiveGBS.html"}},[t._v("下载使用")]),t._v(" "),n("br"),t._v(" "),n("br")]):t._e(),t._v(" "),t.bOutHevcTip?n("div",{staticClass:"text-center text-red"},[n("br"),t._v("\r\n 提示: 正在播放 H265 直出流, 确保浏览器版本较新, 并且开启硬件加速\r\n "),n("br"),t._v(" "),n("br")]):t._e(),t._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:t.showPTZBottom,expression:"showPTZBottom"}],staticClass:"ptz-block-bottom"},[t.ws?n("el-progress",{staticClass:"mic-level-bar",attrs:{percentage:t.level,"text-inside":!0}}):t._e(),t._v(" "),n("div",{staticClass:"ptz-cell ptz-up",attrs:{command:"up",title:"上"},on:{mousedown:function(e){e.preventDefault(),t.ptzControl("up",e)},touchstart:function(e){e.preventDefault(),t.ptzControl("up",e)}}},[n("i",{staticClass:"fa fa-chevron-up"})]),t._v(" "),n("div",{staticClass:"ptz-cell ptz-left",attrs:{command:"left",title:"左"},on:{mousedown:function(e){e.preventDefault(),t.ptzControl("left",e)},touchstart:function(e){e.preventDefault(),t.ptzControl("left",e)}}},[n("i",{staticClass:"fa fa-chevron-left"})]),t._v(" "),n("div",{staticClass:"ptz-cell ptz-center",attrs:{title:"云台控制"}},[t.showTalk?n("i",{staticClass:"fa fa-microphone",attrs:{title:"按住喊话"},on:{mousedown:function(e){e.preventDefault(),t.talkStart(e)},touchstart:function(e){e.preventDefault(),t.talkStart(e)}}}):t._e()]),t._v(" "),n("div",{staticClass:"ptz-cell ptz-right",attrs:{command:"right",title:"右"},on:{mousedown:function(e){e.preventDefault(),t.ptzControl("right",e)},touchstart:function(e){e.preventDefault(),t.ptzControl("right",e)}}},[n("i",{staticClass:"fa fa-chevron-right"})]),t._v(" "),n("div",{staticClass:"ptz-cell ptz-down",attrs:{command:"down",title:"下"},on:{mousedown:function(e){e.preventDefault(),t.ptzControl("down",e)},touchstart:function(e){e.preventDefault(),t.ptzControl("down",e)}}},[n("i",{staticClass:"fa fa-chevron-down"})]),t._v(" "),n("div",{staticClass:"ptz-cell ptz-zoomin",attrs:{command:"zoomin",title:"放大"},on:{mousedown:function(e){e.preventDefault(),t.ptzControl("zoomin",e)},touchstart:function(e){e.preventDefault(),t.ptzControl("zoomin",e)}}},[n("i",{staticClass:"fa fa-plus"})]),t._v(" "),n("div",{staticClass:"ptz-cell ptz-zoomout",attrs:{command:"zoomout",title:"缩小"},on:{mousedown:function(e){e.preventDefault(),t.ptzControl("zoomout",e)},touchstart:function(e){e.preventDefault(),t.ptzControl("zoomout",e)}}},[n("i",{staticClass:"fa fa-minus"})])],1)])])])])},o=[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("button",{staticClass:"close",attrs:{type:"button","data-dismiss":"modal","aria-label":"Close",title:"关闭"}},[n("span",{attrs:{"aria-hidden":"true"}},[t._v("×")])])}],r={render:i,staticRenderFns:o};e.a=r},"kOR/":function(t,e,n){e=t.exports=n("FZ+f")(!1),e.push([t.i,".modal-dialog[data-v-493cb24e]{margin-top:110px;margin-bottom:0}.modal-content[data-v-493cb24e]{border-radius:6px}.modal-title[data-v-493cb24e]{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.modal-header[data-v-493cb24e]{padding:4px}.modal-header .ptz[data-v-493cb24e]{position:absolute;top:5px;right:35px;margin-top:0;line-height:24px;color:#000;opacity:.2}.modal-header .ptz[data-v-493cb24e]:focus,.modal-header .ptz[data-v-493cb24e]:hover{color:#000;opacity:.5}.modal-header .close[data-v-493cb24e]{position:absolute;top:5px;right:10px;margin-top:0;line-height:24px}.modal-body[data-v-493cb24e]{padding:0}.ptz-block-bottom[data-v-493cb24e]{width:150px;height:210px;margin:0 auto;margin-top:10px;text-align:center;position:relative;font-size:24px}.ptz-block-bottom .ptz-cell[data-v-493cb24e]{width:50px;height:50px;line-height:50px;position:absolute}.ptz-block-bottom .ptz-cell.active[data-v-493cb24e]{color:#ccc;font-size:26px}.ptz-block-bottom .fa-microphone-slash[data-v-493cb24e],.ptz-block-bottom .fa-microphone[data-v-493cb24e]{padding:10px 13px;border-radius:25px}.ptz-block-bottom .fa-microphone.active[data-v-493cb24e]{color:#fff}.ptz-block-bottom .mic-level-bar[data-v-493cb24e]{position:absolute;transform:rotate(-90deg);width:100%;top:70px;left:-80px}.ptz-block-bottom .ptz-center[data-v-493cb24e]{top:50px;left:50px;border-radius:25px;background-color:#ccc}.ptz-block-bottom .ptz-up[data-v-493cb24e]{top:0;left:50px}.ptz-block-bottom .ptz-left[data-v-493cb24e]{top:50px;left:0}.ptz-block-bottom .ptz-right[data-v-493cb24e]{top:50px;left:100px}.ptz-block-bottom .ptz-down[data-v-493cb24e]{top:100px;left:50px}.ptz-block-bottom .ptz-zoomin[data-v-493cb24e]{top:150px;left:20px}.ptz-block-bottom .ptz-talk[data-v-493cb24e]{top:150px;left:50px}.ptz-block-bottom .ptz-zoomout[data-v-493cb24e]{top:150px;left:80px}.ptz-block-bottom .ptz-center>.fa-microphone[data-v-493cb24e],.ptz-block-bottom .ptz-down[data-v-493cb24e],.ptz-block-bottom .ptz-left[data-v-493cb24e],.ptz-block-bottom .ptz-right[data-v-493cb24e],.ptz-block-bottom .ptz-talk>.fa-microphone[data-v-493cb24e],.ptz-block-bottom .ptz-up[data-v-493cb24e],.ptz-block-bottom .ptz-zoomin[data-v-493cb24e],.ptz-block-bottom .ptz-zoomout[data-v-493cb24e]{cursor:pointer}.ptz-block-bottom .ptz-center>.fa-microphone.readonly[data-v-493cb24e],.ptz-block-bottom .ptz-down.readonly[data-v-493cb24e],.ptz-block-bottom .ptz-left.readonly[data-v-493cb24e],.ptz-block-bottom .ptz-right.readonly[data-v-493cb24e],.ptz-block-bottom .ptz-talk>.fa-microphone.readonly[data-v-493cb24e],.ptz-block-bottom .ptz-up.readonly[data-v-493cb24e],.ptz-block-bottom .ptz-zoomin.readonly[data-v-493cb24e],.ptz-block-bottom .ptz-zoomout.readonly[data-v-493cb24e]{cursor:auto}.ptz-block-fs[data-v-493cb24e]{position:fixed;margin:0;margin-bottom:50px;top:0;right:0;width:150px;height:200px;text-align:center;font-size:24px}.ptz-block-fs .ptz-cell[data-v-493cb24e]{width:50px;height:50px;line-height:50px;position:absolute}.ptz-block-fs .ptz-cell.active[data-v-493cb24e]{color:#ccc;font-size:26px}.ptz-block-fs .ptz-cell.readonly[data-v-493cb24e]{color:#ddd}.ptz-block-fs .fa-microphone-slash[data-v-493cb24e],.ptz-block-fs .fa-microphone[data-v-493cb24e]{padding:10px 13px;border-radius:25px}.ptz-block-fs .fa-microphone.active[data-v-493cb24e]{color:#ccc}.ptz-block-fs .fa-microphone-slash.readonly[data-v-493cb24e],.ptz-block-fs .fa-microphone.readonly[data-v-493cb24e]{color:#ddd}.ptz-block-fs .mic-level-bar[data-v-493cb24e]{position:absolute;transform:rotate(-90deg);width:100%;top:70px;left:-80px}.ptz-block-fs .ptz-center[data-v-493cb24e]{width:50px;height:50px;top:50px;left:50px;line-height:50px;border-radius:25px;background-color:#ccc;cursor:move;position:absolute}.ptz-block-fs .ptz-up[data-v-493cb24e]{top:0;left:50px}.ptz-block-fs .ptz-left[data-v-493cb24e]{top:50px;left:0}.ptz-block-fs .ptz-right[data-v-493cb24e]{top:50px;left:100px}.ptz-block-fs .ptz-down[data-v-493cb24e]{top:100px;left:50px}.ptz-block-fs .ptz-zoomin[data-v-493cb24e]{top:150px;left:15px}.ptz-block-fs .ptz-zoomout[data-v-493cb24e]{top:150px;left:85px}.ptz-block-fs .ptz-talk[data-v-493cb24e]{top:150px;left:50px}.ptz-block-fs .ptz-center>.fa-microphone[data-v-493cb24e],.ptz-block-fs .ptz-down[data-v-493cb24e],.ptz-block-fs .ptz-left[data-v-493cb24e],.ptz-block-fs .ptz-right[data-v-493cb24e],.ptz-block-fs .ptz-talk>.fa-microphone[data-v-493cb24e],.ptz-block-fs .ptz-up[data-v-493cb24e],.ptz-block-fs .ptz-zoomin[data-v-493cb24e],.ptz-block-fs .ptz-zoomout[data-v-493cb24e]{cursor:pointer}.ptz-block-fs .ptz-center>.fa-microphone.readonly[data-v-493cb24e],.ptz-block-fs .ptz-down.readonly[data-v-493cb24e],.ptz-block-fs .ptz-left.readonly[data-v-493cb24e],.ptz-block-fs .ptz-right.readonly[data-v-493cb24e],.ptz-block-fs .ptz-talk>.fa-microphone.readonly[data-v-493cb24e],.ptz-block-fs .ptz-up.readonly[data-v-493cb24e],.ptz-block-fs .ptz-zoomin.readonly[data-v-493cb24e],.ptz-block-fs .ptz-zoomout.readonly[data-v-493cb24e]{cursor:auto}@media screen and (min-width:768px){.modal-dialog.modal-lgg[data-v-493cb24e]{width:90%}.tab-info[data-v-493cb24e]{display:none}}@media screen and (min-width:1200px){.modal-dialog.modal-lgg[data-v-493cb24e]{width:1200px}.tab-info[data-v-493cb24e]{display:block}}",""])},kOR3:function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),n("F8S1");var i=n("eAMf"),o=function(t){return t&&t.__esModule?t:{default:t}}(i);e.default={data:function(){return{videoUrl:"",videoTitle:"",protocol_:"",osd:"",snapUrl:"",serial:"",code:"",streamid:"",streamInfo:null,bShow:!1,bLoading:!1,recorder:null,ws:null,level:0,mediaInfo:null,bAudioEnable:!1,bOutHevcTip:!1,bControls:!1,alt:"无信号",fullscreen:!1,ptzVisible:!1,ptzType:0,activeTimer:null,activeInterval:0}},props:{fade:{type:Boolean,default:!1},size:{type:String,default:""},protocol:{type:String,default:""},talk:{type:Boolean,default:!1},ptz:{type:Boolean,default:!1},token:{type:String,default:""},controls:{type:Boolean,default:!0},snap:{type:Boolean,default:void 0},custom:{type:Boolean,default:!0},fluent:{type:Boolean,default:!0},stretch:{type:Boolean,default:!1},autoplay:{type:Boolean,default:!0},muted:{type:String,default:""},digitalZoom:{type:Boolean,default:!0},serverInfo:{type:Object,default:function(){}},userInfo:{type:Object,default:function(){return null}}},computed:{showTalk:function(){return this.talk&&this.canTalk()&&"标准版"!=this.serverInfo.VersionType},canPTZ:function(){return this.videoUrl&&(0===this.ptzType||1===this.ptzType)},showPTZButton:function(){return this.videoUrl&&(this.ptz||this.talk)&&this.hasAnyRole(this.serverInfo,this.userInfo,"管理员","操作员")},showPTZBottom:function(){return this.ptzVisible&&this.videoUrl},showPTZBlock:function(){return this.ptzVisible&&this.videoUrl&&this.fullscreen&&!this.isMobile()&&this.bControls},isMuted:function(){switch(this.muted){case"yes":return!0;case"no":return!1;default:return!this.bAudioEnable}}},beforeDestroy:function(){this.ws&&(this.ws.close(),this.ws=null),this.activeTimer&&(clearTimeout(this.activeTimer),this.activeTimer=null),this.ctrlStop(),t(document).off("mouseup touchend",this.mouseUp)},mounted:function(){var e=this;t(this.$el).find(".modal-content").draggable({handle:".modal-header",cancel:".modal-title span, .close, .ptz",addClasses:!1,containment:"document",delay:100,opacity:.5}),t(this.$el).on("hide.bs.modal",function(){e.ptzVisible=!1,e.ptzType=0,e.streamInfo=null,e.mediaInfo=null,e.snapUrl="",e.videoUrl="",e.videoTitle="",e.protocol_="",e.osd="",e.alt="无信号",e.ctrlStop(),e.bAudioEnable=!1,e.bOutHevcTip=!1,e.bControls=!1,e.bShow=!1,e.activeTimer&&(clearTimeout(e.activeTimer),e.activeTimer=null)}).on("show.bs.modal",function(){e.bShow=!0}),t(document).on("mouseup touchend",this.mouseUp)},components:{LivePlayer:o.default},methods:{play:function(e,n,i){this.serial=e||"",this.code=n||"",i=i||{};var o=i.HLS,r=i.SnapURL,s="HLS";switch(this.flvSupported()&&(o=this.isIE()?i.WS_FLV:i.FLV,s=this.isIE()?"WS_FLV":"FLV"),String(this.protocol||this.serverInfo.PreferStreamFmt).toUpperCase()){case"WEBRTC":this.rtcSupported()&&(o=i.WEBRTC,s="WEBRTC");break;case"FLV":this.flvSupported()&&!this.isIE()&&(o=i.FLV,s="FLV");break;case"WS_FLV":case"WS-FLV":this.flvSupported()&&(o=i.WS_FLV,s="WS_FLV");break;case"HLS":o=i.HLS,s="HLS";break;case"RTMP":o=i.RTMP,r="",s="RTMP"}this.streamid=i.StreamID||"",this.streamInfo=i,this.bAudioEnable=!!i.AudioEnable,this.videoTitle=i.ChannelName||n||"",this.osd=i.ChannelOSD||"",this.ptzType=i.ChannelPTZType||0,this.protocol_=s,this.token&&(o&&(-1==o.indexOf("?")?o+="?token="+this.token:o+="&token="+this.token),r&&(-1==r.indexOf("?")?r+="?token="+this.token:r+="&token="+this.token)),this.snapUrl=r||"",this.videoUrl=o||"",!o&&i.Message&&"string"==typeof i.Message&&(this.alt=i.Message),t(this.$el).modal("show")},ptzControl:function(e,n){var i=this;t.ajax({method:"POST",url:"/api/v1/control/ptz",global:!1,data:{serial:this.serial,code:this.code,command:e,token:this.token}}).fail(function(t){t&&(console.log("ptz "+e+" ajax error: "+t.status+" "+t.responseText),401==t.status&&i.$route&&i.$route.path&&(location.href="/login?r="+encodeURIComponent(window.location.href)))}),t(n.target).closest(".ptz-cell").addClass("active")},ptzStop:function(){var e=this;t(this.$el).find(".ptz-cell.active").length>0&&(t.ajax({method:"POST",url:"/api/v1/control/ptz",global:!1,data:{serial:this.serial,code:this.code,command:"stop",token:this.token}}).fail(function(t){t&&(console.log("ptz stop ajax error: "+t.status+" "+t.responseText),401==t.status&&e.$route&&e.$route.path&&(location.href="/login?r="+encodeURIComponent(window.location.href)))}).always(function(){!e.isMobile()&&e.fullscreen&&e.bControls&&(e.activeInterval=5e3,e.resetActiveTimer())}),t(this.$el).find(".ptz-cell.active").removeClass("active"))},talkStart:function(e){var n=this;if(this.ws){if(this.serverInfo.TalkHold)return void this.talkStop()}else this.ws=new WebSocket(this.wsTalkURL()),this.ws.onopen=function(t){console.log("ws talk open")},this.ws.onclose=function(t){console.log("ws talk close")},this.ws.onerror=function(t){console.log("ws talk error",t)};var i=t(e.currentTarget);if(this.recorder)return i.addClass("active"),void this.recorder.start();LiveRecorder.get(function(t,e){if(e)return alert(e),void n.talkStop();i.addClass("active"),n.recorder=t,n.recorder.start()},{sampleBits:16,sampleRate:8e3,pcmCallback:function(t,e){var i=new window.FileReader;i.onloadend=function(){var t=i.result,t=t.split(",")[1];n.ws&&n.ws.readyState===WebSocket.OPEN&&(n.ws.send(t),n.level=e)},i.readAsDataURL(t)}})},talkStop:function(){this.recorder&&(this.recorder.destroy(),this.recorder=null,t(this.$el).find(".fa-microphone.active").removeClass("active")),this.ws&&(this.ws.close(),this.ws=null,!this.isMobile()&&this.fullscreen&&this.bControls&&(this.activeInterval=5e3,this.resetActiveTimer())),this.level=0},ctrlStop:function(){this.talkStop(),this.ptzStop()},mouseUp:function(){this.serverInfo.TalkHold||this.talkStop(),this.ptzStop()},wsTalkURL:function(){var t="ws:";location.protocol.startsWith("https")&&(t="wss:");var e=t+"//"+location.host+"/api/v1/control/ws-talk/"+this.serial+"/"+this.code+"?format=pcm";return this.token&&(e+="&token="+this.token),e},onMediaInfo:function(t){this.mediaInfo=t},onEnded:function(t){this.mediaInfo=null},onError:function(t){"MediaError"==t&&(this.mediaInfo&&String(this.mediaInfo.videoCodec).startsWith("hvc")||"HLS"==this.protocol_)&&flvjs.getFeatureList()&&!flvjs.getFeatureList().nativeMP4H265Playback&&(this.bOutHevcTip=!0,console.log("提示: 正在播放 H265 直出流, 确保浏览器版本较新, 并且开启硬件加速"))},onFullscreenChange:function(e){this.fullscreen=e,e?t(this.$el).find(".ptz-block-fs").draggable({handle:".ptz-center",containment:".play-area .video-js",delay:100}):t(this.$el).find(".ptz-block-fs").draggable("destroy"),this.$emit("fullscreen",e)},togglePTZVisible:function(){this.ptzVisible=!this.ptzVisible},resetActiveTimer:function(){var e=this;this.bControls=!0,this.activeTimer&&clearTimeout(this.activeTimer),this.activeTimer=setTimeout(function(){e.activeInterval=0,0==t(e.$el).find(".ptz-block-fs .ptz-cell.active").length&&(e.bControls=!1)},this.activeInterval||2e3)}}}}).call(e,n("0iPh"))},nrd6:function(t,e,n){!function(t,n){n(e)}(0,function(t){"use strict";function e(t){var e,n,i,o;for(n=1,i=arguments.length;n<i;n++){o=arguments[n];for(e in o)t[e]=o[e]}return t}function n(t,e){var n=Array.prototype.slice;if(t.bind)return t.bind.apply(t,n.call(arguments,1));var i=n.call(arguments,2);return function(){return t.apply(e,i.length?i.concat(n.call(arguments)):arguments)}}function i(t){return"_leaflet_id"in t||(t._leaflet_id=++_e),t._leaflet_id}function o(t,e,n){var i,o,r,s;return s=function(){i=!1,o&&(r.apply(n,o),o=!1)},r=function(){i?o=arguments:(t.apply(n,arguments),setTimeout(s,e),i=!0)}}function r(t,e,n){var i=e[1],o=e[0],r=i-o;return t===i&&n?t:((t-o)%r+r)%r+o}function s(){return!1}function a(t,e){if(!1===e)return t;var n=Math.pow(10,void 0===e?6:e);return Math.round(t*n)/n}function l(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function u(t){return l(t).split(/\s+/)}function c(t,e){Object.prototype.hasOwnProperty.call(t,"options")||(t.options=t.options?me(t.options):{});for(var n in e)t.options[n]=e[n];return t.options}function h(t,e,n){var i=[];for(var o in t)i.push(encodeURIComponent(n?o.toUpperCase():o)+"="+encodeURIComponent(t[o]));return(e&&-1!==e.indexOf("?")?"&":"?")+i.join("&")}function d(t,e){return t.replace(ge,function(t,n){var i=e[n];if(void 0===i)throw new Error("No value provided for variable "+t);return"function"==typeof i&&(i=i(e)),i})}function f(t,e){for(var n=0;n<t.length;n++)if(t[n]===e)return n;return-1}function p(t){return window["webkit"+t]||window["moz"+t]||window["ms"+t]}function v(t){var e=+new Date,n=Math.max(0,16-(e-we));return we=e+n,window.setTimeout(t,n)}function m(t,e,i){if(!i||je!==v)return je.call(window,n(t,e));t.call(e)}function _(t){t&&xe.call(window,t)}function g(){}function y(t){if("undefined"!=typeof L&&L&&L.Mixin){t=ye(t)?t:[t];for(var e=0;e<t.length;e++)t[e]===L.Mixin.Events&&console.warn("Deprecated include of L.Mixin.Events: this property will be removed in future releases, please inherit from L.Evented instead.",(new Error).stack)}}function b(t,e,n){this.x=n?Math.round(t):t,this.y=n?Math.round(e):e}function w(t,e,n){return t instanceof b?t:ye(t)?new b(t[0],t[1]):void 0===t||null===t?t:"object"==typeof t&&"x"in t&&"y"in t?new b(t.x,t.y):new b(t,e,n)}function j(t,e){if(t)for(var n=e?[t,e]:t,i=0,o=n.length;i<o;i++)this.extend(n[i])}function x(t,e){return!t||t instanceof j?t:new j(t,e)}function k(t,e){if(t)for(var n=e?[t,e]:t,i=0,o=n.length;i<o;i++)this.extend(n[i])}function z(t,e){return t instanceof k?t:new k(t,e)}function T(t,e,n){if(isNaN(t)||isNaN(e))throw new Error("Invalid LatLng object: ("+t+", "+e+")");this.lat=+t,this.lng=+e,void 0!==n&&(this.alt=+n)}function S(t,e,n){return t instanceof T?t:ye(t)&&"object"!=typeof t[0]?3===t.length?new T(t[0],t[1],t[2]):2===t.length?new T(t[0],t[1]):null:void 0===t||null===t?t:"object"==typeof t&&"lat"in t?new T(t.lat,"lng"in t?t.lng:t.lon,t.alt):void 0===e?null:new T(t,e,n)}function C(t,e,n,i){if(ye(t))return this._a=t[0],this._b=t[1],this._c=t[2],void(this._d=t[3]);this._a=t,this._b=e,this._c=n,this._d=i}function A(t,e,n,i){return new C(t,e,n,i)}function P(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function M(t,e){var n,i,o,r,s,a,l="";for(n=0,o=t.length;n<o;n++){for(s=t[n],i=0,r=s.length;i<r;i++)a=s[i],l+=(i?"L":"M")+a.x+" "+a.y;l+=e?bn.svg?"z":"x":""}return l||"M0 0"}function B(t){return navigator.userAgent.toLowerCase().indexOf(t)>=0}function E(t,e,n){return"touchstart"===e&&F(),Tn[e]?(n=Tn[e].bind(this,n),t.addEventListener(zn[e],n,!1),n):(console.warn("wrong event specified:",e),s)}function I(t,e,n){if(!zn[e])return void console.warn("wrong event specified:",e);t.removeEventListener(zn[e],n,!1)}function O(t){Ln[t.pointerId]=t}function D(t){Ln[t.pointerId]&&(Ln[t.pointerId]=t)}function Z(t){delete Ln[t.pointerId]}function F(){Sn||(document.addEventListener(wn,O,!0),document.addEventListener(jn,D,!0),document.addEventListener(xn,Z,!0),document.addEventListener(kn,Z,!0),Sn=!0)}function R(t,e){if(e.pointerType!==(e.MSPOINTER_TYPE_MOUSE||"mouse")){e.touches=[];for(var n in Ln)e.touches.push(Ln[n]);e.changedTouches=[e],t(e)}}function N(t,e){e.MSPOINTER_TYPE_TOUCH&&e.pointerType===e.MSPOINTER_TYPE_TOUCH&&xt(e),R(t,e)}function U(t){var e,n,i={};for(n in t)e=t[n],i[n]=e&&e.bind?e.bind(t):e;return t=i,i.type="dblclick",i.detail=2,i.isTrusted=!1,i._simulated=!0,i}function H(t,e){function n(t){if(1!==t.detail)return void(i=t.detail);if("mouse"!==t.pointerType&&(!t.sourceCapabilities||t.sourceCapabilities.firesTouchEvents)){var n=zt(t);if(!n.some(function(t){return t instanceof HTMLLabelElement&&t.attributes.for})||n.some(function(t){return t instanceof HTMLInputElement||t instanceof HTMLSelectElement})){var r=Date.now();r-o<=Cn?2===++i&&e(U(t)):i=1,o=r}}}t.addEventListener("dblclick",e);var i,o=0;return t.addEventListener("click",n),{dblclick:e,simDblclick:n}}function V(t,e){t.removeEventListener("dblclick",e.dblclick),t.removeEventListener("click",e.simDblclick)}function W(t){return"string"==typeof t?document.getElementById(t):t}function q(t,e){var n=t.style[e]||t.currentStyle&&t.currentStyle[e];if((!n||"auto"===n)&&document.defaultView){var i=document.defaultView.getComputedStyle(t,null);n=i?i[e]:null}return"auto"===n?null:n}function J(t,e,n){var i=document.createElement(t);return i.className=e||"",n&&n.appendChild(i),i}function $(t){var e=t.parentNode;e&&e.removeChild(t)}function G(t){for(;t.firstChild;)t.removeChild(t.firstChild)}function Y(t){var e=t.parentNode;e&&e.lastChild!==t&&e.appendChild(t)}function K(t){var e=t.parentNode;e&&e.firstChild!==t&&e.insertBefore(t,e.firstChild)}function X(t,e){if(void 0!==t.classList)return t.classList.contains(e);var n=nt(t);return n.length>0&&new RegExp("(^|\\s)"+e+"(\\s|$)").test(n)}function Q(t,e){if(void 0!==t.classList)for(var n=u(e),i=0,o=n.length;i<o;i++)t.classList.add(n[i]);else if(!X(t,e)){var r=nt(t);et(t,(r?r+" ":"")+e)}}function tt(t,e){void 0!==t.classList?t.classList.remove(e):et(t,l((" "+nt(t)+" ").replace(" "+e+" "," ")))}function et(t,e){void 0===t.className.baseVal?t.className=e:t.className.baseVal=e}function nt(t){return t.correspondingElement&&(t=t.correspondingElement),void 0===t.className.baseVal?t.className:t.className.baseVal}function it(t,e){"opacity"in t.style?t.style.opacity=e:"filter"in t.style&&ot(t,e)}function ot(t,e){var n=!1,i="DXImageTransform.Microsoft.Alpha";try{n=t.filters.item(i)}catch(t){if(1===e)return}e=Math.round(100*e),n?(n.Enabled=100!==e,n.Opacity=e):t.style.filter+=" progid:"+i+"(opacity="+e+")"}function rt(t){for(var e=document.documentElement.style,n=0;n<t.length;n++)if(t[n]in e)return t[n];return!1}function st(t,e,n){var i=e||new b(0,0);t.style[An]=(bn.ie3d?"translate("+i.x+"px,"+i.y+"px)":"translate3d("+i.x+"px,"+i.y+"px,0)")+(n?" scale("+n+")":"")}function at(t,e){t._leaflet_pos=e,bn.any3d?st(t,e):(t.style.left=e.x+"px",t.style.top=e.y+"px")}function lt(t){return t._leaflet_pos||new b(0,0)}function ut(){vt(window,"dragstart",xt)}function ct(){mt(window,"dragstart",xt)}function ht(t){for(;-1===t.tabIndex;)t=t.parentNode;t.style&&(dt(),En=t,In=t.style.outline,t.style.outline="none",vt(window,"keydown",dt))}function dt(){En&&(En.style.outline=In,En=void 0,In=void 0,mt(window,"keydown",dt))}function ft(t){do{t=t.parentNode}while(!(t.offsetWidth&&t.offsetHeight||t===document.body));return t}function pt(t){var e=t.getBoundingClientRect();return{x:e.width/t.offsetWidth||1,y:e.height/t.offsetHeight||1,boundingClientRect:e}}function vt(t,e,n,i){if(e&&"object"==typeof e)for(var o in e)gt(t,o,e[o],n);else{e=u(e);for(var r=0,s=e.length;r<s;r++)gt(t,e[r],n,i)}return this}function mt(t,e,n,i){if(1===arguments.length)_t(t),delete t[Dn];else if(e&&"object"==typeof e)for(var o in e)yt(t,o,e[o],n);else if(e=u(e),2===arguments.length)_t(t,function(t){return-1!==f(e,t)});else for(var r=0,s=e.length;r<s;r++)yt(t,e[r],n,i);return this}function _t(t,e){for(var n in t[Dn]){var i=n.split(/\d/)[0];e&&!e(i)||yt(t,i,null,null,n)}}function gt(t,e,n,o){var r=e+i(n)+(o?"_"+i(o):"");if(t[Dn]&&t[Dn][r])return this;var s=function(e){return n.call(o||t,e||window.event)},a=s;!bn.touchNative&&bn.pointer&&0===e.indexOf("touch")?s=E(t,e,s):bn.touch&&"dblclick"===e?s=H(t,s):"addEventListener"in t?"touchstart"===e||"touchmove"===e||"wheel"===e||"mousewheel"===e?t.addEventListener(Zn[e]||e,s,!!bn.passiveEvents&&{passive:!1}):"mouseenter"===e||"mouseleave"===e?(s=function(e){e=e||window.event,St(t,e)&&a(e)},t.addEventListener(Zn[e],s,!1)):t.addEventListener(e,a,!1):t.attachEvent("on"+e,s),t[Dn]=t[Dn]||{},t[Dn][r]=s}function yt(t,e,n,o,r){r=r||e+i(n)+(o?"_"+i(o):"");var s=t[Dn]&&t[Dn][r];if(!s)return this;!bn.touchNative&&bn.pointer&&0===e.indexOf("touch")?I(t,e,s):bn.touch&&"dblclick"===e?V(t,s):"removeEventListener"in t?t.removeEventListener(Zn[e]||e,s,!1):t.detachEvent("on"+e,s),t[Dn][r]=null}function bt(t){return t.stopPropagation?t.stopPropagation():t.originalEvent?t.originalEvent._stopped=!0:t.cancelBubble=!0,this}function wt(t){return gt(t,"wheel",bt),this}function jt(t){return vt(t,"mousedown touchstart dblclick contextmenu",bt),t._leaflet_disable_click=!0,this}function xt(t){return t.preventDefault?t.preventDefault():t.returnValue=!1,this}function kt(t){return xt(t),bt(t),this}function zt(t){if(t.composedPath)return t.composedPath();for(var e=[],n=t.target;n;)e.push(n),n=n.parentNode;return e}function Tt(t,e){if(!e)return new b(t.clientX,t.clientY);var n=pt(e),i=n.boundingClientRect;return new b((t.clientX-i.left)/n.x-e.clientLeft,(t.clientY-i.top)/n.y-e.clientTop)}function Lt(t){return bn.edge?t.wheelDeltaY/2:t.deltaY&&0===t.deltaMode?-t.deltaY/Fn:t.deltaY&&1===t.deltaMode?20*-t.deltaY:t.deltaY&&2===t.deltaMode?60*-t.deltaY:t.deltaX||t.deltaZ?0:t.wheelDelta?(t.wheelDeltaY||t.wheelDelta)/2:t.detail&&Math.abs(t.detail)<32765?20*-t.detail:t.detail?t.detail/-32765*60:0}function St(t,e){var n=e.relatedTarget;if(!n)return!0;try{for(;n&&n!==t;)n=n.parentNode}catch(t){return!1}return n!==t}function Ct(t,e){return new Un(t,e)}function At(t,e){if(!e||!t.length)return t.slice();var n=e*e;return t=It(t,n),t=Bt(t,n)}function Pt(t,e,n){return Math.sqrt(Rt(t,e,n,!0))}function Mt(t,e,n){return Rt(t,e,n)}function Bt(t,e){var n=t.length,i=typeof Uint8Array!=void 0+""?Uint8Array:Array,o=new i(n);o[0]=o[n-1]=1,Et(t,o,e,0,n-1);var r,s=[];for(r=0;r<n;r++)o[r]&&s.push(t[r]);return s}function Et(t,e,n,i,o){var r,s,a,l=0;for(s=i+1;s<=o-1;s++)(a=Rt(t[s],t[i],t[o],!0))>l&&(r=s,l=a);l>n&&(e[r]=1,Et(t,e,n,i,r),Et(t,e,n,r,o))}function It(t,e){for(var n=[t[0]],i=1,o=0,r=t.length;i<r;i++)Ft(t[i],t[o])>e&&(n.push(t[i]),o=i);return o<r-1&&n.push(t[r-1]),n}function Ot(t,e,n,i,o){var r,s,a,l=i?ti:Zt(t,n),u=Zt(e,n);for(ti=u;;){if(!(l|u))return[t,e];if(l&u)return!1;r=l||u,s=Dt(t,e,r,n,o),a=Zt(s,n),r===l?(t=s,l=a):(e=s,u=a)}}function Dt(t,e,n,i,o){var r,s,a=e.x-t.x,l=e.y-t.y,u=i.min,c=i.max;return 8&n?(r=t.x+a*(c.y-t.y)/l,s=c.y):4&n?(r=t.x+a*(u.y-t.y)/l,s=u.y):2&n?(r=c.x,s=t.y+l*(c.x-t.x)/a):1&n&&(r=u.x,s=t.y+l*(u.x-t.x)/a),new b(r,s,o)}function Zt(t,e){var n=0;return t.x<e.min.x?n|=1:t.x>e.max.x&&(n|=2),t.y<e.min.y?n|=4:t.y>e.max.y&&(n|=8),n}function Ft(t,e){var n=e.x-t.x,i=e.y-t.y;return n*n+i*i}function Rt(t,e,n,i){var o,r=e.x,s=e.y,a=n.x-r,l=n.y-s,u=a*a+l*l;return u>0&&(o=((t.x-r)*a+(t.y-s)*l)/u,o>1?(r=n.x,s=n.y):o>0&&(r+=a*o,s+=l*o)),a=t.x-r,l=t.y-s,i?a*a+l*l:new b(r,s)}function Nt(t){return!ye(t[0])||"object"!=typeof t[0][0]&&void 0!==t[0][0]}function Ut(t){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),Nt(t)}function Ht(t,e){var n,i,o,r,s,a,l,u;if(!t||0===t.length)throw new Error("latlngs not passed");Nt(t)||(console.warn("latlngs are not flat! Only the first ring will be used"),t=t[0]);var c=[];for(var h in t)c.push(e.project(S(t[h])));var d=c.length;for(n=0,i=0;n<d-1;n++)i+=c[n].distanceTo(c[n+1])/2;if(0===i)u=c[0];else for(n=0,r=0;n<d-1;n++)if(s=c[n],a=c[n+1],o=s.distanceTo(a),(r+=o)>i){l=(r-i)/o,u=[a.x-l*(a.x-s.x),a.y-l*(a.y-s.y)];break}return e.unproject(w(u))}function Vt(t,e,n){var i,o,r,s,a,l,u,c,h,d=[1,4,2,8];for(o=0,u=t.length;o<u;o++)t[o]._code=Zt(t[o],e);for(s=0;s<4;s++){for(c=d[s],i=[],o=0,u=t.length,r=u-1;o<u;r=o++)a=t[o],l=t[r],a._code&c?l._code&c||(h=Dt(l,a,c,e,n),h._code=Zt(h,e),i.push(h)):(l._code&c&&(h=Dt(l,a,c,e,n),h._code=Zt(h,e),i.push(h)),i.push(a));t=i}return t}function Wt(t,e){var n,i,o,r,s,a,l,u,c;if(!t||0===t.length)throw new Error("latlngs not passed");Nt(t)||(console.warn("latlngs are not flat! Only the first ring will be used"),t=t[0]);var h=[];for(var d in t)h.push(e.project(S(t[d])));var f=h.length;for(a=l=u=0,n=0,i=f-1;n<f;i=n++)o=h[n],r=h[i],s=o.y*r.x-r.y*o.x,l+=(o.x+r.x)*s,u+=(o.y+r.y)*s,a+=3*s;return c=0===a?h[0]:[l/a,u/a],e.unproject(w(c))}function qt(t){return new _i(t)}function Jt(t,e){return new bi(t,e)}function $t(t,e){return new ji(t,e)}function Gt(t,e,n){return new xi(t,e,n)}function Yt(t,e){return new ki(t,e)}function Kt(t,e){return new zi(t,e)}function Xt(t,e){var n,i,o,r,s="Feature"===t.type?t.geometry:t,a=s?s.coordinates:null,l=[],u=e&&e.pointToLayer,c=e&&e.coordsToLatLng||te;if(!a&&!s)return null;switch(s.type){case"Point":return n=c(a),Qt(u,t,n,e);case"MultiPoint":for(o=0,r=a.length;o<r;o++)n=c(a[o]),l.push(Qt(u,t,n,e));return new vi(l);case"LineString":case"MultiLineString":return i=ee(a,"LineString"===s.type?0:1,c),new ki(i,e);case"Polygon":case"MultiPolygon":return i=ee(a,"Polygon"===s.type?1:2,c),new zi(i,e);case"GeometryCollection":for(o=0,r=s.geometries.length;o<r;o++){var h=Xt({geometry:s.geometries[o],type:"Feature",properties:t.properties},e);h&&l.push(h)}return new vi(l);case"FeatureCollection":for(o=0,r=s.features.length;o<r;o++){var d=Xt(s.features[o],e);d&&l.push(d)}return new vi(l);default:throw new Error("Invalid GeoJSON object.")}}function Qt(t,e,n,i){return t?t(e,n):new bi(n,i&&i.markersInheritOptions&&i)}function te(t){return new T(t[1],t[0],t[2])}function ee(t,e,n){for(var i,o=[],r=0,s=t.length;r<s;r++)i=e?ee(t[r],e-1,n):(n||te)(t[r]),o.push(i);return o}function ne(t,e){return t=S(t),void 0!==t.alt?[a(t.lng,e),a(t.lat,e),a(t.alt,e)]:[a(t.lng,e),a(t.lat,e)]}function ie(t,e,n,i){for(var o=[],r=0,s=t.length;r<s;r++)o.push(e?ie(t[r],Nt(t[r])?0:e-1,n,i):ne(t[r],i));return!e&&n&&o.push(o[0].slice()),o}function oe(t,n){return t.feature?e({},t.feature,{geometry:n}):re(n)}function re(t){return"Feature"===t.type||"FeatureCollection"===t.type?t:{type:"Feature",properties:{},geometry:t}}function se(t,e){return new Ti(t,e)}function ae(t,e,n){return new Pi(t,e,n)}function le(t,e,n){return new Mi(t,e,n)}function ue(t){return new Zi(t)}function ce(t){return new Fi(t)}function he(t,e){return new Ri(t,e)}function de(t,e){return new Ni(t,e)}function fe(t){return bn.canvas?new Hi(t):null}function pe(t){return bn.svg||bn.vml?new Ji(t):null}function ve(t,e){return new $i(t,e)}var me=Object.create||function(){function t(){}return function(e){return t.prototype=e,new t}}(),_e=0,ge=/\{ *([\w_ -]+) *\}/g,ye=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)},be="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=",we=0,je=window.requestAnimationFrame||p("RequestAnimationFrame")||v,xe=window.cancelAnimationFrame||p("CancelAnimationFrame")||p("CancelRequestAnimationFrame")||function(t){window.clearTimeout(t)},ke={__proto__:null,extend:e,create:me,bind:n,get lastId(){return _e},stamp:i,throttle:o,wrapNum:r,falseFn:s,formatNum:a,trim:l,splitWords:u,setOptions:c,getParamString:h,template:d,isArray:ye,indexOf:f,emptyImageUrl:be,requestFn:je,cancelFn:xe,requestAnimFrame:m,cancelAnimFrame:_};g.extend=function(t){var n=function(){c(this),this.initialize&&this.initialize.apply(this,arguments),this.callInitHooks()},i=n.__super__=this.prototype,o=me(i);o.constructor=n,n.prototype=o;for(var r in this)Object.prototype.hasOwnProperty.call(this,r)&&"prototype"!==r&&"__super__"!==r&&(n[r]=this[r]);return t.statics&&e(n,t.statics),t.includes&&(y(t.includes),e.apply(null,[o].concat(t.includes))),e(o,t),delete o.statics,delete o.includes,o.options&&(o.options=i.options?me(i.options):{},e(o.options,t.options)),o._initHooks=[],o.callInitHooks=function(){if(!this._initHooksCalled){i.callInitHooks&&i.callInitHooks.call(this),this._initHooksCalled=!0;for(var t=0,e=o._initHooks.length;t<e;t++)o._initHooks[t].call(this)}},n},g.include=function(t){var n=this.prototype.options;return e(this.prototype,t),t.options&&(this.prototype.options=n,this.mergeOptions(t.options)),this},g.mergeOptions=function(t){return e(this.prototype.options,t),this},g.addInitHook=function(t){var e=Array.prototype.slice.call(arguments,1),n="function"==typeof t?t:function(){this[t].apply(this,e)};return this.prototype._initHooks=this.prototype._initHooks||[],this.prototype._initHooks.push(n),this};var ze={on:function(t,e,n){if("object"==typeof t)for(var i in t)this._on(i,t[i],e);else{t=u(t);for(var o=0,r=t.length;o<r;o++)this._on(t[o],e,n)}return this},off:function(t,e,n){if(arguments.length)if("object"==typeof t)for(var i in t)this._off(i,t[i],e);else{t=u(t);for(var o=1===arguments.length,r=0,s=t.length;r<s;r++)o?this._off(t[r]):this._off(t[r],e,n)}else delete this._events;return this},_on:function(t,e,n,i){if("function"!=typeof e)return void console.warn("wrong listener type: "+typeof e);if(!1===this._listens(t,e,n)){n===this&&(n=void 0);var o={fn:e,ctx:n};i&&(o.once=!0),this._events=this._events||{},this._events[t]=this._events[t]||[],this._events[t].push(o)}},_off:function(t,e,n){var i,o,r;if(this._events&&(i=this._events[t])){if(1===arguments.length){if(this._firingCount)for(o=0,r=i.length;o<r;o++)i[o].fn=s;return void delete this._events[t]}if("function"!=typeof e)return void console.warn("wrong listener type: "+typeof e);var a=this._listens(t,e,n);if(!1!==a){var l=i[a];this._firingCount&&(l.fn=s,this._events[t]=i=i.slice()),i.splice(a,1)}}},fire:function(t,n,i){if(!this.listens(t,i))return this;var o=e({},n,{type:t,target:this,sourceTarget:n&&n.sourceTarget||this});if(this._events){var r=this._events[t];if(r){this._firingCount=this._firingCount+1||1;for(var s=0,a=r.length;s<a;s++){var l=r[s],u=l.fn;l.once&&this.off(t,u,l.ctx),u.call(l.ctx||this,o)}this._firingCount--}}return i&&this._propagateEvent(o),this},listens:function(t,e,n,i){"string"!=typeof t&&console.warn('"string" type argument expected');var o=e;"function"!=typeof e&&(i=!!e,o=void 0,n=void 0);var r=this._events&&this._events[t];if(r&&r.length&&!1!==this._listens(t,o,n))return!0;if(i)for(var s in this._eventParents)if(this._eventParents[s].listens(t,e,n,i))return!0;return!1},_listens:function(t,e,n){if(!this._events)return!1;var i=this._events[t]||[];if(!e)return!!i.length;n===this&&(n=void 0);for(var o=0,r=i.length;o<r;o++)if(i[o].fn===e&&i[o].ctx===n)return o;return!1},once:function(t,e,n){if("object"==typeof t)for(var i in t)this._on(i,t[i],e,!0);else{t=u(t);for(var o=0,r=t.length;o<r;o++)this._on(t[o],e,n,!0)}return this},addEventParent:function(t){return this._eventParents=this._eventParents||{},this._eventParents[i(t)]=t,this},removeEventParent:function(t){return this._eventParents&&delete this._eventParents[i(t)],this},_propagateEvent:function(t){for(var n in this._eventParents)this._eventParents[n].fire(t.type,e({layer:t.target,propagatedFrom:t.target},t),!0)}};ze.addEventListener=ze.on,ze.removeEventListener=ze.clearAllEventListeners=ze.off,ze.addOneTimeEventListener=ze.once,ze.fireEvent=ze.fire,ze.hasEventListeners=ze.listens;var Te=g.extend(ze),Le=Math.trunc||function(t){return t>0?Math.floor(t):Math.ceil(t)};b.prototype={clone:function(){return new b(this.x,this.y)},add:function(t){return this.clone()._add(w(t))},_add:function(t){return this.x+=t.x,this.y+=t.y,this},subtract:function(t){return this.clone()._subtract(w(t))},_subtract:function(t){return this.x-=t.x,this.y-=t.y,this},divideBy:function(t){return this.clone()._divideBy(t)},_divideBy:function(t){return this.x/=t,this.y/=t,this},multiplyBy:function(t){return this.clone()._multiplyBy(t)},_multiplyBy:function(t){return this.x*=t,this.y*=t,this},scaleBy:function(t){return new b(this.x*t.x,this.y*t.y)},unscaleBy:function(t){return new b(this.x/t.x,this.y/t.y)},round:function(){return this.clone()._round()},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},floor:function(){return this.clone()._floor()},_floor:function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this},ceil:function(){return this.clone()._ceil()},_ceil:function(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this},trunc:function(){return this.clone()._trunc()},_trunc:function(){return this.x=Le(this.x),this.y=Le(this.y),this},distanceTo:function(t){t=w(t);var e=t.x-this.x,n=t.y-this.y;return Math.sqrt(e*e+n*n)},equals:function(t){return t=w(t),t.x===this.x&&t.y===this.y},contains:function(t){return t=w(t),Math.abs(t.x)<=Math.abs(this.x)&&Math.abs(t.y)<=Math.abs(this.y)},toString:function(){return"Point("+a(this.x)+", "+a(this.y)+")"}},j.prototype={extend:function(t){var e,n;if(!t)return this;if(t instanceof b||"number"==typeof t[0]||"x"in t)e=n=w(t);else if(t=x(t),e=t.min,n=t.max,!e||!n)return this;return this.min||this.max?(this.min.x=Math.min(e.x,this.min.x),this.max.x=Math.max(n.x,this.max.x),this.min.y=Math.min(e.y,this.min.y),this.max.y=Math.max(n.y,this.max.y)):(this.min=e.clone(),this.max=n.clone()),this},getCenter:function(t){return w((this.min.x+this.max.x)/2,(this.min.y+this.max.y)/2,t)},getBottomLeft:function(){return w(this.min.x,this.max.y)},getTopRight:function(){return w(this.max.x,this.min.y)},getTopLeft:function(){return this.min},getBottomRight:function(){return this.max},getSize:function(){return this.max.subtract(this.min)},contains:function(t){var e,n;return t="number"==typeof t[0]||t instanceof b?w(t):x(t),t instanceof j?(e=t.min,n=t.max):e=n=t,e.x>=this.min.x&&n.x<=this.max.x&&e.y>=this.min.y&&n.y<=this.max.y},intersects:function(t){t=x(t);var e=this.min,n=this.max,i=t.min,o=t.max,r=o.x>=e.x&&i.x<=n.x,s=o.y>=e.y&&i.y<=n.y;return r&&s},overlaps:function(t){t=x(t);var e=this.min,n=this.max,i=t.min,o=t.max,r=o.x>e.x&&i.x<n.x,s=o.y>e.y&&i.y<n.y;return r&&s},isValid:function(){return!(!this.min||!this.max)},pad:function(t){var e=this.min,n=this.max,i=Math.abs(e.x-n.x)*t,o=Math.abs(e.y-n.y)*t;return x(w(e.x-i,e.y-o),w(n.x+i,n.y+o))},equals:function(t){return!!t&&(t=x(t),this.min.equals(t.getTopLeft())&&this.max.equals(t.getBottomRight()))}},k.prototype={extend:function(t){var e,n,i=this._southWest,o=this._northEast;if(t instanceof T)e=t,n=t;else{if(!(t instanceof k))return t?this.extend(S(t)||z(t)):this;if(e=t._southWest,n=t._northEast,!e||!n)return this}return i||o?(i.lat=Math.min(e.lat,i.lat),i.lng=Math.min(e.lng,i.lng),o.lat=Math.max(n.lat,o.lat),o.lng=Math.max(n.lng,o.lng)):(this._southWest=new T(e.lat,e.lng),this._northEast=new T(n.lat,n.lng)),this},pad:function(t){var e=this._southWest,n=this._northEast,i=Math.abs(e.lat-n.lat)*t,o=Math.abs(e.lng-n.lng)*t;return new k(new T(e.lat-i,e.lng-o),new T(n.lat+i,n.lng+o))},getCenter:function(){return new T((this._southWest.lat+this._northEast.lat)/2,(this._southWest.lng+this._northEast.lng)/2)},getSouthWest:function(){return this._southWest},getNorthEast:function(){return this._northEast},getNorthWest:function(){return new T(this.getNorth(),this.getWest())},getSouthEast:function(){return new T(this.getSouth(),this.getEast())},getWest:function(){return this._southWest.lng},getSouth:function(){return this._southWest.lat},getEast:function(){return this._northEast.lng},getNorth:function(){return this._northEast.lat},contains:function(t){t="number"==typeof t[0]||t instanceof T||"lat"in t?S(t):z(t);var e,n,i=this._southWest,o=this._northEast;return t instanceof k?(e=t.getSouthWest(),n=t.getNorthEast()):e=n=t,e.lat>=i.lat&&n.lat<=o.lat&&e.lng>=i.lng&&n.lng<=o.lng},intersects:function(t){t=z(t);var e=this._southWest,n=this._northEast,i=t.getSouthWest(),o=t.getNorthEast(),r=o.lat>=e.lat&&i.lat<=n.lat,s=o.lng>=e.lng&&i.lng<=n.lng;return r&&s},overlaps:function(t){t=z(t);var e=this._southWest,n=this._northEast,i=t.getSouthWest(),o=t.getNorthEast(),r=o.lat>e.lat&&i.lat<n.lat,s=o.lng>e.lng&&i.lng<n.lng;return r&&s},toBBoxString:function(){return[this.getWest(),this.getSouth(),this.getEast(),this.getNorth()].join(",")},equals:function(t,e){return!!t&&(t=z(t),this._southWest.equals(t.getSouthWest(),e)&&this._northEast.equals(t.getNorthEast(),e))},isValid:function(){return!(!this._southWest||!this._northEast)}},T.prototype={equals:function(t,e){return!!t&&(t=S(t),Math.max(Math.abs(this.lat-t.lat),Math.abs(this.lng-t.lng))<=(void 0===e?1e-9:e))},toString:function(t){return"LatLng("+a(this.lat,t)+", "+a(this.lng,t)+")"},distanceTo:function(t){return Ce.distance(this,S(t))},wrap:function(){return Ce.wrapLatLng(this)},toBounds:function(t){var e=180*t/40075017,n=e/Math.cos(Math.PI/180*this.lat);return z([this.lat-e,this.lng-n],[this.lat+e,this.lng+n])},clone:function(){return new T(this.lat,this.lng,this.alt)}};var Se={latLngToPoint:function(t,e){var n=this.projection.project(t),i=this.scale(e);return this.transformation._transform(n,i)},pointToLatLng:function(t,e){var n=this.scale(e),i=this.transformation.untransform(t,n);return this.projection.unproject(i)},project:function(t){return this.projection.project(t)},unproject:function(t){return this.projection.unproject(t)},scale:function(t){return 256*Math.pow(2,t)},zoom:function(t){return Math.log(t/256)/Math.LN2},getProjectedBounds:function(t){if(this.infinite)return null;var e=this.projection.bounds,n=this.scale(t);return new j(this.transformation.transform(e.min,n),this.transformation.transform(e.max,n))},infinite:!1,wrapLatLng:function(t){var e=this.wrapLng?r(t.lng,this.wrapLng,!0):t.lng;return new T(this.wrapLat?r(t.lat,this.wrapLat,!0):t.lat,e,t.alt)},wrapLatLngBounds:function(t){var e=t.getCenter(),n=this.wrapLatLng(e),i=e.lat-n.lat,o=e.lng-n.lng;if(0===i&&0===o)return t;var r=t.getSouthWest(),s=t.getNorthEast();return new k(new T(r.lat-i,r.lng-o),new T(s.lat-i,s.lng-o))}},Ce=e({},Se,{wrapLng:[-180,180],R:6371e3,distance:function(t,e){var n=Math.PI/180,i=t.lat*n,o=e.lat*n,r=Math.sin((e.lat-t.lat)*n/2),s=Math.sin((e.lng-t.lng)*n/2),a=r*r+Math.cos(i)*Math.cos(o)*s*s,l=2*Math.atan2(Math.sqrt(a),Math.sqrt(1-a));return this.R*l}}),Ae={R:6378137,MAX_LATITUDE:85.0511287798,project:function(t){var e=Math.PI/180,n=this.MAX_LATITUDE,i=Math.max(Math.min(n,t.lat),-n),o=Math.sin(i*e);return new b(this.R*t.lng*e,this.R*Math.log((1+o)/(1-o))/2)},unproject:function(t){var e=180/Math.PI;return new T((2*Math.atan(Math.exp(t.y/this.R))-Math.PI/2)*e,t.x*e/this.R)},bounds:function(){var t=6378137*Math.PI;return new j([-t,-t],[t,t])}()};C.prototype={transform:function(t,e){return this._transform(t.clone(),e)},_transform:function(t,e){return e=e||1,t.x=e*(this._a*t.x+this._b),t.y=e*(this._c*t.y+this._d),t},untransform:function(t,e){return e=e||1,new b((t.x/e-this._b)/this._a,(t.y/e-this._d)/this._c)}};var Pe,Me,Be,Ee=e({},Ce,{code:"EPSG:3857",projection:Ae,transformation:function(){var t=.5/(Math.PI*Ae.R);return A(t,.5,-t,.5)}()}),Ie=e({},Ee,{code:"EPSG:900913"}),Oe=document.documentElement.style,De="ActiveXObject"in window,Ze=De&&!document.addEventListener,Fe="msLaunchUri"in navigator&&!("documentMode"in document),Re=B("webkit"),Ne=B("android"),Ue=B("android 2")||B("android 3"),He=parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1],10),Ve=Ne&&B("Google")&&He<537&&!("AudioNode"in window),We=!!window.opera,qe=!Fe&&B("chrome"),Je=B("gecko")&&!Re&&!We&&!De,$e=!qe&&B("safari"),Ge=B("phantom"),Ye="OTransition"in Oe,Ke=0===navigator.platform.indexOf("Win"),Xe=De&&"transition"in Oe,Qe="WebKitCSSMatrix"in window&&"m11"in new window.WebKitCSSMatrix&&!Ue,tn="MozPerspective"in Oe,en=!window.L_DISABLE_3D&&(Xe||Qe||tn)&&!Ye&&!Ge,nn="undefined"!=typeof orientation||B("mobile"),on=nn&&Re,rn=nn&&Qe,sn=!window.PointerEvent&&window.MSPointerEvent,an=!(!window.PointerEvent&&!sn),ln="ontouchstart"in window||!!window.TouchEvent,un=!window.L_NO_TOUCH&&(ln||an),cn=nn&&We,hn=nn&&Je,dn=(window.devicePixelRatio||window.screen.deviceXDPI/window.screen.logicalXDPI)>1,fn=function(){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("testPassiveEventSupport",s,e),window.removeEventListener("testPassiveEventSupport",s,e)}catch(t){}return t}(),pn=function(){return!!document.createElement("canvas").getContext}(),vn=!(!document.createElementNS||!P("svg").createSVGRect),mn=!!vn&&function(){var t=document.createElement("div");return t.innerHTML="<svg/>","http://www.w3.org/2000/svg"===(t.firstChild&&t.firstChild.namespaceURI)}(),_n=!vn&&function(){try{var t=document.createElement("div");t.innerHTML='<v:shape adj="1"/>';var e=t.firstChild;return e.style.behavior="url(#default#VML)",e&&"object"==typeof e.adj}catch(t){return!1}}(),gn=0===navigator.platform.indexOf("Mac"),yn=0===navigator.platform.indexOf("Linux"),bn={ie:De,ielt9:Ze,edge:Fe,webkit:Re,android:Ne,android23:Ue,androidStock:Ve,opera:We,chrome:qe,gecko:Je,safari:$e,phantom:Ge,opera12:Ye,win:Ke,ie3d:Xe,webkit3d:Qe,gecko3d:tn,any3d:en,mobile:nn,mobileWebkit:on,mobileWebkit3d:rn,msPointer:sn,pointer:an,touch:un,touchNative:ln,mobileOpera:cn,mobileGecko:hn,retina:dn,passiveEvents:fn,canvas:pn,svg:vn,vml:_n,inlineSvg:mn,mac:gn,linux:yn},wn=bn.msPointer?"MSPointerDown":"pointerdown",jn=bn.msPointer?"MSPointerMove":"pointermove",xn=bn.msPointer?"MSPointerUp":"pointerup",kn=bn.msPointer?"MSPointerCancel":"pointercancel",zn={touchstart:wn,touchmove:jn,touchend:xn,touchcancel:kn},Tn={touchstart:N,touchmove:R,touchend:R,touchcancel:R},Ln={},Sn=!1,Cn=200,An=rt(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),Pn=rt(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),Mn="webkitTransition"===Pn||"OTransition"===Pn?Pn+"End":"transitionend";if("onselectstart"in document)Pe=function(){vt(window,"selectstart",xt)},Me=function(){mt(window,"selectstart",xt)};else{var Bn=rt(["userSelect","WebkitUserSelect","OUserSelect","MozUserSelect","msUserSelect"]);Pe=function(){if(Bn){var t=document.documentElement.style;Be=t[Bn],t[Bn]="none"}},Me=function(){Bn&&(document.documentElement.style[Bn]=Be,Be=void 0)}}var En,In,On={__proto__:null,TRANSFORM:An,TRANSITION:Pn,TRANSITION_END:Mn,get:W,getStyle:q,create:J,remove:$,empty:G,toFront:Y,toBack:K,hasClass:X,addClass:Q,removeClass:tt,setClass:et,getClass:nt,setOpacity:it,testProp:rt,setTransform:st,setPosition:at,getPosition:lt,get disableTextSelection(){return Pe},get enableTextSelection(){return Me},disableImageDrag:ut,enableImageDrag:ct,preventOutline:ht,restoreOutline:dt,getSizedParentNode:ft,getScale:pt},Dn="_leaflet_events",Zn={mouseenter:"mouseover",mouseleave:"mouseout",wheel:!("onwheel"in window)&&"mousewheel"},Fn=bn.linux&&bn.chrome?window.devicePixelRatio:bn.mac?3*window.devicePixelRatio:window.devicePixelRatio>0?2*window.devicePixelRatio:1,Rn={__proto__:null,on:vt,off:mt,stopPropagation:bt,disableScrollPropagation:wt,disableClickPropagation:jt,preventDefault:xt,stop:kt,getPropagationPath:zt,getMousePosition:Tt,getWheelDelta:Lt,isExternalTarget:St,addListener:vt,removeListener:mt},Nn=Te.extend({run:function(t,e,n,i){this.stop(),this._el=t,this._inProgress=!0,this._duration=n||.25,this._easeOutPower=1/Math.max(i||.5,.2),this._startPos=lt(t),this._offset=e.subtract(this._startPos),this._startTime=+new Date,this.fire("start"),this._animate()},stop:function(){this._inProgress&&(this._step(!0),this._complete())},_animate:function(){this._animId=m(this._animate,this),this._step()},_step:function(t){var e=+new Date-this._startTime,n=1e3*this._duration;e<n?this._runFrame(this._easeOut(e/n),t):(this._runFrame(1),this._complete())},_runFrame:function(t,e){var n=this._startPos.add(this._offset.multiplyBy(t));e&&n._round(),at(this._el,n),this.fire("step")},_complete:function(){_(this._animId),this._inProgress=!1,this.fire("end")},_easeOut:function(t){return 1-Math.pow(1-t,this._easeOutPower)}}),Un=Te.extend({options:{crs:Ee,center:void 0,zoom:void 0,minZoom:void 0,maxZoom:void 0,layers:[],maxBounds:void 0,renderer:void 0,zoomAnimation:!0,zoomAnimationThreshold:4,fadeAnimation:!0,markerZoomAnimation:!0,transform3DLimit:8388608,zoomSnap:1,zoomDelta:1,trackResize:!0},initialize:function(t,e){e=c(this,e),this._handlers=[],this._layers={},this._zoomBoundLayers={},this._sizeChanged=!0,this._initContainer(t),this._initLayout(),this._onResize=n(this._onResize,this),this._initEvents(),e.maxBounds&&this.setMaxBounds(e.maxBounds),void 0!==e.zoom&&(this._zoom=this._limitZoom(e.zoom)),e.center&&void 0!==e.zoom&&this.setView(S(e.center),e.zoom,{reset:!0}),this.callInitHooks(),this._zoomAnimated=Pn&&bn.any3d&&!bn.mobileOpera&&this.options.zoomAnimation,this._zoomAnimated&&(this._createAnimProxy(),vt(this._proxy,Mn,this._catchTransitionEnd,this)),this._addLayers(this.options.layers)},setView:function(t,n,i){if(n=void 0===n?this._zoom:this._limitZoom(n),t=this._limitCenter(S(t),n,this.options.maxBounds),i=i||{},this._stop(),this._loaded&&!i.reset&&!0!==i){void 0!==i.animate&&(i.zoom=e({animate:i.animate},i.zoom),i.pan=e({animate:i.animate,duration:i.duration},i.pan));if(this._zoom!==n?this._tryAnimatedZoom&&this._tryAnimatedZoom(t,n,i.zoom):this._tryAnimatedPan(t,i.pan))return clearTimeout(this._sizeTimer),this}return this._resetView(t,n,i.pan&&i.pan.noMoveStart),this},setZoom:function(t,e){return this._loaded?this.setView(this.getCenter(),t,{zoom:e}):(this._zoom=t,this)},zoomIn:function(t,e){return t=t||(bn.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom+t,e)},zoomOut:function(t,e){return t=t||(bn.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom-t,e)},setZoomAround:function(t,e,n){var i=this.getZoomScale(e),o=this.getSize().divideBy(2),r=t instanceof b?t:this.latLngToContainerPoint(t),s=r.subtract(o).multiplyBy(1-1/i),a=this.containerPointToLatLng(o.add(s));return this.setView(a,e,{zoom:n})},_getBoundsCenterZoom:function(t,e){e=e||{},t=t.getBounds?t.getBounds():z(t);var n=w(e.paddingTopLeft||e.padding||[0,0]),i=w(e.paddingBottomRight||e.padding||[0,0]),o=this.getBoundsZoom(t,!1,n.add(i));if((o="number"==typeof e.maxZoom?Math.min(e.maxZoom,o):o)===1/0)return{center:t.getCenter(),zoom:o};var r=i.subtract(n).divideBy(2),s=this.project(t.getSouthWest(),o),a=this.project(t.getNorthEast(),o);return{center:this.unproject(s.add(a).divideBy(2).add(r),o),zoom:o}},fitBounds:function(t,e){if(t=z(t),!t.isValid())throw new Error("Bounds are not valid.");var n=this._getBoundsCenterZoom(t,e);return this.setView(n.center,n.zoom,e)},fitWorld:function(t){return this.fitBounds([[-90,-180],[90,180]],t)},panTo:function(t,e){return this.setView(t,this._zoom,{pan:e})},panBy:function(t,e){if(t=w(t).round(),e=e||{},!t.x&&!t.y)return this.fire("moveend");if(!0!==e.animate&&!this.getSize().contains(t))return this._resetView(this.unproject(this.project(this.getCenter()).add(t)),this.getZoom()),this;if(this._panAnim||(this._panAnim=new Nn,this._panAnim.on({step:this._onPanTransitionStep,end:this._onPanTransitionEnd},this)),e.noMoveStart||this.fire("movestart"),!1!==e.animate){Q(this._mapPane,"leaflet-pan-anim");var n=this._getMapPanePos().subtract(t).round();this._panAnim.run(this._mapPane,n,e.duration||.25,e.easeLinearity)}else this._rawPanBy(t),this.fire("move").fire("moveend");return this},flyTo:function(t,e,n){function i(t){var e=t?-1:1,n=t?_:v,i=_*_-v*v+e*b*b*g*g,o=2*n*b*g,r=i/o,s=Math.sqrt(r*r+1)-r;return s<1e-9?-18:Math.log(s)}function o(t){return(Math.exp(t)-Math.exp(-t))/2}function r(t){return(Math.exp(t)+Math.exp(-t))/2}function s(t){return o(t)/r(t)}function a(t){return v*(r(w)/r(w+y*t))}function l(t){return v*(r(w)*s(w+y*t)-o(w))/b}function u(t){return 1-Math.pow(1-t,1.5)}function c(){var n=(Date.now()-j)/k,i=u(n)*x;n<=1?(this._flyToFrame=m(c,this),this._move(this.unproject(h.add(d.subtract(h).multiplyBy(l(i)/g)),p),this.getScaleZoom(v/a(i),p),{flyTo:!0})):this._move(t,e)._moveEnd(!0)}if(n=n||{},!1===n.animate||!bn.any3d)return this.setView(t,e,n);this._stop();var h=this.project(this.getCenter()),d=this.project(t),f=this.getSize(),p=this._zoom;t=S(t),e=void 0===e?p:e;var v=Math.max(f.x,f.y),_=v*this.getZoomScale(p,e),g=d.distanceTo(h)||1,y=1.42,b=y*y,w=i(0),j=Date.now(),x=(i(1)-w)/y,k=n.duration?1e3*n.duration:1e3*x*.8;return this._moveStart(!0,n.noMoveStart),c.call(this),this},flyToBounds:function(t,e){var n=this._getBoundsCenterZoom(t,e);return this.flyTo(n.center,n.zoom,e)},setMaxBounds:function(t){return t=z(t),this.listens("moveend",this._panInsideMaxBounds)&&this.off("moveend",this._panInsideMaxBounds),t.isValid()?(this.options.maxBounds=t,this._loaded&&this._panInsideMaxBounds(),this.on("moveend",this._panInsideMaxBounds)):(this.options.maxBounds=null,this)},setMinZoom:function(t){var e=this.options.minZoom;return this.options.minZoom=t,this._loaded&&e!==t&&(this.fire("zoomlevelschange"),this.getZoom()<this.options.minZoom)?this.setZoom(t):this},setMaxZoom:function(t){var e=this.options.maxZoom;return this.options.maxZoom=t,this._loaded&&e!==t&&(this.fire("zoomlevelschange"),this.getZoom()>this.options.maxZoom)?this.setZoom(t):this},panInsideBounds:function(t,e){this._enforcingBounds=!0;var n=this.getCenter(),i=this._limitCenter(n,this._zoom,z(t));return n.equals(i)||this.panTo(i,e),this._enforcingBounds=!1,this},panInside:function(t,e){e=e||{};var n=w(e.paddingTopLeft||e.padding||[0,0]),i=w(e.paddingBottomRight||e.padding||[0,0]),o=this.project(this.getCenter()),r=this.project(t),s=this.getPixelBounds(),a=x([s.min.add(n),s.max.subtract(i)]),l=a.getSize();if(!a.contains(r)){this._enforcingBounds=!0;var u=r.subtract(a.getCenter()),c=a.extend(r).getSize().subtract(l);o.x+=u.x<0?-c.x:c.x,o.y+=u.y<0?-c.y:c.y,this.panTo(this.unproject(o),e),this._enforcingBounds=!1}return this},invalidateSize:function(t){if(!this._loaded)return this;t=e({animate:!1,pan:!0},!0===t?{animate:!0}:t);var i=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var o=this.getSize(),r=i.divideBy(2).round(),s=o.divideBy(2).round(),a=r.subtract(s);return a.x||a.y?(t.animate&&t.pan?this.panBy(a):(t.pan&&this._rawPanBy(a),this.fire("move"),t.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(n(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:i,newSize:o})):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=e({timeout:1e4,watch:!1},t),!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var i=n(this._handleGeolocationResponse,this),o=n(this._handleGeolocationError,this);return t.watch?this._locationWatchId=navigator.geolocation.watchPosition(i,o,t):navigator.geolocation.getCurrentPosition(i,o,t),this},stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(t){if(this._container._leaflet_id){var e=t.code,n=t.message||(1===e?"permission denied":2===e?"position unavailable":"timeout");this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:e,message:"Geolocation error: "+n+"."})}},_handleGeolocationResponse:function(t){if(this._container._leaflet_id){var e=t.coords.latitude,n=t.coords.longitude,i=new T(e,n),o=i.toBounds(2*t.coords.accuracy),r=this._locateOptions;if(r.setView){var s=this.getBoundsZoom(o);this.setView(i,r.maxZoom?Math.min(s,r.maxZoom):s)}var a={latlng:i,bounds:o,timestamp:t.timestamp};for(var l in t.coords)"number"==typeof t.coords[l]&&(a[l]=t.coords[l]);this.fire("locationfound",a)}},addHandler:function(t,e){if(!e)return this;var n=this[t]=new e(this);return this._handlers.push(n),this.options[t]&&n.enable(),this},remove:function(){if(this._initEvents(!0),this.options.maxBounds&&this.off("moveend",this._panInsideMaxBounds),this._containerId!==this._container._leaflet_id)throw new Error("Map container is being reused by another instance");try{delete this._container._leaflet_id,delete this._containerId}catch(t){this._container._leaflet_id=void 0,this._containerId=void 0}void 0!==this._locationWatchId&&this.stopLocate(),this._stop(),$(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(_(this._resizeRequest),this._resizeRequest=null),this._clearHandlers(),this._loaded&&this.fire("unload");var t;for(t in this._layers)this._layers[t].remove();for(t in this._panes)$(this._panes[t]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(t,e){var n="leaflet-pane"+(t?" leaflet-"+t.replace("Pane","")+"-pane":""),i=J("div",n,e||this._mapPane);return t&&(this._panes[t]=i),i},getCenter:function(){return this._checkIfLoaded(),this._lastCenter&&!this._moved()?this._lastCenter.clone():this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var t=this.getPixelBounds();return new k(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,e,n){t=z(t),n=w(n||[0,0]);var i=this.getZoom()||0,o=this.getMinZoom(),r=this.getMaxZoom(),s=t.getNorthWest(),a=t.getSouthEast(),l=this.getSize().subtract(n),u=x(this.project(a,i),this.project(s,i)).getSize(),c=bn.any3d?this.options.zoomSnap:1,h=l.x/u.x,d=l.y/u.y,f=e?Math.max(h,d):Math.min(h,d);return i=this.getScaleZoom(f,i),c&&(i=Math.round(i/(c/100))*(c/100),i=e?Math.ceil(i/c)*c:Math.floor(i/c)*c),Math.max(o,Math.min(r,i))},getSize:function(){return this._size&&!this._sizeChanged||(this._size=new b(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(t,e){var n=this._getTopLeftPoint(t,e);return new j(n,n.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,e){var n=this.options.crs;return e=void 0===e?this._zoom:e,n.scale(t)/n.scale(e)},getScaleZoom:function(t,e){var n=this.options.crs;e=void 0===e?this._zoom:e;var i=n.zoom(t*n.scale(e));return isNaN(i)?1/0:i},project:function(t,e){return e=void 0===e?this._zoom:e,this.options.crs.latLngToPoint(S(t),e)},unproject:function(t,e){return e=void 0===e?this._zoom:e,this.options.crs.pointToLatLng(w(t),e)},layerPointToLatLng:function(t){var e=w(t).add(this.getPixelOrigin());return this.unproject(e)},latLngToLayerPoint:function(t){return this.project(S(t))._round()._subtract(this.getPixelOrigin())},wrapLatLng:function(t){return this.options.crs.wrapLatLng(S(t))},wrapLatLngBounds:function(t){return this.options.crs.wrapLatLngBounds(z(t))},distance:function(t,e){return this.options.crs.distance(S(t),S(e))},containerPointToLayerPoint:function(t){return w(t).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(t){return w(t).add(this._getMapPanePos())},containerPointToLatLng:function(t){var e=this.containerPointToLayerPoint(w(t));return this.layerPointToLatLng(e)},latLngToContainerPoint:function(t){return this.layerPointToContainerPoint(this.latLngToLayerPoint(S(t)))},mouseEventToContainerPoint:function(t){return Tt(t,this._container)},mouseEventToLayerPoint:function(t){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(t))},mouseEventToLatLng:function(t){return this.layerPointToLatLng(this.mouseEventToLayerPoint(t))},_initContainer:function(t){var e=this._container=W(t);if(!e)throw new Error("Map container not found.");if(e._leaflet_id)throw new Error("Map container is already initialized.");vt(e,"scroll",this._onScroll,this),this._containerId=i(e)},_initLayout:function(){var t=this._container;this._fadeAnimated=this.options.fadeAnimation&&bn.any3d,Q(t,"leaflet-container"+(bn.touch?" leaflet-touch":"")+(bn.retina?" leaflet-retina":"")+(bn.ielt9?" leaflet-oldie":"")+(bn.safari?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var e=q(t,"position");"absolute"!==e&&"relative"!==e&&"fixed"!==e&&"sticky"!==e&&(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),at(this._mapPane,new b(0,0)),this.createPane("tilePane"),this.createPane("overlayPane"),this.createPane("shadowPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(Q(t.markerPane,"leaflet-zoom-hide"),Q(t.shadowPane,"leaflet-zoom-hide"))},_resetView:function(t,e,n){at(this._mapPane,new b(0,0));var i=!this._loaded;this._loaded=!0,e=this._limitZoom(e),this.fire("viewprereset");var o=this._zoom!==e;this._moveStart(o,n)._move(t,e)._moveEnd(o),this.fire("viewreset"),i&&this.fire("load")},_moveStart:function(t,e){return t&&this.fire("zoomstart"),e||this.fire("movestart"),this},_move:function(t,e,n,i){void 0===e&&(e=this._zoom);var o=this._zoom!==e;return this._zoom=e,this._lastCenter=t,this._pixelOrigin=this._getNewPixelOrigin(t),i?n&&n.pinch&&this.fire("zoom",n):((o||n&&n.pinch)&&this.fire("zoom",n),this.fire("move",n)),this},_moveEnd:function(t){return t&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return _(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(t){at(this._mapPane,this._getMapPanePos().subtract(t))},_getZoomSpan:function(){return this.getMaxZoom()-this.getMinZoom()},_panInsideMaxBounds:function(){this._enforcingBounds||this.panInsideBounds(this.options.maxBounds)},_checkIfLoaded:function(){if(!this._loaded)throw new Error("Set map center and zoom first.")},_initEvents:function(t){this._targets={},this._targets[i(this._container)]=this;var e=t?mt:vt;e(this._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this),this.options.trackResize&&e(window,"resize",this._onResize,this),bn.any3d&&this.options.transform3DLimit&&(t?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){_(this._resizeRequest),this._resizeRequest=m(function(){this.invalidateSize({debounceMoveend:!0})},this)},_onScroll:function(){this._container.scrollTop=0,this._container.scrollLeft=0},_onMoveEnd:function(){var t=this._getMapPanePos();Math.max(Math.abs(t.x),Math.abs(t.y))>=this.options.transform3DLimit&&this._resetView(this.getCenter(),this.getZoom())},_findEventTargets:function(t,e){for(var n,o=[],r="mouseout"===e||"mouseover"===e,s=t.target||t.srcElement,a=!1;s;){if((n=this._targets[i(s)])&&("click"===e||"preclick"===e)&&this._draggableMoved(n)){a=!0;break}if(n&&n.listens(e,!0)){if(r&&!St(s,t))break;if(o.push(n),r)break}if(s===this._container)break;s=s.parentNode}return o.length||a||r||!this.listens(e,!0)||(o=[this]),o},_isClickDisabled:function(t){for(;t&&t!==this._container;){if(t._leaflet_disable_click)return!0;t=t.parentNode}},_handleDOMEvent:function(t){var e=t.target||t.srcElement;if(!(!this._loaded||e._leaflet_disable_events||"click"===t.type&&this._isClickDisabled(e))){var n=t.type;"mousedown"===n&&ht(e),this._fireDOMEvent(t,n)}},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(t,n,i){if("click"===t.type){var o=e({},t);o.type="preclick",this._fireDOMEvent(o,o.type,i)}var r=this._findEventTargets(t,n);if(i){for(var s=[],a=0;a<i.length;a++)i[a].listens(n,!0)&&s.push(i[a]);r=s.concat(r)}if(r.length){"contextmenu"===n&&xt(t);var l=r[0],u={originalEvent:t};if("keypress"!==t.type&&"keydown"!==t.type&&"keyup"!==t.type){var c=l.getLatLng&&(!l._radius||l._radius<=10);u.containerPoint=c?this.latLngToContainerPoint(l.getLatLng()):this.mouseEventToContainerPoint(t),u.layerPoint=this.containerPointToLayerPoint(u.containerPoint),u.latlng=c?l.getLatLng():this.layerPointToLatLng(u.layerPoint)}for(a=0;a<r.length;a++)if(r[a].fire(n,u,!0),u.originalEvent._stopped||!1===r[a].options.bubblingMouseEvents&&-1!==f(this._mouseEvents,n))return}},_draggableMoved:function(t){return t=t.dragging&&t.dragging.enabled()?t:this,t.dragging&&t.dragging.moved()||this.boxZoom&&this.boxZoom.moved()},_clearHandlers:function(){for(var t=0,e=this._handlers.length;t<e;t++)this._handlers[t].disable()},whenReady:function(t,e){return this._loaded?t.call(e||this,{target:this}):this.on("load",t,e),this},_getMapPanePos:function(){return lt(this._mapPane)||new b(0,0)},_moved:function(){var t=this._getMapPanePos();return t&&!t.equals([0,0])},_getTopLeftPoint:function(t,e){return(t&&void 0!==e?this._getNewPixelOrigin(t,e):this.getPixelOrigin()).subtract(this._getMapPanePos())},_getNewPixelOrigin:function(t,e){var n=this.getSize()._divideBy(2);return this.project(t,e)._subtract(n)._add(this._getMapPanePos())._round()},_latLngToNewLayerPoint:function(t,e,n){var i=this._getNewPixelOrigin(n,e);return this.project(t,e)._subtract(i)},_latLngBoundsToNewLayerBounds:function(t,e,n){var i=this._getNewPixelOrigin(n,e);return x([this.project(t.getSouthWest(),e)._subtract(i),this.project(t.getNorthWest(),e)._subtract(i),this.project(t.getSouthEast(),e)._subtract(i),this.project(t.getNorthEast(),e)._subtract(i)])},_getCenterLayerPoint:function(){return this.containerPointToLayerPoint(this.getSize()._divideBy(2))},_getCenterOffset:function(t){return this.latLngToLayerPoint(t).subtract(this._getCenterLayerPoint())},_limitCenter:function(t,e,n){if(!n)return t;var i=this.project(t,e),o=this.getSize().divideBy(2),r=new j(i.subtract(o),i.add(o)),s=this._getBoundsOffset(r,n,e);return Math.abs(s.x)<=1&&Math.abs(s.y)<=1?t:this.unproject(i.add(s),e)},_limitOffset:function(t,e){if(!e)return t;var n=this.getPixelBounds(),i=new j(n.min.add(t),n.max.add(t));return t.add(this._getBoundsOffset(i,e))},_getBoundsOffset:function(t,e,n){var i=x(this.project(e.getNorthEast(),n),this.project(e.getSouthWest(),n)),o=i.min.subtract(t.min),r=i.max.subtract(t.max);return new b(this._rebound(o.x,-r.x),this._rebound(o.y,-r.y))},_rebound:function(t,e){return t+e>0?Math.round(t-e)/2:Math.max(0,Math.ceil(t))-Math.max(0,Math.floor(e))},_limitZoom:function(t){var e=this.getMinZoom(),n=this.getMaxZoom(),i=bn.any3d?this.options.zoomSnap:1;return i&&(t=Math.round(t/i)*i),Math.max(e,Math.min(n,t))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){tt(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(t,e){var n=this._getCenterOffset(t)._trunc();return!(!0!==(e&&e.animate)&&!this.getSize().contains(n))&&(this.panBy(n,e),!0)},_createAnimProxy:function(){var t=this._proxy=J("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(t),this.on("zoomanim",function(t){var e=An,n=this._proxy.style[e];st(this._proxy,this.project(t.center,t.zoom),this.getZoomScale(t.zoom,1)),n===this._proxy.style[e]&&this._animatingZoom&&this._onZoomTransitionEnd()},this),this.on("load moveend",this._animMoveEnd,this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){$(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var t=this.getCenter(),e=this.getZoom();st(this._proxy,this.project(t,e),this.getZoomScale(e,1))},_catchTransitionEnd:function(t){this._animatingZoom&&t.propertyName.indexOf("transform")>=0&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(t,e,n){if(this._animatingZoom)return!0;if(n=n||{},!this._zoomAnimated||!1===n.animate||this._nothingToAnimate()||Math.abs(e-this._zoom)>this.options.zoomAnimationThreshold)return!1;var i=this.getZoomScale(e),o=this._getCenterOffset(t)._divideBy(1-1/i);return!(!0!==n.animate&&!this.getSize().contains(o))&&(m(function(){this._moveStart(!0,!1)._animateZoom(t,e,!0)},this),!0)},_animateZoom:function(t,e,i,o){this._mapPane&&(i&&(this._animatingZoom=!0,this._animateToCenter=t,this._animateToZoom=e,Q(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:t,zoom:e,noUpdate:o}),this._tempFireZoomEvent||(this._tempFireZoomEvent=this._zoom!==this._animateToZoom),this._move(this._animateToCenter,this._animateToZoom,void 0,!0),setTimeout(n(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._mapPane&&tt(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))}}),Hn=g.extend({options:{position:"topright"},initialize:function(t){c(this,t)},getPosition:function(){return this.options.position},setPosition:function(t){var e=this._map;return e&&e.removeControl(this),this.options.position=t,e&&e.addControl(this),this},getContainer:function(){return this._container},addTo:function(t){this.remove(),this._map=t;var e=this._container=this.onAdd(t),n=this.getPosition(),i=t._controlCorners[n];return Q(e,"leaflet-control"),-1!==n.indexOf("bottom")?i.insertBefore(e,i.firstChild):i.appendChild(e),this._map.on("unload",this.remove,this),this},remove:function(){return this._map?($(this._container),this.onRemove&&this.onRemove(this._map),this._map.off("unload",this.remove,this),this._map=null,this):this},_refocusOnMap:function(t){this._map&&t&&t.screenX>0&&t.screenY>0&&this._map.getContainer().focus()}}),Vn=function(t){return new Hn(t)};Un.include({addControl:function(t){return t.addTo(this),this},removeControl:function(t){return t.remove(),this},_initControlPos:function(){function t(t,o){var r=n+t+" "+n+o;e[t+o]=J("div",r,i)}var e=this._controlCorners={},n="leaflet-",i=this._controlContainer=J("div",n+"control-container",this._container);t("top","left"),t("top","right"),t("bottom","left"),t("bottom","right")},_clearControlPos:function(){for(var t in this._controlCorners)$(this._controlCorners[t]);$(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var Wn=Hn.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(t,e,n,i){return n<i?-1:i<n?1:0}},initialize:function(t,e,n){c(this,n),this._layerControlInputs=[],this._layers=[],this._lastZIndex=0,this._handlingClick=!1;for(var i in t)this._addLayer(t[i],i);for(i in e)this._addLayer(e[i],i,!0)},onAdd:function(t){this._initLayout(),this._update(),this._map=t,t.on("zoomend",this._checkDisabledLayers,this);for(var e=0;e<this._layers.length;e++)this._layers[e].layer.on("add remove",this._onLayerChange,this);return this._container},addTo:function(t){return Hn.prototype.addTo.call(this,t),this._expandIfNotCollapsed()},onRemove:function(){this._map.off("zoomend",this._checkDisabledLayers,this);for(var t=0;t<this._layers.length;t++)this._layers[t].layer.off("add remove",this._onLayerChange,this)},addBaseLayer:function(t,e){return this._addLayer(t,e),this._map?this._update():this},addOverlay:function(t,e){return this._addLayer(t,e,!0),this._map?this._update():this},removeLayer:function(t){t.off("add remove",this._onLayerChange,this);var e=this._getLayer(i(t));return e&&this._layers.splice(this._layers.indexOf(e),1),this._map?this._update():this},expand:function(){Q(this._container,"leaflet-control-layers-expanded"),this._section.style.height=null;var t=this._map.getSize().y-(this._container.offsetTop+50);return t<this._section.clientHeight?(Q(this._section,"leaflet-control-layers-scrollbar"),this._section.style.height=t+"px"):tt(this._section,"leaflet-control-layers-scrollbar"),this._checkDisabledLayers(),this},collapse:function(){return tt(this._container,"leaflet-control-layers-expanded"),this},_initLayout:function(){var t="leaflet-control-layers",e=this._container=J("div",t),n=this.options.collapsed;e.setAttribute("aria-haspopup",!0),jt(e),wt(e);var i=this._section=J("section",t+"-list");n&&(this._map.on("click",this.collapse,this),vt(e,{mouseenter:this._expandSafely,mouseleave:this.collapse},this));var o=this._layersLink=J("a",t+"-toggle",e);o.href="#",o.title="Layers",o.setAttribute("role","button"),vt(o,{keydown:function(t){13===t.keyCode&&this._expandSafely()},click:function(t){xt(t),this._expandSafely()}},this),n||this.expand(),this._baseLayersList=J("div",t+"-base",i),this._separator=J("div",t+"-separator",i),this._overlaysList=J("div",t+"-overlays",i),e.appendChild(i)},_getLayer:function(t){for(var e=0;e<this._layers.length;e++)if(this._layers[e]&&i(this._layers[e].layer)===t)return this._layers[e]},_addLayer:function(t,e,i){this._map&&t.on("add remove",this._onLayerChange,this),this._layers.push({layer:t,name:e,overlay:i}),this.options.sortLayers&&this._layers.sort(n(function(t,e){return this.options.sortFunction(t.layer,e.layer,t.name,e.name)},this)),this.options.autoZIndex&&t.setZIndex&&(this._lastZIndex++,t.setZIndex(this._lastZIndex)),this._expandIfNotCollapsed()},_update:function(){if(!this._container)return this;G(this._baseLayersList),G(this._overlaysList),this._layerControlInputs=[];var t,e,n,i,o=0;for(n=0;n<this._layers.length;n++)i=this._layers[n],this._addItem(i),e=e||i.overlay,t=t||!i.overlay,o+=i.overlay?0:1;return this.options.hideSingleBase&&(t=t&&o>1,this._baseLayersList.style.display=t?"":"none"),this._separator.style.display=e&&t?"":"none",this},_onLayerChange:function(t){this._handlingClick||this._update();var e=this._getLayer(i(t.target)),n=e.overlay?"add"===t.type?"overlayadd":"overlayremove":"add"===t.type?"baselayerchange":null;n&&this._map.fire(n,e)},_createRadioElement:function(t,e){var n='<input type="radio" class="leaflet-control-layers-selector" name="'+t+'"'+(e?' checked="checked"':"")+"/>",i=document.createElement("div");return i.innerHTML=n,i.firstChild},_addItem:function(t){var e,n=document.createElement("label"),o=this._map.hasLayer(t.layer);t.overlay?(e=document.createElement("input"),e.type="checkbox",e.className="leaflet-control-layers-selector",e.defaultChecked=o):e=this._createRadioElement("leaflet-base-layers_"+i(this),o),this._layerControlInputs.push(e),e.layerId=i(t.layer),vt(e,"click",this._onInputClick,this);var r=document.createElement("span");r.innerHTML=" "+t.name;var s=document.createElement("span");return n.appendChild(s),s.appendChild(e),s.appendChild(r),(t.overlay?this._overlaysList:this._baseLayersList).appendChild(n),this._checkDisabledLayers(),n},_onInputClick:function(){var t,e,n=this._layerControlInputs,i=[],o=[];this._handlingClick=!0;for(var r=n.length-1;r>=0;r--)t=n[r],e=this._getLayer(t.layerId).layer,t.checked?i.push(e):t.checked||o.push(e);for(r=0;r<o.length;r++)this._map.hasLayer(o[r])&&this._map.removeLayer(o[r]);for(r=0;r<i.length;r++)this._map.hasLayer(i[r])||this._map.addLayer(i[r]);this._handlingClick=!1,this._refocusOnMap()},_checkDisabledLayers:function(){for(var t,e,n=this._layerControlInputs,i=this._map.getZoom(),o=n.length-1;o>=0;o--)t=n[o],e=this._getLayer(t.layerId).layer,t.disabled=void 0!==e.options.minZoom&&i<e.options.minZoom||void 0!==e.options.maxZoom&&i>e.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expandSafely:function(){var t=this._section;vt(t,"click",xt),this.expand(),setTimeout(function(){mt(t,"click",xt)})}}),qn=function(t,e,n){return new Wn(t,e,n)},Jn=Hn.extend({options:{position:"topleft",zoomInText:'<span aria-hidden="true">+</span>',zoomInTitle:"Zoom in",zoomOutText:'<span aria-hidden="true">&#x2212;</span>',zoomOutTitle:"Zoom out"},onAdd:function(t){var e="leaflet-control-zoom",n=J("div",e+" leaflet-bar"),i=this.options;return this._zoomInButton=this._createButton(i.zoomInText,i.zoomInTitle,e+"-in",n,this._zoomIn),this._zoomOutButton=this._createButton(i.zoomOutText,i.zoomOutTitle,e+"-out",n,this._zoomOut),this._updateDisabled(),t.on("zoomend zoomlevelschange",this._updateDisabled,this),n},onRemove:function(t){t.off("zoomend zoomlevelschange",this._updateDisabled,this)},disable:function(){return this._disabled=!0,this._updateDisabled(),this},enable:function(){return this._disabled=!1,this._updateDisabled(),this},_zoomIn:function(t){!this._disabled&&this._map._zoom<this._map.getMaxZoom()&&this._map.zoomIn(this._map.options.zoomDelta*(t.shiftKey?3:1))},_zoomOut:function(t){!this._disabled&&this._map._zoom>this._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(t.shiftKey?3:1))},_createButton:function(t,e,n,i,o){var r=J("a",n,i);return r.innerHTML=t,r.href="#",r.title=e,r.setAttribute("role","button"),r.setAttribute("aria-label",e),jt(r),vt(r,"click",kt),vt(r,"click",o,this),vt(r,"click",this._refocusOnMap,this),r},_updateDisabled:function(){var t=this._map,e="leaflet-disabled";tt(this._zoomInButton,e),tt(this._zoomOutButton,e),this._zoomInButton.setAttribute("aria-disabled","false"),this._zoomOutButton.setAttribute("aria-disabled","false"),(this._disabled||t._zoom===t.getMinZoom())&&(Q(this._zoomOutButton,e),this._zoomOutButton.setAttribute("aria-disabled","true")),(this._disabled||t._zoom===t.getMaxZoom())&&(Q(this._zoomInButton,e),this._zoomInButton.setAttribute("aria-disabled","true"))}});Un.mergeOptions({zoomControl:!0}),Un.addInitHook(function(){this.options.zoomControl&&(this.zoomControl=new Jn,this.addControl(this.zoomControl))});var $n=function(t){return new Jn(t)},Gn=Hn.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(t){var e=J("div","leaflet-control-scale"),n=this.options;return this._addScales(n,"leaflet-control-scale-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,e,n){t.metric&&(this._mScale=J("div",e,n)),t.imperial&&(this._iScale=J("div",e,n))},_update:function(){var t=this._map,e=t.getSize().y/2,n=t.distance(t.containerPointToLatLng([0,e]),t.containerPointToLatLng([this.options.maxWidth,e]));this._updateScales(n)},_updateScales:function(t){this.options.metric&&t&&this._updateMetric(t),this.options.imperial&&t&&this._updateImperial(t)},_updateMetric:function(t){var e=this._getRoundNum(t),n=e<1e3?e+" m":e/1e3+" km";this._updateScale(this._mScale,n,e/t)},_updateImperial:function(t){var e,n,i,o=3.2808399*t;o>5280?(e=o/5280,n=this._getRoundNum(e),this._updateScale(this._iScale,n+" mi",n/e)):(i=this._getRoundNum(o),this._updateScale(this._iScale,i+" ft",i/o))},_updateScale:function(t,e,n){t.style.width=Math.round(this.options.maxWidth*n)+"px",t.innerHTML=e},_getRoundNum:function(t){var e=Math.pow(10,(Math.floor(t)+"").length-1),n=t/e;return n=n>=10?10:n>=5?5:n>=3?3:n>=2?2:1,e*n}}),Yn=function(t){return new Gn(t)},Kn=Hn.extend({options:{position:"bottomright",prefix:'<a href="https://leafletjs.com" title="A JavaScript library for interactive maps">'+(bn.inlineSvg?'<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="12" height="8" viewBox="0 0 12 8" class="leaflet-attribution-flag"><path fill="#4C7BE1" d="M0 0h12v4H0z"/><path fill="#FFD500" d="M0 4h12v3H0z"/><path fill="#E0BC00" d="M0 7h12v1H0z"/></svg> ':"")+"Leaflet</a>"},initialize:function(t){c(this,t),this._attributions={}},onAdd:function(t){t.attributionControl=this,this._container=J("div","leaflet-control-attribution"),jt(this._container);for(var e in t._layers)t._layers[e].getAttribution&&this.addAttribution(t._layers[e].getAttribution());return this._update(),t.on("layeradd",this._addAttribution,this),this._container},onRemove:function(t){t.off("layeradd",this._addAttribution,this)},_addAttribution:function(t){t.layer.getAttribution&&(this.addAttribution(t.layer.getAttribution()),t.layer.once("remove",function(){this.removeAttribution(t.layer.getAttribution())},this))},setPrefix:function(t){return this.options.prefix=t,this._update(),this},addAttribution:function(t){return t?(this._attributions[t]||(this._attributions[t]=0),this._attributions[t]++,this._update(),this):this},removeAttribution:function(t){return t?(this._attributions[t]&&(this._attributions[t]--,this._update()),this):this},_update:function(){if(this._map){var t=[];for(var e in this._attributions)this._attributions[e]&&t.push(e);var n=[];this.options.prefix&&n.push(this.options.prefix),t.length&&n.push(t.join(", ")),this._container.innerHTML=n.join(' <span aria-hidden="true">|</span> ')}}});Un.mergeOptions({attributionControl:!0}),Un.addInitHook(function(){this.options.attributionControl&&(new Kn).addTo(this)});var Xn=function(t){return new Kn(t)};Hn.Layers=Wn,Hn.Zoom=Jn,Hn.Scale=Gn,Hn.Attribution=Kn,Vn.layers=qn,Vn.zoom=$n,Vn.scale=Yn,Vn.attribution=Xn;var Qn=g.extend({initialize:function(t){this._map=t},enable:function(){return this._enabled?this:(this._enabled=!0,this.addHooks(),this)},disable:function(){return this._enabled?(this._enabled=!1,this.removeHooks(),this):this},enabled:function(){return!!this._enabled}});Qn.addTo=function(t,e){return t.addHandler(e,this),this};var ti,ei={Events:ze},ni=bn.touch?"touchstart mousedown":"mousedown",ii=Te.extend({options:{clickTolerance:3},initialize:function(t,e,n,i){c(this,i),this._element=t,this._dragStartTarget=e||t,this._preventOutline=n},enable:function(){this._enabled||(vt(this._dragStartTarget,ni,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(ii._dragging===this&&this.finishDrag(!0),mt(this._dragStartTarget,ni,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(t){if(this._enabled&&(this._moved=!1,!X(this._element,"leaflet-zoom-anim"))){if(t.touches&&1!==t.touches.length)return void(ii._dragging===this&&this.finishDrag());if(!(ii._dragging||t.shiftKey||1!==t.which&&1!==t.button&&!t.touches||(ii._dragging=this,this._preventOutline&&ht(this._element),ut(),Pe(),this._moving))){this.fire("down");var e=t.touches?t.touches[0]:t,n=ft(this._element);this._startPoint=new b(e.clientX,e.clientY),this._startPos=lt(this._element),this._parentScale=pt(n);var i="mousedown"===t.type;vt(document,i?"mousemove":"touchmove",this._onMove,this),vt(document,i?"mouseup":"touchend touchcancel",this._onUp,this)}}},_onMove:function(t){if(this._enabled){if(t.touches&&t.touches.length>1)return void(this._moved=!0);var e=t.touches&&1===t.touches.length?t.touches[0]:t,n=new b(e.clientX,e.clientY)._subtract(this._startPoint);(n.x||n.y)&&(Math.abs(n.x)+Math.abs(n.y)<this.options.clickTolerance||(n.x/=this._parentScale.x,n.y/=this._parentScale.y,xt(t),this._moved||(this.fire("dragstart"),this._moved=!0,Q(document.body,"leaflet-dragging"),this._lastTarget=t.target||t.srcElement,window.SVGElementInstance&&this._lastTarget instanceof window.SVGElementInstance&&(this._lastTarget=this._lastTarget.correspondingUseElement),Q(this._lastTarget,"leaflet-drag-target")),this._newPos=this._startPos.add(n),this._moving=!0,this._lastEvent=t,this._updatePosition()))}},_updatePosition:function(){var t={originalEvent:this._lastEvent};this.fire("predrag",t),at(this._element,this._newPos),this.fire("drag",t)},_onUp:function(){this._enabled&&this.finishDrag()},finishDrag:function(t){tt(document.body,"leaflet-dragging"),this._lastTarget&&(tt(this._lastTarget,"leaflet-drag-target"),this._lastTarget=null),mt(document,"mousemove touchmove",this._onMove,this),mt(document,"mouseup touchend touchcancel",this._onUp,this),ct(),Me(),this._moved&&this._moving&&this.fire("dragend",{noInertia:t,distance:this._newPos.distanceTo(this._startPos)}),this._moving=!1,ii._dragging=!1}}),oi={__proto__:null,simplify:At,pointToSegmentDistance:Pt,closestPointOnSegment:Mt,clipSegment:Ot,_getEdgeIntersection:Dt,_getBitCode:Zt,_sqClosestPointOnSegment:Rt,isFlat:Nt,_flat:Ut,polylineCenter:Ht},ri={__proto__:null,clipPolygon:Vt,polygonCenter:Wt},si={project:function(t){return new b(t.lng,t.lat)},unproject:function(t){return new T(t.y,t.x)},bounds:new j([-180,-90],[180,90])},ai={R:6378137,R_MINOR:6356752.314245179,bounds:new j([-20037508.34279,-15496570.73972],[20037508.34279,18764656.23138]),project:function(t){var e=Math.PI/180,n=this.R,i=t.lat*e,o=this.R_MINOR/n,r=Math.sqrt(1-o*o),s=r*Math.sin(i),a=Math.tan(Math.PI/4-i/2)/Math.pow((1-s)/(1+s),r/2);return i=-n*Math.log(Math.max(a,1e-10)),new b(t.lng*e*n,i)},unproject:function(t){for(var e,n=180/Math.PI,i=this.R,o=this.R_MINOR/i,r=Math.sqrt(1-o*o),s=Math.exp(-t.y/i),a=Math.PI/2-2*Math.atan(s),l=0,u=.1;l<15&&Math.abs(u)>1e-7;l++)e=r*Math.sin(a),e=Math.pow((1-e)/(1+e),r/2),u=Math.PI/2-2*Math.atan(s*e)-a,a+=u;return new T(a*n,t.x*n/i)}},li={__proto__:null,LonLat:si,Mercator:ai,SphericalMercator:Ae},ui=e({},Ce,{code:"EPSG:3395",projection:ai,transformation:function(){var t=.5/(Math.PI*ai.R);return A(t,.5,-t,.5)}()}),ci=e({},Ce,{code:"EPSG:4326",projection:si,transformation:A(1/180,1,-1/180,.5)}),hi=e({},Se,{projection:si,transformation:A(1,0,-1,0),scale:function(t){return Math.pow(2,t)},zoom:function(t){return Math.log(t)/Math.LN2},distance:function(t,e){var n=e.lng-t.lng,i=e.lat-t.lat;return Math.sqrt(n*n+i*i)},infinite:!0});Se.Earth=Ce,Se.EPSG3395=ui,Se.EPSG3857=Ee,Se.EPSG900913=Ie,Se.EPSG4326=ci,Se.Simple=hi;var di=Te.extend({options:{pane:"overlayPane",attribution:null,bubblingMouseEvents:!0},addTo:function(t){return t.addLayer(this),this},remove:function(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom:function(t){return t&&t.removeLayer(this),this},getPane:function(t){return this._map.getPane(t?this.options[t]||t:this.options.pane)},addInteractiveTarget:function(t){return this._map._targets[i(t)]=this,this},removeInteractiveTarget:function(t){return delete this._map._targets[i(t)],this},getAttribution:function(){return this.options.attribution},_layerAdd:function(t){var e=t.target;if(e.hasLayer(this)){if(this._map=e,this._zoomAnimated=e._zoomAnimated,this.getEvents){var n=this.getEvents();e.on(n,this),this.once("remove",function(){e.off(n,this)},this)}this.onAdd(e),this.fire("add"),e.fire("layeradd",{layer:this})}}});Un.include({addLayer:function(t){if(!t._layerAdd)throw new Error("The provided object is not a Layer.");var e=i(t);return this._layers[e]?this:(this._layers[e]=t,t._mapToAdd=this,t.beforeAdd&&t.beforeAdd(this),this.whenReady(t._layerAdd,t),this)},removeLayer:function(t){var e=i(t);return this._layers[e]?(this._loaded&&t.onRemove(this),delete this._layers[e],this._loaded&&(this.fire("layerremove",{layer:t}),t.fire("remove")),t._map=t._mapToAdd=null,this):this},hasLayer:function(t){return i(t)in this._layers},eachLayer:function(t,e){for(var n in this._layers)t.call(e,this._layers[n]);return this},_addLayers:function(t){t=t?ye(t)?t:[t]:[];for(var e=0,n=t.length;e<n;e++)this.addLayer(t[e])},_addZoomLimit:function(t){isNaN(t.options.maxZoom)&&isNaN(t.options.minZoom)||(this._zoomBoundLayers[i(t)]=t,this._updateZoomLevels())},_removeZoomLimit:function(t){var e=i(t);this._zoomBoundLayers[e]&&(delete this._zoomBoundLayers[e],this._updateZoomLevels())},_updateZoomLevels:function(){var t=1/0,e=-1/0,n=this._getZoomSpan();for(var i in this._zoomBoundLayers){var o=this._zoomBoundLayers[i].options;t=void 0===o.minZoom?t:Math.min(t,o.minZoom),e=void 0===o.maxZoom?e:Math.max(e,o.maxZoom)}this._layersMaxZoom=e===-1/0?void 0:e,this._layersMinZoom=t===1/0?void 0:t,n!==this._getZoomSpan()&&this.fire("zoomlevelschange"),void 0===this.options.maxZoom&&this._layersMaxZoom&&this.getZoom()>this._layersMaxZoom&&this.setZoom(this._layersMaxZoom),void 0===this.options.minZoom&&this._layersMinZoom&&this.getZoom()<this._layersMinZoom&&this.setZoom(this._layersMinZoom)}});var fi=di.extend({initialize:function(t,e){c(this,e),this._layers={};var n,i;if(t)for(n=0,i=t.length;n<i;n++)this.addLayer(t[n])},addLayer:function(t){var e=this.getLayerId(t);return this._layers[e]=t,this._map&&this._map.addLayer(t),this},removeLayer:function(t){var e=t in this._layers?t:this.getLayerId(t);return this._map&&this._layers[e]&&this._map.removeLayer(this._layers[e]),delete this._layers[e],this},hasLayer:function(t){return("number"==typeof t?t:this.getLayerId(t))in this._layers},clearLayers:function(){return this.eachLayer(this.removeLayer,this)},invoke:function(t){var e,n,i=Array.prototype.slice.call(arguments,1);for(e in this._layers)n=this._layers[e],n[t]&&n[t].apply(n,i);return this},onAdd:function(t){this.eachLayer(t.addLayer,t)},onRemove:function(t){this.eachLayer(t.removeLayer,t)},eachLayer:function(t,e){for(var n in this._layers)t.call(e,this._layers[n]);return this},getLayer:function(t){return this._layers[t]},getLayers:function(){var t=[];return this.eachLayer(t.push,t),t},setZIndex:function(t){return this.invoke("setZIndex",t)},getLayerId:function(t){return i(t)}}),pi=function(t,e){return new fi(t,e)},vi=fi.extend({addLayer:function(t){return this.hasLayer(t)?this:(t.addEventParent(this),fi.prototype.addLayer.call(this,t),this.fire("layeradd",{layer:t}))},removeLayer:function(t){return this.hasLayer(t)?(t in this._layers&&(t=this._layers[t]),t.removeEventParent(this),fi.prototype.removeLayer.call(this,t),this.fire("layerremove",{layer:t})):this},setStyle:function(t){return this.invoke("setStyle",t)},bringToFront:function(){return this.invoke("bringToFront")},bringToBack:function(){return this.invoke("bringToBack")},getBounds:function(){var t=new k;for(var e in this._layers){var n=this._layers[e];t.extend(n.getBounds?n.getBounds():n.getLatLng())}return t}}),mi=function(t,e){return new vi(t,e)},_i=g.extend({options:{popupAnchor:[0,0],tooltipAnchor:[0,0],crossOrigin:!1},initialize:function(t){c(this,t)},createIcon:function(t){return this._createIcon("icon",t)},createShadow:function(t){return this._createIcon("shadow",t)},_createIcon:function(t,e){var n=this._getIconUrl(t);if(!n){if("icon"===t)throw new Error("iconUrl not set in Icon options (see the docs).");return null}var i=this._createImg(n,e&&"IMG"===e.tagName?e:null);return this._setIconStyles(i,t),(this.options.crossOrigin||""===this.options.crossOrigin)&&(i.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),i},_setIconStyles:function(t,e){var n=this.options,i=n[e+"Size"];"number"==typeof i&&(i=[i,i]);var o=w(i),r=w("shadow"===e&&n.shadowAnchor||n.iconAnchor||o&&o.divideBy(2,!0));t.className="leaflet-marker-"+e+" "+(n.className||""),r&&(t.style.marginLeft=-r.x+"px",t.style.marginTop=-r.y+"px"),o&&(t.style.width=o.x+"px",t.style.height=o.y+"px")},_createImg:function(t,e){return e=e||document.createElement("img"),e.src=t,e},_getIconUrl:function(t){return bn.retina&&this.options[t+"RetinaUrl"]||this.options[t+"Url"]}}),gi=_i.extend({options:{iconUrl:"marker-icon.png",iconRetinaUrl:"marker-icon-2x.png",shadowUrl:"marker-shadow.png",iconSize:[25,41],iconAnchor:[12,41],popupAnchor:[1,-34],tooltipAnchor:[16,-28],shadowSize:[41,41]},_getIconUrl:function(t){return"string"!=typeof gi.imagePath&&(gi.imagePath=this._detectIconPath()),(this.options.imagePath||gi.imagePath)+_i.prototype._getIconUrl.call(this,t)},_stripUrl:function(t){var e=function(t,e,n){var i=e.exec(t);return i&&i[n]};return(t=e(t,/^url\((['"])?(.+)\1\)$/,2))&&e(t,/^(.*)marker-icon\.png$/,1)},_detectIconPath:function(){var t=J("div","leaflet-default-icon-path",document.body),e=q(t,"background-image")||q(t,"backgroundImage");if(document.body.removeChild(t),e=this._stripUrl(e))return e;var n=document.querySelector('link[href$="leaflet.css"]');return n?n.href.substring(0,n.href.length-"leaflet.css".length-1):""}}),yi=Qn.extend({initialize:function(t){this._marker=t},addHooks:function(){var t=this._marker._icon;this._draggable||(this._draggable=new ii(t,t,!0)),this._draggable.on({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).enable(),Q(t,"leaflet-marker-draggable")},removeHooks:function(){this._draggable.off({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).disable(),this._marker._icon&&tt(this._marker._icon,"leaflet-marker-draggable")},moved:function(){return this._draggable&&this._draggable._moved},_adjustPan:function(t){var e=this._marker,n=e._map,i=this._marker.options.autoPanSpeed,o=this._marker.options.autoPanPadding,r=lt(e._icon),s=n.getPixelBounds(),a=n.getPixelOrigin(),l=x(s.min._subtract(a).add(o),s.max._subtract(a).subtract(o));if(!l.contains(r)){var u=w((Math.max(l.max.x,r.x)-l.max.x)/(s.max.x-l.max.x)-(Math.min(l.min.x,r.x)-l.min.x)/(s.min.x-l.min.x),(Math.max(l.max.y,r.y)-l.max.y)/(s.max.y-l.max.y)-(Math.min(l.min.y,r.y)-l.min.y)/(s.min.y-l.min.y)).multiplyBy(i);n.panBy(u,{animate:!1}),this._draggable._newPos._add(u),this._draggable._startPos._add(u),at(e._icon,this._draggable._newPos),this._onDrag(t),this._panRequest=m(this._adjustPan.bind(this,t))}},_onDragStart:function(){this._oldLatLng=this._marker.getLatLng(),this._marker.closePopup&&this._marker.closePopup(),this._marker.fire("movestart").fire("dragstart")},_onPreDrag:function(t){this._marker.options.autoPan&&(_(this._panRequest),this._panRequest=m(this._adjustPan.bind(this,t)))},_onDrag:function(t){var e=this._marker,n=e._shadow,i=lt(e._icon),o=e._map.layerPointToLatLng(i);n&&at(n,i),e._latlng=o,t.latlng=o,t.oldLatLng=this._oldLatLng,e.fire("move",t).fire("drag",t)},_onDragEnd:function(t){_(this._panRequest),delete this._oldLatLng,this._marker.fire("moveend").fire("dragend",t)}}),bi=di.extend({options:{icon:new gi,interactive:!0,keyboard:!0,title:"",alt:"Marker",zIndexOffset:0,opacity:1,riseOnHover:!1,riseOffset:250,pane:"markerPane",shadowPane:"shadowPane",bubblingMouseEvents:!1,autoPanOnFocus:!0,draggable:!1,autoPan:!1,autoPanPadding:[50,50],autoPanSpeed:10},initialize:function(t,e){c(this,e),this._latlng=S(t)},onAdd:function(t){this._zoomAnimated=this._zoomAnimated&&t.options.markerZoomAnimation,this._zoomAnimated&&t.on("zoomanim",this._animateZoom,this),this._initIcon(),this.update()},onRemove:function(t){this.dragging&&this.dragging.enabled()&&(this.options.draggable=!0,this.dragging.removeHooks()),delete this.dragging,this._zoomAnimated&&t.off("zoomanim",this._animateZoom,this),this._removeIcon(),this._removeShadow()},getEvents:function(){return{zoom:this.update,viewreset:this.update}},getLatLng:function(){return this._latlng},setLatLng:function(t){var e=this._latlng;return this._latlng=S(t),this.update(),this.fire("move",{oldLatLng:e,latlng:this._latlng})},setZIndexOffset:function(t){return this.options.zIndexOffset=t,this.update()},getIcon:function(){return this.options.icon},setIcon:function(t){return this.options.icon=t,this._map&&(this._initIcon(),this.update()),this._popup&&this.bindPopup(this._popup,this._popup.options),this},getElement:function(){return this._icon},update:function(){if(this._icon&&this._map){var t=this._map.latLngToLayerPoint(this._latlng).round();this._setPos(t)}return this},_initIcon:function(){var t=this.options,e="leaflet-zoom-"+(this._zoomAnimated?"animated":"hide"),n=t.icon.createIcon(this._icon),i=!1;n!==this._icon&&(this._icon&&this._removeIcon(),i=!0,t.title&&(n.title=t.title),"IMG"===n.tagName&&(n.alt=t.alt||"")),Q(n,e),t.keyboard&&(n.tabIndex="0",n.setAttribute("role","button")),this._icon=n,t.riseOnHover&&this.on({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&vt(n,"focus",this._panOnFocus,this);var o=t.icon.createShadow(this._shadow),r=!1;o!==this._shadow&&(this._removeShadow(),r=!0),o&&(Q(o,e),o.alt=""),this._shadow=o,t.opacity<1&&this._updateOpacity(),i&&this.getPane().appendChild(this._icon),this._initInteraction(),o&&r&&this.getPane(t.shadowPane).appendChild(this._shadow)},_removeIcon:function(){this.options.riseOnHover&&this.off({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&mt(this._icon,"focus",this._panOnFocus,this),$(this._icon),this.removeInteractiveTarget(this._icon),this._icon=null},_removeShadow:function(){this._shadow&&$(this._shadow),this._shadow=null},_setPos:function(t){this._icon&&at(this._icon,t),this._shadow&&at(this._shadow,t),this._zIndex=t.y+this.options.zIndexOffset,this._resetZIndex()},_updateZIndex:function(t){this._icon&&(this._icon.style.zIndex=this._zIndex+t)},_animateZoom:function(t){var e=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center).round();this._setPos(e)},_initInteraction:function(){if(this.options.interactive&&(Q(this._icon,"leaflet-interactive"),this.addInteractiveTarget(this._icon),yi)){var t=this.options.draggable;this.dragging&&(t=this.dragging.enabled(),this.dragging.disable()),this.dragging=new yi(this),t&&this.dragging.enable()}},setOpacity:function(t){return this.options.opacity=t,this._map&&this._updateOpacity(),this},_updateOpacity:function(){var t=this.options.opacity;this._icon&&it(this._icon,t),this._shadow&&it(this._shadow,t)},_bringToFront:function(){this._updateZIndex(this.options.riseOffset)},_resetZIndex:function(){this._updateZIndex(0)},_panOnFocus:function(){var t=this._map;if(t){var e=this.options.icon.options,n=e.iconSize?w(e.iconSize):w(0,0),i=e.iconAnchor?w(e.iconAnchor):w(0,0);t.panInside(this._latlng,{paddingTopLeft:i,paddingBottomRight:n.subtract(i)})}},_getPopupAnchor:function(){return this.options.icon.options.popupAnchor},_getTooltipAnchor:function(){return this.options.icon.options.tooltipAnchor}}),wi=di.extend({options:{stroke:!0,color:"#3388ff",weight:3,opacity:1,lineCap:"round",lineJoin:"round",dashArray:null,dashOffset:null,fill:!1,fillColor:null,fillOpacity:.2,fillRule:"evenodd",interactive:!0,bubblingMouseEvents:!0},beforeAdd:function(t){this._renderer=t.getRenderer(this)},onAdd:function(){this._renderer._initPath(this),this._reset(),this._renderer._addPath(this)},onRemove:function(){this._renderer._removePath(this)},redraw:function(){return this._map&&this._renderer._updatePath(this),this},setStyle:function(t){return c(this,t),this._renderer&&(this._renderer._updateStyle(this),this.options.stroke&&t&&Object.prototype.hasOwnProperty.call(t,"weight")&&this._updateBounds()),this},bringToFront:function(){return this._renderer&&this._renderer._bringToFront(this),this},bringToBack:function(){return this._renderer&&this._renderer._bringToBack(this),this},getElement:function(){return this._path},_reset:function(){this._project(),this._update()},_clickTolerance:function(){return(this.options.stroke?this.options.weight/2:0)+(this._renderer.options.tolerance||0)}}),ji=wi.extend({options:{fill:!0,radius:10},initialize:function(t,e){c(this,e),this._latlng=S(t),this._radius=this.options.radius},setLatLng:function(t){var e=this._latlng;return this._latlng=S(t),this.redraw(),this.fire("move",{oldLatLng:e,latlng:this._latlng})},getLatLng:function(){return this._latlng},setRadius:function(t){return this.options.radius=this._radius=t,this.redraw()},getRadius:function(){return this._radius},setStyle:function(t){var e=t&&t.radius||this._radius;return wi.prototype.setStyle.call(this,t),this.setRadius(e),this},_project:function(){this._point=this._map.latLngToLayerPoint(this._latlng),this._updateBounds()},_updateBounds:function(){var t=this._radius,e=this._radiusY||t,n=this._clickTolerance(),i=[t+n,e+n];this._pxBounds=new j(this._point.subtract(i),this._point.add(i))},_update:function(){this._map&&this._updatePath()},_updatePath:function(){this._renderer._updateCircle(this)},_empty:function(){return this._radius&&!this._renderer._bounds.intersects(this._pxBounds)},_containsPoint:function(t){return t.distanceTo(this._point)<=this._radius+this._clickTolerance()}}),xi=ji.extend({initialize:function(t,n,i){if("number"==typeof n&&(n=e({},i,{radius:n})),c(this,n),this._latlng=S(t),isNaN(this.options.radius))throw new Error("Circle radius cannot be NaN");this._mRadius=this.options.radius},setRadius:function(t){return this._mRadius=t,this.redraw()},getRadius:function(){return this._mRadius},getBounds:function(){var t=[this._radius,this._radiusY||this._radius];return new k(this._map.layerPointToLatLng(this._point.subtract(t)),this._map.layerPointToLatLng(this._point.add(t)))},setStyle:wi.prototype.setStyle,_project:function(){var t=this._latlng.lng,e=this._latlng.lat,n=this._map,i=n.options.crs;if(i.distance===Ce.distance){var o=Math.PI/180,r=this._mRadius/Ce.R/o,s=n.project([e+r,t]),a=n.project([e-r,t]),l=s.add(a).divideBy(2),u=n.unproject(l).lat,c=Math.acos((Math.cos(r*o)-Math.sin(e*o)*Math.sin(u*o))/(Math.cos(e*o)*Math.cos(u*o)))/o;(isNaN(c)||0===c)&&(c=r/Math.cos(Math.PI/180*e)),this._point=l.subtract(n.getPixelOrigin()),this._radius=isNaN(c)?0:l.x-n.project([u,t-c]).x,this._radiusY=l.y-s.y}else{var h=i.unproject(i.project(this._latlng).subtract([this._mRadius,0]));this._point=n.latLngToLayerPoint(this._latlng),this._radius=this._point.x-n.latLngToLayerPoint(h).x}this._updateBounds()}}),ki=wi.extend({options:{smoothFactor:1,noClip:!1},initialize:function(t,e){c(this,e),this._setLatLngs(t)},getLatLngs:function(){return this._latlngs},setLatLngs:function(t){return this._setLatLngs(t),this.redraw()},isEmpty:function(){return!this._latlngs.length},closestLayerPoint:function(t){for(var e,n,i=1/0,o=null,r=Rt,s=0,a=this._parts.length;s<a;s++)for(var l=this._parts[s],u=1,c=l.length;u<c;u++){e=l[u-1],n=l[u];var h=r(t,e,n,!0);h<i&&(i=h,o=r(t,e,n))}return o&&(o.distance=Math.sqrt(i)),o},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");return Ht(this._defaultShape(),this._map.options.crs)},getBounds:function(){return this._bounds},addLatLng:function(t,e){return e=e||this._defaultShape(),t=S(t),e.push(t),this._bounds.extend(t),this.redraw()},_setLatLngs:function(t){this._bounds=new k,this._latlngs=this._convertLatLngs(t)},_defaultShape:function(){return Nt(this._latlngs)?this._latlngs:this._latlngs[0]},_convertLatLngs:function(t){for(var e=[],n=Nt(t),i=0,o=t.length;i<o;i++)n?(e[i]=S(t[i]),this._bounds.extend(e[i])):e[i]=this._convertLatLngs(t[i]);return e},_project:function(){var t=new j;this._rings=[],this._projectLatlngs(this._latlngs,this._rings,t),this._bounds.isValid()&&t.isValid()&&(this._rawPxBounds=t,this._updateBounds())},_updateBounds:function(){var t=this._clickTolerance(),e=new b(t,t);this._rawPxBounds&&(this._pxBounds=new j([this._rawPxBounds.min.subtract(e),this._rawPxBounds.max.add(e)]))},_projectLatlngs:function(t,e,n){var i,o,r=t[0]instanceof T,s=t.length;if(r){for(o=[],i=0;i<s;i++)o[i]=this._map.latLngToLayerPoint(t[i]),n.extend(o[i]);e.push(o)}else for(i=0;i<s;i++)this._projectLatlngs(t[i],e,n)},_clipPoints:function(){var t=this._renderer._bounds;if(this._parts=[],this._pxBounds&&this._pxBounds.intersects(t)){if(this.options.noClip)return void(this._parts=this._rings);var e,n,i,o,r,s,a,l=this._parts;for(e=0,i=0,o=this._rings.length;e<o;e++)for(a=this._rings[e],n=0,r=a.length;n<r-1;n++)(s=Ot(a[n],a[n+1],t,n,!0))&&(l[i]=l[i]||[],l[i].push(s[0]),s[1]===a[n+1]&&n!==r-2||(l[i].push(s[1]),i++))}},_simplifyPoints:function(){for(var t=this._parts,e=this.options.smoothFactor,n=0,i=t.length;n<i;n++)t[n]=At(t[n],e)},_update:function(){this._map&&(this._clipPoints(),this._simplifyPoints(),this._updatePath())},_updatePath:function(){this._renderer._updatePoly(this)},_containsPoint:function(t,e){var n,i,o,r,s,a,l=this._clickTolerance();if(!this._pxBounds||!this._pxBounds.contains(t))return!1;for(n=0,r=this._parts.length;n<r;n++)for(a=this._parts[n],i=0,s=a.length,o=s-1;i<s;o=i++)if((e||0!==i)&&Pt(t,a[o],a[i])<=l)return!0;return!1}});ki._flat=Ut;var zi=ki.extend({options:{fill:!0},isEmpty:function(){return!this._latlngs.length||!this._latlngs[0].length},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");return Wt(this._defaultShape(),this._map.options.crs)},_convertLatLngs:function(t){var e=ki.prototype._convertLatLngs.call(this,t),n=e.length;return n>=2&&e[0]instanceof T&&e[0].equals(e[n-1])&&e.pop(),e},_setLatLngs:function(t){ki.prototype._setLatLngs.call(this,t),Nt(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return Nt(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var t=this._renderer._bounds,e=this.options.weight,n=new b(e,e);if(t=new j(t.min.subtract(n),t.max.add(n)),this._parts=[],this._pxBounds&&this._pxBounds.intersects(t)){if(this.options.noClip)return void(this._parts=this._rings);for(var i,o=0,r=this._rings.length;o<r;o++)i=Vt(this._rings[o],t,!0),i.length&&this._parts.push(i)}},_updatePath:function(){this._renderer._updatePoly(this,!0)},_containsPoint:function(t){var e,n,i,o,r,s,a,l,u=!1;if(!this._pxBounds||!this._pxBounds.contains(t))return!1;for(o=0,a=this._parts.length;o<a;o++)for(e=this._parts[o],r=0,l=e.length,s=l-1;r<l;s=r++)n=e[r],i=e[s],n.y>t.y!=i.y>t.y&&t.x<(i.x-n.x)*(t.y-n.y)/(i.y-n.y)+n.x&&(u=!u);return u||ki.prototype._containsPoint.call(this,t,!0)}}),Ti=vi.extend({initialize:function(t,e){c(this,e),this._layers={},t&&this.addData(t)},addData:function(t){var e,n,i,o=ye(t)?t:t.features;if(o){for(e=0,n=o.length;e<n;e++)i=o[e],(i.geometries||i.geometry||i.features||i.coordinates)&&this.addData(i);return this}var r=this.options;if(r.filter&&!r.filter(t))return this;var s=Xt(t,r);return s?(s.feature=re(t),s.defaultOptions=s.options,this.resetStyle(s),r.onEachFeature&&r.onEachFeature(t,s),this.addLayer(s)):this},resetStyle:function(t){return void 0===t?this.eachLayer(this.resetStyle,this):(t.options=e({},t.defaultOptions),this._setLayerStyle(t,this.options.style),this)},setStyle:function(t){return this.eachLayer(function(e){this._setLayerStyle(e,t)},this)},_setLayerStyle:function(t,e){t.setStyle&&("function"==typeof e&&(e=e(t.feature)),t.setStyle(e))}}),Li={toGeoJSON:function(t){return oe(this,{type:"Point",coordinates:ne(this.getLatLng(),t)})}};bi.include(Li),xi.include(Li),ji.include(Li),ki.include({toGeoJSON:function(t){var e=!Nt(this._latlngs),n=ie(this._latlngs,e?1:0,!1,t);return oe(this,{type:(e?"Multi":"")+"LineString",coordinates:n})}}),zi.include({toGeoJSON:function(t){var e=!Nt(this._latlngs),n=e&&!Nt(this._latlngs[0]),i=ie(this._latlngs,n?2:e?1:0,!0,t);return e||(i=[i]),oe(this,{type:(n?"Multi":"")+"Polygon",coordinates:i})}}),fi.include({toMultiPoint:function(t){var e=[];return this.eachLayer(function(n){e.push(n.toGeoJSON(t).geometry.coordinates)}),oe(this,{type:"MultiPoint",coordinates:e})},toGeoJSON:function(t){var e=this.feature&&this.feature.geometry&&this.feature.geometry.type;if("MultiPoint"===e)return this.toMultiPoint(t);var n="GeometryCollection"===e,i=[];return this.eachLayer(function(e){if(e.toGeoJSON){var o=e.toGeoJSON(t);if(n)i.push(o.geometry);else{var r=re(o);"FeatureCollection"===r.type?i.push.apply(i,r.features):i.push(r)}}}),n?oe(this,{geometries:i,type:"GeometryCollection"}):{type:"FeatureCollection",features:i}}});var Si=se,Ci=di.extend({options:{opacity:1,alt:"",interactive:!1,crossOrigin:!1,errorOverlayUrl:"",zIndex:1,className:""},initialize:function(t,e,n){this._url=t,this._bounds=z(e),c(this,n)},onAdd:function(){this._image||(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(Q(this._image,"leaflet-interactive"),this.addInteractiveTarget(this._image)),this.getPane().appendChild(this._image),this._reset()},onRemove:function(){$(this._image),this.options.interactive&&this.removeInteractiveTarget(this._image)},setOpacity:function(t){return this.options.opacity=t,this._image&&this._updateOpacity(),this},setStyle:function(t){return t.opacity&&this.setOpacity(t.opacity),this},bringToFront:function(){return this._map&&Y(this._image),this},bringToBack:function(){return this._map&&K(this._image),this},setUrl:function(t){return this._url=t,this._image&&(this._image.src=t),this},setBounds:function(t){return this._bounds=z(t),this._map&&this._reset(),this},getEvents:function(){var t={zoom:this._reset,viewreset:this._reset};return this._zoomAnimated&&(t.zoomanim=this._animateZoom),t},setZIndex:function(t){return this.options.zIndex=t,this._updateZIndex(),this},getBounds:function(){return this._bounds},getElement:function(){return this._image},_initImage:function(){var t="IMG"===this._url.tagName,e=this._image=t?this._url:J("img");if(Q(e,"leaflet-image-layer"),this._zoomAnimated&&Q(e,"leaflet-zoom-animated"),this.options.className&&Q(e,this.options.className),e.onselectstart=s,e.onmousemove=s,e.onload=n(this.fire,this,"load"),e.onerror=n(this._overlayOnError,this,"error"),(this.options.crossOrigin||""===this.options.crossOrigin)&&(e.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),this.options.zIndex&&this._updateZIndex(),t)return void(this._url=e.src);e.src=this._url,e.alt=this.options.alt},_animateZoom:function(t){var e=this._map.getZoomScale(t.zoom),n=this._map._latLngBoundsToNewLayerBounds(this._bounds,t.zoom,t.center).min;st(this._image,n,e)},_reset:function(){var t=this._image,e=new j(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),n=e.getSize();at(t,e.min),t.style.width=n.x+"px",t.style.height=n.y+"px"},_updateOpacity:function(){it(this._image,this.options.opacity)},_updateZIndex:function(){this._image&&void 0!==this.options.zIndex&&null!==this.options.zIndex&&(this._image.style.zIndex=this.options.zIndex)},_overlayOnError:function(){this.fire("error");var t=this.options.errorOverlayUrl;t&&this._url!==t&&(this._url=t,this._image.src=t)},getCenter:function(){return this._bounds.getCenter()}}),Ai=function(t,e,n){return new Ci(t,e,n)},Pi=Ci.extend({options:{autoplay:!0,loop:!0,keepAspectRatio:!0,muted:!1,playsInline:!0},_initImage:function(){var t="VIDEO"===this._url.tagName,e=this._image=t?this._url:J("video");if(Q(e,"leaflet-image-layer"),this._zoomAnimated&&Q(e,"leaflet-zoom-animated"),this.options.className&&Q(e,this.options.className),e.onselectstart=s,e.onmousemove=s,e.onloadeddata=n(this.fire,this,"load"),t){for(var i=e.getElementsByTagName("source"),o=[],r=0;r<i.length;r++)o.push(i[r].src);return void(this._url=i.length>0?o:[e.src])}ye(this._url)||(this._url=[this._url]),!this.options.keepAspectRatio&&Object.prototype.hasOwnProperty.call(e.style,"objectFit")&&(e.style.objectFit="fill"),e.autoplay=!!this.options.autoplay,e.loop=!!this.options.loop,e.muted=!!this.options.muted,e.playsInline=!!this.options.playsInline;for(var a=0;a<this._url.length;a++){var l=J("source");l.src=this._url[a],e.appendChild(l)}}}),Mi=Ci.extend({_initImage:function(){var t=this._image=this._url;Q(t,"leaflet-image-layer"),this._zoomAnimated&&Q(t,"leaflet-zoom-animated"),this.options.className&&Q(t,this.options.className),t.onselectstart=s,t.onmousemove=s}}),Bi=di.extend({options:{interactive:!1,offset:[0,0],className:"",pane:void 0,content:""},initialize:function(t,e){t&&(t instanceof T||ye(t))?(this._latlng=S(t),c(this,e)):(c(this,t),this._source=e),this.options.content&&(this._content=this.options.content)},openOn:function(t){return t=arguments.length?t:this._source._map,t.hasLayer(this)||t.addLayer(this),this},close:function(){return this._map&&this._map.removeLayer(this),this},toggle:function(t){return this._map?this.close():(arguments.length?this._source=t:t=this._source,this._prepareOpen(),this.openOn(t._map)),this},onAdd:function(t){this._zoomAnimated=t._zoomAnimated,this._container||this._initLayout(),t._fadeAnimated&&it(this._container,0),clearTimeout(this._removeTimeout),this.getPane().appendChild(this._container),this.update(),t._fadeAnimated&&it(this._container,1),this.bringToFront(),this.options.interactive&&(Q(this._container,"leaflet-interactive"),this.addInteractiveTarget(this._container))},onRemove:function(t){t._fadeAnimated?(it(this._container,0),this._removeTimeout=setTimeout(n($,void 0,this._container),200)):$(this._container),this.options.interactive&&(tt(this._container,"leaflet-interactive"),this.removeInteractiveTarget(this._container))},getLatLng:function(){return this._latlng},setLatLng:function(t){return this._latlng=S(t),this._map&&(this._updatePosition(),this._adjustPan()),this},getContent:function(){return this._content},setContent:function(t){return this._content=t,this.update(),this},getElement:function(){return this._container},update:function(){this._map&&(this._container.style.visibility="hidden",this._updateContent(),this._updateLayout(),this._updatePosition(),this._container.style.visibility="",this._adjustPan())},getEvents:function(){var t={zoom:this._updatePosition,viewreset:this._updatePosition};return this._zoomAnimated&&(t.zoomanim=this._animateZoom),t},isOpen:function(){return!!this._map&&this._map.hasLayer(this)},bringToFront:function(){return this._map&&Y(this._container),this},bringToBack:function(){return this._map&&K(this._container),this},_prepareOpen:function(t){var e=this._source;if(!e._map)return!1;if(e instanceof vi){e=null;var n=this._source._layers;for(var i in n)if(n[i]._map){e=n[i];break}if(!e)return!1;this._source=e}if(!t)if(e.getCenter)t=e.getCenter();else if(e.getLatLng)t=e.getLatLng();else{if(!e.getBounds)throw new Error("Unable to get source layer LatLng.");t=e.getBounds().getCenter()}return this.setLatLng(t),this._map&&this.update(),!0},_updateContent:function(){if(this._content){var t=this._contentNode,e="function"==typeof this._content?this._content(this._source||this):this._content;if("string"==typeof e)t.innerHTML=e;else{for(;t.hasChildNodes();)t.removeChild(t.firstChild);t.appendChild(e)}this.fire("contentupdate")}},_updatePosition:function(){if(this._map){var t=this._map.latLngToLayerPoint(this._latlng),e=w(this.options.offset),n=this._getAnchor();this._zoomAnimated?at(this._container,t.add(n)):e=e.add(t).add(n);var i=this._containerBottom=-e.y,o=this._containerLeft=-Math.round(this._containerWidth/2)+e.x;this._container.style.bottom=i+"px",this._container.style.left=o+"px"}},_getAnchor:function(){return[0,0]}});Un.include({_initOverlay:function(t,e,n,i){var o=e;return o instanceof t||(o=new t(i).setContent(e)),n&&o.setLatLng(n),o}}),di.include({_initOverlay:function(t,e,n,i){var o=n;return o instanceof t?(c(o,i),o._source=this):(o=e&&!i?e:new t(i,this),o.setContent(n)),o}});var Ei=Bi.extend({options:{pane:"popupPane",offset:[0,7],maxWidth:300,minWidth:50,maxHeight:null,autoPan:!0,autoPanPaddingTopLeft:null,autoPanPaddingBottomRight:null,autoPanPadding:[5,5],keepInView:!1,closeButton:!0,autoClose:!0,closeOnEscapeKey:!0,className:""},openOn:function(t){return t=arguments.length?t:this._source._map,!t.hasLayer(this)&&t._popup&&t._popup.options.autoClose&&t.removeLayer(t._popup),t._popup=this,Bi.prototype.openOn.call(this,t)},onAdd:function(t){Bi.prototype.onAdd.call(this,t),t.fire("popupopen",{popup:this}),this._source&&(this._source.fire("popupopen",{popup:this},!0),this._source instanceof wi||this._source.on("preclick",bt))},onRemove:function(t){Bi.prototype.onRemove.call(this,t),t.fire("popupclose",{popup:this}),this._source&&(this._source.fire("popupclose",{popup:this},!0),this._source instanceof wi||this._source.off("preclick",bt))},getEvents:function(){var t=Bi.prototype.getEvents.call(this);return(void 0!==this.options.closeOnClick?this.options.closeOnClick:this._map.options.closePopupOnClick)&&(t.preclick=this.close),this.options.keepInView&&(t.moveend=this._adjustPan),t},_initLayout:function(){var t="leaflet-popup",e=this._container=J("div",t+" "+(this.options.className||"")+" leaflet-zoom-animated"),n=this._wrapper=J("div",t+"-content-wrapper",e);if(this._contentNode=J("div",t+"-content",n),jt(e),wt(this._contentNode),vt(e,"contextmenu",bt),this._tipContainer=J("div",t+"-tip-container",e),this._tip=J("div",t+"-tip",this._tipContainer),this.options.closeButton){var i=this._closeButton=J("a",t+"-close-button",e);i.setAttribute("role","button"),i.setAttribute("aria-label","Close popup"),i.href="#close",i.innerHTML='<span aria-hidden="true">&#215;</span>',vt(i,"click",function(t){xt(t),this.close()},this)}},_updateLayout:function(){var t=this._contentNode,e=t.style;e.width="",e.whiteSpace="nowrap";var n=t.offsetWidth;n=Math.min(n,this.options.maxWidth),n=Math.max(n,this.options.minWidth),e.width=n+1+"px",e.whiteSpace="",e.height="";var i=t.offsetHeight,o=this.options.maxHeight;o&&i>o?(e.height=o+"px",Q(t,"leaflet-popup-scrolled")):tt(t,"leaflet-popup-scrolled"),this._containerWidth=this._container.offsetWidth},_animateZoom:function(t){var e=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center),n=this._getAnchor();at(this._container,e.add(n))},_adjustPan:function(){if(this.options.autoPan){if(this._map._panAnim&&this._map._panAnim.stop(),this._autopanning)return void(this._autopanning=!1);var t=this._map,e=parseInt(q(this._container,"marginBottom"),10)||0,n=this._container.offsetHeight+e,i=this._containerWidth,o=new b(this._containerLeft,-n-this._containerBottom);o._add(lt(this._container));var r=t.layerPointToContainerPoint(o),s=w(this.options.autoPanPadding),a=w(this.options.autoPanPaddingTopLeft||s),l=w(this.options.autoPanPaddingBottomRight||s),u=t.getSize(),c=0,h=0;r.x+i+l.x>u.x&&(c=r.x+i-u.x+l.x),r.x-c-a.x<0&&(c=r.x-a.x),r.y+n+l.y>u.y&&(h=r.y+n-u.y+l.y),r.y-h-a.y<0&&(h=r.y-a.y),(c||h)&&(this.options.keepInView&&(this._autopanning=!0),t.fire("autopanstart").panBy([c,h]))}},_getAnchor:function(){return w(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}}),Ii=function(t,e){return new Ei(t,e)};Un.mergeOptions({closePopupOnClick:!0}),Un.include({openPopup:function(t,e,n){return this._initOverlay(Ei,t,e,n).openOn(this),this},closePopup:function(t){return t=arguments.length?t:this._popup,t&&t.close(),this}}),di.include({bindPopup:function(t,e){return this._popup=this._initOverlay(Ei,this._popup,t,e),this._popupHandlersAdded||(this.on({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!0),this},unbindPopup:function(){return this._popup&&(this.off({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!1,this._popup=null),this},openPopup:function(t){return this._popup&&(this instanceof vi||(this._popup._source=this),this._popup._prepareOpen(t||this._latlng)&&this._popup.openOn(this._map)),this},closePopup:function(){return this._popup&&this._popup.close(),this},togglePopup:function(){return this._popup&&this._popup.toggle(this),this},isPopupOpen:function(){return!!this._popup&&this._popup.isOpen()},setPopupContent:function(t){return this._popup&&this._popup.setContent(t),this},getPopup:function(){return this._popup},_openPopup:function(t){if(this._popup&&this._map){kt(t);var e=t.layer||t.target;if(this._popup._source===e&&!(e instanceof wi))return void(this._map.hasLayer(this._popup)?this.closePopup():this.openPopup(t.latlng));this._popup._source=e,this.openPopup(t.latlng)}},_movePopup:function(t){this._popup.setLatLng(t.latlng)},_onKeyPress:function(t){13===t.originalEvent.keyCode&&this._openPopup(t)}});var Oi=Bi.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,opacity:.9},onAdd:function(t){Bi.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){Bi.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=Bi.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=J("div",t),this._container.setAttribute("role","tooltip"),this._container.setAttribute("id","leaflet-tooltip-"+i(this))},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(t){var e,n,i=this._map,o=this._container,r=i.latLngToContainerPoint(i.getCenter()),s=i.layerPointToContainerPoint(t),a=this.options.direction,l=o.offsetWidth,u=o.offsetHeight,c=w(this.options.offset),h=this._getAnchor();"top"===a?(e=l/2,n=u):"bottom"===a?(e=l/2,n=0):"center"===a?(e=l/2,n=u/2):"right"===a?(e=0,n=u/2):"left"===a?(e=l,n=u/2):s.x<r.x?(a="right",e=0,n=u/2):(a="left",e=l+2*(c.x+h.x),n=u/2),t=t.subtract(w(e,n,!0)).add(c).add(h),tt(o,"leaflet-tooltip-right"),tt(o,"leaflet-tooltip-left"),tt(o,"leaflet-tooltip-top"),tt(o,"leaflet-tooltip-bottom"),Q(o,"leaflet-tooltip-"+a),at(o,t)},_updatePosition:function(){var t=this._map.latLngToLayerPoint(this._latlng);this._setPosition(t)},setOpacity:function(t){this.options.opacity=t,this._container&&it(this._container,t)},_animateZoom:function(t){var e=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center);this._setPosition(e)},_getAnchor:function(){return w(this._source&&this._source._getTooltipAnchor&&!this.options.sticky?this._source._getTooltipAnchor():[0,0])}}),Di=function(t,e){return new Oi(t,e)};Un.include({openTooltip:function(t,e,n){return this._initOverlay(Oi,t,e,n).openOn(this),this},closeTooltip:function(t){return t.close(),this}}),di.include({bindTooltip:function(t,e){return this._tooltip&&this.isTooltipOpen()&&this.unbindTooltip(),this._tooltip=this._initOverlay(Oi,this._tooltip,t,e),this._initTooltipInteractions(),this._tooltip.options.permanent&&this._map&&this._map.hasLayer(this)&&this.openTooltip(),this},unbindTooltip:function(){return this._tooltip&&(this._initTooltipInteractions(!0),this.closeTooltip(),this._tooltip=null),this},_initTooltipInteractions:function(t){if(t||!this._tooltipHandlersAdded){var e=t?"off":"on",n={remove:this.closeTooltip,move:this._moveTooltip};this._tooltip.options.permanent?n.add=this._openTooltip:(n.mouseover=this._openTooltip,n.mouseout=this.closeTooltip,n.click=this._openTooltip,this._map?this._addFocusListeners():n.add=this._addFocusListeners),this._tooltip.options.sticky&&(n.mousemove=this._moveTooltip),this[e](n),this._tooltipHandlersAdded=!t}},openTooltip:function(t){return this._tooltip&&(this instanceof vi||(this._tooltip._source=this),this._tooltip._prepareOpen(t)&&(this._tooltip.openOn(this._map),this.getElement?this._setAriaDescribedByOnLayer(this):this.eachLayer&&this.eachLayer(this._setAriaDescribedByOnLayer,this))),this},closeTooltip:function(){if(this._tooltip)return this._tooltip.close()},toggleTooltip:function(){return this._tooltip&&this._tooltip.toggle(this),this},isTooltipOpen:function(){return this._tooltip.isOpen()},setTooltipContent:function(t){return this._tooltip&&this._tooltip.setContent(t),this},getTooltip:function(){return this._tooltip},_addFocusListeners:function(){this.getElement?this._addFocusListenersOnLayer(this):this.eachLayer&&this.eachLayer(this._addFocusListenersOnLayer,this)},_addFocusListenersOnLayer:function(t){var e=t.getElement();e&&(vt(e,"focus",function(){this._tooltip._source=t,this.openTooltip()},this),vt(e,"blur",this.closeTooltip,this))},_setAriaDescribedByOnLayer:function(t){var e=t.getElement();e&&e.setAttribute("aria-describedby",this._tooltip._container.id)},_openTooltip:function(t){!this._tooltip||!this._map||this._map.dragging&&this._map.dragging.moving()||(this._tooltip._source=t.layer||t.target,this.openTooltip(this._tooltip.options.sticky?t.latlng:void 0))},_moveTooltip:function(t){var e,n,i=t.latlng;this._tooltip.options.sticky&&t.originalEvent&&(e=this._map.mouseEventToContainerPoint(t.originalEvent),n=this._map.containerPointToLayerPoint(e),i=this._map.layerPointToLatLng(n)),this._tooltip.setLatLng(i)}});var Zi=_i.extend({options:{iconSize:[12,12],html:!1,bgPos:null,className:"leaflet-div-icon"},createIcon:function(t){var e=t&&"DIV"===t.tagName?t:document.createElement("div"),n=this.options;if(n.html instanceof Element?(G(e),e.appendChild(n.html)):e.innerHTML=!1!==n.html?n.html:"",n.bgPos){var i=w(n.bgPos);e.style.backgroundPosition=-i.x+"px "+-i.y+"px"}return this._setIconStyles(e,"icon"),e},createShadow:function(){return null}});_i.Default=gi;var Fi=di.extend({options:{tileSize:256,opacity:1,updateWhenIdle:bn.mobile,updateWhenZooming:!0,updateInterval:200,zIndex:1,bounds:null,minZoom:0,maxZoom:void 0,maxNativeZoom:void 0,minNativeZoom:void 0,noWrap:!1,pane:"tilePane",className:"",keepBuffer:2},initialize:function(t){c(this,t)},onAdd:function(){this._initContainer(),this._levels={},this._tiles={},this._resetView()},beforeAdd:function(t){t._addZoomLimit(this)},onRemove:function(t){this._removeAllTiles(),$(this._container),t._removeZoomLimit(this),this._container=null,this._tileZoom=void 0},bringToFront:function(){return this._map&&(Y(this._container),this._setAutoZIndex(Math.max)),this},bringToBack:function(){return this._map&&(K(this._container),this._setAutoZIndex(Math.min)),this},getContainer:function(){return this._container},setOpacity:function(t){return this.options.opacity=t,this._updateOpacity(),this},setZIndex:function(t){return this.options.zIndex=t,this._updateZIndex(),this},isLoading:function(){return this._loading},redraw:function(){if(this._map){this._removeAllTiles();var t=this._clampZoom(this._map.getZoom());t!==this._tileZoom&&(this._tileZoom=t,this._updateLevels()),this._update()}return this},getEvents:function(){var t={viewprereset:this._invalidateAll,viewreset:this._resetView,zoom:this._resetView,moveend:this._onMoveEnd};return this.options.updateWhenIdle||(this._onMove||(this._onMove=o(this._onMoveEnd,this.options.updateInterval,this)),t.move=this._onMove),this._zoomAnimated&&(t.zoomanim=this._animateZoom),t},createTile:function(){return document.createElement("div")},getTileSize:function(){var t=this.options.tileSize;return t instanceof b?t:new b(t,t)},_updateZIndex:function(){this._container&&void 0!==this.options.zIndex&&null!==this.options.zIndex&&(this._container.style.zIndex=this.options.zIndex)},_setAutoZIndex:function(t){for(var e,n=this.getPane().children,i=-t(-1/0,1/0),o=0,r=n.length;o<r;o++)e=n[o].style.zIndex,n[o]!==this._container&&e&&(i=t(i,+e));isFinite(i)&&(this.options.zIndex=i+t(-1,1),this._updateZIndex())},_updateOpacity:function(){if(this._map&&!bn.ielt9){it(this._container,this.options.opacity);var t=+new Date,e=!1,n=!1;for(var i in this._tiles){var o=this._tiles[i];if(o.current&&o.loaded){var r=Math.min(1,(t-o.loaded)/200);it(o.el,r),r<1?e=!0:(o.active?n=!0:this._onOpaqueTile(o),o.active=!0)}}n&&!this._noPrune&&this._pruneTiles(),e&&(_(this._fadeFrame),this._fadeFrame=m(this._updateOpacity,this))}},_onOpaqueTile:s,_initContainer:function(){this._container||(this._container=J("div","leaflet-layer "+(this.options.className||"")),this._updateZIndex(),this.options.opacity<1&&this._updateOpacity(),this.getPane().appendChild(this._container))},_updateLevels:function(){var t=this._tileZoom,e=this.options.maxZoom;if(void 0!==t){for(var n in this._levels)n=Number(n),this._levels[n].el.children.length||n===t?(this._levels[n].el.style.zIndex=e-Math.abs(t-n),this._onUpdateLevel(n)):($(this._levels[n].el),this._removeTilesAtZoom(n),this._onRemoveLevel(n),delete this._levels[n]);var i=this._levels[t],o=this._map;return i||(i=this._levels[t]={},i.el=J("div","leaflet-tile-container leaflet-zoom-animated",this._container),i.el.style.zIndex=e,i.origin=o.project(o.unproject(o.getPixelOrigin()),t).round(),i.zoom=t,this._setZoomTransform(i,o.getCenter(),o.getZoom()),s(i.el.offsetWidth),this._onCreateLevel(i)),this._level=i,i}},_onUpdateLevel:s,_onRemoveLevel:s,_onCreateLevel:s,_pruneTiles:function(){if(this._map){var t,e,n=this._map.getZoom();if(n>this.options.maxZoom||n<this.options.minZoom)return void this._removeAllTiles();for(t in this._tiles)e=this._tiles[t],e.retain=e.current;for(t in this._tiles)if(e=this._tiles[t],e.current&&!e.active){var i=e.coords;this._retainParent(i.x,i.y,i.z,i.z-5)||this._retainChildren(i.x,i.y,i.z,i.z+2)}for(t in this._tiles)this._tiles[t].retain||this._removeTile(t)}},_removeTilesAtZoom:function(t){for(var e in this._tiles)this._tiles[e].coords.z===t&&this._removeTile(e)},_removeAllTiles:function(){for(var t in this._tiles)this._removeTile(t)},_invalidateAll:function(){for(var t in this._levels)$(this._levels[t].el),this._onRemoveLevel(Number(t)),delete this._levels[t];this._removeAllTiles(),this._tileZoom=void 0},_retainParent:function(t,e,n,i){var o=Math.floor(t/2),r=Math.floor(e/2),s=n-1,a=new b(+o,+r);a.z=+s;var l=this._tileCoordsToKey(a),u=this._tiles[l];return u&&u.active?(u.retain=!0,!0):(u&&u.loaded&&(u.retain=!0),s>i&&this._retainParent(o,r,s,i))},_retainChildren:function(t,e,n,i){for(var o=2*t;o<2*t+2;o++)for(var r=2*e;r<2*e+2;r++){var s=new b(o,r);s.z=n+1;var a=this._tileCoordsToKey(s),l=this._tiles[a];l&&l.active?l.retain=!0:(l&&l.loaded&&(l.retain=!0),n+1<i&&this._retainChildren(o,r,n+1,i))}},_resetView:function(t){var e=t&&(t.pinch||t.flyTo);this._setView(this._map.getCenter(),this._map.getZoom(),e,e)},_animateZoom:function(t){this._setView(t.center,t.zoom,!0,t.noUpdate)},_clampZoom:function(t){var e=this.options;return void 0!==e.minNativeZoom&&t<e.minNativeZoom?e.minNativeZoom:void 0!==e.maxNativeZoom&&e.maxNativeZoom<t?e.maxNativeZoom:t},_setView:function(t,e,n,i){var o=Math.round(e);o=void 0!==this.options.maxZoom&&o>this.options.maxZoom||void 0!==this.options.minZoom&&o<this.options.minZoom?void 0:this._clampZoom(o);var r=this.options.updateWhenZooming&&o!==this._tileZoom;i&&!r||(this._tileZoom=o,this._abortLoading&&this._abortLoading(),this._updateLevels(),this._resetGrid(),void 0!==o&&this._update(t),n||this._pruneTiles(),this._noPrune=!!n),this._setZoomTransforms(t,e)},_setZoomTransforms:function(t,e){for(var n in this._levels)this._setZoomTransform(this._levels[n],t,e)},_setZoomTransform:function(t,e,n){var i=this._map.getZoomScale(n,t.zoom),o=t.origin.multiplyBy(i).subtract(this._map._getNewPixelOrigin(e,n)).round();bn.any3d?st(t.el,o,i):at(t.el,o)},_resetGrid:function(){var t=this._map,e=t.options.crs,n=this._tileSize=this.getTileSize(),i=this._tileZoom,o=this._map.getPixelWorldBounds(this._tileZoom);o&&(this._globalTileRange=this._pxBoundsToTileRange(o)),this._wrapX=e.wrapLng&&!this.options.noWrap&&[Math.floor(t.project([0,e.wrapLng[0]],i).x/n.x),Math.ceil(t.project([0,e.wrapLng[1]],i).x/n.y)],this._wrapY=e.wrapLat&&!this.options.noWrap&&[Math.floor(t.project([e.wrapLat[0],0],i).y/n.x),Math.ceil(t.project([e.wrapLat[1],0],i).y/n.y)]},_onMoveEnd:function(){this._map&&!this._map._animatingZoom&&this._update()},_getTiledPixelBounds:function(t){var e=this._map,n=e._animatingZoom?Math.max(e._animateToZoom,e.getZoom()):e.getZoom(),i=e.getZoomScale(n,this._tileZoom),o=e.project(t,this._tileZoom).floor(),r=e.getSize().divideBy(2*i);return new j(o.subtract(r),o.add(r))},_update:function(t){var e=this._map;if(e){var n=this._clampZoom(e.getZoom());if(void 0===t&&(t=e.getCenter()),void 0!==this._tileZoom){var i=this._getTiledPixelBounds(t),o=this._pxBoundsToTileRange(i),r=o.getCenter(),s=[],a=this.options.keepBuffer,l=new j(o.getBottomLeft().subtract([a,-a]),o.getTopRight().add([a,-a]));if(!(isFinite(o.min.x)&&isFinite(o.min.y)&&isFinite(o.max.x)&&isFinite(o.max.y)))throw new Error("Attempted to load an infinite number of tiles");for(var u in this._tiles){var c=this._tiles[u].coords;c.z===this._tileZoom&&l.contains(new b(c.x,c.y))||(this._tiles[u].current=!1)}if(Math.abs(n-this._tileZoom)>1)return void this._setView(t,n);for(var h=o.min.y;h<=o.max.y;h++)for(var d=o.min.x;d<=o.max.x;d++){var f=new b(d,h);if(f.z=this._tileZoom,this._isValidTile(f)){var p=this._tiles[this._tileCoordsToKey(f)];p?p.current=!0:s.push(f)}}if(s.sort(function(t,e){return t.distanceTo(r)-e.distanceTo(r)}),0!==s.length){this._loading||(this._loading=!0,this.fire("loading"));var v=document.createDocumentFragment();for(d=0;d<s.length;d++)this._addTile(s[d],v);this._level.el.appendChild(v)}}}},_isValidTile:function(t){var e=this._map.options.crs;if(!e.infinite){var n=this._globalTileRange;if(!e.wrapLng&&(t.x<n.min.x||t.x>n.max.x)||!e.wrapLat&&(t.y<n.min.y||t.y>n.max.y))return!1}if(!this.options.bounds)return!0;var i=this._tileCoordsToBounds(t);return z(this.options.bounds).overlaps(i)},_keyToBounds:function(t){return this._tileCoordsToBounds(this._keyToTileCoords(t))},_tileCoordsToNwSe:function(t){var e=this._map,n=this.getTileSize(),i=t.scaleBy(n),o=i.add(n);return[e.unproject(i,t.z),e.unproject(o,t.z)]},_tileCoordsToBounds:function(t){var e=this._tileCoordsToNwSe(t),n=new k(e[0],e[1]);return this.options.noWrap||(n=this._map.wrapLatLngBounds(n)),n},_tileCoordsToKey:function(t){return t.x+":"+t.y+":"+t.z},_keyToTileCoords:function(t){var e=t.split(":"),n=new b(+e[0],+e[1]);return n.z=+e[2],n},_removeTile:function(t){var e=this._tiles[t];e&&($(e.el),delete this._tiles[t],this.fire("tileunload",{tile:e.el,coords:this._keyToTileCoords(t)}))},_initTile:function(t){Q(t,"leaflet-tile");var e=this.getTileSize();t.style.width=e.x+"px",t.style.height=e.y+"px",t.onselectstart=s,t.onmousemove=s,bn.ielt9&&this.options.opacity<1&&it(t,this.options.opacity)},_addTile:function(t,e){var i=this._getTilePos(t),o=this._tileCoordsToKey(t),r=this.createTile(this._wrapCoords(t),n(this._tileReady,this,t));this._initTile(r),this.createTile.length<2&&m(n(this._tileReady,this,t,null,r)),at(r,i),this._tiles[o]={el:r,coords:t,current:!0},e.appendChild(r),this.fire("tileloadstart",{tile:r,coords:t})},_tileReady:function(t,e,i){e&&this.fire("tileerror",{error:e,tile:i,coords:t});var o=this._tileCoordsToKey(t);(i=this._tiles[o])&&(i.loaded=+new Date,this._map._fadeAnimated?(it(i.el,0),_(this._fadeFrame),this._fadeFrame=m(this._updateOpacity,this)):(i.active=!0,this._pruneTiles()),e||(Q(i.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:i.el,coords:t})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),bn.ielt9||!this._map._fadeAnimated?m(this._pruneTiles,this):setTimeout(n(this._pruneTiles,this),250)))},_getTilePos:function(t){return t.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(t){var e=new b(this._wrapX?r(t.x,this._wrapX):t.x,this._wrapY?r(t.y,this._wrapY):t.y);return e.z=t.z,e},_pxBoundsToTileRange:function(t){var e=this.getTileSize();return new j(t.min.unscaleBy(e).floor(),t.max.unscaleBy(e).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var t in this._tiles)if(!this._tiles[t].loaded)return!1;return!0}}),Ri=Fi.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1,referrerPolicy:!1},initialize:function(t,e){this._url=t,e=c(this,e),e.detectRetina&&bn.retina&&e.maxZoom>0?(e.tileSize=Math.floor(e.tileSize/2),e.zoomReverse?(e.zoomOffset--,e.minZoom=Math.min(e.maxZoom,e.minZoom+1)):(e.zoomOffset++,e.maxZoom=Math.max(e.minZoom,e.maxZoom-1)),e.minZoom=Math.max(0,e.minZoom)):e.zoomReverse?e.minZoom=Math.min(e.maxZoom,e.minZoom):e.maxZoom=Math.max(e.minZoom,e.maxZoom),"string"==typeof e.subdomains&&(e.subdomains=e.subdomains.split("")),this.on("tileunload",this._onTileRemove)},setUrl:function(t,e){return this._url===t&&void 0===e&&(e=!0),this._url=t,e||this.redraw(),this},createTile:function(t,e){var i=document.createElement("img");return vt(i,"load",n(this._tileOnLoad,this,e,i)),vt(i,"error",n(this._tileOnError,this,e,i)),(this.options.crossOrigin||""===this.options.crossOrigin)&&(i.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),"string"==typeof this.options.referrerPolicy&&(i.referrerPolicy=this.options.referrerPolicy),i.alt="",i.src=this.getTileUrl(t),i},getTileUrl:function(t){var n={r:bn.retina?"@2x":"",s:this._getSubdomain(t),x:t.x,y:t.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var i=this._globalTileRange.max.y-t.y;this.options.tms&&(n.y=i),n["-y"]=i}return d(this._url,e(n,this.options))},_tileOnLoad:function(t,e){bn.ielt9?setTimeout(n(t,this,null,e),0):t(null,e)},_tileOnError:function(t,e,n){var i=this.options.errorTileUrl;i&&e.getAttribute("src")!==i&&(e.src=i),t(n,e)},_onTileRemove:function(t){t.tile.onload=null},_getZoomForUrl:function(){var t=this._tileZoom,e=this.options.maxZoom,n=this.options.zoomReverse,i=this.options.zoomOffset;return n&&(t=e-t),t+i},_getSubdomain:function(t){var e=Math.abs(t.x+t.y)%this.options.subdomains.length;return this.options.subdomains[e]},_abortLoading:function(){var t,e;for(t in this._tiles)if(this._tiles[t].coords.z!==this._tileZoom&&(e=this._tiles[t].el,e.onload=s,e.onerror=s,!e.complete)){e.src=be;var n=this._tiles[t].coords;$(e),delete this._tiles[t],this.fire("tileabort",{tile:e,coords:n})}},_removeTile:function(t){var e=this._tiles[t];if(e)return e.el.setAttribute("src",be),Fi.prototype._removeTile.call(this,t)},_tileReady:function(t,e,n){if(this._map&&(!n||n.getAttribute("src")!==be))return Fi.prototype._tileReady.call(this,t,e,n)}}),Ni=Ri.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:!1,version:"1.1.1"},options:{crs:null,uppercase:!1},initialize:function(t,n){this._url=t;var i=e({},this.defaultWmsParams);for(var o in n)o in this.options||(i[o]=n[o]);n=c(this,n);var r=n.detectRetina&&bn.retina?2:1,s=this.getTileSize();i.width=s.x*r,i.height=s.y*r,this.wmsParams=i},onAdd:function(t){this._crs=this.options.crs||t.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var e=this._wmsVersion>=1.3?"crs":"srs";this.wmsParams[e]=this._crs.code,Ri.prototype.onAdd.call(this,t)},getTileUrl:function(t){var e=this._tileCoordsToNwSe(t),n=this._crs,i=x(n.project(e[0]),n.project(e[1])),o=i.min,r=i.max,s=(this._wmsVersion>=1.3&&this._crs===ci?[o.y,o.x,r.y,r.x]:[o.x,o.y,r.x,r.y]).join(","),a=Ri.prototype.getTileUrl.call(this,t);return a+h(this.wmsParams,a,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+s},setParams:function(t,n){return e(this.wmsParams,t),n||this.redraw(),this}});Ri.WMS=Ni,he.wms=de;var Ui=di.extend({options:{padding:.1},initialize:function(t){c(this,t),i(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),this._zoomAnimated&&Q(this._container,"leaflet-zoom-animated")),this.getPane().appendChild(this._container),this._update(),this.on("update",this._updatePaths,this)},onRemove:function(){this.off("update",this._updatePaths,this),this._destroyContainer()},getEvents:function(){var t={viewreset:this._reset,zoom:this._onZoom,moveend:this._update,zoomend:this._onZoomEnd};return this._zoomAnimated&&(t.zoomanim=this._onAnimZoom),t},_onAnimZoom:function(t){this._updateTransform(t.center,t.zoom)},_onZoom:function(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform:function(t,e){var n=this._map.getZoomScale(e,this._zoom),i=this._map.getSize().multiplyBy(.5+this.options.padding),o=this._map.project(this._center,e),r=i.multiplyBy(-n).add(o).subtract(this._map._getNewPixelOrigin(t,e));bn.any3d?st(this._container,r,n):at(this._container,r)},_reset:function(){this._update(),this._updateTransform(this._center,this._zoom);for(var t in this._layers)this._layers[t]._reset()},_onZoomEnd:function(){for(var t in this._layers)this._layers[t]._project()},_updatePaths:function(){for(var t in this._layers)this._layers[t]._update()},_update:function(){var t=this.options.padding,e=this._map.getSize(),n=this._map.containerPointToLayerPoint(e.multiplyBy(-t)).round();this._bounds=new j(n,n.add(e.multiplyBy(1+2*t)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),Hi=Ui.extend({options:{tolerance:0},getEvents:function(){var t=Ui.prototype.getEvents.call(this);return t.viewprereset=this._onViewPreReset,t},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){Ui.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var t=this._container=document.createElement("canvas");vt(t,"mousemove",this._onMouseMove,this),vt(t,"click dblclick mousedown mouseup contextmenu",this._onClick,this),vt(t,"mouseout",this._handleMouseOut,this),t._leaflet_disable_events=!0,this._ctx=t.getContext("2d")},_destroyContainer:function(){_(this._redrawRequest),delete this._ctx,$(this._container),mt(this._container),delete this._container},_updatePaths:function(){if(!this._postponeUpdatePaths){var t;this._redrawBounds=null;for(var e in this._layers)t=this._layers[e],t._update();this._redraw()}},_update:function(){if(!this._map._animatingZoom||!this._bounds){Ui.prototype._update.call(this);var t=this._bounds,e=this._container,n=t.getSize(),i=bn.retina?2:1;at(e,t.min),e.width=i*n.x,e.height=i*n.y,e.style.width=n.x+"px",e.style.height=n.y+"px",bn.retina&&this._ctx.scale(2,2),this._ctx.translate(-t.min.x,-t.min.y),this.fire("update")}},_reset:function(){Ui.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(t){this._updateDashArray(t),this._layers[i(t)]=t;var e=t._order={layer:t,prev:this._drawLast,next:null};this._drawLast&&(this._drawLast.next=e),this._drawLast=e,this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(t){this._requestRedraw(t)},_removePath:function(t){var e=t._order,n=e.next,o=e.prev;n?n.prev=o:this._drawLast=o,o?o.next=n:this._drawFirst=n,delete t._order,delete this._layers[i(t)],this._requestRedraw(t)},_updatePath:function(t){this._extendRedrawBounds(t),t._project(),t._update(),this._requestRedraw(t)},_updateStyle:function(t){this._updateDashArray(t),this._requestRedraw(t)},_updateDashArray:function(t){if("string"==typeof t.options.dashArray){var e,n,i=t.options.dashArray.split(/[, ]+/),o=[];for(n=0;n<i.length;n++){if(e=Number(i[n]),isNaN(e))return;o.push(e)}t.options._dashArray=o}else t.options._dashArray=t.options.dashArray},_requestRedraw:function(t){this._map&&(this._extendRedrawBounds(t),this._redrawRequest=this._redrawRequest||m(this._redraw,this))},_extendRedrawBounds:function(t){if(t._pxBounds){var e=(t.options.weight||0)+1;this._redrawBounds=this._redrawBounds||new j,this._redrawBounds.extend(t._pxBounds.min.subtract([e,e])),this._redrawBounds.extend(t._pxBounds.max.add([e,e]))}},_redraw:function(){this._redrawRequest=null,this._redrawBounds&&(this._redrawBounds.min._floor(),this._redrawBounds.max._ceil()),this._clear(),this._draw(),this._redrawBounds=null},_clear:function(){var t=this._redrawBounds;if(t){var e=t.getSize();this._ctx.clearRect(t.min.x,t.min.y,e.x,e.y)}else this._ctx.save(),this._ctx.setTransform(1,0,0,1,0,0),this._ctx.clearRect(0,0,this._container.width,this._container.height),this._ctx.restore()},_draw:function(){var t,e=this._redrawBounds;if(this._ctx.save(),e){var n=e.getSize();this._ctx.beginPath(),this._ctx.rect(e.min.x,e.min.y,n.x,n.y),this._ctx.clip()}this._drawing=!0;for(var i=this._drawFirst;i;i=i.next)t=i.layer,(!e||t._pxBounds&&t._pxBounds.intersects(e))&&t._updatePath();this._drawing=!1,this._ctx.restore()},_updatePoly:function(t,e){if(this._drawing){var n,i,o,r,s=t._parts,a=s.length,l=this._ctx;if(a){for(l.beginPath(),n=0;n<a;n++){for(i=0,o=s[n].length;i<o;i++)r=s[n][i],l[i?"lineTo":"moveTo"](r.x,r.y);e&&l.closePath()}this._fillStroke(l,t)}}},_updateCircle:function(t){if(this._drawing&&!t._empty()){var e=t._point,n=this._ctx,i=Math.max(Math.round(t._radius),1),o=(Math.max(Math.round(t._radiusY),1)||i)/i;1!==o&&(n.save(),n.scale(1,o)),n.beginPath(),n.arc(e.x,e.y/o,i,0,2*Math.PI,!1),1!==o&&n.restore(),this._fillStroke(n,t)}},_fillStroke:function(t,e){var n=e.options;n.fill&&(t.globalAlpha=n.fillOpacity,t.fillStyle=n.fillColor||n.color,t.fill(n.fillRule||"evenodd")),n.stroke&&0!==n.weight&&(t.setLineDash&&t.setLineDash(e.options&&e.options._dashArray||[]),t.globalAlpha=n.opacity,t.lineWidth=n.weight,t.strokeStyle=n.color,t.lineCap=n.lineCap,t.lineJoin=n.lineJoin,t.stroke())},_onClick:function(t){for(var e,n,i=this._map.mouseEventToLayerPoint(t),o=this._drawFirst;o;o=o.next)e=o.layer,e.options.interactive&&e._containsPoint(i)&&("click"!==t.type&&"preclick"!==t.type||!this._map._draggableMoved(e))&&(n=e);this._fireEvent(!!n&&[n],t)},_onMouseMove:function(t){if(this._map&&!this._map.dragging.moving()&&!this._map._animatingZoom){var e=this._map.mouseEventToLayerPoint(t);this._handleMouseHover(t,e)}},_handleMouseOut:function(t){var e=this._hoveredLayer;e&&(tt(this._container,"leaflet-interactive"),this._fireEvent([e],t,"mouseout"),this._hoveredLayer=null,this._mouseHoverThrottled=!1)},_handleMouseHover:function(t,e){if(!this._mouseHoverThrottled){for(var i,o,r=this._drawFirst;r;r=r.next)i=r.layer,i.options.interactive&&i._containsPoint(e)&&(o=i);o!==this._hoveredLayer&&(this._handleMouseOut(t),o&&(Q(this._container,"leaflet-interactive"),this._fireEvent([o],t,"mouseover"),this._hoveredLayer=o)),this._fireEvent(!!this._hoveredLayer&&[this._hoveredLayer],t),this._mouseHoverThrottled=!0,setTimeout(n(function(){this._mouseHoverThrottled=!1},this),32)}},_fireEvent:function(t,e,n){this._map._fireDOMEvent(e,n||e.type,t)},_bringToFront:function(t){var e=t._order;if(e){var n=e.next,i=e.prev;n&&(n.prev=i,i?i.next=n:n&&(this._drawFirst=n),e.prev=this._drawLast,this._drawLast.next=e,e.next=null,this._drawLast=e,this._requestRedraw(t))}},_bringToBack:function(t){var e=t._order;if(e){var n=e.next,i=e.prev;i&&(i.next=n,n?n.prev=i:i&&(this._drawLast=i),e.prev=null,e.next=this._drawFirst,this._drawFirst.prev=e,this._drawFirst=e,this._requestRedraw(t))}}}),Vi=function(){try{return document.namespaces.add("lvml","urn:schemas-microsoft-com:vml"),function(t){return document.createElement("<lvml:"+t+' class="lvml">')}}catch(t){}return function(t){return document.createElement("<"+t+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}}(),Wi={_initContainer:function(){this._container=J("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(Ui.prototype._update.call(this),this.fire("update"))},_initPath:function(t){var e=t._container=Vi("shape");Q(e,"leaflet-vml-shape "+(this.options.className||"")),e.coordsize="1 1",t._path=Vi("path"),e.appendChild(t._path),this._updateStyle(t),this._layers[i(t)]=t},_addPath:function(t){var e=t._container;this._container.appendChild(e),t.options.interactive&&t.addInteractiveTarget(e)},_removePath:function(t){var e=t._container;$(e),t.removeInteractiveTarget(e),delete this._layers[i(t)]},_updateStyle:function(t){var e=t._stroke,n=t._fill,i=t.options,o=t._container;o.stroked=!!i.stroke,o.filled=!!i.fill,i.stroke?(e||(e=t._stroke=Vi("stroke")),o.appendChild(e),e.weight=i.weight+"px",e.color=i.color,e.opacity=i.opacity,i.dashArray?e.dashStyle=ye(i.dashArray)?i.dashArray.join(" "):i.dashArray.replace(/( *, *)/g," "):e.dashStyle="",e.endcap=i.lineCap.replace("butt","flat"),e.joinstyle=i.lineJoin):e&&(o.removeChild(e),t._stroke=null),i.fill?(n||(n=t._fill=Vi("fill")),o.appendChild(n),n.color=i.fillColor||i.color,n.opacity=i.fillOpacity):n&&(o.removeChild(n),t._fill=null)},_updateCircle:function(t){var e=t._point.round(),n=Math.round(t._radius),i=Math.round(t._radiusY||n);this._setPath(t,t._empty()?"M0 0":"AL "+e.x+","+e.y+" "+n+","+i+" 0,23592600")},_setPath:function(t,e){t._path.v=e},_bringToFront:function(t){Y(t._container)},_bringToBack:function(t){K(t._container)}},qi=bn.vml?Vi:P,Ji=Ui.extend({_initContainer:function(){this._container=qi("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=qi("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){$(this._container),mt(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_update:function(){if(!this._map._animatingZoom||!this._bounds){Ui.prototype._update.call(this);var t=this._bounds,e=t.getSize(),n=this._container;this._svgSize&&this._svgSize.equals(e)||(this._svgSize=e,n.setAttribute("width",e.x),n.setAttribute("height",e.y)),at(n,t.min),n.setAttribute("viewBox",[t.min.x,t.min.y,e.x,e.y].join(" ")),this.fire("update")}},_initPath:function(t){var e=t._path=qi("path");t.options.className&&Q(e,t.options.className),t.options.interactive&&Q(e,"leaflet-interactive"),this._updateStyle(t),this._layers[i(t)]=t},_addPath:function(t){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(t._path),t.addInteractiveTarget(t._path)},_removePath:function(t){$(t._path),t.removeInteractiveTarget(t._path),delete this._layers[i(t)]},_updatePath:function(t){t._project(),t._update()},_updateStyle:function(t){var e=t._path,n=t.options;e&&(n.stroke?(e.setAttribute("stroke",n.color),e.setAttribute("stroke-opacity",n.opacity),e.setAttribute("stroke-width",n.weight),e.setAttribute("stroke-linecap",n.lineCap),e.setAttribute("stroke-linejoin",n.lineJoin),n.dashArray?e.setAttribute("stroke-dasharray",n.dashArray):e.removeAttribute("stroke-dasharray"),n.dashOffset?e.setAttribute("stroke-dashoffset",n.dashOffset):e.removeAttribute("stroke-dashoffset")):e.setAttribute("stroke","none"),n.fill?(e.setAttribute("fill",n.fillColor||n.color),e.setAttribute("fill-opacity",n.fillOpacity),e.setAttribute("fill-rule",n.fillRule||"evenodd")):e.setAttribute("fill","none"))},_updatePoly:function(t,e){this._setPath(t,M(t._parts,e))},_updateCircle:function(t){var e=t._point,n=Math.max(Math.round(t._radius),1),i=Math.max(Math.round(t._radiusY),1)||n,o="a"+n+","+i+" 0 1,0 ",r=t._empty()?"M0 0":"M"+(e.x-n)+","+e.y+o+2*n+",0 "+o+2*-n+",0 ";this._setPath(t,r)},_setPath:function(t,e){t._path.setAttribute("d",e)},_bringToFront:function(t){Y(t._path)},_bringToBack:function(t){K(t._path)}});bn.vml&&Ji.include(Wi),Un.include({getRenderer:function(t){var e=t.options.renderer||this._getPaneRenderer(t.options.pane)||this.options.renderer||this._renderer;return e||(e=this._renderer=this._createRenderer()),this.hasLayer(e)||this.addLayer(e),e},_getPaneRenderer:function(t){if("overlayPane"===t||void 0===t)return!1;var e=this._paneRenderers[t];return void 0===e&&(e=this._createRenderer({pane:t}),this._paneRenderers[t]=e),e},_createRenderer:function(t){return this.options.preferCanvas&&fe(t)||pe(t)}});var $i=zi.extend({initialize:function(t,e){zi.prototype.initialize.call(this,this._boundsToLatLngs(t),e)},setBounds:function(t){return this.setLatLngs(this._boundsToLatLngs(t))},_boundsToLatLngs:function(t){return t=z(t),[t.getSouthWest(),t.getNorthWest(),t.getNorthEast(),t.getSouthEast()]}});Ji.create=qi,Ji.pointsToPath=M,Ti.geometryToLayer=Xt,Ti.coordsToLatLng=te,Ti.coordsToLatLngs=ee,Ti.latLngToCoords=ne,Ti.latLngsToCoords=ie,Ti.getFeature=oe,Ti.asFeature=re,Un.mergeOptions({boxZoom:!0});var Gi=Qn.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(){vt(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){mt(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){$(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(),Pe(),ut(),this._startPoint=this._map.mouseEventToContainerPoint(t),vt(document,{contextmenu:kt,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(t){this._moved||(this._moved=!0,this._box=J("div","leaflet-zoom-box",this._container),Q(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(t);var e=new j(this._point,this._startPoint),n=e.getSize();at(this._box,e.min),this._box.style.width=n.x+"px",this._box.style.height=n.y+"px"},_finish:function(){this._moved&&($(this._box),tt(this._container,"leaflet-crosshair")),Me(),ct(),mt(document,{contextmenu:kt,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(t){if((1===t.which||1===t.button)&&(this._finish(),this._moved)){this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(n(this._resetState,this),0);var e=new k(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(e).fire("boxzoomend",{boxZoomBounds:e})}},_onKeyDown:function(t){27===t.keyCode&&(this._finish(),this._clearDeferredResetState(),this._resetState())}});Un.addInitHook("addHandler","boxZoom",Gi),Un.mergeOptions({doubleClickZoom:!0});var Yi=Qn.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(t){var e=this._map,n=e.getZoom(),i=e.options.zoomDelta,o=t.originalEvent.shiftKey?n-i:n+i;"center"===e.options.doubleClickZoom?e.setZoom(o):e.setZoomAround(t.containerPoint,o)}});Un.addInitHook("addHandler","doubleClickZoom",Yi),Un.mergeOptions({dragging:!0,inertia:!0,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var Ki=Qn.extend({addHooks:function(){if(!this._draggable){var t=this._map;this._draggable=new ii(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))}Q(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){tt(this._map._container,"leaflet-grab"),tt(this._map._container,"leaflet-touch-drag"),this._draggable.disable()},moved:function(){return this._draggable&&this._draggable._moved},moving:function(){return this._draggable&&this._draggable._moving},_onDragStart:function(){var t=this._map;if(t._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity){var e=z(this._map.options.maxBounds);this._offsetLimit=x(this._map.latLngToContainerPoint(e.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(e.getSouthEast()).multiplyBy(-1).add(this._map.getSize())),this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))}else this._offsetLimit=null;t.fire("movestart").fire("dragstart"),t.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(t){if(this._map.options.inertia){var e=this._lastTime=+new Date,n=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(n),this._times.push(e),this._prunePositions(e)}this._map.fire("move",t).fire("drag",t)},_prunePositions:function(t){for(;this._positions.length>1&&t-this._times[0]>50;)this._positions.shift(),this._times.shift()},_onZoomEnd:function(){var t=this._map.getSize().divideBy(2),e=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=e.subtract(t).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(t,e){return t-(t-e)*this._viscosity},_onPreDragLimit:function(){if(this._viscosity&&this._offsetLimit){var t=this._draggable._newPos.subtract(this._draggable._startPos),e=this._offsetLimit;t.x<e.min.x&&(t.x=this._viscousLimit(t.x,e.min.x)),t.y<e.min.y&&(t.y=this._viscousLimit(t.y,e.min.y)),t.x>e.max.x&&(t.x=this._viscousLimit(t.x,e.max.x)),t.y>e.max.y&&(t.y=this._viscousLimit(t.y,e.max.y)),this._draggable._newPos=this._draggable._startPos.add(t)}},_onPreDragWrap:function(){var t=this._worldWidth,e=Math.round(t/2),n=this._initialWorldOffset,i=this._draggable._newPos.x,o=(i-e+n)%t+e-n,r=(i+e+n)%t-e-n,s=Math.abs(o+n)<Math.abs(r+n)?o:r;this._draggable._absPos=this._draggable._newPos.clone(),this._draggable._newPos.x=s},_onDragEnd:function(t){var e=this._map,n=e.options,i=!n.inertia||t.noInertia||this._times.length<2;if(e.fire("dragend",t),i)e.fire("moveend");else{this._prunePositions(+new Date);var o=this._lastPos.subtract(this._positions[0]),r=(this._lastTime-this._times[0])/1e3,s=n.easeLinearity,a=o.multiplyBy(s/r),l=a.distanceTo([0,0]),u=Math.min(n.inertiaMaxSpeed,l),c=a.multiplyBy(u/l),h=u/(n.inertiaDeceleration*s),d=c.multiplyBy(-h/2).round();d.x||d.y?(d=e._limitOffset(d,e.options.maxBounds),m(function(){e.panBy(d,{duration:h,easeLinearity:s,noMoveStart:!0,animate:!0})})):e.fire("moveend")}}});Un.addInitHook("addHandler","dragging",Ki),Un.mergeOptions({keyboard:!0,keyboardPanDelta:80});var Xi=Qn.extend({keyCodes:{left:[37],right:[39],down:[40],up:[38],zoomIn:[187,107,61,171],zoomOut:[189,109,54,173]},initialize:function(t){this._map=t,this._setPanDelta(t.options.keyboardPanDelta),this._setZoomDelta(t.options.zoomDelta)},addHooks:function(){var t=this._map._container;t.tabIndex<=0&&(t.tabIndex="0"),vt(t,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.on({focus:this._addHooks,blur:this._removeHooks},this)},removeHooks:function(){this._removeHooks(),mt(this._map._container,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.off({focus:this._addHooks,blur:this._removeHooks},this)},_onMouseDown:function(){if(!this._focused){var t=document.body,e=document.documentElement,n=t.scrollTop||e.scrollTop,i=t.scrollLeft||e.scrollLeft;this._map._container.focus(),window.scrollTo(i,n)}},_onFocus:function(){this._focused=!0,this._map.fire("focus")},_onBlur:function(){this._focused=!1,this._map.fire("blur")},_setPanDelta:function(t){var e,n,i=this._panKeys={},o=this.keyCodes;for(e=0,n=o.left.length;e<n;e++)i[o.left[e]]=[-1*t,0];for(e=0,n=o.right.length;e<n;e++)i[o.right[e]]=[t,0];for(e=0,n=o.down.length;e<n;e++)i[o.down[e]]=[0,t];for(e=0,n=o.up.length;e<n;e++)i[o.up[e]]=[0,-1*t]},_setZoomDelta:function(t){var e,n,i=this._zoomKeys={},o=this.keyCodes;for(e=0,n=o.zoomIn.length;e<n;e++)i[o.zoomIn[e]]=t;for(e=0,n=o.zoomOut.length;e<n;e++)i[o.zoomOut[e]]=-t},_addHooks:function(){vt(document,"keydown",this._onKeyDown,this)},_removeHooks:function(){mt(document,"keydown",this._onKeyDown,this)},_onKeyDown:function(t){if(!(t.altKey||t.ctrlKey||t.metaKey)){var e,n=t.keyCode,i=this._map;if(n in this._panKeys){if(!i._panAnim||!i._panAnim._inProgress)if(e=this._panKeys[n],t.shiftKey&&(e=w(e).multiplyBy(3)),i.options.maxBounds&&(e=i._limitOffset(w(e),i.options.maxBounds)),i.options.worldCopyJump){var o=i.wrapLatLng(i.unproject(i.project(i.getCenter()).add(e)));i.panTo(o)}else i.panBy(e)}else if(n in this._zoomKeys)i.setZoom(i.getZoom()+(t.shiftKey?3:1)*this._zoomKeys[n]);else{if(27!==n||!i._popup||!i._popup.options.closeOnEscapeKey)return;i.closePopup()}kt(t)}}});Un.addInitHook("addHandler","keyboard",Xi),Un.mergeOptions({scrollWheelZoom:!0,wheelDebounceTime:40,wheelPxPerZoomLevel:60});var Qi=Qn.extend({addHooks:function(){vt(this._map._container,"wheel",this._onWheelScroll,this),this._delta=0},removeHooks:function(){mt(this._map._container,"wheel",this._onWheelScroll,this)},_onWheelScroll:function(t){var e=Lt(t),i=this._map.options.wheelDebounceTime;this._delta+=e,this._lastMousePos=this._map.mouseEventToContainerPoint(t),this._startTime||(this._startTime=+new Date);var o=Math.max(i-(+new Date-this._startTime),0);clearTimeout(this._timer),this._timer=setTimeout(n(this._performZoom,this),o),kt(t)},_performZoom:function(){var t=this._map,e=t.getZoom(),n=this._map.options.zoomSnap||0;t._stop();var i=this._delta/(4*this._map.options.wheelPxPerZoomLevel),o=4*Math.log(2/(1+Math.exp(-Math.abs(i))))/Math.LN2,r=n?Math.ceil(o/n)*n:o,s=t._limitZoom(e+(this._delta>0?r:-r))-e;this._delta=0,this._startTime=null,s&&("center"===t.options.scrollWheelZoom?t.setZoom(e+s):t.setZoomAround(this._lastMousePos,e+s))}});Un.addInitHook("addHandler","scrollWheelZoom",Qi);Un.mergeOptions({tapHold:bn.touchNative&&bn.safari&&bn.mobile,tapTolerance:15});var to=Qn.extend({addHooks:function(){vt(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){mt(this._map._container,"touchstart",this._onDown,this)},_onDown:function(t){if(clearTimeout(this._holdTimeout),1===t.touches.length){var e=t.touches[0];this._startPos=this._newPos=new b(e.clientX,e.clientY),this._holdTimeout=setTimeout(n(function(){this._cancel(),this._isTapValid()&&(vt(document,"touchend",xt),vt(document,"touchend touchcancel",this._cancelClickPrevent),this._simulateEvent("contextmenu",e))},this),600),vt(document,"touchend touchcancel contextmenu",this._cancel,this),vt(document,"touchmove",this._onMove,this)}},_cancelClickPrevent:function t(){mt(document,"touchend",xt),mt(document,"touchend touchcancel",t)},_cancel:function(){clearTimeout(this._holdTimeout),mt(document,"touchend touchcancel contextmenu",this._cancel,this),mt(document,"touchmove",this._onMove,this)},_onMove:function(t){var e=t.touches[0];this._newPos=new b(e.clientX,e.clientY)},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_simulateEvent:function(t,e){var n=new MouseEvent(t,{bubbles:!0,cancelable:!0,view:window,screenX:e.screenX,screenY:e.screenY,clientX:e.clientX,clientY:e.clientY});n._simulated=!0,e.target.dispatchEvent(n)}});Un.addInitHook("addHandler","tapHold",to),Un.mergeOptions({touchZoom:bn.touch,bounceAtZoomLimits:!0});var eo=Qn.extend({addHooks:function(){Q(this._map._container,"leaflet-touch-zoom"),vt(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){tt(this._map._container,"leaflet-touch-zoom"),mt(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(t){var e=this._map;if(t.touches&&2===t.touches.length&&!e._animatingZoom&&!this._zooming){var n=e.mouseEventToContainerPoint(t.touches[0]),i=e.mouseEventToContainerPoint(t.touches[1]);this._centerPoint=e.getSize()._divideBy(2),this._startLatLng=e.containerPointToLatLng(this._centerPoint),"center"!==e.options.touchZoom&&(this._pinchStartLatLng=e.containerPointToLatLng(n.add(i)._divideBy(2))),this._startDist=n.distanceTo(i),this._startZoom=e.getZoom(),this._moved=!1,this._zooming=!0,e._stop(),vt(document,"touchmove",this._onTouchMove,this),vt(document,"touchend touchcancel",this._onTouchEnd,this),xt(t)}},_onTouchMove:function(t){if(t.touches&&2===t.touches.length&&this._zooming){var e=this._map,i=e.mouseEventToContainerPoint(t.touches[0]),o=e.mouseEventToContainerPoint(t.touches[1]),r=i.distanceTo(o)/this._startDist;if(this._zoom=e.getScaleZoom(r,this._startZoom),!e.options.bounceAtZoomLimits&&(this._zoom<e.getMinZoom()&&r<1||this._zoom>e.getMaxZoom()&&r>1)&&(this._zoom=e._limitZoom(this._zoom)),"center"===e.options.touchZoom){if(this._center=this._startLatLng,1===r)return}else{var s=i._add(o)._divideBy(2)._subtract(this._centerPoint);if(1===r&&0===s.x&&0===s.y)return;this._center=e.unproject(e.project(this._pinchStartLatLng,this._zoom).subtract(s),this._zoom)}this._moved||(e._moveStart(!0,!1),this._moved=!0),_(this._animRequest);var a=n(e._move,e,this._center,this._zoom,{pinch:!0,round:!1},void 0);this._animRequest=m(a,this,!0),xt(t)}},_onTouchEnd:function(){if(!this._moved||!this._zooming)return void(this._zooming=!1);this._zooming=!1,_(this._animRequest),mt(document,"touchmove",this._onTouchMove,this),mt(document,"touchend touchcancel",this._onTouchEnd,this),this._map.options.zoomAnimation?this._map._animateZoom(this._center,this._map._limitZoom(this._zoom),!0,this._map.options.zoomSnap):this._map._resetView(this._center,this._map._limitZoom(this._zoom))}});Un.addInitHook("addHandler","touchZoom",eo),Un.BoxZoom=Gi,Un.DoubleClickZoom=Yi,Un.Drag=Ki,Un.Keyboard=Xi,Un.ScrollWheelZoom=Qi,Un.TapHold=to,Un.TouchZoom=eo,t.Bounds=j,t.Browser=bn,t.CRS=Se,t.Canvas=Hi,t.Circle=xi,t.CircleMarker=ji,t.Class=g,t.Control=Hn,t.DivIcon=Zi,t.DivOverlay=Bi,t.DomEvent=Rn,t.DomUtil=On,t.Draggable=ii,t.Evented=Te,t.FeatureGroup=vi,t.GeoJSON=Ti,t.GridLayer=Fi,t.Handler=Qn,t.Icon=_i,t.ImageOverlay=Ci,t.LatLng=T,t.LatLngBounds=k,t.Layer=di,t.LayerGroup=fi,t.LineUtil=oi,t.Map=Un,t.Marker=bi,t.Mixin=ei,t.Path=wi,t.Point=b,t.PolyUtil=ri,t.Polygon=zi,t.Polyline=ki,t.Popup=Ei,t.PosAnimation=Nn,t.Projection=li,t.Rectangle=$i,t.Renderer=Ui,t.SVG=Ji,t.SVGOverlay=Mi,t.TileLayer=Ri,t.Tooltip=Oi,t.Transformation=C,t.Util=ke,t.VideoOverlay=Pi,t.bind=n,t.bounds=x,t.canvas=fe,t.circle=Gt,t.circleMarker=$t,t.control=Vn,t.divIcon=ue,t.extend=e,t.featureGroup=mi,t.geoJSON=se,t.geoJson=Si,t.gridLayer=ce,t.icon=qt,t.imageOverlay=Ai,t.latLng=S,t.latLngBounds=z,t.layerGroup=pi,t.map=Ct,t.marker=Jt,t.point=w,t.polygon=Kt,t.polyline=Yt,t.popup=Ii,t.rectangle=ve,t.setOptions=c,t.stamp=i,t.svg=pe,t.svgOverlay=le,t.tileLayer=he,t.tooltip=Di,t.transformation=A,t.version="1.9.3",t.videoOverlay=ae;var no=window.L;t.noConflict=function(){return window.L=no,this},window.L=t})},rzCG:function(t,e,n){var i=n("0JQW");"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);n("rjj0")("7ba7a6be",i,!0,{})}});