@fastybird/smart-panel-admin 0.1.0-alpha.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.md +201 -0
- package/README.md +187 -0
- package/dist/assets/auth.constants-Dls_gTTx.js +1 -0
- package/dist/assets/card-add-form-C8k05jix.js +1 -0
- package/dist/assets/card-edit-form-B4Wy_x66.js +1 -0
- package/dist/assets/chunk-DECur_0Z.js +1 -0
- package/dist/assets/common-BY9Gg1EI.css +1 -0
- package/dist/assets/common-DlW3qRTQ.js +150 -0
- package/dist/assets/components-4pZvmdD8.js +1 -0
- package/dist/assets/components-BFT9ksvz.js +1 -0
- package/dist/assets/components-BGiFbtPn.css +1 -0
- package/dist/assets/components-BTNQr9V1.css +1 -0
- package/dist/assets/components-C59v4_pJ.css +1 -0
- package/dist/assets/components-CjdlFz1u.css +1 -0
- package/dist/assets/components-D8PpAJgM.js +1 -0
- package/dist/assets/components-DBRr1g1A.js +1 -0
- package/dist/assets/components-DRDcqY-d.js +1 -0
- package/dist/assets/components-DSMoiSYB.css +1 -0
- package/dist/assets/components-DlofbaXq.js +2 -0
- package/dist/assets/components-W7KcmsWr.css +1 -0
- package/dist/assets/components-o_FTQqv1.js +1 -0
- package/dist/assets/components-tvaQsmsk.js +2 -0
- package/dist/assets/composables-BTOG7VNs2.js +1 -0
- package/dist/assets/composables-CLHFuu4k.js +1 -0
- package/dist/assets/composables-COu_3hI8.js +1 -0
- package/dist/assets/composables-CU6q9-8B.js +1 -0
- package/dist/assets/composables-CjGTzpGj.js +1 -0
- package/dist/assets/composables-Cl0F9F_S.js +1 -0
- package/dist/assets/composables-CzSTR7jk.js +1 -0
- package/dist/assets/composables-DDYun9ja.js +0 -0
- package/dist/assets/composables-Da97cjje.js +1 -0
- package/dist/assets/composables-m3XA9ZFJ.js +1 -0
- package/dist/assets/dashboard-DilMazDB.js +2 -0
- package/dist/assets/dashboard.types-DHlozs9y.js +1 -0
- package/dist/assets/data-source-edit-form-mTdgdACg.js +1 -0
- package/dist/assets/drawer-Db27jij8.js +1 -0
- package/dist/assets/empty-C13Ke09q.js +1 -0
- package/dist/assets/extensions.constants-BtEcoiTe.js +1 -0
- package/dist/assets/gridstack-DrhE8fGa.css +1 -0
- package/dist/assets/gridstack.min-BC6WoZvX.js +3 -0
- package/dist/assets/icon-with-child-1Kb-D21P.css +1 -0
- package/dist/assets/icon-with-child-DmQ_XhQy.js +12 -0
- package/dist/assets/index-DU31qw7A.css +1 -0
- package/dist/assets/index-DW2Q2Ef8.js +16 -0
- package/dist/assets/input-number-BF0uWlX2.js +1 -0
- package/dist/assets/integration-config-dialog-DCF8K0UE.js +1 -0
- package/dist/assets/keys-C6Zi4a10.js +1 -0
- package/dist/assets/keys-CGGnS6tq.js +1 -0
- package/dist/assets/keys-Cm97UJHM.js +1 -0
- package/dist/assets/keys-DHSxrtbW.js +1 -0
- package/dist/assets/layout-config-Bs73Oq0w.css +1 -0
- package/dist/assets/layout-config-DkSTscYx.js +1 -0
- package/dist/assets/layout-default-LKbviw7y.js +1 -0
- package/dist/assets/layout-default-aEpEfGPk.css +1 -0
- package/dist/assets/layout-lock-Cp5xh9ot.js +1 -0
- package/dist/assets/layout-profile-ByHuBl2Y.js +1 -0
- package/dist/assets/layout-profile-wkO5hDf5.js +1 -0
- package/dist/assets/layout-sign-C8xK52Nq.js +1 -0
- package/dist/assets/layout-sign-CjJVcqWG.js +1 -0
- package/dist/assets/leaflet-src-B49UyrlR.js +1 -0
- package/dist/assets/leaflet-src.esm-YKGwaZsZ.js +1 -0
- package/dist/assets/list-data-sources-adjust-Bj-0Adap.js +1 -0
- package/dist/assets/list-data-sources-adjust-REFqavw6.css +1 -0
- package/dist/assets/list-locations-BM5Yvsew.js +1 -0
- package/dist/assets/list-users-dBZVseES.js +1 -0
- package/dist/assets/logs-entries.transformers-BRzpY2MS.js +1 -0
- package/dist/assets/marker-icon-2x-BCzqJChB.js +1 -0
- package/dist/assets/marker-icon-JzPv91fE.js +1 -0
- package/dist/assets/marker-shadow-tj6c2pB6.js +1 -0
- package/dist/assets/page-configure-1ENlHHe8.js +1 -0
- package/dist/assets/page-configure-BLho4eEA.js +1 -0
- package/dist/assets/page-configure-Bhbyv1tV.css +1 -0
- package/dist/assets/page-configure-beBdD2Qu.css +1 -0
- package/dist/assets/pages-cards.contants-B5RdaI3z.js +1 -0
- package/dist/assets/pages-tiles.constants-Day6cR-b.js +1 -0
- package/dist/assets/pagination-BN87kdDs.js +1 -0
- package/dist/assets/popover-DOg0KdzK.js +1 -0
- package/dist/assets/radio-BmI00y-5.js +1 -0
- package/dist/assets/scene-add-form-BcNSeauE.css +1 -0
- package/dist/assets/scene-add-form-DdmUnhy5.js +1 -0
- package/dist/assets/scene-edit-form-BeXK9ZM1.js +1 -0
- package/dist/assets/scene-edit-form-CDPMRZQT.css +1 -0
- package/dist/assets/select-data-source-plugin-CtXn9m8K.js +1 -0
- package/dist/assets/skeleton-DMwdgp1r.js +1 -0
- package/dist/assets/slider-YJlo4Ibo.js +1 -0
- package/dist/assets/steps-BIGbhQaO.js +1 -0
- package/dist/assets/system.exceptions-Ddzmz1RH.js +1 -0
- package/dist/assets/table-5pjI7ihN.js +1 -0
- package/dist/assets/tile-detail-COru-nDQ.js +1 -0
- package/dist/assets/tile-edit-form-jjo5FbvD.js +1 -0
- package/dist/assets/types-B8upWpl6.js +1 -0
- package/dist/assets/useBuddyChat-DREu7Tv5.js +1 -0
- package/dist/assets/useDataSources-Bx93bXrZ.js +1 -0
- package/dist/assets/useDevices-CuJhDHbf.js +1 -0
- package/dist/assets/useGeolocation-QxCQnrMH.js +2 -0
- package/dist/assets/useGeolocation-vh-t_kPv.css +1 -0
- package/dist/assets/useLocation-BM-8kEbz.js +1 -0
- package/dist/assets/usePage-DTL4RY9u.js +1 -0
- package/dist/assets/useSpaces-DnSZteHf.js +1 -0
- package/dist/assets/view-buddy-chat-DKryg2MX.js +1 -0
- package/dist/assets/view-card-add-CYZ9eXg5.js +1 -0
- package/dist/assets/view-card-edit-C5zcGDFz.js +1 -0
- package/dist/assets/view-channel-IJiMTDSG.js +1 -0
- package/dist/assets/view-channel-add-YCqERQS-.js +1 -0
- package/dist/assets/view-channel-edit-Dnct_m0O.js +1 -0
- package/dist/assets/view-channel-property-add-CoaudIGV.js +1 -0
- package/dist/assets/view-channel-property-edit-g0J-yPAY.js +1 -0
- package/dist/assets/view-channels--BS5J8Ro.js +1 -0
- package/dist/assets/view-config-module-edit-RW7YEgut.js +1 -0
- package/dist/assets/view-config-modules-Bi5Ib06n.js +1 -0
- package/dist/assets/view-config-modules-DvbJyCIK.css +1 -0
- package/dist/assets/view-config-plugin-edit-CviUNBYF.js +1 -0
- package/dist/assets/view-config-plugins-BBxIkmDq.js +1 -0
- package/dist/assets/view-config-plugins-BTCfejmZ.css +1 -0
- package/dist/assets/view-data-source-add-3vF7foLh.js +1 -0
- package/dist/assets/view-data-source-add-CNRJiOEl.js +1 -0
- package/dist/assets/view-data-source-edit-5xrflzsE.js +1 -0
- package/dist/assets/view-data-source-edit-BJeCPFQo.js +1 -0
- package/dist/assets/view-device-C6EIYm4K.js +1 -0
- package/dist/assets/view-device-DvKgjKr8.css +1 -0
- package/dist/assets/view-device-add-Dtg4hKNb.js +1 -0
- package/dist/assets/view-device-control-D14Yf_3B.js +1 -0
- package/dist/assets/view-device-edit-D3wfo1SZ.js +1 -0
- package/dist/assets/view-devices-CQyYakG6.js +1 -0
- package/dist/assets/view-display-BoDjtT_C.js +1 -0
- package/dist/assets/view-display-edit-DOBx3FR9.js +1 -0
- package/dist/assets/view-display-tokens-ylzZVdwc.js +1 -0
- package/dist/assets/view-displays-Bv-jxEGc.js +1 -0
- package/dist/assets/view-extension-detail-BAuEjk3c.js +1 -0
- package/dist/assets/view-extension-detail-BjYHp3ZH.css +1 -0
- package/dist/assets/view-extensions-xnAarDlC.js +1 -0
- package/dist/assets/view-location-BbOLMWOk.js +1 -0
- package/dist/assets/view-location-add-B3Bljsk2.js +1 -0
- package/dist/assets/view-location-edit-Csq0lDWt.js +1 -0
- package/dist/assets/view-locations-DBYp9MTj.css +1 -0
- package/dist/assets/view-locations-DF-FXbjv.js +1 -0
- package/dist/assets/view-lock-screen-ClIhVZNt.js +1 -0
- package/dist/assets/view-not-found-C0Nl0aC-.js +1 -0
- package/dist/assets/view-onboarding-vZhyo5Yl.js +1 -0
- package/dist/assets/view-page-DCmbFTnE.js +1 -0
- package/dist/assets/view-page-add-Cpzp9lXV.js +1 -0
- package/dist/assets/view-page-configure-b5zQ9PXr.js +1 -0
- package/dist/assets/view-page-configure-c8DaItoq.js +1 -0
- package/dist/assets/view-page-data-source-add-CJMzSAGm.js +1 -0
- package/dist/assets/view-page-data-source-edit-BI5AXiNz.js +1 -0
- package/dist/assets/view-page-edit-fw913SDe.js +1 -0
- package/dist/assets/view-page-plugin-BrlvGuEU.js +1 -0
- package/dist/assets/view-pages-DVvpvvkt.js +1 -0
- package/dist/assets/view-profile-general-jV0TcOZC.js +1 -0
- package/dist/assets/view-profile-security-CPgtYKl1.js +1 -0
- package/dist/assets/view-scene-add-CT1MOXtu.js +1 -0
- package/dist/assets/view-scene-edit-4B1IzMuu.js +1 -0
- package/dist/assets/view-scenes-DoDkd08z.js +1 -0
- package/dist/assets/view-sign-in-CC7zlx9Q.js +1 -0
- package/dist/assets/view-sign-up-B1l4jvOx.js +1 -0
- package/dist/assets/view-space-VnVbkvKT.js +1 -0
- package/dist/assets/view-space-add-DwONNuir.js +1 -0
- package/dist/assets/view-space-edit-44iZOBav.js +1 -0
- package/dist/assets/view-spaces-CuuMx0iT.js +1 -0
- package/dist/assets/view-spaces-onboarding-CN6qrfN6.js +1 -0
- package/dist/assets/view-stats-F8sYkha0.js +1 -0
- package/dist/assets/view-system-info-AVyQIUWe.js +1 -0
- package/dist/assets/view-system-log-detail-sgFgbNjX.js +1 -0
- package/dist/assets/view-system-logs-eIoNhI5c.js +1 -0
- package/dist/assets/view-tile-add-B7mnK_PA.js +1 -0
- package/dist/assets/view-tile-add-Yt_KOkky.js +1 -0
- package/dist/assets/view-tile-data-source-add-DxaZd4Dp.js +1 -0
- package/dist/assets/view-tile-data-source-edit-jzGg3dBQ.js +1 -0
- package/dist/assets/view-tile-edit-b2LCLrB5.js +1 -0
- package/dist/assets/view-tile-edit-hbO-vs_Y.js +1 -0
- package/dist/assets/view-tile-edit-kHjMhT9e.js +1 -0
- package/dist/assets/view-tile-t4cTwgz2.js +1 -0
- package/dist/assets/view-user-add-CdlbezB7.js +1 -0
- package/dist/assets/view-user-edit-S0Up49jC.js +1 -0
- package/dist/assets/view-users-B-m50sCU.js +1 -0
- package/dist/assets/vue-meta.esm-browser.min-3_YV25pX.js +1 -0
- package/dist/assets/weather-751GlpD1.js +2 -0
- package/dist/assets/weather-BKeryvnv.css +1 -0
- package/dist/assets/weather-forecast.transformers-CxZiOJKt.js +1 -0
- package/dist/assets/weather-icon-CkuFNv0P.js +1 -0
- package/dist/favicon.ico +0 -0
- package/dist/index.html +93 -0
- package/package.json +155 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e=`1.9.4`;function t(e){var t,n,r,i;for(n=1,r=arguments.length;n<r;n++)for(t in i=arguments[n],i)e[t]=i[t];return e}var n=Object.create||(function(){function e(){}return function(t){return e.prototype=t,new e}})();function r(e,t){var n=Array.prototype.slice;if(e.bind)return e.bind.apply(e,n.call(arguments,1));var r=n.call(arguments,2);return function(){return e.apply(t,r.length?r.concat(n.call(arguments)):arguments)}}var i=0;function a(e){return`_leaflet_id`in e||(e._leaflet_id=++i),e._leaflet_id}function o(e,t,n){var r,i,a,o=function(){r=!1,i&&=(a.apply(n,i),!1)};return a=function(){r?i=arguments:(e.apply(n,arguments),setTimeout(o,t),r=!0)},a}function s(e,t,n){var r=t[1],i=t[0],a=r-i;return e===r&&n?e:((e-i)%a+a)%a+i}function c(){return!1}function l(e,t){if(t===!1)return e;var n=10**(t===void 0?6:t);return Math.round(e*n)/n}function u(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,``)}function d(e){return u(e).split(/\s+/)}function f(e,t){for(var r in Object.prototype.hasOwnProperty.call(e,`options`)||(e.options=e.options?n(e.options):{}),t)e.options[r]=t[r];return e.options}function p(e,t,n){var r=[];for(var i in e)r.push(encodeURIComponent(n?i.toUpperCase():i)+`=`+encodeURIComponent(e[i]));return(!t||t.indexOf(`?`)===-1?`?`:`&`)+r.join(`&`)}var m=/\{ *([\w_ -]+) *\}/g;function h(e,t){return e.replace(m,function(e,n){var r=t[n];if(r===void 0)throw Error(`No value provided for variable `+e);return typeof r==`function`&&(r=r(t)),r})}var g=Array.isArray||function(e){return Object.prototype.toString.call(e)===`[object Array]`};function ee(e,t){for(var n=0;n<e.length;n++)if(e[n]===t)return n;return-1}var te=`data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=`;function ne(e){return window[`webkit`+e]||window[`moz`+e]||window[`ms`+e]}var re=0;function ie(e){var t=+new Date,n=Math.max(0,16-(t-re));return re=t+n,window.setTimeout(e,n)}var ae=window.requestAnimationFrame||ne(`RequestAnimationFrame`)||ie,oe=window.cancelAnimationFrame||ne(`CancelAnimationFrame`)||ne(`CancelRequestAnimationFrame`)||function(e){window.clearTimeout(e)};function _(e,t,n){if(n&&ae===ie)e.call(t);else return ae.call(window,r(e,t))}function v(e){e&&oe.call(window,e)}var se={__proto__:null,extend:t,create:n,bind:r,get lastId(){return i},stamp:a,throttle:o,wrapNum:s,falseFn:c,formatNum:l,trim:u,splitWords:d,setOptions:f,getParamString:p,template:h,isArray:g,indexOf:ee,emptyImageUrl:te,requestFn:ae,cancelFn:oe,requestAnimFrame:_,cancelAnimFrame:v};function y(){}y.extend=function(e){var r=function(){f(this),this.initialize&&this.initialize.apply(this,arguments),this.callInitHooks()},i=r.__super__=this.prototype,a=n(i);for(var o in a.constructor=r,r.prototype=a,this)Object.prototype.hasOwnProperty.call(this,o)&&o!==`prototype`&&o!==`__super__`&&(r[o]=this[o]);return e.statics&&t(r,e.statics),e.includes&&(ce(e.includes),t.apply(null,[a].concat(e.includes))),t(a,e),delete a.statics,delete a.includes,a.options&&(a.options=i.options?n(i.options):{},t(a.options,e.options)),a._initHooks=[],a.callInitHooks=function(){if(!this._initHooksCalled){i.callInitHooks&&i.callInitHooks.call(this),this._initHooksCalled=!0;for(var e=0,t=a._initHooks.length;e<t;e++)a._initHooks[e].call(this)}},r},y.include=function(e){var n=this.prototype.options;return t(this.prototype,e),e.options&&(this.prototype.options=n,this.mergeOptions(e.options)),this},y.mergeOptions=function(e){return t(this.prototype.options,e),this},y.addInitHook=function(e){var t=Array.prototype.slice.call(arguments,1),n=typeof e==`function`?e:function(){this[e].apply(this,t)};return this.prototype._initHooks=this.prototype._initHooks||[],this.prototype._initHooks.push(n),this};function ce(e){if(!(typeof L>`u`||!L||!L.Mixin)){e=g(e)?e:[e];for(var t=0;t<e.length;t++)e[t]===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.`,Error().stack)}}var b={on:function(e,t,n){if(typeof e==`object`)for(var r in e)this._on(r,e[r],t);else{e=d(e);for(var i=0,a=e.length;i<a;i++)this._on(e[i],t,n)}return this},off:function(e,t,n){if(!arguments.length)delete this._events;else if(typeof e==`object`)for(var r in e)this._off(r,e[r],t);else{e=d(e);for(var i=arguments.length===1,a=0,o=e.length;a<o;a++)i?this._off(e[a]):this._off(e[a],t,n)}return this},_on:function(e,t,n,r){if(typeof t!=`function`){console.warn(`wrong listener type: `+typeof t);return}if(this._listens(e,t,n)===!1){n===this&&(n=void 0);var i={fn:t,ctx:n};r&&(i.once=!0),this._events=this._events||{},this._events[e]=this._events[e]||[],this._events[e].push(i)}},_off:function(e,t,n){var r,i,a;if(this._events&&(r=this._events[e],r)){if(arguments.length===1){if(this._firingCount)for(i=0,a=r.length;i<a;i++)r[i].fn=c;delete this._events[e];return}if(typeof t!=`function`){console.warn(`wrong listener type: `+typeof t);return}var o=this._listens(e,t,n);if(o!==!1){var s=r[o];this._firingCount&&(s.fn=c,this._events[e]=r=r.slice()),r.splice(o,1)}}},fire:function(e,n,r){if(!this.listens(e,r))return this;var i=t({},n,{type:e,target:this,sourceTarget:n&&n.sourceTarget||this});if(this._events){var a=this._events[e];if(a){this._firingCount=this._firingCount+1||1;for(var o=0,s=a.length;o<s;o++){var c=a[o],l=c.fn;c.once&&this.off(e,l,c.ctx),l.call(c.ctx||this,i)}this._firingCount--}}return r&&this._propagateEvent(i),this},listens:function(e,t,n,r){typeof e!=`string`&&console.warn(`"string" type argument expected`);var i=t;typeof t!=`function`&&(r=!!t,i=void 0,n=void 0);var a=this._events&&this._events[e];if(a&&a.length&&this._listens(e,i,n)!==!1)return!0;if(r){for(var o in this._eventParents)if(this._eventParents[o].listens(e,t,n,r))return!0}return!1},_listens:function(e,t,n){if(!this._events)return!1;var r=this._events[e]||[];if(!t)return!!r.length;n===this&&(n=void 0);for(var i=0,a=r.length;i<a;i++)if(r[i].fn===t&&r[i].ctx===n)return i;return!1},once:function(e,t,n){if(typeof e==`object`)for(var r in e)this._on(r,e[r],t,!0);else{e=d(e);for(var i=0,a=e.length;i<a;i++)this._on(e[i],t,n,!0)}return this},addEventParent:function(e){return this._eventParents=this._eventParents||{},this._eventParents[a(e)]=e,this},removeEventParent:function(e){return this._eventParents&&delete this._eventParents[a(e)],this},_propagateEvent:function(e){for(var n in this._eventParents)this._eventParents[n].fire(e.type,t({layer:e.target,propagatedFrom:e.target},e),!0)}};b.addEventListener=b.on,b.removeEventListener=b.clearAllEventListeners=b.off,b.addOneTimeEventListener=b.once,b.fireEvent=b.fire,b.hasEventListeners=b.listens;var le=y.extend(b);function x(e,t,n){this.x=n?Math.round(e):e,this.y=n?Math.round(t):t}var ue=Math.trunc||function(e){return e>0?Math.floor(e):Math.ceil(e)};x.prototype={clone:function(){return new x(this.x,this.y)},add:function(e){return this.clone()._add(S(e))},_add:function(e){return this.x+=e.x,this.y+=e.y,this},subtract:function(e){return this.clone()._subtract(S(e))},_subtract:function(e){return this.x-=e.x,this.y-=e.y,this},divideBy:function(e){return this.clone()._divideBy(e)},_divideBy:function(e){return this.x/=e,this.y/=e,this},multiplyBy:function(e){return this.clone()._multiplyBy(e)},_multiplyBy:function(e){return this.x*=e,this.y*=e,this},scaleBy:function(e){return new x(this.x*e.x,this.y*e.y)},unscaleBy:function(e){return new x(this.x/e.x,this.y/e.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=ue(this.x),this.y=ue(this.y),this},distanceTo:function(e){e=S(e);var t=e.x-this.x,n=e.y-this.y;return Math.sqrt(t*t+n*n)},equals:function(e){return e=S(e),e.x===this.x&&e.y===this.y},contains:function(e){return e=S(e),Math.abs(e.x)<=Math.abs(this.x)&&Math.abs(e.y)<=Math.abs(this.y)},toString:function(){return`Point(`+l(this.x)+`, `+l(this.y)+`)`}};function S(e,t,n){return e instanceof x?e:g(e)?new x(e[0],e[1]):e==null?e:typeof e==`object`&&`x`in e&&`y`in e?new x(e.x,e.y):new x(e,t,n)}function C(e,t){if(e)for(var n=t?[e,t]:e,r=0,i=n.length;r<i;r++)this.extend(n[r])}C.prototype={extend:function(e){var t,n;if(!e)return this;if(e instanceof x||typeof e[0]==`number`||`x`in e)t=n=S(e);else if(e=w(e),t=e.min,n=e.max,!t||!n)return this;return!this.min&&!this.max?(this.min=t.clone(),this.max=n.clone()):(this.min.x=Math.min(t.x,this.min.x),this.max.x=Math.max(n.x,this.max.x),this.min.y=Math.min(t.y,this.min.y),this.max.y=Math.max(n.y,this.max.y)),this},getCenter:function(e){return S((this.min.x+this.max.x)/2,(this.min.y+this.max.y)/2,e)},getBottomLeft:function(){return S(this.min.x,this.max.y)},getTopRight:function(){return S(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(e){var t,n;return e=typeof e[0]==`number`||e instanceof x?S(e):w(e),e instanceof C?(t=e.min,n=e.max):t=n=e,t.x>=this.min.x&&n.x<=this.max.x&&t.y>=this.min.y&&n.y<=this.max.y},intersects:function(e){e=w(e);var t=this.min,n=this.max,r=e.min,i=e.max,a=i.x>=t.x&&r.x<=n.x,o=i.y>=t.y&&r.y<=n.y;return a&&o},overlaps:function(e){e=w(e);var t=this.min,n=this.max,r=e.min,i=e.max,a=i.x>t.x&&r.x<n.x,o=i.y>t.y&&r.y<n.y;return a&&o},isValid:function(){return!!(this.min&&this.max)},pad:function(e){var t=this.min,n=this.max,r=Math.abs(t.x-n.x)*e,i=Math.abs(t.y-n.y)*e;return w(S(t.x-r,t.y-i),S(n.x+r,n.y+i))},equals:function(e){return e?(e=w(e),this.min.equals(e.getTopLeft())&&this.max.equals(e.getBottomRight())):!1}};function w(e,t){return!e||e instanceof C?e:new C(e,t)}function T(e,t){if(e)for(var n=t?[e,t]:e,r=0,i=n.length;r<i;r++)this.extend(n[r])}T.prototype={extend:function(e){var t=this._southWest,n=this._northEast,r,i;if(e instanceof D)r=e,i=e;else if(e instanceof T){if(r=e._southWest,i=e._northEast,!r||!i)return this}else return e?this.extend(O(e)||E(e)):this;return!t&&!n?(this._southWest=new D(r.lat,r.lng),this._northEast=new D(i.lat,i.lng)):(t.lat=Math.min(r.lat,t.lat),t.lng=Math.min(r.lng,t.lng),n.lat=Math.max(i.lat,n.lat),n.lng=Math.max(i.lng,n.lng)),this},pad:function(e){var t=this._southWest,n=this._northEast,r=Math.abs(t.lat-n.lat)*e,i=Math.abs(t.lng-n.lng)*e;return new T(new D(t.lat-r,t.lng-i),new D(n.lat+r,n.lng+i))},getCenter:function(){return new D((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 D(this.getNorth(),this.getWest())},getSouthEast:function(){return new D(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(e){e=typeof e[0]==`number`||e instanceof D||`lat`in e?O(e):E(e);var t=this._southWest,n=this._northEast,r,i;return e instanceof T?(r=e.getSouthWest(),i=e.getNorthEast()):r=i=e,r.lat>=t.lat&&i.lat<=n.lat&&r.lng>=t.lng&&i.lng<=n.lng},intersects:function(e){e=E(e);var t=this._southWest,n=this._northEast,r=e.getSouthWest(),i=e.getNorthEast(),a=i.lat>=t.lat&&r.lat<=n.lat,o=i.lng>=t.lng&&r.lng<=n.lng;return a&&o},overlaps:function(e){e=E(e);var t=this._southWest,n=this._northEast,r=e.getSouthWest(),i=e.getNorthEast(),a=i.lat>t.lat&&r.lat<n.lat,o=i.lng>t.lng&&r.lng<n.lng;return a&&o},toBBoxString:function(){return[this.getWest(),this.getSouth(),this.getEast(),this.getNorth()].join(`,`)},equals:function(e,t){return e?(e=E(e),this._southWest.equals(e.getSouthWest(),t)&&this._northEast.equals(e.getNorthEast(),t)):!1},isValid:function(){return!!(this._southWest&&this._northEast)}};function E(e,t){return e instanceof T?e:new T(e,t)}function D(e,t,n){if(isNaN(e)||isNaN(t))throw Error(`Invalid LatLng object: (`+e+`, `+t+`)`);this.lat=+e,this.lng=+t,n!==void 0&&(this.alt=+n)}D.prototype={equals:function(e,t){return e?(e=O(e),Math.max(Math.abs(this.lat-e.lat),Math.abs(this.lng-e.lng))<=(t===void 0?1e-9:t)):!1},toString:function(e){return`LatLng(`+l(this.lat,e)+`, `+l(this.lng,e)+`)`},distanceTo:function(e){return de.distance(this,O(e))},wrap:function(){return de.wrapLatLng(this)},toBounds:function(e){var t=180*e/40075017,n=t/Math.cos(Math.PI/180*this.lat);return E([this.lat-t,this.lng-n],[this.lat+t,this.lng+n])},clone:function(){return new D(this.lat,this.lng,this.alt)}};function O(e,t,n){return e instanceof D?e:g(e)&&typeof e[0]!=`object`?e.length===3?new D(e[0],e[1],e[2]):e.length===2?new D(e[0],e[1]):null:e==null?e:typeof e==`object`&&`lat`in e?new D(e.lat,`lng`in e?e.lng:e.lon,e.alt):t===void 0?null:new D(e,t,n)}var k={latLngToPoint:function(e,t){var n=this.projection.project(e),r=this.scale(t);return this.transformation._transform(n,r)},pointToLatLng:function(e,t){var n=this.scale(t),r=this.transformation.untransform(e,n);return this.projection.unproject(r)},project:function(e){return this.projection.project(e)},unproject:function(e){return this.projection.unproject(e)},scale:function(e){return 256*2**e},zoom:function(e){return Math.log(e/256)/Math.LN2},getProjectedBounds:function(e){if(this.infinite)return null;var t=this.projection.bounds,n=this.scale(e);return new C(this.transformation.transform(t.min,n),this.transformation.transform(t.max,n))},infinite:!1,wrapLatLng:function(e){var t=this.wrapLng?s(e.lng,this.wrapLng,!0):e.lng,n=this.wrapLat?s(e.lat,this.wrapLat,!0):e.lat,r=e.alt;return new D(n,t,r)},wrapLatLngBounds:function(e){var t=e.getCenter(),n=this.wrapLatLng(t),r=t.lat-n.lat,i=t.lng-n.lng;if(r===0&&i===0)return e;var a=e.getSouthWest(),o=e.getNorthEast();return new T(new D(a.lat-r,a.lng-i),new D(o.lat-r,o.lng-i))}},de=t({},k,{wrapLng:[-180,180],R:6371e3,distance:function(e,t){var n=Math.PI/180,r=e.lat*n,i=t.lat*n,a=Math.sin((t.lat-e.lat)*n/2),o=Math.sin((t.lng-e.lng)*n/2),s=a*a+Math.cos(r)*Math.cos(i)*o*o,c=2*Math.atan2(Math.sqrt(s),Math.sqrt(1-s));return this.R*c}}),fe=6378137,pe={R:fe,MAX_LATITUDE:85.0511287798,project:function(e){var t=Math.PI/180,n=this.MAX_LATITUDE,r=Math.max(Math.min(n,e.lat),-n),i=Math.sin(r*t);return new x(this.R*e.lng*t,this.R*Math.log((1+i)/(1-i))/2)},unproject:function(e){var t=180/Math.PI;return new D((2*Math.atan(Math.exp(e.y/this.R))-Math.PI/2)*t,e.x*t/this.R)},bounds:(function(){var e=fe*Math.PI;return new C([-e,-e],[e,e])})()};function me(e,t,n,r){if(g(e)){this._a=e[0],this._b=e[1],this._c=e[2],this._d=e[3];return}this._a=e,this._b=t,this._c=n,this._d=r}me.prototype={transform:function(e,t){return this._transform(e.clone(),t)},_transform:function(e,t){return t||=1,e.x=t*(this._a*e.x+this._b),e.y=t*(this._c*e.y+this._d),e},untransform:function(e,t){return t||=1,new x((e.x/t-this._b)/this._a,(e.y/t-this._d)/this._c)}};function he(e,t,n,r){return new me(e,t,n,r)}var ge=t({},de,{code:`EPSG:3857`,projection:pe,transformation:function(){var e=.5/(Math.PI*pe.R);return he(e,.5,-e,.5)}()}),_e=t({},ge,{code:`EPSG:900913`});function ve(e){return document.createElementNS(`http://www.w3.org/2000/svg`,e)}function ye(e,t){var n=``,r,i,a,o,s,c;for(r=0,a=e.length;r<a;r++){for(s=e[r],i=0,o=s.length;i<o;i++)c=s[i],n+=(i?`L`:`M`)+c.x+` `+c.y;n+=t?j.svg?`z`:`x`:``}return n||`M0 0`}var be=document.documentElement.style,xe=`ActiveXObject`in window,Se=xe&&!document.addEventListener,Ce=`msLaunchUri`in navigator&&!(`documentMode`in document),we=A(`webkit`),Te=A(`android`),Ee=A(`android 2`)||A(`android 3`),De=parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1],10),Oe=Te&&A(`Google`)&&De<537&&!(`AudioNode`in window),ke=!!window.opera,Ae=!Ce&&A(`chrome`),je=A(`gecko`)&&!we&&!ke&&!xe,Me=!Ae&&A(`safari`),Ne=A(`phantom`),Pe=`OTransition`in be,Fe=navigator.platform.indexOf(`Win`)===0,Ie=xe&&`transition`in be,Le=`WebKitCSSMatrix`in window&&`m11`in new window.WebKitCSSMatrix&&!Ee,Re=`MozPerspective`in be,ze=!window.L_DISABLE_3D&&(Ie||Le||Re)&&!Pe&&!Ne,Be=typeof orientation<`u`||A(`mobile`),Ve=Be&&we,He=Be&&Le,Ue=!window.PointerEvent&&window.MSPointerEvent,We=!!(window.PointerEvent||Ue),Ge=`ontouchstart`in window||!!window.TouchEvent,Ke=!window.L_NO_TOUCH&&(Ge||We),qe=Be&&ke,Je=Be&&je,Ye=(window.devicePixelRatio||window.screen.deviceXDPI/window.screen.logicalXDPI)>1,Xe=function(){var e=!1;try{var t=Object.defineProperty({},`passive`,{get:function(){e=!0}});window.addEventListener(`testPassiveEventSupport`,c,t),window.removeEventListener(`testPassiveEventSupport`,c,t)}catch{}return e}(),Ze=function(){return!!document.createElement(`canvas`).getContext}(),Qe=!!(document.createElementNS&&ve(`svg`).createSVGRect),$e=!!Qe&&(function(){var e=document.createElement(`div`);return e.innerHTML=`<svg/>`,(e.firstChild&&e.firstChild.namespaceURI)===`http://www.w3.org/2000/svg`})(),et=!Qe&&function(){try{var e=document.createElement(`div`);e.innerHTML=`<v:shape adj="1"/>`;var t=e.firstChild;return t.style.behavior=`url(#default#VML)`,t&&typeof t.adj==`object`}catch{return!1}}(),tt=navigator.platform.indexOf(`Mac`)===0,nt=navigator.platform.indexOf(`Linux`)===0;function A(e){return navigator.userAgent.toLowerCase().indexOf(e)>=0}var j={ie:xe,ielt9:Se,edge:Ce,webkit:we,android:Te,android23:Ee,androidStock:Oe,opera:ke,chrome:Ae,gecko:je,safari:Me,phantom:Ne,opera12:Pe,win:Fe,ie3d:Ie,webkit3d:Le,gecko3d:Re,any3d:ze,mobile:Be,mobileWebkit:Ve,mobileWebkit3d:He,msPointer:Ue,pointer:We,touch:Ke,touchNative:Ge,mobileOpera:qe,mobileGecko:Je,retina:Ye,passiveEvents:Xe,canvas:Ze,svg:Qe,vml:et,inlineSvg:$e,mac:tt,linux:nt},rt=j.msPointer?`MSPointerDown`:`pointerdown`,it=j.msPointer?`MSPointerMove`:`pointermove`,at=j.msPointer?`MSPointerUp`:`pointerup`,ot=j.msPointer?`MSPointerCancel`:`pointercancel`,st={touchstart:rt,touchmove:it,touchend:at,touchcancel:ot},ct={touchstart:vt,touchmove:_t,touchend:_t,touchcancel:_t},lt={},ut=!1;function dt(e,t,n){return t===`touchstart`&>(),ct[t]?(n=ct[t].bind(this,n),e.addEventListener(st[t],n,!1),n):(console.warn(`wrong event specified:`,t),c)}function ft(e,t,n){if(!st[t]){console.warn(`wrong event specified:`,t);return}e.removeEventListener(st[t],n,!1)}function pt(e){lt[e.pointerId]=e}function mt(e){lt[e.pointerId]&&(lt[e.pointerId]=e)}function ht(e){delete lt[e.pointerId]}function gt(){ut||=(document.addEventListener(rt,pt,!0),document.addEventListener(it,mt,!0),document.addEventListener(at,ht,!0),document.addEventListener(ot,ht,!0),!0)}function _t(e,t){if(t.pointerType!==(t.MSPOINTER_TYPE_MOUSE||`mouse`)){for(var n in t.touches=[],lt)t.touches.push(lt[n]);t.changedTouches=[t],e(t)}}function vt(e,t){t.MSPOINTER_TYPE_TOUCH&&t.pointerType===t.MSPOINTER_TYPE_TOUCH&&H(t),_t(e,t)}function yt(e){var t={},n,r;for(r in e)n=e[r],t[r]=n&&n.bind?n.bind(e):n;return e=t,t.type=`dblclick`,t.detail=2,t.isTrusted=!1,t._simulated=!0,t}var bt=200;function xt(e,t){e.addEventListener(`dblclick`,t);var n=0,r;function i(e){if(e.detail!==1){r=e.detail;return}if(!(e.pointerType===`mouse`||e.sourceCapabilities&&!e.sourceCapabilities.firesTouchEvents)){var i=on(e);if(!(i.some(function(e){return e instanceof HTMLLabelElement&&e.attributes.for})&&!i.some(function(e){return e instanceof HTMLInputElement||e instanceof HTMLSelectElement}))){var a=Date.now();a-n<=bt?(r++,r===2&&t(yt(e))):r=1,n=a}}}return e.addEventListener(`click`,i),{dblclick:t,simDblclick:i}}function St(e,t){e.removeEventListener(`dblclick`,t.dblclick),e.removeEventListener(`click`,t.simDblclick)}var Ct=Ft([`transform`,`webkitTransform`,`OTransform`,`MozTransform`,`msTransform`]),wt=Ft([`webkitTransition`,`transition`,`OTransition`,`MozTransition`,`msTransition`]),Tt=wt===`webkitTransition`||wt===`OTransition`?wt+`End`:`transitionend`;function Et(e){return typeof e==`string`?document.getElementById(e):e}function Dt(e,t){var n=e.style[t]||e.currentStyle&&e.currentStyle[t];if((!n||n===`auto`)&&document.defaultView){var r=document.defaultView.getComputedStyle(e,null);n=r?r[t]:null}return n===`auto`?null:n}function M(e,t,n){var r=document.createElement(e);return r.className=t||``,n&&n.appendChild(r),r}function N(e){var t=e.parentNode;t&&t.removeChild(e)}function Ot(e){for(;e.firstChild;)e.removeChild(e.firstChild)}function kt(e){var t=e.parentNode;t&&t.lastChild!==e&&t.appendChild(e)}function At(e){var t=e.parentNode;t&&t.firstChild!==e&&t.insertBefore(e,t.firstChild)}function jt(e,t){if(e.classList!==void 0)return e.classList.contains(t);var n=Nt(e);return n.length>0&&RegExp(`(^|\\s)`+t+`(\\s|$)`).test(n)}function P(e,t){if(e.classList!==void 0)for(var n=d(t),r=0,i=n.length;r<i;r++)e.classList.add(n[r]);else if(!jt(e,t)){var a=Nt(e);Mt(e,(a?a+` `:``)+t)}}function F(e,t){e.classList===void 0?Mt(e,u((` `+Nt(e)+` `).replace(` `+t+` `,` `))):e.classList.remove(t)}function Mt(e,t){e.className.baseVal===void 0?e.className=t:e.className.baseVal=t}function Nt(e){return e.correspondingElement&&(e=e.correspondingElement),e.className.baseVal===void 0?e.className:e.className.baseVal}function I(e,t){`opacity`in e.style?e.style.opacity=t:`filter`in e.style&&Pt(e,t)}function Pt(e,t){var n=!1,r=`DXImageTransform.Microsoft.Alpha`;try{n=e.filters.item(r)}catch{if(t===1)return}t=Math.round(t*100),n?(n.Enabled=t!==100,n.Opacity=t):e.style.filter+=` progid:`+r+`(opacity=`+t+`)`}function Ft(e){for(var t=document.documentElement.style,n=0;n<e.length;n++)if(e[n]in t)return e[n];return!1}function It(e,t,n){var r=t||new x(0,0);e.style[Ct]=(j.ie3d?`translate(`+r.x+`px,`+r.y+`px)`:`translate3d(`+r.x+`px,`+r.y+`px,0)`)+(n?` scale(`+n+`)`:``)}function R(e,t){e._leaflet_pos=t,j.any3d?It(e,t):(e.style.left=t.x+`px`,e.style.top=t.y+`px`)}function Lt(e){return e._leaflet_pos||new x(0,0)}var Rt,zt,Bt;if(`onselectstart`in document)Rt=function(){z(window,`selectstart`,H)},zt=function(){V(window,`selectstart`,H)};else{var Vt=Ft([`userSelect`,`WebkitUserSelect`,`OUserSelect`,`MozUserSelect`,`msUserSelect`]);Rt=function(){if(Vt){var e=document.documentElement.style;Bt=e[Vt],e[Vt]=`none`}},zt=function(){Vt&&(document.documentElement.style[Vt]=Bt,Bt=void 0)}}function Ht(){z(window,`dragstart`,H)}function Ut(){V(window,`dragstart`,H)}var Wt,Gt;function Kt(e){for(;e.tabIndex===-1;)e=e.parentNode;e.style&&(qt(),Wt=e,Gt=e.style.outlineStyle,e.style.outlineStyle=`none`,z(window,`keydown`,qt))}function qt(){Wt&&(Wt.style.outlineStyle=Gt,Wt=void 0,Gt=void 0,V(window,`keydown`,qt))}function Jt(e){do e=e.parentNode;while((!e.offsetWidth||!e.offsetHeight)&&e!==document.body);return e}function Yt(e){var t=e.getBoundingClientRect();return{x:t.width/e.offsetWidth||1,y:t.height/e.offsetHeight||1,boundingClientRect:t}}var Xt={__proto__:null,TRANSFORM:Ct,TRANSITION:wt,TRANSITION_END:Tt,get:Et,getStyle:Dt,create:M,remove:N,empty:Ot,toFront:kt,toBack:At,hasClass:jt,addClass:P,removeClass:F,setClass:Mt,getClass:Nt,setOpacity:I,testProp:Ft,setTransform:It,setPosition:R,getPosition:Lt,get disableTextSelection(){return Rt},get enableTextSelection(){return zt},disableImageDrag:Ht,enableImageDrag:Ut,preventOutline:Kt,restoreOutline:qt,getSizedParentNode:Jt,getScale:Yt};function z(e,t,n,r){if(t&&typeof t==`object`)for(var i in t)$t(e,i,t[i],n);else{t=d(t);for(var a=0,o=t.length;a<o;a++)$t(e,t[a],n,r)}return this}var B=`_leaflet_events`;function V(e,t,n,r){if(arguments.length===1)Zt(e),delete e[B];else if(t&&typeof t==`object`)for(var i in t)en(e,i,t[i],n);else if(t=d(t),arguments.length===2)Zt(e,function(e){return ee(t,e)!==-1});else for(var a=0,o=t.length;a<o;a++)en(e,t[a],n,r);return this}function Zt(e,t){for(var n in e[B]){var r=n.split(/\d/)[0];(!t||t(r))&&en(e,r,null,null,n)}}var Qt={mouseenter:`mouseover`,mouseleave:`mouseout`,wheel:!(`onwheel`in window)&&`mousewheel`};function $t(e,t,n,r){var i=t+a(n)+(r?`_`+a(r):``);if(e[B]&&e[B][i])return this;var o=function(t){return n.call(r||e,t||window.event)},s=o;!j.touchNative&&j.pointer&&t.indexOf(`touch`)===0?o=dt(e,t,o):j.touch&&t===`dblclick`?o=xt(e,o):`addEventListener`in e?t===`touchstart`||t===`touchmove`||t===`wheel`||t===`mousewheel`?e.addEventListener(Qt[t]||t,o,j.passiveEvents?{passive:!1}:!1):t===`mouseenter`||t===`mouseleave`?(o=function(t){t||=window.event,un(e,t)&&s(t)},e.addEventListener(Qt[t],o,!1)):e.addEventListener(t,s,!1):e.attachEvent(`on`+t,o),e[B]=e[B]||{},e[B][i]=o}function en(e,t,n,r,i){i||=t+a(n)+(r?`_`+a(r):``);var o=e[B]&&e[B][i];if(!o)return this;!j.touchNative&&j.pointer&&t.indexOf(`touch`)===0?ft(e,t,o):j.touch&&t===`dblclick`?St(e,o):`removeEventListener`in e?e.removeEventListener(Qt[t]||t,o,!1):e.detachEvent(`on`+t,o),e[B][i]=null}function tn(e){return e.stopPropagation?e.stopPropagation():e.originalEvent?e.originalEvent._stopped=!0:e.cancelBubble=!0,this}function nn(e){return $t(e,`wheel`,tn),this}function rn(e){return z(e,`mousedown touchstart dblclick contextmenu`,tn),e._leaflet_disable_click=!0,this}function H(e){return e.preventDefault?e.preventDefault():e.returnValue=!1,this}function an(e){return H(e),tn(e),this}function on(e){if(e.composedPath)return e.composedPath();for(var t=[],n=e.target;n;)t.push(n),n=n.parentNode;return t}function sn(e,t){if(!t)return new x(e.clientX,e.clientY);var n=Yt(t),r=n.boundingClientRect;return new x((e.clientX-r.left)/n.x-t.clientLeft,(e.clientY-r.top)/n.y-t.clientTop)}var cn=j.linux&&j.chrome?window.devicePixelRatio:j.mac?window.devicePixelRatio*3:window.devicePixelRatio>0?2*window.devicePixelRatio:1;function ln(e){return j.edge?e.wheelDeltaY/2:e.deltaY&&e.deltaMode===0?-e.deltaY/cn:e.deltaY&&e.deltaMode===1?-e.deltaY*20:e.deltaY&&e.deltaMode===2?-e.deltaY*60:e.deltaX||e.deltaZ?0:e.wheelDelta?(e.wheelDeltaY||e.wheelDelta)/2:e.detail&&Math.abs(e.detail)<32765?-e.detail*20:e.detail?e.detail/-32765*60:0}function un(e,t){var n=t.relatedTarget;if(!n)return!0;try{for(;n&&n!==e;)n=n.parentNode}catch{return!1}return n!==e}var dn={__proto__:null,on:z,off:V,stopPropagation:tn,disableScrollPropagation:nn,disableClickPropagation:rn,preventDefault:H,stop:an,getPropagationPath:on,getMousePosition:sn,getWheelDelta:ln,isExternalTarget:un,addListener:z,removeListener:V},fn=le.extend({run:function(e,t,n,r){this.stop(),this._el=e,this._inProgress=!0,this._duration=n||.25,this._easeOutPower=1/Math.max(r||.5,.2),this._startPos=Lt(e),this._offset=t.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=_(this._animate,this),this._step()},_step:function(e){var t=+new Date-this._startTime,n=this._duration*1e3;t<n?this._runFrame(this._easeOut(t/n),e):(this._runFrame(1),this._complete())},_runFrame:function(e,t){var n=this._startPos.add(this._offset.multiplyBy(e));t&&n._round(),R(this._el,n),this.fire(`step`)},_complete:function(){v(this._animId),this._inProgress=!1,this.fire(`end`)},_easeOut:function(e){return 1-(1-e)**this._easeOutPower}}),U=le.extend({options:{crs:ge,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(e,t){t=f(this,t),this._handlers=[],this._layers={},this._zoomBoundLayers={},this._sizeChanged=!0,this._initContainer(e),this._initLayout(),this._onResize=r(this._onResize,this),this._initEvents(),t.maxBounds&&this.setMaxBounds(t.maxBounds),t.zoom!==void 0&&(this._zoom=this._limitZoom(t.zoom)),t.center&&t.zoom!==void 0&&this.setView(O(t.center),t.zoom,{reset:!0}),this.callInitHooks(),this._zoomAnimated=wt&&j.any3d&&!j.mobileOpera&&this.options.zoomAnimation,this._zoomAnimated&&(this._createAnimProxy(),z(this._proxy,Tt,this._catchTransitionEnd,this)),this._addLayers(this.options.layers)},setView:function(e,n,r){return n=n===void 0?this._zoom:this._limitZoom(n),e=this._limitCenter(O(e),n,this.options.maxBounds),r||={},this._stop(),this._loaded&&!r.reset&&r!==!0&&(r.animate!==void 0&&(r.zoom=t({animate:r.animate},r.zoom),r.pan=t({animate:r.animate,duration:r.duration},r.pan)),this._zoom===n?this._tryAnimatedPan(e,r.pan):this._tryAnimatedZoom&&this._tryAnimatedZoom(e,n,r.zoom))?(clearTimeout(this._sizeTimer),this):(this._resetView(e,n,r.pan&&r.pan.noMoveStart),this)},setZoom:function(e,t){return this._loaded?this.setView(this.getCenter(),e,{zoom:t}):(this._zoom=e,this)},zoomIn:function(e,t){return e||=j.any3d?this.options.zoomDelta:1,this.setZoom(this._zoom+e,t)},zoomOut:function(e,t){return e||=j.any3d?this.options.zoomDelta:1,this.setZoom(this._zoom-e,t)},setZoomAround:function(e,t,n){var r=this.getZoomScale(t),i=this.getSize().divideBy(2),a=(e instanceof x?e:this.latLngToContainerPoint(e)).subtract(i).multiplyBy(1-1/r),o=this.containerPointToLatLng(i.add(a));return this.setView(o,t,{zoom:n})},_getBoundsCenterZoom:function(e,t){t||={},e=e.getBounds?e.getBounds():E(e);var n=S(t.paddingTopLeft||t.padding||[0,0]),r=S(t.paddingBottomRight||t.padding||[0,0]),i=this.getBoundsZoom(e,!1,n.add(r));if(i=typeof t.maxZoom==`number`?Math.min(t.maxZoom,i):i,i===1/0)return{center:e.getCenter(),zoom:i};var a=r.subtract(n).divideBy(2),o=this.project(e.getSouthWest(),i),s=this.project(e.getNorthEast(),i);return{center:this.unproject(o.add(s).divideBy(2).add(a),i),zoom:i}},fitBounds:function(e,t){if(e=E(e),!e.isValid())throw Error(`Bounds are not valid.`);var n=this._getBoundsCenterZoom(e,t);return this.setView(n.center,n.zoom,t)},fitWorld:function(e){return this.fitBounds([[-90,-180],[90,180]],e)},panTo:function(e,t){return this.setView(e,this._zoom,{pan:t})},panBy:function(e,t){if(e=S(e).round(),t||={},!e.x&&!e.y)return this.fire(`moveend`);if(t.animate!==!0&&!this.getSize().contains(e))return this._resetView(this.unproject(this.project(this.getCenter()).add(e)),this.getZoom()),this;if(this._panAnim||(this._panAnim=new fn,this._panAnim.on({step:this._onPanTransitionStep,end:this._onPanTransitionEnd},this)),t.noMoveStart||this.fire(`movestart`),t.animate!==!1){P(this._mapPane,`leaflet-pan-anim`);var n=this._getMapPanePos().subtract(e).round();this._panAnim.run(this._mapPane,n,t.duration||.25,t.easeLinearity)}else this._rawPanBy(e),this.fire(`move`).fire(`moveend`);return this},flyTo:function(e,t,n){if(n||={},n.animate===!1||!j.any3d)return this.setView(e,t,n);this._stop();var r=this.project(this.getCenter()),i=this.project(e),a=this.getSize(),o=this._zoom;e=O(e),t=t===void 0?o:t;var s=Math.max(a.x,a.y),c=s*this.getZoomScale(o,t),l=i.distanceTo(r)||1,u=1.42,d=u*u;function f(e){var t=e?-1:1,n=e?c:s,r=(c*c-s*s+t*d*d*l*l)/(2*n*d*l),i=Math.sqrt(r*r+1)-r;return i<1e-9?-18:Math.log(i)}function p(e){return(Math.exp(e)-Math.exp(-e))/2}function m(e){return(Math.exp(e)+Math.exp(-e))/2}function h(e){return p(e)/m(e)}var g=f(0);function ee(e){return s*(m(g)/m(g+u*e))}function te(e){return s*(m(g)*h(g+u*e)-p(g))/d}function ne(e){return 1-(1-e)**1.5}var re=Date.now(),ie=(f(1)-g)/u,ae=n.duration?1e3*n.duration:1e3*ie*.8;function oe(){var n=(Date.now()-re)/ae,a=ne(n)*ie;n<=1?(this._flyToFrame=_(oe,this),this._move(this.unproject(r.add(i.subtract(r).multiplyBy(te(a)/l)),o),this.getScaleZoom(s/ee(a),o),{flyTo:!0})):this._move(e,t)._moveEnd(!0)}return this._moveStart(!0,n.noMoveStart),oe.call(this),this},flyToBounds:function(e,t){var n=this._getBoundsCenterZoom(e,t);return this.flyTo(n.center,n.zoom,t)},setMaxBounds:function(e){return e=E(e),this.listens(`moveend`,this._panInsideMaxBounds)&&this.off(`moveend`,this._panInsideMaxBounds),e.isValid()?(this.options.maxBounds=e,this._loaded&&this._panInsideMaxBounds(),this.on(`moveend`,this._panInsideMaxBounds)):(this.options.maxBounds=null,this)},setMinZoom:function(e){var t=this.options.minZoom;return this.options.minZoom=e,this._loaded&&t!==e&&(this.fire(`zoomlevelschange`),this.getZoom()<this.options.minZoom)?this.setZoom(e):this},setMaxZoom:function(e){var t=this.options.maxZoom;return this.options.maxZoom=e,this._loaded&&t!==e&&(this.fire(`zoomlevelschange`),this.getZoom()>this.options.maxZoom)?this.setZoom(e):this},panInsideBounds:function(e,t){this._enforcingBounds=!0;var n=this.getCenter(),r=this._limitCenter(n,this._zoom,E(e));return n.equals(r)||this.panTo(r,t),this._enforcingBounds=!1,this},panInside:function(e,t){t||={};var n=S(t.paddingTopLeft||t.padding||[0,0]),r=S(t.paddingBottomRight||t.padding||[0,0]),i=this.project(this.getCenter()),a=this.project(e),o=this.getPixelBounds(),s=w([o.min.add(n),o.max.subtract(r)]),c=s.getSize();if(!s.contains(a)){this._enforcingBounds=!0;var l=a.subtract(s.getCenter()),u=s.extend(a).getSize().subtract(c);i.x+=l.x<0?-u.x:u.x,i.y+=l.y<0?-u.y:u.y,this.panTo(this.unproject(i),t),this._enforcingBounds=!1}return this},invalidateSize:function(e){if(!this._loaded)return this;e=t({animate:!1,pan:!0},e===!0?{animate:!0}:e);var n=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var i=this.getSize(),a=n.divideBy(2).round(),o=i.divideBy(2).round(),s=a.subtract(o);return!s.x&&!s.y?this:(e.animate&&e.pan?this.panBy(s):(e.pan&&this._rawPanBy(s),this.fire(`move`),e.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(r(this.fire,this,`moveend`),200)):this.fire(`moveend`)),this.fire(`resize`,{oldSize:n,newSize:i}))},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire(`viewreset`),this._stop()},locate:function(e){if(e=this._locateOptions=t({timeout:1e4,watch:!1},e),!(`geolocation`in navigator))return this._handleGeolocationError({code:0,message:`Geolocation not supported.`}),this;var n=r(this._handleGeolocationResponse,this),i=r(this._handleGeolocationError,this);return e.watch?this._locationWatchId=navigator.geolocation.watchPosition(n,i,e):navigator.geolocation.getCurrentPosition(n,i,e),this},stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(e){if(this._container._leaflet_id){var t=e.code,n=e.message||(t===1?`permission denied`:t===2?`position unavailable`:`timeout`);this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire(`locationerror`,{code:t,message:`Geolocation error: `+n+`.`})}},_handleGeolocationResponse:function(e){if(this._container._leaflet_id){var t=e.coords.latitude,n=e.coords.longitude,r=new D(t,n),i=r.toBounds(e.coords.accuracy*2),a=this._locateOptions;if(a.setView){var o=this.getBoundsZoom(i);this.setView(r,a.maxZoom?Math.min(o,a.maxZoom):o)}var s={latlng:r,bounds:i,timestamp:e.timestamp};for(var c in e.coords)typeof e.coords[c]==`number`&&(s[c]=e.coords[c]);this.fire(`locationfound`,s)}},addHandler:function(e,t){if(!t)return this;var n=this[e]=new t(this);return this._handlers.push(n),this.options[e]&&n.enable(),this},remove:function(){if(this._initEvents(!0),this.options.maxBounds&&this.off(`moveend`,this._panInsideMaxBounds),this._containerId!==this._container._leaflet_id)throw Error(`Map container is being reused by another instance`);try{delete this._container._leaflet_id,delete this._containerId}catch{this._container._leaflet_id=void 0,this._containerId=void 0}for(var e in this._locationWatchId!==void 0&&this.stopLocate(),this._stop(),N(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&=(v(this._resizeRequest),null),this._clearHandlers(),this._loaded&&this.fire(`unload`),this._layers)this._layers[e].remove();for(e in this._panes)N(this._panes[e]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(e,t){var n=M(`div`,`leaflet-pane`+(e?` leaflet-`+e.replace(`Pane`,``)+`-pane`:``),t||this._mapPane);return e&&(this._panes[e]=n),n},getCenter:function(){return this._checkIfLoaded(),this._lastCenter&&!this._moved()?this._lastCenter.clone():this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var e=this.getPixelBounds();return new T(this.unproject(e.getBottomLeft()),this.unproject(e.getTopRight()))},getMinZoom:function(){return this.options.minZoom===void 0?this._layersMinZoom||0:this.options.minZoom},getMaxZoom:function(){return this.options.maxZoom===void 0?this._layersMaxZoom===void 0?1/0:this._layersMaxZoom:this.options.maxZoom},getBoundsZoom:function(e,t,n){e=E(e),n=S(n||[0,0]);var r=this.getZoom()||0,i=this.getMinZoom(),a=this.getMaxZoom(),o=e.getNorthWest(),s=e.getSouthEast(),c=this.getSize().subtract(n),l=w(this.project(s,r),this.project(o,r)).getSize(),u=j.any3d?this.options.zoomSnap:1,d=c.x/l.x,f=c.y/l.y,p=t?Math.max(d,f):Math.min(d,f);return r=this.getScaleZoom(p,r),u&&(r=Math.round(r/(u/100))*(u/100),r=t?Math.ceil(r/u)*u:Math.floor(r/u)*u),Math.max(i,Math.min(a,r))},getSize:function(){return(!this._size||this._sizeChanged)&&(this._size=new x(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(e,t){var n=this._getTopLeftPoint(e,t);return new C(n,n.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._pixelOrigin},getPixelWorldBounds:function(e){return this.options.crs.getProjectedBounds(e===void 0?this.getZoom():e)},getPane:function(e){return typeof e==`string`?this._panes[e]:e},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(e,t){var n=this.options.crs;return t=t===void 0?this._zoom:t,n.scale(e)/n.scale(t)},getScaleZoom:function(e,t){var n=this.options.crs;t=t===void 0?this._zoom:t;var r=n.zoom(e*n.scale(t));return isNaN(r)?1/0:r},project:function(e,t){return t=t===void 0?this._zoom:t,this.options.crs.latLngToPoint(O(e),t)},unproject:function(e,t){return t=t===void 0?this._zoom:t,this.options.crs.pointToLatLng(S(e),t)},layerPointToLatLng:function(e){var t=S(e).add(this.getPixelOrigin());return this.unproject(t)},latLngToLayerPoint:function(e){return this.project(O(e))._round()._subtract(this.getPixelOrigin())},wrapLatLng:function(e){return this.options.crs.wrapLatLng(O(e))},wrapLatLngBounds:function(e){return this.options.crs.wrapLatLngBounds(E(e))},distance:function(e,t){return this.options.crs.distance(O(e),O(t))},containerPointToLayerPoint:function(e){return S(e).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(e){return S(e).add(this._getMapPanePos())},containerPointToLatLng:function(e){var t=this.containerPointToLayerPoint(S(e));return this.layerPointToLatLng(t)},latLngToContainerPoint:function(e){return this.layerPointToContainerPoint(this.latLngToLayerPoint(O(e)))},mouseEventToContainerPoint:function(e){return sn(e,this._container)},mouseEventToLayerPoint:function(e){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(e))},mouseEventToLatLng:function(e){return this.layerPointToLatLng(this.mouseEventToLayerPoint(e))},_initContainer:function(e){var t=this._container=Et(e);if(!t)throw Error(`Map container not found.`);if(t._leaflet_id)throw Error(`Map container is already initialized.`);z(t,`scroll`,this._onScroll,this),this._containerId=a(t)},_initLayout:function(){var e=this._container;this._fadeAnimated=this.options.fadeAnimation&&j.any3d,P(e,`leaflet-container`+(j.touch?` leaflet-touch`:``)+(j.retina?` leaflet-retina`:``)+(j.ielt9?` leaflet-oldie`:``)+(j.safari?` leaflet-safari`:``)+(this._fadeAnimated?` leaflet-fade-anim`:``));var t=Dt(e,`position`);t!==`absolute`&&t!==`relative`&&t!==`fixed`&&t!==`sticky`&&(e.style.position=`relative`),this._initPanes(),this._initControlPos&&this._initControlPos()},_initPanes:function(){var e=this._panes={};this._paneRenderers={},this._mapPane=this.createPane(`mapPane`,this._container),R(this._mapPane,new x(0,0)),this.createPane(`tilePane`),this.createPane(`overlayPane`),this.createPane(`shadowPane`),this.createPane(`markerPane`),this.createPane(`tooltipPane`),this.createPane(`popupPane`),this.options.markerZoomAnimation||(P(e.markerPane,`leaflet-zoom-hide`),P(e.shadowPane,`leaflet-zoom-hide`))},_resetView:function(e,t,n){R(this._mapPane,new x(0,0));var r=!this._loaded;this._loaded=!0,t=this._limitZoom(t),this.fire(`viewprereset`);var i=this._zoom!==t;this._moveStart(i,n)._move(e,t)._moveEnd(i),this.fire(`viewreset`),r&&this.fire(`load`)},_moveStart:function(e,t){return e&&this.fire(`zoomstart`),t||this.fire(`movestart`),this},_move:function(e,t,n,r){t===void 0&&(t=this._zoom);var i=this._zoom!==t;return this._zoom=t,this._lastCenter=e,this._pixelOrigin=this._getNewPixelOrigin(e),r?n&&n.pinch&&this.fire(`zoom`,n):((i||n&&n.pinch)&&this.fire(`zoom`,n),this.fire(`move`,n)),this},_moveEnd:function(e){return e&&this.fire(`zoomend`),this.fire(`moveend`)},_stop:function(){return v(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(e){R(this._mapPane,this._getMapPanePos().subtract(e))},_getZoomSpan:function(){return this.getMaxZoom()-this.getMinZoom()},_panInsideMaxBounds:function(){this._enforcingBounds||this.panInsideBounds(this.options.maxBounds)},_checkIfLoaded:function(){if(!this._loaded)throw Error(`Set map center and zoom first.`)},_initEvents:function(e){this._targets={},this._targets[a(this._container)]=this;var t=e?V:z;t(this._container,`click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup`,this._handleDOMEvent,this),this.options.trackResize&&t(window,`resize`,this._onResize,this),j.any3d&&this.options.transform3DLimit&&(e?this.off:this.on).call(this,`moveend`,this._onMoveEnd)},_onResize:function(){v(this._resizeRequest),this._resizeRequest=_(function(){this.invalidateSize({debounceMoveend:!0})},this)},_onScroll:function(){this._container.scrollTop=0,this._container.scrollLeft=0},_onMoveEnd:function(){var e=this._getMapPanePos();Math.max(Math.abs(e.x),Math.abs(e.y))>=this.options.transform3DLimit&&this._resetView(this.getCenter(),this.getZoom())},_findEventTargets:function(e,t){for(var n=[],r,i=t===`mouseout`||t===`mouseover`,o=e.target||e.srcElement,s=!1;o;){if(r=this._targets[a(o)],r&&(t===`click`||t===`preclick`)&&this._draggableMoved(r)){s=!0;break}if(r&&r.listens(t,!0)&&(i&&!un(o,e)||(n.push(r),i))||o===this._container)break;o=o.parentNode}return!n.length&&!s&&!i&&this.listens(t,!0)&&(n=[this]),n},_isClickDisabled:function(e){for(;e&&e!==this._container;){if(e._leaflet_disable_click)return!0;e=e.parentNode}},_handleDOMEvent:function(e){var t=e.target||e.srcElement;if(!(!this._loaded||t._leaflet_disable_events||e.type===`click`&&this._isClickDisabled(t))){var n=e.type;n===`mousedown`&&Kt(t),this._fireDOMEvent(e,n)}},_mouseEvents:[`click`,`dblclick`,`mouseover`,`mouseout`,`contextmenu`],_fireDOMEvent:function(e,n,r){if(e.type===`click`){var i=t({},e);i.type=`preclick`,this._fireDOMEvent(i,i.type,r)}var a=this._findEventTargets(e,n);if(r){for(var o=[],s=0;s<r.length;s++)r[s].listens(n,!0)&&o.push(r[s]);a=o.concat(a)}if(a.length){n===`contextmenu`&&H(e);var c=a[0],l={originalEvent:e};if(e.type!==`keypress`&&e.type!==`keydown`&&e.type!==`keyup`){var u=c.getLatLng&&(!c._radius||c._radius<=10);l.containerPoint=u?this.latLngToContainerPoint(c.getLatLng()):this.mouseEventToContainerPoint(e),l.layerPoint=this.containerPointToLayerPoint(l.containerPoint),l.latlng=u?c.getLatLng():this.layerPointToLatLng(l.layerPoint)}for(s=0;s<a.length;s++)if(a[s].fire(n,l,!0),l.originalEvent._stopped||a[s].options.bubblingMouseEvents===!1&&ee(this._mouseEvents,n)!==-1)return}},_draggableMoved:function(e){return e=e.dragging&&e.dragging.enabled()?e:this,e.dragging&&e.dragging.moved()||this.boxZoom&&this.boxZoom.moved()},_clearHandlers:function(){for(var e=0,t=this._handlers.length;e<t;e++)this._handlers[e].disable()},whenReady:function(e,t){return this._loaded?e.call(t||this,{target:this}):this.on(`load`,e,t),this},_getMapPanePos:function(){return Lt(this._mapPane)||new x(0,0)},_moved:function(){var e=this._getMapPanePos();return e&&!e.equals([0,0])},_getTopLeftPoint:function(e,t){return(e&&t!==void 0?this._getNewPixelOrigin(e,t):this.getPixelOrigin()).subtract(this._getMapPanePos())},_getNewPixelOrigin:function(e,t){var n=this.getSize()._divideBy(2);return this.project(e,t)._subtract(n)._add(this._getMapPanePos())._round()},_latLngToNewLayerPoint:function(e,t,n){var r=this._getNewPixelOrigin(n,t);return this.project(e,t)._subtract(r)},_latLngBoundsToNewLayerBounds:function(e,t,n){var r=this._getNewPixelOrigin(n,t);return w([this.project(e.getSouthWest(),t)._subtract(r),this.project(e.getNorthWest(),t)._subtract(r),this.project(e.getSouthEast(),t)._subtract(r),this.project(e.getNorthEast(),t)._subtract(r)])},_getCenterLayerPoint:function(){return this.containerPointToLayerPoint(this.getSize()._divideBy(2))},_getCenterOffset:function(e){return this.latLngToLayerPoint(e).subtract(this._getCenterLayerPoint())},_limitCenter:function(e,t,n){if(!n)return e;var r=this.project(e,t),i=this.getSize().divideBy(2),a=new C(r.subtract(i),r.add(i)),o=this._getBoundsOffset(a,n,t);return Math.abs(o.x)<=1&&Math.abs(o.y)<=1?e:this.unproject(r.add(o),t)},_limitOffset:function(e,t){if(!t)return e;var n=this.getPixelBounds(),r=new C(n.min.add(e),n.max.add(e));return e.add(this._getBoundsOffset(r,t))},_getBoundsOffset:function(e,t,n){var r=w(this.project(t.getNorthEast(),n),this.project(t.getSouthWest(),n)),i=r.min.subtract(e.min),a=r.max.subtract(e.max);return new x(this._rebound(i.x,-a.x),this._rebound(i.y,-a.y))},_rebound:function(e,t){return e+t>0?Math.round(e-t)/2:Math.max(0,Math.ceil(e))-Math.max(0,Math.floor(t))},_limitZoom:function(e){var t=this.getMinZoom(),n=this.getMaxZoom(),r=j.any3d?this.options.zoomSnap:1;return r&&(e=Math.round(e/r)*r),Math.max(t,Math.min(n,e))},_onPanTransitionStep:function(){this.fire(`move`)},_onPanTransitionEnd:function(){F(this._mapPane,`leaflet-pan-anim`),this.fire(`moveend`)},_tryAnimatedPan:function(e,t){var n=this._getCenterOffset(e)._trunc();return(t&&t.animate)!==!0&&!this.getSize().contains(n)?!1:(this.panBy(n,t),!0)},_createAnimProxy:function(){var e=this._proxy=M(`div`,`leaflet-proxy leaflet-zoom-animated`);this._panes.mapPane.appendChild(e),this.on(`zoomanim`,function(e){var t=Ct,n=this._proxy.style[t];It(this._proxy,this.project(e.center,e.zoom),this.getZoomScale(e.zoom,1)),n===this._proxy.style[t]&&this._animatingZoom&&this._onZoomTransitionEnd()},this),this.on(`load moveend`,this._animMoveEnd,this),this._on(`unload`,this._destroyAnimProxy,this)},_destroyAnimProxy:function(){N(this._proxy),this.off(`load moveend`,this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var e=this.getCenter(),t=this.getZoom();It(this._proxy,this.project(e,t),this.getZoomScale(t,1))},_catchTransitionEnd:function(e){this._animatingZoom&&e.propertyName.indexOf(`transform`)>=0&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName(`leaflet-zoom-animated`).length},_tryAnimatedZoom:function(e,t,n){if(this._animatingZoom)return!0;if(n||={},!this._zoomAnimated||n.animate===!1||this._nothingToAnimate()||Math.abs(t-this._zoom)>this.options.zoomAnimationThreshold)return!1;var r=this.getZoomScale(t),i=this._getCenterOffset(e)._divideBy(1-1/r);return n.animate!==!0&&!this.getSize().contains(i)?!1:(_(function(){this._moveStart(!0,n.noMoveStart||!1)._animateZoom(e,t,!0)},this),!0)},_animateZoom:function(e,t,n,i){this._mapPane&&(n&&(this._animatingZoom=!0,this._animateToCenter=e,this._animateToZoom=t,P(this._mapPane,`leaflet-zoom-anim`)),this.fire(`zoomanim`,{center:e,zoom:t,noUpdate:i}),this._tempFireZoomEvent||=this._zoom!==this._animateToZoom,this._move(this._animateToCenter,this._animateToZoom,void 0,!0),setTimeout(r(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._mapPane&&F(this._mapPane,`leaflet-zoom-anim`),this._animatingZoom=!1,this._move(this._animateToCenter,this._animateToZoom,void 0,!0),this._tempFireZoomEvent&&this.fire(`zoom`),delete this._tempFireZoomEvent,this.fire(`move`),this._moveEnd(!0))}});function pn(e,t){return new U(e,t)}var W=y.extend({options:{position:`topright`},initialize:function(e){f(this,e)},getPosition:function(){return this.options.position},setPosition:function(e){var t=this._map;return t&&t.removeControl(this),this.options.position=e,t&&t.addControl(this),this},getContainer:function(){return this._container},addTo:function(e){this.remove(),this._map=e;var t=this._container=this.onAdd(e),n=this.getPosition(),r=e._controlCorners[n];return P(t,`leaflet-control`),n.indexOf(`bottom`)===-1?r.appendChild(t):r.insertBefore(t,r.firstChild),this._map.on(`unload`,this.remove,this),this},remove:function(){return this._map?(N(this._container),this.onRemove&&this.onRemove(this._map),this._map.off(`unload`,this.remove,this),this._map=null,this):this},_refocusOnMap:function(e){this._map&&e&&e.screenX>0&&e.screenY>0&&this._map.getContainer().focus()}}),mn=function(e){return new W(e)};U.include({addControl:function(e){return e.addTo(this),this},removeControl:function(e){return e.remove(),this},_initControlPos:function(){var e=this._controlCorners={},t=`leaflet-`,n=this._controlContainer=M(`div`,t+`control-container`,this._container);function r(r,i){var a=t+r+` `+t+i;e[r+i]=M(`div`,a,n)}r(`top`,`left`),r(`top`,`right`),r(`bottom`,`left`),r(`bottom`,`right`)},_clearControlPos:function(){for(var e in this._controlCorners)N(this._controlCorners[e]);N(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var hn=W.extend({options:{collapsed:!0,position:`topright`,autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(e,t,n,r){return n<r?-1:r<n?1:0}},initialize:function(e,t,n){for(var r in f(this,n),this._layerControlInputs=[],this._layers=[],this._lastZIndex=0,this._handlingClick=!1,this._preventClick=!1,e)this._addLayer(e[r],r);for(r in t)this._addLayer(t[r],r,!0)},onAdd:function(e){this._initLayout(),this._update(),this._map=e,e.on(`zoomend`,this._checkDisabledLayers,this);for(var t=0;t<this._layers.length;t++)this._layers[t].layer.on(`add remove`,this._onLayerChange,this);return this._container},addTo:function(e){return W.prototype.addTo.call(this,e),this._expandIfNotCollapsed()},onRemove:function(){this._map.off(`zoomend`,this._checkDisabledLayers,this);for(var e=0;e<this._layers.length;e++)this._layers[e].layer.off(`add remove`,this._onLayerChange,this)},addBaseLayer:function(e,t){return this._addLayer(e,t),this._map?this._update():this},addOverlay:function(e,t){return this._addLayer(e,t,!0),this._map?this._update():this},removeLayer:function(e){e.off(`add remove`,this._onLayerChange,this);var t=this._getLayer(a(e));return t&&this._layers.splice(this._layers.indexOf(t),1),this._map?this._update():this},expand:function(){P(this._container,`leaflet-control-layers-expanded`),this._section.style.height=null;var e=this._map.getSize().y-(this._container.offsetTop+50);return e<this._section.clientHeight?(P(this._section,`leaflet-control-layers-scrollbar`),this._section.style.height=e+`px`):F(this._section,`leaflet-control-layers-scrollbar`),this._checkDisabledLayers(),this},collapse:function(){return F(this._container,`leaflet-control-layers-expanded`),this},_initLayout:function(){var e=`leaflet-control-layers`,t=this._container=M(`div`,e),n=this.options.collapsed;t.setAttribute(`aria-haspopup`,!0),rn(t),nn(t);var r=this._section=M(`section`,e+`-list`);n&&(this._map.on(`click`,this.collapse,this),z(t,{mouseenter:this._expandSafely,mouseleave:this.collapse},this));var i=this._layersLink=M(`a`,e+`-toggle`,t);i.href=`#`,i.title=`Layers`,i.setAttribute(`role`,`button`),z(i,{keydown:function(e){e.keyCode===13&&this._expandSafely()},click:function(e){H(e),this._expandSafely()}},this),n||this.expand(),this._baseLayersList=M(`div`,e+`-base`,r),this._separator=M(`div`,e+`-separator`,r),this._overlaysList=M(`div`,e+`-overlays`,r),t.appendChild(r)},_getLayer:function(e){for(var t=0;t<this._layers.length;t++)if(this._layers[t]&&a(this._layers[t].layer)===e)return this._layers[t]},_addLayer:function(e,t,n){this._map&&e.on(`add remove`,this._onLayerChange,this),this._layers.push({layer:e,name:t,overlay:n}),this.options.sortLayers&&this._layers.sort(r(function(e,t){return this.options.sortFunction(e.layer,t.layer,e.name,t.name)},this)),this.options.autoZIndex&&e.setZIndex&&(this._lastZIndex++,e.setZIndex(this._lastZIndex)),this._expandIfNotCollapsed()},_update:function(){if(!this._container)return this;Ot(this._baseLayersList),Ot(this._overlaysList),this._layerControlInputs=[];var e,t,n,r,i=0;for(n=0;n<this._layers.length;n++)r=this._layers[n],this._addItem(r),t||=r.overlay,e||=!r.overlay,i+=r.overlay?0:1;return this.options.hideSingleBase&&(e&&=i>1,this._baseLayersList.style.display=e?``:`none`),this._separator.style.display=t&&e?``:`none`,this},_onLayerChange:function(e){this._handlingClick||this._update();var t=this._getLayer(a(e.target)),n=t.overlay?e.type===`add`?`overlayadd`:`overlayremove`:e.type===`add`?`baselayerchange`:null;n&&this._map.fire(n,t)},_createRadioElement:function(e,t){var n=`<input type="radio" class="leaflet-control-layers-selector" name="`+e+`"`+(t?` checked="checked"`:``)+`/>`,r=document.createElement(`div`);return r.innerHTML=n,r.firstChild},_addItem:function(e){var t=document.createElement(`label`),n=this._map.hasLayer(e.layer),r;e.overlay?(r=document.createElement(`input`),r.type=`checkbox`,r.className=`leaflet-control-layers-selector`,r.defaultChecked=n):r=this._createRadioElement(`leaflet-base-layers_`+a(this),n),this._layerControlInputs.push(r),r.layerId=a(e.layer),z(r,`click`,this._onInputClick,this);var i=document.createElement(`span`);i.innerHTML=` `+e.name;var o=document.createElement(`span`);return t.appendChild(o),o.appendChild(r),o.appendChild(i),(e.overlay?this._overlaysList:this._baseLayersList).appendChild(t),this._checkDisabledLayers(),t},_onInputClick:function(){if(!this._preventClick){var e=this._layerControlInputs,t,n,r=[],i=[];this._handlingClick=!0;for(var a=e.length-1;a>=0;a--)t=e[a],n=this._getLayer(t.layerId).layer,t.checked?r.push(n):t.checked||i.push(n);for(a=0;a<i.length;a++)this._map.hasLayer(i[a])&&this._map.removeLayer(i[a]);for(a=0;a<r.length;a++)this._map.hasLayer(r[a])||this._map.addLayer(r[a]);this._handlingClick=!1,this._refocusOnMap()}},_checkDisabledLayers:function(){for(var e=this._layerControlInputs,t,n,r=this._map.getZoom(),i=e.length-1;i>=0;i--)t=e[i],n=this._getLayer(t.layerId).layer,t.disabled=n.options.minZoom!==void 0&&r<n.options.minZoom||n.options.maxZoom!==void 0&&r>n.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expandSafely:function(){var e=this._section;this._preventClick=!0,z(e,`click`,H),this.expand();var t=this;setTimeout(function(){V(e,`click`,H),t._preventClick=!1})}}),gn=function(e,t,n){return new hn(e,t,n)},_n=W.extend({options:{position:`topleft`,zoomInText:`<span aria-hidden="true">+</span>`,zoomInTitle:`Zoom in`,zoomOutText:`<span aria-hidden="true">−</span>`,zoomOutTitle:`Zoom out`},onAdd:function(e){var t=`leaflet-control-zoom`,n=M(`div`,t+` leaflet-bar`),r=this.options;return this._zoomInButton=this._createButton(r.zoomInText,r.zoomInTitle,t+`-in`,n,this._zoomIn),this._zoomOutButton=this._createButton(r.zoomOutText,r.zoomOutTitle,t+`-out`,n,this._zoomOut),this._updateDisabled(),e.on(`zoomend zoomlevelschange`,this._updateDisabled,this),n},onRemove:function(e){e.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(e){!this._disabled&&this._map._zoom<this._map.getMaxZoom()&&this._map.zoomIn(this._map.options.zoomDelta*(e.shiftKey?3:1))},_zoomOut:function(e){!this._disabled&&this._map._zoom>this._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(e.shiftKey?3:1))},_createButton:function(e,t,n,r,i){var a=M(`a`,n,r);return a.innerHTML=e,a.href=`#`,a.title=t,a.setAttribute(`role`,`button`),a.setAttribute(`aria-label`,t),rn(a),z(a,`click`,an),z(a,`click`,i,this),z(a,`click`,this._refocusOnMap,this),a},_updateDisabled:function(){var e=this._map,t=`leaflet-disabled`;F(this._zoomInButton,t),F(this._zoomOutButton,t),this._zoomInButton.setAttribute(`aria-disabled`,`false`),this._zoomOutButton.setAttribute(`aria-disabled`,`false`),(this._disabled||e._zoom===e.getMinZoom())&&(P(this._zoomOutButton,t),this._zoomOutButton.setAttribute(`aria-disabled`,`true`)),(this._disabled||e._zoom===e.getMaxZoom())&&(P(this._zoomInButton,t),this._zoomInButton.setAttribute(`aria-disabled`,`true`))}});U.mergeOptions({zoomControl:!0}),U.addInitHook(function(){this.options.zoomControl&&(this.zoomControl=new _n,this.addControl(this.zoomControl))});var vn=function(e){return new _n(e)},yn=W.extend({options:{position:`bottomleft`,maxWidth:100,metric:!0,imperial:!0},onAdd:function(e){var t=`leaflet-control-scale`,n=M(`div`,t),r=this.options;return this._addScales(r,t+`-line`,n),e.on(r.updateWhenIdle?`moveend`:`move`,this._update,this),e.whenReady(this._update,this),n},onRemove:function(e){e.off(this.options.updateWhenIdle?`moveend`:`move`,this._update,this)},_addScales:function(e,t,n){e.metric&&(this._mScale=M(`div`,t,n)),e.imperial&&(this._iScale=M(`div`,t,n))},_update:function(){var e=this._map,t=e.getSize().y/2,n=e.distance(e.containerPointToLatLng([0,t]),e.containerPointToLatLng([this.options.maxWidth,t]));this._updateScales(n)},_updateScales:function(e){this.options.metric&&e&&this._updateMetric(e),this.options.imperial&&e&&this._updateImperial(e)},_updateMetric:function(e){var t=this._getRoundNum(e),n=t<1e3?t+` m`:t/1e3+` km`;this._updateScale(this._mScale,n,t/e)},_updateImperial:function(e){var t=e*3.2808399,n,r,i;t>5280?(n=t/5280,r=this._getRoundNum(n),this._updateScale(this._iScale,r+` mi`,r/n)):(i=this._getRoundNum(t),this._updateScale(this._iScale,i+` ft`,i/t))},_updateScale:function(e,t,n){e.style.width=Math.round(this.options.maxWidth*n)+`px`,e.innerHTML=t},_getRoundNum:function(e){var t=10**((Math.floor(e)+``).length-1),n=e/t;return n=n>=10?10:n>=5?5:n>=3?3:n>=2?2:1,t*n}}),bn=function(e){return new yn(e)},xn=W.extend({options:{position:`bottomright`,prefix:`<a href="https://leafletjs.com" title="A JavaScript library for interactive maps">`+(j.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(e){f(this,e),this._attributions={}},onAdd:function(e){for(var t in e.attributionControl=this,this._container=M(`div`,`leaflet-control-attribution`),rn(this._container),e._layers)e._layers[t].getAttribution&&this.addAttribution(e._layers[t].getAttribution());return this._update(),e.on(`layeradd`,this._addAttribution,this),this._container},onRemove:function(e){e.off(`layeradd`,this._addAttribution,this)},_addAttribution:function(e){e.layer.getAttribution&&(this.addAttribution(e.layer.getAttribution()),e.layer.once(`remove`,function(){this.removeAttribution(e.layer.getAttribution())},this))},setPrefix:function(e){return this.options.prefix=e,this._update(),this},addAttribution:function(e){return e?(this._attributions[e]||(this._attributions[e]=0),this._attributions[e]++,this._update(),this):this},removeAttribution:function(e){return e&&this._attributions[e]&&(this._attributions[e]--,this._update()),this},_update:function(){if(this._map){var e=[];for(var t in this._attributions)this._attributions[t]&&e.push(t);var n=[];this.options.prefix&&n.push(this.options.prefix),e.length&&n.push(e.join(`, `)),this._container.innerHTML=n.join(` <span aria-hidden="true">|</span> `)}}});U.mergeOptions({attributionControl:!0}),U.addInitHook(function(){this.options.attributionControl&&new xn().addTo(this)}),W.Layers=hn,W.Zoom=_n,W.Scale=yn,W.Attribution=xn,mn.layers=gn,mn.zoom=vn,mn.scale=bn,mn.attribution=function(e){return new xn(e)};var G=y.extend({initialize:function(e){this._map=e},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}});G.addTo=function(e,t){return e.addHandler(t,this),this};var Sn={Events:b},Cn=j.touch?`touchstart mousedown`:`mousedown`,K=le.extend({options:{clickTolerance:3},initialize:function(e,t,n,r){f(this,r),this._element=e,this._dragStartTarget=t||e,this._preventOutline=n},enable:function(){this._enabled||=(z(this._dragStartTarget,Cn,this._onDown,this),!0)},disable:function(){this._enabled&&(K._dragging===this&&this.finishDrag(!0),V(this._dragStartTarget,Cn,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(e){if(this._enabled&&(this._moved=!1,!jt(this._element,`leaflet-zoom-anim`))){if(e.touches&&e.touches.length!==1){K._dragging===this&&this.finishDrag();return}if(!(K._dragging||e.shiftKey||e.which!==1&&e.button!==1&&!e.touches)&&(K._dragging=this,this._preventOutline&&Kt(this._element),Ht(),Rt(),!this._moving)){this.fire(`down`);var t=e.touches?e.touches[0]:e,n=Jt(this._element);this._startPoint=new x(t.clientX,t.clientY),this._startPos=Lt(this._element),this._parentScale=Yt(n);var r=e.type===`mousedown`;z(document,r?`mousemove`:`touchmove`,this._onMove,this),z(document,r?`mouseup`:`touchend touchcancel`,this._onUp,this)}}},_onMove:function(e){if(this._enabled){if(e.touches&&e.touches.length>1){this._moved=!0;return}var t=e.touches&&e.touches.length===1?e.touches[0]:e,n=new x(t.clientX,t.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,H(e),this._moved||(this.fire(`dragstart`),this._moved=!0,P(document.body,`leaflet-dragging`),this._lastTarget=e.target||e.srcElement,window.SVGElementInstance&&this._lastTarget instanceof window.SVGElementInstance&&(this._lastTarget=this._lastTarget.correspondingUseElement),P(this._lastTarget,`leaflet-drag-target`)),this._newPos=this._startPos.add(n),this._moving=!0,this._lastEvent=e,this._updatePosition())}},_updatePosition:function(){var e={originalEvent:this._lastEvent};this.fire(`predrag`,e),R(this._element,this._newPos),this.fire(`drag`,e)},_onUp:function(){this._enabled&&this.finishDrag()},finishDrag:function(e){F(document.body,`leaflet-dragging`),this._lastTarget&&=(F(this._lastTarget,`leaflet-drag-target`),null),V(document,`mousemove touchmove`,this._onMove,this),V(document,`mouseup touchend touchcancel`,this._onUp,this),Ut(),zt();var t=this._moved&&this._moving;this._moving=!1,K._dragging=!1,t&&this.fire(`dragend`,{noInertia:e,distance:this._newPos.distanceTo(this._startPos)})}});function wn(e,t,n){var r,i=[1,4,2,8],a,o,s,c,l,u,d,f;for(a=0,u=e.length;a<u;a++)e[a]._code=Ln(e[a],t);for(s=0;s<4;s++){for(d=i[s],r=[],a=0,u=e.length,o=u-1;a<u;o=a++)c=e[a],l=e[o],c._code&d?l._code&d||(f=In(l,c,d,t,n),f._code=Ln(f,t),r.push(f)):(l._code&d&&(f=In(l,c,d,t,n),f._code=Ln(f,t),r.push(f)),r.push(c));e=r}return e}function Tn(e,t){var n,r,i,a,o,s,c,l,u;if(!e||e.length===0)throw Error(`latlngs not passed`);q(e)||(console.warn(`latlngs are not flat! Only the first ring will be used`),e=e[0]);var d=O([0,0]),f=E(e);f.getNorthWest().distanceTo(f.getSouthWest())*f.getNorthEast().distanceTo(f.getNorthWest())<1700&&(d=En(e));var p=e.length,m=[];for(n=0;n<p;n++){var h=O(e[n]);m.push(t.project(O([h.lat-d.lat,h.lng-d.lng])))}for(s=c=l=0,n=0,r=p-1;n<p;r=n++)i=m[n],a=m[r],o=i.y*a.x-a.y*i.x,c+=(i.x+a.x)*o,l+=(i.y+a.y)*o,s+=o*3;u=s===0?m[0]:[c/s,l/s];var g=t.unproject(S(u));return O([g.lat+d.lat,g.lng+d.lng])}function En(e){for(var t=0,n=0,r=0,i=0;i<e.length;i++){var a=O(e[i]);t+=a.lat,n+=a.lng,r++}return O([t/r,n/r])}var Dn={__proto__:null,clipPolygon:wn,polygonCenter:Tn,centroid:En};function On(e,t){if(!t||!e.length)return e.slice();var n=t*t;return e=Nn(e,n),e=jn(e,n),e}function kn(e,t,n){return Math.sqrt(zn(e,t,n,!0))}function An(e,t,n){return zn(e,t,n)}function jn(e,t){var n=e.length,r=new(typeof Uint8Array<`u`?Uint8Array:Array)(n);r[0]=r[n-1]=1,Mn(e,r,t,0,n-1);var i,a=[];for(i=0;i<n;i++)r[i]&&a.push(e[i]);return a}function Mn(e,t,n,r,i){var a=0,o,s,c;for(s=r+1;s<=i-1;s++)c=zn(e[s],e[r],e[i],!0),c>a&&(o=s,a=c);a>n&&(t[o]=1,Mn(e,t,n,r,o),Mn(e,t,n,o,i))}function Nn(e,t){for(var n=[e[0]],r=1,i=0,a=e.length;r<a;r++)Rn(e[r],e[i])>t&&(n.push(e[r]),i=r);return i<a-1&&n.push(e[a-1]),n}var Pn;function Fn(e,t,n,r,i){var a=r?Pn:Ln(e,n),o=Ln(t,n),s,c,l;for(Pn=o;;){if(!(a|o))return[e,t];if(a&o)return!1;s=a||o,c=In(e,t,s,n,i),l=Ln(c,n),s===a?(e=c,a=l):(t=c,o=l)}}function In(e,t,n,r,i){var a=t.x-e.x,o=t.y-e.y,s=r.min,c=r.max,l,u;return n&8?(l=e.x+a*(c.y-e.y)/o,u=c.y):n&4?(l=e.x+a*(s.y-e.y)/o,u=s.y):n&2?(l=c.x,u=e.y+o*(c.x-e.x)/a):n&1&&(l=s.x,u=e.y+o*(s.x-e.x)/a),new x(l,u,i)}function Ln(e,t){var n=0;return e.x<t.min.x?n|=1:e.x>t.max.x&&(n|=2),e.y<t.min.y?n|=4:e.y>t.max.y&&(n|=8),n}function Rn(e,t){var n=t.x-e.x,r=t.y-e.y;return n*n+r*r}function zn(e,t,n,r){var i=t.x,a=t.y,o=n.x-i,s=n.y-a,c=o*o+s*s,l;return c>0&&(l=((e.x-i)*o+(e.y-a)*s)/c,l>1?(i=n.x,a=n.y):l>0&&(i+=o*l,a+=s*l)),o=e.x-i,s=e.y-a,r?o*o+s*s:new x(i,a)}function q(e){return!g(e[0])||typeof e[0][0]!=`object`&&e[0][0]!==void 0}function Bn(e){return console.warn(`Deprecated use of _flat, please use L.LineUtil.isFlat instead.`),q(e)}function Vn(e,t){var n,r,i,a,o,s,c,l;if(!e||e.length===0)throw Error(`latlngs not passed`);q(e)||(console.warn(`latlngs are not flat! Only the first ring will be used`),e=e[0]);var u=O([0,0]),d=E(e);d.getNorthWest().distanceTo(d.getSouthWest())*d.getNorthEast().distanceTo(d.getNorthWest())<1700&&(u=En(e));var f=e.length,p=[];for(n=0;n<f;n++){var m=O(e[n]);p.push(t.project(O([m.lat-u.lat,m.lng-u.lng])))}for(n=0,r=0;n<f-1;n++)r+=p[n].distanceTo(p[n+1])/2;if(r===0)l=p[0];else for(n=0,a=0;n<f-1;n++)if(o=p[n],s=p[n+1],i=o.distanceTo(s),a+=i,a>r){c=(a-r)/i,l=[s.x-c*(s.x-o.x),s.y-c*(s.y-o.y)];break}var h=t.unproject(S(l));return O([h.lat+u.lat,h.lng+u.lng])}var Hn={__proto__:null,simplify:On,pointToSegmentDistance:kn,closestPointOnSegment:An,clipSegment:Fn,_getEdgeIntersection:In,_getBitCode:Ln,_sqClosestPointOnSegment:zn,isFlat:q,_flat:Bn,polylineCenter:Vn},Un={project:function(e){return new x(e.lng,e.lat)},unproject:function(e){return new D(e.y,e.x)},bounds:new C([-180,-90],[180,90])},Wn={R:6378137,R_MINOR:6356752.314245179,bounds:new C([-20037508.34279,-15496570.73972],[20037508.34279,18764656.23138]),project:function(e){var t=Math.PI/180,n=this.R,r=e.lat*t,i=this.R_MINOR/n,a=Math.sqrt(1-i*i),o=a*Math.sin(r),s=Math.tan(Math.PI/4-r/2)/((1-o)/(1+o))**(a/2);return r=-n*Math.log(Math.max(s,1e-10)),new x(e.lng*t*n,r)},unproject:function(e){for(var t=180/Math.PI,n=this.R,r=this.R_MINOR/n,i=Math.sqrt(1-r*r),a=Math.exp(-e.y/n),o=Math.PI/2-2*Math.atan(a),s=0,c=.1,l;s<15&&Math.abs(c)>1e-7;s++)l=i*Math.sin(o),l=((1-l)/(1+l))**(i/2),c=Math.PI/2-2*Math.atan(a*l)-o,o+=c;return new D(o*t,e.x*t/n)}},Gn={__proto__:null,LonLat:Un,Mercator:Wn,SphericalMercator:pe},Kn=t({},de,{code:`EPSG:3395`,projection:Wn,transformation:function(){var e=.5/(Math.PI*Wn.R);return he(e,.5,-e,.5)}()}),qn=t({},de,{code:`EPSG:4326`,projection:Un,transformation:he(1/180,1,-1/180,.5)}),Jn=t({},k,{projection:Un,transformation:he(1,0,-1,0),scale:function(e){return 2**e},zoom:function(e){return Math.log(e)/Math.LN2},distance:function(e,t){var n=t.lng-e.lng,r=t.lat-e.lat;return Math.sqrt(n*n+r*r)},infinite:!0});k.Earth=de,k.EPSG3395=Kn,k.EPSG3857=ge,k.EPSG900913=_e,k.EPSG4326=qn,k.Simple=Jn;var J=le.extend({options:{pane:`overlayPane`,attribution:null,bubblingMouseEvents:!0},addTo:function(e){return e.addLayer(this),this},remove:function(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom:function(e){return e&&e.removeLayer(this),this},getPane:function(e){return this._map.getPane(e?this.options[e]||e:this.options.pane)},addInteractiveTarget:function(e){return this._map._targets[a(e)]=this,this},removeInteractiveTarget:function(e){return delete this._map._targets[a(e)],this},getAttribution:function(){return this.options.attribution},_layerAdd:function(e){var t=e.target;if(t.hasLayer(this)){if(this._map=t,this._zoomAnimated=t._zoomAnimated,this.getEvents){var n=this.getEvents();t.on(n,this),this.once(`remove`,function(){t.off(n,this)},this)}this.onAdd(t),this.fire(`add`),t.fire(`layeradd`,{layer:this})}}});U.include({addLayer:function(e){if(!e._layerAdd)throw Error(`The provided object is not a Layer.`);var t=a(e);return this._layers[t]?this:(this._layers[t]=e,e._mapToAdd=this,e.beforeAdd&&e.beforeAdd(this),this.whenReady(e._layerAdd,e),this)},removeLayer:function(e){var t=a(e);return this._layers[t]?(this._loaded&&e.onRemove(this),delete this._layers[t],this._loaded&&(this.fire(`layerremove`,{layer:e}),e.fire(`remove`)),e._map=e._mapToAdd=null,this):this},hasLayer:function(e){return a(e)in this._layers},eachLayer:function(e,t){for(var n in this._layers)e.call(t,this._layers[n]);return this},_addLayers:function(e){e=e?g(e)?e:[e]:[];for(var t=0,n=e.length;t<n;t++)this.addLayer(e[t])},_addZoomLimit:function(e){(!isNaN(e.options.maxZoom)||!isNaN(e.options.minZoom))&&(this._zoomBoundLayers[a(e)]=e,this._updateZoomLevels())},_removeZoomLimit:function(e){var t=a(e);this._zoomBoundLayers[t]&&(delete this._zoomBoundLayers[t],this._updateZoomLevels())},_updateZoomLevels:function(){var e=1/0,t=-1/0,n=this._getZoomSpan();for(var r in this._zoomBoundLayers){var i=this._zoomBoundLayers[r].options;e=i.minZoom===void 0?e:Math.min(e,i.minZoom),t=i.maxZoom===void 0?t:Math.max(t,i.maxZoom)}this._layersMaxZoom=t===-1/0?void 0:t,this._layersMinZoom=e===1/0?void 0:e,n!==this._getZoomSpan()&&this.fire(`zoomlevelschange`),this.options.maxZoom===void 0&&this._layersMaxZoom&&this.getZoom()>this._layersMaxZoom&&this.setZoom(this._layersMaxZoom),this.options.minZoom===void 0&&this._layersMinZoom&&this.getZoom()<this._layersMinZoom&&this.setZoom(this._layersMinZoom)}});var Yn=J.extend({initialize:function(e,t){f(this,t),this._layers={};var n,r;if(e)for(n=0,r=e.length;n<r;n++)this.addLayer(e[n])},addLayer:function(e){var t=this.getLayerId(e);return this._layers[t]=e,this._map&&this._map.addLayer(e),this},removeLayer:function(e){var t=e in this._layers?e:this.getLayerId(e);return this._map&&this._layers[t]&&this._map.removeLayer(this._layers[t]),delete this._layers[t],this},hasLayer:function(e){return(typeof e==`number`?e:this.getLayerId(e))in this._layers},clearLayers:function(){return this.eachLayer(this.removeLayer,this)},invoke:function(e){var t=Array.prototype.slice.call(arguments,1),n,r;for(n in this._layers)r=this._layers[n],r[e]&&r[e].apply(r,t);return this},onAdd:function(e){this.eachLayer(e.addLayer,e)},onRemove:function(e){this.eachLayer(e.removeLayer,e)},eachLayer:function(e,t){for(var n in this._layers)e.call(t,this._layers[n]);return this},getLayer:function(e){return this._layers[e]},getLayers:function(){var e=[];return this.eachLayer(e.push,e),e},setZIndex:function(e){return this.invoke(`setZIndex`,e)},getLayerId:function(e){return a(e)}}),Xn=function(e,t){return new Yn(e,t)},Y=Yn.extend({addLayer:function(e){return this.hasLayer(e)?this:(e.addEventParent(this),Yn.prototype.addLayer.call(this,e),this.fire(`layeradd`,{layer:e}))},removeLayer:function(e){return this.hasLayer(e)?(e in this._layers&&(e=this._layers[e]),e.removeEventParent(this),Yn.prototype.removeLayer.call(this,e),this.fire(`layerremove`,{layer:e})):this},setStyle:function(e){return this.invoke(`setStyle`,e)},bringToFront:function(){return this.invoke(`bringToFront`)},bringToBack:function(){return this.invoke(`bringToBack`)},getBounds:function(){var e=new T;for(var t in this._layers){var n=this._layers[t];e.extend(n.getBounds?n.getBounds():n.getLatLng())}return e}}),Zn=function(e,t){return new Y(e,t)},Qn=y.extend({options:{popupAnchor:[0,0],tooltipAnchor:[0,0],crossOrigin:!1},initialize:function(e){f(this,e)},createIcon:function(e){return this._createIcon(`icon`,e)},createShadow:function(e){return this._createIcon(`shadow`,e)},_createIcon:function(e,t){var n=this._getIconUrl(e);if(!n){if(e===`icon`)throw Error(`iconUrl not set in Icon options (see the docs).`);return null}var r=this._createImg(n,t&&t.tagName===`IMG`?t:null);return this._setIconStyles(r,e),(this.options.crossOrigin||this.options.crossOrigin===``)&&(r.crossOrigin=this.options.crossOrigin===!0?``:this.options.crossOrigin),r},_setIconStyles:function(e,t){var n=this.options,r=n[t+`Size`];typeof r==`number`&&(r=[r,r]);var i=S(r),a=S(t===`shadow`&&n.shadowAnchor||n.iconAnchor||i&&i.divideBy(2,!0));e.className=`leaflet-marker-`+t+` `+(n.className||``),a&&(e.style.marginLeft=-a.x+`px`,e.style.marginTop=-a.y+`px`),i&&(e.style.width=i.x+`px`,e.style.height=i.y+`px`)},_createImg:function(e,t){return t||=document.createElement(`img`),t.src=e,t},_getIconUrl:function(e){return j.retina&&this.options[e+`RetinaUrl`]||this.options[e+`Url`]}});function $n(e){return new Qn(e)}var er=Qn.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(e){return typeof er.imagePath!=`string`&&(er.imagePath=this._detectIconPath()),(this.options.imagePath||er.imagePath)+Qn.prototype._getIconUrl.call(this,e)},_stripUrl:function(e){var t=function(e,t,n){var r=t.exec(e);return r&&r[n]};return e=t(e,/^url\((['"])?(.+)\1\)$/,2),e&&t(e,/^(.*)marker-icon\.png$/,1)},_detectIconPath:function(){var e=M(`div`,`leaflet-default-icon-path`,document.body),t=Dt(e,`background-image`)||Dt(e,`backgroundImage`);if(document.body.removeChild(e),t=this._stripUrl(t),t)return t;var n=document.querySelector(`link[href$="leaflet.css"]`);return n?n.href.substring(0,n.href.length-11-1):``}}),tr=G.extend({initialize:function(e){this._marker=e},addHooks:function(){var e=this._marker._icon;this._draggable||=new K(e,e,!0),this._draggable.on({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).enable(),P(e,`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&&F(this._marker._icon,`leaflet-marker-draggable`)},moved:function(){return this._draggable&&this._draggable._moved},_adjustPan:function(e){var t=this._marker,n=t._map,r=this._marker.options.autoPanSpeed,i=this._marker.options.autoPanPadding,a=Lt(t._icon),o=n.getPixelBounds(),s=n.getPixelOrigin(),c=w(o.min._subtract(s).add(i),o.max._subtract(s).subtract(i));if(!c.contains(a)){var l=S((Math.max(c.max.x,a.x)-c.max.x)/(o.max.x-c.max.x)-(Math.min(c.min.x,a.x)-c.min.x)/(o.min.x-c.min.x),(Math.max(c.max.y,a.y)-c.max.y)/(o.max.y-c.max.y)-(Math.min(c.min.y,a.y)-c.min.y)/(o.min.y-c.min.y)).multiplyBy(r);n.panBy(l,{animate:!1}),this._draggable._newPos._add(l),this._draggable._startPos._add(l),R(t._icon,this._draggable._newPos),this._onDrag(e),this._panRequest=_(this._adjustPan.bind(this,e))}},_onDragStart:function(){this._oldLatLng=this._marker.getLatLng(),this._marker.closePopup&&this._marker.closePopup(),this._marker.fire(`movestart`).fire(`dragstart`)},_onPreDrag:function(e){this._marker.options.autoPan&&(v(this._panRequest),this._panRequest=_(this._adjustPan.bind(this,e)))},_onDrag:function(e){var t=this._marker,n=t._shadow,r=Lt(t._icon),i=t._map.layerPointToLatLng(r);n&&R(n,r),t._latlng=i,e.latlng=i,e.oldLatLng=this._oldLatLng,t.fire(`move`,e).fire(`drag`,e)},_onDragEnd:function(e){v(this._panRequest),delete this._oldLatLng,this._marker.fire(`moveend`).fire(`dragend`,e)}}),nr=J.extend({options:{icon:new er,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(e,t){f(this,t),this._latlng=O(e)},onAdd:function(e){this._zoomAnimated=this._zoomAnimated&&e.options.markerZoomAnimation,this._zoomAnimated&&e.on(`zoomanim`,this._animateZoom,this),this._initIcon(),this.update()},onRemove:function(e){this.dragging&&this.dragging.enabled()&&(this.options.draggable=!0,this.dragging.removeHooks()),delete this.dragging,this._zoomAnimated&&e.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(e){var t=this._latlng;return this._latlng=O(e),this.update(),this.fire(`move`,{oldLatLng:t,latlng:this._latlng})},setZIndexOffset:function(e){return this.options.zIndexOffset=e,this.update()},getIcon:function(){return this.options.icon},setIcon:function(e){return this.options.icon=e,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 e=this._map.latLngToLayerPoint(this._latlng).round();this._setPos(e)}return this},_initIcon:function(){var e=this.options,t=`leaflet-zoom-`+(this._zoomAnimated?`animated`:`hide`),n=e.icon.createIcon(this._icon),r=!1;n!==this._icon&&(this._icon&&this._removeIcon(),r=!0,e.title&&(n.title=e.title),n.tagName===`IMG`&&(n.alt=e.alt||``)),P(n,t),e.keyboard&&(n.tabIndex=`0`,n.setAttribute(`role`,`button`)),this._icon=n,e.riseOnHover&&this.on({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&z(n,`focus`,this._panOnFocus,this);var i=e.icon.createShadow(this._shadow),a=!1;i!==this._shadow&&(this._removeShadow(),a=!0),i&&(P(i,t),i.alt=``),this._shadow=i,e.opacity<1&&this._updateOpacity(),r&&this.getPane().appendChild(this._icon),this._initInteraction(),i&&a&&this.getPane(e.shadowPane).appendChild(this._shadow)},_removeIcon:function(){this.options.riseOnHover&&this.off({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&V(this._icon,`focus`,this._panOnFocus,this),N(this._icon),this.removeInteractiveTarget(this._icon),this._icon=null},_removeShadow:function(){this._shadow&&N(this._shadow),this._shadow=null},_setPos:function(e){this._icon&&R(this._icon,e),this._shadow&&R(this._shadow,e),this._zIndex=e.y+this.options.zIndexOffset,this._resetZIndex()},_updateZIndex:function(e){this._icon&&(this._icon.style.zIndex=this._zIndex+e)},_animateZoom:function(e){var t=this._map._latLngToNewLayerPoint(this._latlng,e.zoom,e.center).round();this._setPos(t)},_initInteraction:function(){if(this.options.interactive&&(P(this._icon,`leaflet-interactive`),this.addInteractiveTarget(this._icon),tr)){var e=this.options.draggable;this.dragging&&(e=this.dragging.enabled(),this.dragging.disable()),this.dragging=new tr(this),e&&this.dragging.enable()}},setOpacity:function(e){return this.options.opacity=e,this._map&&this._updateOpacity(),this},_updateOpacity:function(){var e=this.options.opacity;this._icon&&I(this._icon,e),this._shadow&&I(this._shadow,e)},_bringToFront:function(){this._updateZIndex(this.options.riseOffset)},_resetZIndex:function(){this._updateZIndex(0)},_panOnFocus:function(){var e=this._map;if(e){var t=this.options.icon.options,n=t.iconSize?S(t.iconSize):S(0,0),r=t.iconAnchor?S(t.iconAnchor):S(0,0);e.panInside(this._latlng,{paddingTopLeft:r,paddingBottomRight:n.subtract(r)})}},_getPopupAnchor:function(){return this.options.icon.options.popupAnchor},_getTooltipAnchor:function(){return this.options.icon.options.tooltipAnchor}});function rr(e,t){return new nr(e,t)}var ir=J.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(e){this._renderer=e.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(e){return f(this,e),this._renderer&&(this._renderer._updateStyle(this),this.options.stroke&&e&&Object.prototype.hasOwnProperty.call(e,`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)}}),ar=ir.extend({options:{fill:!0,radius:10},initialize:function(e,t){f(this,t),this._latlng=O(e),this._radius=this.options.radius},setLatLng:function(e){var t=this._latlng;return this._latlng=O(e),this.redraw(),this.fire(`move`,{oldLatLng:t,latlng:this._latlng})},getLatLng:function(){return this._latlng},setRadius:function(e){return this.options.radius=this._radius=e,this.redraw()},getRadius:function(){return this._radius},setStyle:function(e){var t=e&&e.radius||this._radius;return ir.prototype.setStyle.call(this,e),this.setRadius(t),this},_project:function(){this._point=this._map.latLngToLayerPoint(this._latlng),this._updateBounds()},_updateBounds:function(){var e=this._radius,t=this._radiusY||e,n=this._clickTolerance(),r=[e+n,t+n];this._pxBounds=new C(this._point.subtract(r),this._point.add(r))},_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(e){return e.distanceTo(this._point)<=this._radius+this._clickTolerance()}});function or(e,t){return new ar(e,t)}var sr=ar.extend({initialize:function(e,n,r){if(typeof n==`number`&&(n=t({},r,{radius:n})),f(this,n),this._latlng=O(e),isNaN(this.options.radius))throw Error(`Circle radius cannot be NaN`);this._mRadius=this.options.radius},setRadius:function(e){return this._mRadius=e,this.redraw()},getRadius:function(){return this._mRadius},getBounds:function(){var e=[this._radius,this._radiusY||this._radius];return new T(this._map.layerPointToLatLng(this._point.subtract(e)),this._map.layerPointToLatLng(this._point.add(e)))},setStyle:ir.prototype.setStyle,_project:function(){var e=this._latlng.lng,t=this._latlng.lat,n=this._map,r=n.options.crs;if(r.distance===de.distance){var i=Math.PI/180,a=this._mRadius/de.R/i,o=n.project([t+a,e]),s=n.project([t-a,e]),c=o.add(s).divideBy(2),l=n.unproject(c).lat,u=Math.acos((Math.cos(a*i)-Math.sin(t*i)*Math.sin(l*i))/(Math.cos(t*i)*Math.cos(l*i)))/i;(isNaN(u)||u===0)&&(u=a/Math.cos(Math.PI/180*t)),this._point=c.subtract(n.getPixelOrigin()),this._radius=isNaN(u)?0:c.x-n.project([l,e-u]).x,this._radiusY=c.y-o.y}else{var d=r.unproject(r.project(this._latlng).subtract([this._mRadius,0]));this._point=n.latLngToLayerPoint(this._latlng),this._radius=this._point.x-n.latLngToLayerPoint(d).x}this._updateBounds()}});function cr(e,t,n){return new sr(e,t,n)}var X=ir.extend({options:{smoothFactor:1,noClip:!1},initialize:function(e,t){f(this,t),this._setLatLngs(e)},getLatLngs:function(){return this._latlngs},setLatLngs:function(e){return this._setLatLngs(e),this.redraw()},isEmpty:function(){return!this._latlngs.length},closestLayerPoint:function(e){for(var t=1/0,n=null,r=zn,i,a,o=0,s=this._parts.length;o<s;o++)for(var c=this._parts[o],l=1,u=c.length;l<u;l++){i=c[l-1],a=c[l];var d=r(e,i,a,!0);d<t&&(t=d,n=r(e,i,a))}return n&&(n.distance=Math.sqrt(t)),n},getCenter:function(){if(!this._map)throw Error(`Must add layer to map before using getCenter()`);return Vn(this._defaultShape(),this._map.options.crs)},getBounds:function(){return this._bounds},addLatLng:function(e,t){return t||=this._defaultShape(),e=O(e),t.push(e),this._bounds.extend(e),this.redraw()},_setLatLngs:function(e){this._bounds=new T,this._latlngs=this._convertLatLngs(e)},_defaultShape:function(){return q(this._latlngs)?this._latlngs:this._latlngs[0]},_convertLatLngs:function(e){for(var t=[],n=q(e),r=0,i=e.length;r<i;r++)n?(t[r]=O(e[r]),this._bounds.extend(t[r])):t[r]=this._convertLatLngs(e[r]);return t},_project:function(){var e=new C;this._rings=[],this._projectLatlngs(this._latlngs,this._rings,e),this._bounds.isValid()&&e.isValid()&&(this._rawPxBounds=e,this._updateBounds())},_updateBounds:function(){var e=this._clickTolerance(),t=new x(e,e);this._rawPxBounds&&(this._pxBounds=new C([this._rawPxBounds.min.subtract(t),this._rawPxBounds.max.add(t)]))},_projectLatlngs:function(e,t,n){var r=e[0]instanceof D,i=e.length,a,o;if(r){for(o=[],a=0;a<i;a++)o[a]=this._map.latLngToLayerPoint(e[a]),n.extend(o[a]);t.push(o)}else for(a=0;a<i;a++)this._projectLatlngs(e[a],t,n)},_clipPoints:function(){var e=this._renderer._bounds;if(this._parts=[],!(!this._pxBounds||!this._pxBounds.intersects(e))){if(this.options.noClip){this._parts=this._rings;return}var t=this._parts,n,r,i,a,o,s,c;for(n=0,i=0,a=this._rings.length;n<a;n++)for(c=this._rings[n],r=0,o=c.length;r<o-1;r++)s=Fn(c[r],c[r+1],e,r,!0),s&&(t[i]=t[i]||[],t[i].push(s[0]),(s[1]!==c[r+1]||r===o-2)&&(t[i].push(s[1]),i++))}},_simplifyPoints:function(){for(var e=this._parts,t=this.options.smoothFactor,n=0,r=e.length;n<r;n++)e[n]=On(e[n],t)},_update:function(){this._map&&(this._clipPoints(),this._simplifyPoints(),this._updatePath())},_updatePath:function(){this._renderer._updatePoly(this)},_containsPoint:function(e,t){var n,r,i,a,o,s,c=this._clickTolerance();if(!this._pxBounds||!this._pxBounds.contains(e))return!1;for(n=0,a=this._parts.length;n<a;n++)for(s=this._parts[n],r=0,o=s.length,i=o-1;r<o;i=r++)if(!(!t&&r===0)&&kn(e,s[i],s[r])<=c)return!0;return!1}});function lr(e,t){return new X(e,t)}X._flat=Bn;var ur=X.extend({options:{fill:!0},isEmpty:function(){return!this._latlngs.length||!this._latlngs[0].length},getCenter:function(){if(!this._map)throw Error(`Must add layer to map before using getCenter()`);return Tn(this._defaultShape(),this._map.options.crs)},_convertLatLngs:function(e){var t=X.prototype._convertLatLngs.call(this,e),n=t.length;return n>=2&&t[0]instanceof D&&t[0].equals(t[n-1])&&t.pop(),t},_setLatLngs:function(e){X.prototype._setLatLngs.call(this,e),q(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return q(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var e=this._renderer._bounds,t=this.options.weight,n=new x(t,t);if(e=new C(e.min.subtract(n),e.max.add(n)),this._parts=[],!(!this._pxBounds||!this._pxBounds.intersects(e))){if(this.options.noClip){this._parts=this._rings;return}for(var r=0,i=this._rings.length,a;r<i;r++)a=wn(this._rings[r],e,!0),a.length&&this._parts.push(a)}},_updatePath:function(){this._renderer._updatePoly(this,!0)},_containsPoint:function(e){var t=!1,n,r,i,a,o,s,c,l;if(!this._pxBounds||!this._pxBounds.contains(e))return!1;for(a=0,c=this._parts.length;a<c;a++)for(n=this._parts[a],o=0,l=n.length,s=l-1;o<l;s=o++)r=n[o],i=n[s],r.y>e.y!=i.y>e.y&&e.x<(i.x-r.x)*(e.y-r.y)/(i.y-r.y)+r.x&&(t=!t);return t||X.prototype._containsPoint.call(this,e,!0)}});function dr(e,t){return new ur(e,t)}var Z=Y.extend({initialize:function(e,t){f(this,t),this._layers={},e&&this.addData(e)},addData:function(e){var t=g(e)?e:e.features,n,r,i;if(t){for(n=0,r=t.length;n<r;n++)i=t[n],(i.geometries||i.geometry||i.features||i.coordinates)&&this.addData(i);return this}var a=this.options;if(a.filter&&!a.filter(e))return this;var o=fr(e,a);return o?(o.feature=yr(e),o.defaultOptions=o.options,this.resetStyle(o),a.onEachFeature&&a.onEachFeature(e,o),this.addLayer(o)):this},resetStyle:function(e){return e===void 0?this.eachLayer(this.resetStyle,this):(e.options=t({},e.defaultOptions),this._setLayerStyle(e,this.options.style),this)},setStyle:function(e){return this.eachLayer(function(t){this._setLayerStyle(t,e)},this)},_setLayerStyle:function(e,t){e.setStyle&&(typeof t==`function`&&(t=t(e.feature)),e.setStyle(t))}});function fr(e,t){var n=e.type===`Feature`?e.geometry:e,r=n?n.coordinates:null,i=[],a=t&&t.pointToLayer,o=t&&t.coordsToLatLng||mr,s,c,l,u;if(!r&&!n)return null;switch(n.type){case`Point`:return s=o(r),pr(a,e,s,t);case`MultiPoint`:for(l=0,u=r.length;l<u;l++)s=o(r[l]),i.push(pr(a,e,s,t));return new Y(i);case`LineString`:case`MultiLineString`:return c=hr(r,n.type===`LineString`?0:1,o),new X(c,t);case`Polygon`:case`MultiPolygon`:return c=hr(r,n.type===`Polygon`?1:2,o),new ur(c,t);case`GeometryCollection`:for(l=0,u=n.geometries.length;l<u;l++){var d=fr({geometry:n.geometries[l],type:`Feature`,properties:e.properties},t);d&&i.push(d)}return new Y(i);case`FeatureCollection`:for(l=0,u=n.features.length;l<u;l++){var f=fr(n.features[l],t);f&&i.push(f)}return new Y(i);default:throw Error(`Invalid GeoJSON object.`)}}function pr(e,t,n,r){return e?e(t,n):new nr(n,r&&r.markersInheritOptions&&r)}function mr(e){return new D(e[1],e[0],e[2])}function hr(e,t,n){for(var r=[],i=0,a=e.length,o;i<a;i++)o=t?hr(e[i],t-1,n):(n||mr)(e[i]),r.push(o);return r}function gr(e,t){return e=O(e),e.alt===void 0?[l(e.lng,t),l(e.lat,t)]:[l(e.lng,t),l(e.lat,t),l(e.alt,t)]}function _r(e,t,n,r){for(var i=[],a=0,o=e.length;a<o;a++)i.push(t?_r(e[a],q(e[a])?0:t-1,n,r):gr(e[a],r));return!t&&n&&i.length>0&&i.push(i[0].slice()),i}function vr(e,n){return e.feature?t({},e.feature,{geometry:n}):yr(n)}function yr(e){return e.type===`Feature`||e.type===`FeatureCollection`?e:{type:`Feature`,properties:{},geometry:e}}var br={toGeoJSON:function(e){return vr(this,{type:`Point`,coordinates:gr(this.getLatLng(),e)})}};nr.include(br),sr.include(br),ar.include(br),X.include({toGeoJSON:function(e){var t=!q(this._latlngs),n=_r(this._latlngs,t?1:0,!1,e);return vr(this,{type:(t?`Multi`:``)+`LineString`,coordinates:n})}}),ur.include({toGeoJSON:function(e){var t=!q(this._latlngs),n=t&&!q(this._latlngs[0]),r=_r(this._latlngs,n?2:t?1:0,!0,e);return t||(r=[r]),vr(this,{type:(n?`Multi`:``)+`Polygon`,coordinates:r})}}),Yn.include({toMultiPoint:function(e){var t=[];return this.eachLayer(function(n){t.push(n.toGeoJSON(e).geometry.coordinates)}),vr(this,{type:`MultiPoint`,coordinates:t})},toGeoJSON:function(e){var t=this.feature&&this.feature.geometry&&this.feature.geometry.type;if(t===`MultiPoint`)return this.toMultiPoint(e);var n=t===`GeometryCollection`,r=[];return this.eachLayer(function(t){if(t.toGeoJSON){var i=t.toGeoJSON(e);if(n)r.push(i.geometry);else{var a=yr(i);a.type===`FeatureCollection`?r.push.apply(r,a.features):r.push(a)}}}),n?vr(this,{geometries:r,type:`GeometryCollection`}):{type:`FeatureCollection`,features:r}}});function xr(e,t){return new Z(e,t)}var Sr=xr,Cr=J.extend({options:{opacity:1,alt:``,interactive:!1,crossOrigin:!1,errorOverlayUrl:``,zIndex:1,className:``},initialize:function(e,t,n){this._url=e,this._bounds=E(t),f(this,n)},onAdd:function(){this._image||(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(P(this._image,`leaflet-interactive`),this.addInteractiveTarget(this._image)),this.getPane().appendChild(this._image),this._reset()},onRemove:function(){N(this._image),this.options.interactive&&this.removeInteractiveTarget(this._image)},setOpacity:function(e){return this.options.opacity=e,this._image&&this._updateOpacity(),this},setStyle:function(e){return e.opacity&&this.setOpacity(e.opacity),this},bringToFront:function(){return this._map&&kt(this._image),this},bringToBack:function(){return this._map&&At(this._image),this},setUrl:function(e){return this._url=e,this._image&&(this._image.src=e),this},setBounds:function(e){return this._bounds=E(e),this._map&&this._reset(),this},getEvents:function(){var e={zoom:this._reset,viewreset:this._reset};return this._zoomAnimated&&(e.zoomanim=this._animateZoom),e},setZIndex:function(e){return this.options.zIndex=e,this._updateZIndex(),this},getBounds:function(){return this._bounds},getElement:function(){return this._image},_initImage:function(){var e=this._url.tagName===`IMG`,t=this._image=e?this._url:M(`img`);if(P(t,`leaflet-image-layer`),this._zoomAnimated&&P(t,`leaflet-zoom-animated`),this.options.className&&P(t,this.options.className),t.onselectstart=c,t.onmousemove=c,t.onload=r(this.fire,this,`load`),t.onerror=r(this._overlayOnError,this,`error`),(this.options.crossOrigin||this.options.crossOrigin===``)&&(t.crossOrigin=this.options.crossOrigin===!0?``:this.options.crossOrigin),this.options.zIndex&&this._updateZIndex(),e){this._url=t.src;return}t.src=this._url,t.alt=this.options.alt},_animateZoom:function(e){var t=this._map.getZoomScale(e.zoom),n=this._map._latLngBoundsToNewLayerBounds(this._bounds,e.zoom,e.center).min;It(this._image,n,t)},_reset:function(){var e=this._image,t=new C(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),n=t.getSize();R(e,t.min),e.style.width=n.x+`px`,e.style.height=n.y+`px`},_updateOpacity:function(){I(this._image,this.options.opacity)},_updateZIndex:function(){this._image&&this.options.zIndex!==void 0&&this.options.zIndex!==null&&(this._image.style.zIndex=this.options.zIndex)},_overlayOnError:function(){this.fire(`error`);var e=this.options.errorOverlayUrl;e&&this._url!==e&&(this._url=e,this._image.src=e)},getCenter:function(){return this._bounds.getCenter()}}),wr=function(e,t,n){return new Cr(e,t,n)},Tr=Cr.extend({options:{autoplay:!0,loop:!0,keepAspectRatio:!0,muted:!1,playsInline:!0},_initImage:function(){var e=this._url.tagName===`VIDEO`,t=this._image=e?this._url:M(`video`);if(P(t,`leaflet-image-layer`),this._zoomAnimated&&P(t,`leaflet-zoom-animated`),this.options.className&&P(t,this.options.className),t.onselectstart=c,t.onmousemove=c,t.onloadeddata=r(this.fire,this,`load`),e){for(var n=t.getElementsByTagName(`source`),i=[],a=0;a<n.length;a++)i.push(n[a].src);this._url=n.length>0?i:[t.src];return}g(this._url)||(this._url=[this._url]),!this.options.keepAspectRatio&&Object.prototype.hasOwnProperty.call(t.style,`objectFit`)&&(t.style.objectFit=`fill`),t.autoplay=!!this.options.autoplay,t.loop=!!this.options.loop,t.muted=!!this.options.muted,t.playsInline=!!this.options.playsInline;for(var o=0;o<this._url.length;o++){var s=M(`source`);s.src=this._url[o],t.appendChild(s)}}});function Er(e,t,n){return new Tr(e,t,n)}var Dr=Cr.extend({_initImage:function(){var e=this._image=this._url;P(e,`leaflet-image-layer`),this._zoomAnimated&&P(e,`leaflet-zoom-animated`),this.options.className&&P(e,this.options.className),e.onselectstart=c,e.onmousemove=c}});function Or(e,t,n){return new Dr(e,t,n)}var Q=J.extend({options:{interactive:!1,offset:[0,0],className:``,pane:void 0,content:``},initialize:function(e,t){e&&(e instanceof D||g(e))?(this._latlng=O(e),f(this,t)):(f(this,e),this._source=t),this.options.content&&(this._content=this.options.content)},openOn:function(e){return e=arguments.length?e:this._source._map,e.hasLayer(this)||e.addLayer(this),this},close:function(){return this._map&&this._map.removeLayer(this),this},toggle:function(e){return this._map?this.close():(arguments.length?this._source=e:e=this._source,this._prepareOpen(),this.openOn(e._map)),this},onAdd:function(e){this._zoomAnimated=e._zoomAnimated,this._container||this._initLayout(),e._fadeAnimated&&I(this._container,0),clearTimeout(this._removeTimeout),this.getPane().appendChild(this._container),this.update(),e._fadeAnimated&&I(this._container,1),this.bringToFront(),this.options.interactive&&(P(this._container,`leaflet-interactive`),this.addInteractiveTarget(this._container))},onRemove:function(e){e._fadeAnimated?(I(this._container,0),this._removeTimeout=setTimeout(r(N,void 0,this._container),200)):N(this._container),this.options.interactive&&(F(this._container,`leaflet-interactive`),this.removeInteractiveTarget(this._container))},getLatLng:function(){return this._latlng},setLatLng:function(e){return this._latlng=O(e),this._map&&(this._updatePosition(),this._adjustPan()),this},getContent:function(){return this._content},setContent:function(e){return this._content=e,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 e={zoom:this._updatePosition,viewreset:this._updatePosition};return this._zoomAnimated&&(e.zoomanim=this._animateZoom),e},isOpen:function(){return!!this._map&&this._map.hasLayer(this)},bringToFront:function(){return this._map&&kt(this._container),this},bringToBack:function(){return this._map&&At(this._container),this},_prepareOpen:function(e){var t=this._source;if(!t._map)return!1;if(t instanceof Y){t=null;var n=this._source._layers;for(var r in n)if(n[r]._map){t=n[r];break}if(!t)return!1;this._source=t}if(!e)if(t.getCenter)e=t.getCenter();else if(t.getLatLng)e=t.getLatLng();else if(t.getBounds)e=t.getBounds().getCenter();else throw Error(`Unable to get source layer LatLng.`);return this.setLatLng(e),this._map&&this.update(),!0},_updateContent:function(){if(this._content){var e=this._contentNode,t=typeof this._content==`function`?this._content(this._source||this):this._content;if(typeof t==`string`)e.innerHTML=t;else{for(;e.hasChildNodes();)e.removeChild(e.firstChild);e.appendChild(t)}this.fire(`contentupdate`)}},_updatePosition:function(){if(this._map){var e=this._map.latLngToLayerPoint(this._latlng),t=S(this.options.offset),n=this._getAnchor();this._zoomAnimated?R(this._container,e.add(n)):t=t.add(e).add(n);var r=this._containerBottom=-t.y,i=this._containerLeft=-Math.round(this._containerWidth/2)+t.x;this._container.style.bottom=r+`px`,this._container.style.left=i+`px`}},_getAnchor:function(){return[0,0]}});U.include({_initOverlay:function(e,t,n,r){var i=t;return i instanceof e||(i=new e(r).setContent(t)),n&&i.setLatLng(n),i}}),J.include({_initOverlay:function(e,t,n,r){var i=n;return i instanceof e?(f(i,r),i._source=this):(i=t&&!r?t:new e(r,this),i.setContent(n)),i}});var kr=Q.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(e){return e=arguments.length?e:this._source._map,!e.hasLayer(this)&&e._popup&&e._popup.options.autoClose&&e.removeLayer(e._popup),e._popup=this,Q.prototype.openOn.call(this,e)},onAdd:function(e){Q.prototype.onAdd.call(this,e),e.fire(`popupopen`,{popup:this}),this._source&&(this._source.fire(`popupopen`,{popup:this},!0),this._source instanceof ir||this._source.on(`preclick`,tn))},onRemove:function(e){Q.prototype.onRemove.call(this,e),e.fire(`popupclose`,{popup:this}),this._source&&(this._source.fire(`popupclose`,{popup:this},!0),this._source instanceof ir||this._source.off(`preclick`,tn))},getEvents:function(){var e=Q.prototype.getEvents.call(this);return(this.options.closeOnClick===void 0?this._map.options.closePopupOnClick:this.options.closeOnClick)&&(e.preclick=this.close),this.options.keepInView&&(e.moveend=this._adjustPan),e},_initLayout:function(){var e=`leaflet-popup`,t=this._container=M(`div`,e+` `+(this.options.className||``)+` leaflet-zoom-animated`),n=this._wrapper=M(`div`,e+`-content-wrapper`,t);if(this._contentNode=M(`div`,e+`-content`,n),rn(t),nn(this._contentNode),z(t,`contextmenu`,tn),this._tipContainer=M(`div`,e+`-tip-container`,t),this._tip=M(`div`,e+`-tip`,this._tipContainer),this.options.closeButton){var r=this._closeButton=M(`a`,e+`-close-button`,t);r.setAttribute(`role`,`button`),r.setAttribute(`aria-label`,`Close popup`),r.href=`#close`,r.innerHTML=`<span aria-hidden="true">×</span>`,z(r,`click`,function(e){H(e),this.close()},this)}},_updateLayout:function(){var e=this._contentNode,t=e.style;t.width=``,t.whiteSpace=`nowrap`;var n=e.offsetWidth;n=Math.min(n,this.options.maxWidth),n=Math.max(n,this.options.minWidth),t.width=n+1+`px`,t.whiteSpace=``,t.height=``;var r=e.offsetHeight,i=this.options.maxHeight,a=`leaflet-popup-scrolled`;i&&r>i?(t.height=i+`px`,P(e,a)):F(e,a),this._containerWidth=this._container.offsetWidth},_animateZoom:function(e){var t=this._map._latLngToNewLayerPoint(this._latlng,e.zoom,e.center),n=this._getAnchor();R(this._container,t.add(n))},_adjustPan:function(){if(this.options.autoPan){if(this._map._panAnim&&this._map._panAnim.stop(),this._autopanning){this._autopanning=!1;return}var e=this._map,t=parseInt(Dt(this._container,`marginBottom`),10)||0,n=this._container.offsetHeight+t,r=this._containerWidth,i=new x(this._containerLeft,-n-this._containerBottom);i._add(Lt(this._container));var a=e.layerPointToContainerPoint(i),o=S(this.options.autoPanPadding),s=S(this.options.autoPanPaddingTopLeft||o),c=S(this.options.autoPanPaddingBottomRight||o),l=e.getSize(),u=0,d=0;a.x+r+c.x>l.x&&(u=a.x+r-l.x+c.x),a.x-u-s.x<0&&(u=a.x-s.x),a.y+n+c.y>l.y&&(d=a.y+n-l.y+c.y),a.y-d-s.y<0&&(d=a.y-s.y),(u||d)&&(this.options.keepInView&&(this._autopanning=!0),e.fire(`autopanstart`).panBy([u,d]))}},_getAnchor:function(){return S(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}}),Ar=function(e,t){return new kr(e,t)};U.mergeOptions({closePopupOnClick:!0}),U.include({openPopup:function(e,t,n){return this._initOverlay(kr,e,t,n).openOn(this),this},closePopup:function(e){return e=arguments.length?e:this._popup,e&&e.close(),this}}),J.include({bindPopup:function(e,t){return this._popup=this._initOverlay(kr,this._popup,e,t),this._popupHandlersAdded||=(this.on({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),!0),this},unbindPopup:function(){return this._popup&&=(this.off({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!1,null),this},openPopup:function(e){return this._popup&&(this instanceof Y||(this._popup._source=this),this._popup._prepareOpen(e||this._latlng)&&this._popup.openOn(this._map)),this},closePopup:function(){return this._popup&&this._popup.close(),this},togglePopup:function(){return this._popup&&this._popup.toggle(this),this},isPopupOpen:function(){return this._popup?this._popup.isOpen():!1},setPopupContent:function(e){return this._popup&&this._popup.setContent(e),this},getPopup:function(){return this._popup},_openPopup:function(e){if(!(!this._popup||!this._map)){an(e);var t=e.layer||e.target;if(this._popup._source===t&&!(t instanceof ir)){this._map.hasLayer(this._popup)?this.closePopup():this.openPopup(e.latlng);return}this._popup._source=t,this.openPopup(e.latlng)}},_movePopup:function(e){this._popup.setLatLng(e.latlng)},_onKeyPress:function(e){e.originalEvent.keyCode===13&&this._openPopup(e)}});var jr=Q.extend({options:{pane:`tooltipPane`,offset:[0,0],direction:`auto`,permanent:!1,sticky:!1,opacity:.9},onAdd:function(e){Q.prototype.onAdd.call(this,e),this.setOpacity(this.options.opacity),e.fire(`tooltipopen`,{tooltip:this}),this._source&&(this.addEventParent(this._source),this._source.fire(`tooltipopen`,{tooltip:this},!0))},onRemove:function(e){Q.prototype.onRemove.call(this,e),e.fire(`tooltipclose`,{tooltip:this}),this._source&&(this.removeEventParent(this._source),this._source.fire(`tooltipclose`,{tooltip:this},!0))},getEvents:function(){var e=Q.prototype.getEvents.call(this);return this.options.permanent||(e.preclick=this.close),e},_initLayout:function(){this._contentNode=this._container=M(`div`,`leaflet-tooltip `+(this.options.className||``)+` leaflet-zoom-`+(this._zoomAnimated?`animated`:`hide`)),this._container.setAttribute(`role`,`tooltip`),this._container.setAttribute(`id`,`leaflet-tooltip-`+a(this))},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(e){var t,n,r=this._map,i=this._container,a=r.latLngToContainerPoint(r.getCenter()),o=r.layerPointToContainerPoint(e),s=this.options.direction,c=i.offsetWidth,l=i.offsetHeight,u=S(this.options.offset),d=this._getAnchor();s===`top`?(t=c/2,n=l):s===`bottom`?(t=c/2,n=0):s===`center`?(t=c/2,n=l/2):s===`right`?(t=0,n=l/2):s===`left`?(t=c,n=l/2):o.x<a.x?(s=`right`,t=0,n=l/2):(s=`left`,t=c+(u.x+d.x)*2,n=l/2),e=e.subtract(S(t,n,!0)).add(u).add(d),F(i,`leaflet-tooltip-right`),F(i,`leaflet-tooltip-left`),F(i,`leaflet-tooltip-top`),F(i,`leaflet-tooltip-bottom`),P(i,`leaflet-tooltip-`+s),R(i,e)},_updatePosition:function(){var e=this._map.latLngToLayerPoint(this._latlng);this._setPosition(e)},setOpacity:function(e){this.options.opacity=e,this._container&&I(this._container,e)},_animateZoom:function(e){var t=this._map._latLngToNewLayerPoint(this._latlng,e.zoom,e.center);this._setPosition(t)},_getAnchor:function(){return S(this._source&&this._source._getTooltipAnchor&&!this.options.sticky?this._source._getTooltipAnchor():[0,0])}}),Mr=function(e,t){return new jr(e,t)};U.include({openTooltip:function(e,t,n){return this._initOverlay(jr,e,t,n).openOn(this),this},closeTooltip:function(e){return e.close(),this}}),J.include({bindTooltip:function(e,t){return this._tooltip&&this.isTooltipOpen()&&this.unbindTooltip(),this._tooltip=this._initOverlay(jr,this._tooltip,e,t),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(),null),this},_initTooltipInteractions:function(e){if(!(!e&&this._tooltipHandlersAdded)){var t=e?`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[t](n),this._tooltipHandlersAdded=!e}},openTooltip:function(e){return this._tooltip&&(this instanceof Y||(this._tooltip._source=this),this._tooltip._prepareOpen(e)&&(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(e){return this._tooltip&&this._tooltip.setContent(e),this},getTooltip:function(){return this._tooltip},_addFocusListeners:function(){this.getElement?this._addFocusListenersOnLayer(this):this.eachLayer&&this.eachLayer(this._addFocusListenersOnLayer,this)},_addFocusListenersOnLayer:function(e){var t=typeof e.getElement==`function`&&e.getElement();t&&(z(t,`focus`,function(){this._tooltip._source=e,this.openTooltip()},this),z(t,`blur`,this.closeTooltip,this))},_setAriaDescribedByOnLayer:function(e){var t=typeof e.getElement==`function`&&e.getElement();t&&t.setAttribute(`aria-describedby`,this._tooltip._container.id)},_openTooltip:function(e){if(!(!this._tooltip||!this._map)){if(this._map.dragging&&this._map.dragging.moving()&&!this._openOnceFlag){this._openOnceFlag=!0;var t=this;this._map.once(`moveend`,function(){t._openOnceFlag=!1,t._openTooltip(e)});return}this._tooltip._source=e.layer||e.target,this.openTooltip(this._tooltip.options.sticky?e.latlng:void 0)}},_moveTooltip:function(e){var t=e.latlng,n,r;this._tooltip.options.sticky&&e.originalEvent&&(n=this._map.mouseEventToContainerPoint(e.originalEvent),r=this._map.containerPointToLayerPoint(n),t=this._map.layerPointToLatLng(r)),this._tooltip.setLatLng(t)}});var Nr=Qn.extend({options:{iconSize:[12,12],html:!1,bgPos:null,className:`leaflet-div-icon`},createIcon:function(e){var t=e&&e.tagName===`DIV`?e:document.createElement(`div`),n=this.options;if(n.html instanceof Element?(Ot(t),t.appendChild(n.html)):t.innerHTML=n.html===!1?``:n.html,n.bgPos){var r=S(n.bgPos);t.style.backgroundPosition=-r.x+`px `+-r.y+`px`}return this._setIconStyles(t,`icon`),t},createShadow:function(){return null}});function Pr(e){return new Nr(e)}Qn.Default=er;var Fr=J.extend({options:{tileSize:256,opacity:1,updateWhenIdle:j.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(e){f(this,e)},onAdd:function(){this._initContainer(),this._levels={},this._tiles={},this._resetView()},beforeAdd:function(e){e._addZoomLimit(this)},onRemove:function(e){this._removeAllTiles(),N(this._container),e._removeZoomLimit(this),this._container=null,this._tileZoom=void 0},bringToFront:function(){return this._map&&(kt(this._container),this._setAutoZIndex(Math.max)),this},bringToBack:function(){return this._map&&(At(this._container),this._setAutoZIndex(Math.min)),this},getContainer:function(){return this._container},setOpacity:function(e){return this.options.opacity=e,this._updateOpacity(),this},setZIndex:function(e){return this.options.zIndex=e,this._updateZIndex(),this},isLoading:function(){return this._loading},redraw:function(){if(this._map){this._removeAllTiles();var e=this._clampZoom(this._map.getZoom());e!==this._tileZoom&&(this._tileZoom=e,this._updateLevels()),this._update()}return this},getEvents:function(){var e={viewprereset:this._invalidateAll,viewreset:this._resetView,zoom:this._resetView,moveend:this._onMoveEnd};return this.options.updateWhenIdle||(this._onMove||=o(this._onMoveEnd,this.options.updateInterval,this),e.move=this._onMove),this._zoomAnimated&&(e.zoomanim=this._animateZoom),e},createTile:function(){return document.createElement(`div`)},getTileSize:function(){var e=this.options.tileSize;return e instanceof x?e:new x(e,e)},_updateZIndex:function(){this._container&&this.options.zIndex!==void 0&&this.options.zIndex!==null&&(this._container.style.zIndex=this.options.zIndex)},_setAutoZIndex:function(e){for(var t=this.getPane().children,n=-e(-1/0,1/0),r=0,i=t.length,a;r<i;r++)a=t[r].style.zIndex,t[r]!==this._container&&a&&(n=e(n,+a));isFinite(n)&&(this.options.zIndex=n+e(-1,1),this._updateZIndex())},_updateOpacity:function(){if(this._map&&!j.ielt9){I(this._container,this.options.opacity);var e=+new Date,t=!1,n=!1;for(var r in this._tiles){var i=this._tiles[r];if(!(!i.current||!i.loaded)){var a=Math.min(1,(e-i.loaded)/200);I(i.el,a),a<1?t=!0:(i.active?n=!0:this._onOpaqueTile(i),i.active=!0)}}n&&!this._noPrune&&this._pruneTiles(),t&&(v(this._fadeFrame),this._fadeFrame=_(this._updateOpacity,this))}},_onOpaqueTile:c,_initContainer:function(){this._container||(this._container=M(`div`,`leaflet-layer `+(this.options.className||``)),this._updateZIndex(),this.options.opacity<1&&this._updateOpacity(),this.getPane().appendChild(this._container))},_updateLevels:function(){var e=this._tileZoom,t=this.options.maxZoom;if(e!==void 0){for(var n in this._levels)n=Number(n),this._levels[n].el.children.length||n===e?(this._levels[n].el.style.zIndex=t-Math.abs(e-n),this._onUpdateLevel(n)):(N(this._levels[n].el),this._removeTilesAtZoom(n),this._onRemoveLevel(n),delete this._levels[n]);var r=this._levels[e],i=this._map;return r||(r=this._levels[e]={},r.el=M(`div`,`leaflet-tile-container leaflet-zoom-animated`,this._container),r.el.style.zIndex=t,r.origin=i.project(i.unproject(i.getPixelOrigin()),e).round(),r.zoom=e,this._setZoomTransform(r,i.getCenter(),i.getZoom()),r.el.offsetWidth,this._onCreateLevel(r)),this._level=r,r}},_onUpdateLevel:c,_onRemoveLevel:c,_onCreateLevel:c,_pruneTiles:function(){if(this._map){var e,t,n=this._map.getZoom();if(n>this.options.maxZoom||n<this.options.minZoom){this._removeAllTiles();return}for(e in this._tiles)t=this._tiles[e],t.retain=t.current;for(e in this._tiles)if(t=this._tiles[e],t.current&&!t.active){var r=t.coords;this._retainParent(r.x,r.y,r.z,r.z-5)||this._retainChildren(r.x,r.y,r.z,r.z+2)}for(e in this._tiles)this._tiles[e].retain||this._removeTile(e)}},_removeTilesAtZoom:function(e){for(var t in this._tiles)this._tiles[t].coords.z===e&&this._removeTile(t)},_removeAllTiles:function(){for(var e in this._tiles)this._removeTile(e)},_invalidateAll:function(){for(var e in this._levels)N(this._levels[e].el),this._onRemoveLevel(Number(e)),delete this._levels[e];this._removeAllTiles(),this._tileZoom=void 0},_retainParent:function(e,t,n,r){var i=Math.floor(e/2),a=Math.floor(t/2),o=n-1,s=new x(+i,+a);s.z=+o;var c=this._tileCoordsToKey(s),l=this._tiles[c];return l&&l.active?(l.retain=!0,!0):(l&&l.loaded&&(l.retain=!0),o>r?this._retainParent(i,a,o,r):!1)},_retainChildren:function(e,t,n,r){for(var i=2*e;i<2*e+2;i++)for(var a=2*t;a<2*t+2;a++){var o=new x(i,a);o.z=n+1;var s=this._tileCoordsToKey(o),c=this._tiles[s];if(c&&c.active){c.retain=!0;continue}else c&&c.loaded&&(c.retain=!0);n+1<r&&this._retainChildren(i,a,n+1,r)}},_resetView:function(e){var t=e&&(e.pinch||e.flyTo);this._setView(this._map.getCenter(),this._map.getZoom(),t,t)},_animateZoom:function(e){this._setView(e.center,e.zoom,!0,e.noUpdate)},_clampZoom:function(e){var t=this.options;return t.minNativeZoom!==void 0&&e<t.minNativeZoom?t.minNativeZoom:t.maxNativeZoom!==void 0&&t.maxNativeZoom<e?t.maxNativeZoom:e},_setView:function(e,t,n,r){var i=Math.round(t);i=this.options.maxZoom!==void 0&&i>this.options.maxZoom||this.options.minZoom!==void 0&&i<this.options.minZoom?void 0:this._clampZoom(i);var a=this.options.updateWhenZooming&&i!==this._tileZoom;(!r||a)&&(this._tileZoom=i,this._abortLoading&&this._abortLoading(),this._updateLevels(),this._resetGrid(),i!==void 0&&this._update(e),n||this._pruneTiles(),this._noPrune=!!n),this._setZoomTransforms(e,t)},_setZoomTransforms:function(e,t){for(var n in this._levels)this._setZoomTransform(this._levels[n],e,t)},_setZoomTransform:function(e,t,n){var r=this._map.getZoomScale(n,e.zoom),i=e.origin.multiplyBy(r).subtract(this._map._getNewPixelOrigin(t,n)).round();j.any3d?It(e.el,i,r):R(e.el,i)},_resetGrid:function(){var e=this._map,t=e.options.crs,n=this._tileSize=this.getTileSize(),r=this._tileZoom,i=this._map.getPixelWorldBounds(this._tileZoom);i&&(this._globalTileRange=this._pxBoundsToTileRange(i)),this._wrapX=t.wrapLng&&!this.options.noWrap&&[Math.floor(e.project([0,t.wrapLng[0]],r).x/n.x),Math.ceil(e.project([0,t.wrapLng[1]],r).x/n.y)],this._wrapY=t.wrapLat&&!this.options.noWrap&&[Math.floor(e.project([t.wrapLat[0],0],r).y/n.x),Math.ceil(e.project([t.wrapLat[1],0],r).y/n.y)]},_onMoveEnd:function(){!this._map||this._map._animatingZoom||this._update()},_getTiledPixelBounds:function(e){var t=this._map,n=t._animatingZoom?Math.max(t._animateToZoom,t.getZoom()):t.getZoom(),r=t.getZoomScale(n,this._tileZoom),i=t.project(e,this._tileZoom).floor(),a=t.getSize().divideBy(r*2);return new C(i.subtract(a),i.add(a))},_update:function(e){var t=this._map;if(t){var n=this._clampZoom(t.getZoom());if(e===void 0&&(e=t.getCenter()),this._tileZoom!==void 0){var r=this._getTiledPixelBounds(e),i=this._pxBoundsToTileRange(r),a=i.getCenter(),o=[],s=this.options.keepBuffer,c=new C(i.getBottomLeft().subtract([s,-s]),i.getTopRight().add([s,-s]));if(!(isFinite(i.min.x)&&isFinite(i.min.y)&&isFinite(i.max.x)&&isFinite(i.max.y)))throw Error(`Attempted to load an infinite number of tiles`);for(var l in this._tiles){var u=this._tiles[l].coords;(u.z!==this._tileZoom||!c.contains(new x(u.x,u.y)))&&(this._tiles[l].current=!1)}if(Math.abs(n-this._tileZoom)>1){this._setView(e,n);return}for(var d=i.min.y;d<=i.max.y;d++)for(var f=i.min.x;f<=i.max.x;f++){var p=new x(f,d);if(p.z=this._tileZoom,this._isValidTile(p)){var m=this._tiles[this._tileCoordsToKey(p)];m?m.current=!0:o.push(p)}}if(o.sort(function(e,t){return e.distanceTo(a)-t.distanceTo(a)}),o.length!==0){this._loading||(this._loading=!0,this.fire(`loading`));var h=document.createDocumentFragment();for(f=0;f<o.length;f++)this._addTile(o[f],h);this._level.el.appendChild(h)}}}},_isValidTile:function(e){var t=this._map.options.crs;if(!t.infinite){var n=this._globalTileRange;if(!t.wrapLng&&(e.x<n.min.x||e.x>n.max.x)||!t.wrapLat&&(e.y<n.min.y||e.y>n.max.y))return!1}if(!this.options.bounds)return!0;var r=this._tileCoordsToBounds(e);return E(this.options.bounds).overlaps(r)},_keyToBounds:function(e){return this._tileCoordsToBounds(this._keyToTileCoords(e))},_tileCoordsToNwSe:function(e){var t=this._map,n=this.getTileSize(),r=e.scaleBy(n),i=r.add(n);return[t.unproject(r,e.z),t.unproject(i,e.z)]},_tileCoordsToBounds:function(e){var t=this._tileCoordsToNwSe(e),n=new T(t[0],t[1]);return this.options.noWrap||(n=this._map.wrapLatLngBounds(n)),n},_tileCoordsToKey:function(e){return e.x+`:`+e.y+`:`+e.z},_keyToTileCoords:function(e){var t=e.split(`:`),n=new x(+t[0],+t[1]);return n.z=+t[2],n},_removeTile:function(e){var t=this._tiles[e];t&&(N(t.el),delete this._tiles[e],this.fire(`tileunload`,{tile:t.el,coords:this._keyToTileCoords(e)}))},_initTile:function(e){P(e,`leaflet-tile`);var t=this.getTileSize();e.style.width=t.x+`px`,e.style.height=t.y+`px`,e.onselectstart=c,e.onmousemove=c,j.ielt9&&this.options.opacity<1&&I(e,this.options.opacity)},_addTile:function(e,t){var n=this._getTilePos(e),i=this._tileCoordsToKey(e),a=this.createTile(this._wrapCoords(e),r(this._tileReady,this,e));this._initTile(a),this.createTile.length<2&&_(r(this._tileReady,this,e,null,a)),R(a,n),this._tiles[i]={el:a,coords:e,current:!0},t.appendChild(a),this.fire(`tileloadstart`,{tile:a,coords:e})},_tileReady:function(e,t,n){t&&this.fire(`tileerror`,{error:t,tile:n,coords:e});var i=this._tileCoordsToKey(e);n=this._tiles[i],n&&(n.loaded=+new Date,this._map._fadeAnimated?(I(n.el,0),v(this._fadeFrame),this._fadeFrame=_(this._updateOpacity,this)):(n.active=!0,this._pruneTiles()),t||(P(n.el,`leaflet-tile-loaded`),this.fire(`tileload`,{tile:n.el,coords:e})),this._noTilesToLoad()&&(this._loading=!1,this.fire(`load`),j.ielt9||!this._map._fadeAnimated?_(this._pruneTiles,this):setTimeout(r(this._pruneTiles,this),250)))},_getTilePos:function(e){return e.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(e){var t=new x(this._wrapX?s(e.x,this._wrapX):e.x,this._wrapY?s(e.y,this._wrapY):e.y);return t.z=e.z,t},_pxBoundsToTileRange:function(e){var t=this.getTileSize();return new C(e.min.unscaleBy(t).floor(),e.max.unscaleBy(t).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var e in this._tiles)if(!this._tiles[e].loaded)return!1;return!0}});function Ir(e){return new Fr(e)}var Lr=Fr.extend({options:{minZoom:0,maxZoom:18,subdomains:`abc`,errorTileUrl:``,zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1,referrerPolicy:!1},initialize:function(e,t){this._url=e,t=f(this,t),t.detectRetina&&j.retina&&t.maxZoom>0?(t.tileSize=Math.floor(t.tileSize/2),t.zoomReverse?(t.zoomOffset--,t.minZoom=Math.min(t.maxZoom,t.minZoom+1)):(t.zoomOffset++,t.maxZoom=Math.max(t.minZoom,t.maxZoom-1)),t.minZoom=Math.max(0,t.minZoom)):t.zoomReverse?t.minZoom=Math.min(t.maxZoom,t.minZoom):t.maxZoom=Math.max(t.minZoom,t.maxZoom),typeof t.subdomains==`string`&&(t.subdomains=t.subdomains.split(``)),this.on(`tileunload`,this._onTileRemove)},setUrl:function(e,t){return this._url===e&&t===void 0&&(t=!0),this._url=e,t||this.redraw(),this},createTile:function(e,t){var n=document.createElement(`img`);return z(n,`load`,r(this._tileOnLoad,this,t,n)),z(n,`error`,r(this._tileOnError,this,t,n)),(this.options.crossOrigin||this.options.crossOrigin===``)&&(n.crossOrigin=this.options.crossOrigin===!0?``:this.options.crossOrigin),typeof this.options.referrerPolicy==`string`&&(n.referrerPolicy=this.options.referrerPolicy),n.alt=``,n.src=this.getTileUrl(e),n},getTileUrl:function(e){var n={r:j.retina?`@2x`:``,s:this._getSubdomain(e),x:e.x,y:e.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var r=this._globalTileRange.max.y-e.y;this.options.tms&&(n.y=r),n[`-y`]=r}return h(this._url,t(n,this.options))},_tileOnLoad:function(e,t){j.ielt9?setTimeout(r(e,this,null,t),0):e(null,t)},_tileOnError:function(e,t,n){var r=this.options.errorTileUrl;r&&t.getAttribute(`src`)!==r&&(t.src=r),e(n,t)},_onTileRemove:function(e){e.tile.onload=null},_getZoomForUrl:function(){var e=this._tileZoom,t=this.options.maxZoom,n=this.options.zoomReverse,r=this.options.zoomOffset;return n&&(e=t-e),e+r},_getSubdomain:function(e){var t=Math.abs(e.x+e.y)%this.options.subdomains.length;return this.options.subdomains[t]},_abortLoading:function(){var e,t;for(e in this._tiles)if(this._tiles[e].coords.z!==this._tileZoom&&(t=this._tiles[e].el,t.onload=c,t.onerror=c,!t.complete)){t.src=te;var n=this._tiles[e].coords;N(t),delete this._tiles[e],this.fire(`tileabort`,{tile:t,coords:n})}},_removeTile:function(e){var t=this._tiles[e];if(t)return t.el.setAttribute(`src`,te),Fr.prototype._removeTile.call(this,e)},_tileReady:function(e,t,n){if(!(!this._map||n&&n.getAttribute(`src`)===te))return Fr.prototype._tileReady.call(this,e,t,n)}});function Rr(e,t){return new Lr(e,t)}var zr=Lr.extend({defaultWmsParams:{service:`WMS`,request:`GetMap`,layers:``,styles:``,format:`image/jpeg`,transparent:!1,version:`1.1.1`},options:{crs:null,uppercase:!1},initialize:function(e,n){this._url=e;var r=t({},this.defaultWmsParams);for(var i in n)i in this.options||(r[i]=n[i]);n=f(this,n);var a=n.detectRetina&&j.retina?2:1,o=this.getTileSize();r.width=o.x*a,r.height=o.y*a,this.wmsParams=r},onAdd:function(e){this._crs=this.options.crs||e.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var t=this._wmsVersion>=1.3?`crs`:`srs`;this.wmsParams[t]=this._crs.code,Lr.prototype.onAdd.call(this,e)},getTileUrl:function(e){var t=this._tileCoordsToNwSe(e),n=this._crs,r=w(n.project(t[0]),n.project(t[1])),i=r.min,a=r.max,o=(this._wmsVersion>=1.3&&this._crs===qn?[i.y,i.x,a.y,a.x]:[i.x,i.y,a.x,a.y]).join(`,`),s=Lr.prototype.getTileUrl.call(this,e);return s+p(this.wmsParams,s,this.options.uppercase)+(this.options.uppercase?`&BBOX=`:`&bbox=`)+o},setParams:function(e,n){return t(this.wmsParams,e),n||this.redraw(),this}});function Br(e,t){return new zr(e,t)}Lr.WMS=zr,Rr.wms=Br;var $=J.extend({options:{padding:.1},initialize:function(e){f(this,e),a(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),P(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 e={viewreset:this._reset,zoom:this._onZoom,moveend:this._update,zoomend:this._onZoomEnd};return this._zoomAnimated&&(e.zoomanim=this._onAnimZoom),e},_onAnimZoom:function(e){this._updateTransform(e.center,e.zoom)},_onZoom:function(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform:function(e,t){var n=this._map.getZoomScale(t,this._zoom),r=this._map.getSize().multiplyBy(.5+this.options.padding),i=this._map.project(this._center,t),a=r.multiplyBy(-n).add(i).subtract(this._map._getNewPixelOrigin(e,t));j.any3d?It(this._container,a,n):R(this._container,a)},_reset:function(){for(var e in this._update(),this._updateTransform(this._center,this._zoom),this._layers)this._layers[e]._reset()},_onZoomEnd:function(){for(var e in this._layers)this._layers[e]._project()},_updatePaths:function(){for(var e in this._layers)this._layers[e]._update()},_update:function(){var e=this.options.padding,t=this._map.getSize(),n=this._map.containerPointToLayerPoint(t.multiplyBy(-e)).round();this._bounds=new C(n,n.add(t.multiplyBy(1+e*2)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),Vr=$.extend({options:{tolerance:0},getEvents:function(){var e=$.prototype.getEvents.call(this);return e.viewprereset=this._onViewPreReset,e},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){$.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var e=this._container=document.createElement(`canvas`);z(e,`mousemove`,this._onMouseMove,this),z(e,`click dblclick mousedown mouseup contextmenu`,this._onClick,this),z(e,`mouseout`,this._handleMouseOut,this),e._leaflet_disable_events=!0,this._ctx=e.getContext(`2d`)},_destroyContainer:function(){v(this._redrawRequest),delete this._ctx,N(this._container),V(this._container),delete this._container},_updatePaths:function(){if(!this._postponeUpdatePaths){var e;for(var t in this._redrawBounds=null,this._layers)e=this._layers[t],e._update();this._redraw()}},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){$.prototype._update.call(this);var e=this._bounds,t=this._container,n=e.getSize(),r=j.retina?2:1;R(t,e.min),t.width=r*n.x,t.height=r*n.y,t.style.width=n.x+`px`,t.style.height=n.y+`px`,j.retina&&this._ctx.scale(2,2),this._ctx.translate(-e.min.x,-e.min.y),this.fire(`update`)}},_reset:function(){$.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(e){this._updateDashArray(e),this._layers[a(e)]=e;var t=e._order={layer:e,prev:this._drawLast,next:null};this._drawLast&&(this._drawLast.next=t),this._drawLast=t,this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(e){this._requestRedraw(e)},_removePath:function(e){var t=e._order,n=t.next,r=t.prev;n?n.prev=r:this._drawLast=r,r?r.next=n:this._drawFirst=n,delete e._order,delete this._layers[a(e)],this._requestRedraw(e)},_updatePath:function(e){this._extendRedrawBounds(e),e._project(),e._update(),this._requestRedraw(e)},_updateStyle:function(e){this._updateDashArray(e),this._requestRedraw(e)},_updateDashArray:function(e){if(typeof e.options.dashArray==`string`){var t=e.options.dashArray.split(/[, ]+/),n=[],r,i;for(i=0;i<t.length;i++){if(r=Number(t[i]),isNaN(r))return;n.push(r)}e.options._dashArray=n}else e.options._dashArray=e.options.dashArray},_requestRedraw:function(e){this._map&&(this._extendRedrawBounds(e),this._redrawRequest=this._redrawRequest||_(this._redraw,this))},_extendRedrawBounds:function(e){if(e._pxBounds){var t=(e.options.weight||0)+1;this._redrawBounds=this._redrawBounds||new C,this._redrawBounds.extend(e._pxBounds.min.subtract([t,t])),this._redrawBounds.extend(e._pxBounds.max.add([t,t]))}},_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 e=this._redrawBounds;if(e){var t=e.getSize();this._ctx.clearRect(e.min.x,e.min.y,t.x,t.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 e,t=this._redrawBounds;if(this._ctx.save(),t){var n=t.getSize();this._ctx.beginPath(),this._ctx.rect(t.min.x,t.min.y,n.x,n.y),this._ctx.clip()}this._drawing=!0;for(var r=this._drawFirst;r;r=r.next)e=r.layer,(!t||e._pxBounds&&e._pxBounds.intersects(t))&&e._updatePath();this._drawing=!1,this._ctx.restore()},_updatePoly:function(e,t){if(this._drawing){var n,r,i,a,o=e._parts,s=o.length,c=this._ctx;if(s){for(c.beginPath(),n=0;n<s;n++){for(r=0,i=o[n].length;r<i;r++)a=o[n][r],c[r?`lineTo`:`moveTo`](a.x,a.y);t&&c.closePath()}this._fillStroke(c,e)}}},_updateCircle:function(e){if(!(!this._drawing||e._empty())){var t=e._point,n=this._ctx,r=Math.max(Math.round(e._radius),1),i=(Math.max(Math.round(e._radiusY),1)||r)/r;i!==1&&(n.save(),n.scale(1,i)),n.beginPath(),n.arc(t.x,t.y/i,r,0,Math.PI*2,!1),i!==1&&n.restore(),this._fillStroke(n,e)}},_fillStroke:function(e,t){var n=t.options;n.fill&&(e.globalAlpha=n.fillOpacity,e.fillStyle=n.fillColor||n.color,e.fill(n.fillRule||`evenodd`)),n.stroke&&n.weight!==0&&(e.setLineDash&&e.setLineDash(t.options&&t.options._dashArray||[]),e.globalAlpha=n.opacity,e.lineWidth=n.weight,e.strokeStyle=n.color,e.lineCap=n.lineCap,e.lineJoin=n.lineJoin,e.stroke())},_onClick:function(e){for(var t=this._map.mouseEventToLayerPoint(e),n,r,i=this._drawFirst;i;i=i.next)n=i.layer,n.options.interactive&&n._containsPoint(t)&&(!(e.type===`click`||e.type===`preclick`)||!this._map._draggableMoved(n))&&(r=n);this._fireEvent(r?[r]:!1,e)},_onMouseMove:function(e){if(!(!this._map||this._map.dragging.moving()||this._map._animatingZoom)){var t=this._map.mouseEventToLayerPoint(e);this._handleMouseHover(e,t)}},_handleMouseOut:function(e){var t=this._hoveredLayer;t&&(F(this._container,`leaflet-interactive`),this._fireEvent([t],e,`mouseout`),this._hoveredLayer=null,this._mouseHoverThrottled=!1)},_handleMouseHover:function(e,t){if(!this._mouseHoverThrottled){for(var n,i,a=this._drawFirst;a;a=a.next)n=a.layer,n.options.interactive&&n._containsPoint(t)&&(i=n);i!==this._hoveredLayer&&(this._handleMouseOut(e),i&&(P(this._container,`leaflet-interactive`),this._fireEvent([i],e,`mouseover`),this._hoveredLayer=i)),this._fireEvent(this._hoveredLayer?[this._hoveredLayer]:!1,e),this._mouseHoverThrottled=!0,setTimeout(r(function(){this._mouseHoverThrottled=!1},this),32)}},_fireEvent:function(e,t,n){this._map._fireDOMEvent(t,n||t.type,e)},_bringToFront:function(e){var t=e._order;if(t){var n=t.next,r=t.prev;if(n)n.prev=r;else return;r?r.next=n:n&&(this._drawFirst=n),t.prev=this._drawLast,this._drawLast.next=t,t.next=null,this._drawLast=t,this._requestRedraw(e)}},_bringToBack:function(e){var t=e._order;if(t){var n=t.next,r=t.prev;if(r)r.next=n;else return;n?n.prev=r:r&&(this._drawLast=r),t.prev=null,t.next=this._drawFirst,this._drawFirst.prev=t,this._drawFirst=t,this._requestRedraw(e)}}});function Hr(e){return j.canvas?new Vr(e):null}var Ur=(function(){try{return document.namespaces.add(`lvml`,`urn:schemas-microsoft-com:vml`),function(e){return document.createElement(`<lvml:`+e+` class="lvml">`)}}catch{}return function(e){return document.createElement(`<`+e+` xmlns="urn:schemas-microsoft.com:vml" class="lvml">`)}})(),Wr={_initContainer:function(){this._container=M(`div`,`leaflet-vml-container`)},_update:function(){this._map._animatingZoom||($.prototype._update.call(this),this.fire(`update`))},_initPath:function(e){var t=e._container=Ur(`shape`);P(t,`leaflet-vml-shape `+(this.options.className||``)),t.coordsize=`1 1`,e._path=Ur(`path`),t.appendChild(e._path),this._updateStyle(e),this._layers[a(e)]=e},_addPath:function(e){var t=e._container;this._container.appendChild(t),e.options.interactive&&e.addInteractiveTarget(t)},_removePath:function(e){var t=e._container;N(t),e.removeInteractiveTarget(t),delete this._layers[a(e)]},_updateStyle:function(e){var t=e._stroke,n=e._fill,r=e.options,i=e._container;i.stroked=!!r.stroke,i.filled=!!r.fill,r.stroke?(t||=e._stroke=Ur(`stroke`),i.appendChild(t),t.weight=r.weight+`px`,t.color=r.color,t.opacity=r.opacity,r.dashArray?t.dashStyle=g(r.dashArray)?r.dashArray.join(` `):r.dashArray.replace(/( *, *)/g,` `):t.dashStyle=``,t.endcap=r.lineCap.replace(`butt`,`flat`),t.joinstyle=r.lineJoin):t&&(i.removeChild(t),e._stroke=null),r.fill?(n||=e._fill=Ur(`fill`),i.appendChild(n),n.color=r.fillColor||r.color,n.opacity=r.fillOpacity):n&&(i.removeChild(n),e._fill=null)},_updateCircle:function(e){var t=e._point.round(),n=Math.round(e._radius),r=Math.round(e._radiusY||n);this._setPath(e,e._empty()?`M0 0`:`AL `+t.x+`,`+t.y+` `+n+`,`+r+` 0,23592600`)},_setPath:function(e,t){e._path.v=t},_bringToFront:function(e){kt(e._container)},_bringToBack:function(e){At(e._container)}},Gr=j.vml?Ur:ve,Kr=$.extend({_initContainer:function(){this._container=Gr(`svg`),this._container.setAttribute(`pointer-events`,`none`),this._rootGroup=Gr(`g`),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){N(this._container),V(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){$.prototype._update.call(this);var e=this._bounds,t=e.getSize(),n=this._container;(!this._svgSize||!this._svgSize.equals(t))&&(this._svgSize=t,n.setAttribute(`width`,t.x),n.setAttribute(`height`,t.y)),R(n,e.min),n.setAttribute(`viewBox`,[e.min.x,e.min.y,t.x,t.y].join(` `)),this.fire(`update`)}},_initPath:function(e){var t=e._path=Gr(`path`);e.options.className&&P(t,e.options.className),e.options.interactive&&P(t,`leaflet-interactive`),this._updateStyle(e),this._layers[a(e)]=e},_addPath:function(e){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(e._path),e.addInteractiveTarget(e._path)},_removePath:function(e){N(e._path),e.removeInteractiveTarget(e._path),delete this._layers[a(e)]},_updatePath:function(e){e._project(),e._update()},_updateStyle:function(e){var t=e._path,n=e.options;t&&(n.stroke?(t.setAttribute(`stroke`,n.color),t.setAttribute(`stroke-opacity`,n.opacity),t.setAttribute(`stroke-width`,n.weight),t.setAttribute(`stroke-linecap`,n.lineCap),t.setAttribute(`stroke-linejoin`,n.lineJoin),n.dashArray?t.setAttribute(`stroke-dasharray`,n.dashArray):t.removeAttribute(`stroke-dasharray`),n.dashOffset?t.setAttribute(`stroke-dashoffset`,n.dashOffset):t.removeAttribute(`stroke-dashoffset`)):t.setAttribute(`stroke`,`none`),n.fill?(t.setAttribute(`fill`,n.fillColor||n.color),t.setAttribute(`fill-opacity`,n.fillOpacity),t.setAttribute(`fill-rule`,n.fillRule||`evenodd`)):t.setAttribute(`fill`,`none`))},_updatePoly:function(e,t){this._setPath(e,ye(e._parts,t))},_updateCircle:function(e){var t=e._point,n=Math.max(Math.round(e._radius),1),r=Math.max(Math.round(e._radiusY),1)||n,i=`a`+n+`,`+r+` 0 1,0 `,a=e._empty()?`M0 0`:`M`+(t.x-n)+`,`+t.y+i+n*2+`,0 `+i+-n*2+`,0 `;this._setPath(e,a)},_setPath:function(e,t){e._path.setAttribute(`d`,t)},_bringToFront:function(e){kt(e._path)},_bringToBack:function(e){At(e._path)}});j.vml&&Kr.include(Wr);function qr(e){return j.svg||j.vml?new Kr(e):null}U.include({getRenderer:function(e){var t=e.options.renderer||this._getPaneRenderer(e.options.pane)||this.options.renderer||this._renderer;return t||=this._renderer=this._createRenderer(),this.hasLayer(t)||this.addLayer(t),t},_getPaneRenderer:function(e){if(e===`overlayPane`||e===void 0)return!1;var t=this._paneRenderers[e];return t===void 0&&(t=this._createRenderer({pane:e}),this._paneRenderers[e]=t),t},_createRenderer:function(e){return this.options.preferCanvas&&Hr(e)||qr(e)}});var Jr=ur.extend({initialize:function(e,t){ur.prototype.initialize.call(this,this._boundsToLatLngs(e),t)},setBounds:function(e){return this.setLatLngs(this._boundsToLatLngs(e))},_boundsToLatLngs:function(e){return e=E(e),[e.getSouthWest(),e.getNorthWest(),e.getNorthEast(),e.getSouthEast()]}});function Yr(e,t){return new Jr(e,t)}Kr.create=Gr,Kr.pointsToPath=ye,Z.geometryToLayer=fr,Z.coordsToLatLng=mr,Z.coordsToLatLngs=hr,Z.latLngToCoords=gr,Z.latLngsToCoords=_r,Z.getFeature=vr,Z.asFeature=yr,U.mergeOptions({boxZoom:!0});var Xr=G.extend({initialize:function(e){this._map=e,this._container=e._container,this._pane=e._panes.overlayPane,this._resetStateTimeout=0,e.on(`unload`,this._destroy,this)},addHooks:function(){z(this._container,`mousedown`,this._onMouseDown,this)},removeHooks:function(){V(this._container,`mousedown`,this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){N(this._pane),delete this._pane},_resetState:function(){this._resetStateTimeout=0,this._moved=!1},_clearDeferredResetState:function(){this._resetStateTimeout!==0&&(clearTimeout(this._resetStateTimeout),this._resetStateTimeout=0)},_onMouseDown:function(e){if(!e.shiftKey||e.which!==1&&e.button!==1)return!1;this._clearDeferredResetState(),this._resetState(),Rt(),Ht(),this._startPoint=this._map.mouseEventToContainerPoint(e),z(document,{contextmenu:an,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(e){this._moved||(this._moved=!0,this._box=M(`div`,`leaflet-zoom-box`,this._container),P(this._container,`leaflet-crosshair`),this._map.fire(`boxzoomstart`)),this._point=this._map.mouseEventToContainerPoint(e);var t=new C(this._point,this._startPoint),n=t.getSize();R(this._box,t.min),this._box.style.width=n.x+`px`,this._box.style.height=n.y+`px`},_finish:function(){this._moved&&(N(this._box),F(this._container,`leaflet-crosshair`)),zt(),Ut(),V(document,{contextmenu:an,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(e){if(!(e.which!==1&&e.button!==1)&&(this._finish(),this._moved)){this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(r(this._resetState,this),0);var t=new T(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(t).fire(`boxzoomend`,{boxZoomBounds:t})}},_onKeyDown:function(e){e.keyCode===27&&(this._finish(),this._clearDeferredResetState(),this._resetState())}});U.addInitHook(`addHandler`,`boxZoom`,Xr),U.mergeOptions({doubleClickZoom:!0});var Zr=G.extend({addHooks:function(){this._map.on(`dblclick`,this._onDoubleClick,this)},removeHooks:function(){this._map.off(`dblclick`,this._onDoubleClick,this)},_onDoubleClick:function(e){var t=this._map,n=t.getZoom(),r=t.options.zoomDelta,i=e.originalEvent.shiftKey?n-r:n+r;t.options.doubleClickZoom===`center`?t.setZoom(i):t.setZoomAround(e.containerPoint,i)}});U.addInitHook(`addHandler`,`doubleClickZoom`,Zr),U.mergeOptions({dragging:!0,inertia:!0,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var Qr=G.extend({addHooks:function(){if(!this._draggable){var e=this._map;this._draggable=new K(e._mapPane,e._container),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this),this._draggable.on(`predrag`,this._onPreDragLimit,this),e.options.worldCopyJump&&(this._draggable.on(`predrag`,this._onPreDragWrap,this),e.on(`zoomend`,this._onZoomEnd,this),e.whenReady(this._onZoomEnd,this))}P(this._map._container,`leaflet-grab leaflet-touch-drag`),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){F(this._map._container,`leaflet-grab`),F(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 e=this._map;if(e._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity){var t=E(this._map.options.maxBounds);this._offsetLimit=w(this._map.latLngToContainerPoint(t.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(t.getSouthEast()).multiplyBy(-1).add(this._map.getSize())),this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))}else this._offsetLimit=null;e.fire(`movestart`).fire(`dragstart`),e.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(e){if(this._map.options.inertia){var t=this._lastTime=+new Date,n=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(n),this._times.push(t),this._prunePositions(t)}this._map.fire(`move`,e).fire(`drag`,e)},_prunePositions:function(e){for(;this._positions.length>1&&e-this._times[0]>50;)this._positions.shift(),this._times.shift()},_onZoomEnd:function(){var e=this._map.getSize().divideBy(2);this._initialWorldOffset=this._map.latLngToLayerPoint([0,0]).subtract(e).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(e,t){return e-(e-t)*this._viscosity},_onPreDragLimit:function(){if(!(!this._viscosity||!this._offsetLimit)){var e=this._draggable._newPos.subtract(this._draggable._startPos),t=this._offsetLimit;e.x<t.min.x&&(e.x=this._viscousLimit(e.x,t.min.x)),e.y<t.min.y&&(e.y=this._viscousLimit(e.y,t.min.y)),e.x>t.max.x&&(e.x=this._viscousLimit(e.x,t.max.x)),e.y>t.max.y&&(e.y=this._viscousLimit(e.y,t.max.y)),this._draggable._newPos=this._draggable._startPos.add(e)}},_onPreDragWrap:function(){var e=this._worldWidth,t=Math.round(e/2),n=this._initialWorldOffset,r=this._draggable._newPos.x,i=(r-t+n)%e+t-n,a=(r+t+n)%e-t-n,o=Math.abs(i+n)<Math.abs(a+n)?i:a;this._draggable._absPos=this._draggable._newPos.clone(),this._draggable._newPos.x=o},_onDragEnd:function(e){var t=this._map,n=t.options,r=!n.inertia||e.noInertia||this._times.length<2;if(t.fire(`dragend`,e),r)t.fire(`moveend`);else{this._prunePositions(+new Date);var i=this._lastPos.subtract(this._positions[0]),a=(this._lastTime-this._times[0])/1e3,o=n.easeLinearity,s=i.multiplyBy(o/a),c=s.distanceTo([0,0]),l=Math.min(n.inertiaMaxSpeed,c),u=s.multiplyBy(l/c),d=l/(n.inertiaDeceleration*o),f=u.multiplyBy(-d/2).round();!f.x&&!f.y?t.fire(`moveend`):(f=t._limitOffset(f,t.options.maxBounds),_(function(){t.panBy(f,{duration:d,easeLinearity:o,noMoveStart:!0,animate:!0})}))}}});U.addInitHook(`addHandler`,`dragging`,Qr),U.mergeOptions({keyboard:!0,keyboardPanDelta:80});var $r=G.extend({keyCodes:{left:[37],right:[39],down:[40],up:[38],zoomIn:[187,107,61,171],zoomOut:[189,109,54,173]},initialize:function(e){this._map=e,this._setPanDelta(e.options.keyboardPanDelta),this._setZoomDelta(e.options.zoomDelta)},addHooks:function(){var e=this._map._container;e.tabIndex<=0&&(e.tabIndex=`0`),z(e,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.on({focus:this._addHooks,blur:this._removeHooks},this)},removeHooks:function(){this._removeHooks(),V(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 e=document.body,t=document.documentElement,n=e.scrollTop||t.scrollTop,r=e.scrollLeft||t.scrollLeft;this._map._container.focus(),window.scrollTo(r,n)}},_onFocus:function(){this._focused=!0,this._map.fire(`focus`)},_onBlur:function(){this._focused=!1,this._map.fire(`blur`)},_setPanDelta:function(e){var t=this._panKeys={},n=this.keyCodes,r,i;for(r=0,i=n.left.length;r<i;r++)t[n.left[r]]=[-1*e,0];for(r=0,i=n.right.length;r<i;r++)t[n.right[r]]=[e,0];for(r=0,i=n.down.length;r<i;r++)t[n.down[r]]=[0,e];for(r=0,i=n.up.length;r<i;r++)t[n.up[r]]=[0,-1*e]},_setZoomDelta:function(e){var t=this._zoomKeys={},n=this.keyCodes,r,i;for(r=0,i=n.zoomIn.length;r<i;r++)t[n.zoomIn[r]]=e;for(r=0,i=n.zoomOut.length;r<i;r++)t[n.zoomOut[r]]=-e},_addHooks:function(){z(document,`keydown`,this._onKeyDown,this)},_removeHooks:function(){V(document,`keydown`,this._onKeyDown,this)},_onKeyDown:function(e){if(!(e.altKey||e.ctrlKey||e.metaKey)){var t=e.keyCode,n=this._map,r;if(t in this._panKeys){if(!n._panAnim||!n._panAnim._inProgress)if(r=this._panKeys[t],e.shiftKey&&(r=S(r).multiplyBy(3)),n.options.maxBounds&&(r=n._limitOffset(S(r),n.options.maxBounds)),n.options.worldCopyJump){var i=n.wrapLatLng(n.unproject(n.project(n.getCenter()).add(r)));n.panTo(i)}else n.panBy(r)}else if(t in this._zoomKeys)n.setZoom(n.getZoom()+(e.shiftKey?3:1)*this._zoomKeys[t]);else if(t===27&&n._popup&&n._popup.options.closeOnEscapeKey)n.closePopup();else return;an(e)}}});U.addInitHook(`addHandler`,`keyboard`,$r),U.mergeOptions({scrollWheelZoom:!0,wheelDebounceTime:40,wheelPxPerZoomLevel:60});var ei=G.extend({addHooks:function(){z(this._map._container,`wheel`,this._onWheelScroll,this),this._delta=0},removeHooks:function(){V(this._map._container,`wheel`,this._onWheelScroll,this)},_onWheelScroll:function(e){var t=ln(e),n=this._map.options.wheelDebounceTime;this._delta+=t,this._lastMousePos=this._map.mouseEventToContainerPoint(e),this._startTime||=+new Date;var i=Math.max(n-(+new Date-this._startTime),0);clearTimeout(this._timer),this._timer=setTimeout(r(this._performZoom,this),i),an(e)},_performZoom:function(){var e=this._map,t=e.getZoom(),n=this._map.options.zoomSnap||0;e._stop();var r=this._delta/(this._map.options.wheelPxPerZoomLevel*4),i=4*Math.log(2/(1+Math.exp(-Math.abs(r))))/Math.LN2,a=n?Math.ceil(i/n)*n:i,o=e._limitZoom(t+(this._delta>0?a:-a))-t;this._delta=0,this._startTime=null,o&&(e.options.scrollWheelZoom===`center`?e.setZoom(t+o):e.setZoomAround(this._lastMousePos,t+o))}});U.addInitHook(`addHandler`,`scrollWheelZoom`,ei);var ti=600;U.mergeOptions({tapHold:j.touchNative&&j.safari&&j.mobile,tapTolerance:15});var ni=G.extend({addHooks:function(){z(this._map._container,`touchstart`,this._onDown,this)},removeHooks:function(){V(this._map._container,`touchstart`,this._onDown,this)},_onDown:function(e){if(clearTimeout(this._holdTimeout),e.touches.length===1){var t=e.touches[0];this._startPos=this._newPos=new x(t.clientX,t.clientY),this._holdTimeout=setTimeout(r(function(){this._cancel(),this._isTapValid()&&(z(document,`touchend`,H),z(document,`touchend touchcancel`,this._cancelClickPrevent),this._simulateEvent(`contextmenu`,t))},this),ti),z(document,`touchend touchcancel contextmenu`,this._cancel,this),z(document,`touchmove`,this._onMove,this)}},_cancelClickPrevent:function e(){V(document,`touchend`,H),V(document,`touchend touchcancel`,e)},_cancel:function(){clearTimeout(this._holdTimeout),V(document,`touchend touchcancel contextmenu`,this._cancel,this),V(document,`touchmove`,this._onMove,this)},_onMove:function(e){var t=e.touches[0];this._newPos=new x(t.clientX,t.clientY)},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_simulateEvent:function(e,t){var n=new MouseEvent(e,{bubbles:!0,cancelable:!0,view:window,screenX:t.screenX,screenY:t.screenY,clientX:t.clientX,clientY:t.clientY});n._simulated=!0,t.target.dispatchEvent(n)}});U.addInitHook(`addHandler`,`tapHold`,ni),U.mergeOptions({touchZoom:j.touch,bounceAtZoomLimits:!0});var ri=G.extend({addHooks:function(){P(this._map._container,`leaflet-touch-zoom`),z(this._map._container,`touchstart`,this._onTouchStart,this)},removeHooks:function(){F(this._map._container,`leaflet-touch-zoom`),V(this._map._container,`touchstart`,this._onTouchStart,this)},_onTouchStart:function(e){var t=this._map;if(!(!e.touches||e.touches.length!==2||t._animatingZoom||this._zooming)){var n=t.mouseEventToContainerPoint(e.touches[0]),r=t.mouseEventToContainerPoint(e.touches[1]);this._centerPoint=t.getSize()._divideBy(2),this._startLatLng=t.containerPointToLatLng(this._centerPoint),t.options.touchZoom!==`center`&&(this._pinchStartLatLng=t.containerPointToLatLng(n.add(r)._divideBy(2))),this._startDist=n.distanceTo(r),this._startZoom=t.getZoom(),this._moved=!1,this._zooming=!0,t._stop(),z(document,`touchmove`,this._onTouchMove,this),z(document,`touchend touchcancel`,this._onTouchEnd,this),H(e)}},_onTouchMove:function(e){if(!(!e.touches||e.touches.length!==2||!this._zooming)){var t=this._map,n=t.mouseEventToContainerPoint(e.touches[0]),i=t.mouseEventToContainerPoint(e.touches[1]),a=n.distanceTo(i)/this._startDist;if(this._zoom=t.getScaleZoom(a,this._startZoom),!t.options.bounceAtZoomLimits&&(this._zoom<t.getMinZoom()&&a<1||this._zoom>t.getMaxZoom()&&a>1)&&(this._zoom=t._limitZoom(this._zoom)),t.options.touchZoom===`center`){if(this._center=this._startLatLng,a===1)return}else{var o=n._add(i)._divideBy(2)._subtract(this._centerPoint);if(a===1&&o.x===0&&o.y===0)return;this._center=t.unproject(t.project(this._pinchStartLatLng,this._zoom).subtract(o),this._zoom)}this._moved||=(t._moveStart(!0,!1),!0),v(this._animRequest),this._animRequest=_(r(t._move,t,this._center,this._zoom,{pinch:!0,round:!1},void 0),this,!0),H(e)}},_onTouchEnd:function(){if(!this._moved||!this._zooming){this._zooming=!1;return}this._zooming=!1,v(this._animRequest),V(document,`touchmove`,this._onTouchMove,this),V(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))}});U.addInitHook(`addHandler`,`touchZoom`,ri),U.BoxZoom=Xr,U.DoubleClickZoom=Zr,U.Drag=Qr,U.Keyboard=$r,U.ScrollWheelZoom=ei,U.TapHold=ni,U.TouchZoom=ri;export{C as Bounds,j as Browser,k as CRS,Vr as Canvas,sr as Circle,ar as CircleMarker,y as Class,W as Control,Nr as DivIcon,Q as DivOverlay,dn as DomEvent,Xt as DomUtil,K as Draggable,le as Evented,Y as FeatureGroup,Z as GeoJSON,Fr as GridLayer,G as Handler,Qn as Icon,Cr as ImageOverlay,D as LatLng,T as LatLngBounds,J as Layer,Yn as LayerGroup,Hn as LineUtil,U as Map,nr as Marker,Sn as Mixin,ir as Path,x as Point,Dn as PolyUtil,ur as Polygon,X as Polyline,kr as Popup,fn as PosAnimation,Gn as Projection,Jr as Rectangle,$ as Renderer,Kr as SVG,Dr as SVGOverlay,Lr as TileLayer,jr as Tooltip,me as Transformation,se as Util,Tr as VideoOverlay,r as bind,w as bounds,Hr as canvas,cr as circle,or as circleMarker,mn as control,Pr as divIcon,t as extend,Zn as featureGroup,xr as geoJSON,Sr as geoJson,Ir as gridLayer,$n as icon,wr as imageOverlay,O as latLng,E as latLngBounds,Xn as layerGroup,pn as map,rr as marker,S as point,dr as polygon,lr as polyline,Ar as popup,Yr as rectangle,f as setOptions,a as stamp,qr as svg,Or as svgOverlay,Rr as tileLayer,Mr as tooltip,he as transformation,e as version,Er as videoOverlay};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./chunk-DECur_0Z.js";import{$r as e,Ai as t,Br as n,Hr as r,Lr as i,Nr as a,O as o,Oi as s,Qr as c,Sr as l,Xr as u,_i as d,_r as f,ai as p,br as m,d as h,f as g,gr as _,h as v,hr as y,ji as b,lr as x,m as S,mr as C,p as w,pt as T,sr as E,t as D,ui as O,vr as k,xr as A}from"./icon-with-child-DmQ_XhQy.js";import{Ci as j,Fi as M,Hr as N,Ir as P,Jr as F,Ni as I,Nr as L,Ti as R,Ur as z,di as B,gi as V,hi as H,jr as U,mi as W,ui as G,wi as K}from"./common-DlW3qRTQ.js";import{n as q,t as J}from"./table-5pjI7ihN.js";import{t as Y}from"./pagination-BN87kdDs.js";import{f as X,t as Z}from"./types-B8upWpl6.js";var Q={class:`flex w-full`},$=l({name:`DataSourcesFilter`,__name:`data-sources-filter`,props:{filters:{},filtersActive:{type:Boolean}},emits:[`update:filters`,`reset-filters`,`adjust-list`],setup(e,{emit:t}){let r=e,i=t,a=T(`data-sources-filter`),{t:l}=h(),p=L(r,`filters`,i),m=O(void 0);return u(()=>p.value.search,e=>{e===``&&(p.value.search=void 0)}),(e,t)=>(n(),k(`div`,Q,[A(d(I),{ref_key:`filterFormEl`,ref:m,inline:!0,model:d(p),class:s([[d(a).b()],`grow-1`])},{default:c(()=>[A(d(R),{modelValue:d(p).search,"onUpdate:modelValue":t[0]||=e=>d(p).search=e,placeholder:d(l)(`dashboardModule.fields.dataSources.search.placeholder`),class:`max-w[280px] p-1`,clearable:``},{suffix:c(()=>[A(d(o),null,{default:c(()=>[A(d(w),{icon:`mdi:magnify`})]),_:1})]),_:1},8,[`modelValue`,`placeholder`])]),_:1},8,[`model`,`class`]),r.filtersActive?(n(),_(d(v),{key:0,plain:``,class:`px-2! mt-1 mr-1`,onClick:t[1]||=e=>i(`reset-filters`)},{default:c(()=>[A(d(w),{icon:`mdi:filter-off`})]),_:1})):f(``,!0),A(d(v),{plain:``,class:`px-2! mt-1 mr-1`,onClick:t[2]||=e=>i(`adjust-list`)},{default:c(()=>[A(d(w),{icon:`mdi:slider`})]),_:1})]))}}),ee=l({name:`DataSourcesTableColumnPlugin`,__name:`data-sources-table-column-plugin`,props:{dataSource:{},filters:{}},emits:[`filter-by`],setup(e,{emit:t}){let r=e,i=t,{plugin:a}=Z({type:r.dataSource.type});return(e,t)=>(n(),_(d(z),{truncated:``},{default:c(()=>[A(d(F),{type:r.filters.types.includes(r.dataSource.type)?`danger`:void 0,underline:`never`,class:`font-400!`,onClick:t[0]||=E(e=>i(`filter-by`,r.dataSource.type,!r.filters.types.includes(r.dataSource.type)),[`stop`])},{default:c(()=>[A(d(o),{class:`el-icon--left`},{default:c(()=>[r.filters.types.includes(r.dataSource.type)?(n(),_(d(w),{key:0,icon:`mdi:filter-minus`})):(n(),_(d(w),{key:1,icon:`mdi:filter-plus`}))]),_:1}),m(` `+b(d(a)?.name||r.dataSource.type),1)]),_:1},8,[`type`])]),_:1}))}}),te={key:0,class:`h-full w-full leading-normal`},ne={key:1,class:`h-full w-full leading-normal`},re={key:2,class:`h-full w-full leading-normal`},ie=l({name:`DataSourcesTable`,__name:`data-sources-table`,props:{items:{},totalRows:{},sortBy:{},sortDir:{},loading:{type:Boolean},filters:{},filtersActive:{type:Boolean},tableHeight:{}},emits:[`detail`,`edit`,`remove`,`reset-filters`,`selected-changes`,`update:filters`,`update:sort-by`,`update:sort-dir`],setup(r,{emit:i}){let a=r,o=i,{t:s}=h(),{isMDDevice:l}=U(),u=C(()=>a.totalRows===0),p=L(a,`filters`,o),g=({prop:e,order:t})=>{o(`update:sort-by`,e),o(`update:sort-dir`,t===`descending`?`desc`:t===`ascending`?`asc`:null)},y=e=>{o(`selected-changes`,e)},x=e=>{o(`detail`,e.id)},T=(e,t,n)=>{if(e===`type`){let e=p.value.types;n===!0?e.push(t):e=p.value.types.filter(e=>e!==t),p.value.types=Array.from(new Set(e))}};return(i,h)=>e((n(),_(d(J),{"element-loading-text":d(s)(`dashboardModule.texts.dataSources.loadingDataSources`),data:a.items,"default-sort":a.sortBy!==void 0&&a.sortDir!==null?{prop:a.sortBy,order:a.sortDir===`desc`?`descending`:`ascending`}:void 0,"table-layout":`fixed`,"row-key":`id`,class:`flex-grow`,style:t({maxHeight:r.tableHeight+`px`}),"max-height":r.tableHeight,onSortChange:g,onSelectionChange:y,onRowClick:x},{empty:c(()=>[a.loading?(n(),k(`div`,te,[A(d(S),{class:`h-full w-full`},{icon:c(()=>[A(d(D),{size:80},{primary:c(()=>[A(d(w),{icon:`mdi:database-cog-outline`})]),secondary:c(()=>[A(d(w),{icon:`mdi:database-refresh`})]),_:1})]),_:1})])):u.value&&!a.loading?(n(),k(`div`,ne,[A(d(S),{class:`h-full w-full`},{icon:c(()=>[A(d(D),{size:80},{primary:c(()=>[A(d(w),{icon:`mdi:database-cog-outline`})]),secondary:c(()=>[A(d(w),{icon:`mdi:information`})]),_:1})]),title:c(()=>[m(b(d(s)(`dashboardModule.texts.dataSources.noDataSources`)),1)]),_:1})])):a.filtersActive&&!a.loading?(n(),k(`div`,re,[A(d(S),{class:`h-full w-full`},{icon:c(()=>[A(d(D),{size:80},{primary:c(()=>[A(d(w),{icon:`mdi:database-cog-outline`})]),secondary:c(()=>[A(d(w),{icon:`mdi:filter-multiple`})]),_:1})]),title:c(()=>[A(d(z),{class:`block`},{default:c(()=>[m(b(d(s)(`dashboardModule.texts.dataSources.noFilteredDataSources`)),1)]),_:1}),A(d(v),{type:`primary`,plain:``,class:`mt-4`,onClick:h[0]||=e=>o(`reset-filters`)},{icon:c(()=>[A(d(w),{icon:`mdi:filter-off`})]),default:c(()=>[m(` `+b(d(s)(`dashboardModule.buttons.resetFilters.title`)),1)]),_:1})]),_:1})])):f(``,!0)]),default:c(()=>[d(l)?(n(),_(d(q),{key:0,type:`selection`,width:30})):f(``,!0),A(d(q),{width:60,align:`center`},{default:c(()=>[A(d(j),{size:32},{default:c(()=>[A(d(w),{icon:`mdi:database-cog-outline`,class:`w[20px] h[20px]`})]),_:1})]),_:1}),A(d(q),{label:d(s)(`dashboardModule.table.dataSources.columns.type.title`),prop:`type`,sortable:`custom`,"sort-orders":[`ascending`,`descending`]},{default:c(e=>[A(ee,{"data-source":e.row,filters:d(p),onFilterBy:h[1]||=(e,t)=>T(`type`,e,t)},null,8,[`data-source`,`filters`])]),_:1},8,[`label`]),A(d(q),{width:180,align:`right`},{default:c(e=>[A(d(v),{size:`small`,plain:``,class:`ml-1!`,"data-test-id":`edit-page`,onClick:E(t=>o(`edit`,e.row.id),[`stop`])},{icon:c(()=>[A(d(w),{icon:`mdi:pencil`})]),_:1},8,[`onClick`]),A(d(v),{size:`small`,type:`warning`,plain:``,class:`ml-1!`,"data-test-id":`remove-page`,onClick:E(t=>o(`remove`,e.row.id),[`stop`])},{icon:c(()=>[A(d(w),{icon:`mdi:trash`})]),_:1},8,[`onClick`])]),_:1})]),_:1},8,[`element-loading-text`,`data`,`default-sort`,`style`,`max-height`])),[[d(N),a.loading]])}}),ae=l({name:`ListDataSources`,__name:`list-data-sources`,props:{items:{},allItems:{},totalRows:{},filters:{},filtersActive:{type:Boolean},paginateSize:{},paginatePage:{},sortBy:{},sortDir:{},loading:{type:Boolean}},emits:[`detail`,`edit`,`remove`,`adjust-list`,`reset-filters`,`update:filters`,`update:paginate-size`,`update:paginate-page`,`update:sort-by`,`update:sort-dir`],setup(e,{emit:t}){let r=e,o=t,{isMDDevice:s}=U(),l=null,f=O(null),m=O(null),h=L(r,`filters`,o),g=O(r.sortBy),_=O(r.sortDir),v=O(r.paginatePage),b=O(r.paginateSize),S=O(250),C=e=>{o(`detail`,e)},w=e=>{o(`edit`,e)},T=e=>{o(`remove`,e)},E=()=>{o(`reset-filters`)},D=e=>{o(`update:paginate-page`,e)},j=e=>{o(`update:paginate-page`,e)};return i(()=>{if(!f.value)return;let e=()=>{S.value=f.value.clientHeight-m.value.clientHeight};typeof window<`u`&&`ResizeObserver`in window&&(l=new ResizeObserver(e),l.observe(f.value)),e()}),a(()=>{l&&f.value&&l.unobserve(f.value)}),u(()=>g.value,e=>{o(`update:sort-by`,e)}),u(()=>_.value,e=>{o(`update:sort-dir`,e)}),u(()=>r.paginatePage,e=>{v.value=e}),u(()=>r.paginateSize,e=>{b.value=e}),u(()=>r.sortDir,e=>{_.value=e}),u(()=>r.sortBy,e=>{g.value=e}),(e,t)=>(n(),k(x,null,[A(d(V),{shadow:`never`,class:`px-1 py-2 shrink-0`,"body-class":`p-0!`},{default:c(()=>[A($,{filters:d(h),"onUpdate:filters":t[0]||=e=>p(h)?h.value=e:null,"filters-active":r.filtersActive,onResetFilters:t[1]||=e=>o(`reset-filters`),onAdjustList:t[2]||=e=>o(`adjust-list`)},null,8,[`filters`,`filters-active`])]),_:1}),y(`div`,{ref_key:`wrapper`,ref:f,class:`flex-grow overflow-hidden`},[A(d(V),{shadow:`never`,class:`max-h-full flex flex-col overflow-hidden box-border`,"body-class":`p-0! max-h-full overflow-hidden flex flex-col`},{default:c(()=>[A(ie,{filters:d(h),"onUpdate:filters":t[3]||=e=>p(h)?h.value=e:null,"sort-by":g.value,"onUpdate:sortBy":t[4]||=e=>g.value=e,"sort-dir":_.value,"onUpdate:sortDir":t[5]||=e=>_.value=e,items:r.items,"total-rows":r.totalRows,loading:r.loading,"filters-active":r.filtersActive,"table-height":S.value,onDetail:C,onEdit:w,onRemove:T,onResetFilters:E},null,8,[`filters`,`sort-by`,`sort-dir`,`items`,`total-rows`,`loading`,`filters-active`,`table-height`]),y(`div`,{ref_key:`paginator`,ref:m,class:`flex justify-center w-full py-4`},[A(d(Y),{"current-page":v.value,"onUpdate:currentPage":t[6]||=e=>v.value=e,"page-size":b.value,"onUpdate:pageSize":t[7]||=e=>b.value=e,layout:d(s)?`total, sizes, prev, pager, next, jumper`:`total, sizes, prev, pager, next`,total:r.allItems.length,onSizeChange:D,onCurrentChange:j},null,8,[`current-page`,`page-size`,`layout`,`total`])],512)]),_:1})],512)],64))}}),oe={key:1,class:`px-2`},se={class:`px-5 py-2 text-center`},ce=g(l({name:`ListDataSourcesAdjust`,__name:`list-data-sources-adjust`,props:{filters:{},filtersActive:{type:Boolean}},emits:[`update:filters`,`reset-filters`],setup(e,{emit:t}){let i=e,a=t,o=T(`list-data-sources-adjust`),{t:l}=h(),{options:u}=X(),f=O([`types`]),p=L(i,`filters`,a);return(e,t)=>(n(),k(x,null,[A(d(P),{teleport:``},{icon:c(()=>[A(d(w),{icon:`mdi:filter`})]),title:c(()=>[m(b(d(l)(`dashboardModule.headings.dataSources.adjustFilters`)),1)]),subtitle:c(()=>[m(b(d(l)(`dashboardModule.subHeadings.dataSources.adjustFilters`)),1)]),_:1}),y(`div`,{class:s([[d(o).b()],`flex flex-col h-full w-full overflow-hidden`])},[A(d(K),{class:`flex-grow`},{default:c(()=>[A(d(G),{modelValue:f.value,"onUpdate:modelValue":t[1]||=e=>f.value=e},{default:c(()=>[A(d(B),{name:`types`,class:s([d(o).e(`filter-item`)])},{title:c(()=>[A(d(z),{class:`!px-2`},{default:c(()=>[m(b(d(l)(`dashboardModule.filters.dataSources.types.title`)),1)]),_:1})]),default:c(()=>[d(u).length?(n(),_(d(H),{key:0,modelValue:d(p).types,"onUpdate:modelValue":t[0]||=e=>d(p).types=e,class:`flex flex-col px-4`},{default:c(()=>[(n(!0),k(x,null,r(d(u),e=>(n(),_(d(W),{key:e.value,label:e.label,value:e.value},null,8,[`label`,`value`]))),128))]),_:1},8,[`modelValue`])):(n(),k(`div`,oe,[A(d(M),{closable:!1},{default:c(()=>[m(b(d(l)(`dashboardModule.texts.dataSources.noPlugins`)),1)]),_:1})]))]),_:1},8,[`class`])]),_:1},8,[`modelValue`])]),_:1}),y(`div`,se,[A(d(v),{disabled:!i.filtersActive,onClick:t[2]||=e=>a(`reset-filters`)},{icon:c(()=>[A(d(w),{icon:`mdi:filter-remove`})]),default:c(()=>[m(` `+b(d(l)(`dashboardModule.buttons.reset.title`)),1)]),_:1},8,[`disabled`])])],2)],64))}}),[[`__scopeId`,`data-v-def15ce5`]]);export{ae as n,ce as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.el-list-data-sources-adjust__filter-item[data-v-def15ce5] .el-collapse-item__header{width:auto}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./chunk-DECur_0Z.js";import{$r as e,Ai as t,Br as n,Lr as r,Nr as i,O as a,Qr as o,Sr as s,Xr as c,_i as l,_r as u,ai as d,br as f,d as p,gr as m,h,hr as g,ji as _,lr as v,m as y,mr as b,p as x,sr as S,t as C,ui as w,vr as T,xr as E}from"./icon-with-child-DmQ_XhQy.js";import{Ci as D,H as O,Hr as k,Jr as A,Ni as j,Nr as M,Oi as N,Ti as P,Ur as F,bi as I,gi as L,jr as R,o as z}from"./common-DlW3qRTQ.js";import{n as B,t as V}from"./table-5pjI7ihN.js";import{t as H}from"./pagination-BN87kdDs.js";import{t as U}from"./composables-CU6q9-8B.js";import{t as W}from"./weather-icon-CkuFNv0P.js";var G={class:`flex w-full`},K=s({name:`LocationsFilter`,__name:`locations-filter`,props:{filters:{},filtersActive:{type:Boolean},selectedCount:{},bulkActions:{}},emits:[`update:filters`,`reset-filters`,`adjust-list`,`bulk-action`],setup(e,{emit:t}){let r=e,i=t,{t:s}=p(),d=M(r,`filters`,i),f=w(void 0);return c(()=>d.value.search,e=>{e===``&&(d.value.search=void 0)}),(e,t)=>(n(),T(`div`,G,[E(l(j),{ref_key:`filterFormEl`,ref:f,inline:!0,model:l(d),class:`grow-1`},{default:o(()=>[E(l(P),{modelValue:l(d).search,"onUpdate:modelValue":t[0]||=e=>l(d).search=e,placeholder:l(s)(`weatherModule.fields.locations.search.placeholder`),class:`max-w-[280px] p-1`,clearable:``},{suffix:o(()=>[E(l(a),null,{default:o(()=>[E(l(x),{icon:`mdi:magnify`})]),_:1})]),_:1},8,[`modelValue`,`placeholder`])]),_:1},8,[`model`]),E(l(O),{"selected-count":r.selectedCount,actions:r.bulkActions,onAction:t[1]||=e=>i(`bulk-action`,e)},null,8,[`selected-count`,`actions`]),r.filtersActive?(n(),m(l(h),{key:0,plain:``,class:`px-2! mt-1 mr-1`,onClick:t[2]||=e=>i(`reset-filters`)},{default:o(()=>[E(l(x),{icon:`mdi:filter-off`})]),_:1})):u(``,!0),E(l(h),{plain:``,class:`px-2! mt-1 mr-1`,onClick:t[3]||=e=>i(`adjust-list`)},{default:o(()=>[E(l(x),{icon:`mdi:slider`})]),_:1})]))}}),q=s({name:`LocationsTableColumnPlugin`,__name:`locations-table-column-plugin`,props:{location:{},filters:{}},emits:[`filter-by`],setup(e,{emit:t}){let r=e,i=t,{plugin:s}=U({type:r.location.type});return(e,t)=>(n(),m(l(F),{truncated:``},{default:o(()=>[E(l(A),{type:r.filters.types.includes(r.location.type)?`danger`:void 0,underline:`never`,class:`font-400!`,onClick:t[0]||=S(e=>i(`filter-by`,r.location.type,!r.filters.types.includes(r.location.type)),[`stop`])},{default:o(()=>[E(l(a),{class:`el-icon--left`},{default:o(()=>[r.filters.types.includes(r.location.type)?(n(),m(l(x),{key:0,icon:`mdi:filter-minus`})):(n(),m(l(x),{key:1,icon:`mdi:filter-plus`}))]),_:1}),f(` `+_(l(s)?.name||r.location.type),1)]),_:1},8,[`type`])]),_:1}))}}),J={key:0,class:`flex items-center gap-2`},Y={class:`font-medium`},X={class:`text-xs`},Z={key:2,class:`text-gray-400`},Q=s({name:`LocationsTableColumnWeather`,__name:`locations-table-column-weather`,props:{locationId:{},weatherByLocation:{},temperatureUnit:{},fetchCompleted:{type:Boolean}},setup(e){let t=e,{t:r}=p(),i=b(()=>t.weatherByLocation[t.locationId]??null),s=b(()=>i.value?.current.temperature??null),c=b(()=>i.value?W(i.value.current.weather.code,i.value.current.sunrise,i.value.current.sunset):`wi:na`),u=b(()=>t.temperatureUnit===`fahrenheit`?`°F`:`°C`);return(e,d)=>i.value?(n(),T(`div`,J,[E(l(a),{size:24},{default:o(()=>[E(l(x),{icon:c.value},null,8,[`icon`])]),_:1}),g(`span`,Y,_(s.value===null?`-`:l(z)(s.value,{maximumFractionDigits:1}))+_(u.value),1)])):t.fetchCompleted?(n(),m(l(N),{key:1,content:l(r)(`weatherModule.table.columns.weather.error`),placement:`top`},{default:o(()=>[g(`div`,{class:`flex items-center gap-1 text-red-500 cursor-help`,onClick:d[0]||=S(()=>{},[`stop`])},[E(l(a),{size:16},{default:o(()=>[E(l(x),{icon:`mdi:alert-circle`})]),_:1}),g(`span`,X,_(l(r)(`weatherModule.table.columns.weather.failed`)),1)])]),_:1},8,[`content`])):(n(),T(`div`,Z,` - `))}}),$={key:0,class:`h-full w-full leading-normal`},ee={key:1,class:`h-full w-full leading-normal`},te={key:2,class:`h-full w-full leading-normal`},ne=s({name:`LocationsTable`,__name:`locations-table`,props:{items:{},totalRows:{},loading:{type:Boolean},filtersActive:{type:Boolean},sortBy:{},sortDir:{},tableHeight:{},filters:{},primaryLocationId:{},weatherByLocation:{},temperatureUnit:{},weatherFetchCompleted:{type:Boolean}},emits:[`detail`,`edit`,`remove`,`reset-filters`,`selected-changes`,`update:sort-by`,`update:sort-dir`,`update:filters`],setup(r,{emit:i}){let a=r,s=i,{t:c}=p(),{isMDDevice:d}=R(),g=M(a,`filters`,s),v=b(()=>a.totalRows===0),w=({prop:e,order:t})=>{s(`update:sort-by`,e),s(`update:sort-dir`,t)},O=e=>{s(`detail`,e.id)},A=e=>{s(`selected-changes`,e)},j=(e,t,n)=>{if(e===`type`){let e=g.value.types;n===!0?e.push(t):e=g.value.types.filter(e=>e!==t),g.value.types=Array.from(new Set(e))}};return(i,p)=>e((n(),m(l(V),{"element-loading-text":l(c)(`weatherModule.texts.misc.loadingLocations`),data:a.items,"default-sort":{prop:a.sortBy,order:a.sortDir||`ascending`},"table-layout":`fixed`,"row-key":`id`,class:`flex-grow`,style:t({maxHeight:r.tableHeight+`px`}),"max-height":r.tableHeight,onSortChange:w,onSelectionChange:A,onRowClick:O},{empty:o(()=>[a.loading?(n(),T(`div`,$,[E(l(y),{class:`h-full w-full`},{icon:o(()=>[E(l(C),{size:80},{primary:o(()=>[E(l(x),{icon:`mdi:map-marker-multiple`})]),secondary:o(()=>[E(l(x),{icon:`mdi:database-refresh`})]),_:1})]),_:1})])):v.value&&!a.loading?(n(),T(`div`,ee,[E(l(y),{class:`h-full w-full`},{icon:o(()=>[E(l(C),{size:80},{primary:o(()=>[E(l(x),{icon:`mdi:map-marker-multiple`})]),secondary:o(()=>[E(l(x),{icon:`mdi:information`})]),_:1})]),title:o(()=>[f(_(l(c)(`weatherModule.texts.misc.noLocations`)),1)]),_:1})])):a.filtersActive&&!a.loading?(n(),T(`div`,te,[E(l(y),{class:`h-full w-full`},{icon:o(()=>[E(l(C),{size:80},{primary:o(()=>[E(l(x),{icon:`mdi:map-marker-multiple`})]),secondary:o(()=>[E(l(x),{icon:`mdi:filter-multiple`})]),_:1})]),title:o(()=>[E(l(F),{class:`block`},{default:o(()=>[f(_(l(c)(`weatherModule.texts.misc.noFilteredLocations`)),1)]),_:1}),E(l(h),{type:`primary`,plain:``,class:`mt-4`,onClick:p[0]||=e=>s(`reset-filters`)},{icon:o(()=>[E(l(x),{icon:`mdi:filter-off`})]),default:o(()=>[f(` `+_(l(c)(`weatherModule.buttons.resetFilters.title`)),1)]),_:1})]),_:1})])):u(``,!0)]),default:o(()=>[l(d)?(n(),m(l(B),{key:0,type:`selection`,width:30})):u(``,!0),E(l(B),{width:60,align:`center`},{default:o(()=>[E(l(D),{size:32,class:`bg-primary-light!`},{default:o(()=>[E(l(x),{icon:`mdi:map-marker`,class:`w-[20px] h-[20px]`})]),_:1})]),_:1}),E(l(B),{label:l(c)(`weatherModule.table.columns.name.title`),prop:`name`,sortable:`custom`,"sort-orders":[`ascending`,`descending`],"min-width":200},{default:o(e=>[f(_(e.row.name),1)]),_:1},8,[`label`]),E(l(B),{label:l(c)(`weatherModule.table.columns.weather.title`),width:120,align:`center`},{default:o(e=>[E(Q,{"location-id":e.row.id,"weather-by-location":a.weatherByLocation,"temperature-unit":a.temperatureUnit,"fetch-completed":a.weatherFetchCompleted},null,8,[`location-id`,`weather-by-location`,`temperature-unit`,`fetch-completed`])]),_:1},8,[`label`]),E(l(B),{label:l(c)(`weatherModule.table.columns.type.title`),prop:`type`,sortable:`custom`,"sort-orders":[`ascending`,`descending`],"min-width":200},{default:o(e=>[E(q,{location:e.row,filters:l(g),onFilterBy:p[1]||=(e,t)=>j(`type`,e,t)},null,8,[`location`,`filters`])]),_:1},8,[`label`]),E(l(B),{label:l(c)(`weatherModule.table.columns.primary.title`),width:100,align:`center`},{default:o(e=>[e.row.id===a.primaryLocationId?(n(),m(l(I),{key:0,type:`success`,size:`small`},{default:o(()=>[f(_(l(c)(`weatherModule.table.columns.primary.values.yes`)),1)]),_:1})):(n(),m(l(I),{key:1,type:`info`,size:`small`},{default:o(()=>[f(_(l(c)(`weatherModule.table.columns.primary.values.no`)),1)]),_:1}))]),_:1},8,[`label`]),E(l(B),{width:190,align:`right`},{default:o(e=>[E(l(h),{size:`small`,plain:``,"data-test-id":`detail-location`,onClick:S(t=>s(`detail`,e.row.id),[`stop`])},{icon:o(()=>[E(l(x),{icon:`mdi:file-search-outline`})]),default:o(()=>[f(` `+_(l(c)(`weatherModule.buttons.detail.title`)),1)]),_:1},8,[`onClick`]),E(l(h),{size:`small`,plain:``,class:`ml-1!`,"data-test-id":`edit-location`,onClick:S(t=>s(`edit`,e.row.id),[`stop`])},{icon:o(()=>[E(l(x),{icon:`mdi:pencil`})]),_:1},8,[`onClick`]),E(l(h),{size:`small`,type:`warning`,plain:``,class:`ml-1!`,"data-test-id":`remove-location`,onClick:S(t=>s(`remove`,e.row.id),[`stop`])},{icon:o(()=>[E(l(x),{icon:`mdi:trash`})]),_:1},8,[`onClick`])]),_:1})]),_:1},8,[`element-loading-text`,`data`,`default-sort`,`style`,`max-height`])),[[l(k),a.loading]])}}),re=s({name:`ListLocations`,__name:`list-locations`,props:{items:{},allItems:{},totalRows:{},loading:{type:Boolean},filtersActive:{type:Boolean},filters:{},sortBy:{},sortDir:{},paginateSize:{},paginatePage:{},primaryLocationId:{},weatherByLocation:{},temperatureUnit:{},weatherFetchCompleted:{type:Boolean}},emits:[`detail`,`edit`,`remove`,`reset-filters`,`adjust-list`,`update:filters`,`update:paginate-size`,`update:paginate-page`,`update:sort-by`,`update:sort-dir`,`bulk-action`],setup(e,{emit:t}){let a=e,s=t,{t:u}=p(),{isMDDevice:f}=R(),m=null,h=w(null),_=w(null),y=M(a,`filters`,s),x=w(a.sortBy),S=w(a.sortDir),C=w(a.paginatePage),D=w(a.paginateSize),O=w(250),k=w([]),A=b(()=>[{key:`delete`,label:u(`application.bulkActions.delete`),icon:`mdi:trash`,type:`danger`}]),j=e=>{s(`detail`,e)},N=e=>{s(`edit`,e)},P=e=>{s(`remove`,e)},F=()=>{s(`reset-filters`)},I=e=>{s(`update:paginate-size`,e)},z=e=>{s(`update:paginate-page`,e)},B=e=>{k.value=e},V=e=>{s(`bulk-action`,e,k.value)};return r(()=>{if(!h.value)return;let e=()=>{O.value=h.value.clientHeight-_.value.clientHeight};typeof window<`u`&&`ResizeObserver`in window&&(m=new ResizeObserver(e),m.observe(h.value)),e()}),i(()=>{m&&h.value&&m.unobserve(h.value)}),c(()=>x.value,e=>{s(`update:sort-by`,e)}),c(()=>S.value,e=>{s(`update:sort-dir`,e)}),c(()=>a.paginatePage,e=>{C.value=e}),c(()=>a.paginateSize,e=>{D.value=e}),c(()=>a.sortDir,e=>{S.value=e}),c(()=>a.sortBy,e=>{x.value=e}),c(()=>f.value,e=>{e||(k.value=[])}),(e,t)=>(n(),T(v,null,[E(l(L),{shadow:`never`,class:`px-1 py-2 shrink-0`,"body-class":`p-0!`},{default:o(()=>[E(K,{filters:l(y),"onUpdate:filters":t[0]||=e=>d(y)?y.value=e:null,"filters-active":a.filtersActive,"selected-count":k.value.length,"bulk-actions":A.value,onResetFilters:t[1]||=e=>s(`reset-filters`),onAdjustList:t[2]||=e=>s(`adjust-list`),onBulkAction:V},null,8,[`filters`,`filters-active`,`selected-count`,`bulk-actions`])]),_:1}),g(`div`,{ref_key:`wrapper`,ref:h,class:`flex-grow overflow-hidden`},[E(l(L),{shadow:`never`,class:`max-h-full flex flex-col overflow-hidden box-border`,"body-class":`p-0! max-h-full overflow-hidden flex flex-col`},{default:o(()=>[E(ne,{"sort-by":x.value,"onUpdate:sortBy":t[3]||=e=>x.value=e,"sort-dir":S.value,"onUpdate:sortDir":t[4]||=e=>S.value=e,filters:l(y),"onUpdate:filters":t[5]||=e=>d(y)?y.value=e:null,items:a.items,"total-rows":a.totalRows,loading:a.loading,"filters-active":a.filtersActive,"table-height":O.value,"primary-location-id":a.primaryLocationId,"weather-by-location":a.weatherByLocation,"temperature-unit":a.temperatureUnit,"weather-fetch-completed":a.weatherFetchCompleted,onDetail:j,onEdit:N,onRemove:P,onResetFilters:F,onSelectedChanges:B},null,8,[`sort-by`,`sort-dir`,`filters`,`items`,`total-rows`,`loading`,`filters-active`,`table-height`,`primary-location-id`,`weather-by-location`,`temperature-unit`,`weather-fetch-completed`]),g(`div`,{ref_key:`paginator`,ref:_,class:`flex justify-center w-full py-4`},[E(l(H),{"current-page":C.value,"onUpdate:currentPage":t[6]||=e=>C.value=e,"page-size":D.value,"onUpdate:pageSize":t[7]||=e=>D.value=e,layout:l(f)?`total, sizes, prev, pager, next, jumper`:`total, sizes, prev, pager, next`,total:a.allItems.length,onSizeChange:I,onCurrentChange:z},null,8,[`current-page`,`page-size`,`layout`,`total`])],512)]),_:1})],512)],64))}});export{re as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./chunk-DECur_0Z.js";import{$r as e,Ai as t,Br as n,Hr as r,Lr as i,Nr as a,O as o,Qr as s,Sr as c,Xr as l,_i as u,_r as d,ai as f,br as p,d as m,gr as h,h as g,hr as _,ji as v,lr as y,m as b,mr as x,p as S,sr as C,t as w,ui as T,vr as E,xr as D}from"./icon-with-child-DmQ_XhQy.js";import{$r as O,H as k,Hr as A,Jr as j,Ni as M,Nr as N,Pi as P,Ti as F,Ur as I,W as L,Zn as R,_i as z,gi as B,jr as V,yi as H}from"./common-DlW3qRTQ.js";import{n as U,t as W}from"./table-5pjI7ihN.js";import{t as G}from"./pagination-BN87kdDs.js";var K={class:`flex w-full`},q={class:`flex items-center`},J=c({name:`UsersFilter`,__name:`users-filter`,props:{filters:{},filtersActive:{type:Boolean},selectedCount:{},bulkActions:{}},emits:[`update:filters`,`reset-filters`,`adjust-list`,`bulk-action`],setup(e,{emit:t}){let i=e,a=t,{t:c}=m(),f=T(void 0),p=N(i,`filters`,a),v=[{value:R.user,label:c(`usersModule.fields.role.options.user`)},{value:R.admin,label:c(`usersModule.fields.role.options.admin`)},{value:R.owner,label:c(`usersModule.fields.role.options.owner`)}];return l(()=>p.value.search,e=>{e===``&&(p.value.search=void 0)}),(e,t)=>(n(),E(`div`,K,[D(u(M),{ref_key:`filterFormEl`,ref:f,inline:!0,model:u(p),class:`grow-1`},{default:s(()=>[D(u(F),{modelValue:u(p).search,"onUpdate:modelValue":t[0]||=e=>u(p).search=e,placeholder:u(c)(`usersModule.fields.search.placeholder`),class:`max-w[280px] p-1`,clearable:``},{suffix:s(()=>[D(u(o),null,{default:s(()=>[D(u(S),{icon:`mdi:magnify`})]),_:1})]),_:1},8,[`modelValue`,`placeholder`]),D(u(O),{direction:`vertical`}),D(u(P),{label:u(c)(`usersModule.fields.role.title`),class:`p-1 m-0! w-[200px]`},{default:s(()=>[D(u(H),{modelValue:u(p).roles,"onUpdate:modelValue":t[1]||=e=>u(p).roles=e,placeholder:u(c)(`usersModule.fields.role.placeholder`),clearable:``,multiple:``},{default:s(()=>[(n(),E(y,null,r(v,e=>D(u(z),{key:e.value,label:e.label,value:e.value},null,8,[`label`,`value`])),64))]),_:1},8,[`modelValue`,`placeholder`])]),_:1},8,[`label`])]),_:1},8,[`model`]),_(`div`,q,[D(u(k),{"selected-count":i.selectedCount,actions:i.bulkActions,onAction:t[2]||=e=>a(`bulk-action`,e)},null,8,[`selected-count`,`actions`]),i.filtersActive?(n(),h(u(g),{key:0,plain:``,class:`px-2! mt-1 mr-1`,onClick:t[3]||=e=>a(`reset-filters`)},{default:s(()=>[D(u(S),{icon:`mdi:filter-off`})]),_:1})):d(``,!0)])]))}}),Y={key:0,class:`h-full w-full leading-normal`},X={key:1,class:`h-full w-full leading-normal`},Z={key:2,class:`h-full w-full leading-normal`},Q=c({name:`UsersTable`,__name:`users-table`,props:{items:{},totalRows:{},sortBy:{},sortDir:{},loading:{type:Boolean},filters:{},filtersActive:{type:Boolean},tableHeight:{}},emits:[`edit`,`remove`,`reset-filters`,`selected-changes`,`update:filters`,`update:sort-by`,`update:sort-dir`],setup(r,{emit:i}){let a=r,c=i,{t:l}=m(),{isMDDevice:f}=V(),y=x(()=>a.totalRows===0),T=N(a,`filters`,c),O=({prop:e,order:t})=>{c(`update:sort-by`,e),c(`update:sort-dir`,t)},k=e=>{c(`selected-changes`,e)},M=e=>{c(`edit`,e.id)},P=(e,t,n)=>{if(e===`role`){let e=T.value.roles;n===!0?e.push(t):e=T.value.roles.filter(e=>e!==t),T.value.roles=Array.from(new Set(e))}};return(i,m)=>e((n(),h(u(W),{"element-loading-text":u(l)(`usersModule.texts.misc.loadingUsers`),data:a.items,"default-sort":{prop:a.sortBy,order:a.sortDir||`ascending`},"table-layout":`fixed`,"row-key":`id`,class:`flex-grow`,style:t({maxHeight:r.tableHeight+`px`}),"max-height":r.tableHeight,onSortChange:O,onSelectionChange:k,onRowClick:M},{empty:s(()=>[a.loading?(n(),E(`div`,Y,[D(u(b),{class:`h-full w-full`},{icon:s(()=>[D(u(w),{size:80},{primary:s(()=>[D(u(S),{icon:`mdi:users-group`})]),secondary:s(()=>[D(u(S),{icon:`mdi:database-refresh`})]),_:1})]),_:1})])):y.value&&!a.loading?(n(),E(`div`,X,[D(u(b),{class:`h-full w-full`},{icon:s(()=>[D(u(w),{size:80},{primary:s(()=>[D(u(S),{icon:`mdi:users-group`})]),secondary:s(()=>[D(u(S),{icon:`mdi:information`})]),_:1})]),title:s(()=>[p(v(u(l)(`usersModule.texts.misc.noUsers`)),1)]),_:1})])):a.filtersActive&&!a.loading?(n(),E(`div`,Z,[D(u(b),{class:`h-full w-full`},{icon:s(()=>[D(u(w),{size:80},{primary:s(()=>[D(u(S),{icon:`mdi:users-group`})]),secondary:s(()=>[D(u(S),{icon:`mdi:filter-multiple`})]),_:1})]),title:s(()=>[D(u(I),{class:`block`},{default:s(()=>[p(v(u(l)(`usersModule.texts.misc.noFilteredUsers`)),1)]),_:1}),D(u(g),{type:`primary`,plain:``,class:`mt-4`,onClick:m[0]||=e=>c(`reset-filters`)},{icon:s(()=>[D(u(S),{icon:`mdi:filter-off`})]),default:s(()=>[p(` `+v(u(l)(`usersModule.buttons.resetFilters.title`)),1)]),_:1})]),_:1})])):d(``,!0)]),default:s(()=>[u(f)?(n(),h(u(U),{key:0,type:`selection`,width:30})):d(``,!0),D(u(U),{width:60,align:`center`},{default:s(e=>[D(u(L),{email:e.row.email,size:32},null,8,[`email`])]),_:1}),D(u(U),{label:u(l)(`usersModule.table.columns.username.title`),prop:`username`,sortable:`custom`,"sort-orders":[`ascending`,`descending`],"min-width":150},{default:s(e=>[p(v(e.row.username),1)]),_:1},8,[`label`]),D(u(U),{label:u(l)(`usersModule.table.columns.firstName.title`),prop:`firstName`,sortable:`custom`,"sort-orders":[`ascending`,`descending`],"min-width":150},{default:s(e=>[p(v(e.row.firstName),1)]),_:1},8,[`label`]),D(u(U),{label:u(l)(`usersModule.table.columns.lastName.title`),prop:`lastName`,sortable:`custom`,"sort-orders":[`ascending`,`descending`],"min-width":150},{default:s(e=>[p(v(e.row.lastName),1)]),_:1},8,[`label`]),D(u(U),{label:u(l)(`usersModule.table.columns.email.title`),prop:`email`,sortable:`custom`,"sort-orders":[`ascending`,`descending`],"min-width":150},{default:s(e=>[p(v(e.row.email),1)]),_:1},8,[`label`]),D(u(U),{label:u(l)(`usersModule.table.columns.role.title`),prop:`role`,sortable:`custom`,"sort-orders":[`ascending`,`descending`]},{default:s(e=>[D(u(j),{type:u(T).roles.includes(e.row.role)?`danger`:void 0,underline:`never`,class:`font-400!`,onClick:C(t=>P(`role`,e.row.role,!u(T).roles.includes(e.row.role)),[`stop`])},{default:s(()=>[D(u(o),{class:`el-icon--left`},{default:s(()=>[u(T).roles.includes(e.row.role)?(n(),h(u(S),{key:0,icon:`mdi:filter-minus`})):(n(),h(u(S),{key:1,icon:`mdi:filter-plus`}))]),_:2},1024),p(` `+v(u(l)(`usersModule.role.${e.row.role}`)),1)]),_:2},1032,[`type`,`onClick`])]),_:1},8,[`label`]),D(u(U),{width:120,align:`right`},{default:s(e=>[_(`div`,{onClick:m[1]||=C(()=>{},[`stop`])},[D(u(g),{size:`small`,plain:``,"data-test-id":`edit-user`,onClick:t=>c(`edit`,e.row.id)},{icon:s(()=>[D(u(S),{icon:`mdi:pencil`})]),_:1},8,[`onClick`]),D(u(g),{size:`small`,type:`danger`,plain:``,class:`ml-1!`,"data-test-id":`remove-user`,onClick:t=>c(`remove`,e.row.id)},{icon:s(()=>[D(u(S),{icon:`mdi:trash`})]),_:1},8,[`onClick`])])]),_:1})]),_:1},8,[`element-loading-text`,`data`,`default-sort`,`style`,`max-height`])),[[u(A),a.loading]])}}),$=c({name:`ListUsers`,__name:`list-users`,props:{items:{},allItems:{},totalRows:{},filters:{},filtersActive:{type:Boolean},paginateSize:{},paginatePage:{},sortBy:{},sortDir:{},loading:{type:Boolean}},emits:[`edit`,`remove`,`reset-filters`,`update:filters`,`update:paginate-size`,`update:paginate-page`,`update:sort-by`,`update:sort-dir`,`bulk-action`],setup(e,{emit:t}){let r=e,o=t,{t:c}=m(),{isMDDevice:d}=V(),p=null,h=T(null),g=T(null),v=N(r,`filters`,o),b=T(!1),S=T(r.sortBy),C=T(r.sortDir),w=T(r.paginatePage),O=T(r.paginateSize),k=T(250),A=T([]),j=x(()=>[{key:`delete`,label:c(`application.bulkActions.delete`),icon:`mdi:trash`,type:`danger`}]),M=e=>{o(`edit`,e)},P=e=>{o(`remove`,e)},F=()=>{b.value=!0,o(`reset-filters`)},I=e=>{o(`update:paginate-size`,e)},L=e=>{o(`update:paginate-page`,e)},R=e=>{A.value=e},z=e=>{o(`bulk-action`,e,A.value)};return i(()=>{if(!h.value)return;let e=()=>{k.value=h.value.clientHeight-g.value.clientHeight};typeof window<`u`&&`ResizeObserver`in window&&(p=new ResizeObserver(e),p.observe(h.value)),e()}),a(()=>{p&&h.value&&p.unobserve(h.value)}),l(()=>S.value,e=>{o(`update:sort-by`,e)}),l(()=>C.value,e=>{o(`update:sort-dir`,e)}),l(()=>r.sortDir,e=>{C.value=e}),l(()=>r.sortBy,e=>{S.value=e}),l(()=>d.value,e=>{e||(A.value=[])}),(e,t)=>(n(),E(y,null,[D(u(B),{shadow:`never`,class:`px-1 py-2 shrink-0`,"body-class":`p-0!`},{default:s(()=>[D(J,{filters:u(v),"onUpdate:filters":t[0]||=e=>f(v)?v.value=e:null,"filters-active":r.filtersActive,"selected-count":A.value.length,"bulk-actions":j.value,onResetFilters:t[1]||=e=>o(`reset-filters`),onBulkAction:z},null,8,[`filters`,`filters-active`,`selected-count`,`bulk-actions`])]),_:1}),_(`div`,{ref_key:`wrapper`,ref:h,class:`flex-grow overflow-hidden`},[D(u(B),{shadow:`never`,class:`max-h-full flex flex-col overflow-hidden box-border`,"body-class":`p-0! max-h-full overflow-hidden flex flex-col`},{default:s(()=>[D(Q,{filters:u(v),"onUpdate:filters":t[2]||=e=>f(v)?v.value=e:null,"sort-by":S.value,"onUpdate:sortBy":t[3]||=e=>S.value=e,"sort-dir":C.value,"onUpdate:sortDir":t[4]||=e=>C.value=e,items:r.items,"total-rows":r.totalRows,loading:r.loading,"filters-active":r.filtersActive,"table-height":k.value,onEdit:M,onRemove:P,onResetFilters:F,onSelectedChanges:R},null,8,[`filters`,`sort-by`,`sort-dir`,`items`,`total-rows`,`loading`,`filters-active`,`table-height`]),_(`div`,{ref_key:`paginator`,ref:g,class:`flex justify-center w-full py-4`},[D(u(G),{"current-page":w.value,"onUpdate:currentPage":t[5]||=e=>w.value=e,"page-size":O.value,"onUpdate:pageSize":t[6]||=e=>O.value=e,layout:u(d)?`total, sizes, prev, pager, next, jumper`:`total, sizes, prev, pager, next`,total:r.allItems.length,onSizeChange:I,onCurrentChange:L},null,8,[`current-page`,`page-size`,`layout`,`total`])],512)]),_:1})],512)],64))}});export{$ as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Bn as e,Fn as t,Hn as n,Jn as r,Kn as i,Nn as a,Pn as o,Un as s,Vn as c,Wn as l,_r as u,gr as d,qn as f}from"./common-DlW3qRTQ.js";import{r as p}from"./system.exceptions-Ddzmz1RH.js";var m=f().ulid(),h=l({id:m,ts:f().datetime(),ingestedAt:f().datetime().optional(),seq:s().int().min(0).optional(),source:c(d),level:s().int().min(0).max(6),type:c(u),tag:f().max(128).optional(),resource:f().optional(),message:f().max(2e3).optional(),args:o(r([f(),s(),t(),i(f(),r([f(),s(),t(),a()])),o(r([f(),s(),t(),a()])),a()])).max(20).optional(),user:l({id:f().uuid().optional()}),context:l({appVersion:f().optional(),url:f().optional(),userAgent:f().optional(),locale:f().optional()})}),g=l({ts:f().datetime(),level:s().int().min(0).max(6),type:c(u),tag:f().max(128).optional(),message:f().max(2e3).optional(),args:o(r([f(),s(),t(),i(f(),r([f(),s(),t(),a()])),o(r([f(),s(),t(),a()])),a()])).max(20).optional(),user:l({id:f().uuid().optional()}).optional(),context:l({appVersion:f().optional(),url:f().optional(),userAgent:f().optional(),locale:f().optional()}).optional()});l({fetching:l({items:t().default(!1)}),creating:o(m),deleting:o(m)}),l({id:m,data:e({})}),l({id:m,data:l({id:m,ts:f().datetime(),ingestedAt:f().datetime().optional(),seq:s().int().min(0).optional(),source:c(d),level:s().int().min(0).max(6),type:c(u),tag:f().max(128).optional(),resource:f().optional(),message:f().max(2e3).optional(),args:o(r([f(),s(),t(),i(f(),r([f(),s(),t(),a()])),o(r([f(),s(),t(),a()])),a()])).max(20).optional(),user:l({id:f().uuid().optional()}),context:l({appVersion:f().optional(),url:f().optional(),userAgent:f().optional(),locale:f().optional()})})}),l({id:m}),l({afterId:f().optional(),limit:s().min(1).max(200).default(10).optional(),append:t().default(!1).optional()});var _=l({data:o(g)}),v=l({ts:f(),source:c(d),level:s(),type:c(u),tag:f().optional(),message:f().optional(),args:o(r([f(),s(),t(),i(f(),n()),o(r([f(),s(),t(),a()])),a()])).optional(),user:l({id:f().uuid().optional()}).optional(),context:l({app_version:f().optional(),url:f().optional(),user_agent:f().optional(),locale:f().optional()}).optional()});l({id:f().ulid(),ts:f(),ingested_at:f(),seq:s().optional(),source:c(d),level:s(),type:c(u),tag:f().optional(),resource:f().optional(),message:f().optional(),args:o(r([f(),s(),t(),i(f(),n()),o(r([f(),s(),t(),a()])),a()])).optional(),user:l({id:f().uuid().optional()}),context:l({app_version:f().optional(),url:f().optional(),user_agent:f().optional(),locale:f().optional()})});var y=e=>{let t=h.safeParse({id:e.id,ts:e.ts,ingestedAt:e.ingested_at,seq:e.seq,source:e.source,level:e.level,type:e.type,tag:e.tag,resource:e.resource,message:e.message,args:e.args,user:{id:e.user?.id},context:{appVersion:e.context?.app_version,url:e.context?.url,userAgent:e.context?.user_agent,locale:e.context?.locale}});if(!t.success)throw new p(`Failed to validate received log entry data.`);return t.data},b=e=>{let t=e.map(e=>({ts:e.ts,level:e.level,type:e.type,tag:e.tag,message:e.message,args:e.args,user:e.user?.id?{id:e.user.id}:void 0,context:e.context?{app_version:e.context.appVersion,url:e.context.url,user_agent:e.context.userAgent,locale:e.context.locale}:void 0})),n=o(v).safeParse(t);if(!n.success)throw new p(`Failed to validate create log entry request.`);return n.data};export{_ as i,y as n,h as r,b as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e=`data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAABSCAMAAAAhFXfZAAAC91BMVEVMaXEzeak2f7I4g7g3g7cua5gzeKg8hJo3grY4g7c3grU0gLI2frE0daAubJc2gbQwd6QzeKk2gLMtd5sxdKIua5g1frA2f7IydaM0e6w2fq41fK01eqo3grgubJgta5cxdKI1f7AydaQydaMxc6EubJgvbJkwcZ4ubZkwcJwubZgubJcydqUydKIxapgubJctbJcubZcubJcvbJYubJcvbZkubJctbJctbZcubJg2f7AubJcrbZcubJcubJcua5g3grY0fq8ubJcubJdEkdEwhsw6i88vhswuhcsuhMtBjMgthMsrg8srgss6is8qgcs8i9A9iMYtg8spgcoogMo7hcMngMonf8olfso4gr8kfck5iM8jfMk4iM8he8k1fro7itAgesk2hs8eecgzfLcofssdeMg0hc4cd8g2hcsxeLQbdsgZdcgxeLImfcszhM0vda4xgckzhM4xg84wf8Yxgs4udKsvfcQucqhUndROmdM1fK0wcZ8vb5w0eqpQm9MzeKhXoNVcpdYydKNWn9VZotVKltJFjsIwcJ1Rms9OlslLmtH///8+kc9epdYzd6dbo9VHkMM2f7FHmNBClM8ydqVcpNY9hro3gLM9hLczealQmcw3fa46f7A8gLMxc6I3eagyc6FIldJMl9JSnNRSntNNl9JPnNJFi75UnM9ZodVKksg8kM45jc09e6ZHltFBk883gbRBh7pDk9EwcaBzn784g7dKkcY2i81Om9M7j85Llc81is09g7Q4grY/j9A0eqxKmdFFltBEjcXf6fFImdBCiLxJl9FGlNFBi78yiMxVndEvbpo6js74+vx+psPP3+o/ks5HkcpGmNCjwdZCkNDM3ehYoNJEls+lxNkxh8xHks0+jdC1zd5Lg6r+/v/H2ufz9/o3jM3t8/edvdM/k89Th61OiLBSjbZklbaTt9BfptdjmL1AicBHj8hGk9FAgK1dkLNTjLRekrdClc/k7fM0icy0y9tgp9c4jc2NtM9Dlc8zicxeXZn3AAAAQ3RSTlMAHDdTb4yPA+LtnEQmC4L2EmHqB7XA0d0sr478x4/Yd5i1zOfyPkf1sLVq4Nh3FvjxopQ2/STNuFzUwFIwxKaejILpIBEV9wAABhVJREFUeF6s1NdyFEcYBeBeoQIhRAkLlRDGrhIgY3BJL8CVeKzuyXFzzjkn5ZxzzuScg3PO8cKzu70JkO0LfxdTU//pM9vTu7Xgf6KqOVTb9X7toRrVEfBf1HTVjZccrT/2by1VV928Yty9ZbVuucdz90frG8DBjl9pVApbOstvmMuvVgaNXSfAAd6pGxpy6yxf5ph43pS/4f3uoaGm2rdu72S9xzOvMymkZFq/ptDrk90mhW7e4zl7HLzhxGWPR20xmSxJ/VqldG5m9XhaVOA1DadsNh3Pu5L2N6QtPO/32JpqQBVVk20oy/Pi2s23WEvyfHbe1thadVQttvm7Llf65gGmXK67XtupyoM7HQhmXdLS8oGWJNeOJ3C5fG5XCEJnkez3/oFdsvgJ4l2ANZwhrJKk/7OSXa+3Vw2WJMlKnGkobouYk6T0TyX30klOUnTD9HJ5qpckL3EW/w4XF3Xd0FGywXUrstrclVsqz5Pd/sXFYyDnPdrLcQODmGOK47IZb4CmibmMn+MYRzFZ5jg33ZL/EJrWcszHmANy3ARBK/IXtciJy8VsitPSdE3uuHxzougojcUdr8/32atnz/ev3f/K5wtpxUTpcaI45zusVDpYtZi+jg0oU9b3x74h7+n9ABvYEZeKaVq0sh0AtLKsFtqNBdeT0MrSzwwlq9+x6xAO4tgOtSzbCjrNQQiNvQUbUEubvzBUeGw26yDCsRHCoLkTHDa7IdOLIThs/gHvChszh2CimE8peRs47cxANI0lYNB5y1DljpOF0IhzBDPOZnDOqYYbeGKECbPzWnXludPphw5c2YBq5zlwXphIbO4VDCZ0gnPfUO1TwZoYwAs2ExPCedAu9DAjfQUjzITQb3jNj0KG2Sgt6BHaQUdYzWz+XmBktOHwanXjaSTcwwziBcuMOtwBmqPrTOxFQR/DRKKPqyur0aiW6cULYsx6tBm0jXpR/AUWR6HRq9WVW6MRhIq5jLyjbaCTDCijyYJNpCajdyobP/eTw0iexBAKkJ3gA5KcQb2zBXsIBckn+xVv8jkZSaEFHE+jFEleAEfayRU0MouNoBmB/L50Ai/HSLIHxcrpCvnhSQAuakKp2C/YbCylJjXRVy/z3+Kv/RrNcCo+WUzlVEhzKffnTQnxeN9fWF88fiNCUdSTsaufaChKWInHeysygfpIqagoakW+vV20J8uyl6TyNKEZWV4oRSPyCkWpgOLSbkCObT8o2r6tlG58HQquf6O0v50tB7JM7F4EORd2dx/K0w/KHsVkLPaoYrwgP/y7krr3SSMA4zj+OBgmjYkxcdIJQyQRKgg2viX9Hddi9UBb29LrKR7CVVEEEXWojUkXNyfTNDE14W9gbHJNuhjDettN3ZvbOvdOqCD3Jp/9l+/wJE+9PkYGjx/fqkys3S2rMozM/o2106rfMUINo6hVqz+eu/hd1c4xTg0TAfy5kV+4UG6+IthHTU9woWmxuKNbTfuCSfovBCxq7EtHqvYL4Sm6F8GVxsSXHMQ07TOi1DKtZxjWaaIyi4CXWjxPccUw8WVbMYY5wxC1mzEyXMJWkllpRloi+Kkoq69sxBTlElF6aAxYUbjXNlhlDZilDnM4U5SlN5biRsRHnbx3mbeWjEh4mEyiuJDl5XcWVmX5GvNkFgLWZM5qwsop4/AWfLhU1cR7k1VVvcYCWRkOI6Xy5gmnphCYIkvzuNYzHzosq2oNk2RtSs8khfUOfHIDgR6ysYBaMpl4uEgk2U/oJTs9AaTSwma7dT69geAE2ZpEjUsn2ieJNHeKfrI3EcAGJ2ZaNgVuC8EBctCLc57P5u5led6IOBkIYkuQMrmmjChs4VkfOerHqSBkPzZlhe06RslZ3zMjk2sscqKwY0RcjKK+LWbzd7KiHhkncs/siFJ+V5eXxD34B8nVuJEpGJNmxN2gH3vSvp7J70tF+D1Ej8qUJD1TkErAND2GZwTFg/LubvmgiBG3SOvdlsqFQrkEzJCL1rstlnVFROixZoDDSuXQFHESwVGlcuQcMb/b42NgjLowh5MTDFE3vNB5qStRIErdCQEh6pLPR92anSUb/wAIhldAaDMpGgAAAABJRU5ErkJggg==`;export{e as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e=`data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAApCAYAAADAk4LOAAAFgUlEQVR4Aa1XA5BjWRTN2oW17d3YaZtr2962HUzbDNpjszW24mRt28p47v7zq/bXZtrp/lWnXr337j3nPCe85NcypgSFdugCpW5YoDAMRaIMqRi6aKq5E3YqDQO3qAwjVWrD8Ncq/RBpykd8oZUb/kaJutow8r1aP9II0WmLKLIsJyv1w/kqw9Ch2MYdB++12Onxee/QMwvf4/Dk/Lfp/i4nxTXtOoQ4pW5Aj7wpici1A9erdAN2OH64x8OSP9j3Ft3b7aWkTg/Fm91siTra0f9on5sQr9INejH6CUUUpavjFNq1B+Oadhxmnfa8RfEmN8VNAsQhPqF55xHkMzz3jSmChWU6f7/XZKNH+9+hBLOHYozuKQPxyMPUKkrX/K0uWnfFaJGS1QPRtZsOPtr3NsW0uyh6NNCOkU3Yz+bXbT3I8G3xE5EXLXtCXbbqwCO9zPQYPRTZ5vIDXD7U+w7rFDEoUUf7ibHIR4y6bLVPXrz8JVZEql13trxwue/uDivd3fkWRbS6/IA2bID4uk0UpF1N8qLlbBlXs4Ee7HLTfV1j54APvODnSfOWBqtKVvjgLKzF5YdEk5ewRkGlK0i33Eofffc7HT56jD7/6U+qH3Cx7SBLNntH5YIPvODnyfIXZYRVDPqgHtLs5ABHD3YzLuespb7t79FY34DjMwrVrcTuwlT55YMPvOBnRrJ4VXTdNnYug5ucHLBjEpt30701A3Ts+HEa73u6dT3FNWwflY86eMHPk+Yu+i6pzUpRrW7SNDg5JHR4KapmM5Wv2E8Tfcb1HoqqHMHU+uWDD7zg54mz5/2BSnizi9T1Dg4QQXLToGNCkb6tb1NU+QAlGr1++eADrzhn/u8Q2YZhQVlZ5+CAOtqfbhmaUCS1ezNFVm2imDbPmPng5wmz+gwh+oHDce0eUtQ6OGDIyR0uUhUsoO3vfDmmgOezH0mZN59x7MBi++WDL1g/eEiU3avlidO671bkLfwbw5XV2P8Pzo0ydy4t2/0eu33xYSOMOD8hTf4CrBtGMSoXfPLchX+J0ruSePw3LZeK0juPJbYzrhkH0io7B3k164hiGvawhOKMLkrQLyVpZg8rHFW7E2uHOL888IBPlNZ1FPzstSJM694fWr6RwpvcJK60+0HCILTBzZLFNdtAzJaohze60T8qBzyh5ZuOg5e7uwQppofEmf2++DYvmySqGBuKaicF1blQjhuHdvCIMvp8whTTfZzI7RldpwtSzL+F1+wkdZ2TBOW2gIF88PBTzD/gpeREAMEbxnJcaJHNHrpzji0gQCS6hdkEeYt9DF/2qPcEC8RM28Hwmr3sdNyht00byAut2k3gufWNtgtOEOFGUwcXWNDbdNbpgBGxEvKkOQsxivJx33iow0Vw5S6SVTrpVq11ysA2Rp7gTfPfktc6zhtXBBC+adRLshf6sG2RfHPZ5EAc4sVZ83yCN00Fk/4kggu40ZTvIEm5g24qtU4KjBrx/BTTH8ifVASAG7gKrnWxJDcU7x8X6Ecczhm3o6YicvsLXWfh3Ch1W0k8x0nXF+0fFxgt4phz8QvypiwCCFKMqXCnqXExjq10beH+UUA7+nG6mdG/Pu0f3LgFcGrl2s0kNNjpmoJ9o4B29CMO8dMT4Q5ox8uitF6fqsrJOr8qnwNbRzv6hSnG5wP+64C7h9lp30hKNtKdWjtdkbuPA19nJ7Tz3zR/ibgARbhb4AlhavcBebmTHcFl2fvYEnW0ox9xMxKBS8btJ+KiEbq9zA4RthQXDhPa0T9TEe69gWupwc6uBUphquXgf+/FrIjweHQS4/pduMe5ERUMHUd9xv8ZR98CxkS4F2n3EUrUZ10EYNw7BWm9x1GiPssi3GgiGRDKWRYZfXlON+dfNbM+GgIwYdwAAAAASUVORK5CYII=`;export{e as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e=`data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACkAAAApCAQAAAACach9AAACMUlEQVR4Ae3ShY7jQBAE0Aoz/f9/HTMzhg1zrdKUrJbdx+Kd2nD8VNudfsL/Th///dyQN2TH6f3y/BGpC379rV+S+qqetBOxImNQXL8JCAr2V4iMQXHGNJxeCfZXhSRBcQMfvkOWUdtfzlLgAENmZDcmo2TVmt8OSM2eXxBp3DjHSMFutqS7SbmemzBiR+xpKCNUIRkdkkYxhAkyGoBvyQFEJEefwSmmvBfJuJ6aKqKWnAkvGZOaZXTUgFqYULWNSHUckZuR1HIIimUExutRxwzOLROIG4vKmCKQt364mIlhSyzAf1m9lHZHJZrlAOMMztRRiKimp/rpdJDc9Awry5xTZCte7FHtuS8wJgeYGrex28xNTd086Dik7vUMscQOa8y4DoGtCCSkAKlNwpgNtphjrC6MIHUkR6YWxxs6Sc5xqn222mmCRFzIt8lEdKx+ikCtg91qS2WpwVfBelJCiQJwvzixfI9cxZQWgiSJelKnwBElKYtDOb2MFbhmUigbReQBV0Cg4+qMXSxXSyGUn4UbF8l+7qdSGnTC0XLCmahIgUHLhLOhpVCtw4CzYXvLQWQbJNmxoCsOKAxSgBJno75avolkRw8iIAFcsdc02e9iyCd8tHwmeSSoKTowIgvscSGZUOA7PuCN5b2BX9mQM7S0wYhMNU74zgsPBj3HU7wguAfnxxjFQGBE6pwN+GjME9zHY7zGp8wVxMShYX9NXvEWD3HbwJf4giO4CFIQxXScH1/TM+04kkBiAAAAAElFTkSuQmCC`;export{e as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./chunk-DECur_0Z.js";import{Ai as e,Ar as t,Br as n,Cr as r,Hr as i,Kr as a,Lr as o,Mr as s,Nr as ee,O as c,Oi as l,Qr as u,Sr as d,Tr as te,Xr as f,_i as p,_r as m,br as h,d as ne,f as g,gr as _,h as v,hr as y,ji as b,lr as x,mr as S,p as C,pt as re,tr as w,ui as T,vr as E,xr as D}from"./icon-with-child-DmQ_XhQy.js";import{T as ie,Ur as O,_i as ae,bi as k,fi as oe,gi as A,pi as se,va as ce,yi as le}from"./common-DlW3qRTQ.js";import{t as ue}from"./empty-C13Ke09q.js";import{t as de}from"./popover-DOg0KdzK.js";import{a as j,d as M,r as fe}from"./keys-CGGnS6tq.js";import{f as pe,n as me}from"./types-B8upWpl6.js";import{i as N,t as he}from"./useDataSources-Bx93bXrZ.js";import{t as ge}from"./gridstack.min-BC6WoZvX.js";var P={class:`tile-preview b-1 b-solid rounded-2 grow-1 relative overflow-hidden`},F={key:1,class:`flex flex-col items-center justify-center h-full w-full p-2`},_e={class:`tile-preview__overlay`},ve=g(d({name:`CardTilePreview`,__name:`tile-preview`,props:{tile:{}},emits:[`detail`,`edit`,`remove`],setup(e,{emit:t}){let r=e,i=t,{getElement:o}=N(),s=S(()=>o(r.tile.type)?.components?.tilePreview);return(e,t)=>(n(),E(`div`,P,[s.value?(n(),_(a(s.value),{key:0,tile:r.tile},null,8,[`tile`])):(n(),E(`div`,F,[D(p(c),{size:20,color:`var(--el-text-color-secondary)`},{default:u(()=>[D(p(C),{icon:`mdi:puzzle-outline`})]),_:1}),D(p(O),{type:`info`,size:`small`,class:`mt-1 truncate max-w-full text-center`},{default:u(()=>[h(b(r.tile.type),1)]),_:1})])),y(`div`,_e,[D(p(v),{size:`small`,circle:``,onClick:t[0]||=e=>i(`detail`,r.tile.id)},{icon:u(()=>[D(p(C),{icon:`mdi:file-search-outline`})]),_:1}),D(p(v),{size:`small`,type:`primary`,circle:``,class:`ml-1!`,onClick:t[1]||=e=>i(`edit`,r.tile.id)},{icon:u(()=>[D(p(C),{icon:`mdi:pencil`})]),_:1}),D(p(v),{size:`small`,type:`danger`,circle:``,class:`ml-1!`,onClick:t[2]||=e=>i(`remove`,r.tile.id)},{icon:u(()=>[D(p(C),{icon:`mdi:trash-can-outline`})]),_:1})])]))}}),[[`__scopeId`,`data-v-ef47b603`]]),ye={class:`h-full box-border overflow-hidden p-2`},be={class:`flex items-center gap-1 min-w-0 max-w-48`},xe={class:`flex items-center gap-1 flex-1 min-w-0 flex-wrap justify-end`},Se=[`onClick`],Ce={class:`truncate`},we={class:`flex flex-col gap-1`},Te=[`onClick`],Ee={class:`flex items-center flex-shrink-0 gap-0.5`},De={class:`flex-1 overflow-auto min-h-0`},Oe={key:0,class:`p-4 text-center`},ke={class:`flex items-center gap-1 min-w-0`},Ae={class:`flex items-center gap-1`},je={class:`p-2`},Me={class:`flex flex-col gap-2`},Ne={class:`flex items-center justify-between w-full`},Pe={key:1,class:`flex flex-col`},Fe={class:`flex flex-col gap-1`},Ie=[`onClick`],Le={class:`flex items-center gap-1 min-w-0`},Re=3,ze=d({name:`CardsPageConfigure`,__name:`page-configure`,props:{page:{},cards:{},gridLayout:{},gridCardStyle:{},displays:{},selectedDisplay:{},remotePageSubmit:{type:Boolean},remotePageResult:{default:M.NONE},remotePageChanged:{type:Boolean,default:!1}},emits:[`selectDisplay`,`addPageDataSource`,`editPageDataSource`,`addCard`,`editCard`,`removeCard`,`addTile`,`editTile`,`tileDetail`,`update:remote-page-submit`,`update:remote-page-result`,`update:remote-page-changed`],setup(a,{emit:d}){let{t:g}=ne(),N=re(`cards-page-configure`),P=a,F=d,{dataSources:_e,fetchDataSources:ze}=he({parent:`page`,parentId:P.page.id}),{remove:Be}=me({parent:`page`,parentId:P.page.id}),{getElement:Ve}=pe(),He=S(()=>_e.value.filter(e=>!e.draft)),Ue=S(()=>He.value.slice(0,Re)),I=S(()=>He.value.slice(Re)),We=e=>{let t=e;return typeof t.icon==`string`&&t.icon?t.icon:null},L=(e,t)=>e?e.includes(`:`)?e:`mdi:${e}`:t,Ge=e=>{let t=Ve(e.type);return t?.name?.trim()?t.name:e.type},Ke=e=>{Be(e)},qe=r()?.appContext??null,R=S(()=>[...P.cards].sort((e,t)=>e.order-t.order)),z=new Map,B=new Map,V=new Map,H=new Set,Je=T(!1),U=T(!1),W=T(!1),G,Ye,K=ie().getStore(fe),{firstLoad:Xe,semaphore:Ze}=ce(K),q=new Map,J=new Map,Y=e=>{if(q.has(e))return;let t=S(()=>K.findForParent(`card`,e)),n=S(()=>Ze.value.fetching.items.includes(e));q.set(e,{tiles:t,areLoading:n,fetchTiles:async()=>{await K.fetch({parent:{type:`card`,id:e}})}}),J.set(e,{findById:(e,t)=>K.findById(e,t),edit:e=>K.edit(e),save:e=>K.save(e),removeDirectly:e=>K.remove(e)})},X=e=>(Y(e),q.get(e)?.tiles.value??[]),Qe=(e,t)=>{t?B.set(e,t):B.delete(e)},$e=(e,t)=>{H.add(e);let n=z.get(t);if(!n)return;let r=n.getGridItems().find(t=>t.gridstackNode?.id===e);r&&n.removeWidget(r)},et=e=>{for(let t of e.getGridItems()){let e=t.querySelector(`.grid-stack-item-content`);e&&w(null,e)}},Z=()=>{for(let[,e]of z)et(e),e.removeAll(!0),e.destroy(!1);z.clear(),V.clear()},tt=e=>{let t=z.get(e);t&&(et(t),t.removeAll(!0),t.destroy(!1),z.delete(e),V.delete(e))},nt=(e,t,n)=>{let r=te(ve,{tile:t,onDetail:e=>{F(`tileDetail`,e)},onEdit:e=>{F(`editTile`,e,n)},onRemove:e=>{$e(e,n)}});qe&&(r.appContext=qe),w(r,e)},Q=()=>{!Je.value||U.value||(clearTimeout(G),G=setTimeout(()=>{W.value=!0},50))},rt=e=>{let t=B.get(e.id);if(!t||!P.gridLayout)return;let n=e.cols??P.gridLayout.cols,r=e.rows??P.gridLayout.rows,i=ge.init({column:n,row:r,cellHeight:`auto`,margin:4,float:!0,acceptWidgets:!0},t);z.set(e.id,i),V.has(e.id)||V.set(e.id,new Set);let a=V.get(e.id);i.on(`dragstop`,(t,n)=>{let r=n.gridstackNode,i=r?.id;if(!i)return;let a=X(e.id).find(e=>e.id===i);a&&(a.row-1!==r?.y||a.col-1!==r?.x)&&Q()}),i.on(`resizestop`,(t,n)=>{let r=n.gridstackNode,i=r?.id;if(!i)return;let a=X(e.id).find(e=>e.id===i);a&&(a.rowSpan!==r?.h||a.colSpan!==r?.w)&&Q()}),i.on(`added`,function(t,n){Q();for(let t of n){let n=t.el;if(!n)continue;let r=n.querySelector(`.grid-stack-item-content`);if(!r)continue;let i=t.id,o;for(let[,e]of q)if(o=e.tiles.value.find(e=>e.id===i),o)break;o&&(nt(r,o,e.id),a.add(o.id))}}),i.on(`removed`,function(e,t){for(let e of t){let t=e.el?.querySelector(`.grid-stack-item-content`);t&&w(null,t),e.id&&(a.delete(e.id),Q())}});let o=t.clientWidth/i.getColumn();i.cellHeight(o);let s=X(e.id);for(let e of s)H.has(e.id)||a.has(e.id)||i.addWidget({id:e.id,x:e.col-1,y:e.row-1,w:e.colSpan,h:e.rowSpan})},$=()=>{if(P.gridLayout===null){U.value=!0,Z(),U.value=!1;return}U.value=!0,Z();for(let e of R.value)rt(e);U.value=!1},it=()=>{for(let e of R.value){let t=X(e.id),n=z.get(e.id);if(!n&&(U.value=!0,rt(e),U.value=!1,n=z.get(e.id),!n)||t.length===0)continue;let r=V.get(e.id);if(r)for(let e of t)H.has(e.id)||r.has(e.id)||(e.draft||(U.value=!0),n.addWidget({id:e.id,x:e.col-1,y:e.row-1,w:e.colSpan,h:e.rowSpan}),e.draft||(U.value=!1))}};s(()=>{for(let e of P.cards){Y(e.id);let t=q.get(e.id);t.areLoading.value||t.fetchTiles().catch(e=>{throw new j(`Something went wrong`,e)})}ze().catch(e=>{throw new j(`Something went wrong`,e)})});let at=()=>{for(let[,e]of z){let t=e.el;if(t){let n=t.clientWidth/e.getColumn();e.cellHeight(n)}}},ot=()=>{t(()=>{at()})};o(()=>{t(()=>{$()}),window.addEventListener(`resize`,ot),Ye=setTimeout(()=>{Je.value=!0},500)}),ee(()=>{window.removeEventListener(`resize`,ot),clearTimeout(G),clearTimeout(Ye),Z()});let st=S(()=>{let e=new Map;for(let t of R.value)e.set(t.id,`${t.rows??``}:${t.cols??``}`);return e}),ct=new Map;return f(()=>R.value,()=>{for(let e of R.value){Y(e.id);let t=q.get(e.id);t&&!t.areLoading.value&&t.tiles.value.length===0&&t.fetchTiles().catch(e=>{throw new j(`Something went wrong`,e)})}for(let[e]of z)R.value.some(t=>t.id===e)||(U.value=!0,tt(e),U.value=!1);it()},{flush:`post`}),f(st,e=>{let n=!1;for(let[t,r]of e){let e=ct.get(t);if(e!==void 0&&e!==r){n=!0;break}}ct=new Map(e),n&&t(()=>{$()})},{flush:`post`}),f(S(()=>{let e=[];for(let t of R.value){Y(t.id);let n=q.get(t.id);if(n){let r=n.tiles.value.map(e=>e.id).sort().join(`,`);e.push(`${t.id}:${r}`)}}return e.sort().join(`|`)}),()=>{it()},{flush:`post`}),f(()=>Xe.value,()=>{it()},{flush:`post`}),f(()=>P.remotePageSubmit,async e=>{if(e){F(`update:remote-page-submit`,!1),F(`update:remote-page-result`,M.WORKING);try{let e=[];for(let[t,n]of z){let r=[];for(let e of n.getGridItems()){let t=e.gridstackNode;t?.id&&r.push({id:t.id,x:t.x??0,y:t.y??0,w:t.w??1,h:t.h??1})}e.push({cardId:t,gridItems:r})}for(let{cardId:t,gridItems:n}of e){let e=J.get(t);if(e)for(let r of n){let n=null;for(let[,e]of J)if(n=e.findById(`card`,r.id),n)break;n&&(n=await e.edit({id:n.id,parent:{type:`card`,id:t},data:{type:n.type,row:r.y+1,col:r.x+1,rowSpan:r.h,colSpan:r.w,hidden:!1}}),n.draft&&await e.save({id:n.id,parent:{type:`card`,id:t}}))}}for(let e of H)for(let[,t]of J){let n=t.findById(`card`,e);if(n){await t.removeDirectly({id:e,parent:{type:`card`,id:n.parent.id}});break}}H.clear(),F(`update:remote-page-result`,M.OK),W.value=!1}catch{F(`update:remote-page-result`,M.ERROR)}}}),f(()=>W.value,e=>{F(`update:remote-page-changed`,e)}),f(()=>P.gridLayout,(e,n)=>{e&&n&&e.rows===n.rows&&e.cols===n.cols||t(()=>{$()})}),f(()=>P.gridCardStyle,()=>{t(()=>{at()})}),(t,r)=>(n(),E(`div`,ye,[D(p(se),{gutter:10,justify:`center`,class:`h-full`},{default:u(()=>[D(p(oe),{span:16,class:`h-full overflow-hidden p-2`},{default:u(()=>[D(p(A),{"body-class":`p-0! flex flex-col overflow-hidden h-full`,class:l([p(N).b(),`mx-auto overflow-hidden h-full`]),style:e(P.gridCardStyle)},{default:u(()=>[y(`div`,{class:l([p(N).e(`header`),`flex items-center px-2 flex-shrink-0 min-h-9 py-1 b-b b-b-solid gap-1.5`])},[y(`div`,be,[D(p(c),{size:14,class:`flex-shrink-0`,color:`var(--el-text-color-regular)`},{default:u(()=>[D(p(C),{icon:L(P.page.icon,`mdi:view-dashboard-variant`)},null,8,[`icon`])]),_:1}),D(p(O),{size:`small`,class:`truncate`},{default:u(()=>[h(b(P.page.title),1)]),_:1})]),y(`div`,xe,[(n(!0),E(x,null,i(Ue.value,e=>(n(),_(p(k),{key:e.id,size:`small`,closable:``,class:l(p(N).e(`data-source-tag`)),onClose:t=>Ke(e.id)},{default:u(()=>[y(`span`,{class:`inline-flex items-center gap-0.5`,onClick:t=>F(`editPageDataSource`,e.id)},[D(p(c),{size:12},{default:u(()=>[D(p(C),{icon:We(e)||`mdi:database`},null,8,[`icon`])]),_:2},1024),y(`span`,Ce,b(Ge(e)),1)],8,Se)]),_:2},1032,[`class`,`onClose`]))),128)),I.value.length>0?(n(),_(p(de),{key:0,width:280,trigger:`click`,placement:`bottom`},{reference:u(()=>[D(p(k),{size:`small`,type:`info`,class:`cursor-pointer flex-shrink-0`},{default:u(()=>[h(` +`+b(I.value.length),1)]),_:1})]),default:u(()=>[y(`div`,we,[(n(!0),E(x,null,i(I.value,e=>(n(),E(`div`,{key:e.id,class:l([p(N).e(`overflow-item`),`flex items-center gap-1 py-1 px-1 rounded`])},[y(`div`,{class:`flex items-center gap-1 min-w-0 flex-1 cursor-pointer`,onClick:t=>F(`editPageDataSource`,e.id)},[D(p(c),{size:14,color:`var(--el-text-color-regular)`},{default:u(()=>[D(p(C),{icon:We(e)||`mdi:database`},null,8,[`icon`])]),_:2},1024),D(p(O),{size:`small`,class:`truncate`},{default:u(()=>[h(b(Ge(e)),1)]),_:2},1024)],8,Te),y(`div`,Ee,[D(p(v),{size:`small`,text:``,circle:``,onClick:t=>F(`editPageDataSource`,e.id)},{icon:u(()=>[D(p(C),{icon:`mdi:pencil`,width:14})]),_:1},8,[`onClick`]),D(p(v),{size:`small`,text:``,type:`danger`,circle:``,onClick:t=>Ke(e.id)},{icon:u(()=>[D(p(C),{icon:`mdi:trash-can-outline`,width:14})]),_:1},8,[`onClick`])])],2))),128))])]),_:1})):m(``,!0)]),D(p(v),{size:`small`,plain:``,class:`flex-shrink-0`,onClick:r[0]||=e=>F(`addPageDataSource`)},{icon:u(()=>[D(p(C),{icon:`mdi:plus`})]),_:1})],2),y(`div`,De,[R.value.length===0?(n(),E(`div`,Oe,[D(p(ue),{description:p(g)(`pagesCardsPlugin.texts.cards.noCards`)},null,8,[`description`])])):m(``,!0),(n(!0),E(x,null,i(R.value,e=>(n(),E(`div`,{key:e.id,class:`b-b b-b-solid`,style:{"border-color":`var(--el-border-color-lighter)`}},[y(`div`,{class:l([p(N).e(`card-header`),`flex items-center justify-between px-2 h-8 min-h-8 b-b b-b-solid`])},[y(`div`,ke,[e.icon?(n(),_(p(c),{key:0,size:14,color:`var(--el-text-color-regular)`},{default:u(()=>[D(p(C),{icon:L(e.icon,``)},null,8,[`icon`])]),_:2},1024)):m(``,!0),D(p(O),{size:`small`,class:`truncate font-medium`},{default:u(()=>[h(b(e.title),1)]),_:2},1024),D(p(k),{size:`small`,type:`info`,class:`ml-1`},{default:u(()=>[h(` #`+b(e.order),1)]),_:2},1024)]),y(`div`,Ae,[D(p(v),{size:`small`,plain:``,onClick:t=>F(`addTile`,e.id)},{icon:u(()=>[D(p(C),{icon:`mdi:plus`})]),_:1},8,[`onClick`]),D(p(v),{size:`small`,plain:``,onClick:t=>F(`editCard`,e.id)},{icon:u(()=>[D(p(C),{icon:`mdi:pencil`})]),_:1},8,[`onClick`]),D(p(v),{size:`small`,plain:``,type:`danger`,onClick:t=>F(`removeCard`,e.id)},{icon:u(()=>[D(p(C),{icon:`mdi:trash-can-outline`})]),_:1},8,[`onClick`])])],2),y(`div`,je,[y(`div`,{ref_for:!0,ref:t=>Qe(e.id,t),class:`card-grid-container`},null,512)])]))),128))])]),_:1},8,[`class`,`style`])]),_:1}),D(p(oe),{span:8,class:`h-full overflow-auto p-2`},{default:u(()=>[y(`div`,Me,[P.displays.length>0?(n(),_(p(A),{key:0,"body-class":`p-2!`},{header:u(()=>[h(b(p(g)(`pagesCardsPlugin.headings.configure.display`)),1)]),default:u(()=>[P.displays.length>1?(n(),_(p(le),{key:0,"model-value":P.selectedDisplay?.id,size:`small`,class:`w-full`,onChange:r[1]||=e=>F(`selectDisplay`,e)},{default:u(()=>[(n(!0),E(x,null,i(P.displays,e=>(n(),_(p(ae),{key:e.id,value:e.id,label:e.name||e.macAddress},{default:u(()=>[y(`div`,Ne,[y(`span`,null,b(e.name||e.macAddress),1),e.screenWidth&&e.screenHeight?(n(),_(p(O),{key:0,type:`info`,size:`small`},{default:u(()=>[h(b(e.screenWidth)+`x`+b(e.screenHeight),1)]),_:2},1024)):m(``,!0)])]),_:2},1032,[`value`,`label`]))),128))]),_:1},8,[`model-value`])):P.selectedDisplay?(n(),E(`div`,Pe,[D(p(O),{size:`small`},{default:u(()=>[h(b(P.selectedDisplay.name||P.selectedDisplay.macAddress),1)]),_:1}),P.selectedDisplay.screenWidth&&P.selectedDisplay.screenHeight?(n(),_(p(O),{key:0,type:`info`,size:`small`},{default:u(()=>[h(b(P.selectedDisplay.screenWidth)+`x`+b(P.selectedDisplay.screenHeight)+` · `+b(P.gridLayout?.cols??`?`)+`x`+b(P.gridLayout?.rows??`?`),1)]),_:1})):m(``,!0)])):m(``,!0)]),_:1})):m(``,!0),D(p(A),{"body-class":`p-2!`},{header:u(()=>[h(b(p(g)(`pagesCardsPlugin.headings.configure.cards`)),1)]),default:u(()=>[y(`div`,Fe,[(n(!0),E(x,null,i(R.value,e=>(n(),E(`div`,{key:e.id,class:`flex items-center justify-between p-1 rounded hover:bg-gray-50 dark:hover:bg-gray-800 cursor-pointer`,onClick:t=>F(`editCard`,e.id)},[y(`div`,Le,[e.icon?(n(),_(p(c),{key:0,size:14},{default:u(()=>[D(p(C),{icon:L(e.icon,``)},null,8,[`icon`])]),_:2},1024)):m(``,!0),D(p(O),{size:`small`,class:`truncate`},{default:u(()=>[h(b(e.title),1)]),_:2},1024)]),D(p(O),{type:`info`,size:`small`},{default:u(()=>[h(b(X(e.id).length)+` `+b(p(g)(`pagesCardsPlugin.texts.cards.tilesCount`)),1)]),_:2},1024)],8,Ie))),128)),D(p(v),{size:`small`,class:`w-full mt-1`,onClick:r[2]||=e=>F(`addCard`)},{icon:u(()=>[D(p(C),{icon:`mdi:plus`})]),default:u(()=>[h(` `+b(p(g)(`pagesCardsPlugin.buttons.addCard.title`)),1)]),_:1})])]),_:1})])]),_:1})]),_:1})]))}});export{ze as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./chunk-DECur_0Z.js";import{Ai as e,Ar as t,Br as n,Cr as r,Hr as i,Kr as a,Lr as o,Mr as s,Nr as ee,O as c,Oi as l,Qr as u,Sr as d,Tr as te,Xr as f,_i as p,_r as m,br as h,d as ne,f as g,gr as _,h as v,hr as y,ji as b,lr as x,mr as S,p as C,pt as re,tr as w,ui as T,vr as E,xr as D}from"./icon-with-child-DmQ_XhQy.js";import{Ur as O,_i as ie,bi as ae,fi as k,gi as A,pi as oe,yi as se}from"./common-DlW3qRTQ.js";import{t as ce}from"./popover-DOg0KdzK.js";import{a as le,d as j}from"./keys-CGGnS6tq.js";import{f as ue,n as de}from"./types-B8upWpl6.js";import{d as fe,u as pe}from"./composables-Da97cjje.js";import{i as me,t as he}from"./useDataSources-Bx93bXrZ.js";import{t as M}from"./gridstack.min-BC6WoZvX.js";var N={class:`tile-preview b-1 b-solid rounded-2 grow-1 relative overflow-hidden`},P={key:1,class:`flex flex-col items-center justify-center h-full w-full p-2`},F={class:`tile-preview__overlay`},ge=g(d({name:`TilePreview`,__name:`tile-preview`,props:{tile:{}},emits:[`detail`,`edit`,`remove`],setup(e,{emit:t}){let r=e,i=t,{getElement:o}=me(),s=S(()=>o(r.tile.type)?.components?.tilePreview);return(e,t)=>(n(),E(`div`,N,[s.value?(n(),_(a(s.value),{key:0,tile:r.tile},null,8,[`tile`])):(n(),E(`div`,P,[D(p(c),{size:20,color:`var(--el-text-color-secondary)`},{default:u(()=>[D(p(C),{icon:`mdi:puzzle-outline`})]),_:1}),D(p(O),{type:`info`,size:`small`,class:`mt-1 truncate max-w-full text-center`},{default:u(()=>[h(b(r.tile.type),1)]),_:1})])),y(`div`,F,[D(p(v),{size:`small`,circle:``,onClick:t[0]||=e=>i(`detail`,r.tile.id)},{icon:u(()=>[D(p(C),{icon:`mdi:file-search-outline`})]),_:1}),D(p(v),{size:`small`,type:`primary`,circle:``,class:`ml-1!`,onClick:t[1]||=e=>i(`edit`,r.tile.id)},{icon:u(()=>[D(p(C),{icon:`mdi:pencil`})]),_:1}),D(p(v),{size:`small`,type:`danger`,circle:``,class:`ml-1!`,onClick:t[2]||=e=>i(`remove`,r.tile.id)},{icon:u(()=>[D(p(C),{icon:`mdi:trash-can-outline`})]),_:1})])]))}}),[[`__scopeId`,`data-v-88d29727`]]),_e={class:`h-full box-border overflow-hidden p-2`},ve={class:`flex items-center gap-1 min-w-0 max-w-48`},ye={class:`flex items-center gap-1 flex-1 min-w-0 flex-wrap justify-end`},be=[`onClick`],xe={class:`truncate`},Se={class:`flex flex-col gap-1`},Ce=[`onClick`],we={class:`flex items-center flex-shrink-0 gap-0.5`},Te={class:`flex items-center gap-1 min-w-0`},Ee={class:`flex flex-col gap-2`},De={class:`flex items-center justify-between w-full`},Oe={key:1,class:`flex flex-col`},ke={class:`flex flex-col gap-2`},Ae=3,je=d({name:`PageConfigure`,__name:`page-configure`,props:{page:{},gridLayout:{},gridCardStyle:{},displays:{},selectedDisplay:{},remotePageSubmit:{type:Boolean},remotePageResult:{default:j.NONE},remotePageChanged:{type:Boolean,default:!1}},emits:[`selectDisplay`,`addPageDataSource`,`editPageDataSource`,`addTileOfType`,`editTile`,`tileDetail`,`update:remote-page-submit`,`update:remote-page-result`,`update:remote-page-changed`],setup(a,{emit:d}){let{t:g}=ne(),N=re(`page-configure`),P=a,F=d,{options:je}=me(),Me=S(()=>je.value.filter(e=>!e.disabled)),{tiles:I,fetchTiles:Ne,areLoading:Pe}=fe({parent:`page`,parentId:P.page.id}),{findById:L,edit:Fe,save:Ie,removeDirectly:Le}=pe({parent:`page`,parentId:P.page.id}),{dataSources:Re,fetchDataSources:ze}=he({parent:`page`,parentId:P.page.id}),{remove:Be}=de({parent:`page`,parentId:P.page.id}),{getElement:Ve}=ue(),R=S(()=>Re.value.filter(e=>!e.draft)),He=S(()=>R.value.slice(0,Ae)),z=S(()=>R.value.slice(Ae)),Ue=e=>{let t=e;return typeof t.icon==`string`&&t.icon?t.icon:null},We=(e,t)=>e?e.includes(`:`)?e:`mdi:${e}`:t,Ge=e=>{let t=Ve(e.type);return t?.name?.trim()?t.name:e.type},Ke=e=>{Be(e)},qe=r()?.appContext??null,B,V,H=T(null),U=T(null),W=new Set,G=new Set,K=new Set,Je=T(!1),q=T(!1),J=T(!1),Y,Ye=e=>{let t=document.querySelector(`.grid-stack-item[gs-id="${e}"]`);B?.getGridItems().some(t=>t.gridstackNode?.id===e)?B.removeWidget(t):V?.getGridItems().some(t=>t.gridstackNode?.id===e)&&V.removeWidget(t)},X=()=>{let e=H.value?.closest(`.${N.b()}`),t=U.value?.closest(`.${N.b()}`);if(e&&(e.style.maxHeight=``),t&&(t.style.maxHeight=``),H.value&&B){let t=H.value.clientWidth,n=B.getColumn(),r=P.gridLayout?.rows??12,i=t/n,a=H.value.clientHeight,o=r>0?a/r:i,s=Math.min(i,o);if(B.cellHeight(s),e){let t=e.querySelector(`.${N.e(`header`)}`)?.offsetHeight??0,n=getComputedStyle(H.value),i=parseFloat(n.paddingTop)+parseFloat(n.paddingBottom);e.style.maxHeight=`${t+r*s+i+2}px`}}if(U.value&&V){let e=U.value.clientWidth,n=V.getColumn(),r=P.gridLayout?.rows??12,i=e/n,a=U.value.clientHeight,o=r>0?a/r:i,s=Math.min(i,o);if(V.cellHeight(s),t){let e=t.querySelector(`.${N.e(`header`)}`)?.offsetHeight??0,n=getComputedStyle(U.value),i=parseFloat(n.paddingTop)+parseFloat(n.paddingBottom);t.style.maxHeight=`${e+r*s+i+2}px`}}},Xe=e=>{for(let t of e.getGridItems()){let e=t.querySelector(`.grid-stack-item-content`);e&&w(null,e)}},Z=()=>{B&&=(Xe(B),B.removeAll(!0),B.destroy(!1),void 0),V&&=(Xe(V),V.removeAll(!0),V.destroy(!1),void 0),W.clear(),G.clear()},Ze=(e,t)=>{let n=te(ge,{tile:t,onDetail:e=>{F(`tileDetail`,e)},onEdit:e=>{F(`editTile`,e)},onRemove:e=>{Ye(e)}});qe&&(n.appContext=qe),w(n,e)},Qe=()=>{if(P.gridLayout===null){q.value=!0,Z(),q.value=!1;return}q.value=!0,Z(),B=M.init({column:P.gridLayout.cols,row:P.gridLayout.rows,cellHeight:`auto`,margin:4,float:!0,acceptWidgets:!0},H.value),V=M.init({column:P.gridLayout.cols,minRow:P.gridLayout.rows,cellHeight:`auto`,margin:4,float:!0,acceptWidgets:!0},U.value),M.setupDragIn(`.newWidget`,void 0,[{h:1,w:1,content:`new item`}]),B.on(`dragstop`,(e,t)=>{let n=t.gridstackNode,r=n?.id,i=n?.x,a=n?.y;if(!r)return;let o=I.value.find(e=>e.id===r);o&&(o.row-1!==a||o.col-1!==i)&&$()}),B.on(`resizestop`,(e,t)=>{let n=t.gridstackNode,r=n?.id,i=n?.w,a=n?.h;if(!r)return;let o=I.value.find(e=>e.id===r);o&&(o.rowSpan!==a||o.colSpan!==i)&&$()}),B.on(`added`,function(e,t){$();for(let e of t){let t=e.el;if(!t)return;let n=t.querySelector(`.grid-stack-item-content`);if(!n)return;let r=e.id,i=I.value.find(e=>e.id===r);if(!i)return;Ze(n,i),W.add(i.id),W.forEach(e=>{K.has(e)&&K.delete(e)})}}),B.on(`removed`,function(e,t){for(let e of t){let t=e.el?.querySelector(`.grid-stack-item-content`);if(!t)return;w(null,t),e.id&&(W.delete(e.id),!G.has(e.id)&&!q.value&&K.add(e.id),$())}}),V.on(`added`,function(e,n){$();for(let e of n){let n=e.el;if(!n)return;let r=n.querySelector(`.grid-stack-item-content`);if(!r)return;let i=e.id,a=I.value.find(e=>e.id===i);if(!a)return;V?.update(n,{w:2,h:1}),G.add(a.id),G.forEach(e=>{K.has(e)&&K.delete(e)}),V?.compact(),t(()=>{Ze(r,a)})}}),V.on(`removed`,function(e,t){for(let e of t){let t=e.el?.querySelector(`.grid-stack-item-content`);if(!t)return;w(null,t),e.id&&(G.delete(e.id),!W.has(e.id)&&!q.value&&K.add(e.id),$()),V?.compact()}}),X(),Q(),q.value=!1},Q=()=>{for(let e of I.value){if(K.has(e.id)||W.has(e.id)||G.has(e.id))continue;let t=e.col+e.colSpan-1<=(P.gridLayout?.cols??0),n=e.row+e.rowSpan-1<=(P.gridLayout?.rows??0);t&&n&&!e.hidden&&!e.draft?B?.addWidget({id:e.id,x:e.col-1,y:e.row-1,w:e.colSpan,h:e.rowSpan}):V?.addWidget({id:e.id,x:0,y:2,w:1,h:1})}V?.compact()},$=()=>{!Je.value||q.value||(clearTimeout(Y),Y=setTimeout(()=>{J.value=!0},50))};return s(()=>{Pe.value||Ne().catch(e=>{throw new le(`Something went wrong`,e)}),ze().catch(e=>{throw new le(`Something went wrong`,e)})}),o(()=>{t(()=>{Qe()}),window.addEventListener(`resize`,X),setTimeout(()=>{Je.value=!0},500)}),ee(()=>{window.removeEventListener(`resize`,X),Z()}),f(()=>I.value,e=>{Q(),e.some(e=>e.draft)&&$()}),f(()=>P.remotePageSubmit,async e=>{if(e){F(`update:remote-page-submit`,!1),F(`update:remote-page-result`,j.WORKING),B?.save(!1,!1,async e=>{if(!e.id)return;let t=L(`page`,e.id);t&&(t=await Fe({id:t.id,parent:t.parent,data:{type:t.type,row:e.y+1,col:e.x+1,rowSpan:e.h||1,colSpan:e.w||1,hidden:!1}}),t.draft&&await Ie({id:t.id,parent:t.parent}))}),V?.save(!1,!1,async e=>{if(!e.id)return;let t=L(`page`,e.id);t&&(t=await Fe({id:t.id,parent:t.parent,data:{type:t.type,hidden:!0}}),t.draft&&await Ie({id:t.id,parent:t.parent}))});for(let e of K){let t=L(`page`,e);t&&await Le({id:e,parent:t.parent})}F(`update:remote-page-result`,j.OK),J.value=!1}}),f(()=>J.value,e=>{F(`update:remote-page-changed`,e)}),f(()=>P.gridLayout,(e,n)=>{e&&n&&e.rows===n.rows&&e.cols===n.cols||t(()=>{Qe()})}),f(()=>P.gridCardStyle,()=>{t(()=>{X()})}),f(()=>R.value.length,()=>{t(()=>{X()})}),(t,r)=>(n(),E(`div`,_e,[D(p(oe),{gutter:10,justify:`center`,class:`h-full`},{default:u(()=>[D(p(k),{span:10,class:`h-full overflow-hidden p-2`},{default:u(()=>[D(p(A),{"body-class":`p-0! flex flex-col overflow-hidden h-full`,class:l([p(N).b(),`mx-auto h-full overflow-hidden`]),style:e(P.gridCardStyle)},{default:u(()=>[y(`div`,{class:l([p(N).e(`header`),`flex items-center px-2 flex-shrink-0 min-h-9 py-1 b-b b-b-solid gap-1.5`])},[y(`div`,ve,[D(p(c),{size:14,class:`flex-shrink-0`,color:`var(--el-text-color-regular)`},{default:u(()=>[D(p(C),{icon:We(P.page.icon,`mdi:view-dashboard`)},null,8,[`icon`])]),_:1}),D(p(O),{size:`small`,class:`truncate`},{default:u(()=>[h(b(P.page.title),1)]),_:1})]),y(`div`,ye,[(n(!0),E(x,null,i(He.value,e=>(n(),_(p(ae),{key:e.id,size:`small`,closable:``,class:l(p(N).e(`data-source-tag`)),onClose:t=>Ke(e.id)},{default:u(()=>[y(`span`,{class:`inline-flex items-center gap-0.5`,onClick:t=>F(`editPageDataSource`,e.id)},[D(p(c),{size:12},{default:u(()=>[D(p(C),{icon:Ue(e)||`mdi:database`},null,8,[`icon`])]),_:2},1024),y(`span`,xe,b(Ge(e)),1)],8,be)]),_:2},1032,[`class`,`onClose`]))),128)),z.value.length>0?(n(),_(p(ce),{key:0,width:280,trigger:`click`,placement:`bottom`},{reference:u(()=>[D(p(ae),{size:`small`,type:`info`,class:`cursor-pointer flex-shrink-0`},{default:u(()=>[h(` +`+b(z.value.length),1)]),_:1})]),default:u(()=>[y(`div`,Se,[(n(!0),E(x,null,i(z.value,e=>(n(),E(`div`,{key:e.id,class:l([p(N).e(`overflow-item`),`flex items-center gap-1 py-1 px-1 rounded`])},[y(`div`,{class:`flex items-center gap-1 min-w-0 flex-1 cursor-pointer`,onClick:t=>F(`editPageDataSource`,e.id)},[D(p(c),{size:14,color:`var(--el-text-color-regular)`},{default:u(()=>[D(p(C),{icon:Ue(e)||`mdi:database`},null,8,[`icon`])]),_:2},1024),D(p(O),{size:`small`,class:`truncate`},{default:u(()=>[h(b(Ge(e)),1)]),_:2},1024)],8,Ce),y(`div`,we,[D(p(v),{size:`small`,text:``,circle:``,onClick:t=>F(`editPageDataSource`,e.id)},{icon:u(()=>[D(p(C),{icon:`mdi:pencil`,width:14})]),_:1},8,[`onClick`]),D(p(v),{size:`small`,text:``,type:`danger`,circle:``,onClick:t=>Ke(e.id)},{icon:u(()=>[D(p(C),{icon:`mdi:trash-can-outline`,width:14})]),_:1},8,[`onClick`])])],2))),128))])]),_:1})):m(``,!0)]),D(p(v),{size:`small`,plain:``,class:`flex-shrink-0`,onClick:r[0]||=e=>F(`addPageDataSource`)},{icon:u(()=>[D(p(C),{icon:`mdi:plus`})]),_:1})],2),y(`div`,{ref_key:`pageGridContainer`,ref:H,class:`flex-1 min-h-0 p-1`},null,512)]),_:1},8,[`class`,`style`])]),_:1}),D(p(k),{span:10,class:`h-full overflow-hidden p-2`},{default:u(()=>[D(p(A),{"body-class":`p-0! flex flex-col overflow-hidden h-full`,class:l([p(N).b(),`mx-auto h-full overflow-hidden`]),style:e(P.gridCardStyle)},{default:u(()=>[y(`div`,{class:l([p(N).e(`header`),`flex items-center justify-between px-2 flex-shrink-0 h-9 min-h-9 b-b b-b-solid`])},[y(`div`,Te,[D(p(c),{size:14,color:`var(--el-text-color-regular)`},{default:u(()=>[D(p(C),{icon:`mdi:pencil-ruler`})]),_:1}),D(p(O),{size:`small`,class:`truncate`},{default:u(()=>[h(b(p(g)(`pagesTilesPlugin.headings.configure.draft`)),1)]),_:1})])],2),y(`div`,{ref_key:`draftGridContainer`,ref:U,class:`flex-1 min-h-0 overflow-hidden p-1`},null,512)]),_:1},8,[`class`,`style`])]),_:1}),D(p(k),{span:4,class:`p-2`},{default:u(()=>[y(`div`,Ee,[P.displays.length>0?(n(),_(p(A),{key:0,"body-class":`p-2!`},{header:u(()=>[h(b(p(g)(`pagesTilesPlugin.headings.configure.display`)),1)]),default:u(()=>[P.displays.length>1?(n(),_(p(se),{key:0,"model-value":P.selectedDisplay?.id,size:`small`,class:`w-full`,onChange:r[1]||=e=>F(`selectDisplay`,e)},{default:u(()=>[(n(!0),E(x,null,i(P.displays,e=>(n(),_(p(ie),{key:e.id,value:e.id,label:e.name||e.macAddress},{default:u(()=>[y(`div`,De,[y(`span`,null,b(e.name||e.macAddress),1),e.screenWidth&&e.screenHeight?(n(),_(p(O),{key:0,type:`info`,size:`small`},{default:u(()=>[h(b(e.screenWidth)+`x`+b(e.screenHeight),1)]),_:2},1024)):m(``,!0)])]),_:2},1032,[`value`,`label`]))),128))]),_:1},8,[`model-value`])):P.selectedDisplay?(n(),E(`div`,Oe,[D(p(O),{size:`small`},{default:u(()=>[h(b(P.selectedDisplay.name||P.selectedDisplay.macAddress),1)]),_:1}),P.selectedDisplay.screenWidth&&P.selectedDisplay.screenHeight?(n(),_(p(O),{key:0,type:`info`,size:`small`},{default:u(()=>[h(b(P.selectedDisplay.screenWidth)+`x`+b(P.selectedDisplay.screenHeight)+` · `+b(P.gridLayout?.cols??`?`)+`x`+b(P.gridLayout?.rows??`?`),1)]),_:1})):m(``,!0)])):m(``,!0)]),_:1})):m(``,!0),Me.value.length?(n(),_(p(A),{key:1,"body-class":`p-2!`},{header:u(()=>[h(b(p(g)(`pagesTilesPlugin.headings.configure.quickAddTile`)),1)]),default:u(()=>[y(`div`,ke,[(n(!0),E(x,null,i(Me.value,e=>(n(),_(p(v),{key:e.value,size:`small`,class:`w-full ml-0!`,onClick:t=>F(`addTileOfType`,e.value)},{icon:u(()=>[D(p(C),{icon:`mdi:plus`})]),default:u(()=>[h(` `+b(e.label),1)]),_:2},1032,[`onClick`]))),128))])]),_:1})):m(``,!0)])]),_:1})]),_:1})]))}});export{je as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.tile-preview[data-v-ef47b603]{border-color:var(--el-border-color-light);background-color:var(--el-bg-color);transition:border-color .2s}.tile-preview[data-v-ef47b603]:hover{border-color:var(--el-color-primary-light-5)}.tile-preview__overlay[data-v-ef47b603]{opacity:0;pointer-events:none;background-color:#00000080;justify-content:center;align-items:center;transition:opacity .2s;display:flex;position:absolute;inset:0}.tile-preview:hover .tile-preview__overlay[data-v-ef47b603]{opacity:1;pointer-events:auto}.el-cards-page-configure__header{border-color:var(--el-border-color-lighter);background-color:var(--el-fill-color-light)}.el-cards-page-configure__card-header{border-color:var(--el-border-color-lighter);background-color:var(--el-fill-color-lighter)}.el-cards-page-configure__data-source-tag{cursor:pointer;flex-shrink:0;max-width:160px}.el-cards-page-configure__data-source-tag .el-tag__content{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.el-cards-page-configure__overflow-item{transition:background-color .2s}.el-cards-page-configure__overflow-item:hover{background-color:var(--el-fill-color-light)}.grid-stack .grid-stack-item-content{flex-direction:column;display:flex}.card-grid-container .grid-stack{min-height:40px}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.tile-preview[data-v-88d29727]{border-color:var(--el-border-color-light);background-color:var(--el-bg-color);transition:border-color .2s}.tile-preview[data-v-88d29727]:hover{border-color:var(--el-color-primary-light-5)}.tile-preview__overlay[data-v-88d29727]{opacity:0;pointer-events:none;background-color:#00000080;justify-content:center;align-items:center;transition:opacity .2s;display:flex;position:absolute;inset:0}.tile-preview:hover .tile-preview__overlay[data-v-88d29727]{opacity:1;pointer-events:auto}.el-page-configure__header{border-color:var(--el-border-color-lighter);background-color:var(--el-fill-color-light)}.el-page-configure__data-source-tag{cursor:pointer;flex-shrink:0;max-width:160px}.el-page-configure__data-source-tag .el-tag__content{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.el-page-configure__overflow-item{transition:background-color .2s}.el-page-configure__overflow-item:hover{background-color:var(--el-fill-color-light)}.grid-stack .grid-stack-item-content{flex-direction:column;display:flex}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e=`pages-cards`,t=`pages-cards-plugin`,n=`pages-cards`,r=`PagesCardsPlugin.`,i=function(e){return e.CARD_CREATED=`PagesCardsPlugin.Card.Created`,e.CARD_UPDATED=`PagesCardsPlugin.Card.Updated`,e.CARD_DELETED=`PagesCardsPlugin.Card.Deleted`,e}({}),a={PAGE:`pages_cards_plugin-settings`,PAGE_ADD_CARD:`pages_cards_plugin-settings_add_card`,PAGE_EDIT_CARD:`pages_cards_plugin-settings_edit_card`,PAGE_CARD_ADD_TILE:`pages_cards_plugin-settings_card_add_tile`,PAGE_CARD_EDIT_TILE:`pages_cards_plugin-settings_card_edit_tile`,PAGE_ADD_DATA_SOURCE:`pages_cards_plugin-settings_add_data_source`,PAGE_EDIT_DATA_SOURCE:`pages_cards_plugin-settings_edit_data_source`};export{n as a,e as i,r as n,a as o,t as r,i as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e=`pages-tiles-plugin`,t=`pages-tiles`,n={PAGE:`pages_tiles_plugin-settings`,PAGE_ADD_TILE:`pages_tiles_plugin-settings_add_tile`,PAGE_EDIT_TILE:`pages_tiles_plugin-settings_edit_tile`,PAGE_ADD_DATA_SOURCE:`pages_tiles_plugin-settings_add_data_source`,PAGE_EDIT_DATA_SOURCE:`pages_tiles_plugin-settings_edit_data_source`};export{t as n,n as r,e as t};
|