text: (self.webpackChunkgeonode_mapstore_client=self.webpackChunkgeonode_mapstore_client||[]).push([[7701,6958],{91380:(e,t,r)=>{"use strict";r.d(t,{ZY:()=>u,Gv:()=>s});var n=r(24852),o=r.n(n),i=r(75382),a=r(67076),c=r(38482);function l(){return(l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var u=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.overrideWidthProvider;return(0,a.compose)((0,a.defaultProps)({useDefaultWidthProvider:!t}),(function(e){return function(t){return o().createElement(i.Z,{handleWidth:!0},(function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=r.width;return o().createElement(e,l({width:n},t))}))}}))},s=function(e){return(0,a.compose)((0,a.withStateHandlers)((function(){return{}}),{onResize:function(){return function(e){return{height:e.height}}}}),(0,c.Z)(e))}},72688:(e,t,r)=>{"use strict";r.d(t,{Z:()=>w});var n=r(24852),o=r.n(n),i=r(45697),a=r.n(i),c=r(38560),l=r(43614),u=r(72986),s=r.n(u);function d(e){return(d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function f(){return(f=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function g(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function v(e,t){return(v=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function y(e,t){return!t||"object"!==d(t)&&"function"!=typeof t?m(e):t}function m(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function b(e){return(b=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function h(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var O=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&v(e,t)}(u,e);var t,r,n,i,a=(n=u,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=b(n);if(i){var r=b(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return y(this,e)});function u(){var e;p(this,u);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return h(m(e=a.call.apply(a,[this].concat(r))),"onConfirm",(function(){e.props.onConfirm()})),e}return t=u,(r=[{key:"render",value:function(){var e=this,t=o().createElement("span",{role:"footer"},o().createElement("div",{style:{float:"left"}}),o().createElement(c.Z,{ref:"confirmButton",disabled:this.props.running,className:this.props.className,key:"confirmButton",bsStyle:"primary",bsSize:this.props.buttonSize,onClick:function(){e.onConfirm()}},this.props.running?o().createElement(s(),{spinnerName:"circle",overrideSpinnerClassName:"spinner",noFadeIn:!0}):null,this.props.confirmText),this.props.includeCloseButton?o().createElement(c.Z,{key:"cancelButton",ref:"cancelButton",bsSize:this.props.buttonSize,onClick:this.props.onClose},this.props.cancelText):o().createElement("span",null)),r=this.props.body;return o().createElement(l.Z,f({},this.props.options,{show:this.props.show,onHide:this.props.onClose}),o().createElement(l.Z.Header,{key:"dialogHeader",closeButton:!0},o().createElement(l.Z.Title,null,this.props.titleText)),o().createElement(l.Z.Body,null,r),o().createElement(l.Z.Footer,null,t))}}])&&g(t.prototype,r),u}(o().Component);h(O,"propTypes",{className:a().string,show:a().bool,options:a().object,onConfirm:a().func,onClose:a().func,closeGlyph:a().string,style:a().object,buttonSize:a().string,includeCloseButton:a().bool,body:a().oneOfType([a().string,a().element]),titleText:a().oneOfType([a().string,a().element]),confirmText:a().oneOfType([a().string,a().element]),cancelText:a().oneOfType([a().string,a().element]),running:a().bool}),h(O,"defaultProps",{onConfirm:function(){},onClose:function(){},options:{animation:!1},className:"",closeGlyph:"",style:{},includeCloseButton:!0,body:"",titleText:"Confirm Delete",confirmText:"Delete",cancelText:"Cancel"});const w=O},43614:(e,t,r)=>{"use strict";r.d(t,{Z:()=>g});var n=r(27418),o=r.n(n),i=r(57588),a=r(61365);function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function d(e,t){return!t||"object"!==c(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var p=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&s(e,t)}(a,e);var t,r,n,o,i=(n=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=f(n);if(o){var r=f(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return d(this,e)});function a(){return l(this,a),i.apply(this,arguments)}return t=a,(r=[{key:"handleDialogClick",value:function(e){e.target===e.currentTarget&&this.props.onHide(e)}}])&&u(t.prototype,r),a}(i.Modal);const g=o()((0,a.Z)(p),{Body:i.Modal.Body,Dialog:i.Modal.Dialog,Footer:i.Modal.Footer,Header:i.Modal.Header,Title:i.Modal.Title})},25382:(e,t,r)=>{"use strict";r.d(t,{Z:()=>c});var n=r(49977),o=r.n(n),i=r(86850),a=r(24262);const c=function(e){return e.distinctUntilChanged((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.layer,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=r.layer;return(0,a.Tt)(t)===(0,a.Tt)(n)&&t.loadingError===n.loadingError})).switchMap((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.layer;return(0,i.v$)({layer:t}).map((function(e){return{describeFeatureType:e.data,loading:!1,error:void 0}})).catch((function(e){return o().Observable.of({loading:!1,error:e})}))}))}},64945:(e,t,r)=>{"use strict";r.d(t,{Z:()=>k});var n=r(24852),o=r.n(n),i=r(67076),a=r(13311),c=r.n(a),l=r(66604),u=r.n(l),s=r(69968),d=r(27361),f=r.n(d),p=r(91175),g=r.n(p);function v(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function y(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?v(Object(r),!0).forEach((function(t){m(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):v(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function m(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var b=function(e){return f()(g()(e,(function(e){return e.color})),"color")};const h=(0,i.withProps)((function(e){var t=e.groups,r=e.showGroupColor,n=e.headerStyle,o=void 0===n?{borderTop:"3px solid rgba(0,0,0,0)",transition:"border-color .5s ease-out"}:n;return{headerStyle:r&&t&&b(t)?y(y({},o),{},{borderTop:"3px solid ".concat(b(t))}):o}}));r(89611);var O=["id","style","className","toolsOptions","rowHeight","breakpoints","cols","widgets","layouts","dependencies","verticalCompact","compactMode","useDefaultWidthProvider","measureBeforeMount","width","showGroupColor","groups","canEdit","getWidgetClass","onWidgetClick","updateWidgetProperty","deleteWidget","toggleCollapse","toggleMaximize","editWidget","onLayoutChange","language","env"];function w(){return(w=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function j(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function P(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?j(Object(r),!0).forEach((function(t){S(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):j(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function S(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function E(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var D=(0,i.branch)((function(e){var t=e.useDefaultWidthProvider;return void 0===t||t}),s.WidthProvider)(s.Responsive),C=h(r(43716).Z),x=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;return e.filter((function(e){return c()(e.widgets,(function(e){return e===t.id}))}))};const k=(0,i.pure)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.id,r=e.style,n=e.className,i=void 0===n?"":n,a=e.toolsOptions,l=void 0===a?{}:a,s=e.rowHeight,d=void 0===s?208:s,f=e.breakpoints,p=void 0===f?{lg:1200,md:996,sm:768,xs:480,xxs:0}:f,g=e.cols,v=void 0===g?{lg:6,md:6,sm:4,xs:2,xxs:1}:g,y=e.widgets,m=void 0===y?[]:y,b=e.layouts,h=e.dependencies,j=e.verticalCompact,S=void 0!==j&&j,k=e.compactMode,T=e.useDefaultWidthProvider,F=void 0===T||T,I=e.measureBeforeMount,R=e.width,Z=e.showGroupColor,A=e.groups,M=void 0===A?[]:A,G=e.canEdit,L=void 0===G||G,z=e.getWidgetClass,N=void 0===z?function(){}:z,_=e.onWidgetClick,V=void 0===_?function(){}:_,W=e.updateWidgetProperty,q=void 0===W?function(){}:W,B=e.deleteWidget,H=void 0===B?function(){}:B,U=e.toggleCollapse,$=void 0===U?function(){}:U,Q=e.toggleMaximize,K=void 0===Q?function(){}:Q,J=e.editWidget,Y=void 0===J?function(){}:J,X=e.onLayoutChange,ee=void 0===X?function(){}:X,te=e.language,re=e.env,ne=E(e,O),oe=m.filter((function(e){var t=e.mapSync,r=e.dependenciesMap;return t&&r})).map((function(e){return e.dependenciesMap})),ie=function(e){return"table"===e.widgetType&&oe.filter((function(t){return Object.keys(t).filter((function(r){return t[r]&&-1!==t[r].indexOf(e.id)})).length>0})).length>0};return o().createElement(D,{key:t||"widgets-view",useDefaultWidthProvider:F,measureBeforeMount:I,width:F?void 0:R,isResizable:L,isDraggable:L,draggableHandle:".draggableHandle",onLayoutChange:ee,preventCollision:!0,style:r,className:"widget-container ".concat(i," ").concat(L?"":"no-drag"),rowHeight:d,autoSize:!0,verticalCompact:S,compactMode:k,breakpoints:p,cols:v,layouts:b?JSON.parse(JSON.stringify(u()(b,(function(e){return e.map((function(e){var t=c()(m,{id:e.i});return t?P(P({},e),{},{isResizable:t.dataGrid&&t.dataGrid.isResizable,isDraggable:t.dataGrid&&t.dataGrid.isDraggable,static:t.dataGrid&&t.dataGrid.static}):e}))})))):void 0},m.map((function(e){return o().createElement("div",{key:e.id,"data-grid":e.dataGrid,onClick:function(){return V(e)},className:N(e)},o().createElement(C,w({"data-grid":e.dataGrid},ne,e,{quickFilters:ie(e)?e.quickFilters:void 0,toolsOptions:l,groups:x(M,e),showGroupColor:Z,dependencies:h,enableColumnFilters:ie(e),canEdit:L,updateProperty:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return q.apply(void 0,[e.id].concat(r))},toggleCollapse:function(){return $(e)},toggleMaximize:function(){return K(e)},onDelete:function(){return H(e)},onEdit:function(){return Y(e)},language:te,env:re})))})))}))},43716:(e,t,r)=>{"use strict";r.d(t,{Z:()=>Ft});var n=r(24852),o=r.n(n),i=r(67076),a=r(12425),c=r(39860);function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}const u=(0,i.compose)(a.Z,(0,i.compose)((0,i.withState)("showTable","setShowTable",!1),(0,i.withHandlers)({toggleTableView:function(e){var t=e.setShowTable,r=e.showTable;return function(){return t(!r)}}}),(0,i.withProps)((function(e){var t,r=e.widgetTools,n=void 0===r?[]:r,o=e.toggleTableView,i=void 0===o?function(){}:o;return{widgetTools:[].concat((t=n,function(e){if(Array.isArray(e))return l(e)}(t)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return l(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?l(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),[{glyph:"features-grid",target:"menu",textId:"widgets.widget.menu.showChartData",onClick:function(){return i()}}])}}))),(0,c.tR)(),(0,c.AV)(),(0,c.E6)(),(0,i.branch)((function(e){return!e.showTable}),(0,c.um)())),s=(0,i.compose)(a.Z,(0,c.tR)(),(0,c.E6)(),(0,c.um)());var d=r(27361),f=r.n(d);function p(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function g(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?p(Object(r),!0).forEach((function(t){v(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):p(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function v(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const y=(0,i.compose)((0,i.withPropsOnChange)(["gridEvents"],(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.gridEvents,r=void 0===t?{}:t,n=e.updateProperty,o=void 0===n?function(){}:n;return{gridEvents:g(g({},r),{},{onAddFilter:function(e){return o("quickFilters.".concat(e.attribute),e)},onColumnResize:function(e,t,r,n,i,a){return o('options.columnSettings["'.concat(f()(a.filter((function(e){return!e.hide}))[e],"name"),'"].width'),t)}})}})),a.Z,(0,c.tR)(),(0,c.E6)(),(0,c.um)(),(0,i.withPropsOnChange)(["gridEvents"],(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.gridEvents,r=void 0===t?{}:t,n=e.updateProperty,o=void 0===n?function(){}:n;return{gridEvents:g(g({},r),{},{onGridSort:function(e,t){return o("sortOptions",{sortBy:e,sortOrder:t})}})}})));var m=r(13314);const b=(0,i.compose)(a.Z,(0,c.tR)(),(0,c.G5)(),(0,c.E6)(),(0,c.um)()),h=(0,i.compose)(a.Z,(0,c.tR)(),(0,c.E6)(),(0,c.um)());var O=r(87017),w=r(39589),j=r(64721),P=r.n(j),S=r(82492),E=r.n(S),D=r(78889),C=r(73849),x=r(25382),k=r(49977),T=r.n(k),F=r(86850);const I=function(e){return e.switchMap((function(e){var t=e.layer,r=void 0===t?{}:t,n=e.options,o=void 0===n?{}:n,i=e.filter,a=e.onLoad,c=void 0===a?function(){}:a,l=e.onLoadError,u=void 0===l?function(){}:l;return(0,F.Mc)(r,i,{timeout:15e3,params:{propertyName:o.propertyName,viewParams:o.viewParams}}).map((function(){return{loading:!1,error:void 0}})).do((function(e){return c({features:e.features,pagination:{totalFeatures:e.totalFeatures}})})).catch((function(e){return T().Observable.of({loading:!1,error:e,data:[]}).do(u)}))}))};function R(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Z(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?R(Object(r),!0).forEach((function(t){A(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):R(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function A(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}r(49977);const M=function(e){return e.filter((function(e){var t=e.layer;return(void 0===t?{}:t).name})).distinctUntilChanged((function(e,t){var r=e.layer,n=void 0===r?{}:r,o=e.options,i=void 0===o?{}:o,a=e.filter,c=e.sortOptions;return t.layer&&n.name===t.layer.name&&n.loadingError===t.layer.loadingError&&function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e.propertyName===t.propertyName&&e.viewParams===t.viewParams}(i,t.options)&&a===t.filter&&function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e.sortBy===t.sortBy&&e.sortOrder===t.sortOrder}(c,t.sortOptions)})).map((function(e){return Z(Z({},e),{},{features:[],pages:[],pagination:{}})}))};var G=r(96958);function L(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function z(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?L(Object(r),!0).forEach((function(t){N(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):L(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function N(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const _=function(e){return function(t){return t.switchMap((function(t){var r=t.layer,n=void 0===r?{}:r,o=t.size,i=void 0===o?20:o,a=t.maxStoredPages,c=void 0===a?5:a,l=t.filter,u=t.options,s=void 0===u?{}:u,d=t.sortOptions,f=t.pages,p=t.features,g=void 0===p?[]:p,v=t.onLoad,y=void 0===v?function(){}:v,m=t.onLoadError,b=void 0===m?function(){}:m;return e.switchMap((function(e,t){var r=e.pagesRange,o=e.pagination,a=void 0===o?{}:o;return function(e){if(null==e)throw new TypeError("Cannot destructure undefined")}(t),(0,F.Mc)(n,l,z(z({},(0,G.S9)(r,f,i)),{},{sortOptions:d,timeout:15e3,totalFeatures:a.totalFeatures,propertyName:s.propertyName,viewParams:s.viewParams})).do((function(e){return y(z(z({},(0,G.f1)(e,r,{pages:f,features:g},z(z({},(0,G.S9)(r,f,i)),{},{size:i,maxStoredPages:c}))),{},{pagination:{totalFeatures:e.totalFeatures}}))})).map((function(){return{loading:!1}})).catch((function(e){return T().Observable.of({loading:!1,error:e}).do(b)})).startWith({loading:!0})}))}))}};function V(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function W(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?V(Object(r),!0).forEach((function(t){q(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):V(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function q(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var B=function(e){var t=(0,i.createEventHandler)(),r=t.handler,n=t.stream;return(0,x.Z)(e).combineLatest(function(e,t){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return M(e).let(r?_(t.withLatestFrom(e.map((function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).pagination;return{pagination:void 0===e?{}:e}})),(function(e,t){return W({pagesRange:e},t)}))):I).startWith({})}(e,n.startWith({startPage:0,endPage:1})),(function(e,t){return W(W(W({},e),t),{},{pageEvents:{moreFeatures:r,onPageChange:function(){}}})})).startWith({loading:!0})};const H=(0,i.compose)((0,i.defaultProps)({virtualScroll:!0,size:20,maxStoredPages:5}),(0,i.withStateHandlers)({pages:[],features:[],pagination:{}},{setData:function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.pages,r=e.features,n=e.pagination;return{pages:t,features:r,pagination:n,error:void 0}}}}),(0,i.withHandlers)({onLoad:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.setData,r=void 0===t?function(){}:t,n=e.onLoad,o=void 0===n?function(){}:n;return function(){r.apply(void 0,arguments),o.apply(void 0,arguments)}}}),(0,i.withProps)((function(){return{dataStreamFactory:B}})),C.Z,(0,i.withProps)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.options,r=void 0===t?{}:t,n=e.describeFeatureType,o=e.columnSettings,i=void 0===o?{}:o;return{columnSettings:E()(n?(0,D.getFeatureTypeProperties)(n).filter((function(e){return!P()(r.propertyName||[],e.name)})).reduce((function(e,t){return W(W({},e),{},q({},t.name,{hide:!0}))}),{}):{},r.columnSettings||{},i)}})));var U=r(30881),$=r(8488),Q=r(73339),K=r(5055),J=r.n(K),Y=r(41609),X=r.n(Y),ee=r(18446),te=r.n(ee),re=r(70956),ne=r(99767),oe=r(27835),ie=function(e){var t=e.wfsGetFeature;return(0,oe.Uh)("gs:Bounds",[(0,ne.qP)("features",(0,ne.fA)("text/xml","http://geoserver/wfs","POST",t))],(0,ne.DK)((0,ne.En)("bounds","application/json")))};var ae=r(47805),ce=r(24262),le=r(61868),ue=r(52259);function se(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function de(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?se(Object(r),!0).forEach((function(t){fe(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):se(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function fe(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const pe=(0,i.compose)((0,i.branch)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.mapSync,r=e.dependencies;return t&&(!X()(r.quickFilters)||!X()(r.filter))}),(0,i.compose)((0,i.withPropsOnChange)(["id"],(function(e){var t=e.hookRegister;return{hookRegister:(void 0===t?null:t)||(0,ue.createRegisterHooks)()}})),(0,i.mapPropsStream)((function(e){return e.distinctUntilChanged((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return te()(e.dependencies.quickFilters,t.dependencies.quickFilters)&&te()(e.dependencies.filter,t.dependencies.filter)&&te()(e.dependencies.layer,t.dependencies.layer)})).debounceTime(500).switchMap((function(e){var t=e.mapSync,r=e.dependencies,n=void 0===r?{}:r,o=e.filter,i=e.hookRegister;if(!t||X()(n.layer))return k.Observable.of({loading:!1});var a={};n.quickFilters&&(a=de(de({},a),(0,re.r$)(o,n.quickFilters,n.options))),n.filter&&(a=de(de({},a),(0,ae.composeAttributeFilters)([a,n.filter])));var c=n&&n.layer&&n.layer.name;if(!X()(a)){a=de(de({},a),{},{options:de(de({},a.options||{}),{},{noSchemaLocation:!0})});var l=(0,ae.toOGCFilter)(c,a,"1.1.0");return function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return(0,oe.mG)(e,ie(t),{},r)}((0,ce.ZA)(n.layer),{wfsGetFeature:l}).switchMap((function(e){var t,r,n;if(J().parseString(e,{explicitArray:!1},(function(e,o){t=o["ows:BoundingBox"],r=t["ows:LowerCorner"].split(" "),n=t["ows:UpperCorner"].split(" ")})),"0.0 0.0"===t["ows:LowerCorner"]&&"-1.0 -1.0"===t["ows:UpperCorner"])return k.Observable.of({loading:!1});var o={minx:parseFloat(r[0]),miny:parseFloat(r[1]),maxx:parseFloat(n[0]),maxy:parseFloat(n[1])},a=i.getHook(ue.ZOOM_TO_EXTENT_HOOK);return a&&a(o,{crs:"EPSG:4326",maxZoom:21}),k.Observable.of({loading:!1})})).startWith({loading:!0}).catch((function(e){return k.Observable.of({error:"error getting bounds from filter",details:e})}))}return k.Observable.of({loading:!1})})).combineLatest(e,(function(e){var t=e.loading,r=void 0!==t&&t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,le.t8)("loading",r,n)}))})))));var ge=r(13311),ve=r.n(ge),ye=r(43378);function me(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function be(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?me(Object(r),!0).forEach((function(t){he(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):me(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function he(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const Oe=(0,i.compose)((0,i.withPropsOnChange)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.mapSync,r=e.dependencies,n=void 0===r?{}:r,o=e.map,i=void 0===o?{}:o,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},c=arguments.length>2?arguments[2]:void 0;return t!==a.mapSync||!te()(n,a.dependencies)||!te()(i,a.map)||c!==a.filter}),(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.mapSync,r=e.dependencies,n=void 0===r?{}:r,o=e.filter,i=void 0===o?{}:o,a=e.map,c=void 0===a?{layers:[]}:a,l=n&&n.layer&&n.layer.name,u=ve()(c.layers,{name:l})||{},s={},d={},f=void 0;return t&&!X()(u)&&(n.quickFilters&&(s=be(be({},s),(0,re.r$)(i,n.quickFilters,n.options))),n.filter&&(s=be(be({},s),(0,ae.composeAttributeFilters)([s,n.filter]))),!X()(s)&&(0,ae.toCQLFilter)(s))?(f=(0,ae.toCQLFilter)(s),d=(0,le.cc)(!1,be(be({},u),{},{params:(0,ye.v)({params:{CQL_FILTER:f}},u&&u.params&&u.params.CQL_FILTER)}),{name:l},c.layers),{map:be(be({},c),{},{layers:d})}):(d=c.layers.map((function(e){return be(be({},e),{},{params:be(be({},e.params),{},{CQL_FILTER:void 0})})})),{map:be(be({},c),{},{layers:d})})}))),we=function(e){return(0,i.branch)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.mapSync;return t}),(0,i.withPropsOnChange)((function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.mapSync,n=t.dependencies,o=void 0===n?{}:n,a=arguments.length>1?arguments[1]:void 0,c=a.mapSync,l=a.dependencies;return l&&(0,i.shallowEqual)(o[e],l[e])||r===c}),(function(t){var r=t.map,n=t.mapSync,o=t.dependencies,i=void 0===o?{}:o;return{mapStateSource:"__dependency_system__",map:i[e]&&n?(0,le.t8)(e,i[e],r):r}})))};var je=r(57588),Pe=["data"];function Se(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ee(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Se(Object(r),!0).forEach((function(t){De(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Se(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function De(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ce(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}const xe=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.data,r=void 0===t?[]:t,n=Ce(e,Pe),i=Object.keys(r.reduce((function(e,t){return Ee(Ee({},e),t)}),{}));return o().createElement("div",{className:"mapstore-widget-table"},o().createElement(je.Table,{striped:!0},o().createElement("thead",null,o().createElement("tr",null,i.map((function(e,t){return o().createElement("th",null,t+1===i.length&&n.yAxisLabel?n.yAxisLabel:t>0?"".concat(e):e)})))),o().createElement("tbody",null,r.map((function(e){return o().createElement("tr",null,i.map((function(t){return o().createElement("td",null,e[t])})))})))))};var ke=r(96259),Te=r(73014),Fe=r(42415),Ie=r(39837),Re=r(28315),Ze=(0,Te.Z)()((0,Fe.Z)((0,Ie.Z)(Re.Z)));const Ae=function(e){return o().createElement("div",{className:"mapstore-widget-chart"},o().createElement(ke.Z,null,o().createElement(Ze,e)))};var Me=r(5346),Ge=r(65539),Le=r(72688);const ze=function(e){var t=e.id,r=e.title,n=e.confirmDelete,i=void 0!==n&&n,a=e.className,c=e.isDraggable,l=void 0===c||c,u=e.toggleDeleteConfirm,s=void 0===u?function(){}:u,d=e.onDelete,f=void 0===d?function(){}:d,p=e.icons,g=e.topLeftItems,v=e.topRightItems,y=e.headerStyle,m=void 0===y?{}:y,b=e.children;return o().createElement("div",{className:"mapstore-widget-card",id:t},o().createElement(Ge.Z,{className:a,header:o().createElement("div",{style:m,className:"mapstore-widget-info ".concat(l?"draggableHandle":"")},o().createElement("div",{className:"mapstore-widget-header"},o().createElement("span",{className:"widget-icons"},p),g,o().createElement("span",{className:"widget-title"},r),o().createElement("span",{className:"mapstore-widget-options"},v)))},b),i?o().createElement(Le.Z,{confirmText:o().createElement(Me.Z,{msgId:"widgets.widget.menu.delete"}),titleText:o().createElement(Me.Z,{msgId:"widgets.widget.menu.delete"}),body:o().createElement(Me.Z,{msgId:"widgets.widget.menu.confirmDelete"}),show:i,onClose:function(){return s(!1)},onConfirm:function(){return f(t)}}):null)};var Ne=["id","title","description","headerStyle","data","series","loading","icons","showTable","topRightItems","confirmDelete","dataGrid","onDelete","toggleTableView","toggleDeleteConfirm"];function _e(){return(_e=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var Ve=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.showTable,r=e.toggleTableView,n=void 0===r?function(){}:r;return t?o().createElement(je.Glyphicon,{onClick:function(){n()},glyph:"arrow-left pull-left"}):null};var We=r(82030),qe=r(99707),Be=(0,We.Z)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.text;return!t}),(function(){return{glyph:"sheet",messageId:"widgets.errors.notext"}}),qe.Z)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.text;return o().createElement("div",{className:"mapstore-widget-default-content ql-editor",dangerouslySetInnerHTML:{__html:t}})})),He=r(57557),Ue=r.n(He),$e=r(75480),Qe=r(92936),Ke=["layers"];function Je(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ye(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Je(Object(r),!0).forEach((function(t){Xe(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Je(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Xe(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var et=(0,i.withHandlers)({onMapViewChanges:function(e){var t=e.updateProperty,r=void 0===t?function(){}:t;return function(e){e.layers;var t=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,Ke);return r("map",t,"merge")}}})(Qe.Z),tt=r(18027);function rt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function nt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?rt(Object(r),!0).forEach((function(t){ot(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):rt(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function ot(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var it=(0,i.compose)((0,i.mapPropsStream)((function(e){return e.combineLatest(e.pluck("quickFilterStream$").distinctUntilChanged().switchMap((function(e){return e})).startWith(void 0),(function(e,t){var r=t&&e.options&&ve()(e.options.propertyName,(function(t){return t===e.attributeName}))&&t[e.attributeName]||{},n=r&&(r.rawValue||r.value);return nt(nt({},e),{},{value:n})}))}))),at=function(e){var t=e.options,r=e.localType,n=e.attributeName,o=e.quickFilterStream$;return(0,i.compose)((0,i.withProps)({quickFilterStream$:o,attributeName:n,options:t}),it)((0,tt.Q)(r,{name:n}))},ct=(0,i.compose)((0,i.mapPropsStream)((function(e){return e.map((function(t){return nt(nt({},t),{},{quickFilterStream$:e.pluck("quickFilters").distinctUntilChanged()})}))}))),lt=(0,i.compose)(ct,(0,i.withPropsOnChange)(["describeFeatureType","options"],(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.describeFeatureType,r=e.options,n=e.quickFilterStream$;return t?{filterRenderers:(0,G.Lo)(t).reduce((function(e,t){var o=t.localType,i=t.name,a=at({options:r,localType:o,attributeName:i,quickFilterStream$:n});return nt(nt({},e),{},ot({},i,a))}),{})}:{}}))),ut=r(30029),st=r(93358),dt=(0,Fe.Z)((0,Te.Z)((function(e){return!e.describeFeatureType}))(st.Z));const ft=lt((function(e){var t=e.id,r=e.title,n=e.loading,i=e.confirmDelete,a=void 0!==i&&i,c=e.enableColumnFilters,l=void 0!==c&&c,u=e.headerStyle,s=e.icons,d=e.topRightItems,f=e.toggleDeleteConfirm,p=void 0===f?function(){}:f,g=e.onDelete,v=void 0===g?function(){}:g,y=e.gridEvents,m=void 0===y?function(){}:y,b=e.pageEvents,h=void 0===b?{moreFeatures:function(){}}:b,O=e.describeFeatureType,w=e.filterRenderers,j=e.columnSettings,P=e.features,S=e.size,E=e.pages,D=e.error,C=e.pagination,x=void 0===C?{}:C,k=e.dataGrid,T=void 0===k?{}:k,F=e.virtualScroll,I=void 0===F||F;return o().createElement(ze,{id:"widget-chart-".concat(t),title:r,headerStyle:u,icons:s,isDraggable:T.isDraggable,confirmDelete:a,onDelete:v,toggleDeleteConfirm:p,topRightItems:d},o().createElement(Ge.Z,{footer:x.totalFeatures?o().createElement("div",{style:{height:"30px",overflow:"hidden"}},n?o().createElement("span",{style:{float:"right"}},o().createElement($e.Z,null)):null,void 0===D&&o().createElement("span",{style:{float:"left",margin:"5px"}},o().createElement(Me.Z,{msgId:"featuregrid.resultInfoVirtual",msgParams:{total:x.totalFeatures}}))):null},o().createElement(dt,{emptyRowsView:function(){return o().createElement(ut.Z,{loading:n},o().createElement(qe.Z,{messageId:"featuregrid.noFeaturesAvailable",glyph:"features-grid"}))},gridEvents:m,sortable:!0,defaultSize:!1,columnSettings:j,pageEvents:h,virtualScroll:I,enableColumnFilters:l,filterRenderers:w,features:P,pages:E,error:D,size:S,rowKey:"id",describeFeatureType:O,pagination:x})))}));var pt=r(80844),gt=["id","title","description","data","series","loading","showTable","confirmDelete","headerStyle","icons","topRightItems","dataGrid","toggleTableView","toggleDeleteConfirm","onDelete"];function vt(){return(vt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var yt=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.showTable,r=e.toggleTableView,n=void 0===r?function(){}:r;return t?o().createElement(je.Glyphicon,{onClick:function(){n()},glyph:"arrow-left pull-left"}):null},mt=r(46173),bt=r(70919),ht=["toggleDeleteConfirm","id","title","icons","headerStyle","confirmDelete","topRightItems","dataGrid","onDelete"];function Ot(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var wt=(0,mt.Z)()(bt.Z),jt=(0,i.compose)(Q.Z,U.Z,$.Z,O.Z,u)((function(e){var t=e.id,r=e.title,n=e.description,i=e.headerStyle,a=e.data,c=void 0===a?[]:a,l=e.series,u=void 0===l?[]:l,s=e.loading,d=e.icons,f=e.showTable,p=e.topRightItems,g=e.confirmDelete,v=void 0!==g&&g,y=e.dataGrid,m=void 0===y?{}:y,b=e.onDelete,h=void 0===b?function(){}:b,O=e.toggleTableView,w=void 0===O?function(){}:O,j=e.toggleDeleteConfirm,P=void 0===j?function(){}:j,S=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,Ne);return o().createElement(ze,{id:"widget-chart-".concat(t),headerStyle:i,isDraggable:m.isDraggable,title:r,icons:d,topLeftItems:Ve({loading:s,title:r,description:n,showTable:f,toggleTableView:w}),confirmDelete:v,onDelete:h,toggleDeleteConfirm:P,topRightItems:p},f?o().createElement(xe,_e({data:c},S)):o().createElement(Ae,_e({id:t,isAnimationActive:!s,loading:s,data:c,series:u,iconFit:!0},S)))})),Pt=(0,i.compose)(b)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.toggleDeleteConfirm,r=void 0===t?function(){}:t,n=e.icons,i=e.topLeftItems,a=e.id,c=e.title,l=e.text,u=e.headerStyle,s=e.topRightItems,d=e.dataGrid,f=void 0===d?{}:d,p=e.confirmDelete,g=void 0!==p&&p,v=e.onDelete,y=void 0===v?function(){}:v;return o().createElement(ze,{id:"widget-text-".concat(a),title:c,confirmDelete:g,onDelete:y,toggleDeleteConfirm:r,headerStyle:u,isDraggable:f.isDraggable,icons:n,topLeftItems:i,topRightItems:s},o().createElement(Be,{text:l}))})),St=(0,i.compose)(Q.Z,Oe,we("center"),we("zoom"),pe,h)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.updateProperty,r=void 0===t?function(){}:t,n=e.toggleDeleteConfirm,i=void 0===n?function(){}:n,a=e.id,c=e.title,l=e.map,u=e.icons,s=e.hookRegister,d=e.mapStateSource,f=e.topRightItems,p=e.confirmDelete,g=void 0!==p&&p,v=e.loading,y=void 0!==v&&v,m=e.dataGrid,b=void 0===m?{}:m,h=e.onDelete,O=void 0===h?function(){}:h,w=e.headerStyle,j=e.env,P=l.size,S=P.height,E=P.width,D=l.mapInfoControl,C=S>400&&E>400&&D;return o().createElement(ze,{id:"widget-text-".concat(a),title:c,confirmDelete:g,onDelete:O,toggleDeleteConfirm:i,headerStyle:w,icons:u,topRightItems:f,isDraggable:b.isDraggable},o().createElement(Ge.Z,{footer:o().createElement("div",{style:{height:"30px",overflow:"hidden"}},y?o().createElement("span",{style:{float:"right"}},o().createElement($e.Z,null)):null)},o().createElement(et,{tools:C?["popup"]:[],updateProperty:r,id:a,map:Ye({},Ue()(l,"mapStateSource")),mapStateSource:d,hookRegister:s,layers:l&&l.layers,options:{style:{margin:10,height:"calc(100% - 20px)"}},env:j})))})),Et=(0,i.compose)(Q.Z,$.Z,U.Z,H,y)(ft),Dt=(0,i.compose)(Q.Z,U.Z,$.Z,w.Z,s)((function(e){var t=e.id,r=e.title,n=e.description,i=e.data,a=void 0===i?[]:i,c=e.series,l=void 0===c?[]:c,u=e.loading,s=e.showTable,d=e.confirmDelete,f=void 0!==d&&d,p=e.headerStyle,g=e.icons,v=e.topRightItems,y=e.dataGrid,m=void 0===y?{}:y,b=e.toggleTableView,h=void 0===b?function(){}:b,O=e.toggleDeleteConfirm,w=void 0===O?function(){}:O,j=e.onDelete,P=void 0===j?function(){}:j,S=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,gt);return o().createElement(ze,{className:"counter-widget",id:"widget-chart-".concat(t),title:r,isDraggable:m.isDraggable,icons:g,topLeftItems:yt({loading:u,title:r,description:n,showTable:s,toggleTableView:h}),confirmDelete:f,onDelete:P,toggleDeleteConfirm:w,headerStyle:p,topRightItems:v},o().createElement(pt.Z,vt({id:t,isAnimationActive:!u,loading:u,data:a,series:l,iconFit:!0},S)))})),Ct=(0,i.compose)(Q.Z,m.Z)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.toggleDeleteConfirm,r=void 0===t?function(){}:t,n=e.id,i=e.title,a=e.icons,c=e.headerStyle,l=e.confirmDelete,u=void 0!==l&&l,s=e.topRightItems,d=e.dataGrid,f=void 0===d?{}:d,p=e.onDelete,g=void 0===p?function(){}:p,v=Ot(e,ht);return o().createElement(ze,{id:"widget-text-".concat(n),title:i,confirmDelete:u,onDelete:g,toggleDeleteConfirm:r,headerStyle:c,icons:a,topRightItems:s,isDraggable:f.isDraggable},o().createElement(wt,v))})),xt=["dependencies","toggleCollapse","exportCSV","exportImage","onDelete","onEdit"];function kt(){return(kt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function Tt(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}const Ft=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.dependencies,r=e.toggleCollapse,n=void 0===r?function(){}:r,i=e.exportCSV,a=void 0===i?function(){}:i,c=e.exportImage,l=void 0===c?function(){}:c,u=e.onDelete,s=void 0===u?function(){}:u,d=e.onEdit,f=void 0===d?function(){}:d,p=Tt(e,xt);return"text"===p.widgetType?o().createElement(Pt,kt({},p,{toggleCollapse:n,onDelete:s,onEdit:f})):"table"===p.widgetType?o().createElement(Et,kt({},p,{toggleCollapse:n,exportCSV:a,dependencies:t,onDelete:s,onEdit:f})):"counter"===p.widgetType?o().createElement(Dt,kt({},p,{toggleCollapse:n,dependencies:t,onDelete:s,onEdit:f})):"map"===p.widgetType?o().createElement(St,kt({},p,{toggleCollapse:n,dependencies:t,onDelete:s,onEdit:f})):"legend"===p.widgetType?o().createElement(Ct,kt({},p,{toggleCollapse:n,dependencies:t,onDelete:s,onEdit:f})):o().createElement(jt,kt({},p,{toggleCollapse:n,exportCSV:a,dependencies:t,exportImage:l,onDelete:s,onEdit:f}))}},88395:(e,t,r)=>{"use strict";r.d(t,{ZP:()=>_});var n=r(49977),o=r.n(n),i=r(66654),a=r.n(i),c=r(18721),l=r.n(c),u=r(27361),s=r.n(u),d=r(64721),f=r.n(d),p=r(18446),g=r.n(p),v=r(57557),y=r.n(v),m=r(14176),b=r.n(m),h=r(57579),O=r(81808),w=r(1757),j=r(80416),P=r(75110),S=r(24684),E=r(69293),D=r(55927),C=r(75982),x=r(78598),k=r(89077),T=r(17542),F=r.n(T),I=r(59425),R=r.n(I);function Z(e){return function(e){if(Array.isArray(e))return A(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return A(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?A(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function A(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function M(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function G(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?M(Object(r),!0).forEach((function(t){L(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):M(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function L(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var z=function(e){return e.ofType(E.WC,E.a3,E.W5).startWith({type:O.ok}).switchMap((function(t){return t.type===E.WC?o().Observable.never():e})).filter((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.type;return t===C.nk}))},N=function(e,t,r,n){return o().Observable.of((0,h.Rz)("mapSync",e),(0,h.Rz)("dependenciesMap",function(e,t,r){var n,o=r.dependenciesMap,i=r.mappings,c=["layer","filter","quickFilters","options"],l=["layers","viewport","zoom","center"],u=(h.oU.exec(t)||[])[1],s=b()(o,(function(e){return-1===e.indexOf(u)})),d=Object.keys(i).filter((function(e){return void 0!==i[e]})).reduce((function(e,r){return!a()(t,"map")&&f()(c,r)?G(G({},e),{},L({},r,"".concat(t,".").concat(i[r]))):a()(t,"map")?f()(l,r)?G(G({},e),{},L({},r,"map"===t?i[r]:"".concat(t,".").concat(i[r]))):G(G({},e),{},L({},r,"".concat(t.replace(".map",""),".").concat(i[r]))):e}),{});return e?G(G(G({},s),d),{},(L(n={},"dependenciesMap","".concat(t.replace(".map",""),".dependenciesMap")),L(n,"mapSync","".concat(t.replace(".map",""),".mapSync")),n)):y()(s,[Object.keys(i)])}(e,t,r)))};const _={exportWidgetData:function(e){return e.ofType(h.Km).do((function(e){var t=e.data,r=void 0===t?[]:t,n=e.title,o=void 0===n?"data":n;return F().json2csv(r,(function(e,t){return e?null:(0,x.saveAs)(new Blob([t],{type:"text/csv"}),o+".csv")}))})).filter((function(){return!1}))},alignDependenciesToWidgets:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.getState,n=void 0===r?function(){}:r;return e.ofType(O.ok,D.E9,h.Jm).map((function(){return(0,w.jx)(n())})).pluck("availableDependencies").distinctUntilChanged((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return g()(Z(e),Z(t))})).map((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return(0,h._k)(e.reduce((function(e,t){var r,n,o=t.replace(".map","");return a()(t,"map")?G(G({},e),{},(L(r={},"".concat(o,".dependenciesMap"),"".concat(o,".dependenciesMap")),L(r,"".concat(o,".mapSync"),"".concat(o,".mapSync")),L(r,"map"===t?"viewport":"".concat(t,".viewport"),"".concat(t,".bbox")),L(r,"map"===t?"center":"".concat(t,".center"),"".concat(t,".center")),L(r,"map"===t?"zoom":"".concat(t,".zoom"),"".concat(t,".zoom")),L(r,"map"===t?"layers":"".concat(t,".layers"),"map"===t?"layers.flat":"".concat(t,".layers")),r)):G(G({},e),{},(L(n={},"".concat(t,".filter"),"".concat(t,".filter")),L(n,"".concat(t,".quickFilters"),"".concat(t,".quickFilters")),L(n,"".concat(o,".dependenciesMap"),"".concat(o,".dependenciesMap")),L(n,"".concat(o,".mapSync"),"".concat(o,".mapSync")),L(n,"".concat(t,".layer"),"".concat(t,".layer")),L(n,"".concat(t,".options"),"".concat(t,".options")),n))}),{}))}))},toggleWidgetConnectFlow:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.getState,n=void 0===r?function(){}:r;return e.ofType(h.LH).switchMap((function(t){var r=t.active,i=t.availableDependencies,a=void 0===i?[]:i,c=t.options;return r&&a.length>0?1===a.length?N(r,a[0],c):o().Observable.of((0,h.kr)(r,{availableDependencies:a})).merge(e.ofType(h.V5).filter((function(){return(0,w.xI)(n())})).switchMap((function(e){var t=e.widget,i=s()((0,w.r0)(n()),"availableDependencies").filter((function(e){return(h.oU.exec(e)||[])[1]===t.id}));return N(r,i[0],c,t.dependeciesMap).concat(o().Observable.of((0,h.kr)(!1,{})))})).takeUntil(e.ofType(C.nk).merge(e.filter((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.type,r=e.key;return t===h.Cz&&r===h.jv}))))):N(r,a[0],c)}))},clearWidgetsOnLocationChange:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.getState,n=void 0===r?function(){}:r;return e.ofType(O.ok).switchMap((function(){var t=(0,S.F)(n()).split("/"),r=t[t.length-1];return e.let(z).filter((function(){var e=(0,S.F)(n()).split("/");return e[e.length-1]!==r})).switchMap((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.payload,r=void 0===t?{}:t;return r&&r.location&&r.location.pathname?o().Observable.of((0,h.K4)()):o().Observable.empty()}))}))},exportWidgetImage:function(e){return e.ofType(h.pV).do((function(e){var t,r,n=e.widgetDivId,o=e.title,i=void 0===o?"data":o,a=document.createElement("canvas"),c=document.querySelector("#".concat(n," .recharts-wrapper svg")),l=c.outerHTML?c.outerHTML:(t=c,(r=document.createElement("div")).appendChild(t.cloneNode(!0)),r.innerHTML);R()(a,l,{renderCallback:function(){var e=a.getContext("2d");e.globalCompositeOperation="destination-over",e.fillStyle="#fff",e.fillRect(0,0,a.width,a.height),(0,k.RP)(a.toDataURL("image/jpeg",1),"".concat(i,".jpg"),"image/jpeg")}})})).filter((function(){return!1}))},updateLayerOnLayerPropertiesChange:function(e,t){return e.ofType(j.yS).switchMap((function(e){var r,n=e.layer,i=e.newProperties,a=t.getState(),c=(0,P.CA)(a,n);return(r=o().Observable).of.apply(r,Z(l()(i,"layerFilter")&&c?[(0,h.Ko)(c)]:[]))}))},updateLayerOnLoadingErrorChange:function(e,t){return e.ofType(j.x9,j.vs).groupBy((function(e){return e.layerId})).map((function(e){return e.switchMap((function(e){var r,n=e.layerId,i=t.getState(),a=(0,P.CA)(i,n);return(r=o().Observable).of.apply(r,Z(a&&a.previousLoadingError!==a.loadingError?[(0,h.Ko)(a)]:[]))}))})).mergeAll()}}},75859:(e,t,r)=>{"use strict";r.d(t,{Z:()=>C});var n=r(57579),o=r(81808),i=r(55927),a=r(27418),c=r.n(a),l=r(28252),u=r.n(l),s=r(27361),d=r.n(s),f=r(13311),p=r.n(f),g=r(57557),v=r.n(g),y=r(66604),m=r.n(y),b=r(84596),h=r.n(b),O=r(61868);function w(e){return function(e){if(Array.isArray(e))return j(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return j(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?j(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function j(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function P(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function S(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?P(Object(r),!0).forEach((function(t){E(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):P(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function E(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var D={dependencies:{viewport:"map.bbox",center:"map.center",zoom:"map.zoom"},containers:{floating:{widgets:[]}},builder:{settings:{step:0}}};const C=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:D,r=arguments.length>1?arguments[1]:void 0;switch(r.type){case n.Cz:return u()("builder.settings.".concat(r.key),r.value,t);case n.n8:return u()("builder.editor",r.widget,u()("builder.settings",r.settings||D.settings,t));case n.dm:return u()("builder.editor",S(S({},r.widget),{},{widgetType:r.widget&&r.widget.widgetType||"chart"}),u()("builder.settings.step","chart"===(r.widget&&r.widget.widgetType||"chart")?1:0,t));case n.BV:return u()("builder.editor.".concat(r.key),r.value,t);case n.Jm:var a=(0,O.vy)("containers[".concat(r.target,"].widgets"),S(S({id:r.id},r.widget),{},{dataGrid:r.id&&{y:0,x:0,w:1,h:1}}),{id:r.widget.id||r.id},t);return a;case n.$A:var l=p()(d()(t,"containers[".concat(r.target,"].widgets")),{id:r.id});return(0,O.vy)("containers[".concat(r.target,"].widgets"),u()(r.key,"merge"===r.mode?c()({},l[r.key],r.value):r.value,l),{id:r.id},t);case n.eb:if(r.layer){var s=d()(t,"containers[".concat(n.VR,"].widgets"));if(s)return u()("containers[".concat(n.VR,"].widgets"),s.map((function(e){return d()(e,"layer.id")===r.layer.id?u()("layer",r.layer,e):e})),t)}return t;case n.yY:return(0,O.z6)("containers[".concat(r.target,"].widgets"),{id:r.widget.id},t);case i.E9:var f=r.data;return u()("containers[".concat(n.VR,"]"),S({},f),t);case o.ok:var g=r.config||{},y=g.widgetsConfig;return u()("containers[".concat(n.VR,"]"),S({},y),t);case n.v8:return u()("containers[".concat(r.target,"].layout"),r.layout)(u()("containers[".concat(r.target,"].layouts"),r.allLayouts,t));case n.ff:case i.R4:return u()("containers[".concat(n.VR,"]"),D.containers[n.VR],t);case n.S0:var b=r.key,j=r.value;return u()("dependencies[".concat(b,"]"),j,t);case n.Q6:var P=r.key;return u()("dependencies[".concat(P,"]"),null,t);case n.kb:var E=r.dependencies;return u()("dependencies",E,t);case n.GV:return u()("dependencies",D.dependencies,t);case n.Ym:var C=r.widget,x=void 0===C?{}:C;if(x.dataGrid&&x.dataGrid.static)return t;var k=d()(t,"containers[".concat(r.target,"].collapsed[").concat(x.id));if(k){var T=[].concat(w(d()(t,"containers[".concat(r.target,"].layout"),[])),w(h()(d()(k,"layout",[])))),F=m()(d()(t,"containers[".concat(r.target,"].layouts"),{}),(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;return[].concat(w(e),w(h()(d()(k,"layouts[".concat(t,"]"),[]))))}));return v()((0,O.qC)(u()("containers[".concat(r.target,"].layout"),T),u()("containers[".concat(r.target,"].layouts"),F))(t),"containers[".concat(r.target,"].collapsed[").concat(x.id,"]"))}return u()("containers[".concat(r.target,"].collapsed[").concat(x.id,"]"),{layout:p()(d()(t,"containers[".concat(r.target,"].layout"),[]),{i:x.id}),layouts:m()(d()(t,"containers[".concat(r.target,"].layouts"),{}),(function(e){return p()(e,{i:x.id})}))},t);case n.ke:var I,R,Z,A,M,G,L,z,N,_,V,W,q,B,H,U,$,Q,K=r.widget,J=null==t||null===(I=t.containers)||void 0===I||null===(R=I[r.target])||void 0===R?void 0:R.maximized;if(!K||null!==(Z=K.dataGrid)&&void 0!==Z&&Z.static)return t;if(null!=J&&J.widget)return(0,O.qC)(u()("containers[".concat(r.target,"].layout"),J.layout),u()("containers[".concat(r.target,"].layouts"),J.layouts),u()("containers[".concat(r.target,"].maximized"),{}),u()("containers[".concat(r.target,"].widgets"),null==t||null===(U=t.containers)||void 0===U||null===($=U[r.target])||void 0===$||null===(Q=$.widgets)||void 0===Q?void 0:Q.map((function(e){return e.id===J.widget.id?S(S({},e),{},{dataGrid:S(S({},e.dataGrid),{},{isDraggable:!0,isResizable:!0})}):e}))))(t);if(null!=t&&null!==(A=t.containers)&&void 0!==A&&null!==(M=A[r.target])&&void 0!==M&&null!==(G=M.collapsed)&&void 0!==G&&G[K.id])return t;var Y={x:0,y:0,w:1,h:1},X=p()(null==t||null===(L=t.containers)||void 0===L||null===(z=L[r.target])||void 0===z?void 0:z.layout,{i:K.id}),ee=S(S({},X),Y);return(0,O.qC)(u()("containers[".concat(r.target,"].maximized"),{widget:K,layout:null==t||null===(N=t.containers)||void 0===N||null===(_=N[r.target])||void 0===_?void 0:_.layout,layouts:null==t||null===(V=t.containers)||void 0===V||null===(W=V[r.target])||void 0===W?void 0:W.layouts}),u()("containers[".concat(r.target,"].layout"),[ee]),u()("containers[".concat(r.target,"].layouts"),{xxs:[ee]}),u()("containers[".concat(r.target,"].widgets"),null==t||null===(q=t.containers)||void 0===q||null===(B=q[r.target])||void 0===B||null===(H=B.widgets)||void 0===H?void 0:H.map((function(e){return e.id===K.id?S(S({},e),{},{dataGrid:S(S({},e.dataGrid),{},{isDraggable:!1,isResizable:!1})}):e}))))(t);case n.uU:var te=d()(t,"containers[".concat(r.target,"].widgets"),[]).filter((function(e){return!e.dataGrid||!e.dataGrid.static})),re=te.filter((function(e){return d()(t,"containers[".concat(r.target,"].collapsed[").concat(e.id,"]"))})),ne=te.filter((function(e){return!d()(t,"containers[".concat(r.target,"].collapsed[").concat(e.id,"]"))})),oe=0===ne.length;return oe?re.reduce((function(t,r){return e(t,(0,n.f)(r))}),t):ne.length>0?ne.reduce((function(t,r){return e(t,(0,n.f)(r))}),t):t;case n.nw:return u()("tray",r.value,t);default:return t}}},74621:(e,t,r)=>{"use strict";r.d(t,{np:()=>n,L3:()=>o,jl:()=>i,y8:()=>a,qg:()=>c}),r(27418),r(27361);var n=function(e){return e&&e.security&&e.security.user},o=function(e){return n(e)&&n(e).role},i=function(e){return e&&e.security&&e.security.user},a=function(e){return e.security&&e.security.token},c=function(e){return"ADMIN"===o(e)}},96958:(e,t,r)=>{"use strict";r.d(t,{t3:()=>E,WQ:()=>C,dM:()=>x,rK:()=>k,Lo:()=>I,gP:()=>M,S9:()=>G,AV:()=>L,Sc:()=>z,a3:()=>N,IC:()=>_,wT:()=>V,cZ:()=>W,ek:()=>q,Qc:()=>B,Cf:()=>U,dJ:()=>$,DR:()=>Q,f1:()=>K});var n=r(6557),o=r.n(n),i=r(92742),a=r.n(i),c=r(19873),l=r.n(c),u=r(30998),s=r.n(u),d=r(27361),f=r.n(d),p=r(1469),g=r.n(p),v=r(14293),y=r.n(v),m=r(47037),b=r.n(m),h=r(78889);function O(e){return function(e){if(Array.isArray(e))return w(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return w(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?w(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function w(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function j(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function P(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?j(Object(r),!0).forEach((function(t){S(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):j(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function S(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var E=function(e,t,r){var n=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2?arguments[2]:void 0;return s()(e,(function(e){return e<=r&&r<e+t}))}(t,r,e);return-1===n?n:n*r+e-t[n]},D={id:"empty_row",get:function(){}},C=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],n=arguments.length>3?arguments[3]:void 0;return t[E(e,r,n)]||P({},D)},x=function(e,t){return t[e]},k=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return g()(e)?e.reduce((function(e,t){return P(P({},e),{},S({},t.id,P(P({},e[t.id]),t.updated)))}),{}):{}},T=function(e,t){var r=Object.keys(t).filter((function(e){return"geometry"!==e})).reduce((function(e,r){return P(P({},e),{},S({},r,t[r]))}),{}),n=Object.keys(t).filter((function(e){return"geometry"===e})).reduce((function(e,r){return P(P({},e),{},S({},r,t[r]))}),{});return P(P(P({},e),n),{},{properties:P(P({},e&&e.properties||{}),r)})},F=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0,n=s()(e,t);return n>=0?e.map((function(e,t){return t===n?r:e})):[].concat(O(e),[r])},I=function(e){return((0,h.getFeatureTypeProperties)(e)||[]).filter((function(e){return!(0,h.isGeometryType)(e)}))},R=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2?arguments[2]:void 0,n=arguments.length>3?arguments[3]:void 0;return t.map((function(t){return r<=t&&t<=n?0:Math.abs(t-e)})).reduce((function(e,t,r,n){return t>n[e]&&r||e}),0)},Z=function(e,t){return t.filter((function(t,r){return r!==e}))},A=function(e,t,r){return e.filter((function(e,n){return n<t||n>=t+r}))},M=function(e,t,r,n){for(var o,i,a=e;a<=t&&void 0===o;a++)-1===E(a*n,r,n)&&(o=a);for(var c=t;c>=e&&void 0===i;c--)-1===E(c*n,r,n)&&(i=c);return[o,i].filter((function(e){return void 0!==e}))},G=function(e,t,r){var n=e.startPage,o=e.endPage,i=M(n,o,t,r),a=i[1]-i[0]+1;return{startIndex:i[0]*r,maxFeatures:a*r}},L=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=r.editable,o=void 0!==n&&n,i=r.sortable,a=void 0===i||i,c=r.resizable,l=void 0===c||c,u=r.filterable,s=void 0===u||u,d=r.defaultSize,f=void 0===d?200:d,p=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},g=p.getEditor,v=void 0===g?function(){}:g,y=p.getFilterRenderer,m=void 0===y?function(){}:y,b=p.getFormatter,h=void 0===b?function(){}:b;return I(e).filter((function(e){return!(t[e.name]&&t[e.name].hide)})).map((function(e){return{sortable:a,key:e.name,width:t[e.name]&&t[e.name].width||f||void 0,name:t[e.name]&&t[e.name].label||e.name,resizable:l,editable:o,filterable:s,editor:v(e),formatter:h(e),filterRenderer:m(e,e.name)}}))},z=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){},r=arguments.length>2?arguments[2]:void 0,n=arguments.length>3?arguments[3]:void 0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:function(){},i=(0,h.findGeometryProperty)(r);return e.map((function(e){return P(P({},e),{},{events:e.events&&Object.keys(e.events).reduce((function(o,i){return P(P({},o),{},S({},i,(function(o,a){return e.events[i](t(a.rowIdx),a,r,n)})))}),{})},"geometry"===e.key&&i?{filterRenderer:o(P(P({},i),{},{localType:"geometry"}),i.name),filterable:!0,geometryPropName:i.name}:{})}))},N=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0,n=arguments.length>3?arguments[3]:void 0,o=arguments.length>4?arguments[4]:void 0;return Object.keys(e).reduce((function(i,a){return P(P({},i),{},S({},a,(function(){for(var i=arguments.length,c=new Array(i),l=0;l<i;l++)c[l]=arguments[l];return e[a].apply(e,c.concat([t,r,n,o]))})))}),{})},_=function(e,t){return!!(0,h.getPropertyDesciptor)(e,t)},V=function(e,t,r){return(0,h.isValidValueForPropertyName)(e,(o=r,"geometry"===(n=t)?function(e){return f()((0,h.findGeometryProperty)(e),"name")}(o):n),r);var n,o},W=function(){return"EPSG:4326"},q=function(e,t,r){return function(n){return t.length>0?n._new:!e||e&&!!r[n.id]}},B=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return T(e,t[e.id]||{})},H=/\s*(!==|!=|<>|<=|>=|===|==|=|<|>)?\s*(-?\d*\.?\d*)\s*/,U=function(e,t){if("string"===t)return{newVal:a()(e),operator:"ilike"};var r,n=H.exec(e),o="=";return n?("!=="===(o=n[1]||"=")|"!="===o?o="<>":"==="===o|"=="===o&&(o="="),r=parseFloat(n[2])):r=parseFloat(e,10),{newVal:r,operator:o}},$=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.attribute,n=t.operator,i=t.value,a=t.type,c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},l=(null===(e=c.groupFields)||void 0===e?void 0:e.filter((function(e){return r!==e.id&&1!==e.id})))||[];if(("string"===a||"number"===a)&&b()(i)&&-1!==(null==i?void 0:i.indexOf(","))){var u,s=(null==i?void 0:i.split(",").filter(o()))||[],d=(null===(u=c.filterFields)||void 0===u?void 0:u.filter((function(e){return r!==e.attribute})))||[];return P(P({},c),{},{groupFields:l.concat([{id:r,logic:"OR",groupId:1,index:0}]),filterFields:d.concat(s.map((function(e){var t=U(e,a),n=t.operator,o=t.newVal;return{attribute:r,rowId:Date.now(),type:a,groupId:r,operator:n,value:o}}))),spatialField:c.spatialField,spatialFieldOperator:c.spatialFieldOperator})}return P(P({},c),{},{groupFields:l.concat([{id:1,logic:"AND",groupId:1,index:0}]),filterFields:"geometry"===a?c.filterFields:y()(i)?(c.filterFields||[]).filter((function(e){return e.attribute!==r})):F(c.filterFields||[],{attribute:r},{attribute:r,rowId:Date.now(),type:a,groupId:1,operator:n,value:i}),spatialField:"geometry"===a?i:c.spatialField,spatialFieldOperator:g()(i)?"OR":""})},Q=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.startIndex,r=void 0===t?0:t,n=e.maxFeatures,o=void 0===n?1:n,i=e.totalFeatures,a=void 0===i?0:i,c=e.resultSize;return{page:Math.ceil(r/o),resultSize:c,size:o,total:a,maxPages:Math.ceil(a/o)-1}},K=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.endPage,n=t.startPage,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=o.pages,a=o.features,c=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},u=c.size,s=c.maxStoredPages,d=c.startIndex,p=M(n,r,i,u),g=p[1]-p[0]+1,v=f()(e,"features",[]);v.length!==g*u&&(v=v.concat(l()(Array(g*u-v.length>0?g*u-v.length:v.length),!1)));var y=i,m=a,b=y.length+g-Math.max(s,r-n+1);if(b>0)for(var h=n*u,O=r*u,w=h+(O-h)/2,j=0;j<b;j++){var P=R(w,i,h,O),S=P*u;y=Z(P,y),m=A(a,S,u)}for(var E=[],D=0;D<g;D++)E.push(d+u*D);return{pages:y.concat(E),features:m.concat(v)}}},89077:(e,t,r)=>{"use strict";r.d(t,{LR:()=>g,RP:()=>v,UC:()=>y});var n=r(78598),o=r.n(n),i=r(97995),a=r.n(i),c=(r(39902),r(89597),r(66085),r(82702)),l=(r(27418),r(72163)),u=(r(5055),r(3674),r(52628),r(27361),r(91175),r(66604),r(87185),r(30998),r(78718),r(18721),r(93220),r(23570),r(57557),r(47037),r(85564)),s=r.n(u);function d(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i=[],a=!0,c=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){c=!0,o=e}finally{try{a||null==r.return||r.return()}finally{if(c)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return f(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?f(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}r(13311),r(6557);var p=function(e,t,r,n){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"";return s()([[[/\&/g,"&amp;"]],e?[]:[[/\"/g,"&quot;"]],t?[]:[[/\'/g,"&apos;"]],r?[]:[[/\>/g,"&gt;"]],n?[]:[[/\</g,"&lt;"]]]).reduce((function(e,t){var r=d(t,2),n=r[0],o=r[1];return e.replace(n,o)}),o)};p.bind(null,!0,!0,!0,!1),p.bind(null,!1,!1,!0,!1),r(24262),r(86267),new DOMParser;var g=function(e,t,r){var n=new Blob([e],{type:r});o().saveAs(n,t)},v=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"snapshot.png",r=arguments.length>2?arguments[2]:void 0;g(a()(e),t,r)},y=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return new c.Promise((function(r,n){var o=new FileReader;o.onload=function(){try{var e=JSON.parse(o.result);r({geoJSON:e,errors:(0,l.$)(e).filter((function(e){return t||"message"!==e.level}))})}catch(e){n(e)}},o.onerror=function(){n(o.error.name)},o.readAsText(e)}))}},72810:()=>{},86799:()=>{}}]);